Overriding core Joomla! controller

For Joomla! 3.x Coding related discussions, you could also use: http://groups.google.com/group/joomla-dev-general

Moderators: ooffick, General Support Moderators

Forum rules
Post Reply
olivier1000
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Mon Dec 18, 2023 3:43 pm

Overriding core Joomla! controller

Post by olivier1000 » Mon Dec 18, 2023 3:56 pm

Hello, fellow Joomla users.

First and foremost, please acknowledge that upgrading to Joomla! 4 or 5 is not an option for my situation. I need this to be done in Joomla 3.10.10.

I want to override the core Joomla UsersController located in components\com_users\controller.php. I need to change the code it contains.
There seems to be no documentation on the matter, and the only plausible solution to what I'm trying to achieve, namely creating a code folder in the template I'm using, does not work.

Is there a way to override a controller's code without risk of it being overwritten by a Joomla update ?

User avatar
AMurray
Joomla! Exemplar
Joomla! Exemplar
Posts: 9747
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Overriding core Joomla! controller

Post by AMurray » Mon Dec 18, 2023 9:49 pm

There will be no more updates for Joomla 3.10.x - it's obsolete and EOL, unless you're subscribed to the Extended Long term support. (https://elts.joomla.org/)

J4/j5 are the only supported Joomla CMS.
Regards - A Murray
General Support Moderator

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44097
Joined: Sat Apr 05, 2008 9:58 pm

Re: Overriding core Joomla! controller

Post by Webdongle » Mon Dec 18, 2023 11:12 pm

First and foremost J3 has a major vulnerability https://developer.joomla.org/security-c ... ables.html
You can pay for extra support or try https://github.com/TLWebdesign/Joomla-3 ... per-hotfix
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

User avatar
brian
Joomla! Master
Joomla! Master
Posts: 12787
Joined: Fri Aug 12, 2005 7:19 am
Location: Leeds, UK
Contact:

Re: Overriding core Joomla! controller

Post by brian » Tue Dec 19, 2023 7:25 am

@webdongle that can only be exploited in some very specific (and unusual) scenarios all of which require an element of "hack yourself"

@olivier1000 No Is there a way to override a controller's code without risk of it being overwritten by a Joomla update. Hence no documentation explaining how to do it
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44097
Joined: Sat Apr 05, 2008 9:58 pm

Re: Overriding core Joomla! controller

Post by Webdongle » Tue Dec 19, 2023 9:42 am

@brian
Sorry I must have misunderstood https://nvd.nist.gov/vuln/detail/CVE-2023-40626 where it says Severity base level 7.5 high
mea culpa
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

User avatar
brian
Joomla! Master
Joomla! Master
Posts: 12787
Joined: Fri Aug 12, 2005 7:19 am
Location: Leeds, UK
Contact:

Re: Overriding core Joomla! controller

Post by brian » Tue Dec 19, 2023 9:47 am

The severity is high but the exploitability is low
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/


Post Reply

Return to “Joomla! 3.x Coding”