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 files289
ctlyz123/cve-2020-17496Revision d621d414aa56
- ↑..Parent directory
- bulkimporter.php
- class_upgrade.php
- class_upgrade_360.php
- class_upgrade_360b1.php
- class_upgrade_360b2.php
- class_upgrade_360b4.php
- class_upgrade_360rc1.php
- class_upgrade_360rc2.php
- class_upgrade_360rc3.php
- class_upgrade_361.php
- class_upgrade_364.php
- class_upgrade_365.php
- class_upgrade_366.php
- class_upgrade_367.php
- class_upgrade_368.php
- class_upgrade_370b2.php
- class_upgrade_370b3.php
- class_upgrade_370b4.php
- class_upgrade_370b5.php
- class_upgrade_370b6.php
- class_upgrade_370rc1.php
- class_upgrade_370rc3.php
- class_upgrade_370rc4.php
- class_upgrade_380a2.php
- class_upgrade_380b2.php
- class_upgrade_380b3.php
- class_upgrade_380rc1.php
- class_upgrade_380rc2.php
- class_upgrade_386.php
- class_upgrade_400a1.php
- class_upgrade_400a2.php
- class_upgrade_400a3.php
- class_upgrade_400a4.php
- class_upgrade_400a5.php
- class_upgrade_400b1.php
- class_upgrade_400b3.php
- class_upgrade_400b4.php
- class_upgrade_400b5.php
- class_upgrade_400rc1.php
- class_upgrade_400rc2.php
- class_upgrade_400rc4.php
- class_upgrade_402.php
- class_upgrade_403.php
- class_upgrade_404.php
- class_upgrade_405.php
- class_upgrade_406.php
- class_upgrade_407.php
- class_upgrade_408.php
- class_upgrade_410.php
- class_upgrade_410b1.php
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
html/core/install/includes/class_upgrade_400b4.php
PHP · 3,822 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 # ||
|| ###################################################################### ||
\*========================================================================*/
/*
if (!isset($GLOBALS['vbulletin']->db))
{
exit;
}
*/
class vB_Upgrade_400b4 extends vB_Upgrade_Version
{
/*Constants=====================================================================*/
/*Properties====================================================================*/
/**
* The short version of the script
*
* @var string
*/
public $SHORT_VERSION = '400b4';
/**
* The long version of the script
*
* @var string
*/
public $LONG_VERSION = '4.0.0 Beta 4';
/**
* Versions that can upgrade to this script
*
* @var string
*/
public $PREV_VERSION = '4.0.0 Beta 3';
/**
* Beginning version compatibility
*
* @var string
*/
public $VERSION_COMPAT_STARTS = '';
/**
* Ending version compatibility
*
* @var string
*/
public $VERSION_COMPAT_ENDS = '';
/**
* Step #1
*
*/
function step_1()
{
$this->run_query(
sprintf($this->phrase['vbphrase']['create_table'], TABLE_PREFIX . "ad"),
"CREATE TABLE " . TABLE_PREFIX . "ad (
adid INT UNSIGNED NOT NULL auto_increment,
title VARCHAR(250) NOT NULL DEFAULT '',
adlocation VARCHAR(250) NOT NULL DEFAULT '',
displayorder INT UNSIGNED NOT NULL DEFAULT '0',
active SMALLINT UNSIGNED NOT NULL DEFAULT '0',
snippet MEDIUMTEXT,
PRIMARY KEY (adid),
KEY active (active)
)",
self::MYSQL_ERROR_TABLE_EXISTS
);
}
/**
* Step #2
*
*/
function step_2()
{
$this->run_query(
sprintf($this->phrase['vbphrase']['create_table'], TABLE_PREFIX . "adcriteria"),
"CREATE TABLE " . TABLE_PREFIX . "adcriteria (
adid INT UNSIGNED NOT NULL DEFAULT '0',
criteriaid VARCHAR(191) NOT NULL DEFAULT '',
condition1 VARCHAR(250) NOT NULL DEFAULT '',
condition2 VARCHAR(250) NOT NULL DEFAULT '',
condition3 VARCHAR(250) NOT NULL DEFAULT '',
PRIMARY KEY (adid,criteriaid)
)
",
self::MYSQL_ERROR_TABLE_EXISTS
);
}
/**
* Step #3
*
*/
function step_3()
{
if (!$this->field_exists('language', 'phrasegroup_advertising'))
{
$this->run_query(
sprintf($this->phrase['vbphrase']['update_table'], TABLE_PREFIX . "advertising"),
"ALTER TABLE " . TABLE_PREFIX . "language ADD phrasegroup_advertising mediumtext not null"
);
}
else
{
$this->skip_message();
}
}
/**
* Step #4
*
*/
function step_4()
{
if (!$this->db->query_first("SELECT * FROM " . TABLE_PREFIX . "phrasetype WHERE fieldname = 'advertising'"))
{
$this->run_query(
sprintf($this->phrase['vbphrase']['update_table'], TABLE_PREFIX . "phrasetype"),
"INSERT INTO " . TABLE_PREFIX . "phrasetype
VALUES
('advertising', 'Advertising', 3, '', 0)
"
);
}
else
{
$this->skip_message();
}
}
}
/*=========================================================================*\
|| #######################################################################
|| # NulleD By - vBSupport.org
|| # CVS: $RCSfile$ - $Revision: 99787 $
|| #######################################################################
\*=========================================================================*/