----------------------------------------------------------------------

Want a new IT Security job?

Vacant positions at Secunia:
http://secunia.com/secunia_vacancies/

----------------------------------------------------------------------

TITLE:
MidiCart PHP Shopping Cart Cross-Site Scripting and SQL Injection

SECUNIA ADVISORY ID:
SA15269

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

CRITICAL:
Moderately critical

IMPACT:
Cross Site Scripting, Manipulation of data, Exposure of system
information

WHERE:
>From remote

SOFTWARE:
MidiCart PHP Shopping Cart
http://secunia.com/product/424/

DESCRIPTION:
Exoduks has reported some vulnerabilities in MidiCart PHP Shopping
Cart, which can be exploited by malicious people to conduct
cross-site scripting and SQL injection attacks.

1) Some input isn't properly sanitised before being returned to the
user. 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]/shop/search_list.php?chose=item&searchstring=[code]
http://[host]/shop/item_list.php?secondgroup=[code]
http://[host]/shop/item_list.php?maingroup=[code]

2) Some input isn't properly sanitised before being used in a SQL
query. This can be exploited to manipulate SQL queries by injecting
arbitrary SQL code.

Successful exploitation requires that "magic_quotes_gpc" is
disabled.

Examples:
http://[host]/shop/search_list.php?chose=item&searchstring=a%'[code]
http://[host]/shop/item_list.php?maingroup=-99 '[code]
http://[host]/shop/item_list.php?secondgroup=-99 '[code] 
http://[host]/shop/item_show.php?code_no=99 '[code]

It is also possible to disclose the full path to "search_list.php",
"item_list.php" and "item_show.php" by accessing them directly.

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

PROVIDED AND/OR DISCOVERED BY:
Exoduks, HackGen Team

----------------------------------------------------------------------

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.

----------------------------------------------------------------------

Unsubscribe: Secunia Security Advisories
http://secunia.com/sec_adv_unsubscribe/?email=packet%40packetstormsecurity.org

----------------------------------------------------------------------