Информационная безопасность
[RU] switch to English

Дополнительная информация

  Ежедневная сводка ошибок в Web-приложениях (PHP, ASP, JSP, CGI, Perl )

  [Full-disclosure] Wordpress 2.1.2 xmlrpc Vulnerabilities

  CWB PRO Version 1.
Remote File Include Vulnerabilites

  CWB PRO Version 1.
Remote File Include Vulnerabilites

  Flexphpnews 0.0.5 (news.php newsid) Remote SQL Injection Vulnerability

From:Hamid Ebadi <admin_(at)_hamid.ir>
Date:5 апреля 2007 г.
Subject:RSPA Remote File Inclusion

RSPA Remote File Inclusion

Really Simple PHP and Ajax (RSPA)
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. Visit http://rspa.sourceforge.net

The information has been provided by Hamid Ebadi
The original article can be found at : http://www.bugtraq.ir


Vulnerable Systems:
Version: rspa-2007-03-23

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.

read more about file inclusion in http://www.bugtraq.ir/articles

Vulnerable Code :

$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'];
$filename = $_REQUEST["__ClassPath"].$className.$RSPA['class_extension'];

POC exploit :
The following URL will cause remote file inclusion


[ http://www.bugtraq.ir/articles/advisory/RSPA_File_Inclusion/6 ]

# copyright : http://www.bugtraq.ir

# milw0rm.com [2007-04-02]

О сайте | Условия использования
© SecurityVulns, 3APA3A, Владимир Дубровин
Нижний Новгород