CVE-2017-12196: Incorrect Authorization in Undertow
5.9
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.5999%
CWE
Published
5/13/2022
Updated
1/27/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| io.undertow:undertow-core | maven | >= 2.0.0.Alpha1, <= 2.0.1.Final | 2.0.2.FInal |
| io.undertow:undertow-core | maven | <= 1.4.23.Final | 1.4.24.Final |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from missing URI validation in the Digest authentication flow. The commit diff shows the addition of URI comparison logic between the Authorization header's 'uri' parameter and the actual request URI. The original code had a 'TODO - Validate the URI' comment, indicating this check was previously unimplemented. The function's access modifier was also changed from public to private, suggesting it was part of the security fix. Test cases added in DigestAuthenticationAuthTestCase.java validate this fix by checking for BAD_REQUEST when URIs mismatch.