Overview
PHP-CGI-based setups contain a vulnerability when parsing query string parameters from php files.
Description
According to PHP's website, "PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML." When PHP is used in a CGI-based setup (such as Apache's mod_cgid), the php-cgi receives a processed query string parameter as command line arguments which allows command-line switches, such as -s, -d or -c to be passed to the php-cgi binary, which can be exploited to disclose source code and obtain arbitrary code execution.
An example of the -s command, allowing an attacker to view the source code of index.php is below:
Additional information can be found in the vulnerability reporter's blog post.
Impact
A remote unauthenticated attacker could obtain sensitive information, cause a denial of service condition or may be able to execute arbitrary code with the privileges of the web server.
в кратком переводе это звучит так, что если кто-то еще использует PHP в режиме CGI (привет апачеводы), то через добавление параметров -s, -d, -c им можно устроить сладкую жизнь, начиная с просмотра исходного кода скриптов и заканчивая выполнением произвольного кода на сервере (в рамках апача).