Improper Authentication Affecting github.com/googlecloudplatform/esp-v2 package, versions >=2.20.0 <2.43.0


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.11% (46th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Authentication vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMGOOGLECLOUDPLATFORMESPV2-5488159
  • published27 Apr 2023
  • disclosed27 Apr 2023
  • creditUnknown

Introduced: 27 Apr 2023

CVE-2023-30845  (opens in a new tab)
CWE-287  (opens in a new tab)

How to fix?

Upgrade github.com/GoogleCloudPlatform/esp-v2 to version 2.43.0 or higher.

Overview

Affected versions of this package are vulnerable to Improper Authentication such that API clients can craft a malicious X-HTTP-Method-Override header value to bypass JWT authentication in specific cases.

ESPv2 allows malicious requests to bypass authentication if both conditions are true:

  • the requested HTTP method is not in the API service definition (OpenAPI spec or gRPC google.api.http proto annotations
  • the specified X-HTTP-Method-Override is a valid HTTP method in the API service definition. ESPv2 will forward the request to your backend without checking the JWT.

Note: Restricting API access with API keys works as intended and is not affected by this vulnerability.

CVSS Base Scores

version 3.1