Skip to content
Skillpedia
Security5.4k Β· #14940

hunt-xss

What it does

This skill tests whether user input is shown in a page without proper encoding, letting script run in a visitor's browser. It is for authorized testing of search, comment and profile fields.

When to use it

  • βœ“When a search or comment field reflects your input back on the page.
  • βœ“When an input appears inside a link, attribute or script context.
  • βœ“When you want to confirm whether a script can run in a page that other users see.

Skill link

https://github.com/elementalsouls/Claude-BugHunter/blob/main/skills/hunt-xss/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/elementalsouls/Claude-BugHunter/blob/main/skills/hunt-xss/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

β€œOur comment box reflects text back on the page. Can you check for cross-site scripting in our authorized test?”

5 new skills a week. 1 minute to read.

How it works

The agent enters a unique test marker and checks whether the page returns it with unescaped brackets. It then tries different page contexts and confirms the script runs only in a safe proof.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Autonomous Testing Priority

Verify reflection before claiming XSS β€” encoding is everything.

Your payload must appear in the response body with angle brackets UNESCAPED. <script> is XSS. &lt;script&gt; is safe encoding β€” not vulnerable.

Use a UNIQUE NUMERIC CANARY in your proof payload β€” e.g. <script>alert(91234)</script> or "><img src=x onerror=alert(91234)>. Pick a distinctive 4+ digit number, not alert(1). Practice pages are full of example payloads like alert(1)/alert('XSS') in their hint text; a unique number is how you tell YOUR reflected payload apart from the page's decoy examples. Proof = your alert(<canary>) shows up in the response with raw, unescaped angle brackets.

Try these contexts in order:

  1. Inline script injection (works when HTML context allows new tags):

    <script>alert(CANARY)</script>
    

    Use whatever canary string your proof contract specifies. Confirmed when <script>alert(CANARY) appears literally (not HTML-encoded) in the response.

  2. Attribute event injection (when < is filtered but attributes are injectable):

    " onmouseover="alert(CANARY)
    " onerror="alert(CANARY)
    " onload="alert(CANARY)
    
  3. URL/href context:

    javascript:alert(CANARY)
    

Distinguishing success from failure:

  • Vulnerable: response contains <script>alert( unescaped β€” browser would execute it
  • Filtered/safe: response contains &lt;script&gt; or &#x3C;script&#x3E; β€” properly encoded
  • Blocked: response is an error, or the reflected value is absent entirely

For stored XSS: inject into a field that other pages display (comments, usernames, ticket titles). Then fetch the rendering page and check for unescaped payload. The payload executes when any user views that page β€” higher severity than reflected.


Crown Jewel Targets

XSS is high-value when it combines privileged context + persistent delivery + scope escalation. The highest payouts come from:

  • Admin panels and authenticated dashboards (e.g., */admin, */settings) β€” attacker can hijack sessions with elevated privileges, exfiltrate tokens, or pivot to account takeover
  • Payment/financial flows (paypal.com, checkout pages, currency converters) β€” XSS here enables credential harvesting and financial fraud at scale
  • Stored XSS in collaborative features (wikis, markdown renderers, issue trackers, RDoc, labels, tags) β€” one payload infects every viewer, multiplying impact
  • SSO/signin pages (e.g., paypal.com/signin) β€” XSS here is critical because it can steal auth tokens across the entire platform
  • Shared SaaS tenant surfaces (*.myshopify.com, api.collabs.*) β€” XSS in one tenant's context can bleed across tenant boundaries
  • Help/documentation sites (help.shopify.com) β€” lower severity individually, but often have looser sanitization and trusted user perception
  • SVG/file upload endpoints β€” frequently bypasses CSP and sanitization simultaneously

Asset types that pay most: Main product domains > Admin subdomains > API endpoints > Marketing/help sites


OOB-Or-It-Didn't-Happen Gate (Blind / Stored XSS)

For blind and stored XSS β€” claims require an out-of-band confirmation, the same as blind SSRF. The OOB receiver fires when the payload actually executes in a browser somewhere (an admin reviewing logs, a SOC analyst opening a ticket, an email rendering a stored payload).

What is NOT confirmation

  • ASP.NET request validator rejected your < and returned a different status code β†’ not XSS, that's WAF noise.
  • Your payload appears in the response body URL-encoded or HTML-encoded β†’ not XSS, that's correct output encoding.
  • The form action attribute contains your payload string as %22onclick%3D… β†’ not XSS, the browser does NOT decode URL encoding inside HTML attribute values; the %22 stays as literal %22 in the DOM.
  • Your <script> tag appears in the response as &lt;script&gt; β†’ not XSS, that's escaping.

What IS confirmation

  • A request to your unique Collaborator subdomain (e.g., bxss-err-<random>.<collab>.oastify.com) arrives in the OOB listener after your payload was stored / reflected / queued.
  • For stored XSS: the request arrives hours or days later when an admin views the affected resource. Plant payloads early in the engagement and keep the listener open.
  • The User-Agent of the firing request is a browser (Mozilla/Chrome), not the server's own backend HTTP clie
FAQ

How is real XSS different from safe text?

Safe text comes back encoded, with brackets shown as entities. Unsafe text comes back as raw brackets.

Why use a unique number?

The skill says a distinct number tells your test apart from example payloads already on the page.

When is HTML injection covered instead?

The skill says markup that does not run scripts is covered by a separate HTML injection skill.

Details

Original description by the author

Hunting skill for xss vulnerabilities. Built from 174 public bug bounty reports. Use when hunting xss on any target. For markup injection that reflects raw HTML but does NOT execute JavaScript (no `<script>`/event-handler execution), see hunt-html-injection β€” escalate here once script execution is possible.

repo: elementalsouls/Claude-BugHunter

Popularity

GitHub stars
5.4k
Ranking position
#14940
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills