Miggo Logo

CVE-2019-19703: URL Redirection to Untrusted Site (Open Redirect) in Ktor

6.1

CVSS Score
3.1

Basic Information

EPSS Score
0.00136%
Published
2/12/2020
Updated
1/9/2023
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
io.ktor:ktor-client-coremaven<= 1.2.61.3.0

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot 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.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

In Ktor t*rou** *.*.*, t** *li*nt r*s*n*s **t* *rom t** *TTP *ut*oriz*tion *****r to * r**ir**t lo**tion.

Reasoning

T** *or* vuln*r**ility st*ms *rom t** `*TTP` *li*nt *ollowin* r**ir**ts w*il* r*t*inin* *ut*oriz*tion *****rs. T** *ommit *i** s*ows t** *ix involv** ***in* *ut*ority *omp*rison (`ori*in*ut*ority != url.*ut*ority`) *n* su*s*qu*nt r*mov*l o* *ut*oriz*