How I Discovered a $3000 Microsoft Outlook Security Vulnerability
Outlook's attachment preview feature allowed users to bypass restrictions on downloading attachments to unauthorised devices by manipulating the URL after previewing an attachment. An attacker could download attachments directly on unauthorised devices, potentially accessing sensitive files.
medium.com
Published on medium.com
Hey everyone! Today, I’m sharing my experience of uncovering a critical security vulnerability in Microsoft Outlook.
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
Impact
This could have led to unauthorised access to important files in environments where Outlook handles sensitive documents.
What the attacker needed
Outlook account with attachment restrictions; Access to an email with an attachment; Ability to preview attachments
The fix
Microsoft prepared and released a patch for the vulnerability.
How it was found
- Log in to Outlook and open an email with an attachment.
- Click Preview to view the attachment in the browser.
- Copy the part of the URL after /sxs/.
- Build a new URL using the GetAttachmentDownloadToken endpoint with the copied value as the id parameter.
- Paste the new URL into the browser to download the attachment, bypassing restrictions.
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.
Some organisations block downloading email attachments on personal devices to protect sensitive data. The researcher found that after previewing an attachment in Outlook, changing the web address in a certain way let them download the file anyway, even on a device that should have been blocked. This means the protection could be bypassed.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.