The $8,000 Shortcut: Hijacking Microsoft Edge via NTFS Directory Junctions
Microsoft Edge's elevated background cleanup routine did not check for NTFS directory junctions, so a low-privileged user could replace a target directory with a junction pointing to a protected system directory. When the cleanup ran with elevated privileges, it followed the junction and deleted or modified critical system files.
infosecwriteups.com
Published on infosecwriteups.com
Over my years defending enterprise architectures, I’ve realized one fundamental truth about cybersecurity: The most beautiful vulnerabilities don’t always come from broken code. They come from broken assumptions.
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
A low-privileged user could force the system to overwrite, delete, or modify critical files outside the browser's intended security scope, achieving elevation of privilege.
What the attacker needed
Low-privileged local user account; Edge background cleanup runs with elevated privileges; ability to create NTFS directory junctions
The fix
The routine was patched to properly verify junctions and symlinks before executing privileged operations.
How it was found
- As a low-privileged user, identify a non-sensitive directory used by Edge's elevated background cleanup routine.
- Delete that target directory and replace it with a crafted NTFS Directory Junction.
- Point the junction at a highly restricted system directory such as the Windows system folder.
- Wait for Edge's scheduled cleanup to run with elevated privileges, which follows the junction and acts on the protected files.
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.
A directory junction is a Windows feature that makes one folder act as a shortcut to another. The browser had a cleanup job that ran with high privileges and trusted the folder path it was given. An attacker could swap that folder for a junction to a sensitive system folder, so the cleanup job would delete or change important files it should never touch.
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.