-
Notifications
You must be signed in to change notification settings - Fork 39
the status page is not needed for dolibarr, AND it might be revealed if you have a proxy in front of dolibarr #45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…if you have another proxy infront
|
Hello @JonBendtsen, I don't think we need this PR if we add a way to disable the modules here in this PR #47. That would be much more convenient. |
I totally disagree, this is actually even more needed than PR#47 because this is a potential leak of information about the Dolibarr server setup.
Those that need the status page can enable it. |
|
Hey @creekorful , I need to agree with @JonBendtsen on disabling this module, since it may provide an adversary with information that can be used to refine exploits that depend on measuring server load, as per CIS Benchmark recomendations. I'm a defensor of the "Secure by design" philosophy, and I think that we shouldn't expect a regular user to think about disabling this by themselves. I disagree with PR #47 though - as @tuxgasy mentioned, we already have a feature that allow advanced users to enable modules and do their modifications. |
|
@tuxgasy I dont think that PHP settings should be removed |
|
(Copy paste of my answer from this other PR) Since there is a consensus for the base image to provide sane (and safe) defaults, let's move on with this PR. On a side note I would be great to check the list of enabled apache modules and use this PR to disable all modules who does not need to be enabled. If the user is willing to enable a module this could be done using the custom init scripts like @tuxgasy explained in another PR. Cheers, |
| vim-tiny \ | ||
| cron \ | ||
| && apt-get autoremove -y \ | ||
| && a2dismod status \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we move this to another RUN instruction just after this one and before the "Get Dolibarr" one?
Something like this:
# Disable useless Apache modules to provide safe defaults
RUN a2disconf status|
@tuxgasy I think that removing current PHP envs will lead to the creation of issues and confusion, from users unaware of these changes. Sadly envs is one of the things that it is hard to remove without creating a little "chaos". We can assume that those who use this envs are advanced users, and we can create a big text on the beginning of the README regarding these changes, but we will for sure disrupt some production environments by doing so. |
Perhaps we can have a look on CIS Benchmark recomendations - it should be a good start. |
|
replaced by #54 |
|
Closing as superseded by #54. |
the status page is not needed for dolibarr, AND it might be revealed if you have a proxy in front of dolibarr because traffic will seem to be local because it comes from the proxy :-(