Support

Admin Tools

#40292 Many same Automatic IP blocking notification mail

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
4.4.2
PHP version
8.1
Admin Tools version
7.4.8

Latest post by nicholas on Wednesday, 14 February 2024 14:48 CST

EIF

This morning I got thousands (3550) Automatic IP blocking notification mails.

The were all the same, sent on between 06:05 tot 06:07. I know I can turn these mails of, but isn't it strange that is sent som many times? Normally I got just 1 mail for 1 IP address that has been blocked.

The content of the mail is:

Β 

We would like to notify you that the IP address 146.70.59.39 will be temporarily blocked from accessing your site. Please find additional details below.

IP Address: 146.70.59.39 (IP Lookup: https://ip-lookup.net/index.php?ip=146.70.59.39)

Last Blocked Request Reason: susparam

Blocked until: 2024-02-14 17:04:40

Β 

nicholas
Akeeba Staff
Manager

Can you please tell me what the Target URL is? This will tell me if it's a legit attack, or a false positive, which will determine what is the next step you should take.

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!

EIF

Hi, I just wanted to copy paste the logging, but when I did I got blocked here.

So no I only copy the first part of the urls. There are many, but here are some:


https://www.waterpijp-bong.nl/component/virtuemart/d-smoke-pure-9-mm-classic-12-inch-bong-blue-headshop

https://www.waterpijp-bong.nl/component/virtuemart/d-smoke-pure-9-mm-classic-18-inch-bong-green-headshop

https://www.waterpijp-bong.nl/component/virtuemart/boost-straight-ice-glas-bong-45cm-headshop

https://www.waterpijp-bong.nl/component/virtuemart/junior-hookah-waterpijp-flame-1-slang-zwart-headshop

The real url cotains more code, but I think that will block me again.

nicholas
Akeeba Staff
Manager

It's the extra stuff after the question mark that makes all the difference. What if you took a screenshot and attached it to your next reply?

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!

EIF

I hadn't thought of that. Here is a screenshot.

Β Edit: I can't upload the image? I have selected the image, but won't upload?

So I have uploaded the screenshot. You can check here: https://www.waterpijp-bong.nl/admintoolslog.jpg

Β 

nicholas
Akeeba Staff
Manager

First of all, it is a good thing this URL is blocked because it's an attempt at SQL injection. Even if this Admin Tools feature (Suspicious URL Parameter) had not caught it, the SQLiShield feature would have caught it.

That said, I will give you two parts in my reply regarding the emails.

First and foremost, why did you get multiple emails. If you look at the timing of the requests, they all came within a few seconds. They are being processed in parallel. Since PHP is a strictly stateless language there is no (reliable) way for different processes to tell each other "gee, we're all blocking the same IP address". Therefore, each one of these processes does its own block and sends its own email. At some point this information is committed to the database, and the database makes it available for reading, therefore that IP gets auto-blocked and subsequent requests from that IP address are discarded silently. This is normal. It's how your web server works. Anything else would make your site deathly slow.

The second part is that you should not have set up a production site to send emails about blocked requests. This feature is meant as a troubleshooting aid in exactly two cases: 1. when first setting up Admin Tools, since you're very likely to encounter lots of false positives; and 2. when troubleshooting something you can't otherwise reproduce. During normal, stable, production operation of a site you should disable emails on blocked requests by removing your email address from Admin Tools' configuration. This makes Admin Tools' performance much better. It will block this kind of malicious request storm even faster.

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!