Clarify CORS validation in 3.4.2 to explicitly reject 'null' origin
I maintainer di solito rispondono entro 1 giorno
@elarlang ci sta già lavorando.
Dal 7/1/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Requirement Referenced
3.4.2 - Browser Security Mechanism Headers
Description of the Issue
The current text for requirement 3.4.2 mandates validating the Origin header against an allowlist but does not explicitly warn against accepting the null origin.
The null origin is a specific edge case generated by browsers in scenarios such as sandboxed iframes or local file access. If an application's allowlist is not strict enough (or if it reflects the origin blindly), an attacker can use a sandboxed iframe to bypass CORS policies by sending Origin: null.
Proposed Change
I propose updating the requirement text to explicitly mention rejecting null unless it is strictly required by the architecture.
Current Text:
...validated against an allowlist of trusted origins. When 'Access-Control-Allow-Origin: *' needs to be used...
Proposed Text:
...validated against an allowlist of trusted origins (specifically rejecting the
nullorigin unless strictly required). When 'Access-Control-Allow-Origin: *' needs to be used...
Motivation
This clarification ensures that developers and security testers specifically verify that the application does not inadvertently allow the null origin, closing a common bypass vector for CORS protections.
- Lingua principale
- HTML
- Stelle
- 3.9k
- Fork
- 865
- Merge medio
- 3g 4h
- PR unite (30g)
- 19
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di OWASP/ASVS
-
Crypto appendix: fix title "Post-Quantum Encryption Standards"Forse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. ApertaAppendix C
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
OWASP/ASVS#3468 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Crypto appendix: fix notations wrt RSAForse già presa @randomstuff l’ha presa 1 giorno fa. Aperta1) Discussion ongoing Appendix C V11 (prev V6)
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
OWASP/ASVS#3467 · 4 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
v5.0.0 4.2.1 cites RFC 2616, which is obsolete; RFC 9112 section 6.3 words the rule differentlyApertaV4 (prev V13) WG wanted
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
OWASP/ASVS#3449 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
V6 (prev V2)
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
OWASP/ASVS#3433 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Update proposal for v5.0.0-3.3.1 and v5.0.0-3.3.3 to cover __Host-Http- and __Http- cookie name prefixesForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Aperta1) Discussion ongoing V3 (prev V50)
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
OWASP/ASVS#3429 · 7 commenti ·
I maintainer di solito rispondono entro 1 giorno