pentesting, updated

Test for web cache deception

Trick a shared cache into storing a logged-in user's private response under a cacheable-looking URL.

Goal

Confirm an authenticated, personal page can’t be cached under a URL a cache mistakes for a static asset.

How to test

As an authenticated user, request the sensitive page with a static-looking suffix appended to the path:

curl -s https://example.com/account.php/anything.css -H "Cookie: session=<your-session>"

If that response contains the account page, repeat the exact same request unauthenticated (no cookie, or a different browser/client):

curl -s https://example.com/account.php/anything.css

What to look for

The unauthenticated request returns the previously-logged-in user’s data — proof the cache stored and served a private response under the decoy URL.

Notes

Test with your own account only — this proves the cache can leak another user’s data without needing to actually read anyone else’s.

References

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