Miggo Logo

CVE-2019-14243: mastercactapus proxyprotocol vulnerable to denial of service

7.5

CVSS Score
3.1

Basic Information

EPSS Score
0.58578%
Published
5/24/2022
Updated
8/25/2023
KEV Status
No
Technology
TechnologyGo

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
github.com/mastercactapus/proxyprotocolgo< 0.0.20.0.2

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from the parseV2 function's lack of input validation for HAProxy PROXY v2 header lengths. The original code only checked the address family type but did not validate that rawHdr.Len matched the required length for each family (e.g., 12 bytes for IPv4, 36 for IPv6). This allowed attackers to craft headers with mismatched lengths, causing buffer overreads during parsing. The fix introduced a switch statement with explicit length checks for each address family type, confirming this was the root cause. The associated CWE-20 (Improper Input Validation) and crash reports from malformed headers further corroborate this analysis.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

*****rv*.*o in m*st*r***t*pus proxyproto*ol ***or* *.*.*, *s us** in t** m*st*r***t*pus ****y-proxyproto*ol plu*in t*rou** *.*.* *or ****y, *llows r*mot* *tt**k*rs to **us* * **ni*l o* s*rvi** (w**s*rv*r p*ni* *n* ***mon *r*s*) vi* * *r**t** **Proxy

Reasoning

T** vuln*r**ility st*ms *rom t** `p*rs*V*` *un*tion's l**k o* input v*li**tion *or **Proxy PROXY v* *****r l*n*t*s. T** ori*in*l *o** only ****k** t** ***r*ss **mily typ* *ut *i* not v*li**t* t**t `r*w**r.L*n` m*t**** t** r*quir** l*n*t* *or **** **m