hunt-race-condition
Fungsinya
Alat ini membantu menemukan celah keamanan yang disebut 'race condition'. Celah ini terjadi ketika sebuah sistem tidak menangani beberapa aksi yang terjadi bersamaan dengan benar, sehingga memungkinkan seseorang melakukan sesuatu lebih dari sekali, misalnya memakai kupon berkali-kali.
Kapan dipakai
- โSaat Anda ingin menguji apakah kupon diskon bisa digunakan lebih dari sekali.
- โUntuk memeriksa apakah sesuatu bisa divoting atau di-like berkali-kali secara beruntun.
- โSaat mencoba melewati batas penggunaan sekali pakai pada promosi atau akun.
Link skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/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
โSaya ingin menguji apakah kupon diskon 10% bisa digunakan berkali-kali di website X.โ
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Alat ini mengirimkan banyak permintaan dengan sangat cepat, hampir bersamaan. Jika sistem tidak cukup cepat untuk memproses setiap permintaan secara terpisah, aksi yang sama mungkin bisa diselesaikan lebih dari sekali.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
โ ๏ธ AUTHORIZED USE ONLY This skill is for educational purposes or authorized security assessments only. You must have explicit, written permission from the system owner before using this tool. Misuse of this tool is illegal and strictly prohibited.
Mandatory confirmation gate Before running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:
- Ask the user to state the exact target URL, IP, account, or resource.
- Ask the user to confirm written authorization and the permitted scope.
- Show the exact command(s) and explain their expected effect.
- Wait for explicit confirmation in the current conversation.
Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.
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
โฆ
Pertanyaan umum
Apa itu 'race condition'?
Ini adalah bug yang terjadi ketika sistem tidak mengelola aksi yang berjalan bersamaan dengan baik, sehingga sebuah aksi (misalnya memakai kupon) bisa dijalankan lebih banyak kali dari yang seharusnya.
Apakah saya perlu izin untuk menggunakan alat ini?
Ya, Anda memerlukan izin tertulis yang jelas dari pemilik sistem sebelum melakukan pengujian. Menggunakannya tanpa izin adalah tindakan ilegal.
Sistem seperti apa yang paling rentan?
Sistem keuangan (seperti kartu hadiah), platform voting, sistem e-commerce, dan area apa pun yang memiliki batas penggunaan atau promosi.
Detail
Deskripsi asli dari pembuat
Hunting skill for race condition vulnerabilities.
Popularitas
- Bintang GitHub
- 48k
- Peringkat
- #4894
- Lisensi
- MIT
- Diperbarui
- 15/10/2026
Komentar
- โฆ
Skill lain dari repositori ini
00-andruia-consultant
48kMembantu agent Anda memulai atau meningkatkan proyek AI. Agent menganalisis kode, menyarankan tools, dan membuat rencana aksi dalam bahasa Spanyol.
007
48kMemungkinkan agent Anda melakukan audit keamanan dan threat modeling. Berguna untuk melindungi proyek dari serangan dan celah keamanan.
10-andruia-skill-smith
48kMembantu agent Anda membuat atau meningkatkan tools AI. Agent mendefinisikan cara kerja tools, menulis dokumentasi, dan memvalidasi strukturnya.
20-andruia-niche-intelligence
48kMemungkinkan agent Anda membuat ringkasan industri tertentu. Berguna untuk memahami konteks, aturan, pola penggunaan, dan risiko proyek dengan sumber terpercaya.
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.