Support

Admin Tools for WordPress

#39637 High Volume of Security Exception Error Emails

Posted in ‘Admin Tools for WordPress’
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

WordPress version
6.3.2
PHP version
8.2.11
Admin Tools version
1.6.3

Latest post by nicholas on Tuesday, 17 October 2023 01:15 CDT

rmpowell123

Hello,

 

Our version of Admin Tools for WordPress auto-updated today from v1.6.2 to v1.6.3. Immediately thereafter, our webmaster began to receive large numbers of security exception emails from the site. These arrived in batches of 200 emails at the time of update (7:50 a.m. our time), and then in subsequent batches of 200 every hour thereafter. This has gone on all day.

 

At 8:50 a.,. (approximately 1 hour after the first batch of 200 emails), I edited the email template settings (Admin Tools > Web Application Firewall > Email Templates) on each of the four email templates published. I reduced their send frequency limit from 5 emails every 1 hour "down" to 5 emails every 1 day. This had no effect on the volume of emails arriving. Batches of 200 per hour continue to arrive.

 

As a temporary measure,, now 12 hours later, I have edited the Web Application Firewall > Auto Ban > "Email this address after an automatic IP ban" setting, and the WAF > Logging and Reporting > "Email this address on security exceptions" fields to remove an email address from these fields altogether, thus theoretically giving Admin Tools no address to send email to. I am hopeful this will stop the email batches being sent.

 

A final piece of information: The Web Application Firewall > Security Exceptions Log shows 6 security exceptions for today's date. This obviously does not correspond to the high number of emails received claiming a security exception.

 

Is it possible there is a backlog of unsent emails that has suddenly been freed by the 1.6.3 update somehow, and we are receiving literally months of email in one day?

 

If not, why do you suspect this behavior is happening, and is there anything you advise I do to correct it/reduce email volume to normal levels?

 

Appreciate you,

 

Richard Powell

nicholas
Akeeba Staff
Manager

Emails are sent immediately, they are not cached by Admin Tools. If you have a third party email connectivity and/or email throttling plugin, that third party plugin might indeed cache emails and defer their delivery. Moreover, some mail servers may throttle emails as well. This means that any change you have made to email throttling in Admin Tools after emails have been sent will of course have no effect on third party plugins, or mail servers, since the email is already sent and beyond the control of Admin Tools.

We have made NO CHANGE regarding emails in this version. Last time something regarding emails was changed was back in version 1.5.2 released over 2 years ago.

The only change from 1.6.2 to 1.6.3 had to do with the plugin update code, working around a WordPress bug introduced in WordPress 6.3.0 and fixed in WordPress 6.3.2. The only reason we did this is that people stuck, for some reason, on WP 6.3.0 or 6.3.1 were unable to update Admin Tools, or any other extension, due to the WordPress bug which made our updater code break. This has absolutely nothing to do with emails, or any other aspect of the plugin. The plugin update code —in fact, the integration with WordPress' integrated plugin updater— is its own separate and completely isolated thing, implementing just four hooks which let us communicate update information to WordPress.

I believe that you had here was happenstance. 

As for what is logged vs what is emailed, please remember that there are two options in Admin Tools' Configure WAF page. One tells it which reasons to not email you about, the other which reasons not to log. Therefore it's absolutely possible to have something you receive an email about but is not logged. Please check your settings there.

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!