CVE-2021-29479
Last modified
CVE-2021-29479 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. Ratpack is a toolkit for creating web applications. In versions prior to 1.9.0, a user supplied `X-Forwarded-Host` header can be used to perform cache poisoning of a cache fronting a Ratpack server if the cache key does not include the `X-Forwarded-Host` header as a cache key. EPSS estimates a 0.86% chance of exploitation in the next 30 days.
Description
Ratpack is a toolkit for creating web applications. In versions prior to 1.9.0, a user supplied `X-Forwarded-Host` header can be used to perform cache poisoning of a cache fronting a Ratpack server if the cache key does not include the `X-Forwarded-Host` header as a cache key. Users are only vulnerable if they do not configure a custom `PublicAddress` instance. For versions prior to 1.9.0, by default, Ratpack utilizes an inferring version of `PublicAddress` which is vulnerable. This can be used to perform redirect cache poisoning where an attacker can force a cached redirect to redirect to their site instead of the intended redirect location. The vulnerability was patched in Ratpack 1.9.0. As a workaround, ensure that `ServerConfigBuilder::publicAddress` correctly configures the server in production.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Ratpack Project | Ratpack | < 1.9.0 |
References
- https://github.com/ratpack/ratpack/security/advisories/GHSA-w6rq-6h34-vh7qThird Party Advisory
- https://portswigger.net/web-security/web-cache-poisoningExploit, Third Party Advisory
- https://github.com/ratpack/ratpack/security/advisories/GHSA-w6rq-6h34-vh7qThird Party Advisory
- https://portswigger.net/web-security/web-cache-poisoningExploit, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-29479?
How severe is CVE-2021-29479?
How do I fix CVE-2021-29479?
Are you affected by CVE-2021-29479?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
