Skip to content
CSRF Disclosed report Beginner

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.

bluedangerforyou Follow

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

  1. Create victim account
  2. Create attacker account
  3. 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)
  4. On the victim browser, he/she is logged in as an attacker without any indication unless the page is manually refreshed.
  5. Go to library and add a facebook post, or a chart.
  6. 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

infogramLOGINCSRF.mp4 From the original on HackerOne

The original report as published on HackerOne, by bluedangerforyou. 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

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

  1. Create a victim account.
  2. Create an attacker account.
  3. Run the proof-of-concept page in the victim's browser and submit it.
  4. The victim is now logged in as the attacker without any warning.
  5. The victim adds a Facebook post or chart to the library.
  6. 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.

More by bluedangerforyou

View all

3 more disclosed reports, best first.

More from Infogram

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.