Summary
An open redirect vulnerability has been identified in the DataHub frontend /authenticate endpoint that could allow attackers to redirect users to malicious external sites.
Vulnerability Details
Root Cause
The vulnerability exists in AuthenticationController.java (line 148) where the redirect_uri query parameter is passed directly to Results.redirect() without proper validation.
Attack Vector
When the redirect URI contains triple slashes (e.g., ///google.com), URL normalization causes browsers to interpret this as a fully qualified external URL (https://google.com), bypassing intended redirect restrictions.
Example Request:
GET /authenticate?redirect_uri=///google.com HTTP/2
Host: demo.datahub.com
Impact
Attackers can craft malicious links to redirect authenticated users to phishing sites or malicious domains.
Patches
A fix has been developed and is available in the following pull request:
Users should upgrade to the patched version once released.
Workarounds
Until the patch can be applied, consider the following temporary mitigations:
- Web Application Firewall (WAF): Block requests to
/authenticate containing redirect_uri parameters with multiple leading slashes (// or more)
- Reverse Proxy Rules: Implement URL filtering at the reverse proxy level to reject malformed redirect parameters
- User Education: Warn users to verify URLs before clicking authentication links
- Network Monitoring: Monitor for suspicious redirect patterns in access logs
References
Summary
An open redirect vulnerability has been identified in the DataHub frontend
/authenticateendpoint that could allow attackers to redirect users to malicious external sites.Vulnerability Details
Root Cause
The vulnerability exists in
AuthenticationController.java(line 148) where theredirect_uriquery parameter is passed directly toResults.redirect()without proper validation.Attack Vector
When the redirect URI contains triple slashes (e.g.,
///google.com), URL normalization causes browsers to interpret this as a fully qualified external URL (https://google.com), bypassing intended redirect restrictions.Example Request:
Impact
Attackers can craft malicious links to redirect authenticated users to phishing sites or malicious domains.
Patches
A fix has been developed and is available in the following pull request:
Users should upgrade to the patched version once released.
Workarounds
Until the patch can be applied, consider the following temporary mitigations:
/authenticatecontainingredirect_uriparameters with multiple leading slashes (//or more)References