news 2026/5/1 5:41:12

XSS 漏洞练习靶场,覆盖反射型、存储型、DOM 型、SVG、CSP、框架注入、协议绕过等多种场景

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
XSS 漏洞练习靶场,覆盖反射型、存储型、DOM 型、SVG、CSP、框架注入、协议绕过等多种场景

工具介绍

XSS-Sec 靶场项目是一个以“实战为导向”的 XSS 漏洞练习靶场,覆盖反射型、存储型、DOM 型、SVG、CSP、框架注入、协议绕过等多种场景。页面样式统一,逻辑清晰,适合系统化学习与教学演示。

关卡总览(名称与简介)

  • Level 1: Reflected XSS — The basics.

  • Level 2: DOM-based XSS — Client-side manipulation.

  • Level 3: Stored XSS — Persistent payloads.

  • Level 4: Attribute Breakout — Escape the attribute.

  • Level 5: Filter Bypass — No allowed.

  • Level 6: Quote Filtering — Break out of single quotes.

  • Level 7: Keyword Removal — Double write bypass.

  • Level 8: Encoding Bypass — HTML entities are your friend.

  • Level 9: URL Validation — Must contain http://

  • Level 10: Protocol Bypass — Case sensitivity matters.

  • Level 11: JS Context — Break out of JS string.

  • Level 12: DOM XSS via Hash — The server sees nothing.

  • Level 13: Frontend Filter — Bypass the regex.

  • Level 14: Double Encoding — Double the trouble.

  • Level 15: Framework Injection — AngularJS Template Injection.

  • Level 16: PostMessage XSS — Talk to the parent.

  • Level 17: CSP Bypass — Strict CSP? Find a gadget.

  • Level 18: Anchor Href XSS — Stored XSS in href.

  • Level 19: DOM XSS in Select — Break out of select.

  • Level 20: jQuery Anchor XSS — DOM XSS in jQuery attr().

  • Level 21: JS String Reflection — Reflected XSS in JS string.

  • Level 22: Reflected DOM XSS — Server reflection + Client sink.

  • Level 23: Stored DOM XSS — Replace only once.

  • Level 24: WAF Bypass (Tags/Attrs) — Reflected XSS with strict WAF.

  • Level 25: SVG Animate XSS — SVG-specific vector bypass.

  • Level 26: Canonical Link XSS — Escaping single quotes issue.

  • Level 27: Stored XSS in onclick — Entities vs escaping pitfall.

  • Level 28: Template Literal XSS — Reflected into JS template string.

  • Level 29: Cookie Exfiltration — Stored XSS steals session cookie.

  • Level 30: Angular Sandbox Escape — No strings, escape Angular sandbox.

  • Level 31: AngularJS CSP Escape — Bypass CSP and escape Angular sandbox.

  • Level 32: Reflected XSS (href/events blocked) — Bypass via SVG animate to set href.

  • Level 33: JS URL XSS (chars blocked) — Reflected XSS in javascript: URL with chars blocked.

  • Level 34: CSP Bypass (report-uri token) — Chrome-only CSP directive injection via report-uri.

  • Level 35: Upload Path URL XSS — Independent lab: upload HTML, random rename, URL concat XSS.

  • Level 36: Hidden Adurl Reflected XSS — Independent lab: hidden ad anchor reflects adurl/adid.

  • Level 37: Data URL Base64 XSS — Blacklist filter; must use data:text/html;base64 in object.

  • Level 38: PDF Upload XSS — Independent lab: upload PDF, view opens HTML-in-PDF causing XSS.

  • Level 39: Regex WAF Bypass — src/=“data:…” bypasses WAF regex.

  • Level 40: Bracket String Bypass — href reflects; use window[“al”+“ert”] to evade WAF.

  • Level 41: Fragment Eval/Window Bypass — Echo HTML; split strings then eval or window[a+b].

  • Level 42: Login DB Error XSS — Independent lab: invalid DB shows error, SQL reflects username.

  • Level 43: Chat Agent Link XSS — Independent lab: chat echoes, agent clicks user link executes.

  • Level 44: CSS Animation Event XSS — Strong WAF: only @keyframes+xss onanimationend allowed.

  • Level 45: RCDATA Textarea Breakout XSS — Strong WAF: only textarea/title RCDATA breakout works.

  • Level 46: JS String Escape (eval) — theme string injection; escape with eval(myUndefVar); alert(1);

  • Level 47: Throw onerror comma XSS — Strong WAF: only throw οnerrοr=alert,cookie

  • Level 48: Symbol.hasInstance Bypass — Strong WAF: only instanceof+eval chain

  • Level 49: Video Source onerror XSS — Strong WAF: only video source onerror

  • Level 50: Bootstrap RealSite XSS — Independent site: only xss onanimationstart

工具下载

https://github.com/duckpigdog/XSS-Sec
版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/4/25 1:51:01

导师严选2026 AI论文网站TOP8:继续教育写作全攻略

导师严选2026 AI论文网站TOP8:继续教育写作全攻略 2026年AI论文写作工具测评:为何需要这份榜单? 随着人工智能技术在学术领域的深入应用,越来越多的科研人员和继续教育学习者开始依赖AI写作工具提升论文撰写效率。然而&#xff0c…

作者头像 李华
网站建设 2026/4/18 8:48:51

第 485 场周赛Q1——3813. 元音辅音得分

题目链接:3813. 元音辅音得分(简单) 算法原理: 解法:模拟 1ms击败100.00% 时间复杂度O(N) 其实题目中要求的向下取整就是默认的 / 就可以,所以我们只需要按要求统计出对应的 v、c 然后按照题目要求返回…

作者头像 李华
网站建设 2026/4/8 21:58:23

社交网络数据科学:完整项目实战指南

社交网络数据科学:完整项目实战指南 引言 痛点引入:你可能遇到的「社交网络分析困境」 作为数据科学爱好者,你是否曾有过这样的困惑: 想学社交网络分析,但看着「图论」「中心性」「社区发现」等术语望而却步&#…

作者头像 李华
网站建设 2026/4/29 0:31:55

全栈工程师的陷阱:什么都会,什么都不精

全栈工程师的陷阱:什么都会,什么都不精引言:全栈工程师的时代神话在当今快速发展的技术世界中,“全栈工程师”已成为一个备受追捧的职业标签。从硅谷到中关村,从创业公司到科技巨头,这一头衔似乎代表着技术…

作者头像 李华
网站建设 2026/5/1 3:01:06

大模型学习路线图:从基础到实战,程序员必看的学习指南_大模型学习路线(2026最新)神仙级大模型教程分享

文章提供了大模型学习的七个阶段路线图:从数学编程基础到机器学习、深度学习、NLP,再到大规模语言模型和应用开发,最后是持续学习。每个阶段包含关键知识点和学习资源,还提供了视频教程、技术文档和面试题等额外资源,帮…

作者头像 李华