Stored XSS in Microsoft outlook
A file uploaded through the Outlook web application had a filename containing an XSS payload. The web version sanitised it, but the iOS app did not, so opening the message in the iOS app executed the script.
I want share about my finding in Microsoft outlook IOS application that could affect 2.62.0 and below. I’m not bounty hunter and i really don’t want to become.
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 iOS app did not sanitise or encode the uploaded file name before displaying it, unlike the web version.
Impact
An attacker could run script in the context of the Outlook iOS app when a victim opened the crafted message, though the text does not describe what data or actions that script could reach.
What the attacker needed
Ability to send a file to the victim; victim opens the message in the iOS app
How it was found
- Upload a file through the Outlook web application with a crafted file name containing an XSS payload.
- Open the message containing that file in the Outlook iOS app.
- The payload executes in the iOS app.
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.
Cross-site scripting (XSS) is when an attacker gets their own code to run inside someone else's app or website. Here, the attacker put code in a file name. The web version cleaned the file name, but the iPhone app did not, so the code ran when the message was opened on the phone.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.