Share E-Book
Scan to open this page

Scan with your phone to open this page

Author: it-ebooks

Rating No ratings yet

No description

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

AI guide
【One-Line Pitch】 A hands-on Chinese security monthly issue that treats XSS not as a single trick but as a mindset: inject, adapt to the output context, bypass filters, and chain with CSRF, phishing, and platform tooling. Best for web-security learners and pentesters who already know basic HTML/JS and want practical, scenario-driven XSS craft. 【Book Arc】 - **Opening (~0%–11%)**: Frames XSS fundamentals through the DVWA lab — reflected, stored, and DOM types across Low/Medium/High/Impossible levels, so you learn by comparing vulnerable vs. hardened code. - **Early (~11%–28%)**: Moves from theory to construction: how the output context (attributes, tags, textareas) dictates your payload, and how to escape or close tags rather than blindly pasting `<script>`. - **Early–Middle (~28%–44%)**: Introduces encoding and bypass as a discipline — URL, Unicode, HTML, and CSS encoding, plus common WAF-evasion patterns and the underrated risk of browser plugins. - **Middle (~44%–61%)**: Shifts to chained attacks: XSS combined with CSRF to mass-harvest cookies, XSS platforms for GPS/battery/screenshot collection, and phishing flows that turn a "useless" stored XSS into admin takeover. - **Late (~61%–end)**: Applies everything to real targets — financial sites, e-commerce, game phishing networks — and closes with remediation advice (output encoding per language) and a CTF-style XSS challenge walkthrough. 【Key Takeaways】 - **XSS is "executing your JS in the page," not just alert boxes** (Early): the book repeatedly stresses that popups only prove existence; real value comes from cookie theft, action control, and chaining. - **Output context determines payload** (Early): whether your input lands in an attribute, a tag body, or a textarea decides whether you close a quote, close a tag, or use an `on` event. - **Filter bypass is pattern recognition, not magic** (Middle): case mixing, double-writing (`scrSCRIPTipt`), entity encoding, and `eval(String.fromCharCode(...))` recur as reusable techniques. - **Encoding is a bypass toolkit** (Middle): URL, Unicode, HTML, and CSS encodings each exploit a different parsing layer between input and browser rendering. - **XSS + CSRF is far more dangerous than XSS alone** (Middle): a "chicken-rib" event-triggered stored XSS becomes a mass cookie-harvesting weapon once paired with a CSRF page. - **XSS platforms lower the skill floor** (Middle): external JS links let beginners harvest GPS, battery status, and screenshots without writing the payloads themselves. - **Browser plugins are an overlooked attack surface** (Middle): because plugins render cross-domain, a malicious or compromised plugin can bypass even a well-defended site. - **Defense is output encoding, language by language** (Late): the book lists `htmlspecialchars`, `cgi.escape`, `Server.HTMLEncode`, and similar functions as the practical fix. 【Reading Tips】 - Deep-read the DVWA section (Opening) if you're new — comparing the four security levels is the fastest way to internalize why filters fail. - Skim the CTF challenge walkthrough (Late) on a first pass, then return to it as a puzzle set once you've absorbed the bypass techniques. - Treat the encoding chapter (Middle) as a reference you'll revisit; don't try to memorize every encoding at once. - Pay attention to the chained-attack chapters (Middle) — they show how individual tricks combine into realistic intrusion scenarios. - Note the remediation section (Late) even if you're offense-focused; it clarifies what actually stops each technique. 【Coverage Limits】 The excerpts cover XSS fundamentals, encoding/bypass, chaining, and real-world cases, but do not detail the full CTF challenge solutions or every chapter's content; some sections (e.g., XCS, page-rendering XSS) are mentioned only briefly.
Excerpt 1
Low 服务器端核心代码 可以看到,代码直接引用了 name 参数,并没有任何的过滤与检查,存在明显的 XSS 漏洞。 漏洞利用 03 可以看到,High 级别的代码同样使用黑名单过滤输入,preg_replace() 函数用于正则表达式的搜索和 替换,这使得双写绕过、大小写混淆绕过(正则表达式中 i表示不区分大...
View in text
Page 20
里输入 <script>document.write(document.URL.substring(document.URL.indexOf("a=")+2,document.URL. length));</script> 在这里我先解释下上面的意思 Document.write 是把里面的内容写到页面里。 do...
View in text
Excerpt 3
code 的码点。 Unicode 编码之所以被本文提到,因为有的站点过滤了某些字符串的话,但是发现这个站点在后端验证 字符串的时候,识别 unicode 编码,那我们就可以把我们的攻击代码来改成 unicode 编码形式,就可 以绕过站点的过滤机制了。 0×04 HTML 编码 HTML 编码的存在就是让他在代...
View in text
Excerpt 4
,这里我想到了用抓包工具 提交修改一下 先输入手机号码 打开抓包拦截 提交后没有出错。 最后肯定是支付失败了。 等待后台的管理员查看插入的信息触发 XSS 过了会邮箱提醒 登入 XSS 平台 收到 x回来信息 手机号码,插入 http://www.*****10086.cc/adminzxc/index. < s...
View in text
Excerpt 5
="formLogin"action="/manage/user/login"method="post"> 被更改后的 <blockquote><formrole="form"id="formLogin"action="/index.php"method="post"> 接着创建一个 index.php 53 然...
View in text
Excerpt 6
CRIPT/XSS SRC=”http://3w.org/XSS/xss. ( 计算器 ) js”></SCRIPT> <IMG SRC=jav.. 省略 ..S')> (21)Non-alpha-non-digit XSS to 2 (10) 十六进制编码也是没有分号 (计算器 ) < B O D Y o n...
View in text
Excerpt 7
码。 0x02 输出编码 如果没有对用户输入的数据进行过滤而是将用户输入的信息完完整整的呈现出来,就会产生一个 XSS 攻击者会故意尝试各种错误的输入,应用程序若检查到输入的内容不合法,马上会通过页面返回错误 84 DOM 型 XSS 是一种比较特殊的 XSS,所以采用的防御方法也和常规的方法有很大不同。 DOM...
View in text
Excerpt 8
g.com/maps.htm 把经纬度,写上去 给我朋友做的测试,它的确在这里,精准度 50 米 现在来完善上面的缺点 就是去网上扒一个购物网站的源码,把源码复制在 index.php 里 99 相关阅读 XSS 技术入门专题—第三期技术专题(点击跳转) pkav 的 xss 教程(点击跳转) 给大家发一个自己原...
View in text
Tags
AI categories
CybersecurityWeb TechnologyProgramming
Publisher: it-ebooks
Publish Year: 2018
Language: Chinese
File Format: PDF
File Size: 5.4 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…