How Improper cache storage lead to Make me $$$
After logging out, the Intercom chat history remained stored in the browser's local storage under a parameter containing JWT tokens, allowing anyone with access to the victim's system or cookies to read past conversations. The author claims this is a flaw in how the target domain caches Intercom messages, not an Intercom service bug.
medium.com
Published on medium.com
Hello guys this is Praveenarsh again , apologize for the delay blog .Am stuck with some corporate issues. Today am came with a unique and interesting bug which took as P4 and got 100$
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 target domain stored Intercom chat data, including JWT tokens, in local storage and did not clear it on logout.
Impact
Anyone who could access the victim's system or cookies could read the chat messages, even after logout, because the messages were not cleared.
What the attacker needed
Victim logged in and used Intercom chat; attacker has access to victim's system or cookies
How it was found
- Log in and open the Intercom chat box, then send some sensitive messages.
- Log out of the account.
- Inspect the page source and check local storage for stored cookies or parameters.
- Find the parameter named Intercom.Intercom-state containing conversation data and JWT tokens.
- Decode the JWT token to view the entire chat history from when logged in.
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, it should forget your private data. Here, the chat messages stayed saved in the browser's local storage, which is a small database inside your browser. Anyone who could use that same browser or steal its cookies could read those old chats.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.