Exploiting Steam: Usual and Unusual Ways in the CEF Framework
The Steam client's embedded browser (CEF) exposed privileged JavaScript objects to untrusted pages, allowing arbitrary file read and write, and command injection in the steam://rungame handler. An attacker could chain these to achieve remote code execution on the victim's machine.
The Chromium Embedded Framework (CEF) is an open-source framework that allows developers to embed the Chromium engine in their applications. Although CEF is widely employed in a range of popular software, including WeChat and the Epic Games Launcher, there has been little security research on it.
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 root cause is that the Steam client's custom CEF integration exposed privileged JavaScript objects (SteamClient) to pages that should not have access, and failed to properly sanitise inputs in URL handlers, leading to arbitrary file read/write and command injection.
Impact
An attacker could achieve remote code execution on the victim's machine by chaining these vulnerabilities, potentially leading to full system compromise.
What the attacker needed
Victim visits a malicious webpage; Steam client installed and running
The fix
The vulnerabilities were likely fixed by restricting privileged object injection to trusted origins, sanitising URL handlers, and updating the CEF version.
How it was found
- Open about:blank from an attacker-controlled page to obtain the SteamClient object.
- Use SteamClient.BrowserView to load a local file (e.g., file:///etc/passwd).
- Use the FindInPage feature to brute-force the file content byte by byte.
- Read the steam.token file to bypass the devkit-1 token check.
- Use steam://openexternalforpid to bypass the whitelist and create arbitrary files via devkit-1.
- Create a malicious non-Steam game entry and launch it via steam://rungameid to execute commands.
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.
The Steam client includes a built-in web browser for showing store pages and other content. The researchers found that a malicious website could trick this browser into giving it special powers, like reading files on your computer or running programs. By combining several such tricks, an attacker could run any code on the victim's machine.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.