Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Dom Xss?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-dom-xss)
---
name: dom-xss
description: "DOM-based XSS and client-side injection — untrusted source (location/hash/postMessage/storage/referrer) reaching a dangerous sink (innerHTML/eval/document.write/Function/location/framework sinks) entirely in client JS. Source-to-sink taint tracing, no-server-roundtrip exploitation, and framework-specific sinks. Tier 1. Payloads: payloads/xss.md + client-side.md."
---
# DOM-Based XSS
The vulnerability lives in client JavaScript — often no server round-trip. Trace sources to sinks in the browser.
## Trigger phrases
`dom xss, dom based xss, client side xss, innerHTML sink, document.write, source to sink`
## Sources & sinks
- **Sources:** `location` (href/search/hash), `document.URL`, `referrer`, `window.name`, `postMessage`, `localStorage`/`sessionStorage`, `document.cookie`.
- **Sinks:** `innerHTML`/`outerHTML`, `document.write`, `eval`/`Function`/`setTimeout(str)`, `location`/`.href`, jQuery ``/`.html()`, framework sinks (React `dangerouslySetInnerHTML`, Vue `v-html`, Angular `bypassSecurityTrust*`).
## Method
1. In DevTools/headless browser, set a source value and watch whether it reaches a sink (dynamic taint). Test hash and query sources; many DOM XSS need no server.
2. Craft the sink-appropriate payload (`${CLAUDE_PLUGIN_ROOT}/payloads/xss.md`); for `javascript:`/attribute sinks use URL/attribute vectors.
3. **Modern:** client-side prototype-pollution → DOM XSS via browser-builtin/library gadgets; `strict-dynamic`+jQuery script gadgets; `document.currentScript` clobbering in bundler shims (verify on target).
4. Confirm execution in-browser.
## Escalation
Same as XSS impact; combine with prototype pollution / DOM clobbering (→ `web-client-side`).
## Backend & tooling
Preferred Kali path (native / WSL+Kali / Kali-SSH / Kali-MCP / HexStrike / Metasploit-MCP) or headless browser for client-side; Windows-local last resort. If a Burp MCP is present, route requests through Burp proxy for visibility and send manual PoCs to Repeater (see `zazy-orchestrator`).
## Verification (background, before reporting)
Re-confirm independently (second payload/tool/vantage or OAST callback) and reproduce before marking CONFIRMED. For blind cases use OAST (Collaborator/interactsh) before concluding negative. Report true positives only.
## Evidence
The source→sink trace, the firing payload (hash/query/postMessage), and execution proof.