Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
wgpsec avatar

Xss Methodology

  • 18 installs
  • 1.6k repo stars
  • Updated July 19, 2026
  • wgpsec/aboutsecurity

Helps with ai & agent building tasks during AI-assisted development.

About

xss-methodology is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted coding.

  • xss-methodology
  • AI & Agent Building
  • AI-coding skill

Xss Methodology by the numbers

  • 18 all-time installs (skills.sh)
  • Ranked #10,710 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/wgpsec/aboutsecurity --skill xss-methodology

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs18
repo stars1.6k
Last updatedJuly 19, 2026
Repositorywgpsec/aboutsecurity

What it does

Helps with ai & agent building tasks during AI-assisted development.

Files

SKILL.mdMarkdownGitHub ↗

XSS 跨站脚本完整方法论

⛔ 深入参考(遇到 WAF/CSP 时必读)

  • WAF/过滤绕过 payload 大全、CSP 绕过进阶、DOM Clobbering、mXSS、SVG XSS、存储型/DOM XSS → references/xss-bypass-and-types.md
  • CSP 绕过与 DOM XSS 深入技术 → references/csp-bypass-and-dom-xss.md

---

Phase 0: 回显点发现(最先执行!)

1. 每个参数发送唯一标记(xss123test),在响应中搜索 2. 不仅检查 HTML body,也检查响应头(Location:, Set-Cookie:) 3. 常见:搜索结果页、错误页面、用户资料页

Phase 1: 上下文分析(决定 payload)

上下文示例基础 Payload
HTML 标签间<div>INJECT</div><script>alert(1)</script>
属性值(双引号)<input value="INJECT">" onfocus=alert(1) autofocus="
属性值(单引号)<input value='INJECT'>' onfocus=alert(1) autofocus='
JavaScript 字符串var x="INJECT"";alert(1)//
URL/href<a href="INJECT">javascript:alert(1)
JS 模板字面量` var x=INJECT `${alert(1)} 或 ` +alert(1)+ `

关键:不同上下文需要不同 payload!先确定上下文再选择。

Phase 2: 基础 XSS 测试

1. <script>alert(1)</script>
2. <img src=x onerror=alert(1)>      ← script 被过滤时
3. <svg onload=alert(1)>
4. " onfocus=alert(1) autofocus="    ← 属性注入

验证:检查响应 HTML 中 payload 是否被原样保留(未编码)。< 变成 &lt; → 已转义,换参数。

Phase 3: 绕过与高级利用

遇到 WAF/过滤 → references/xss-bypass-and-types.md

速查:

  • <script> 被过滤 → <img>, <svg>, <details>, <video>
  • alert 被过滤 → confirm(), prompt(), print()
  • () 被过滤 → ` alert1 `
  • CSP 限制 → 检查 unsafe-inline / nonce / JSONP 端点

注意事项

  • 先测回显再测注入:没有回显就没有 XSS
  • HTTP-only Cookie 无法通过 XSS 窃取
  • 记录每个参数的编码行为

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.