Authentication token and CSRF token bypass
The GraphQL interface accepted GET requests, which bypassed CSRF protections, and overly permissive CORS rules allowed cross-origin execution of functions on behalf of another user. An attacker could perform actions as a victim user.
Originally disclosed on HackerOne
- Fixed in 22 hours
- Paid in 28 hours
- Disclosed after 20 months
Summary by the program
@whiteshadow201 was able to illustrate a vulnerability, due to an overzealous set of CORS rules, where they could execute certain functions on behalf of another user. This was made possible due to a separate vulnerability, a CSRF bypass, that was possible by using the GET method to query the GraphQL interface. In order to remedy the problem, we restricted the GraphQL interface to only accept traffic over POST (rather than both POST and GET) and we also restricted the scope of the CORS rules.
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 combination of overly permissive CORS rules and allowing GET requests to the GraphQL endpoint, which bypassed CSRF protections.
Impact
An attacker could execute certain functions on behalf of another user, leading to unauthorised actions.
What the attacker needed
Victim visits a malicious site; GraphQL endpoint accepts GET requests; permissive CORS rules
The fix
The GraphQL interface was restricted to only accept POST requests and the CORS rules were narrowed.
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.
Websites use CORS rules to control which other sites can make requests to them. Here, those rules were too loose, and the site also allowed a type of request (GET) that is not protected against CSRF, a trick where another site makes a request for you. Together, an attacker could make your account do things without you knowing.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.