xss攻击

  1. 反射型
    1.  
    2. <img src="null" onerror="alert(3)">
    3. <a href="" onclick="alert">点我</a>
    4. <iframe src=""></iframe>
  2. 存储型
  3.  掌握xss的防御措施
    1. 编码
      1.  
    2. 过滤
      1.  
    3. 校正 
      1.  
posted @ 2017-07-10 19:51  Caraxiong  阅读(106)  评论(0编辑  收藏  举报