Skip to content
CSRF Write-up Beginner

Ed Felten & Team Disclose 4 New CSRF Vulnerabilities, Can Transfer Funds From ING

Four websites failed to verify that sensitive actions were invoked by the user rather than merely by the user's browser, allowing forged requests to perform actions on their behalf. On ING this let an attacker create accounts and transfer funds out of a victim's bank account, and on MetaFilter it allowed full account takeover via an email change followed by a password reset.

freedom-to-tinker.com

Published on freedom-to-tinker.com

Today Ed Felten and I (Bill Zeller) are announcing four previously unpublished Cross-Site Request Forgery (CSRF) vulnerabilities. We’ve described these attacks in detail in a technical report titled Cross-Site Request Forgeries: Exploitation and Prevention.

Center for Information Technology Policy, on freedom-to-tinker.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the sites performed sensitive actions on the strength of the victim's session cookie alone, without any per-request token or other proof that the user intended the action.

Impact

An attacker could create accounts and transfer funds from a victim's bank, take over a MetaFilter account, perform most actions on YouTube as the victim, and learn the email addresses of logged-in New York Times users; the paper notes its server-side protections do not stop active network attackers.

What the attacker needed

Victim is logged in to the target site; victim visits an attacker-controlled page

The fix

The sites were fixed by adding server-side CSRF protections, and the authors released a plugin for one PHP framework that they say prevents the attacks completely.

How it was found

  1. Get the victim to visit a page controlled by the attacker.
  2. That page makes the victim's browser send a request to the target site.
  3. The target site treats the request as authorised and performs the sensitive action.

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 write-up has not been written yet. The Original tab links to the source.

When you log in to a site, your browser holds a kind of pass that proves who you are, and it sends that pass with every request to the site. If another website can quietly make your browser send a request, the target site sees the pass and assumes you asked for it. This is called cross-site request forgery: the site checks that the request came from your browser, but not that you actually meant to send it.

What is CSRF?

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

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.