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.
- 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:
- Create a CSRF login POC using the following code.
- Replace the email and password with the valid credentials.
- Send the script to the victim to make them click.
References:
- You've rewarded a guy for login csrf here: https://hackerone.com/reports/293016
- Impact of login csrf on a company: https://support.detectify.com/customer/portal/articles/1969819-login-csrf
Impact
- 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.
- 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.
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
- Create a CSRF login proof-of-concept using an HTML form that posts to the login endpoint.
- Replace the email and password fields with valid credentials.
- 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.