race-condition

Detect race-condition and TOCTOU vulnerabilities via synchronized parallel HTTP requests.

241|28|Updated May 20, 2026
One-click install
npx skills add https://github.com/ok-helloworld/vibe-pentest --skill race-condition-ok-helloworld
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: race-condition
Source: https://github.com/ok-helloworld/vibe-pentest/tree/main/references/pentest_skills/race-condition
Command: npx skills add https://github.com/ok-helloworld/vibe-pentest --skill race-condition-ok-helloworld

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Race conditions and TOCTOU issues allow multiple near-simultaneous requests to bypass one-time checks, causing duplicate effects or inconsistent state. This Skill helps you systematically confirm whether “check-then-act” logic breaks under concurrent execution.

Core Features & Use Cases

  • TOCTOU-focused testing: Targets non-atomic read-then-write flows where parallel requests can both pass the same precondition.
  • Parallel transport synchronization: Uses HTTP/1.1 last-byte synchronization, HTTP/2 single-packet bursts, and Turbo Intruder gate patterns to tighten simultaneity.
  • Outcome-driven evidence collection: Detects duplicate ledger rows, balance/stock inconsistencies, repeated coupon claims, and multi-step workflow desynchronization.
  • Routing for higher-value scenarios: Prioritizes one-time operations (coupons, inventory, rewards) and validation/verification steps that can be undermined by timing windows.

Quick Start

Use the race-condition skill to test an authorized one-time redemption endpoint by sending 20–100 authenticated parallel requests and checking for duplicate success responses or inconsistent final state.

Frequently Asked Questions about race-condition

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test for TOCTOU vulnerabilities in web application workflows?

To test for TOCTOU vulnerabilities, you send synchronized concurrent requests to target non-atomic check-then-act logic, confirming if parallel execution bypasses one-time state changes. This reveals duplicate effects or inconsistent states in business workflows.

What is the best way to synchronize parallel requests for race condition testing?

For race condition testing, synchronize parallel requests using HTTP/1.1 last-byte synchronization, HTTP/2 single-packet bursts, or Turbo Intruder gate patterns. These methods tighten simultaneity to effectively expose non-atomic read-then-write execution flaws.

How does a race condition affect coupon redemption and inventory deduction logic?

A race condition affects coupon redemption and inventory deduction by allowing simultaneous requests to pass the same precondition before state updates. This breaks check-then-act atomicity, causing duplicate ledger rows, repeated claims, or abnormal final balances.

Can I use HTTP/2 single-packet bursts to detect concurrency bugs in verification pipelines?

Yes, you can use HTTP/2 single-packet bursts to detect concurrency bugs in verification pipelines. This technique synchronizes parallel requests to test if multi-step check-then-act logic desynchronizes under concurrent execution pressure.

How do I confirm evidence of a state race vulnerability during authorized testing?

To confirm evidence of a state race vulnerability, send 20 to 100 authenticated parallel requests and check for inconsistent artifacts. Duplicate success responses, repeated rows, or abnormal final balances validate that the concurrency bug exists.

When should I not use single-packet race condition testing?

You should not use single-packet race condition testing without explicit authorization. This testing actively manipulates business workflow state integrity, requiring authorized access to prevent unintended disruption to live operations.