October 1, 2026
Easy Bug Series | #05
Did You Really Log Out?

By Soham D. Jadhav
2 min read
You Clicked Logout.
You closed the browser.
You think your sensitive data is gone.
But what if the browser still has it?
Let's test something that is often overlooked:
Browser Caching.
Hello everyone π
This is my 5th article of The Easy Bug Series, where i share my own security testing methodologies that can help beginners to get their first valid bug.
In today's article, we'll look at a small but interesting issue:
We usually test on the pages which the application properly protected.
But there is another question we should ask:
What happens to those pages after logout?
Let's Find thatβ¦
First, Login to your test account
Start with an account that you use for testing.
Login to the application.
Go to the pages or endpoints where you can see any sensitive details like:
- Account settings
- Profile
- Billing information
- Order history
- Dashboard
- Personal information
Now, refresh the page once and make sure it loads normally.
Now, Logout
Logout from your account
You would be redirected to the login page or home page.
At this point, everything looks normal. like nothing happened.
But don't stop here.
Press the browser back button.
This is where the intresting part coming inβ¦
What happens Next?
There are different possible behaviours.
behaviour 1 β The page is not accessible
You press back button.
The page asks you to login again.
This is an expected behaviour.
behaviour 2 β The browser shows the old page
You press the back button.
And suddenly you can see the previously visited authenticated pages.
Your account information is visible again
You may even go to the previously loaded pages.
Now we have something intresting to investigate.
Check the Cache-Control Headers
open the affected request in your browser's developers tools or burpsuite.
Look at the response headers.
Specifically Look for this :
Cache-ControlCache-ControlFor sensitive authenticated pages, applications should use appropriate cache-control directives to prevent sensitive content from being stored and resued by the browser.
For example, you may see something like this:
Cache-Control: no-storeCache-Control: no-storeor other appropriate directives depending on the application's requirements.
if sensitive authenticated content is cached when it shouldn't be, investigate further.
Why Does This Matter?
Imagine this situation:
You log into an application from a shared computer.
You open your account dashboard.
Then you logout.
the next person open the same browser and press back button.
if sensitive account information is still available from the browser cache, they may be able to see information from your previous session.
The actual impact depends on:
- What information is cached
- Whether the content can be accessed after logout
- Browser behaviour
- Cache headers
- Whether the application properly invalidates or revalidates the content
So don't report it just because you see an old page after pressing back.
What Should You Check?
Whenever you are testing authenticated pages, try this first:
- Login to the application
- Open a sensitive page
- Logout
- Press the browser Back button
- Refresh the page
- Check whether sensitive information is still visible
- Inspect the
Cache-Controlresponse header - Try the same test in a fresh browser/session
- Verify whether the information is actually sensitive
If sensitive authenticated content remains accessible from cache after logout, document the exact behaviour before reporting it.
Final Thoughts
Sometimes we ask:
"Can I access this page while logged out?"
But also ask:
"Can my browser still remember it?"
That's it for The Easy Bug Series | #05.
What would you try to chain with improper cache-control? π
See you in the next one!
Find me here:
π LinkedIn π» GitHub π― TryHackMe
Happy Hunting! ππ
#BugBounty #WebSecurity #CyberSecurity #Pentesting #VAPT #BugBountyTips