pentesting, updated

Testing for browser cache weaknesses

Confirm authenticated pages and sensitive data aren't left cacheable in the browser after logout.

Goal

Verify sensitive, authenticated responses can’t be replayed from browser cache after logout.

How to test

Check cache headers on authenticated pages:

curl -sI https://example.com/account -H "Cookie: session=<valid>" | grep -i cache-control

Then log out and press the browser back button on a previously visited authenticated page — see whether it renders from cache instead of redirecting to login.

What to look for

Missing or weak Cache-Control (no-store expected) on authenticated pages, or sensitive content visible via back-button after logout.

References

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