CVE-2024-49770
`oak` is a middleware framework for Deno's native HTTP server, Deno …
`oak` is a middleware framework for Deno's native HTTP server, Deno Deploy, Node.js 16.5 and later, Cloudflare Workers and Bun. By default `oak` does not allow transferring of hidden files with `Context.send` API. However, prior to version 17.1.3, this can be bypassed by encoding `/` as its URL encoded form `%2F`. For an attacker this has potential to read sensitive user data or to gain access to server secrets. Version 17.1.3 fixes the issue.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/oakserver/oak/blob/3896fe568b25ac0b4c5afbf822ff8344c3d1712a/send.ts#L117-L125
- github.com/oakserver/oak/blob/3896fe568b25ac0b4c5afbf822ff8344c3d1712a/send.ts#L182C10-L18
- github.com/oakserver/oak/commit/4b2f27efd5cba5a45b2c3982e610da3af0869209
- github.com/oakserver/oak/security/advisories/GHSA-qm92-93fv-vh7m
- nvd.nist.gov/vuln/detail/CVE-2024-49770
- github.com/advisories/GHSA-qm92-93fv-vh7m
- nvd.nist.gov/vuln/detail/CVE-2024-49770
- cve.org/CVERecord?id=CVE-2024-49770
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.