起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1842|回复: 1

[处理中3] 关于代码安全扫描发现的漏洞

[复制链接]

89

主题

249

帖子

714

积分

高级会员

Rank: 4

积分
714
QQ
发表于 2018-7-4 17:11:50 | 显示全部楼层 |阅读模式
index.html, line 20 (Cross-Site Scripting: DOM)
Fortify Priority: Critical Folder Critical
Kingdom: Input Validation and Representation
Abstract: index.html 中的方法 ~file_function() 向第 20 行的 Web 浏览器发送非法数据,从 而导致浏览器执行恶意代码。

Source: index.html:11 Read window.location.search()
9                 <script type='text/javascript'>
10                         var url = 'v-yU3Qje-zh_CN-/JdptWx/index.w?language=zh_CN&skin=';
11                         var search = window.location.search;
12                         if (search){
13                                 if (url.indexOf("?") != -1){
Sink: index.html:20 Assignment to window.location.href()
18                                 url += search.substr(1) + window.location.hash;
19                         }
20                         window.location.href= url;
21                 </script>
22         </body>


这是咱们打包后在www下面的index.html 发现的问题,上述错误如何处理呢
发表于 2018-7-5 15:04:24 | 显示全部楼层
这个就是重定向url嘛。打开index.w
应该没什么问题,那你试试改成  window.open 去打开,可以通过检测吗?
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-5-3 06:59 , Processed in 0.066130 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表