Servers using Apache mod_cgi (php5-cgi) are affected by a vulnerability in certain CGI-based setups which shows a scripts sourcecode via a GET url.
As there is a official workaround which does not fit enough, you could use this from the heise(de) forum, as long as there aren't strong official PHP patches:
Code: Select all
# ---Code-Schnipsel für eine Apache Config-Datei, Start, v0.3---
# Workaround: PHP vulnerability, CGI based PHP call
# see http://www.php.net/archive/2012.php#id2012-05-03-1
RewriteEngine On
RewriteCond %{QUERY_STRING} "^(%20|\+){0,}(%2d|-)(.*)$" [NC]
RewriteRule (.*) $1?nice=try [L,NC]
# ---Code-Schnipsel für eine Apache Config-Datei, Ende, v0.3---