技能 编程开发 跨站脚本攻击(XSS)检测指南

跨站脚本攻击(XSS)检测指南

v20260415
offensive-xss
这是一份全面的跨站脚本攻击(XSS)检测方法论,涵盖了存储型、反射型、DOM型和盲注等所有主要XSS类型。内容包括CSP绕过、多语言载荷(polyglot payloads)和事件处理器注入等高级技术。适用于Web应用的安全测试和漏洞赏金猎寻,帮助识别和修补恶意脚本注入的漏洞。
获取技能
500 次下载
概览

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:

  1. Load and apply the full methodology below as your operational checklist
  2. Follow steps in order unless the user specifies otherwise
  3. For each technique, consider applicability to the current target/context
  4. Track which checklist items have been completed
  5. Suggest next steps based on findings

----------- | -------------------------------------------------------------------------------------------- | ------------------------------------------------------------------- | | React 19 | dangerouslySetInnerHTML, use() hook with unsanitized data, concurrent rendering races | Hydration mismatch bugs, useFormStatus edge cases | | Vue 3.4+ | v-html, dynamic component names (:<is="...">), v-htmlwith Composition API refs | Server-side rendering XSS inrenderToString | | **Svelte 5** |{@html ...}, runes ($state, $derived) with HTML content, event directives | Fine-grained reactivity can bypass sanitization | | **Next.js 15** | next/script strategy="beforeInteractive", Server Actions with unvalidated input, edge gaps | Turbopack dev server XSS (CVE-2024-XXXXX), RSC serialization issues | | **Solid 2.0** | innerHTMLin reactive statements,<Dynamic>component with user props | Signal-based XSS when reactivity wraps unsafe HTML | | **Astro 4.x** |set:htmlin.astrocomponents, framework islands with unescaped props | Server-side XSS in content collections | | **Qwik** |dangerouslySetInnerHTMLequivalent, resumability serialization issues | Hydration boundary XSS | | **Remix 2.x** | Loader data XSS,<Scripts/>with inline data, Form action injection | Deferred loader data without sanitization | | **Angular 17** |bypassSecurityTrust*methods,[innerHTML]` binding, custom element XSS | SSR hydration mismatch, signal-based XSS |

Detection & Monitoring (AI‑assisted)

Tool Notes
Acunetix 15 LLM‑powered mutation engine
Burp Suite 2024.8 “DAST+AI” context‑aware scan mode
XSSInspector AI/ML RL‑based payload generator
ParamSpider 3 LLM‑enhanced parameter discovery
信息
Category 编程开发
Name offensive-xss
版本 v20260415
大小 24.31KB
更新时间 2026-05-09
语言