agentleFS
silonxxsilonxx/hackbot/skills/hunt-xss/SKILL.md

hunt-xss

Skill0 starsChanged 3 months agoMITView on GitHub

Reflected, stored, and DOM-based XSS hunting methodology, with escalation to ATO and data exfiltration. TRIGGER: user is testing input reflected in a page, markdown/rich-text editors, file upload rendering, redirect/hash params, DOM sinks, or hunting reflected/stored/DOM XSS. For payloads that fire later in a context you can't see, use hunt-bxss.

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Reflected: search and error params, redirect/return_url params (Reddit redirect -> XSS $5k), OAuth/login flows (LINE OAuth, Shopify Google …

    line 26
  2. Distinctive:

    Find injection points: every reflected/stored input from recon — params, headers, path, JSON fields, file contents/names, markdown.

    line 35
  3. Very specific:

    Bypass filters/WAF/sanitizer/CSP: if blocked:

    line 44
  4. Distinctive:

    Data exfiltration: read authenticated page content / API responses and send to your collector (TikTok XSS -> data exfil).

    line 56
  5. Distinctive:

    Never pop/execute against real users.

    line 74
  6. Distinctive:

    REMOVE the stored payload after proving it — don't leave live XSS on the app.

    line 76

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

hunt-xss — Reflected / Stored / DOM XSS Hunting

You are assisting an authorized bug bounty hunter under a program's published policy. XSS impact ranges from a useless alert(1) to $16k-$20k stored XSS and full account takeover. Teach them to find the injection, nail the CONTEXT, bypass filters, and — most importantly — ESCALATE past alert(1) to real impact. (Depth: cloned hackerone-reports/tops_by_bug_type/TOPXSS.md.)

Core philosophy

XSS = your JavaScript runs in someone else's session. The finding is the injection; the BOUNTY is (a) who executes it and (b) what you escalate to. Rank by that: stored XSS in a sensitive/shared context that leads to ATO >> reflected XSS with real impact >> self-XSS (usually N/A). alert(1) only proves execution; the report needs the escalation.

Types and where they hide

  • Stored (highest value): markdown/rich-text editors (GitLab markdown $16k, Kroki diagram $13.95k), profile/staff-name fields, comments/messages (Basecamp email $5k, Reddit RichText $5k), address/billing fields, file upload rendering (SVG/HTML upload -> stored XSS), cache poisoning (PayPal signin $18.9k).
  • Reflected: search and error params, redirect/return_url params (Reddit redirect -> XSS $5k), OAuth/login flows (LINE OAuth, Shopify Google login), marketing/landing pages.
  • DOM-based: location.hash/search into sinks (Slack hash, DuckDuckGo search) — innerHTML, document.write, eval, jQuery.html(), element.src, setAttribute.
  • mXSS: mutation via the browser's HTML re-parsing, bypasses many sanitizers.

Discovery methodology

  1. Find injection points: every reflected/stored input from recon — params, headers, path, JSON fields, file contents/names, markdown.
  2. Identify the CONTEXT where your input lands (this dictates the payload):
    • HTML body -> <svg onload=...> / <img src=x onerror=...>
    • HTML attribute -> break out with " or ', then add an event handler
    • JS string -> break out with '; / </script>
    • URL/href -> javascript: URI
    • CSS / template -> context-specific gadgets
  3. Confirm execution with a benign marker in the RIGHT context.
  4. Bypass filters/WAF/sanitizer/CSP if blocked:
    • Encoding (HTML/URL/unicode), case/whitespace/comment tricks, mutation (mXSS), unclosed tags, alternate event handlers/tags.
    • CSP: look for unsafe-inline, JSONP endpoints, allowlisted CDNs, DOM- clobbering and script-gadget bypasses.
  5. Locate the DOM sink for DOM-XSS by tracing source -> sink in the JS.

Escalation (this is the actual report — go past alert(1))

  • Account takeover: steal non-HttpOnly session cookies, or exfil CSRF tokens and perform account-changing actions (email/password) -> ties into hunt-ato. (Razer reflected XSS -> ATO; Superhuman cookie+XSS -> ATO.)
  • Credential theft: inject a fake login/keylogger (Yelp XSS ATO via keylogger).
  • Data exfiltration: read authenticated page content / API responses and send to your collector (TikTok XSS -> data exfil).
  • Privileged context: stored XSS that fires in an admin/staff panel -> if you can't see it fire, that's blind XSS (use hunt-bxss).
  • XSS -> RCE: in desktop/Electron or headless contexts (Valve Panorama).

Impact demonstration

  • Show execution in the correct context, then a MINIMAL proof of the escalation (e.g. your own cookie captured to your listener, a state-change performed) done against YOUR OWN test account.
  • Note mitigations present/absent: HttpOnly, CSP, SameSite — they shape severity.

Tools

  • Automated reflection/DOM detection: dalfox (great for param scanning), Burp.
  • Payloads/bypasses: PortSwigger XSS cheat sheet. Own collector for exfil PoC.

Scope & ethics guardrails

  • Fire payloads only in YOUR OWN browser/session or against your own test account. Never pop/execute against real users.
  • For stored XSS, use a benign payload (e.g. a callback to your listener), and REMOVE the stored payload after proving it — don't leave live XSS on the app.
  • Cookie/session theft PoC: capture only YOUR OWN session as proof; never harvest real users' cookies/data.
  • Confirm scope. Self-XSS with no delivery path is usually N/A — run findings through triage-finding before reporting.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.