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 files62
ctlyz123/cve-2020-17496Revision d621d414aa56
- ↑..Parent directory
- control_examples/
- admininfraction.php
- adminlog.php
- adminpermissions.php
- adminreputation.php
- announcement.php
- api.php
- apilog.php
- apistats.php
- attachment.php
- attachmentpermission.php
- avatar.php
- bbcode.php
- clear.gif
- cms.php
- cronadmin.php
- cronlog.php
- css.php
- diagnostic.php
- email.php
- eventhighlight.php
- faq.php
- fcm.php
- forum.php
- forumpermission.php
- global.php
- help.php
- hook.php
- image.php
- index.php
- language.php
- misc.php
- moderator.php
- modlog.php
- newsproxy.php
- nodetools.php
- notice.php
- options.php
- phrase.php
- prefix.php
- product.php
- profilefield.php
- queries.php
- ranks.php
- replacement.php
- resources.php
- rssposter.php
- search.php
- sitemap.php
- socialgroups.php
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
html/core/admincp/api.php
PHP · 3,548 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 # ||
|| ###################################################################### ||
\*========================================================================*/
// ######################## SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// ##################### DEFINE IMPORTANT CONSTANTS #######################
define('CVS_REVISION', '$RCSfile$ - $Revision: 99787 $');
// #################### PRE-CACHE TEMPLATES AND DATA ######################
global $phrasegroups, $specialtemplates, $vbphrase, $vbulletin;
$phrasegroups = array();
$specialtemplates = array();
// ########################## REQUIRE BACK-END ############################
require_once(dirname(__FILE__) . '/global.php');
// ############################# LOG ACTION ###############################
log_admin_action();
// #############################################################################
// ########################### START MAIN SCRIPT ###############################
// #############################################################################
if (!vB::getUserContext()->hasAdminPermission('canadminsettings') AND !vB::getUserContext()->hasAdminPermission('canadminsettingsall'))
{
print_cp_no_permission();
}
print_cp_header($vbphrase['api']);
if (empty($_REQUEST['do']))
{
$_REQUEST['do'] = 'key';
}
if (in_array($_REQUEST['do'], array('key')))
{
if (!$vbulletin->options['enableapi'])
{
print_warning_table($vbphrase['api_disabled_options']);
}
}
// ###################### Start API Key #######################
if ($_REQUEST['do'] == 'key')
{
if (!$vbulletin->options['apikey'])
{
print_form_header('admincp/api', 'newkey');
print_table_header($vbphrase['api_key']);
print_description_row($vbphrase['api_key_empty']);
print_submit_row($vbphrase['go'], '');
}
else
{
print_table_start();
print_table_header($vbphrase['api_key']);
print_label_row(
$vbphrase['api_key'],
"<div id=\"ctrl_apikey\"><input type=\"text\" class=\"bginput\" name=\"apikey\" id=\"apikey\" value=\"" . $vbulletin->options['apikey'] . "\" size=\"35\" dir=\"\" tabindex=\"1\" readonly=\"readonly\" /></div>",
'', 'top', 'apikey'
);
print_description_row($vbphrase['api_key_description']);
print_table_footer(2, '', '', false);
}
}
// ###################### Start Generate API Key #######################
if ($_REQUEST['do'] == 'newkey')
{
if ($vbulletin->options['apikey'])
{
print_stop_message2('already_has_api_key');
}
vB_Library::instance('api')->generateAPIKey();
print_stop_message2('api_key_generated_successfully', 'api');
}
print_cp_footer();
/*=========================================================================*\
|| #######################################################################
|| # NulleD By - vBSupport.org
|| # CVS: $RCSfile$ - $Revision: 99787 $
|| #######################################################################
\*=========================================================================*/