Race Conditions Testing and Exploitation Playbook
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md to install @user_3c6cb52e/race-condition-lr-kju9.
About this skill
Problem
Race conditions often appear in non-atomic read-then-write flows: two requests read stale state in sequence and then both submit changes based on that stale state. This can cause duplicate one-time rewards, bypassed balance checks, or duplicate ledger rows. This skill frames race conditions as authorization and state-integrity issues, not merely concurrency-performance concerns. It is useful for reviewing one-time operations, coupons, inventory deduction, and reward issuance.
How It Works
The core approach is to trigger requests in parallel and then collect application-layer evidence:
- Use HTTP/1.1 last-byte sync, HTTP/2 single-packet, or Turbo Intruder gates to make multiple requests arrive together;
- Prefer one-time or balance-like operations as test points;
- Compare abnormal results such as duplicate success responses, inconsistent balances, or duplicate ledger rows;
- For business-rule cases, combine the findings with business-logic-vulnerabilities to reason about the full flaw chain.
Boundaries
The material stresses authorized testing only. Do not launch parallel requests against production services without permission. If the target is an ordinary state update, first confirm that the business logic actually depends on the earlier stale read.
Use Cases
- During an authorized pentest, send parallel coupon-claim requests and check for duplicate success responses.
- When reviewing a balance-transfer API, trigger concurrent writes with HTTP/2 single-packet and inspect inconsistent balances.
- While testing a one-time reward endpoint, submit the same request in parallel and compare duplicate ledger rows.
- When assessing inventory deduction, combine race-condition checks with business-logic vulnerability analysis.
Best For
- Security engineers testing one-time coupon or reward endpoints, who need to verify duplicate success and state anomalies.
- Application engineers maintaining balance or inventory write paths, who need to find non-atomic read-then-write flaws.
- Application quality engineers defining API concurrency regression tests, who need to cover one-time operations and ledger consistency.
- Security operations staff configuring authorized AI-agent testing flows, who need to bound parallel-request evidence and authorization limits.
Related Skills
Local workflow memory with matching and SOP updates.
An OpenClaw live streaming executor that initializes TRTC streaming, starts a real-time dashboard, generates viewer URLs, and continuously reports live events.
Breaks down physical supply chains for super-trends to identify second- and third-layer bottlenecks, runs valuation and reverse checks, and maintains trackable reports.
A token-saving compression mode for Chinese LLMs with lite, full, ultra, and classical tiers, preserving code and technical terms while handling edge cases.