Skip to content
XSS Write-up Intermediate

How I Found Stored Xss Html Injection Vulnerability On Microsoft

A stored cross-site scripting and HTML injection vulnerability existed in Microsoft's partner portal, where a user's display name containing a malicious payload was executed when another user viewed their account. An attacker with permission to change names could inject a payload that would run in the context of other users, potentially stealing sensitive information.

Abdul Rehman Parkar Follow

Published on cybersecuritywriteups.com

FREE LINK

Abdul Rehman Parkar, on cybersecuritywriteups.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 failed to sanitise user-supplied input in the name field before rendering it in a notification pop-up.

Impact

A malicious user with permission to change names could inject a payload that executes when another user logs in to the partner portal, potentially allowing the attacker to receive sensitive information.

What the attacker needed

Azure account with user creation rights; Victim logs in to partner.microsoft.com

The fix

The vulnerability was fixed by Microsoft.

How it was found

  1. Create a user in Azure with a name containing an HTML/XSS payload.
  2. Log in to partner.microsoft.com with that user.
  3. Click on 'View account' to trigger the notification pop-up.
  4. Observe the payload executing.

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. A user's name field was not properly cleaned, so when someone else viewed that name, harmful code ran in their browser. This could let an attacker steal information from 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.

More by Abdul Rehman Parkar

View all

7 more disclosed reports, best first.

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.