hunt-race-condition
Fungsinya
Skill ini memeriksa race condition, yaitu permintaan yang dikirim bersamaan dan melewati aturan sekali pakai atau terbatas. Ditujukan untuk pengujian resmi pada kupon, kartu hadiah, pendaftaran, dan langkah verifikasi.
Kapan dipakai
- βSaat kupon, kartu hadiah, atau hadiah bisa dipakai lebih dari sekali.
- βSaat kode sekali pakai atau langkah verifikasi mungkin menerima permintaan paralel.
- βSaat langkah pembuatan akun bisa diselesaikan dua kali sebelum diperiksa.
Link skill
https://github.com/elementalsouls/Claude-BugHunter/blob/main/skills/hunt-race-condition/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βBisakah Anda memeriksa apakah kode kupon kami bisa ditukarkan dua kali jika saya mengirim dua permintaan pada saat yang sama dalam uji resmi kami?β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent mengirim sekelompok permintaan yang identik atau sejenis dalam satu jendela waktu yang rapat, lalu memeriksa apakah lebih dari satu berhasil. Agent mengulang percobaan untuk memastikan hasilnya.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Firing a race β two primitives (tooling-agnostic)
Winning a race needs requests that arrive in the same narrow window β sequential sends never
work. Use a single-packet / synchronized-send tool: Burp Repeater "Send group in parallel"
(HTTP/2 single-packet attack), Turbo Intruder (engine=Engine.BURP2, gate sync), or any
client that can flush N requests simultaneously. Two shapes:
- Identical-copies race β fire N IDENTICAL copies of one request at once (limit-overrun: double-spend a coupon/gift-card, exceed a one-per-user quota). Success = β₯2 of the N return 2xx.
- Different-requests race (partial construction) β fire a LIST of DIFFERENT requests in one
synchronized window, repeated over several rounds. For register-then-confirm / TOCTOU races
where the object exists in a usable state mid-creation. Example (email-verification bypass β
register an arbitrary email, then confirm it through the construction window with a blank token):
Get a fresh CSRF fromRequest A: POST /register body: csrf=<csrf>&username=hacker&email=anything@exploit.net&password=pw Request B: GET /confirm params: token= (empty) Fire A and B together, repeat ~20 rounds.GET /registerfirst, then fire the batch. After it succeeds, log in as the new account and perform the objective (e.g. a state-changing admin action such as deleting a user). The blank-token confirm wins during the window where the user row exists but its verification token isn't set yet.
Crown Jewel Targets
Race conditions are high-severity findings because they break financial, access control, and integrity assumptions that defenders rarely stress-test. Highest payouts come from:
- Monetary/credit systems β double-spending gift cards, coupons, referral bonuses, promotional credits, wallet balances
- Vote/reputation manipulation β upvoting the same content multiple times, gaming leaderboards or trending algorithms
- Account limits bypass β exceeding free-tier quotas, bypassing "one per user" restrictions on invites, trial activations, or API key generation
- Privilege escalation β racing role assignment or permission checks during user creation/upgrade flows
- Deletion bypass β reading or exfiltrating data during a narrow window between "marked for deletion" and "actually deleted"
- Payment flows β charging a card once but receiving multiple fulfillments
Best-paying asset types: Fintech apps, SaaS platforms with credit/subscription models, social platforms with reputation systems, e-commerce checkout flows, OAuth/SSO token endpoints.
Attack Surface Signals
URL Patterns
/vote, /upvote, /like, /favorite
/redeem, /apply-coupon, /use-code, /claim
/purchase, /checkout, /confirm-order, /pay
/transfer, /withdraw, /send-money
/invite, /referral, /accept-invite
/upgrade, /activate, /trial
/delete, /deactivate, /cancel
/follow, /subscribe
Response Headers That Signal Race-Prone Backends
X-RateLimit-* # rate limiting exists, but may not be atomic
X-Request-Id # each request independently tracked
No Cache-Control # stateful ops not idempotent
JavaScript Patterns to Grep
// Single-use action buttons with client-side disable
button.disabled = true
$('#btn').prop('disabled', true)
// Optimistic UI updates (state set before server confirms)
setState({ used: true })
// Sequential async calls without locking
await useVoucher(); await deductBalance();
Tech Stack Signals
- Ruby on Rails without
with_lock/lock!β ActiveRecord doesn't lock by default - Node.js with async/await chains β non-atomic DB reads then writes
- PHP without
SELECT ... FOR UPDATEβ common in legacy codebases - Microservices β inter-service calls introduce natural TOCTOU windows
- Redis counters without Lua scripts or
INCRatomicity checks - Message queues β idempotency keys often missing
Step-by-Step Hunting Methodology
Enumerate one-time or limited-use actions β Map every endpoint that enforces a "once per user", "limited quantity", or "deduct balance" constraint. These are your primary targets.
Understand the state machine β For each target action, identify: (a) what state is read, (b) what state is written, (c) what validation sits between read and write. The gap between read and write is your window.
Capture a clean baseline request β Perform the action once legitimately with Bu
Pertanyaan umum
Mengapa permintaan harus tiba bersamaan?
Mengirimnya satu per satu biasanya melewatkan jendela waktu yang sempit yang membuat race itu berhasil.
Alat apa yang dipakai?
Skill ini menyebut pengiriman paralel di Burp Repeater dan Turbo Intruder untuk pengiriman yang tersinkron.
Apa yang dihitung sebagai keberhasilan?
Skill ini menyatakan minimal dua permintaan yang identik harus mengembalikan respons berhasil.
Detail
Deskripsi asli dari pembuat
Hunting skill for race condition vulnerabilities. Built from 12 public bug bounty reports including modern HTTP/2 single-packet attack cases (James Kettle DEF CON 2023 "Smashing the State Machine"; RyotaK / Flatt Security 10,000-request first-sequence-sync expansion 2024). Covers coupon double-redemption, gift-card double-spend, MFA-OTP-validate race, account-create race, faucet/crypto token double-mint, email-activation race, vote/upvote inflation, password-reset token race, rate-limit bypass via concurrent requests. Use when hunting race conditions, TOCTOU bugs, MFA-bypass-via-timing.
Popularitas
- Bintang GitHub
- 5.4k
- Peringkat
- #14927
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
apk-redteam-pipeline
5.4kMembantu agent Anda menguji aplikasi Android untuk kelemahan keamanan, mulai dari mencari file APK dan melakukan dekompilasi hingga memeriksa rahasia yang terekspos.
bugcrowd-reporting
5.4kMembantu agent Anda menulis laporan kerentanan Bugcrowd yang lebih baik, dengan memilih kategori yang tepat dan menjawab keberatan out-of-scope.
cloud-iam-deep
5.4kMembantu agent Anda memeriksa apa yang bisa diakses oleh kredensial cloud yang ditemukan di AWS, Azure, atau Google Cloud, selama pengujian keamanan yang sudah diizinkan.
enterprise-vpn-attack
5.4kMembantu agent Anda memeriksa perangkat VPN dan akses jarak jauh dari Cisco, Fortinet, Citrix, dan lainnya untuk kelemahan yang diketahui selama pengujian yang sudah diizinkan.
Skill serupa
reverse-engineer-anything
422kMembantu agent Anda memeriksa aplikasi dan paket yang sudah dirilis untuk menjelaskan fitur, membandingkan versi, atau memandu pembangunan ulang dengan alat REA.
1password
394kMembantu agent Anda mengatur CLI 1Password, masuk, serta membaca atau menyisipkan rahasia tanpa menampilkan nilainya di chat.
healthcheck
394kMembantu agent Anda mengaudit komputer atau server OpenClaw dari risiko keamanan seperti SSH, firewall, pembaruan, dan cadangan, lalu menyarankan perbaikan aman.