CSRF protection bypass via missing Content-Type header
Published Oct 15, 2024 · Updated Nov 7, 2024
CSRF bypass in Hono before 4.6.5 allows remote attackers to submit cross-origin state-changing requests without a Content-Type header. The csrf middleware substitutes an empty string for the missing header, so its form-content test fails and the origin check is skipped. A victim must interact with attacker-controlled content while authenticated to an application using the middleware; resulting actions run with the victim's authority.
Summary
What happened
CSRF bypass in Hono before 4.6.5 allows remote attackers to submit cross-origin state-changing requests without a Content-Type header. The csrf middleware substitutes an empty string for the missing header, so its form-content test fails and the origin check is skipped. A victim must interact with attacker-controlled content while authenticated to an application using the middleware; resulting actions run with the victim's authority.
The record
- CVE
- CVE-2024-48913
- Published
- Oct 15, 2024
- Updated
- Nov 7, 2024
- Vendor
- Hono
- Product
- Hono
- Classifications
- CWE-352, T1204
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Oct 15, 2024CVE publishedPublication date reported by the CVE source.
- Nov 7, 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=0 <4.6.5
- Affected versionversion=< 4.6.5
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
- Missing Content-Type CSRF bypass 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