Skip to content
XSS Write-up Beginner

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.

lordofheaven1234 Follow

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! 😱

LordofHeaven, on medium.com

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

  1. Create two accounts, one as attacker and one as victim.
  2. Send basic HTML payloads from the attacker account to the victim account to test rendering.
  3. Send a stored XSS payload in a chat message.
  4. Open the chat as the victim and observe the script executing.
  5. Send a blind XSS payload that exfiltrates the victim's session cookies to an external endpoint.
  6. 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.

More by lordofheaven1234

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.