REDHAT-BUG-2436075: High severity Red Hat OpenShift vulnerability
The Route OpenShift resource allows to define routes to make pods reachable at a subdomain through HAProxy. These Routes are managed by the openshift-ingress/router-default pods. One of the features of Routes is their ability to match a URI's path and replace it, this is expressed in the Route by the spec.path and metadata.annotations"[haproxy.router.openshift.io/rewrite-target YAML stanzas in a Route document which are in turn (after various checks and sanitization) used as parameters to a HAProxy configuration template. This configuration template is expressed in plaintext, thus the templating engine cannot automatically escape values to enforce the document structure, escaping has to be performed on the values before the template's evaluation.
By default the Developer role can create Routes to expose their services.
It was found that the checks performed on the Routes spec.path was insufficient and could allow a controlled injection of the HAProxy configuration.
Affected Software
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2436075?
The severity of REDHAT-BUG-2436075 is rated as high (7).
How do I fix REDHAT-BUG-2436075?
To fix REDHAT-BUG-2436075, apply the patches provided by Red Hat for the OpenShift version you are using.
What systems are affected by REDHAT-BUG-2436075?
REDHAT-BUG-2436075 affects users of Red Hat OpenShift that utilize the Route resource feature.
What components are involved in REDHAT-BUG-2436075?
The components involved in REDHAT-BUG-2436075 include the openshift-ingress and router-default pods.
What implications does REDHAT-BUG-2436075 have for security?
The implications of REDHAT-BUG-2436075 for security involve potential risks related to URI path matching and replacement in routing mechanisms.