SKILL: Cross-Site Scripting (XSS)
Metadata
Description
Cross-Site Scripting testing checklist: stored/reflected/DOM/blind XSS discovery, polyglot payloads, CSP bypass, XSS filter bypass, event handler injection, DOM clobbering, mutation XSS, and impact escalation (session hijack, phishing, keylogging). Use for web app XSS testing and bug bounty.
Trigger Phrases
Use this skill when the conversation involves any of:
XSS, cross-site scripting, stored XSS, reflected XSS, DOM XSS, blind XSS, CSP bypass, XSS filter bypass, polyglot, DOM clobbering, mutation XSS, event handler injection
Instructions for Claude
When this skill is active:
- Load and apply the full methodology below as your operational checklist
- Follow steps in order unless the user specifies otherwise
- For each technique, consider applicability to the current target/context
- Track which checklist items have been completed
- Suggest next steps based on findings
Full Methodology
Cross-Site Scripting (XSS)
Shortcut
- Look for user input opportunities on the application. When user input is stored and used to construct a web page later, test the input field for stored XSS. if user input in a URL gets reflected back on the resulting web page, test for reflected and DOM XSS.
- Insert XSS payloads into the user input fields you've found. Insert payloads from lists online, a polyglot payload, or a generic test string.
- Confirm the impact of the payload by checking whether your browser runs your JavaScript code. Or in the case of a blind XSS, see if you can make the victim browser generate a request to your server.
- If you can't get any payloads to execute, try bypassing XSS protections.
- Automate the XSS hunting process
- Consider the impact of the XSS you've found: who does it target? How many users can it affect? And what can you achieve with it? Can you escalate the attack by using what you've found?
Mechanisms
Cross-Site Scripting (XSS) is a vulnerability that allows attackers to inject malicious client-side scripts into web pages viewed by other users. XSS occurs when applications incorporate user-supplied data into a page without proper validation or encoding.
📎 Detailed content (full examples / references / data tables) has been split into reference.md in the same directory; use Read to load the relevant section on demand.
1---2name: offensive-xss3description: "XSS testing: stored/reflected/DOM/blind XSS, polyglot payloads, CSP bypass, filter bypass, event handler injection, DOM clobbering, mutation XSS. Signals: xss, cross-site scripting."4zh-signals: "XSS 测试清单:存储/反射/DOM/盲 XSS、polyglot 载荷、CSP 绕过、过滤器绕过、事件处理器注入、DOM clobbering、mutation XSS。信号:xss,跨站脚本。"5when-to-use: Cross-Site Scripting (XSS)6metadata:7 source: https://skillmd.com/skills/dangeroussong/offensive-xss8---910# SKILL: Cross-Site Scripting (XSS)1112## Metadata13- **Skill Name**: xss14- **Folder**: offensive-xss15- **Source**: https://github.com/SnailSploit/offensive-checklist/blob/main/xss.md1617## Description18Cross-Site Scripting testing checklist: stored/reflected/DOM/blind XSS discovery, polyglot payloads, CSP bypass, XSS filter bypass, event handler injection, DOM clobbering, mutation XSS, and impact escalation (session hijack, phishing, keylogging). Use for web app XSS testing and bug bounty.1920## Trigger Phrases21Use this skill when the conversation involves any of:22`XSS, cross-site scripting, stored XSS, reflected XSS, DOM XSS, blind XSS, CSP bypass, XSS filter bypass, polyglot, DOM clobbering, mutation XSS, event handler injection`2324## Instructions for Claude2526When this skill is active:271. Load and apply the full methodology below as your operational checklist282. Follow steps in order unless the user specifies otherwise293. For each technique, consider applicability to the current target/context304. Track which checklist items have been completed315. Suggest next steps based on findings3233---3435## Full Methodology3637# Cross-Site Scripting (XSS)3839## Shortcut4041- Look for user input opportunities on the application. When user input is stored and used to construct a web page later, test the input field for stored XSS. if user input in a URL gets reflected back on the resulting web page, test for reflected and DOM XSS.42- Insert XSS payloads into the user input fields you've found. Insert payloads from lists online, a polyglot payload, or a generic test string.43- Confirm the impact of the payload by checking whether your browser runs your JavaScript code. Or in the case of a blind XSS, see if you can make the victim browser generate a request to your server.44- If you can't get any payloads to execute, try bypassing XSS protections.45- Automate the XSS hunting process46- Consider the impact of the XSS you've found: who does it target? How many users can it affect? And what can you achieve with it? Can you escalate the attack by using what you've found?4748## Mechanisms4950Cross-Site Scripting (XSS) is a vulnerability that allows attackers to inject malicious client-side scripts into web pages viewed by other users. XSS occurs when applications incorporate user-supplied data into a page without proper validation or encoding.5152> 📎 Detailed content (full examples / references / data tables) has been split into `reference.md` in the same directory; use Read to load the relevant section on demand.