CVE-2024-27932
published 2024-03-21CVE-2024-27932: Deno is a JavaScript, TypeScript, and WebAssembly runtime. Starting in version 1.8.0 and prior to version 1.40.4, Deno improperly checks that an import…
PriorityP422medium4.6CVSS 3.1
AVNACLPRLUIRSUCLILAN
EPSS
0.59%
47.1th percentile
Deno is a JavaScript, TypeScript, and WebAssembly runtime. Starting in version 1.8.0 and prior to version 1.40.4, Deno improperly checks that an import specifier's hostname is equal to or a child of a token's hostname, which can cause tokens to be sent to servers they shouldn't be sent to. An auth token intended for `example[.]com` may be sent to `notexample[.]com`. Anyone who uses DENO_AUTH_TOKENS and imports potentially untrusted code is affected. Version 1.40.0 contains a patch for this issue
Affected
3 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| deno | deno | >= 1.8.0 < 1.40.4 | 1.40.4 |
| deno | deno | >= 1.8.0 < 1.40.4 | 1.40.4 |
| denoland | deno | — | — |
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
Deno's improper suffix match testing for DENO_AUTH_TOKENS
osv·2024-03-06
CVE-2024-27932 [MEDIUM] Deno's improper suffix match testing for DENO_AUTH_TOKENS
Deno's improper suffix match testing for DENO_AUTH_TOKENS
### Summary
Deno improperly checks that an import specifier's hostname is equal to or a child of a token's hostname, which can cause tokens to be sent to servers they shouldn't be sent to. An auth token intended for `example.com` may be sent to `notexample.com`.
### Details
[auth_tokens.rs uses a simple ends_with check](https://github.com/denoland/deno/blob/3f4639c330a31741b0efda2f93ebbb833f4f95bc/cli/auth_tokens.rs#L89), which matches `www.deno.land` to a `deno.land` token as intended, but also matches `im-in-ur-servers-attacking-ur-deno.land` to `deno.land` tokens.
### PoC
- Set up a server that logs requests. RequestBin will do. For example, `denovulnpoc.example.com`.
- Run `[email protected]
GHSA
Deno's improper suffix match testing for DENO_AUTH_TOKENS
ghsa·2024-03-06
CVE-2024-27932 [MEDIUM] CWE-20 Deno's improper suffix match testing for DENO_AUTH_TOKENS
Deno's improper suffix match testing for DENO_AUTH_TOKENS
### Summary
Deno improperly checks that an import specifier's hostname is equal to or a child of a token's hostname, which can cause tokens to be sent to servers they shouldn't be sent to. An auth token intended for `example.com` may be sent to `notexample.com`.
### Details
[auth_tokens.rs uses a simple ends_with check](https://github.com/denoland/deno/blob/3f4639c330a31741b0efda2f93ebbb833f4f95bc/cli/auth_tokens.rs#L89), which matches `www.deno.land` to a `deno.land` token as intended, but also matches `im-in-ur-servers-attacking-ur-deno.land` to `deno.land` tokens.
### PoC
- Set up a server that logs requests. RequestBin will do. For example, `denovulnpoc.example.com`.
- Run `[email protected]
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/denoland/deno/blob/3f4639c330a31741b0efda2f93ebbb833f4f95bc/cli/auth_tokens.rs#L89https://github.com/denoland/deno/commit/de23e3b60b066481cc390f459497d5bef42a899bhttps://github.com/denoland/deno/security/advisories/GHSA-5frw-4rwq-xhcrhttps://github.com/denoland/deno/blob/3f4639c330a31741b0efda2f93ebbb833f4f95bc/cli/auth_tokens.rs#L89https://github.com/denoland/deno/commit/de23e3b60b066481cc390f459497d5bef42a899bhttps://github.com/denoland/deno/security/advisories/GHSA-5frw-4rwq-xhcr
2024-03-21
Published