Skip to content
CSRF Write-up Intermediate

CSRF to steal Bitcoins from Agora via email link

The report claims that a page on the Agora marketplace performs sensitive actions, such as resetting the PIN and sending Bitcoin, through plain GET requests that carry no anti-CSRF token. An attacker who gets a logged-in victim to load a crafted page could therefore reset the victim's PIN and trigger transfers of the victim's balance.

pastebin.com

Published on pastebin.com

The original lives on pastebin.com

We do not hold its text, 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 state-changing endpoints (PIN reset and Bitcoin send) accept GET requests and do not require a per-session anti-CSRF token, so any page can trigger them for a logged-in user.

Impact

If the requests succeed, an attacker could reset the victim's PIN and move Bitcoin from the victim's balance, though the report does not show a successful run.

What the attacker needed

Victim logged in to the marketplace; victim opens attacker's page; attacker controls a destination address

How it was found

  1. The victim, already logged in to the marketplace, opens the attacker's page.
  2. The page opens the PIN reset request in a new window.
  3. It then opens a request that sets a new PIN.
  4. It opens a series of send requests to move Bitcoin to the attacker's address.
  5. It repeats the send requests with delays to drain the balance.

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 are logged in to a site, your browser automatically sends your session cookie with every request to that site. If the site accepts a simple link or image request to do something important, another website can make your browser send that request without you noticing; this is called cross-site request forgery (CSRF). Here the important actions are changing the PIN and sending Bitcoin, so a malicious page could move funds if you visited it while logged in.

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.