Breaking out of Windows Kiosks using only Microsoft Edge
A Windows kiosk mode restricted to Microsoft Edge could be escaped by using the URL bar to launch an alternative protocol handler, which opened an unrestricted Edge browser. From there, the attacker enabled Internet Explorer mode, created a local HTML file with an ActiveXObject shell, and achieved command execution.
blog.nviso.eu
Published on blog.nviso.eu
In this blog post, I will take you through the steps that I performed to get code execution on a Windows kiosk host using ONLY Microsoft Edge. Now, I know that there are many resources out there for breaking out of kiosks and that in general it can be quite easy, but this technique was a first for me.
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 kiosk configuration allowed the URL bar and keyboard shortcuts, and did not prevent launching an unrestricted browser instance or enabling Internet Explorer mode, which permits ActiveX execution.
Impact
An attacker with physical access to the kiosk could execute arbitrary commands on the host, potentially leading to full system compromise.
What the attacker needed
Physical access to kiosk; URL bar available; keyboard available
The fix
The author suggests hiding the URL bar, disabling or remapping keys, enabling AppLocker, and configuring Edge to block about:flags and edge://settings.
How it was found
- In the restricted Edge browser, type an alternative protocol URL (e.g., ftp://something) in the address bar.
- When prompted to choose an application, select Microsoft Edge and deselect 'Always use this app'.
- An unrestricted Edge browser opens.
- In the unrestricted browser, go to Settings > Default browser and enable 'Allow sites to be reloaded in Internet Explorer mode'.
- Add the path to a future HTML file (e.g., pwn.html) in the Internet Explorer mode pages list.
- Use the developer console to replace the page content with a script that uses ActiveXObject to run shell commands, save the page as pwn.html, and open it, allowing blocked content.
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 kiosk is a computer set up to only run one application, like a browser, so people can't misuse it. The author found that by typing a special address in the browser's address bar, they could open a normal browser window without restrictions. Then they used a feature that lets the browser run old-style scripts to execute commands on the computer.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.