// For flags

CVE-2022-36032

ReactPHP's HTTP server parses encoded cookie names so malicious `__Host-` and `__Secure-` cookies can be sent

Severity Score

5.3
*CVSS v3.1

Exploit Likelihood

*EPSS

Affected Versions

*CPE

Public Exploits

0
*Multiple Sources

Exploited in Wild

-
*KEV

Decision

-
*SSVC
Descriptions

ReactPHP HTTP is a streaming HTTP client and server implementation for ReactPHP. In ReactPHP's HTTP server component versions starting with 0.7.0 and prior to 1.7.0, when ReactPHP is processing incoming HTTP cookie values, the cookie names are url-decoded. This may lead to cookies with prefixes like `__Host-` and `__Secure-` confused with cookies that decode to such prefix, thus leading to an attacker being able to forge cookie which is supposed to be secure. This issue is fixed in ReactPHP HTTP version 1.7.0. As a workaround, Infrastructure or DevOps can place a reverse proxy in front of the ReactPHP HTTP server to filter out any unexpected `Cookie` request headers.

ReactPHP HTTP es una implementación de cliente y servidor HTTP para ReactPHP. En las versiones del componente de servidor HTTP de ReactPHP a partir de la 0.7.0 y anteriores a 1.7.0, cuando ReactPHP procesa los valores de las cookies HTTP entrantes, los nombres de las cookies son decodificados por url. Esto puede conllevar a que las cookies con prefijos como "__Host-" y "__Secure-" sean confundidas con las cookies que decodifican dicho prefijo, conllevando así a que un atacante pueda falsificar la cookie que es supuesto es segura. Este problema ha sido corregido en ReactPHP HTTP versión 1.7.0. Como mitigación, Infraestructura o DevOps pueden colocar un proxy inverso delante del servidor HTTP de ReactPHP para filtrar cualquier encabezado de petición "Cookie" inesperada.

*Credits: N/A
CVSS Scores
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None
* Common Vulnerability Scoring System
SSVC
  • Decision:-
Exploitation
-
Automatable
-
Tech. Impact
-
* Organization's Worst-case Scenario
Timeline
  • 2022-07-15 CVE Reserved
  • 2022-09-06 CVE Published
  • 2024-03-29 EPSS Updated
  • 2024-08-03 CVE Updated
  • ---------- Exploited in Wild
  • ---------- KEV Due Date
  • ---------- First Exploit
CWE
  • CWE-20: Improper Input Validation
  • CWE-565: Reliance on Cookies without Validation and Integrity Checking
CAPEC
Affected Vendors, Products, and Versions
Vendor Product Version Other Status
Vendor Product Version Other Status <-- --> Vendor Product Version Other Status
Reactphp
Search vendor "Reactphp"
Http
Search vendor "Reactphp" for product "Http"
>= 0.7.0 < 1.7.0
Search vendor "Reactphp" for product "Http" and version " >= 0.7.0 < 1.7.0"
-
Affected