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.
Published on web.archive.org
{{media:0}}
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
- Visit the profile edit page.
- Add a Facebook profile URL.
- Start TamperData and submit the edit form.
- Intercept the POST request to the edit endpoint.
- Replace the social link parameter value with the JavaScript payload.
- 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.