Support

Admin Tools

#11521 XFF protection

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 nicholas on Monday, 12 March 2012 09:11 CDT

freebandtech
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)?
Yes
Have I searched the tickets before posting? Yes
Have I read the documentation before posting (which pages?)? Yes
Joomla! version: 2.5.x / 1.5.25
PHP version: 5.3.2
MySQL version: 5.1.x
Host: (optional, but it helps us help you)
Admin Tools version: 2.2.0

Description of my issue:

This is not exactly an issue, but a sort of inquiry / feature request (if it is missing).
Does AT Pro support XFF, XFF Header Name: X-Forwarded-ForP
The question is being raised by a security expert from a company we develop Joomla base applications for.

Cheers,
Nuno.

nicholas
Akeeba Staff
Manager
I am not sure what you mean. The only Admin Tools feature which could be triggered by the reverse proxy header you mention is the Bad Behavior integration. To the best of my knowledge, BB supports this header since a couple of years ago. Moreover, you can turn it off if it causes some problem.

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!

freebandtech
According to the same source:
The problem is that when a reverse proxy performing NAT sits between Joomla and the Internet, for Joomla all the incoming HTTP requests are coming from internal IP address of the reverse proxy.



Example:



Internet User (x.x.x.x) -à (INTERNET) -à Company’s reverse proxy (y.y.y.y) à Joomla server



If an attack is detected by Joomla and the client IP address is banned, the banned IP will be y.y.y.y instead of x.x.x.x which will perform a full DoS to the Joomla server since no more requests coming from Internet will be served anymore (for Joomla all come from the same IP y.y.y.y).



Think I understand where the guy i getting at.
Behind a reverse proxy there has to be a means to let AT know the original IP address the offendong request originates from.
XFF would apparently solve the issue.

nicholas
Akeeba Staff
Manager
Ah, I see. No, there is no such support in Admin Tools. Typically, you have to install an Apache module which reads that header and makes the proxied IP address made available as the REMOTE_ADDR environment variable which is what Admin Tools will take into account. The reason it's not supported natively by Admin Tools is that it can be spoofed very easily and cause a legitimate IP (e.g. the site administrator's IP) being blocked by an attacker.

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!