Langsung ke konten
Skillpedia
Keamanan10k ยท #11975

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.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/SnailSploit/Claude-Red/blob/main/Skills/web/offensive-business-logic/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

โ€œ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

  1. Map every multi-step flow as a state machine (states + allowed transitions + side effects)
  2. For each transition, ask: who can call it, in what state, with what inputs, how many times
  3. Probe each axis (state, identity, input, frequency) for assumptions
  4. Combine flaws โ€” single-axis flaws are usually low severity; chains are critical
  5. 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 โ†’ shipped without paid)
  • 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

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • โ€ฆ

Skill lain dari repositori ini

Skill serupa