New Technique Bypass File Upload
Outlook Web applied security filtering to SVG files uploaded as attachments but not to SVG content pasted into the email body, allowing embedded scripts and iframes to execute on the attachment.outlook.live.net domain. An attacker could send an email that, when the recipient views it, runs JavaScript or loads a fake page under a Microsoft subdomain.
infosecwriteups.com
Published on infosecwriteups.com
· When I uploaded the SVG file as an attachment, Microsoft made it available for download.
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 email editor's contentEditable area inserted pasted SVG content as raw HTML without applying the same server-side sanitisation used for file attachments.
Impact
An attacker could run JavaScript or load a fake page on the attachment.outlook.live.net subdomain, though this domain did not have access to outlook.live.com cookies.
What the attacker needed
Outlook Web account; victim opens the email or link
The fix
The vulnerability is currently being addressed by Microsoft, but the text does not describe the specific fix.
How it was found
- Create an SVG file containing malicious content such as a script or iframe.
- Copy the SVG file and paste it into the Outlook Web email body using Ctrl+C and Ctrl+V.
- Send the email.
- Right-click the displayed image and copy its URL, which is automatically generated by Outlook.
- Send that link to a victim to trigger the exploit.
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.
Outlook Web lets you write emails in a rich text editor. The researcher found that if you copy an SVG image file and paste it into the email body, Outlook treats the file's text as part of the email's HTML instead of as an attachment. That means any script inside the SVG runs in the browser when the email is opened, which is dangerous because it can run on a Microsoft-owned domain.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.