Microsoft Windows Shift F10 Bypass and Autopilot privilge escalation
The Windows installer's Shift+F10 command prompt restriction can be bypassed using accessibility features like Sticky Keys to launch the Control Panel and then execute commands, allowing an attacker to delete a tag file and remove restrictions. This enables local administrator privilege escalation and persistence via a Windows service, even during Autopilot provisioning.
Published on k4m1ll0.com
Back to the advisories · Contact
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 installer's restriction mechanism relies on a tag file and UI-level blocking, but accessibility features provide alternative ways to launch applications and execute commands, bypassing the intended restrictions.
Impact
An attacker with physical access during Windows setup can bypass installer restrictions, gain local administrator privileges, and maintain persistence, even on Autopilot-managed devices; Microsoft stated it is not an Autopilot vulnerability and will not fix it.
What the attacker needed
Physical access to the device during setup; ability to interact with the installer UI
How it was found
- Press Shift five times to open the Sticky Keys window.
- Use ALT+TAB to select the Sticky Keys window and press Windows+R to open the Run dialog.
- Type 'powershell' and press Enter to open a PowerShell window.
- Run 'Start-Process powershell -verb runAs' and accept the UAC prompt to get an elevated PowerShell.
- Navigate to c:\windows\setup\scripts and delete the DisableCMDRequest.TAG file.
- Restart the machine with 'shutdown -r -t 0 -f' to remove 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.
During Windows setup, pressing Shift+F10 normally opens a command prompt, but companies can disable this to stop users from running commands. The researcher found that by using accessibility tools like Sticky Keys, you can still open other windows and run commands, then delete a file that enforces the restriction. This lets someone with physical access to the laptop during setup gain full control, even on company-managed devices.
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.