HTTP Desync

HTTP Desync

Knowledge Base>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

Correct Content-Length, Transfer-Encoding 0Correct Transfer-Encoding, Content-Length 3Transfer Encoding: xchunkedTransfer Encoding\r\n: chunkedTransfer-Encoding:\tchunkedCategorizeCategorizeCategorizeContent-Length: 0CategorizeTransfer-Encoding 0CategorizeSmuggle 2nd HTTP Request to ConnectionCategorizeProcessed Admin Panel EndpointX-Forwarded-For: 127.0.0.1Smuggle a Request to Retreive the Next User's Session CookieSmuggle Script Tag to Subsequent RequestHost: attacker-controlled-domainNext User's Request Cached Under Static ResourceSmuggle Host HeaderCategorizeVerify ReproducibilityVerify ReproducibilityVerify Reproducibility
Intercept Any HTTP Request
CL.TE Response Anomaly
TE.CL Response Anomaly
TE.TE Response Anomaly
HTTP/1.1 Desync Group
H2.CL Differential Responses
H2.TE Differential Responses
HTTP/2 Desync Group
CL.0/H2.0/CSD Differential Responses
Browser-powered Desync Group
Bypass Reverse Proxy Routing Security Controls
Bypass Reverse Proxy HTTP Rewrites
Account Takeover
Reflected XSS
Web Cache Poisoning
Web Cache Deception
Observe a Redirect Response Code
Response Queue Poisoning
Exploitable HTTP Desync

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.

By using this site you agree to our Terms of Service and Privacy Policy.