CSRF in cancel group and private show requests
The cancel endpoints for group and private shows accepted GET requests without checking CSRF protection, so an attacker could cancel a broadcaster's show by making a victim's browser send a crafted request. The report states the issue was quickly resolved.
- Triaged in 15 hours
- Fixed in 20 hours
- Paid in 15 hours
- Disclosed after 35 days
Summary by the program
The hacker found that the private and group show cancel urls were not checking for CSRF headers. This issue was quickly resolved.
Summary by the researcher
I have found a CSRF vulnerability in chat room. When users cancel group shows for any chat room, a POST request is made to the server on this endpoint /tipping/group_show_cancel/broadcaster's_username/ and this request is CSRF protected. This CSRF protection can be bypassed by making a GET request to above endpoint and group show request will be cancelled.
What the report shows
The target is Chaturbate, and the feature in question is the cancellation of group and private shows in a chat room. The researcher, encrypt, reported a cross-site request forgery issue affecting the cancel URLs, and the program summarised the finding as those URLs not checking for CSRF headers. The report was rated medium severity with a CVSS score of 4.3, and a bounty of 300.00 USD was paid. It was disclosed on 21 September 2018, and the program states the issue was quickly resolved.
The researcher's own summary describes the behaviour in the chat room. When a user cancels a group show for any chat room, the browser sends a POST request to this endpoint:
/tipping/group_show_cancel/broadcaster's_username/
That POST request is CSRF protected. The researcher found that the protection could be bypassed by issuing a GET request to the same endpoint instead, and that doing so cancels the group show request. The title of the report also names private show cancellation as affected, alongside group shows, though the researcher's summary only walks through the group show case.
The report does not include the exact request or response, the parameters involved, or the token or header that the POST path checked. It also does not describe how the researcher delivered the GET request to a victim, or what the victim would observe. What it does establish is the core of the bug: a state-changing action that was protected on one HTTP method was reachable through another method that skipped the check.
Root cause
The report frames the cause as the cancel URLs not checking for CSRF headers, so the token check was missing or not applied to the GET path. If the framework routes both methods to the same cancellation logic, and the anti-CSRF check lives only in the POST path, then a GET request performs the state change without any token validation. The report frames this as the cancel URLs not checking for CSRF headers, which points at a missing or method-specific enforcement of the token rather than a flaw in the token itself.
Impact
An attacker who can make a logged-in user's browser issue a GET request to the cancel endpoint can cancel that user's group show request, and per the report title, private show requests as well. The action is state changing and tied to the victim's account, so the consequence is unwanted cancellation of a show the user initiated. The report does not describe any further consequence, such as financial loss or account takeover, and none should be assumed.
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 endpoint performs a sensitive action based only on the presence of a valid session, any page on the internet can trigger that action by making the victim's browser send the request. The standard defence is a synchroniser token: the server issues an unpredictable value bound to the session, the client must echo it back, and the server rejects requests that lack or mismatch it. Because a cross-site attacker cannot read the token, they cannot forge a valid request. SameSite cookies and checking the Origin or Referer header are complementary defences.
The subtle failure mode here is method-specific enforcement. Developers often add the token check to the handler they think of as the action, usually POST, and forget that the same resource also answers GET, or that a framework will dispatch a GET to the same controller. A GET request is trivially triggerable cross-site, for example through an image tag or a link, so leaving it unprotected defeats the token on the POST path. The fix is to enforce the check on every method that can reach the state-changing code, or to refuse state changes on GET entirely.
How to test for it
- Identify state-changing endpoints: cancellations, deletions, subscriptions, profile changes, transfers. Map the method the application normally uses, usually POST.
- Capture a legitimate request with a proxy and note the anti-CSRF token, if any, and any custom headers.
- Replay the same action as a GET to the same path, with the session cookie present and the token removed. If the action succeeds, the method bypass is confirmed.
- Also try removing the token from the original POST, and try changing the method while keeping the body, to see which combination the server honours.
- Confirm the effect out of band: check that the target object actually changed state, not just that the response looked successful.
A positive result is a state change on the server after a request that carried no valid token, or a request issued from a different origin. Common false positives include endpoints that return a success page but do nothing, actions that are idempotent or harmless, and cases where the session cookie is SameSite=Strict so a real cross-site request would not carry it. Verify the state change directly rather than trusting the response body.
How it is fixed
Enforce the anti-CSRF token on every method that can reach the state-changing handler, not just POST. Reject state-changing GET requests, or require POST for them. Set session cookies with SameSite=Lax or Strict where compatible, and validate the Origin or Referer header on sensitive actions. The program states the issue was quickly resolved; the report does not describe the fix.
Hunting notes
This class of bug hides wherever an action is exposed on more than one method, or where a route accepts both GET and POST. Look at cancel, delete, unsubscribe and toggle endpoints, and at APIs where the same path serves multiple verbs. Recon signals include endpoints whose names suggest an action but which respond to a plain GET, and JavaScript that builds URLs for actions rather than submitting forms. To make a report land, demonstrate the real state change with a minimal proof, show that no token was needed, and describe the victim scenario clearly. Keep the impact honest: a cancellation is a limited disruption, and overstating it weakens the report.
What happened, in plain words
Chaturbate is a live streaming site where performers run shows for viewers. A viewer can cancel a group show request. This report is about what happens on the server when a viewer cancels.
The researcher, encrypt, found that the cancellation could be triggered in a way the site did not intend. The program's own summary says the private and group show cancel URLs were not checking for CSRF headers, and that the issue was quickly resolved. The report was rated medium severity with a CVSS score of 4.3, and a bounty of 300.00 USD was paid. It was disclosed on 21 September 2018.
To follow the rest, you need three ideas.
A request is what your browser sends to a website when you click something or load a page. It is a short message: "please do this thing", plus some details about who you are.
A cookie is a small piece of data the site stored in your browser after you logged in. Your browser attaches it to every request it sends to that site, automatically. Think of it as a wristband you get at a venue: once you are wearing it, every door you walk through knows you are a paying guest, without you showing ID again.
A CSRF token (cross-site request forgery token) is a secret value the site puts into a form or a page. When you submit the action, your browser sends the token back, and the server checks it matches your session. The point is that only pages served by the real site know the token, so a request forged by some other website cannot include it.
CSRF itself is the attack this defends against. Because your browser attaches your cookie to requests automatically, a malicious page you visit can quietly make your browser send a request to another site, and that site will treat it as coming from you. The token is what breaks that trick: the malicious page can make the browser send the request, but it cannot know the secret value.
What the report shows
The researcher's summary describes the normal behaviour in a chat room. When a user cancels a group show for any chat room, the browser sends a POST request to this endpoint:
/tipping/group_show_cancel/broadcaster's_username/
An endpoint is simply a URL on the server that does a particular job. This one is the cancel action, and broadcaster's_username is a placeholder for the name of the performer whose show is being cancelled.
POST is one of the methods a request can use. Methods are verbs: GET is normally used to fetch a page, POST is normally used to submit something that changes data. The site used POST for cancellation.
That POST request was CSRF protected, meaning the server checked the token before acting. The researcher found that the protection could be bypassed by sending a GET request to the same endpoint instead, and that doing so cancels the group show request. In other words, the door was locked for one kind of knock and open for another.
The title of the report also names private show cancellation as affected, alongside group shows, but the researcher's summary only walks through the group show case. The report does not include the exact request or response, the parameters involved, or which token or header the POST path checked. It also does not describe how the GET request was delivered to a victim, or what the victim would see.
What it does establish is the core of the bug: an action that changes something on the server was protected on one HTTP method and reachable through another method that skipped the check.
In general, how this kind of bug works
The standard defence against CSRF is the synchroniser token described above: the server issues an unpredictable value tied to your session, your browser must send it back, and the server rejects anything that lacks it or sends the wrong one. A cross-site attacker cannot read the token, so they cannot forge a valid request. Two other defences often sit alongside it: marking cookies SameSite, so the browser does not attach them to requests coming from other sites, and checking the Origin or Referer header to see where a request really came from.
The report frames this as the cancel URLs not checking for CSRF headers. Developers often add the token check to the handler they think of as "the action", usually POST, and forget that the same address also answers GET. A GET request is very easy to trigger from another site, for example through an image tag or a link, so leaving GET unprotected undoes the protection on POST. The fix is to enforce the check on every method that can reach the code that changes data, or to refuse to change anything on GET at all.
In general, how to test for it
- Find actions that change something: cancellations, deletions, subscriptions, profile edits, transfers. Note which method the site normally uses, usually POST.
- Capture a real request with a proxy, a tool that sits between your browser and the site and lets you read and edit traffic. Note any anti-CSRF token and any custom headers.
- Replay the same action as a GET to the same path, with your session cookie present and the token removed. If the action succeeds, the method bypass is confirmed.
- Also try removing the token from the original POST, and try changing the method while keeping the body, to see which combination the server accepts.
- Confirm the effect separately: check that the thing actually changed on the server, not just that the response looked successful.
A positive result is a real change on the server after a request that carried no valid token, or a request sent from a different site. Common false positives are endpoints that show a success page but do nothing, actions that are harmless to repeat, and cases where the session cookie is SameSite=Strict, so a genuine cross-site request would not carry it. Verify the change directly rather than trusting the response body.
In general, how it is fixed
Enforce the anti-CSRF token on every method that can reach the code that changes data, not just POST. Reject state-changing GET requests, or require POST for them. Set session cookies with SameSite=Lax or Strict where compatible, and validate the Origin or Referer header on sensitive actions. The program states the issue was quickly resolved; the report does not describe the fix.
In general, where to look
This class of bug hides wherever an action is reachable by more than one method, or where a route accepts both GET and POST. Look at cancel, delete, unsubscribe and toggle endpoints, and at APIs where the same path serves several verbs. Useful signals are endpoints whose names suggest an action but which answer a plain GET, and JavaScript that builds URLs for actions rather than submitting forms. To make a report land, show the real change with a minimal proof, show that no token was needed, and describe the victim's situation clearly. Keep the impact honest: a cancellation is a limited disruption, and overstating it weakens the report.
Glossary
- Request: a message your browser sends to a website asking it to do something or return a page.
- Cookie: a small value stored in your browser by a site, sent back automatically with each request so the site recognises your session.
- Session: the site's record of you being logged in, usually tied to a cookie.
- CSRF (cross-site request forgery): an attack where another website makes your browser send a request to a site you are logged into, using your cookie without your intent.
- CSRF token: a secret value tied to your session that the site requires back with sensitive actions, so forged requests fail.
- Header: an extra field in a request or response carrying information such as where the request came from.
- Endpoint: a specific URL on a server that performs a particular job.
- HTTP method: the verb of a request; GET fetches, POST submits and changes data.
- GET / POST: the two methods discussed here; GET is normally for reading, POST for actions that change data.
- State change: any action that alters data on the server, such as cancelling a request.
- SameSite: a cookie setting that controls whether the browser sends the cookie with requests coming from other sites.
- Origin / Referer: headers telling the server which page or site a request came from.
- Proxy: a tool that sits between your browser and a site so you can inspect and modify traffic.
- CVSS: a scoring system for rating the severity of a vulnerability.
- Bounty: a payment made to a researcher for reporting a valid vulnerability.