(0Day) Microsoft Windows OneDrive SmartScreen Bypass Vulnerability
OneDrive does not apply or preserve the Mark-of-the-Web on files synced from untrusted cloud locations. An attacker can bypass SmartScreen and execute arbitrary code as the current user.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to bypass the Mark-of-the-Web protection mechanism on affected installations of Microsoft Windows. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.
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 report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely, OneDrive's file syncing implementation fails to apply or preserve the Mark-of-the-Web when writing files from the cloud to the local filesystem.
Impact
An attacker could bypass SmartScreen protection and execute arbitrary code in the context of the current user, but user interaction is required.
What the attacker needed
User visits a malicious page or opens a malicious file; OneDrive syncs files from untrusted locations
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 report has not been written yet. The Original tab links to the source.
The Mark-of-the-Web is a tag Windows adds to files downloaded from the internet, so it can warn you before opening them. OneDrive copies files from the cloud to your PC but forgets to add this tag, so Windows treats them as safe. An attacker can put a malicious file in a synced folder and trick you into running it without the usual warning.
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.