Request smuggling via unvalidated CRLF header values
Published Aug 29, 2024 · Updated Aug 30, 2024
CRLF injection in RestSharp 107 through 111 allows attackers to inject HTTP headers or smuggle HTTP/1.1 requests via header values. RestRequest.AddHeader, RestRequest.AddOrUpdateHeader, and RestClient.AddDefaultHeader pass header values to HttpHeaders.TryAddWithoutValidation without rejecting carriage-return or line-feed characters. Exploitation requires a consuming application to place attacker-controlled data in a header; a reachable web application can consequently issue attacker-chosen server-side requests.
Summary
What happened
CRLF injection in RestSharp 107 through 111 allows attackers to inject HTTP headers or smuggle HTTP/1.1 requests via header values. RestRequest.AddHeader, RestRequest.AddOrUpdateHeader, and RestClient.AddDefaultHeader pass header values to HttpHeaders.TryAddWithoutValidation without rejecting carriage-return or line-feed characters. Exploitation requires a consuming application to place attacker-controlled data in a header; a reachable web application can consequently issue attacker-chosen server-side requests.
The record
- CVE
- CVE-2024-45302
- Published
- Aug 29, 2024
- Updated
- Aug 30, 2024
- Vendor
- RestSharp
- Product
- RestSharp
- Classifications
- CWE-74, CWE-93, T1190
- Attack vector
- local
- Privileges
- unauthenticated
Timeline
How it unfolded
- Aug 29, 2024CVE publishedPublication date reported by the CVE source.
- Aug 30, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=>= 107, < 112.0.0
- Affected versionversion=107 <112.0.0
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Upstream CRLF request-smuggling proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo