Thanksgiving Treat: Easy-as-Pie Windows 7 Secure Desktop Escalation of Privilege
The Windows UAC Secure Desktop certificate dialog contained a hyperlink in the 'Issued by' field that, when clicked, launched a browser as SYSTEM. An attacker could use this to escalate privileges to SYSTEM.
zerodayinitiative.com
Published on zerodayinitiative.com
This vulnerability is a truly delicious one, and credit for it goes to ZDI contributor Eduardo Braun Prado. Your guests won’t believe how easy it is to escalate to SYSTEM!
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 UAC certificate dialog failed to disable a hyperlink in the 'Issued by' field that is generated from a specific certificate extension, allowing the launch of a browser as SYSTEM.
Impact
An attacker could escalate privileges from a low-privileged user to SYSTEM, potentially leading to full system compromise.
What the attacker needed
Windows 7 (or affected Windows version); Low-privileged user account; User interaction with UAC prompt
The fix
Microsoft patched this vulnerability in November 2019 by ensuring the Windows Certificate Dialog properly enforces user privileges.
How it was found
- Right-click any executable and choose 'Run as administrator' to open a UAC prompt on the Secure Desktop.
- Click 'Show details' to expand the dialog and reveal a link to the Windows certificate dialog.
- In the certificate dialog, click the hyperlink in the 'Issued by' field (present when the certificate contains the SpcSpAgencyInfo OID).
- A browser launches as NT AUTHORITY\SYSTEM on the normal desktop, visible after closing the UAC dialogs.
- Use the browser to achieve further actions, such as opening a command prompt as SYSTEM.
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.
User Account Control (UAC) asks for permission before making system changes. These prompts run on a secure screen to prevent tampering. A flaw in the certificate details shown in the prompt allowed a normal user to open a web browser with the highest system privileges, which could then be used to take full control of the computer.
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.