PT-2019-5715 · Spring · Spring Security Oauth

Published

2019-03-07

·

Updated

2022-06-29

·

CVE-2019-3778

CVSS v3.1

6.5

Medium

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions Spring Security OAuth versions 2.0 through 2.3.4 Spring Security OAuth version 2.3.5 and later are not affected, but versions prior to 2.3.5 are vulnerable.
Description The issue is related to an open redirector attack that can leak an authorization code. A malicious user or attacker can craft a request to the authorization endpoint using the authorization code grant type and specify a manipulated redirection URI via the redirect uri parameter. This can cause the authorization server to redirect the resource owner user-agent to a URI under the control of the attacker with the leaked authorization code. The vulnerability exposes applications that act in the role of an Authorization Server and use the DefaultRedirectResolver in the AuthorizationEndpoint.
Recommendations For Spring Security OAuth versions 2.0 through 2.3.4, update to version 2.3.5 or later to resolve the issue. As a temporary workaround, consider using a different RedirectResolver implementation other than DefaultRedirectResolver in the AuthorizationEndpoint. Restrict access to the authorization endpoint to minimize the risk of exploitation. Avoid using the redirect uri parameter in the authorization endpoint until the issue is resolved.

Exploit

Fix

Open Redirect

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

BDU:2021-00718
CVE-2019-3778
GHSA-77RV-6VFW-X4GC

Affected Products

Spring Security Oauth