Achieving Remote Code Execution in Steam: a journey into the Remote Play protocol
The author reverse engineered Steam's Remote Play protocol and fuzzed the client and server implementations, finding several memory-safety and logic bugs including a critical remote code execution in the streaming client. An attacker could send crafted protocol messages to a victim's client to trigger memory corruption, and a guest victim needs no game ownership or prior friendship and connects automatically when an invite link is opened.
Published on blog.thalium.re
Valve, the company behind the widespread videogame platform Steam, released in 2019 a feature called Remote Play Together. It allows sharing local multi-player games with friends over the network through streaming.
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 memory-safety mistakes in the parsing and handling of Remote Play protocol messages, such as out-of-bounds accesses, heap overflows and format string bugs, in the client and server binaries.
Impact
A malicious host could achieve remote code execution on a guest's streaming client, and because a guest needs no game, no friendship and connects automatically on opening an invite link, the attack could be made zero-click.
What the attacker needed
Victim opens a crafted invite link; attacker acts as host or guest; no game ownership needed for guest
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.
Steam Remote Play lets one person stream a game to a friend over the internet. The two programs talk using a custom message format, and the researcher studied that format and then fed it deliberately malformed messages to see if the programs would crash or misbehave. Some of those malformed messages could let an attacker run their own code on the other player's computer.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.