yaklang avatar

Race Condition

This is the playbook for finding TOCTOU bugs in web apps where check and update aren't atomic. It walks you through HTTP/2 single-packet attacks, Turbo Intruder gate patterns, and last-byte sync techniques to hit endpoints with tight parallel bursts. The focus is one-time operations like coupon redemption, balance transfers, and referral claims where duplicate success responses or inconsistent state mean you've broken the locking. Includes practical Turbo Intruder templates with gate releases and a priority matrix for what to fuzz first. If you're testing rate limits, inventory systems, or anything that should only happen once per user, this gives you the transport-layer tricks and application evidence you need to prove the race.

skills.sh installs
3.8K
GitHub stars
2.6K
last updated
Aug 21, 2026

Install

$ npx -y skills add yaklang/hack-skills --skill race-condition --agent claude-code

Installs into .claude/skills of the current project.

Files

SKILL: Race Conditions — Testing & Exploitation Playbook

AI LOAD INSTRUCTION: Treat race conditions as authorization/state integrity issues: non-atomic read-then-write lets multiple requests observe stale state. Prioritize one-time or balance-like operations. Combine parallel transport (HTTP/1.1 last-byte sync, HTTP/2 single-packet, Turbo Intruder gates) with application evidence (duplicate success responses, inconsistent balances, duplicate ledger rows). Authorized testing only. Routing note: for business workflows, coupons, inventory, or one-time rewards, start with this skill and cross-load business-logic-vulnerabilities.


0. QUICK START — What to Test First

Target endpoints where check and update are unlikely to be a single atomic database operation:

Sponsors

Details

Repository
github.com/yaklang/hack-skills
Categories
Testing & QA, Code Review & Quality
First seen
May 16, 2026

More from yaklang/hack-skills

All 102
1yaklang avatarrequest-smugglingyaklang/hack-skillsHTTP request smuggling and desynchronization testing. Use when front proxies, CDNs, or load balancers disagree with the origin on message framing (Content-Lengt3.8Kskills.sh installs
2yaklang avatarfile-access-vulnyaklang/hack-skillsEntry P1 category router for file access and upload workflows. Use when testing download endpoints, file paths, local file inclusion, upload flows, preview pipe3.8Kskills.sh installs
3yaklang avatarinsecure-source-code-managementyaklang/hack-skillsSource control and artifact exposure (.git, .svn, .hg, backups, .env). Use when recon finds VCS paths, 403 on hidden dirs, or backup/config leaks during authori3.8Kskills.sh installs
4giuseppe-trisciuoglio avataraws-sdk-java-v2-coregiuseppe-trisciuoglio/developer-kitProvides AWS SDK for Java 2.x client configuration, credential resolution, HTTP client tuning, timeout, retry, and testing patterns. Use when creating or harden3.8Kskills.sh installs
5forcedotcom avatardeveloping-agentforceforcedotcom/sf-skillsBuild, modify, debug, and deploy agents with Agentforce Agent Script. TRIGGER when: user creates, modifies, or asks about .agent files or aiAuthoringBundle meta3.8Kskills.sh installs
6yaklang avatarclickjackingyaklang/hack-skillsClickjacking playbook. Use when testing whether target pages can be framed, whether X-Frame-Options or CSP frame-ancestors are properly configured, and whether 3.8Kskills.sh installs