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 src.
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
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
- 176.Restrict system objects
- 177.Avoid caching and temporary files
- 261.Avoid exposing sensitive information
- 300.Mask sensitive data
Fixes
Search for vulnerabilities in your apps for free with our automated security testing! Start your 21-day free trial and discover the benefits of our Continuous Hacking Machine Plan. If you prefer a full service that includes the expertise of our ethical hackers, don't hesitate to contact us for our Continuous Hacking Squad Plan.