Skip to content
CSRF Disclosed report Intermediate

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.

whiteshadow201 Follow

Originally disclosed on HackerOne

Bounty$300 High View original
  • 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.

The original report as published on HackerOne, by whiteshadow201. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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.

More from Enjin

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site request forgery (CSRF)

The lesson behind this report.

Another site makes a signed-in user's browser perform an action they did not intend.