Exploit databaseDownload repository ZIP
GH-8164a02d6ad9ce3ac375957207efede6
caihuar/joomla-cve-2015-8562
Sources for CVE-2015-8562
8 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files7
caihuar/joomla-cve-2015-8562Revision 5a88a7226a99
- ↑..Parent directory
- config.php
- database.php
- database_backup.php
- database_remove.php
- email.php
- languages.php
- sample.php
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
Joomla_CMS/installation/controller/install/sample.php
PHP · 1,269 bytes<?php
/**
* @package Joomla.Installation
* @subpackage Controller
*
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
/**
* Controller class to install the sample data for the Joomla Installer.
*
* @since 3.1
*/
class InstallationControllerInstallSample extends JControllerBase
{
/**
* Execute the controller.
*
* @return void
*
* @since 3.1
*/
public function execute()
{
// Get the application
/* @var InstallationApplicationWeb $app */
$app = $this->getApplication();
// Check for request forgeries.
JSession::checkToken() or $app->sendJsonResponse(new Exception(JText::_('JINVALID_TOKEN'), 403));
// Get the setup model.
$model = new InstallationModelSetup;
// Get the options from the session
$options = $model->getOptions();
// Get the database model.
$db = new InstallationModelDatabase;
// Attempt to create the database tables.
$return = $db->installSampleData($options);
$r = new stdClass;
$r->view = 'install';
// Check if the database was initialised
if (!$return)
{
$r->view = 'database';
}
$app->sendJsonResponse($r);
}
}