Skip to content
XSS Write-up Beginner

How I Discovered RXSS Bug on Microsoft subdomain !!!

The 'q' parameter on a Microsoft Visual Studio downloads page reflected user input without proper sanitisation, allowing an attacker to inject an encoded iframe/textarea/img payload that executed JavaScript. An attacker could run script in the victim's browser in the context of the Microsoft domain.

medium.com

Published on medium.com

Hello, everyone👋🏻! I’m Sayanti.

Sayanti Chowdhury, 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

Root cause

Likely the application reflected the 'q' parameter into the page without sufficient output encoding or input sanitisation.

Impact

An attacker could execute arbitrary JavaScript in the context of the Microsoft subdomain, though the report notes the bug was out of scope for bounty.

What the attacker needed

Victim clicks a crafted link

How it was found

  1. Browse to the visualstudio.microsoft.com downloads page.
  2. Notice that the 'q' parameter is reflected in the page.
  3. Try various payloads until an encoded payload bypasses the defences.
  4. Confirm that the payload executes JavaScript in the browser.

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 (RXSS) bug happens when a website takes something you typed in a link and puts it straight back on the page without cleaning it. Here, the search parameter 'q' was echoed into the page, so a crafted link could make the browser run code written by the attacker. The attacker only needs to trick someone into clicking that link.

What is XSS?

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

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.