Inadequate cache control in gitter allows to view private chat room
Gitter did not set cache-control headers on private chat rooms, so the browser stored the page. After signing out, pressing the back button showed the private room and even allowed chatting while logged out.
Originally disclosed on HackerOne
- Disclosed after 25 days
Hi Gitlab,
Summary: I have found a inadequate cache control vulnerability in Gitter.
Description: You can use the backspace button to get the full access to the account. There is no cache control and the browser saves sensitive information of a private chat room. This report is influenced by the disclosed report #407763. The impact and attack scenario is also the same.
Steps To Reproduce:
- Sign in to Gitter
- Go to a private room
- Sign-out from the device
- Click on backspace
- Chat in the private room
You can access the private room without actually being logged in. You can also chat from the logged out account.
Impact
Sensitive information can get disclosed through a single backspace.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
A person with access to the same browser after logout could view private chat content and send messages in the room without being logged in.
What the attacker needed
Access to the same browser after logout; victim previously opened a private room
How it was found
- Sign in to Gitter.
- Open a private room.
- Sign out from the device.
- Press the back button.
- Send a message in the private room.
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 report has not been written yet. The Original tab links to the source.
When you visit a web page, your browser often keeps a copy so it can show it again quickly. If a site does not tell the browser not to keep private pages, someone using the same computer after you log out can press the back button and still see your private chat. Here the page even let the logged-out person send messages.
What is Cache bugs?
A cache and the origin disagree about a request, so a poisoned response is served to everyone or a private page is stored as public.