In-depth lesson · Web cache poisoning
Tips for beginners
Every point the Web cache poisoning reports back under this heading, best-backed first, each with the reports it is seen in.
-
When you find a potential poisoning, demonstrate impact clearly. Show that a poisoned response is served to other users, ideally with a harmless payload that proves execution or data leakage. For example, use a domain you control to show that links are injected, or show that a cached error page blocks legitimate access.
Seen in 4 reports
-
Pay attention to redirects and error pages. Cacheable redirects generated from headers like X-Forwarded-Host or X-Forwarded-Port can be poisoned to point to attacker-controlled domains. Similarly, cached error pages can cause denial of service.
Seen in 4 reports
-
Look for unkeyed inputs. Try adding or modifying headers like X-Forwarded-Host, X-Forwarded-Port, and X-Forwarded-Scheme, and see if they affect the response without changing the cache key. Also test unkeyed GET parameters by adding them and checking if the response changes for other users.
Seen in 3 reports
-
Check for discrepancies in request parsing. Send requests with malformed Transfer-Encoding headers, null bytes, or unusual path encodings, and see if the cache stores a different response than the origin intended. Tools like differential fuzzing can help find these discrepancies.
Seen in 3 reports
-
Check for cache poisoning in less obvious places, such as DNS resolvers, package registries, and CI build caches. These can have wide-reaching impact and are often overlooked.
Seen in 3 reports
-
Do not report findings without impact. A cache poisoning that only affects your own session or requires unrealistic user interaction is unlikely to be accepted. Show that the poisoning affects other users or critical functionality.
-
Test across different caching layers. If an application sits behind multiple caches, a poisoning might only affect one layer. Try to understand the architecture and test each layer separately.
-
If you find a cache poisoning vulnerability, report it with clear steps to reproduce and evidence of impact. Include the exact requests and responses, and explain how the poisoning affects other users.
Seen in 2 reports
-
Start by identifying cacheable responses. Look for headers that indicate caching, such as those from CDNs or reverse proxies, and test whether responses are reused across requests. Focus on endpoints that are likely to be cached, such as static files, API endpoints, and pages behind a CDN.
Seen in 1 report
-
Consider chaining cache poisoning with other vulnerabilities. A poisoned response can lead to stored XSS, which can then be used for account takeover. Look for opportunities to escalate impact.
Seen in 1 report
-
Use automation carefully. Scanner templates can help find cache poisoning, but they can also produce false positives. Always manually verify any findings and ensure they have real impact.
Seen in 1 report
-
$40,000
-
-
Learn from public reports and walkthroughs. The evidence includes detailed write-ups of cache poisoning exploits, which can provide insights into common patterns and pitfalls.
Seen in 1 report