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.
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.
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
- Log in to the Power Users forum with an email address.
- Go to the forum post page for the PowerAppsForum1 board.
- Click the file attachment option.
- Upload a file whose name contains an XSS payload.
- 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.