Login Cross Site Request Forgery
The login form lacked CSRF protection, allowing an attacker to craft a page that logs the victim into the attacker's account. The victim then unknowingly adds data to the attacker's account, which the attacker can later view.
Originally disclosed on HackerOne
- Disclosed after under an hour
Login form is not protected against Cross Site Request Forgery. An attacker can craft html page containing POST information to have victim sign into an attacker's account, where the victim can add information assuming he/she is logged into the correct account, where in reality, the victim is signed into the attacker's account where the changes are visible to the attacker.
The real issue here, is that when the victim runs the html Proof of Concept, the account is logged in to attacker's without any visible warnings, thus the victim is capable of theft of data and potentially vulnerable to account takeover.
Steps to reproduce
- Create victim account
- Create attacker account
- Run attached Proof of Concept in same browser as victim and press submit (The POF can be modified to look like a fake blog post relating to infogram as someone searching a blog post is likely logged in and using the web application already)
- On the victim browser, he/she is logged in as an attacker without any indication unless the page is manually refreshed.
- Go to library and add a facebook post, or a chart.
- On attacker browser, refresh page and navigate to library. You will see the victims added, or edited projects.
Mitigation
Please add a csrf token to login request or make some type prompt that the session has ended when the new login from attacker occurs.
I have attached a video proof of concept with audio of my voice explaining and instructing. I have also attached the HTML proof of concept.
Attachments
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
Root cause
The login endpoint accepted POST requests without a CSRF token or other origin check, so a cross-site form could log the victim into an attacker-controlled account.
Impact
The victim may unknowingly add or edit data in the attacker's account, which the attacker can then view, potentially leading to data theft or account takeover.
What the attacker needed
Victim clicks a link or visits a malicious page; attacker has an account
The fix
The login request should include a CSRF token or show a prompt when a new login occurs.
How it was found
- Create a victim account.
- Create an attacker account.
- Run the proof-of-concept page in the victim's browser and submit it.
- The victim is now logged in as the attacker without any warning.
- The victim adds a Facebook post or chart to the library.
- The attacker refreshes their browser and sees the victim's added or edited projects.
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 to a website, your browser sends a request. If the site doesn't check that the request really came from its own pages, another website can secretly send a login request for a different account. The victim ends up logged into the attacker's account without noticing, and anything they do is saved there.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.