Microsoft Windows WIA Junction Privilege Escalation Vulnerability
The Windows Image Acquisition service could be tricked into following a junction so that it overwrote a file of the attacker's choosing. A local attacker who already had low-privileged code execution could use this to escalate to SYSTEM and run code at that level.
Originally disclosed on Zero Day Initiative
This vulnerability allows local attackers to escalate privileges on affected installations of Microsoft Windows. An attacker must first obtain the ability to execute low-privileged code on the target system in order to exploit this vulnerability.
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 the service followed a junction created by a low-privileged user and wrote to the redirected location without checking where the path really led.
Impact
A local attacker with low-privileged code execution could overwrite a chosen file and escalate to SYSTEM, though the advisory gives no further detail on limits.
What the attacker needed
Ability to run low-privileged code locally
The fix
Microsoft issued an update to correct the vulnerability.
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.
A junction is a kind of shortcut on Windows that points to a folder, and programs that follow it can be fooled into writing somewhere they should not. Here a background Windows service that handles images could be made to overwrite an arbitrary file, and because the service runs with high privileges, the attacker gains those privileges too. The attacker must already be able to run some code on the machine at a low level before this works.
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.