Non-persistent XSS at Microsoft -Adesh Kolte
A Microsoft research search page reflected the search query parameter without sanitising it, so a crafted link could run script in the victim's browser. The author claims this could steal cookies and take over a logged-in Microsoft account.
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 search parameter was validated only in the page's search textbox, with no server-side validation or output encoding when the same value arrived directly in the URL.
Impact
An attacker could craft a link that runs script in a logged-in user's browser, which the author says could steal cookies and hijack the account; no defence is mentioned.
What the attacker needed
Victim clicks a crafted link; victim is logged in to Microsoft
How it was found
- Open the research search page with an empty query parameter.
- Put the script payload into the q parameter of the URL and load it.
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.
A reflected cross-site scripting (XSS) bug means a website takes something from the address bar and puts it straight into the page without cleaning it. If that something is code, the browser runs it as if the site itself wrote it. Here the search box was checked, but typing the same thing directly into the web address was not.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.