v5.0.0 4.2.1 cites RFC 2616, which is obsolete; RFC 9112 section 6.3 words the rule differently
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Aptitud para principiantes
- 85/100
- Tipo de issue
- Documentación
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- markdown
- Área
- documentation
Línea de trabajo
Abre 5.0/en/0x13-V4-API-and-Web-Service.md en la línea 29 y lee el requisito 4.2.1 en la tabla. Reescribe la frase de HTTP/1.x para que cite RFC 9112 sección 6.3 en lugar de RFC 2616 y cubra la precedencia de Transfer-Encoding, el cierre de la conexión y la eliminación de Content-Length por parte de un intermediario. Busca en el archivo (y en los capítulos vecinos de 5.0/en/) otras citas de RFC 2616 mientras estés ahí. Terminado cuando la fila se lea correctamente contra RFC 9112 y no quede ninguna referencia obsoleta en ese archivo.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- HTML
- Estrellas
- 3.9k
- Forks
- 865
- Merge medio
- 3 d 4 h
- PR fusionados (30 d)
- 19
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de OWASP/ASVS
-
Crypto appendix: fix title "Post-Quantum Encryption Standards"Quizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. AbiertoAppendix C
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
OWASP/ASVS#3468 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
Crypto appendix: fix notations wrt RSAPosiblemente ocupada @randomstuff la tomó hace 1 día. Abierto1) Discussion ongoing Appendix C V11 (prev V6)
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
OWASP/ASVS#3467 · 4 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
V6 (prev V2)
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
OWASP/ASVS#3433 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
Update proposal for v5.0.0-3.3.1 and v5.0.0-3.3.3 to cover __Host-Http- and __Http- cookie name prefixesQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abierto1) Discussion ongoing V3 (prev V50)
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
OWASP/ASVS#3429 · 7 comentarios ·
Los mantenedores suelen responder en 1 día
-
Images and references pointing to old project page that does not exist anymorePosiblemente ocupada @atg06 la tomó hace 3 días. Abierto5) awaiting PR
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
OWASP/ASVS#3424 · 5 comentarios · 2 asignados ·
Los mantenedores suelen responder en 1 día
Todos los issues de OWASP/ASVS
Issues similares
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 85/100
lem-project/lem#2525 ·
Los mantenedores suelen responder en 1 día
-
infra
Dificultad 1/5 Menos de una hora Aptitud para principiantes 94/100
Los mantenedores suelen responder en 1 día
-
Add Strange QuarkAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
-
docs(contributing): the two things that silently block a PRPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoavailable documentation good first issue
Dificultad 1/5 1-3 horas Aptitud para principiantes 95/100
Nixitov/Riptide-Native#944 ·
Los mantenedores suelen responder en 1 día