Community server list
Two bugs in CS:GO's client-server protocol allowed a malicious community server to leak uninitialised memory and then achieve remote code execution on a connecting player's machine. The first bug leaked pointers to break ASLR, and the second gave control of the instruction pointer via an out-of-bounds array access.
Published on secret.club
One of the factors contributing to Counter-Strike Global Offensive’s (herein “CS:GO”) massive popularity is the ability for anyone to host their own community server. These community servers are free to download and install and allow for a high grade of customization.
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 combination of a case-sensitive Content-Length header check leading to uninitialised memory disclosure and a missing bounds check on the slot field used as an array index, allowing a controlled virtual call.
What the attacker needed
Victim connects to malicious server; game client running on Windows
The fix
Valve patched both bugs after public pressure.
How it was found
- Set up a malicious community server that sends crafted protobuf messages.
- Send a CSVCMsg_SplitScreen message with an out-of-bounds slot value to trigger the OOB access.
- Send a crafted HTTP response with duplicate Content-Length headers to leak uninitialised memory.
- Request the leaked file via CNETMsg_File to obtain memory contents and break ASLR.
- Use ConVar values to place controlled data and fake a vtable, then trigger the OOB again to hijack EIP.
- Build a ROP chain to call ShellExecuteA and execute arbitrary 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.
When you join a community server in a game, your computer and the server exchange data. The researchers found that a malicious server could send specially crafted messages that trick the game into revealing secret memory contents and then running the attacker's code. This means simply connecting to a bad server could let someone take over your computer.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.