[SA16459] ECW-Shop SQL Injection and Cross-Site Scripting Vulnerabilities

2005-08-18T00:00:00
ID SECURITYVULNS:DOC:9524
Type securityvulns
Reporter Securityvulns
Modified 2005-08-18T00:00:00

Description


Bist Du interessiert an einem neuen Job in IT-Sicherheit?

Secunia hat zwei freie Stellen als Junior und Senior Spezialist in IT- Sicherheit: http://secunia.com/secunia_vacancies/


TITLE: ECW-Shop SQL Injection and Cross-Site Scripting Vulnerabilities

SECUNIA ADVISORY ID: SA16459

VERIFY ADVISORY: http://secunia.com/advisories/16459/

CRITICAL: Moderately critical

IMPACT: Cross Site Scripting, Manipulation of data

WHERE: >From remote

SOFTWARE: ECW-Shop 6.x http://secunia.com/product/5552/

DESCRIPTION: John Cobb has discovered some vulnerabilities in ECW-Shop, which can be exploited by malicious people to conduct cross-site scripting and SQL injection attacks.

1) Input passed to the "max" and "ctg" parameters isn't properly sanitised before being returned to users. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of a vulnerable site.

Examples: http://[host]/index.php?c=srch&ctg=[code] http://[host]/index.php?c=srch&max=[code]

2) Input passed to the "min" and "max" parameters isn't properly sanitised before being used in a SQL query. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.

It is also possible to add a negative quantity of items to the shopping cart, which causes the total price to become negative.

The vulnerabilities have been confirmed in version 6.02. Other versions may also be affected.

SOLUTION: Edit the source code to ensure that input is properly sanitised.

PROVIDED AND/OR DISCOVERED BY: John Cobb

ORIGINAL ADVISORY: http://www.nobytes.com/nobytes9.txt


About: This Advisory was delivered by Secunia as a free service to help everybody keeping their systems up to date against the latest vulnerabilities.

Subscribe: http://secunia.com/secunia_security_advisories/

Definitions: (Criticality, Where etc.) http://secunia.com/about_secunia_advisories/

Please Note: Secunia recommends that you verify all advisories you receive by clicking the link. Secunia NEVER sends attached files with advisories. Secunia does not advise people to install third party patches, only use those supplied by the vendor.