Bug 10671 - lighthttp: set ServerTokens to Prod (recommended)
Summary: lighthttp: set ServerTokens to Prod (recommended)
Status: CLOSED FIXED
Alias: None
Product: IPFire
Classification: Unclassified
Component: --- (show other bugs)
Version: 2
Hardware: all Unspecified
: - Unknown - Minor Usability
Assignee: Michael Tremer
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-07 15:56 UTC by Timmothy Wilson
Modified: 2015-03-12 11:32 UTC (History)
0 users

See Also:


Attachments
Patched global.conf (233 bytes, application/octet-stream)
2014-11-07 15:56 UTC, Timmothy Wilson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Timmothy Wilson 2014-11-07 15:56:59 UTC
Created attachment 237 [details]
Patched global.conf

By default, the IPFire webserver adds a very detailled footer, containing version number, loaded modules and so on.

This is not recommended for servers running in a productive environment.

Only the configuration file "global.conf" in /etc/httpd/conf needs to be changed.

Attatched is a possible solution.
Comment 1 Timmothy Wilson 2014-11-21 15:26:07 UTC
In case of errors, lighthttp adds a very detailled footer to the error page, containing version number, loaded modules (php, ssl, ...) and their versions.

This is a security risk because it discloses installed and loaded modules.

To avoid this, set "ServerTokens" in /etc/httpd/conf/global.conf to "Prod".

lighthttp then only prints the product ("Apache").

Attatched is a possible solution.
Comment 2 Michael Tremer 2015-03-11 15:44:07 UTC
I accepted this patch although this does not really change anything. This is open source software, unless you are running an outdated version it is publicly known which version of apache is running with which modules.

http://git.ipfire.org/?p=ipfire-2.x.git;a=commitdiff;h=becbf67de73290f43fd6658c2c66c6e174d6afe2
Comment 3 Timmothy Wilson 2015-03-12 11:32:54 UTC
(In reply to Michael Tremer from comment #2)
> I accepted this patch although this does not really change anything. This is
> open source software, unless you are running an outdated version it is
> publicly known which version of apache is running with which modules.
Of course, just hiding the version information doesn't change anything. In my opinion, the version information have no function so it is safe to disable them since nobody needs them and they make it more easy for an intruder to detect wether you run the latest version of IPFire or not. Because of that, I thought it might be useful to disable them.
> 
> http://git.ipfire.org/?p=ipfire-2.x.git;a=commitdiff;
> h=becbf67de73290f43fd6658c2c66c6e174d6afe2
Thanks for accepting it, I hope I didn't annoyed you.