enigma0x3/SteamEoP.ps1 Secret
A Steam client service registry key could be replaced with a symbolic link pointing at the service's own registry key, so that the service rewrote the permissions on that key. The attacker could then change the service's binary path and restart it to run code as the SYSTEM account.
gist.github.com
Published on gist.github.com
Clone this repository at <script src="https://gist.github.com/enigma0x3/03f065be011c5980b96855e2741bf302.js"></script> - Save enigma0x3/03f065be011c5980b96855e2741bf302 to your computer and use it in GitHub Desktop.
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 Steam client service followed a registry symbolic link placed in a user-writable location and applied its own privileged permission changes to the linked target key.
Impact
A local attacker could gain code execution as NT AUTHORITY\SYSTEM.
What the attacker needed
Local access to the Windows machine; Steam client installed; ability to write the Steam NSIS registry key
How it was found
- Install and import the NTObjectManager module.
- Delete the Steam NSIS registry key.
- Create a registry symbolic link from that key to the Steam Client Service key.
- Restart the Steam Client Service so it overwrites the permissions on its own key.
- Change the service's ImagePath to a command shell.
- Restart the service to trigger the elevation.
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.
Windows services are programs that run in the background, often with high privileges. This script tricks a Steam background service into changing the permissions on its own settings, then edits those settings so the service launches a command prompt with the highest system rights.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.