GHSA-qqhq-8r2c-c3f5

Suggest an improvement
Source
https://github.com/advisories/GHSA-qqhq-8r2c-c3f5
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/12/GHSA-qqhq-8r2c-c3f5/GHSA-qqhq-8r2c-c3f5.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-qqhq-8r2c-c3f5
Aliases
Published
2023-12-15T23:43:30Z
Modified
2024-01-30T20:26:21.268494Z
Severity
  • 3.3 (Low) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N CVSS Calculator
Summary
nvdApiKey is logged in debug mode
Details

Summary

The value of nvdApiKey configuration parameter is logged in clear text in debug mode.

Details

The NVD API key is a kind of secret and should be treated like other secrets when logging in debug mode. Expecting the same behavior as for several password configurations: just print ******

Note that while the NVD API Key is an access token for the NVD API - they are not that sensitive. The only thing an NVD API Token grants is a higher rate limit when making calls to publicly available data. The data available from the NVD API is the same whether you have an API Key or not.

PoC

The nvdApiKey is configured to use an environment variable; when running mvn -X dependency-check:check the clear value is logged twice.

Impact

The NVD API key is a kind of secret and should not be exposed. If stolen, an attacker can use this key to obtain already public information.

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-532"
    ],
    "severity": "LOW",
    "github_reviewed": true,
    "github_reviewed_at": "2023-12-15T23:43:30Z"
}
References

Affected packages

Maven / org.owasp:dependency-check-ant

Package

Name
org.owasp:dependency-check-ant
View open source insights on deps.dev
Purl
pkg:maven/org.owasp/dependency-check-ant

Affected ranges

Type
ECOSYSTEM
Events
Introduced
9.0.0
Fixed
9.0.6

Affected versions

9.*

9.0.0
9.0.1
9.0.2
9.0.3
9.0.4
9.0.5

Database specific

{
    "last_known_affected_version_range": "<= 9.0.5"
}

Maven / org.owasp:dependency-check-cli

Package

Name
org.owasp:dependency-check-cli
View open source insights on deps.dev
Purl
pkg:maven/org.owasp/dependency-check-cli

Affected ranges

Type
ECOSYSTEM
Events
Introduced
9.0.0
Fixed
9.0.6

Affected versions

9.*

9.0.0
9.0.1
9.0.2
9.0.3
9.0.4
9.0.5

Database specific

{
    "last_known_affected_version_range": "<= 9.0.5"
}

Maven / org.owasp:dependency-check-maven

Package

Name
org.owasp:dependency-check-maven
View open source insights on deps.dev
Purl
pkg:maven/org.owasp/dependency-check-maven

Affected ranges

Type
ECOSYSTEM
Events
Introduced
9.0.0
Fixed
9.0.6

Affected versions

9.*

9.0.0
9.0.1
9.0.2
9.0.3
9.0.4
9.0.5