Skip to main content

Business information leak - Repository

Description

JFrog Artifactory repositories are accessed, with credentials stored in the source code.

Impact

Access the repository with credentials obtained in the source code.

Recommendation

Establish the necessary controls to ensure that the information is accessible only to the indicated persons.

Threat

Internal attacker with access to source code.

Expected Remediation Time

⌚ 30 minutes.

Score

Default score using CVSS 3.1. It may change depending on the context of the vulnerability.

Base

  • Attack vector: A
  • Attack complexity: L
  • Privileges required: L
  • User interaction: N
  • Scope: C
  • Confidentiality: H
  • Integrity: L
  • Availability: N

Temporal

  • Exploit code madurity: X
  • Remediation level: W
  • Report confidence: X

Result

  • Vector string: CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N/E:X/RL:W/RC:X
  • Score:
    • Base: 7.6
    • Temporal: 7.4
  • Severity:
    • Base: High
    • Temporal: High

Code Examples

Compliant code

The sensitive credentials are stored as encrypted secrets

jfrog.accesskey   = ${access_key}
artifact.password = ENC(something-base64-encoded-but-encrypted)

Non compliant code

The JFrog credential are stored directly in the source code

jfrog.accesskey   = "AKIA0000000000000000"
artifact.password = "123"

Requirements