openshift / origin-web-console

Web Console for the OpenShift Application Platform
https://www.openshift.org/
Apache License 2.0
123 stars 230 forks source link

Do not reveal information on error pages and when not authenticated #3177

Closed klaus-halfmann closed 3 years ago

klaus-halfmann commented 3 years ago

As of some security assessment we found that the console will reveal a lot of information even when showing an error page or even when use is not authenticated. E.g. I found:

This can be used to determine exact versions and other attack vectors, which should be avoided.

Expected:

Its OK to switch on/off this feature we a flag, so developer builds will not be affected.

In case I am wrong here please direct me to the correct place ...

openshift-bot commented 3 years ago

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close. Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

spadgett commented 3 years ago

Hi, sorry for the delay in responding. https://github.com/openshift/console is probably the repo you meant.

Version information is available outside of the console using the API server version endpoint. We've previously had a Bugzilla on this (https://bugzilla.redhat.com/show_bug.cgi?id=1437573), but we have opted not to change this for the following reasons:

klaus-halfmann commented 3 years ago

OK, I will tell our Security People ....