Microsoft Bug Bounty Writeup – Stored XSS Vulnerability
A story publishing platform on a Microsoft subdomain stored user-supplied input without proper sanitisation, allowing an attacker to inject a script that executed when the story was viewed. The author demonstrated this by adding a story containing a simple XSS payload, which triggered a popup on the next screen.
This blog is about the write up on Microsoft on how I was able to perform Stored XSS Vulnerability on one of the subdomains of Microsoft.
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 stored user-supplied story content and rendered it without proper output encoding or sanitisation.
Impact
An attacker could execute arbitrary script in the context of the Microsoft subdomain when a victim views the crafted story, potentially leading to actions such as session theft or defacement, though the text does not detail specific consequences.
What the attacker needed
A free account; victim views the story
How it was found
- Perform subdomain enumeration on Microsoft domains and select storybook.office.com as a target.
- Register an account on the story publishing platform.
- Find the option to share a story and enter a simple XSS payload in the input fields.
- Add the story and observe the payload executing in a popup on the next screen.
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.
Stored XSS is when a website saves something a user types, like a story, and later shows it to other people without cleaning it first. If the saved text includes a small script, the browser runs it as if the website itself had written it, which can let an attacker do things in the victim's session.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.