XSS Testing Playbook
by Mr Vempire
A systematic playbook for finding and proving reflected, stored, and DOM-based XSS with zero false positives.
$9.99
XSS Testing Playbook
Example session with this skill installed
I found a search parameter that reflects my input inside a value attribute. How do I confirm if this is a reflected XSS vulnerability and what should I put in my report?
- Read your context and instructions
- Compiled the xss testing playbook
I have analyzed the reflection context for the search parameter. Since the input lands inside a value attribute, a simple script tag will likely fail. You must first break out of the attribute context.
Reflected XSS Confirmation: Search Parameter
| Field | Detail |
|---|---|
| Vulnerability Type | Reflected XSS |
| Injection Point | q URL parameter |
| Reflection Context | HTML Attribute (<input type="text" value="[INPUT]">) |
| Payload Class | Attribute Breakout |
| Confirmed Payload | "><img src=x onerror=alert(document.domain)> |
| Execution Status | Confirmed in clean Chromium session |
| Severity | Medium (Authenticated) |
Technical Summary
The application fails to properly attribute-encode the q parameter before rendering it. By providing a leading ">, the input terminates the current input tag and injects a new img element with an onerror handler. This allows for arbitrary JavaScript execution in the victim's browser context.
Remediation
Apply HTML attribute encoding to the q parameter before rendering it within the value attribute. Ensure that characters like " are converted to ". Additionally, implement a Content Security Policy (CSP) that restricts unsafe-inline scripts.
Next steps
- Capture a screenshot of the
alert(document.domain)popup on the target page. - Check if the same parameter is reflected anywhere else, such as in a "No results found for..." message.
- Save the findings to
confirmed-findings-report.md.
Connects securely to your tools. The creator never sees your data.
About this skill
XSS vulnerabilities remain a leading cause of account takeover and data theft, yet they are often missed by automated scanners or reported as unverified possibilities. This skill provides a systematic playbook for identifying and proving reflected, stored, and DOM-based XSS with zero false positives.
What it does
- Map attack surfaces by building a comprehensive inventory of all form fields, URL parameters, headers, and API endpoints.
- Trace data flow using inert marker strings to identify exactly where and how input is reflected in the HTML or JavaScript context.
- Execute targeted payloads using a tiered approach from basic tag injection to complex filter bypasses and attribute breakouts.
- Verify stored vulnerabilities by testing cross-account persistence, specifically targeting high-impact admin moderation queues and profile views.
- Audit DOM-based sinks by tracing dangerous sources like
location.hashandpostMessageinto sinks likeinnerHTMLoreval. - Generate proof-of-concept reports that include reproduction steps, payload classes, and specific remediation advice for developers.
How it works
- Inventory phase where you identify every user-controlled input and its corresponding output location in the application.
- Context analysis using unique marker strings to determine if the output is reflected in a tag, attribute, or script block.
- Payload selection based on the detected context, starting with
payloads.mdto find the minimal viable execution. - Clean-room reproduction to confirm the vulnerability fires in a fresh browser session without extensions or false triggers.
Frameworks & tools
Works with any web stack including React, Vue, Angular, and server-side templates. Requires a browser with developer tools and an intercepting proxy like Burp Suite or OWASP ZAP.
Why this beats prompting it yourself
Generic prompts often return noisy lists of generic payloads that trigger WAFs or fail in specific HTML contexts. This skill enforces a context-aware methodology and a strict confirmation rule, ensuring every reported bug is reproducible and actionable.
Use cases
- Performing a web penetration test where high-confidence evidence is required.
- Reviewing new features that render user-supplied content or rich text.
- Verifying if a developer's fix effectively neutralizes a previously found XSS.
- Participating in bug bounty programs where proof-of-concept quality impacts rewards.
Known limitations
Requires manual interaction with a browser and proxy. Does not support automated blind XSS testing or exfiltration-based proof of concepts.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 4 days ago
Permissions
No special permissions declared or detected
What's inside
Frequently Asked Questions
New in Security
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Security.