Exploit databaseDownload repository ZIP
GH-67cfe9274a84b2ab15965e26c8740df4
ctlyz123/cve-2020-17496
Sources for CVE-2020-17496
4 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files27
ctlyz123/cve-2020-17496Revision d621d414aa56
- ↑..Parent directory
- activity.php
- admin.php
- ajax.php
- announcement.php
- attachment.php
- auth.php
- bbcode.php
- chat.php
- createcontent.php
- external.php
- filedata.php
- hv.php
- index.html
- infraction.php
- link.php
- page.php
- permission.php
- poll.php
- profile.php
- registration.php
- relay.php
- report.php
- search.php
- style.php
- uploader.php
- video.php
- worker.php
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
html/includes/vb5/frontend/controller/relay.php
PHP · 2,943 bytes<?php
/*========================================================================*\
|| ###################################################################### ||
|| # vBulletin 5.6.0
|| # ------------------------------------------------------------------ # ||
|| # Copyright 2000-2020 MH Sub I, LLC dba vBulletin. All Rights Reserved. # ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ----------------- VBULLETIN IS NOT FREE SOFTWARE ----------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| ###################################################################### ||
\*========================================================================*/
class vB5_Frontend_Controller_Relay extends vB5_Frontend_Controller
{
public function admincp($file)
{
if ($file)
{
//the sizeof is due to the fact that there is code in the download that can
//alter the php extension for nonstandard environments. This will work with
//any string that might replace php
if (substr($file, -1 * strlen('.php')) != '.php')
{
$file = "$file.php";
}
}
else
{
$file = "index.php";
}
$api = Api_InterfaceAbstract::instance();
$api->relay('admincp/' . $file);
}
public function modcp($file)
{
if ($file)
{
//the sizeof is due to the fact that there is code in the download that can
//alter the php extension for nonstandard environments. This will work with
//any string that might replace php
if (substr($file, -1 * strlen('.php')) != '.php')
{
$file = "$file.php";
}
}
else
{
$file = "index.php";
}
$api = Api_InterfaceAbstract::instance();
$api->relay('modcp/' . $file);
}
public function legacy($file)
{
//this duplicates some checks in the relay function, but there
//really isn't a good way to avoid that while ensuring that $file
//is a direct child of core. We don't want to allow arbitrary file
//inclusion via the relay, just some select areas
//
//we only want to allow files "1 deep" via the legacy route
$filePath = vB5_Config::instance()->core_path . '/' . $file;
if ($file AND file_exists($filePath))
{
$core = realpath(vB5_Config::instance()->core_path);
$filePath = realpath($filePath);
if($core AND dirname($filePath) === $core)
{
$api = Api_InterfaceAbstract::instance();
$api->relay($file);
return;
}
}
throw new vB5_Exception_404("invalid_page_url");
}
public function action404()
{
throw new vB5_Exception_404("invalid_page_url");
}
}
/*=========================================================================*\
|| #######################################################################
|| # NulleD By - vBSupport.org
|| # CVS: $RCSfile$ - $Revision: 103202 $
|| #######################################################################
\*=========================================================================*/