Malformed Skybox .TGA in Half-Life (GoldSRC) leads to Access Violation
A malformed TGA file used as a skybox in Half-Life causes an access violation when loaded, and a malicious server can distribute such assets to remote clients. The report claims this could lead to remote code execution, potentially via ROP due to missing ASLR on Steam DLLs.
- Triaged in 3 months
- Fixed in 3 months
- Paid in 3 months
- Disclosed after 4 months
A malformed .TGA when loaded as a Skybox on a map in a GoldSRC engine game (Half-Life) can lead to arbitrary code execution on a remote client.
###Reproduction Steps
Load the attached map + resources on a local Half-Life listen server. The game will crash with an Access Violation as soon as the map with the malicious skybox is loaded.
###Exploitability
Since anyone can host a map with custom assets, and the custom assets are loaded onto a remote clients computer, a malicious server can distribute malformed skybox assets (.TGA's) that could cause remote code execution on clients. The inclusion of .DLL's on Steam without ASLR make exploitablility of this bug via ROP quite trivial.
Impact
###Impact
A malicious server could infect hundreds or perhaps thousands of clients with this bug. This bug could also be used in targeted attacks for the theft / compromise of high-value Steam accounts by attacking their Half-Life client.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the TGA parsing code does not properly validate the file structure, leading to an out-of-bounds access.
Impact
A malicious server could distribute malformed skybox assets to remote clients, potentially causing remote code execution, and the lack of ASLR on Steam DLLs makes exploitation via ROP quite trivial.
What the attacker needed
Victim connects to malicious server; server hosts map with malformed skybox
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 report has not been written yet. The Original tab links to the source.
A game engine loads image files for the sky. If one of those files is malformed, the game can crash. The report says a malicious server could send such a file to players and possibly run code on their computers.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.