Skip to content
XSS Write-up Beginner

Discovering Critical Security Vulnerabilities: My Journey into Microsoft’s Tech Community Portal

The file upload feature on Microsoft's Tech Community portal did not sanitise file names, allowing an attacker to inject script that executed when the file was viewed. An attacker could run arbitrary JavaScript in a victim's browser, potentially stealing session cookies or redirecting to phishing pages.

ibrahimxss Follow

Published on ibrahimxss.medium.com

I found myself exploring Microsoft’s Tech Community portal, specifically targeting the subdomain: https://techcommunity.microsoft.com. Driven by curiosity and a passion for cybersecurity, I embarked on a journey that would soon reveal significant security vulnerabilities.

xss0r, on ibrahimxss.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 inserted the uploaded file name into the page without encoding or sanitising it, so HTML and script in the name were rendered as code.

Impact

An attacker could execute JavaScript in a victim's browser to steal session cookies, perform actions as the user, or redirect to phishing pages; the report does not state that any defence blocked this.

What the attacker needed

A user account on the portal; victim views the uploaded file

How it was found

  1. Log in to the Tech Community portal with an email address.
  2. Open a forum reply page that allows attachments.
  3. Use the file attachment control to upload a file whose name contains HTML and script.
  4. View the uploaded file so the page renders the file name and executes the script.

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.

When you upload a file, the website shows its name. If the site does not clean that name, it can contain code that runs in your browser. This is called stored cross-site scripting (XSS) because the harmful code is saved and runs later for anyone who views the file.

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 ibrahimxss

View all

8 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.