CVE-2019-19703: URL Redirection to Untrusted Site (Open Redirect) in Ktor
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.00136%
CWE
Published
2/12/2020
Updated
1/9/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
io.ktor:ktor-client-core | maven | <= 1.2.6 | 1.3.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The core vulnerability stems from the HTTP
client following redirects while retaining Authorization headers. The commit diff shows the fix involved adding authority comparison (originAuthority != url.authority
) and subsequent removal of Authorization headers in HttpRedirect.kt
. This confirms the vulnerable logic resided in the redirect handling code path prior to these checks being implemented. The handleCall()
function is directly responsible for processing redirects and building subsequent requests, making it the clear location of the vulnerable behavior.