v5.0.0 4.2.1 cites RFC 2616, which is obsolete; RFC 9112 section 6.3 words the rule differently
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 1/5
- Tempo stimato
- Meno di un'ora
- Idoneità per principianti
- 85/100
- Tipo di issue
- Documentazione
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- markdown
- Ambito
- documentation
Direzione di ricerca
Apri 5.0/en/0x13-V4-API-and-Web-Service.md alla riga 29 e leggi il requisito 4.2.1 nella tabella. Riscrivi la frase su HTTP/1.x in modo che citi RFC 9112 sezione 6.3 invece di RFC 2616 e copra la precedenza di Transfer-Encoding, la chiusura della connessione e la rimozione di Content-Length da parte di un intermediario. Cerca nel file (e nei capitoli vicini in 5.0/en/) altre citazioni di RFC 2616 mentre sei lì. Fatto quando la riga si legge correttamente rispetto a RFC 9112 e non rimane alcun riferimento obsoleto in quel file.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Requirement 4.2.1 in 5.0/en/0x13-V4-API-and-Web-Service.md (line 29, at 6e40a85) reads:
| # | Description | Level |
|---|---|---|
| 4.2.1 | Verify that all application components (including load balancers, firewalls, and application servers) determine boundaries of incoming HTTP messages using the appropriate mechanism for the HTTP version to prevent HTTP request smuggling. In HTTP/1.x, if a Transfer-Encoding header field is present, the Content-Length header must be ignored per RFC 2616. When using HTTP/2 or HTTP/3, if a Content-Length header field is present, the receiver must ensure that it is consistent with the length of the DATA frames. | 2 |
Two points, both checked against the RFC Editor:
- RFC 2616 is obsolete. The RFC index lists it as obsoleted by RFC 7230 to 7235, and RFC 7230 as obsoleted by RFC 9110 and RFC 9112 (June 2022, STD 99). Message framing for HTTP/1.1 now lives in RFC 9112 section 6.
- The rule is worded differently there. RFC 9112 section 6.3, item 3: "If a message is received with both a Transfer-Encoding and a Content-Length header field, the Transfer-Encoding overrides the Content-Length. Such a message might indicate an attempt to perform request smuggling (Section 11.2) or response splitting (Section 11.1) and ought to be handled as an error. An intermediary that chooses to forward the message MUST first remove the received Content-Length field and process the Transfer-Encoding ... prior to forwarding the message downstream." Section 6.1 adds that a server MAY reject such a request or process it using Transfer-Encoding alone, and "Regardless, the server MUST close the connection after responding to such a request".
So "Content-Length must be ignored" is the RFC 2616 phrasing (section 4.4). It is not wrong in effect, but it omits the part that matters for smuggling: the message is suspect and the connection must not be reused.
Possible rewording of the HTTP/1.x sentence, if the maintainers want to change it: "In HTTP/1.x, if both Transfer-Encoding and Content-Length are present, Transfer-Encoding takes precedence (RFC 9112 section 6.3), the message is treated as an error or the connection is closed after the response, and an intermediary removes Content-Length before forwarding."
I have not opened a PR, per CONTRIBUTING.md. Happy to prepare one if you agree on the wording.
Sources: https://www.rfc-editor.org/rfc/rfc9112.html#section-6.3 and https://www.rfc-editor.org/rfc/rfc9112.html#section-6.1
Tausif Ahmed, Founder & CEO, Purplecop Security
- 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
-
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
-
Images and references pointing to old project page that does not exist anymoreForse già presa @atg06 l’ha presa 3 giorni fa. Aperta5) awaiting PR
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
OWASP/ASVS#3424 · 5 commenti · 2 assegnatari ·
I maintainer di solito rispondono entro 1 giorno
Issue simili
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 85/100
lem-project/lem#2525 ·
I maintainer di solito rispondono entro 1 giorno
-
infra
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 94/100
I maintainer di solito rispondono entro 1 giorno
-
Add Strange QuarkAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
facebookresearch/atlas-lean#20426 ·
I maintainer di solito rispondono entro 1 giorno
-
docs(contributing): the two things that silently block a PRForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertaavailable documentation good first issue
Difficoltà 1/5 1-3 ore Idoneità per principianti 95/100
Nixitov/Riptide-Native#944 ·
I maintainer di solito rispondono entro 1 giorno