Hono CSRF middleware can be bypassed using crafted Content-Type header (honojs hono)
En bref
- Source
- NVD
- EPSS
- EPSS 0.24 % · centile 16 ()
- État
- PUBLISHED
- Publiée
- Mise à jour
- Attribuée par
- GitHub_M
- Statut NVD
- Analyzed
Description
Hono is a Web application framework that provides support for any JavaScript runtime. Hono CSRF middleware can be bypassed using crafted Content-Type header. MIME types are case insensitive, but isRequestedByFormElementRe only matches lower-case. As a result, attacker can bypass csrf middleware using upper-case form-like MIME type. This vulnerability is fixed in 4.5.8.
Faiblesses (CWE)
- CWE-352 — Falsification de requête inter-site (CSRF)
Références
Scores
| Version | Score | Vecteur | Évalué par |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 5.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L | GitHub_M |
| CVSS 3.1 | MEDIUM 5.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L | NVD · security-advisories@github.com (Secondary) |
Avis
- GHSA-rpfr-3m35-5vx5 — Hono CSRF middleware can be bypassed using crafted Content-Type header
Références européennes
- ENISA EUVD · EUVD-2024-2653
- GCVE · GCVE-0-2024-43787
Configurations affectées (CPE NVD)
cpe:2.3:a:hono:hono:*:*:*:*:*:node.js:*:*< 4.5.8
Produits affectés
| Produit | Versions |
|---|---|
| honojs · hono | affected < 4.5.8 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |