]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
proxy.cgi: Suppress Squid version by default
authorPeter Müller <peter.mueller@ipfire.org>
Fri, 18 Jun 2021 07:07:21 +0000 (09:07 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 18 Jun 2021 08:47:36 +0000 (08:47 +0000)
While hiding version information does not come with any _actual_
security improvements, it is generally a good thing to do so by default:
Attackers will still be able to reasonably guess or enumerate the
software version running, but need to conduct additional effort to do
so, hence more likely raising alerts and drawing attention on their
operation.

In addition, we suppress version details somewhere else in IPFire 2.x by
default, too (e. g. Unbound and Apache), so we can justify this patch by
aiming to stay consistent, I guess. :-)

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/proxy.cgi

index 78ad33ad249079ebeb7c38c2fd83f774930b2b61..1b949d5b6853d1521897bc0b34924502bcf3956d 100644 (file)
@@ -188,7 +188,7 @@ $proxysettings{'ADMIN_MAIL_ADDRESS'} = '';
 $proxysettings{'ADMIN_PASSWORD'} = '';
 $proxysettings{'ERR_LANGUAGE'} = 'en';
 $proxysettings{'ERR_DESIGN'} = 'ipfire';
-$proxysettings{'SUPPRESS_VERSION'} = 'off';
+$proxysettings{'SUPPRESS_VERSION'} = 'on';
 $proxysettings{'FORWARD_VIA'} = 'off';
 $proxysettings{'FORWARD_IPADDRESS'} = 'off';
 $proxysettings{'FORWARD_USERNAME'} = 'off';