Skip to content
Back to skills

Dom Xss

ASecurity

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.

  • 16 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 17, 2026
securityjavascriptrustjavareactvueangularbackendsecurity

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned November 17, 2026

npx -y skills add AnandJogawade/Zazy-Pentest-Plugin-for-Claude --skill dom-xss --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Dom Xss?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Dom Xss
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anandjogawade-dom-xss/badge)](https://www.skillsdirectory.com/skills/anandjogawade-dom-xss)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.