Multi-lingual E-Commerce System 0.2 Multiple Remote Vulnerabilities
- To: Bugtraq <bugtraq@xxxxxxxxxxxxxxxxx>, str0ke <str0ke@xxxxxxxxxxx>
- Subject: Multi-lingual E-Commerce System 0.2 Multiple Remote Vulnerabilities
- From: "Salvatore \"drosophila\" Fresta" <drosophilaxxx@xxxxxxxxx>
- Date: Sun, 19 Apr 2009 17:31:40 +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=STAa0tq5yexZfh6XoaCDFo6mAU9BwVBpq+SVa3zAVvc=; b=JdZXt6q10K6a1tedhwEZdVci+mOG8aCLzEbBwg0bCAsbX3jcpHjV9MAnIUZX3hoYx7 soEdKwh5TX+bILlEvBk1BEyY1gMESxkS2cSVu0A6PIYsP/sEnZ/oqCIO5E4DEojDJ3lZ NKBaKupcWyIwxln1GoyoPNK2546GrWkQ2kJd8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Vjev/cD/WllLj5RnYjiBwDFWnQKSX+U+fcFKqHrLhQtgMfpV2xMawjsS2NLQWsXv0A cX/0MBcESdGyho4PRr/GBx0FmonTeATTqTnVdg+dHcGc/VewvK0qXHDgFtT64WR8EHy5 I4vn1XwJ/B7+t9o8JlAHXX/iXuzdW4vBPBAmM=
- 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: Multi-lingual E-Commerce System
[+] Version: 0.2
[+] Website: http://sourceforge.net/projects/mlecsphp/
[+] Bugs: [A] Local File Inclusion
[B] Information Disclosure
[C] Arbitrary File Upload
[+] Exploitation: Remote
[+] Date: 19 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: hight
[-] File affected: index.php
This bug allows a guest to include local files.
The following is the vulnerable code:
...
if (isset($_GET['lang'])) { $_SESSION['lang'] = $_GET['lang'];}
...
<?
include($include_path.'/inc/'.$_GET['page'].'-'.$_SESSION['lang'].'.php');
?>
...
- [B] Information Disclosure
[-] Risk: medium
[-] File affected: database.inc
This file contains reserved informations such as
the username and the password for connecting to
the database. Using .inc extension only, the
content is visible.
- [C] Arbitrary File Upload
[-] Risk: medium
[-] File affected: product_image.php
In the admin directory there are no files that
check if the user has admin privileges. For this
reason a guest can execute the files contained in
this directory. product_image.php contains a form
that allows to upload files on the system but
does not contain functions that check the files
extensions, however a user can upload arbitrary
files.
*************************************************
[+] Code
- [A] Local File Inclusion
http://www.site.com/path/index.php?page=../../../../../etc/passwd
******* Salvatore "drosophila" Fresta *******
[+] Application: Multi-lingual E-Commerce System
[+] Version: 0.2
[+] Website: http://sourceforge.net/projects/mlecsphp/
[+] Bugs: [A] Local File Inclusion
[B] Information Disclosure
[C] Arbitrary File Upload
[+] Exploitation: Remote
[+] Date: 19 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: hight
[-] File affected: index.php
This bug allows a guest to include local files.
The following is the vulnerable code:
...
if (isset($_GET['lang'])) { $_SESSION['lang'] = $_GET['lang'];}
...
<?
include($include_path.'/inc/'.$_GET['page'].'-'.$_SESSION['lang'].'.php');
?>
...
- [B] Information Disclosure
[-] Risk: medium
[-] File affected: database.inc
This file contains reserved informations such as
the username and the password for connecting to
the database. Using .inc extension only, the
content is visible.
- [C] Arbitrary File Upload
[-] Risk: medium
[-] File affected: product_image.php
In the admin directory there are no files that
check if the user has admin privileges. For this
reason a guest can execute the files contained in
this directory. product_image.php contains a form
that allows to upload files on the system but
does not contain functions that check the files
extensions, however a user can upload arbitrary
files.
*************************************************
[+] Code
- [A] Local File Inclusion
http://www.site.com/path/index.php?page=../../../../../etc/passwd