Group Creation Via CSRF
The server did not validate the anti-CSRF token when creating a group, so a crafted page could submit the group-creation request on behalf of a logged-in user. An attacker could create a group on any user's account.
Originally disclosed on HackerOne
- Fixed in 8 hours
- Disclosed after 10 hours
Hi Team,
I have found a CSRf vulnerability using which the attacker can create a group on any users account as the anti-csrf token is not getting vlaidated on the server-side.
Group Creation Via CSRF Code:
<html> <body> <form action="http://www.localize.io/pages/create_project/9k" method="POST"> <input type="hidden" name="CSRFToken" value="" /> <input type="hidden" name="addGroup[name]" value="test" /> <input type="submit" value="Submit form" /> </form> </body> </html>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 server accepted the group-creation request without checking that the submitted anti-CSRF token matched the user's session.
Impact
An attacker could create a group on any logged-in user's account without their consent.
What the attacker needed
Victim is logged in; victim visits attacker page
How it was found
- Host a page containing a form that posts to the group-creation endpoint with an empty token field and a group name.
- Get a logged-in victim to load that page, which submits the form automatically or on a click.
- The server creates the group on the victim's account.
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.
When you are logged in to a site, your browser automatically sends your session cookie with every request to that site. A cross-site request forgery (CSRF) attack is a page on another site that quietly submits a form to the target site, so the target treats it as your action. Here the site was supposed to check a secret token in the form to prove the request came from its own pages, but it did not, so the forged request worked.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.