Skip to content
CSRF Write-up Beginner

Small Bugs, Easy Money: CSRF & Race Conditions

The write-up describes multiple CSRF vulnerabilities on small features like reactions and follows, where servers accepted form-encoded bodies despite expecting JSON, and race conditions in like, comment, and invite endpoints that allowed bypassing limits. An attacker could force logged-in users to perform actions or abuse concurrency to exceed intended restrictions.

medium.com

Published on medium.com

In this write-up, I’ll walk you through how I found multiple vulnerabilities — from classic CSRF tricks to funny race conditions — all hiding inside these “boring” features.

nooh zidan, on medium.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 server did not enforce CSRF tokens or content-type restrictions, and did not properly lock state during concurrent requests.

Impact

An attacker could force logged-in users to perform actions like reacting or following, and race conditions could allow bypassing limits, causing spam or denial of service.

What the attacker needed

Victim logged in; attacker can host a page; no CSRF token or token not enforced

The fix

Use proper CSRF tokens validated server-side, set SameSite cookies, reject unexpected Content-Type, and validate Origin/Referer as defense-in-depth; for race conditions, implement proper locking or atomic operations.

How it was found

  1. Intercept any action request like, reaction, follow, comment in Burp.
  2. Replay request and verify success and response codes.
  3. Inspect for CSRF token (param/header/cookie SameSite).
  4. Try removing token, changing token value, changing method, changing Content-Type.
  5. If manipulation still returns success, craft PoC HTML and verify CSRF works on a victim session.

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.

This write-up shows two kinds of bugs. CSRF tricks make a logged-in user's browser send a request the user did not intend, like clicking a like button on another site. Race conditions happen when many requests are sent at the same moment and the server does not handle them correctly, letting limits be bypassed.

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.