Skip to main content

Improper Handling of Case Sensitivity

CVE-2021-39155

Severity High
Score 7.5/10

Summary

Istio is an open source platform for providing a uniform way to integrate microservices, manage traffic flow across microservices, enforce policies and aggregate telemetry data. According to RFC 4343, Istio authorization policy should compare the hostname in the HTTP Host header in a case insensitive way, but currently the comparison is case sensitive. The proxy will route the request hostname in a case-insensitive way which means the authorization policy could be bypassed. As an example, the user may have an authorization policy that rejects a request with a "httpbin.foo" hostname for some source IPs, but the attacker can bypass this by sending the request with "Httpbin.Foo" hostname. The vulnerable versions are prior to 1.9.8, 1.10.0 prior to 1.10.4 and 1.11.0 prior to 1.11.1. As a workaround a Lua filter may be written to normalize the HTTP Host header before the authorization check. This is similar to the path normalization presented in the security best practices guide.

  • LOW
  • NETWORK
  • NONE
  • UNCHANGED
  • NONE
  • NONE
  • HIGH
  • NONE

CWE-178 - Improper Handling of Case Sensitivity

The software does not properly account for differences in case sensitivity when accessing or determining the properties of a resource, leading to inconsistent results.

Advisory Timeline

  • Published