Authentication-token disclosure via boundary-free hostname suffix matching
Published Mar 6, 2024 · Updated Aug 5, 2024
Improper input validation in Deno 1.8.0 through 1.40.3 allows remote attackers to obtain authentication tokens via crafted import hosts. AuthTokens::get in cli/auth_tokens.rs uses ends_with without requiring a preceding label boundary, so an unrelated hostname ending in the token domain receives DENO_AUTH_TOKENS credentials. Exploitation requires a configured token and execution of potentially untrusted imports, exposing only tokens matched by the crafted hostname.
Summary
What happened
Improper input validation in Deno 1.8.0 through 1.40.3 allows remote attackers to obtain authentication tokens via crafted import hosts. AuthTokens::get in cli/auth_tokens.rs uses ends_with without requiring a preceding label boundary, so an unrelated hostname ending in the token domain receives DENO_AUTH_TOKENS credentials. Exploitation requires a configured token and execution of potentially untrusted imports, exposing only tokens matched by the crafted hostname.
The record
- CVE
- CVE-2024-27932
- Published
- Mar 6, 2024
- Updated
- Aug 5, 2024
- Vendor
- Deno Land Inc.
- Product
- Deno
- Classifications
- CWE-20, T1041
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Mar 6, 2024CVE publishedPublication date reported by the CVE source.
- Aug 5, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=>= 1.8.0, < 1.40.4
- Affected versionversion=1.8.0 <1.40.4
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
- DENO_AUTH_TOKENS hostname-suffix proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo