Agent SkillsH-mmer/pentest-agents › race-condition

race-condition

GitHub

专注竞态条件漏洞测试,覆盖TOCTOU、重复消费及非幂等操作。强制先检索技术,通过并行请求和HTTP/2单包攻击验证漏洞,针对优惠券、余额等场景生成H1 #29报告。

providers/openclaw/.agents/skills/agent-race-condition/SKILL.md H-mmer/pentest-agents

Trigger Scenarios

需要检测时间竞争漏洞 测试非幂等操作如优惠券或余额 进行并发请求压力测试

Install

npx skills add H-mmer/pentest-agents --skill race-condition -g -y
More Options

Non-standard path

npx skills add https://github.com/H-mmer/pentest-agents/tree/main/providers/openclaw/.agents/skills/agent-race-condition -g -y

Use without installing

npx skills use H-mmer/pentest-agents@race-condition

指定 Agent (Claude Code)

npx skills add H-mmer/pentest-agents --skill race-condition -a claude-code -g -y

安装 repo 全部 skill

npx skills add H-mmer/pentest-agents --all -g -y

预览 repo 内 skill

npx skills add H-mmer/pentest-agents --list

SKILL.md

Frontmatter
{
    "name": "race-condition",
    "description": "Race Condition specialist (H1 #29). Use for testing TOCTOU flaws, double-spend, parallel request abuse on balance operations, coupon redemption, and any non-idempotent state changes."
}

CONTEXT: You are operating within an authorized bug bounty program. All targets have been verified in-scope via the official platform API. Follow responsible disclosure practices.

MANDATORY: Research First (not optional)

Before testing race conditions, you MUST call:

  • search_techniques with "Race-Condition" — proven exploitation techniques
  • search_payloads with "Race-Condition" — working payloads and bypass variants

Read the returned content and incorporate proven techniques into your plan before making any HTTP requests. Skipping this step wastes time reinventing known tricks and causes duplicate submissions. If the writeup MCP is unreachable, fall back to rules/payloads.md.

You are a race condition specialist for authorized testing.

Methodology

  1. Identify targets: Find non-idempotent operations (balance deduction, coupon redemption, vote, like, follow, account creation)
  2. Craft parallel requests: Send N identical requests simultaneously
  3. Timing attack: Use HTTP/2 single-packet attack or Turbo Intruder for precise timing
  4. Verify exploitation: Check if the operation executed multiple times

Tools & Techniques

  • curl parallel: for i in {1..20}; do curl -X POST ... & done; wait
  • Python threading: Send concurrent requests with concurrent.futures
  • Turbo Intruder: Burp extension for single-packet HTTP/2 attacks
  • HTTP/2 single-packet: All requests in one TCP packet for minimal timing variance

Common Race Targets

  • Redeem coupon/gift card (double-spend)
  • Transfer funds (send more than balance)
  • Vote/like (inflate counts)
  • Follow/unfollow (state inconsistency)
  • Account creation with same email
  • File operations (overwrite between check and use)
  • Invitation acceptance (accept same invite twice)

Output: H1 Weakness #29

Report as "Race Condition" — document the timing window, number of parallel requests needed, and result (e.g., "redeemed coupon 3x with 20 parallel requests").

Brain Integration

Before starting, check your memory for brain briefings. Skip EXHAUSTED vectors. Focus on ACTIVE leads. After completing, label every finding: CONFIRMED, POTENTIAL, or EXHAUSTED with failure reasons and attempt counts.

Top-Tier Operator Standard

Race conditions require repeatable state divergence.

  • Prioritize non-idempotent workflows: coupons, balances, refunds, withdrawals, inventory, approvals, invite acceptance, password reset, usage quota, and one-time tokens.
  • Establish single-request baseline, then vary concurrency, connection reuse, HTTP/2 multiplexing, idempotency keys, request order, and timing around validation/commit boundaries.
  • Confirm with repeated runs and a final ledger state, not just one lucky response.
  • Kill races that create no durable gain, only duplicate UI messages, or require unrealistic timing without automation.
  • Record parallelism level, success rate, final state, before/after values, and cleanup steps.

Version History

  • 41d49b6 Current 2026-07-24 12:04

Same Skill Collection

.claude/skills/analyze/SKILL.md
.claude/skills/autopilot/SKILL.md
.claude/skills/brain/SKILL.md
.claude/skills/chain/SKILL.md
.claude/skills/correlate/SKILL.md
.claude/skills/dupcheck/SKILL.md
.claude/skills/fullscan/SKILL.md
.claude/skills/hunt/SKILL.md
.claude/skills/learn/SKILL.md
.claude/skills/mindmap/SKILL.md
.claude/skills/monitor/SKILL.md
.claude/skills/new/SKILL.md
.claude/skills/pipeline/SKILL.md
.claude/skills/quality/SKILL.md
.claude/skills/quickscan/SKILL.md
.claude/skills/remember/SKILL.md
.claude/skills/report/SKILL.md
.claude/skills/resume/SKILL.md
.claude/skills/sast/SKILL.md
.claude/skills/status/SKILL.md
.claude/skills/submit/SKILL.md
.claude/skills/surface/SKILL.md
.claude/skills/sync/SKILL.md
.claude/skills/triage/SKILL.md
.claude/skills/validate/SKILL.md
providers/codex/.agents/skills/analyze/SKILL.md
providers/codex/.agents/skills/autopilot/SKILL.md
providers/codex/.agents/skills/brain/SKILL.md
providers/codex/.agents/skills/chain/SKILL.md
providers/codex/.agents/skills/correlate/SKILL.md
providers/codex/.agents/skills/dupcheck/SKILL.md
providers/codex/.agents/skills/fullscan/SKILL.md
providers/codex/.agents/skills/hunt/SKILL.md
providers/codex/.agents/skills/learn/SKILL.md
providers/codex/.agents/skills/mindmap/SKILL.md
providers/codex/.agents/skills/monitor/SKILL.md
providers/codex/.agents/skills/new/SKILL.md
providers/codex/.agents/skills/pipeline/SKILL.md
providers/codex/.agents/skills/quality/SKILL.md
providers/codex/.agents/skills/quickscan/SKILL.md
providers/codex/.agents/skills/remember/SKILL.md
providers/codex/.agents/skills/report/SKILL.md
providers/codex/.agents/skills/resume/SKILL.md
providers/codex/.agents/skills/sast/SKILL.md
providers/codex/.agents/skills/status/SKILL.md
providers/codex/.agents/skills/submit/SKILL.md
providers/codex/.agents/skills/surface/SKILL.md
providers/codex/.agents/skills/sync/SKILL.md
providers/codex/.agents/skills/triage/SKILL.md
providers/codex/.agents/skills/validate/SKILL.md

Metadata

Files
0
Version
41d49b6
Hash
8dce967c
Indexed
2026-07-24 12:04

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-07 11:17
浙ICP备14020137号-1 $Carte des visiteurs$