HTTP Desync
Summary
HTTP Desync allows an attacker to manipulate or exploit inconsistencies in HTTP request handling, leading to potential request smuggling, cache poisoning, or information disclosure.
Testing methodology
Description
HTTP Desync is a vulnerability that arises from inconsistent handling of HTTP requests by front-end and back-end servers or proxy servers. Attackers can manipulate or exploit these inconsistencies to perform request smuggling attacks, where malicious requests are crafted to bypass security controls, poison caches, or extract sensitive information.
An attacker abusing this issue will be able to uncontrolably read or write malicious requests of other users in the application, allowing him be exposed to unauthorized information, manipulate data, or trigger othere vulnerabilities by injecting payloads in to the HTTP stream.
Remediations
- Ensure consistent parsing and handling of HTTP requests across all components in the request processing chain, preferrably HTTP/2 with disabled HTTP downgrading possibility.
- Generally in your REST API implementation, never assume requests won't have a request body.
- Default to discarding the HTTP connection in case of a backend exception occurring from request processing.
Usually follows
Usually precedes
Affected components
- Server