osCommerce SQL Injection
Vendor: osCommerce
Product: osCommerce
Version: <= 2.2-MS1
Website: http://www.oscommerce.com/
BID: 9211
Description:
osCommerce is an online shop e-commerce solution under on going development by the open source community. Its feature packed out-of-the-box installation allows store owners to setup, run, and maintain their online stores with minimum effort and with absolutely no costs or license fees involved.

Problem:
osCommerce is vulnerable to SQL Injection vulnerability in the create_account_process.php & account_edit_process.php files. osCommerce 2.2-MS1 is the affected version, and older versions are likely to be affected as well. The attack can be carried out by a malicious user who is registering an account or editing an existing account. All one has to do to exploit the vulnerability is save the registration form offline. After doing so an attacker can edit the "country" field to include SQL.

Solution:
The vendor was not contacted as the problem seems to not be present in osCommerce 2.2-MS2 Users are advised upgrade to the current milestone release http://www.oscommerce.com/downloads Below is a script you can use to test if your version is vulnerable.

osCommerce 2.2 MS1 Proof Of Concept

A patch has also been released to address this issue for MS1 users. http://www.oscommerce.com/ext/oscommerce-22ms1-20031216.tar.gz

Credits:
James Bercegay of the GulfTech Security Research Team.