Cache Control the P4 Bug
Sensitive account pages were served from the browser cache after logout, so pressing the back button showed the previous user's email, phone number and saved banking details. An attacker with access to the same shared device could read that data without knowing the password.
osintteam.blog
Published on osintteam.blog
In Today’s blog we will learn and exploit the Best Underrated P4 Bug Cache Control on Sensitive Page. Accepted as P4 on Bugcrowd and some Self Hosted Targets.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the sensitive account page was sent without cache-control headers that prevent storage, so the browser kept a copy after logout.
Impact
On a shared or public computer, the next person could view the previous user's email, phone number and saved banking details after logout, which could lead to identity theft or account takeover.
What the attacker needed
Victim logs in on a shared device; victim logs out; attacker uses the same browser
The fix
Sensitive pages should be served with strict cache-control headers such as no-store, and logout should redirect to the login page so cached content is not shown.
How it was found
- Open the account settings page while logged in.
- Log out of the application.
- Press the browser's back button.
- Observe that the account page is shown again with sensitive data.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
When you log out of a website, your browser may still keep a copy of the page you were viewing. If the site does not tell the browser to delete that copy, the next person on the same computer can press the back button and see your private information. This report shows that happening on an account settings page.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.