mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 03:07:43 +02:00
Disable unauthenticated access to cgi-bin/credits.cgi. The page leaks the currently installed version of IPFire and the hardware architecture. Both information might make a successful attack much easier. This issue can be reproduced by accessing https://[IPFire-IP]:444/cgi-bin/credits.cgi and accepting a SSL certificate warning (if any). Signed-off-by: Peter Müller <peter.mueller@link38.eu> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
65 lines
1.7 KiB
Plaintext
65 lines
1.7 KiB
Plaintext
<VirtualHost *:81>
|
|
|
|
DocumentRoot /srv/web/ipfire/html
|
|
|
|
RewriteEngine on
|
|
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK|OPTIONS)
|
|
RewriteRule .* - [F]
|
|
|
|
<Directory /srv/web/ipfire/html>
|
|
Options ExecCGI
|
|
AllowOverride None
|
|
Order allow,deny
|
|
Allow from all
|
|
</Directory>
|
|
<DirectoryMatch "/srv/web/ipfire/html/(graphs|sgraph)">
|
|
AuthName "IPFire - Restricted"
|
|
AuthType Basic
|
|
AuthUserFile /var/ipfire/auth/users
|
|
Require user admin
|
|
</DirectoryMatch>
|
|
ScriptAlias /cgi-bin/ /srv/web/ipfire/cgi-bin/
|
|
<Directory /srv/web/ipfire/cgi-bin>
|
|
AllowOverride None
|
|
Options None
|
|
AuthName "IPFire - Restricted"
|
|
AuthType Basic
|
|
AuthUserFile /var/ipfire/auth/users
|
|
Require user admin
|
|
<Files chpasswd.cgi>
|
|
Satisfy Any
|
|
Allow from All
|
|
</Files>
|
|
<Files webaccess.cgi>
|
|
Satisfy Any
|
|
Allow from All
|
|
</Files>
|
|
<Files dial.cgi>
|
|
Require user admin
|
|
</Files>
|
|
</Directory>
|
|
<Directory /srv/web/ipfire/cgi-bin/dial>
|
|
AllowOverride None
|
|
Options None
|
|
AuthName "IPFire - Restricted"
|
|
AuthType Basic
|
|
AuthUserFile /var/ipfire/auth/users
|
|
Require user dial admin
|
|
</Directory>
|
|
Alias /updatecache/ /var/updatecache/
|
|
<Directory /var/updatecache>
|
|
Options ExecCGI
|
|
AllowOverride None
|
|
Order deny,allow
|
|
Allow from all
|
|
</Directory>
|
|
Alias /repository/ /var/urlrepo/
|
|
<Directory /var/urlrepo>
|
|
Options ExecCGI
|
|
AllowOverride None
|
|
Order deny,allow
|
|
Allow from all
|
|
</Directory>
|
|
Alias /wpad.dat /srv/web/ipfire/html/proxy.pac
|
|
</VirtualHost>
|