Support

Admin Tools

#34371 security issue

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 on Thursday, 18 February 2021 20:17 CST

marvays

Hi. I have a problem and I don't know who to contact. I have a problem with robot registration on one site. When I log in, I delete all accounts registered by the robot, turn off the user registration option and save. Then I'll check everything and log out.

But in about an hour I have a new account registration again. When I log in and look at the settings, registration is enabled. How is it possible?

I checked both admin accounts and no one logged in. I checked the files in admintools and only the administrator/components/com_akeeba/backup/akeeba.backend.4.log.php was changed.

nicholas
Akeeba Staff
Manager

User registration is NOT saved in a configuration file. It's saved in your database since it's a component option. More specifically, it's saved in the #__extensions table, in the JSON-encoded params field of the record whose element column is com_users.

The first thing I'd check is plain old assumptions gone wrong. You disabled user registration and saved. Did you try logging out, back in and check if the change actually got saved?

The second thing I'd check is whether the change was applied on the correct site. Laugh all you want, if you do 20 years of end user support seeing people making changes on the wrong site while absolutely convinced of the contrary will be a commonplace occurrence.

Now, if we have established that you are changing the correct site, the change is applied and it does revert after a while we need to figure out WHY it's happening.

The file which changed is a backup log file so that's not something you need to worry about. Besides, if your site was hacked I doubt that the only change the attacker would make is re-enable user registration so a bot can register but not activate an account. It sounds a lot like digging a tunnel into a bank to steal a cup of water from the public water cooler in the lobby. No attacker is that stupid.

One way is that a privileged user is changing it. If you've enabled Admin Tools' emails on user login you would know about that so I assume it's not the case.

If you've enabled Admin Tools' SQLiShield (enabled by default) it is not a SQL injection attack either.

This leaves us with a third party extension changing this setting OR your database being periodically restored e.g. by your host.

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!

marvays

Thank you.
Yes, registration is still disabled after logging in again. It takes at least an hour to see it turned on again.

Should I change the password in the DB?

nicholas
Akeeba Staff
Manager

Do you see any other database changes happening after about an hour? Like, if you publish an article does it stay published or does it disappear?

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!

marvays

No. nothing else will change. even created users will stay there.

nicholas
Akeeba Staff
Manager

Take a database dump of your #__extensions table.

Make the change to the user registration.

Take a second database dump of your #__extensions table.

Compare the first and second dumps. The only thing that should've changed is the  params field of the record whose element column is com_users.

Wait for an hour or two. DO NOT log into your site.

Take a third database dump of your #__extensions table.

Compare the second and third dumps. Has anything changed? If so, what?

Log into your site. If user registration is enabled again take a fourth database dump of your #__extensions table.

Compare the third and fourth dumps. Has anything changed? If so, what?

I have a feeling that you are probably using an e-commerce extension which relies on user registration being enabled on your site. It probably goes beyond that, automatically reactivating user registration even if you manually elected to do otherwise.

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!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

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!