offensive-business-logic
Fungsinya
Skill ini adalah metodologi untuk menemukan celah logika bisnis pada aplikasi web, mobile, dan API. Skill mencakup pelewatan alur kerja, manipulasi harga dan diskon, penyalahgunaan pengembalian dana, dan batas peran. Skill ditujukan bagi profesional keamanan yang menguji aplikasi dengan izin.
Kapan dipakai
- โSaat Anda menguji alur checkout, pengembalian dana, atau kupon dalam tes aplikasi yang sah.
- โKetika Anda ingin memeriksa apakah pengguna bisa melewati langkah wajib dalam proses bertahap.
- โKetika Anda perlu mengukur dampak finansial dari celah logika untuk laporan.
Link skill
https://github.com/SnailSploit/Claude-Red/blob/main/Skills/web/offensive-business-logic/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
โKami punya izin untuk menguji toko kami. Periksa apakah alur kupon dan pengembalian dana bisa disalahgunakan.โ
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill memetakan setiap alur bertahap sebagai kumpulan keadaan dan transisi. Lalu ia memeriksa setiap langkah untuk siapa yang bisa menjalankannya, dalam keadaan apa, dan seberapa sering, serta menggabungkan celah menjadi rantai di tempat yang paling penting.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Business Logic โ Offensive Testing Methodology
Business logic flaws are the highest-paying class of vulnerability for bug bounty and the hardest for scanners to detect. They live in the gap between what the developer specified and what an attacker can convince the system to accept.
Quick Workflow
- Map every multi-step flow as a state machine (states + allowed transitions + side effects)
- For each transition, ask: who can call it, in what state, with what inputs, how many times
- Probe each axis (state, identity, input, frequency) for assumptions
- Combine flaws โ single-axis flaws are usually low severity; chains are critical
- Quantify financial impact per finding (loss-per-attack ร scale)
Reconnaissance โ Mapping the Logic
Build the State Machine
For each user flow, draw:
- States: cart, pending payment, paid, shipped, refunded, cancelled
- Transitions: which API/UI action, which role, which preconditions
- Side effects: balance change, inventory change, email, webhook
Look for transitions that:
- Skip intermediate states (
cartโshippedwithoutpaid) - Are reversible when they shouldn't be (
shippedโcart) - Trigger side effects more than once
- Allow cross-role invocation
Hidden / Internal Endpoints
# Compare authenticated and unauthenticated JS bundles for buried admin routes
diff <(curl https://app/main.js) <(curl -H "Cookie: ..." https://app/main.js)
# Look for flag/feature toggles that change UI but not server-side enforcement
grep -E '(isAdmin|isInternal|featureFlag|debug)' bundle.js
# API spec (OpenAPI/Swagger) often lists endpoints the UI never calls
curl https://app/api/openapi.json | jq '.paths | keys'
Workflow / State-Machine Bypass
Skip a Required Step
# Normal flow: /verify-email โ /set-password โ /enable-2fa โ /dashboard
# Try jumping directly:
GET /dashboard
GET /api/account/details
POST /api/payout-settings
# Checkout flow: /cart โ /address โ /shipping โ /payment โ /confirm
# Skip /payment by replaying /confirm with a previous order's payment-token reference:
POST /api/order/confirm
{ "cartId": "current", "paymentRef": "<old-paid-order-payment-ref>" }
Replay a One-Time Action
# Refund endpoint without idempotency
POST /api/orders/123/refund # First call: $50 refunded, order marked refunded
POST /api/orders/123/refund # Second call: server checks "is order refunded?" โ race the check (see TOCTOU)
State Downgrade
Move a finalized object back to an editable state where mutations have effect:
PUT /api/order/123
{ "status": "draft" } # If accepted, you can now edit the price field
PUT /api/order/123
{ "items": [{ "id": "tv", "price": 1 }] }
Direct Endpoint Invocation
Many admin/backend transitions are reachable from any authenticated user if route-level RBAC is missing while the UI hides them.
# Enumerate verbs on every discovered path
for path in $(cat paths.txt); do
for v in GET POST PUT PATCH DELETE OPTIONS; do
code=$(curl -s -o /dev/null -w "%{http_code}" -X $v -H "Authorization: Bearer $T" https://app$path)
echo "$v $path $code"
done
done | grep -v -E ' (401|403|404) '
Price / Quantity / Currency Manipulation
Negative / Zero / Float Quantities
POST /api/cart/add
{ "sku": "tv", "qty": -1 } # Refund issued for adding negative items?
{ "sku": "tv", "qty": 0.0001 } # Float rounding: $0 line item, full product shipped?
{ "sku": "tv", "qty": 9e99 } # Overflow โ wraps to small number, $0 cost?
Hidden Price Fields
POST /api/checkout
{ "items": [{"sku":"tv","qty":1,"price":1}], "total": 1, "tax": 0, "shipping": 0 }
If the server trusts client-supplied price, you set the price. Test every numeric field โ price, total, discount, tax, shipping, subtotal, currency.
Currency Confusion
POST /api/checkout
{ "amount": 100, "currency": "JPY" } # Pay 100 JPY (~$0.65) for $100 USD product?
{ "amount": 100, "currency": "VND" } # Even better
{ "amount": 100, "currency": "BTC" } # Or worse: pay in BTC at $1 BTC = $1?
Look for: missing currency normalization, sloppy FX rate caching, currency lookup by user input.
Coupon / Discount Logic
# Apply same coupon multiple times
POST /api/cart/coupon { "code": "SAVE50" }
POST /api/cart/coupon { "code": "SAVE50" } # Stacks?
POST /api/cart/coupon { "code": "save50" } # Case sensitivity
Pertanyaan umum
Mengapa celah ini sulit ditemukan dengan pemindai?
Skill menjelaskan bahwa celah ini bergantung pada cara alur kerja aplikasi seharusnya berjalan, yang tidak dipahami pemindai.
Apakah ia mengukur dampak?
Ya. Ia menyarankan agar dampak finansial setiap temuan dihitung.
Apakah ini hanya untuk tes yang sah?
Ya. Ia ditulis untuk pengujian dengan izin tertulis.
Detail
Deskripsi asli dari pembuat
Business logic vulnerability testing for web/mobile/API engagements. Covers workflow bypass, state machine violations, multi-step process abuse, price/quantity/discount manipulation, currency confusion, coupon stacking, refund/chargeback abuse, race conditions on logic boundaries, parameter tampering for hidden flows, role/tenant boundary violations, time-of-check vs use, anti-automation defeat, fraud-detection evasion, and subscription/quota abuse. Use when scoping an application after surface-level OWASP Top 10 has been covered, or when the asset is a transactional/marketplace/fintech/e-comm
repo: SnailSploit/Claude-Red
Popularitas
- Bintang GitHub
- 10k
- Peringkat
- #11975
- Lisensi
- MIT
- Diperbarui
- 12/10/2026
Komentar
- โฆ
Skill lain dari repositori ini
offensive-active-directory
10kMembantu agent Anda merencanakan tes keamanan Active Directory yang sah, mulai dari memetakan jaringan hingga menemukan jalur serangan ke Domain Admin.
offensive-netexec
10kMembantu agent Anda memakai alat NetExec (nxc) untuk tes jaringan yang sah, mencakup protokol, autentikasi, dan pemeriksaan kredensial.
offensive-api-abuse
10kMembantu agent Anda merencanakan tes keamanan API yang sah untuk mencari penyalahgunaan logika bisnis, risiko GraphQL, dan kondisi balapan.
offensive-api-security
10kMembantu agent Anda menjalankan tes keamanan yang sah pada API REST, gRPC, dan WebSocket, berdasarkan OWASP API Top 10.
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.