Unauthenticated Data Exposure
CVE: CVE-2024-7128
Component: openshift-console
CWE: CWE-200
Severity: Moderate
CVSS v3: 5.3/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Release date: 2024-07-26T00:00:00+00:00

A flaw was found in the OpenShift console. Several endpoints in the application use the authHandler() and authHandlerWithUser() middleware functions. When the default authentication provider ("openShiftAuth") is set, these functions do not perform any authentication checks, relying instead on the targeted service to handle authentication and authorization. This issue leads to various degrees of data exposure due to a lack of proper credential verification.

Statement: This issue is classified as moderate severity rather than important because while it allows unauthorized access to certain endpoints, the exposure is limited to non-critical or low-impact data. The endpoints in question, such as `/api/console/version` and `/api/plugins/`, do not provide access to highly sensitive information or critical system functionality that could directly compromise the integrity, confidentiality, or availability of the system. Additionally, since authentication is still handled by the service, the risk of widespread unauthorized access is mitigated.

Remediation:
For OpenShift Container Platform 4.16 see the following documentation,
which will be updated shortly for this release, for important instructions
on how to upgrade your cluster and fully apply this asynchronous errata
update:

https://docs.redhat.com/en/documentation/openshift_container_platform/4.16/html/release_notes/

You may download the oc tool and use it to inspect release image metadata
for x86_64, s390x, ppc64le, and aarch64 architectures. The image digests
may be found at
https://quay.io/repository/openshift-release-dev/ocp-release?tab=tags.

The sha values for the release are as follows:

      (For x86_64 architecture)
      The image digest is sha256:21b7cb796336c9c8f5d425af265ce9b2ec043eef0a9cfdc055f04e57d68cc9ca

      (For s390x architecture)
      The image digest is sha256:f14964f5029c3db1c0e5c5aedad1cae6f73560db1d19e9afee24c4802d3d2a09

      (For ppc64le architecture)
      The image digest is sha256:77a88c32b6d4e0ad0b3c51b54068f7ba91bb4a41967f6aea8f641c7ad3f536df

      (For aarch64 architecture)
      The image digest is sha256:60c0e2c9810fa6f91e7bcc1bbebefe6195799861ced8fa98882d06168daa3f2b

All OpenShift Container Platform 4.16 users are advised to upgrade to these
updated packages and images when they are available in the appropriate
release channel. To check for available updates, use the OpenShift CLI (oc)
or web console. Instructions for upgrading a cluster are available at
https://docs.redhat.com/en/documentation/openshift_container_platform/4.16/html-single/updating_clusters/index#updating-cluster-cli.
For OpenShift Container Platform 4.17 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this asynchronous errata update:

https://docs.redhat.com/en/documentation/openshift_container_platform/4.17/html/release_notes/

You may download the oc tool and use it to inspect release image metadata for x86_64, s390x, ppc64le, and aarch64 architectures. The image digests may be found at https://quay.io/repository/openshift-release-dev/ocp-release?tab=tags.

The sha values for the release are as follows:

      (For x86_64 architecture)
      The image digest is sha256:df00d64554b9b5d860273f938e0ff3b0c4a7af8356fbd103658ebe6fa2a830c8

      (For s390x architecture)
      The image digest is sha256:9e8682c84e3424e048ed2469279e675debf4b929bfa81c29b702c8513c6c0eee

      (For ppc64le architecture)
      The image digest is sha256:4c231311d8d0e4cd794831b96df606b7032943c29e598ec676d4bb41c2432fb3

      (For aarch64 architecture)
      The image digest is sha256:33b7e1a9f973a249de320a42680c0c8de96b77b44360c02e597efeb721153213

All OpenShift Container Platform 4.17 users are advised to upgrade to these updated packages and images when they are available in the appropriate release channel. To check for available updates, use the OpenShift CLI (oc) or web console. Instructions for upgrading a cluster are available at https://docs.redhat.com/en/documentation/openshift_container_platform/4.17/html-single/updating_clusters/index#updating-cluster-cli.
For OpenShift Container Platform 4.18 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this asynchronous errata update:

https://docs.redhat.com/en/documentation/openshift_container_platform/4.18/html/release_notes/

You may download the oc tool and use it to inspect release image metadata for x86_64, s390x, ppc64le, and aarch64 architectures. The image digests may be found at https://quay.io/repository/openshift-release-dev/ocp-release?tab=tags.

The sha values for the release are as follows:

      (For x86_64 architecture)
      The image digest is sha256:31e8978d1f7a24c3e70dcc12c93dd5e73311b78e528f73beb020ddbe3270e07d

      (For s390x architecture)
      The image digest is sha256:7e6a77a66b2f93afb2108ada0617d26dceadb130b58a5d3070142a7f6aca4ade

      (For ppc64le architecture)
      The image digest is sha256:af37b07cf408da430bab837ba8a0083934fa99df14efd7855240b77d9e102f0e

      (For aarch64 architecture)
      The image digest is sha256:e5d7b0851e8cd4378bc810b2fd1f19489836ea186a6678eed1add4bed4f08b13

All OpenShift Container Platform 4.18 users are advised to upgrade to these updated packages and images when they are available in the appropriate release channel. To check for available updates, use the OpenShift CLI (oc) or web console. Instructions for upgrading a cluster are available at https://docs.redhat.com/en/documentation/openshift_container_platform/4.18/html-single/updating_clusters/index#updating-cluster-cli.
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.