J4 Issue ?
avatar PrestaShark
PrestaShark
28 Aug 2019

Is the Prestashop type approach with a randomly generated and editable administrative directory possible and will it ever be made in Joomla?

10 years since my first look into J!1.5 and ... still nothing. Same with wp-admin...

This is insane guys? Any news about that?

avatar PrestaShark PrestaShark - open - 28 Aug 2019
avatar joomla-cms-bot joomla-cms-bot - change - 28 Aug 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 28 Aug 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 28 Aug 2019
Title
Admin folder anonimization&hardening
[4.0] Admin folder anonimization&hardening
avatar franz-wohlkoenig franz-wohlkoenig - edited - 28 Aug 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 28 Aug 2019
Labels Added: J4 Issue
avatar franz-wohlkoenig franz-wohlkoenig - labeled - 28 Aug 2019
avatar C-Lodder
C-Lodder - comment - 28 Aug 2019

Rename administrator directory to xxx


configuration.php

Add:

public $admin_dir = 'xxx';

xxx/includes/defines.php

defined('_JEXEC') or die;

// Global definitions
$parts = explode(DIRECTORY_SEPARATOR, JPATH_BASE);
array_pop($parts);

// Defines
define('JPATH_ROOT',          implode(DIRECTORY_SEPARATOR, $parts));
define('JPATH_CONFIGURATION', JPATH_ROOT);
define('JPATH_SITE',          JPATH_ROOT);

ob_start();
require_once JPATH_CONFIGURATION . '/configuration.php';
ob_end_clean();

$config = new JConfig;

define('JPATH_LIBRARIES',     JPATH_ROOT . DIRECTORY_SEPARATOR . 'libraries');
define('JPATH_PLUGINS',       JPATH_ROOT . DIRECTORY_SEPARATOR . 'plugins');
define('JPATH_INSTALLATION',  JPATH_ROOT . DIRECTORY_SEPARATOR . 'installation');
define('JPATH_THEMES',        JPATH_BASE . DIRECTORY_SEPARATOR . 'templates');
define('JPATH_API',           JPATH_ROOT . DIRECTORY_SEPARATOR . 'api');
define('JPATH_CLI',           JPATH_ROOT . DIRECTORY_SEPARATOR . 'cli');
define('JPATH_ADMINISTRATOR', JPATH_ROOT . DIRECTORY_SEPARATOR . $config->admin_dir);
define('JPATH_CACHE',         JPATH_ADMINISTRATOR . DIRECTORY_SEPARATOR . 'cache');
define('JPATH_MANIFESTS',     JPATH_ADMINISTRATOR . DIRECTORY_SEPARATOR . 'manifests');

Same change needed for the ROOT/includes/defines.php

@mbabker Very basic example which seems to work for me. Would there be more to it than this?

avatar brianteeman
brianteeman - comment - 28 Aug 2019

This would not provide any additional security at all.

avatar PrestaShark
PrestaShark - comment - 28 Aug 2019

@brianteeman come on... and how about Brute Force?

avatar brianteeman
brianteeman - comment - 28 Aug 2019

@PrestaShark prevented by htaccess or by very many free plugins for joomla

avatar PrestaShark
PrestaShark - comment - 28 Aug 2019

That should be core feature for years ;)

Thanks team for consider that Milestone change in Joomla world!!!

avatar brianteeman
brianteeman - comment - 28 Aug 2019

@C-Lodder there are also uses in the core where the admin path is explicit for example in the xml

<fieldset
name="contact"
label="COM_CONTACT_FIELD_CONFIG_INDIVIDUAL_CONTACT_DISPLAY"
description="COM_CONTACT_FIELD_CONFIG_INDIVIDUAL_CONTACT_DESC"
addfieldpath="/administrator/components/com_fields/models/fields"

and not forgetting all the extensions

avatar C-Lodder
C-Lodder - comment - 28 Aug 2019

@brianteeman ah yes, forgot about the XML files

avatar brianteeman
brianteeman - comment - 28 Aug 2019

That should be core feature for years ;)
It could have been but it is not because it has no benefit

avatar mbabker
mbabker - comment - 28 Aug 2019

I’ve spelled it out on here a number of times in the past, but it is just
too heavily involved to make it easy to change any part of the core file
structure for the sake of security by obscurity. You’re better off with
web server level directives to restrict access than hoping changing a
folder name keeps you “safe”.

On Wed, Aug 28, 2019 at 6:34 AM Brian Teeman notifications@github.com
wrote:

That should be core feature for years ;)
It could have been but it is not because it has no benefit


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/joomla/joomla-cms/issues/26055?email_source=notifications&email_token=AACZ7IKRRNAEERO5YYYVVIDQGZPCVA5CNFSM4IRASQJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5KZZTQ#issuecomment-525704398,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AACZ7IKM3TQJPJ3IFPT3TQTQGZPCVANCNFSM4IRASQJQ
.

--

  • Michael Please pardon any errors, this message was sent from my iPhone.
avatar PrestaShark
PrestaShark - comment - 28 Aug 2019

@mbabker and thats what i call answer. Thank You. So its just a lot of core work to make it's done and keep everything works (themes, plugins, components etc.)

avatar Quy Quy - change - 28 Aug 2019
Status New Closed
Closed_Date 0000-00-00 00:00:00 2019-08-28 13:01:27
Closed_By Quy
avatar Quy Quy - close - 28 Aug 2019
avatar Quy
Quy - comment - 28 Aug 2019

Closing for reasons stated.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26055.

Add a Comment

Login with GitHub to post a comment