Skip to content
XSS Write-up Beginner

Get your Microsoft account hijacked by simply clicking connect button -Adesh Kolte

A stored cross-site scripting flaw existed in the social profile link field on Microsoft's social platform, allowing an attacker to inject JavaScript that executed when other users clicked the social connect button. This could steal session cookies and lead to account takeover.

Adesh Nandkishor kolte Follow

Published on web.archive.org

{{media:0}}

Adesh Kolte, on web.archive.org

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 application failed to validate or sanitise user-supplied social profile URLs on the server side, allowing JavaScript to be stored and later executed.

What the attacker needed

Attacker has a profile on the site; victim clicks the social connect button

How it was found

  1. Visit the profile edit page.
  2. Add a Facebook profile URL.
  3. Start TamperData and submit the edit form.
  4. Intercept the POST request to the edit endpoint.
  5. Replace the social link parameter value with the JavaScript payload.
  6. Stop tampering; the malicious code is now stored in the social button.

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.

This is a stored cross-site scripting (XSS) bug. The attacker saved a malicious link in their profile's social media button, so when another user clicked it, the attacker's code ran in the victim's browser and sent their login cookies to the attacker. With those cookies, the attacker could log in as the victim.

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 Adesh Nandkishor kolte

View all

14 more disclosed reports, best first.

More from Microsoft

View all

The newest disclosed reports for this program.

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.