Support

Admin Tools

#33567 Critical file modified on domain

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 Wednesday, 23 September 2020 01:17 CDT

GuiGuy

Periodically we've been receiving alerts, outside of any updates carried out by us:

We would like to notify you that one or more critical files have been modified on your site, Cemeteries & Crematoria Association. The list of files modified on your site is as follows:

  • templates/tmpltname/index.php

it is always index.php that is reported.

The last two warnings  occurred yesterday. One for a template that was disabled, now removed, the other for a main template that is also inherited by a couple of sub-domains.

The templates were installed back in January, and the last Joomla update occurred a couple of weeks ago.

The file dates on the index.php files were consistent with the install/ managed update dates.

I ran diff against backup copy and the files allegedly tampered with.

No difference was reported.

Any ideas what might be happening?

Thanks

 

 

nicholas
Akeeba Staff
Manager

This feature checks the file size (in bytes), file modification time and its MD5 and SHA1 checksums. If the contents are identical as you say, the file size and checksums would be identical. This leaves the file modification time.

Do note that a file three different timestamps on UNIX-compatible operating systems: creation, modification and access. The creation time is when the file was first created on the filesystem. The modification time is when the file was last written to. The access time (which is not always available) is when the file was last read.

If your template's index.php file is written to without any changes made to it its file modification time would change, triggering the email. This could happen for many reasons. Legitimate reasons would be updating the template or restoring a backup. In both cases the file is overwritten with the one from the update/backup package but its contents might indeed remain unmodified. Still, it got written to therefore it needs to be reported as modified. I'll get back to why this happens. Illegitimate reasons could be a badly written template or plugin overwriting the index.php file when no changes need to be made (that'd be a potentially dangerous mistake) or a hacked site making temporary changes to the template's index.php file to allow an attacker perform something nefarious and then restore the original contents to avoid detection. This is why we are triggering the email on file modification change even if the contents are identical. We can't be sure that the file wasn't temporarily modified and then restored back to its original contents.

What you need to do is check whether your file appears modified simply because you updated the template or restored a backup. If this is the case you do not need to worry about it.

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!