Support

Admin Tools

#33313 Joomla Contact Form/Email Exploit

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 Sunday, 26 July 2020 17:17 CDT

JHogsett

I LOVE Admin Tools and have the first issue I have ever experienced since using your software on my client sites.

I have a client Joomla site that experienced an exploit of the Joomla contact form. I don't have a form on the site, and no features that use email, but I received numerous messages in my contact email that email from my site had been identified as spam with the "This is an enquirey email via..."

I have Admin Tools configured to be as secure as possible. Is this something that Admin Tools can't detect when it is occurring? Any suggestions on how to block this kind of attack? I ended up renaming the com_contacts folder, but now I can't add any email forms for the client in the future.

Thanks!

nicholas
Akeeba Staff
Manager

First of all let's not overreact and call this an exploit because it's not. Joomla is not being hacked, it's doing what it's designed and told to do. It's just not what you'd think it should be doing.

Just because you have not created and published a contact form menu item doesn't mean that Joomla does not have one. When you add items in the Contacts component you are automatically enabling a contact form for each one of them. The non-SEF URL to get to them is well-known and predictable. It's easy for an automated script to access it and send spam through it – even without a published menu item.

There are a few things you can do.

The obvious solution is to not add anybody to the Contacts component unless you actually intend for them to have a contact form.

If you really need to put entries in the Contacts component regardless you can enable CAPTCHA on the form from Components, Contact, Options button, Form tab. Remember that you need to set up your CAPTCHA plugins in Extensions, Manage, Plugins first.

Another thing you can do is create a "hidden" menu (a menu without a corresponding menu module). Create a menu item for Contacts in there and set its access to Special. Because of how routing and access control works in Joomla you will be preventing access to com_contacts to everyone that's not a Manager, Administrator or Super User. When you want to add a public contact form later you can remove this menu item (and add a CAPTCHA to the contact form).

This is all core Joomla. There is no need to reinvent any of that in Admin Tools, not to mention it's a bit out of scope for it too.

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!