xss
Skill0 starsChanged 6 days agoMITView on GitHub
Focused hunt for Cross-Site Scripting: reflected, stored, and DOM-based, with context-aware payload selection, DOM sink/source tracing in JavaScript, and framework-aware bypasses. Use when the focus is XSS on a web target. Not for SSTI (use ssti), XSS delivered via LLM output only (use llm-security), or other injection classes.
10 other projects use a version of this.
Adopted by
Most recently taken up by
- mahumadad/quarrytheir own version, first seen Nov 8, 2026
- SubhiSec/claude-ai-cyber-security-skillstheir own version, first seen Oct 25, 2026
- TaiMaBenJi/taima-skillstheir own version, first seen Oct 11, 2026
- cdxiaodong/cain-agenttheir own version, first seen Oct 8, 2026
- emre-guler/websectheir own version, first seen Aug 27, 2026
- zyphr-labs/bounty-harnesstheir own version, first seen Aug 26, 2026
Used with
Projects with it also use deserialization, csrf and 1 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
langbyyiSkilldeserialization
Insecure deserialization playbook. Use when Java, PHP, or Python applications deserialize untrusted data via ObjectInputStream, unserialize, pickle, or similar mechanisms that may lead to RCE, file access, or privilege escalation.
Also in 3 projects that use this
langbyyiSkillcsrf
CSRF testing playbook. Use when reviewing state-changing web flows, anti-CSRF defenses, SameSite behavior, JSON CSRF, login CSRF, and OAuth state handling.
Also in 3 projects that use this
- +1 more from langbyyi
Other versions10 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 10
- cdxiaodong/cain-agent★ 953same name
- SubhiSec/claude-ai-cyber-security-skills★ 45same name
- 0xGhostCAT/claude-ai-cyber-security-skills★ 41same name
- sunilgentyala/OmniRed★ 5same name
- langbyyi/websec-skills★ 4same name
- emre-guler/websec★ 2same name
- TaiMaBenJi/taima-skills★ 1same name
- zyphr-labs/bounty-harness★ 1same name
- conjure-3301/skills★ 0same name
- mahumadad/quarry★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository25 other files it gives its agents.
- access-controlSkill
- atoSkill
- business-logicSkill
- cloudSkill
- cmd-injectionSkill
- fuzzingSkill
- graphqlSkill
- huntSkill
- info-leakSkill
- jwtSkill
- known-cvesSkill
- llm-securitySkill
- oauthSkill
- open-redirectSkill
- osintSkill
- param-pollutionSkill
- raceSkill
- reconSkill
- reportSkill
- request-smugglingSkill
- sqliSkill
- ssrfSkill
- sstiSkill
- upload-traversalSkill
- xxeSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 0 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
0
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
- Very specific: line 38
Run <skill-dir>/scripts/dom-sinks.sh <js-dir> first: it enumerates sinks and sources with file:line references and ranks files containing …
- Very specific: line 55
Default payload: alert(document.domain) or a marker console.log.
“Common” is measured: kept by at least 6 in 10 of the 7 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.
Files
XSS (Reflected / Stored / DOM)
When to use
- "Hunt XSS on X", "test for XSS on these params"
- OWASP coverage: A03 (XSS), CWE-79
When NOT to use
- Server-side template rendering (use
ssti) - XSS through AI chatbot output (use
llm-security, LLM05)
Inputs
- Target + params list (from
recon); one account for stored payloads
Rationalizations to reject
- "The param is reflected, so it's XSS" — reflection is not execution. Prove the payload executes (rendered DOM, alert, or a controlled callback), not just that it appears in the response.
- "The browser blocked it" — check whether sanitization is app-side or browser-side; don't report browser-blocked vectors as findings.
- "It fired once" — reproduce from a clean state (new session/cache) for the report.
Methodology
1. Context classification (per reflection point)
Determine exactly where the input lands: HTML body / attribute (quoted? which quotes?) / JS string / JS code block / URL / CSS / comment. Choose breakout per context: </tag>, " onmouseover=, '-alert()-', </script>. A payload outside its context is noise.
2. Reflected
- Send canary + breakout per context. Diff baseline vs payload response.
- Watch for WAF: try case (
<ScRiPt>), backticks, encodings (a), unclosed tags (<svg/onload=), junk padding.
3. DOM
- Run
<skill-dir>/scripts/dom-sinks.sh <js-dir>first: it enumerates sinks and sources with file:line references and ranks files containing both (candidate flows — trace those first). The lists below are the script's reference patterns, for manual tracing: - Sinks:
innerHTML,outerHTML,document.write,insertAdjacentHTML,eval,setTimeout(string),location=,location.href=,location.assign, jQuery$()/.html(),element.src=with controllable URL. - For each sink, trace sources:
location.hash,location.search,document.referrer,postMessage(check origin validation!),name. - Craft the URL/sequence that reaches the sink.
postMessagewithout origin check = DOM XSS via another window you open.
4. Stored
- Plant canaries (
bbxss<random>) in every persisted field: names, bio, address, filenames, UA, language, timezone, export contents, ticket titles. - Find where each renders. Check the rendering context (attribute? JS string?) and use the right breakout.
- Second-order: field stored then shown to another user/admin (support tickets → admin panel). Mark admin-facing stored XSS as high (admin session theft).
5. Framework awareness
- React: only
dangerouslySetInnerHTML,hrefwithjavascript:sinks, DOM refs. - Vue:
v-html, template injection via delimiters. - AngularJS (v1):
{{constructor.constructor('alert(1)')()}}anywhere user input reaches an interpolated scope — powerful and often missed. - Markdown/HTML sanitizers: test mutation/mXSS (
<noscript><p title="</noscript><img src=x onerror=alert(1)>">), sanitizer bypass lists.
6. Impact proof
Default payload: alert(document.domain) or a marker console.log. Never exfiltrate real cookies of others. For the report, show the executing payload and a screenshot-level description of the rendered state.
Reporting
findings/xss-<date>.md + coverage table endpoint | param | context | payload | executed?. Severity: stored on other users/admin = high; reflected on main origin = medium/high depending on placement; only-in-dev-tools = not a finding.
Focus discipline
Template syntax executing server-side → ssti. Payload triggering server fetch → ssrf.
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
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.

