Support

Admin Tools

#16768 Hackers turning off Admin Tools

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by nicholas on Wednesday, 17 July 2013 07:26 CDT

totamus
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? No
Have I searched the tickets before posting? No
Have I read the documentation before posting (which pages?)? No
Joomla! version: (unknown)
PHP version: (unknown)
MySQL version: (unknown)
Host: (optional, but it helps us help you)
Admin Tools version: (unknown)

Description of my issue:
I have had two separate sites hacked in the last year by IPs outside of the USA (one in RU one in Saudi Arabia). In both cases, admin tools was installed and geoblocking turned on to block access from all areas except the USA. In both cases the admin tools had been settings had been "neutered" by disabling the WAF and geo blocking. In one case, when I accessed admin tools it had reverted to the initial run screen.

Is this an issue with admin tools? Or is it more likely that a password for administrator access was compromised? I am not using the two tier authentication as your documentation makes it sound like it is not ready for use. Any advice?

nicholas
Akeeba Staff
Manager
Most likely the hacker was able to access your site's filesystem, disable the plugin and go about his nasty business.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

totamus
I just realized that I may have contributed to the hacks by a tremendous error on my part when using Admin Tools. I have used Admin Tools for some time, and never really studied your documentation (a sin, but quite true). Because I have had occasional file permission issues in the past, I will at times click on "fix file permissions" for no reason other than I am in Admin Tools and it ensures everything is properly set.

This left the configuration.php file at 644.

It is my own fault, and I have now gone into all of my Joomla installations with admin tools installed and changed.

I am writing to suggest that a good upgrade, to prevent folks like me from hurting myself, would be to either default to 444 on configuration.php or to flash a warning whenever "fix permissions" is click and configuration.php is set to higher than 444.

Thanks for your great software and Joomla contributions.

nicholas
Akeeba Staff
Manager
Actually, 644 is the recommended permissions for configuration.php. 644 means:
644: The owning user has read (4) and write (2) privileges
644: The owning group has read privileges only
644: Everyone else has read privileges only

Even if you set the file to 444 the owning user can still chmod it to 644 and write to it. So, 644 and 444 are essentially the same as far as PHP code not written by a complete dummy is concerned.

The problem is when all sites on a shared server run under the same user. In this case the owner is the same across all sites and compromised site A can read and write to site B's files, compromising it as well.

And that is why you need a secure shared host. A secure shared host uses special isolation techniques between user accounts to render what I described impossible.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!