CSRF Vulnerability on post creation page /community/create-post.json
The post creation endpoint lacked CSRF protection, so a remote attacker could submit posts on behalf of a logged-in user. The attack only worked in Chrome and is no longer exploitable after a Chrome update changed cross-origin request handling.
- Triaged in 14 hours
- Fixed in 17 months
- Paid in 14 hours
- Disclosed after 17 months
Summary by the program
In this report the researcher demonstrated how to exploit a CSRF vulnerability on the impacted endpoint. This would allow a remote attacker to spam the community boards as other users. This attack only worked in Chrome browsers. A recent update to Chrome changed how cross-origin requests are handled, and as a result this attack is no longer exploitable in modern browsers.
What the report shows
The target is the Rockstar Games support site, support.rockstargames.com, and specifically the community post creation endpoint, /community/create-post.json. The weakness is cross-site request forgery, rated low severity with a CVSS score of 3.1, and the report was disclosed on 7 July 2020.
The program's summary of the report is short and describes the finding at a high level. The researcher demonstrated how to exploit a CSRF vulnerability on the impacted endpoint. The practical consequence, as the summary puts it, is that a remote attacker could spam the community boards as other users: a victim who loaded the attacker's page would have posts created under their own account without intending to.
One environmental detail matters for reproducing the finding: the attack only worked in Chrome browsers. A later update to Chrome changed how cross-origin requests are handled, and as a result the attack is no longer exploitable in modern browsers. The report does not include the request that creates a post, the payload used to trigger it, or the exact Chrome version involved.
The report gives no bounty figure. The severity recorded is low, and the browser change removed the exploitability.
Root cause
The report points to a state-changing endpoint, /community/create-post.json, that could be triggered cross-origin from an attacker-controlled page. The summary does not state which mechanism was missing, so the exact cause is not described in the report. The summary does not state which mechanism was missing, so the exact cause is inferred from the bug class rather than described in the text.
The Chrome dependency is the interesting part. The attack relied on how Chrome handled cross-origin requests at the time; when that behaviour changed, the exploit stopped working.
Impact
The impact is limited to what the summary states: an attacker could create community posts as other users, which the program characterises as spamming the community boards. There is no mention of reading data, changing account settings, or any action beyond post creation. The severity rating of low is consistent with that scope.
The attack required the victim to use Chrome, and it no longer works in modern browsers. Any assessment of impact today should account for that.
How this kind of bug works
CSRF abuses the fact that browsers attach a user's credentials, typically cookies, to requests automatically, regardless of which site caused the request. If an application authenticates a state-changing request purely on the basis of an ambient cookie and cannot tell whether the request was intentionally made from its own pages, an attacker's page can cause the action on behalf of any logged-in visitor who loads it.
The classic defences are:
- A per-session or per-request anti-CSRF token that the server checks and an attacker cannot predict or read cross-origin.
SameSitecookie attributes, which stop cookies being sent on cross-site requests in modern browsers.- Origin and
Refererheader validation on state-changing requests. - Requiring a custom header or a non-simple content type that a cross-origin form cannot produce without a preflight.
Bugs of this class appear when an endpoint accepts a simple request (a form-style POST, or a GET that changes state) and validates only the session cookie. JSON endpoints are sometimes assumed to be safe because a cross-origin form cannot send application/json, but that assumption fails if the server also accepts form-encoded bodies or parses them loosely.
How to test for it
- Identify state-changing endpoints: post creation, profile edits, email or password changes, follow or subscribe actions, and anything that writes to the account.
- Capture the legitimate request and note every parameter, the content type, and any token or custom header.
- Remove the anti-CSRF token and replay the request. If it still succeeds, the token is not enforced.
- Build a page on a different origin that submits the same request as a simple form POST, and load it while authenticated to the target. A positive result is that the action completes without any interaction beyond loading the page.
- If the endpoint expects JSON, try form-encoded bodies and other content types the server might still parse.
- Check whether the session cookie has
SameSiteset, and test in more than one browser, since behaviour differs.
Common false positives: the action succeeding because the session cookie was sent by the test tool rather than the browser; endpoints that are idempotent or harmless; requests that actually require a token you forgot to strip; and cases where a SameSite cookie or an origin check silently blocks the cross-site request in the browser you tested but not in another.
How it is fixed
Require a server-validated anti-CSRF token on every state-changing request, tied to the user's session and rejected when missing or wrong. Set session cookies with SameSite=Lax or SameSite=Strict as appropriate. Validate the Origin header, and fall back to Referer where needed, rejecting requests from unexpected origins. Do not rely on content type alone to distinguish safe from unsafe requests, and do not treat browser behaviour as a security control.
Hunting notes
CSRF tends to hide in older endpoints, JSON APIs that also accept form bodies, actions triggered by GET, and features added before a framework-wide token was introduced. Recon signals include endpoints with no token parameter in the captured request, cookies without SameSite, and forms that post to API paths. To make a report land, demonstrate the full cross-origin flow with a proof page, show the resulting state change on the victim account, and state clearly which browsers are affected and whether any browser-level protection limits it. A clear, reproducible demonstration of the state change is what turns a theoretical finding into an accepted report.
What happened, in plain words
Rockstar Games runs a support site at support.rockstargames.com. Among other things, that site has community boards where users can write posts. Creating a post is a normal feature: you are logged in, you fill in a form, you press a button, and a new post appears under your name.
The report describes how the post creation step could be triggered from a different website. The endpoint involved is /community/create-post.json. The bug class is cross-site request forgery, or CSRF, rated low severity with a CVSS score of 3.1. The report was disclosed on 7 July 2020.
To understand why that matters, you need to know how a browser handles cookies. When you log in to a site, the site gives your browser a cookie, a small piece of data that the browser stores and sends back with every later request to that site. That cookie is how the site recognises you on the next page load. The important part is that the browser attaches it automatically, based on the destination of the request, not on which page caused the request.
That is the gap CSRF exploits. If an attacker puts a page on their own site that quietly sends a request to support.rockstargames.com, your browser will attach your Rockstar session cookie to that request, because the request is going to Rockstar. The server sees a valid logged-in user and acts. It has no easy way to tell that you never intended to make that request.
In this case the action was creating a community post. As the program's summary puts it, a remote attacker could spam the community boards as other users. A victim who simply loaded the attacker's page would have posts created under their own account, without clicking anything or intending to.
One environmental detail matters a lot. The attack only worked in Chrome browsers. A later update to Chrome changed how cross-origin requests are handled, and as a result the attack is no longer exploitable in modern browsers. In other words, the thing that stopped the attack was a change in the browser.
The report does not include the request that creates a post, the payload used to trigger it, or the exact Chrome version involved. It also gives no bounty figure. The severity recorded is low, which fits the outcome: the worst case was unwanted posts, not access to data or account changes.
In general, how this kind of bug works
CSRF abuses the fact that browsers attach your credentials, usually cookies, to requests automatically, no matter which site caused the request. If an application decides whether a state-changing request is allowed purely on the basis of that ambient cookie, and cannot tell whether the request came from its own pages, then any other page can cause the action on behalf of any logged-in visitor who loads it.
A useful comparison is a cloakroom. The attendant recognises you by the ticket in your hand, not by who is asking. If someone else can hand over your ticket, the attendant will still fetch your coat. The cookie is the ticket, and the browser hands it over for any request heading to the right place.
The classic defences are:
- A per-session or per-request anti-CSRF token that the server checks and an attacker cannot predict or read cross-origin. A token is a random value embedded in the site's own pages and sent back with the request; an attacker's page cannot guess it.
SameSitecookie attributes, which stop cookies being sent on cross-site requests in modern browsers.- Origin and
Refererheader validation on state-changing requests. These headers say where a request came from, so the server can reject requests from unexpected places. - Requiring a custom header or a non-simple content type that a cross-origin form cannot produce without a preflight, an extra check the browser performs before sending certain requests.
Bugs of this class appear when an endpoint accepts a simple request, such as a form-style POST, or a GET that changes state, and validates only the session cookie. JSON endpoints are sometimes assumed to be safe because a cross-origin form cannot send application/json, but that assumption fails if the server also accepts form-encoded bodies or parses them loosely.
In general, how to test for it
- Identify state-changing endpoints: post creation, profile edits, email or password changes, follow or subscribe actions, and anything that writes to the account.
- Capture the legitimate request and note every parameter, the content type, and any token or custom header.
- Remove the anti-CSRF token and replay the request. If it still succeeds, the token is not enforced.
- Build a page on a different origin that submits the same request as a simple form POST, and load it while authenticated to the target. A positive result is that the action completes without any interaction beyond loading the page.
- If the endpoint expects JSON, try form-encoded bodies and other content types the server might still parse.
- Check whether the session cookie has
SameSiteset, and test in more than one browser, since behaviour differs.
Common false positives: the action succeeding because the session cookie was sent by the test tool rather than the browser; endpoints that are idempotent or harmless; requests that actually require a token you forgot to strip; and cases where a SameSite cookie or an origin check silently blocks the cross-site request in the browser you tested but not in another.
In general, how it is fixed
Require a server-validated anti-CSRF token on every state-changing request, tied to the user's session and rejected when missing or wrong. Set session cookies with SameSite=Lax or SameSite=Strict as appropriate. Validate the Origin header, and fall back to Referer where needed, rejecting requests from unexpected origins. Do not rely on content type alone to distinguish safe from unsafe requests, and do not treat browser behaviour as a security control.
In general, where to look
CSRF tends to hide in older endpoints, JSON APIs that also accept form bodies, actions triggered by GET, and features added before a framework-wide token was introduced. Recon signals include endpoints with no token parameter in the captured request, cookies without SameSite, and forms that post to API paths. To make a report land, demonstrate the full cross-origin flow with a proof page, show the resulting state change on the victim account, and state clearly which browsers are affected and whether any browser-level protection limits it. A clear, reproducible demonstration of the state change is what turns a theoretical finding into an accepted report.
Glossary
- CSRF (cross-site request forgery): a bug where another website can make your browser send a request to a site you are logged in to, and the site acts on it as if you had asked.
- Endpoint: a specific address on a server that performs a particular action, such as
/community/create-post.json. - Cookie: a small piece of data a site stores in your browser and which the browser sends back with later requests to that site, often used to keep you logged in.
- Session: the period during which a site recognises you as logged in, usually tied to a cookie.
- Token (anti-CSRF token): a random value placed in the site's own pages and checked by the server, which an attacker's page cannot guess or read.
- State-changing request: a request that alters something on the server, such as creating a post or changing a setting, as opposed to just reading a page.
- Cross-origin: coming from a different site (scheme, host or port) than the one being requested.
SameSite: a cookie setting that controls whether the cookie is sent on cross-site requests.Origin/Refererheaders: request headers that indicate where a request came from, which a server can check.- Preflight: an extra check the browser performs before sending certain cross-origin requests.
- Content type: the label on a request body saying what format it is in, such as
application/jsonor form-encoded data. - CVSS: a standard scoring system for the severity of a vulnerability; 3.1 is in the low range.
- Severity: a rating of how serious a bug is, here low.
- Idempotent: an action that gives the same result whether performed once or many times.
- False positive: a test result that looks like a bug but is not one.