When Logout Isn’t Really Goodbye: A Subtle Data Exposure Bug.
After logging out, pressing the browser back button restored a fully populated page with sensitive personal information from the browser's back/forward cache, even though the session was invalidated server-side. An attacker with access to a shared device could view this residual data without any server interaction.
infosecwriteups.com
Published on infosecwriteups.com
How a “low severity” simple P4 bug still managed to teach a high-value lesson (and yes… it paid 💰). Beginner friendly…
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
The browser's back/forward cache (bfcache) restores the previous page from memory without revalidating with the server, and the application did not force a reload or redirect on back navigation.
What the attacker needed
Victim logs in on a shared device; victim logs out; attacker has physical access to the device
The fix
The issue was fixed; the text also suggests forcing a reload on back navigation or redirecting to a session-expired page.
How it was found
- Log in to the application using the QR code SSO flow.
- Log out and confirm the logout was successful.
- Press the browser's back button.
- Observe that the previously authenticated page reappears with sensitive personal information.
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, the server ends your session, but your browser may keep a copy of the last page in memory. If someone presses the back button, the browser can show that saved copy without asking the server, so private details remain visible on a shared computer.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.