GitHub Advisoryadvisory · Go

GHSA-grfp-q2mm-hfp6 Redirect URL matching ignores character casing

MEDIUM Published 2021-05-24 Modified 2021-11-19 Official page ↗
Aliases
CVE-2020-15234
Ecosystem
Go
Packages
github.com/ory/fosite
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N
Weaknesses
CWE-178, CWE-20, CWE-601
Reviewed
2021-05-21

Affected packages

• Go github.com/ory/fosite: < 0.34.1 → fixed in 0.34.1

Description

Impact Before version v0.34.1, the OAuth 2.0 Client's registered redirect URLs and the redirect URL provided at the OAuth2 Authorization Endpoint where compared using `strings.ToLower` while they should have been compared with a simple string match: 1. Registering a client with allowed redirect URL `https://example.com/callback` 2. Performing OAuth2 flow and requesting redirect URL `https://example.com/CALLBACK` 3. Instead of an error (invalid redirect URL), the browser is redirected to `https://example.com/CALLBACK` with a potentially successful OAuth2 response, depending on the state of the overall OAuth2 flow (the user might still deny the request for example).

Related

Alias · CVE (1)

  • CVE-2020-15234 ORY Fosite is a security first OAuth2 & OpenID Connect framework for Go. vulnerability

Weakness · CWE (3)

  • CWE-178 Improper Handling of Case Sensitivity weakness
  • CWE-20 Improper Input Validation weakness
  • CWE-601 URL Redirection to Untrusted Site weakness

References