Skip to content
XSS Write-up Beginner

Discovering Critical Security Vulnerabilities: My Journey into Microsoft’s Power Apps Portal

The file upload feature on the Power Users forum did not sanitise file names, allowing an attacker to inject script that executes when the file is viewed. An attacker could run arbitrary JavaScript in a victim's browser, potentially stealing session cookies or performing actions on their behalf.

ibrahimxss Follow

Published on ibrahimxss.medium.com

I found myself exploring the Microsoft Power Apps portal, specifically targeting the subdomain: https://powerusers.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 rendered the uploaded file name as HTML without encoding or sanitising it, so script in the name executed when the file was viewed.

Impact

An attacker could steal session cookies, perform actions on behalf of users, redirect to malicious sites, or inject phishing content; the text does not mention any defence that limited the exploit.

What the attacker needed

A free account on the forum; victim views the uploaded file

How it was found

  1. Log in to the Power Users forum with an email address.
  2. Go to the forum post page for the PowerAppsForum1 board.
  3. Click the file attachment option.
  4. Upload a file whose name contains an XSS payload.
  5. View the uploaded file to trigger 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 doesn't clean that name, an attacker can put code in it that runs in other users' browsers. This is called stored cross-site scripting (XSS) because the malicious code is saved on the site and runs later.

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.