pentesting, updated

Check whether the application transmits sensitive data via the referrer header

Confirm sensitive values never leave the app in a URL that becomes the next page's Referer.

Goal

Find cases where a session token, reset code or other secret ends up in the URL and is then leaked via Referer when the page links out.

How to test

Walk the app watching for secrets in the query string, then check what gets sent onward:

curl -sI https://example.com/page?token=abc123 -e "https://example.com/reset?token=abc123"
curl -sI https://example.com | grep -i referrer-policy

What to look for

A missing or weak Referrer-Policy (unsafe-url) combined with a secret in the query string, where an outbound link or third-party resource would receive the full URL.

References

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