xss-cross-site-scripting

Map reflected or stored input to HTML, attribute, JavaScript, URL, upload, or XML/DOM sink contexts.

5|2|Updated May 16, 2026
One-click install
npx skills add https://github.com/DorianGallo/hack-skills-local --skill xss-cross-site-scripting-doriangallo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: xss-cross-site-scripting
Source: https://github.com/DorianGallo/hack-skills-local/tree/main/skills/xss-cross-site-scripting
Command: npx skills add https://github.com/DorianGallo/hack-skills-local --skill xss-cross-site-scripting-doriangallo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you identify, validate, and weaponize Cross-Site Scripting when user input flows into HTML, attributes, JavaScript, URLs, uploads, or DOM insertion sinks across multiple contexts.

Core Features & Use Cases

  • Injection-context driven payload selection: choose payloads based on whether the reflection lands in HTML, attributes, JS strings/blocks, URLs, or XML contexts.
  • Real-world bypass coverage: apply filter/WAF bypass patterns, encoding chains, CSP bypass strategies (including JSONP allow-lists and base-uri injection), and Trusted Types considerations.
  • Post-exploitation decisioning: escalate via session-impact techniques (CSRF via XSS, session fixation, HttpOnly-aware strategy), blind/second-order XSS methodology, and side-channel leakage (XS-Leaks).

Quick Start

Tell the agent which parameter is reflected and in what context (HTML/attribute/URL/JS/XML), and ask it to propose a minimal, context-correct XSS payload plus the next bypass/escalation steps if it is blocked.

Frequently Asked Questions about xss-cross-site-scripting

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find the right XSS payload for a specific HTML or JavaScript injection context?

To find the right XSS payload for a specific injection context, you map reflected or stored input to the correct HTML, attribute, JavaScript, URL, upload, or XML/DOM sink. This ensures the payload matches the exact execution context where the input lands.

How do I bypass CSP and Trusted Types when testing for modern XSS vulnerabilities?

To bypass CSP and Trusted Types during XSS testing, you apply specific bypass techniques including JSONP allow-lists, base-uri injection, and encoding chains. The approach adapts filter, WAF, and CSP bypass strategies based on the target's active security configurations.

What is blind XSS testing and how do I validate second-order injection paths?

Blind XSS testing validates second-order injection paths by mapping stored user input to delayed execution sinks. It requires staged validation and escalation workflows to confirm exploitability when the payload renders in a different application context or administrative panel.

Can I use DOM clobbering and XS-Leaks for post-exploitation after finding an XSS vector?

Yes, you can use DOM clobbering and XS-Leaks for post-exploitation after finding an XSS vector. Escalation workflows include session-impact techniques like CSRF via XSS, session fixation, and side-channel leakage strategies to maximize the vulnerability's impact.

Does this XSS testing approach work against WAF-protected endpoints and modern web frameworks?

This XSS testing approach works against WAF-protected endpoints and modern web frameworks by applying real-world bypass coverage. It utilizes filter evasion patterns and encoding chains specifically designed to navigate WAF protections and framework-specific DOM insertion sinks.

How do I escalate an XSS vulnerability to demonstrate session impact?

To escalate an XSS vulnerability and demonstrate session impact, you apply specific escalation workflows including HttpOnly-aware strategies, session fixation, and CSRF via XSS. These techniques prove the practical security impact of the identified injection path.