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 files20
ctlyz123/cve-2020-17496Revision d621d414aa56
- ↑..Parent directory
- legacy/
- privatemessage/
- admincp.php
- album.php
- article.php
- blogadmin.php
- channel.php
- conversation.php
- index.html
- legacy.php
- modcp.php
- newcontent.php
- node.php
- page.php
- privatemessage.php
- profile.php
- settings.php
- sgadmin.php
- subscription.php
- visitormessage.php
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
html/core/vb5/route/settings.php
PHP · 4,370 bytes<?php if (!defined('VB_ENTRY')) die('Access denied.');
/*========================================================================*\
|| ###################################################################### ||
|| # 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_Route_Settings extends vB5_Route
{
const DEFAULT_PREFIX = 'settings';
const REGEXP = '(/(?P<tab>profile|account|privacy|notifications|security|subscriptions))?';
public function __construct($routeInfo, $matches, $queryString = '', $anchor = '')
{
if (empty($matches['tab']))
{
$matches['tab'] = 'profile';
}
parent::__construct($routeInfo, $matches, $queryString, $anchor);
if (empty($this->arguments['userid']))
{
$userInfo = vB::getCurrentSession()->fetch_userinfo();
$this->arguments['userid'] = $userInfo['userid'];
$this->arguments['username'] = $userInfo['username'];
}
else if (empty($this->arguments['username']))
{
$userInfo = vB_User::fetchUserinfo($this->arguments['userid']);
$this->arguments['username'] = $userInfo['username'];
}
$this->breadcrumbs = array(
0 => array(
'title' => $this->arguments['username'],
'url' => vB5_Route::buildUrl('profile',
array(
'userid' => $this->arguments['userid'],
'username' => vB_String::getUrlIdent($this->arguments['username'])
)
)
),
1 => array(
'phrase' => 'user_settings',
'url' => ''
)
);
}
public function getUrl()
{
// the regex contains the url
$url = '/' . $this->prefix . '/' . $this->arguments['tab'];
if (strtolower(vB_String::getCharset()) != 'utf-8')
{
$url = vB_String::encodeUtf8Url($url);
}
return $url;
}
public function getCanonicalRoute()
{
if (!isset($this->canonicalRoute))
{
$page = vB::getDbAssertor()->getRow('page', array('pageid' => $this->arguments['pageid']));
$this->canonicalRoute = self::getRoute($page['routeid'], $this->arguments, $this->queryParameters);
}
return $this->canonicalRoute;
}
protected static function validInput(array &$data)
{
if (
!isset($data['pageid']) OR !is_numeric($data['pageid']) OR
!isset($data['prefix'])
)
{
return false;
}
$data['regex'] = $data['prefix'] . self::REGEXP;
$data['class'] = __CLASS__;
$data['controller'] = 'page';
$data['action'] = 'index';
$data['arguments'] = serialize(array('pageid' => $data['pageid'], 'tab' =>'$tab'));
return parent::validInput($data);
}
protected static function updateContentRoute($oldRouteInfo, $newRouteInfo)
{
$db = vB::getDbAssertor();
$events = array();
$updateIds = self::updateRedirects($db, $oldRouteInfo['routeid'], $newRouteInfo['routeid']);
foreach($updateIds AS $routeid)
{
$events[] = "routeChg_$routeid";
}
vB_Cache::allCacheEvent($events);
}
public static function exportArguments($arguments)
{
$data = unserialize($arguments);
$page = vB::getDbAssertor()->getRow('page', array('pageid' => $data['pageid']));
if (empty($page))
{
throw new Exception('Couldn\'t find page');
}
$data['pageGuid'] = $page['guid'];
unset($data['pageid']);
return serialize($data);
}
public static function importArguments($arguments)
{
$data = unserialize($arguments);
$page = vB::getDbAssertor()->getRow('page', array('guid' => $data['pageGuid']));
if (empty($page))
{
throw new Exception('Couldn\'t find page');
}
$data['pageid'] = $page['pageid'];
unset($data['pageGuid']);
return serialize($data);
}
}
/*=========================================================================*\
|| #######################################################################
|| # NulleD By - vBSupport.org
|| # CVS: $RCSfile$ - $Revision: 99787 $
|| #######################################################################
\*=========================================================================*/