Support

Akeeba Backup for Joomla!

#39454 Possible PHP Injection warning

Posted in ‘Akeeba Backup 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
Akeeba Backup version
9.7.1

Latest post by nicholas on Sunday, 10 September 2023 03:50 CDT

psrch

I imagine this is something you're already aware of, and it may be nothing major. I use Watchful to manage the sites on my server, and after running a Vulnerability Scan, one message came up: 

/administrator/components/com_akeebabackup/tmpl/commontemplates/errorhandler.php System (reported by PHP) Possible PHP Injection (Unix command)

If it's not major issue, just let me know so I can make sure I ignore it.

 

Thanks for a great product - first thing I install on all my sites!

nicholas
Akeeba Staff
Manager

Nope, this file cannot be used for any kind of injection. This is the error handler. Watchful mistakenly reports it because they see the string “exec”. However, we do not use the PHP function exec(). The string appears in the line defined('_JEXEC') or die(); which protects against direct access to the file and in the PHP configuration variable name max_execution_time (which is output after being properly escaped with htmlentities).

Likewise, we do dump the server superglobals ($_GET, $_POST, $_COOKIE, $_REQUEST) again after passing them through htmlentities to avoid other injection attacks, just like we do with any kind of output.

If Watchful believes otherwise they can tell us what they believe is a PHP injection vulnerability so I can tell them exactly why they are wrong.

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!