Skip to content
CSRF Disclosed report Beginner

CSRF logs the victim into attacker's account

The login endpoint does not validate the session, allowing an attacker to craft a form that logs a victim into the attacker's account. The attacker can then trick the victim into providing personal information or payment details.

albatraoz Follow

Originally disclosed on HackerOne

  • Fixed in 2 days
  • Paid in 2 days
  • Disclosed after 2 days

Description: There is no session validation while logging in which leads to csrf.

Steps To Reproduce:

  1. Create a CSRF login POC using the following code.
<html> <body> <form action="https://unikrn.com/apiv1/login" method="POST"> <input type="hidden" name="usr" value="[email]"> <input type="hidden" name="pwd" value="[password]"> <input type="submit" value="Submit request" /> </form> </body> </html>
  1. Replace the email and password with the valid credentials.
  2. Send the script to the victim to make them click.

References:

  1. You've rewarded a guy for login csrf here: https://hackerone.com/reports/293016
  2. Impact of login csrf on a company: https://support.detectify.com/customer/portal/articles/1969819-login-csrf

Impact

  1. Log any victim into the attacker account, the attacker can create a similar account profile as the victim - with some information missing, and then social-engineering (e.g. email) user to provide personal information or current password and can also monitor the victim activities.
  2. Also the victim may add his paymet info in the attackers account unknowingly using your wallet feature.

The hacker selected the Cross-Site Request Forgery (CSRF) weakness. This vulnerability type requires contextual information from the hacker. They provided the following answers:

URL https://unikrn.com/apiv1/login

Verified Yes

Can a victim be forced to perform a sensitive state-change operation unknowningly? Yes

What state-change operation can be performed? Any user details.

The original report as published on HackerOne, by albatraoz. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

The victim could be logged into the attacker's account, allowing the attacker to social-engineer the victim into providing personal information or payment details, and to monitor the victim's activities.

What the attacker needed

Victim clicks a link; attacker has valid credentials

How it was found

  1. Create a CSRF login proof-of-concept using an HTML form that posts to the login endpoint.
  2. Replace the email and password fields with valid credentials.
  3. Send the script to the victim to make them click.

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 log in, the website should check that the request comes from its own login page. Here it does not, so an attacker can make a fake login form that signs you into their account without you knowing. Then they can pretend to be you or steal your information.

What is CSRF?

Another site makes a signed-in user's browser perform an action they did not intend.

More by albatraoz

View all

5 more disclosed reports, best first.

More from Unikrn

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site request forgery (CSRF)

The lesson behind this report.

Another site makes a signed-in user's browser perform an action they did not intend.