6.1medium
Redirect URL matching ignores character casing
- Severity
- 6.1medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.84% (higher than 59% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-grfp-q2mm-hfp6
Description
ORY Fosite is a security first OAuth2 & OpenID Connect framework for Go. In Fosite before version 0.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. This allows an attacker to register a client with allowed redirect URL https://example.com/callback. Then perform an OAuth2 flow and requesting redirect URL https://example.com/CALLBACK. 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). This vulnerability has been patched in ORY Fosite v0.34.1.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| ory fosite | < 0.34.1, before 0.34.1 | CVE List, NVD |
| github.com/ory/fosite (Go) | before 0.34.1 | GitHub Advisory Database |
All scores
| GitHub_M | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N |
| GitHub | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N |
| NVD | 4.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N |
| NVD | 4.9medium CVSS:2.0 | AV:N/AC:M/Au:S/C:P/I:P/A:N |
Classification
What each source says
CVE List
ORY Fosite is a security first OAuth2 & OpenID Connect framework for Go. In Fosite before version 0.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. This allows an attacker to register a client with allowed redirect URL https://example.com/callback. Then perform an OAuth2 flow and requesting redirect URL https://example.com/CALLBACK. 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). This vulnerability has been patched in ORY Fosite v0.34.1.
GitHub Advisory Database
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:
- Registering a client with allowed redirect URL
https://example.com/callback - Performing OAuth2 flow and requesting redirect URL
https://example.com/CALLBACK - Instead of an error (invalid redirect URL), the browser is redirected to
https://example.com/CALLBACKwith a potentially successful OAuth2 response, depending on the state of the overall OAuth2 flow (the user might still deny the request for example).
NVD (es)
ORY Fosite es el primer framework de seguridad OAuth2 y OpenID Connect para Go. En Fosite versiones anteriores a 0.34.1, las URL de redireccionamiento registradas del cliente OAuth versión 2.0 y la URL de redireccionamiento proporcionada en el OAuth2 Authorization Endpoint se compararon usando strings.ToLower, aunque deberían haberse comparado con una coincidencia de cadena simple. Esto permite a un atacante registrar un cliente con la URL de redireccionamiento permitida https://example.com/callback. Luego, llevar a cabo un flujo de OAuth2 y solicitando la URL de redireccionamiento https://example.com/CALLBACK. En lugar de un error (una URL de redireccionamiento no válida), el navegador es redireccionado a https://example.com/CALLBACK con una respuesta OAuth2 potencialmente exitosa, dependiendo del estado del flujo OAuth2 general (el usuario aún puede denegar la petición, por ejemplo ). Esta vulnerabilidad ha sido parcheada en ORY Fosite versión v0.34.1
References
| https://github.com/ory/fosite/security/advisories/GHSA-grfp-q2mm-hfp6 | third-party-advisory, web | |
| https://github.com/ory/fosite/commit/cdee51ebe721bfc8acca0fd0b86b030ca70867bf | patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2020-15234 | advisory | |
| https://github.com/ory/fosite | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-15234 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-grfp-q2mm-hfp6 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2020-15234 changed 2026-06-17 | Public domain |