CVE-2022-24761
HTTP Request Smuggling in waitress
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
0Exploited in Wild
-Decision
Descriptions
Waitress is a Web Server Gateway Interface server for Python 2 and 3. When using Waitress versions 2.1.0 and prior behind a proxy that does not properly validate the incoming HTTP request matches the RFC7230 standard, Waitress and the frontend proxy may disagree on where one request starts and where it ends. This would allow requests to be smuggled via the front-end proxy to waitress and later behavior. There are two classes of vulnerability that may lead to request smuggling that are addressed by this advisory: The use of Python's `int()` to parse strings into integers, leading to `+10` to be parsed as `10`, or `0x01` to be parsed as `1`, where as the standard specifies that the string should contain only digits or hex digits; and Waitress does not support chunk extensions, however it was discarding them without validating that they did not contain illegal characters. This vulnerability has been patched in Waitress 2.1.1. A workaround is available. When deploying a proxy in front of waitress, turning on any and all functionality to make sure that the request matches the RFC7230 standard. Certain proxy servers may not have this functionality though and users are encouraged to upgrade to the latest version of waitress instead.
Waitress es un servidor de Interfaz de Puerta de Entrada de Servidores Web para Python 2 y 3. Cuando son usadas las versiones 2.1.0 y anteriores de Waitress detrás de un proxy que no comprueba inapropiadamente una petición HTTP entrante coincide con el estándar RFC7230, Waitress y el proxy del front-end pueden no estar de acuerdo en dónde empieza una petición y dónde termina. Esto permitiría contrabandear peticiones por medio del proxy del front-end a Waitress y su posterior comportamiento. Se presentan dos clases de vulnerabilidad que pueden conllevar a un contrabando de peticiones que son abordadas en este aviso: El uso de "int()`"de Python para analizar cadenas en enteros, conllevando a que "+10" sea analizado como "10", o que "0x01" sea analizado como "1", cuando el estándar especifica que la cadena debe contener sólo dígitos o dígitos hexadecimales; y que Waitress no soporta extensiones de chunk, sin embargo las estaba descartando sin comprender que no contenían caracteres ilegales. Esta vulnerabilidad ha sido parcheada en Waitress versión 2.1.1. Se presenta una medida de mitigación disponible. Cuando despliegue un proxy frente a Waitress, habilite todas las funciones para asegurarse de que la petición es ajustada al estándar RFC7230. Sin embargo, algunos servidores proxy pueden no tener esta funcionalidad y es recomendado a usuarios actualizar a la última versión de waitress en su lugar
An Inconsistent Interpretation of HTTP Requests (HTTP Request Smuggling) flaw was found in Waitress when used behind a proxy that does not properly validate the incoming HTTP request. This flaw allows an attacker to smuggle requests via the front-end proxy to Waitress, resulting in a loss of data integrity.
CVSS Scores
SSVC
- Decision:-
Timeline
- 2022-02-10 CVE Reserved
- 2022-03-17 CVE Published
- 2024-08-03 CVE Updated
- 2024-10-21 EPSS Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
- ---------- First Exploit
CWE
- CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')
CAPEC
References (7)
URL | Tag | Source |
---|---|---|
https://github.com/Pylons/waitress/releases/tag/v2.1.1 | Release Notes | |
https://github.com/Pylons/waitress/security/advisories/GHSA-4f7p-27jc-3c36 | Third Party Advisory | |
https://lists.debian.org/debian-lts-announce/2022/05/msg00011.html | Mailing List |
URL | Date | SRC |
---|
URL | Date | SRC |
---|---|---|
https://github.com/Pylons/waitress/commit/9e0b8c801e4d505c2ffc91b891af4ba48af715e0 | 2022-09-23 |
URL | Date | SRC |
---|---|---|
https://www.debian.org/security/2022/dsa-5138 | 2022-09-23 | |
https://access.redhat.com/security/cve/CVE-2022-24761 | 2022-04-07 | |
https://bugzilla.redhat.com/show_bug.cgi?id=2065086 | 2022-04-07 |
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Agendaless Search vendor "Agendaless" | Waitress Search vendor "Agendaless" for product "Waitress" | < 2.1.1 Search vendor "Agendaless" for product "Waitress" and version " < 2.1.1" | - |
Affected
| ||||||
Debian Search vendor "Debian" | Debian Linux Search vendor "Debian" for product "Debian Linux" | 9.0 Search vendor "Debian" for product "Debian Linux" and version "9.0" | - |
Affected
|