← back
CVE-2020-15233

OAuth2 Redirect URL validity does not respect query parameters and character casing for loopback addresses

CVSS 6.1 MEDIUMEPSS 0.8%CWE-20CWE-601
In short

A security flaw in ORY Fosite's OAuth2 framework allows attackers on the same machine to bypass redirect URL validation by manipulating query parameters or changing the hostname when redirecting to localhost. This could let them intercept authentication tokens meant for legitimate applications.

Technical detail

CVE-2020-15233 involves improper validation of OAuth2 redirect URIs in ORY Fosite v0.30.2–v0.34.0, where case-insensitivity and query parameter handling enable attackers with local access to override registered redirect URLs for loopback addresses. An attacker can craft malicious redirect requests with custom query parameters or modified hostnames to intercept authorization codes or tokens, bypassing URL allowlist checks.

Summary generated and translated by AI from the official description.
ORY Fosite is a security first OAuth2 & OpenID Connect framework for Go. In Fosite from version 0.30.2 and before version 0.34.1, there is an issue in which an an attacker can override the registered redirect URL by performing an OAuth flow and requesting a redirect URL that is to the loopback adapter. Attackers can provide both custom URL query parameters to their loopback redirect URL, as well as actually overriding the host of the registered redirect URL. These attacks are only applicable in scenarios where the attacker has access over the loopback interface. This vulnerability has been patched in ORY Fosite v0.34.1.
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N
Affected products
ory · fosite

Want to know if your infrastructure is exposed to this?

Talk to TrueHacking →