Skip to content

Commit 5f366fa

Browse files
authored
Merge pull request #91 from AndorChen/master
Fix typo, close #90
2 parents 71cede9 + 16c229a commit 5f366fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/zh-CN/security.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ TIP: CSS 注入实际上是 JavaScript 注入,因为有的浏览器(如 IE
878878

879879
著名的 [MySpace Samy 蠕虫](http://namb.la/popular/tech.html)是解释 CSS 注入攻击原理的最好例子。这个蠕虫只需访问用户的个人信息页面就能向 Samy(攻击者)发送好友请求。在短短几个小时内,Samy 就收到了超过一百万个好友请求,巨大的流量致使 MySpace 宕机。下面我们从技术角度来分析这个蠕虫。
880880

881-
MySpace 禁用了很多标签,但允许使用 CSS。因此,蠕虫的作者通过下面这种方式把 JavaScript 值入 CSS 中:
881+
MySpace 禁用了很多标签,但允许使用 CSS。因此,蠕虫的作者通过下面这种方式把 JavaScript 植入 CSS 中:
882882

883883
```html
884884
<div style="background:url('javascript:alert(1)')">

0 commit comments

Comments
 (0)