Langsung ke konten
Skillpedia
Keamanan5.4k Β· #14927

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.md

Salin 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

Gunakan skill ini untuk membantu saya: https://github.com/elementalsouls/Claude-BugHunter/blob/main/skills/hunt-race-condition/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

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):
    Request 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 a fresh CSRF from GET /register first, 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 INCR atomicity checks
  • Message queues β€” idempotency keys often missing

Step-by-Step Hunting Methodology

  1. 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.

  2. 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.

  3. 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.

repo: elementalsouls/Claude-BugHunter

Popularitas

Bintang GitHub
5.4k
Peringkat
#14927
Lisensi
MIT
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa