pentesting, updated

Test for web cache poisoning

Find a request header that gets reflected into a cacheable response, then turn that into a payload served to every subsequent visitor.

Goal

Confirm an attacker-controlled header can’t get cached and replayed to other users.

How to test

Find unkeyed inputs that influence the response (Burp’s Param Miner extension automates this), then confirm the response is actually cached:

curl -sI https://example.com/ -H "X-Forwarded-Host: evil.com"
curl -sI https://example.com/ -H "Host: evil.com"

Check cache headers (X-Cache: HIT, Age) to confirm the poisoned response was stored, then craft a payload (reflected XSS, an open redirect, or page defacement) in the reflected value.

What to look for

X-Cache: HIT (or equivalent) on a response containing your injected header value — proof the poisoned response is now being served from cache to other visitors.

Notes

A positive here affects every visitor until the cache entry expires or is purged — confirm scope covers active testing before you poison anything, even your own test value.

References

§ home
~/knubertus/home/
1,1 Top