From Innocent Messages to Total Takeover: How I Hacked a Professional Network!
The chat system rendered raw HTML without sanitising it, allowing stored cross-site scripting. An attacker could send a malicious message that, when opened by the victim, executed script to steal session cookies and take over the account.
Published on medium.com
Let me take you on an exciting journey of how I uncovered a massive security flaw in a professional networking platform, similar to LinkedIn, and turned harmless chat messages into a devastating account takeover exploit! 😱
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
Impact
An attacker could hijack any user's account by sending a malicious chat message, and could automate the attack to compromise many accounts.
What the attacker needed
Two accounts on the platform; victim opens the chat message
How it was found
- Create two accounts, one as attacker and one as victim.
- Send basic HTML payloads from the attacker account to the victim account to test rendering.
- Send a stored XSS payload in a chat message.
- Open the chat as the victim and observe the script executing.
- Send a blind XSS payload that exfiltrates the victim's session cookies to an external endpoint.
- Use the stolen cookies to log in as the victim.
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.
The chat feature let people type HTML, the code that formats web pages, and displayed it without cleaning it first. That meant someone could send a message containing a small script. When the other person opened the chat, the script ran in their browser and could copy their login session, letting the sender act as them.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.