race-condition

Detect race conditions and TOCTOU vulnerabilities in web application workflows.

54|5|Updated May 9, 2026
One-click install
npx skills add https://github.com/jinyimeng01/mastermind-bug-bounty --skill race-condition-jinyimeng01
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: race-condition
Source: https://github.com/jinyimeng01/mastermind-bug-bounty/tree/main/skills/race_condition
Command: npx skills add https://github.com/jinyimeng01/mastermind-bug-bounty --skill race-condition-jinyimeng01

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps security testers identify race conditions and TOCTOU vulnerabilities that allow unintended duplicate actions, state inconsistencies, or business logic failures under concurrent requests.

Core Features & Use Cases

  • Concurrency Testing Guidance: Provides structured approaches for testing payment, withdrawal, coupon, inventory, registration, and workflow race conditions.
  • PoC Development Patterns: Includes Go and Python concurrency templates for validating whether backend operations lack proper atomic controls.
  • Use Case: Apply this Skill during authorized bug bounty assessments to test whether limited-use resources, financial operations, or state transitions can be incorrectly repeated through parallel requests.

Quick Start

Ask the race-condition skill to analyze a target API workflow and design an authorized concurrency test plan for potential TOCTOU vulnerabilities.

Frequently Asked Questions about race-condition

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

FAQPage Schema
How do I test race conditions in web application workflows?

A TOCTOU vulnerability occurs when a system checks a condition and uses the result without atomic controls, allowing concurrent requests to bypass validation. You can detect these time-of-check-to-time-of-use flaws by analyzing concurrent operation failures in workflows like account recovery and inventory management.

What's the best way to write a proof-of-concept for concurrency bugs?

The best way to write a proof-of-concept for concurrency bugs is using Go or Python concurrency templates. These templates send parallel requests to target APIs, validating whether backend operations lack proper atomic controls and incorrectly repeat limited-use actions like coupon redemptions.

Can I use concurrency testing for bug bounty assessments?

Yes, you can use concurrency testing for authorized bug bounty assessments. It provides structured strategies to safely test whether financial operations, limited-use resources, and state transitions can be incorrectly repeated through parallel requests without disrupting the target environment.

Why does my payment API allow duplicate withdrawals under concurrent requests?

Your payment API allows duplicate withdrawals under concurrent requests because backend operations lack proper atomic controls. Analyzing these race conditions reveals that state transitions and financial operations are not locked during execution, causing business logic failures.

Does this concurrency testing approach work for registration and account recovery flows?

Yes, this concurrency testing approach works for registration and account recovery flows. It analyzes concurrent operation failures and applies safe validation procedures to detect time-of-check-to-time-of-use vulnerabilities across various state transitions and user workflows.