Hacking GTA V RP Servers Using Web Exploitation Techniques
A FiveM resource (rcore_radiocar) inserted user-supplied URLs into the DOM without sanitisation, allowing an attacker to inject JavaScript that executed on other players' clients. This gave the attacker control over victims' game clients, enabling actions such as sending chat messages, transferring in-game money, and accessing the microphone.
As of 2023, Grand Theft Auto V remains the second best-selling video game at 185,000,000 units sold, second to Minecraft1. Its success can largely be attributed to the game's online multiplayer mode, GTA Online, which allows players to explore a sandboxed world with friends and strangers alike.
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
The resource appended the user-provided sound URL to the DOM using jQuery's append without sanitising it, leading to DOM-based XSS.
Impact
An attacker could execute arbitrary JavaScript on all players on a server, enabling actions such as microphone access, clipboard theft, sending chat messages, transferring in-game money, and changing appearances; hundreds of servers were affected.
What the attacker needed
Server runs vulnerable resource; attacker can join server; victim plays on same server
The fix
The XSS was fixed by stripping HTML tags from the sound URL before use.
How it was found
- Find a server with the xsound and rcore_radiocar resource.
- Get inside of a vehicle
- Run the /radiocar command and drop the XSS payload
- Profit???
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 a game server lets players share links, it must clean them before showing them to others. Here, a music-sharing feature put the link directly into the game's interface without cleaning, so a malicious link could run code on other players' computers. That code could then do things like read the clipboard or send in-game commands.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.