Miggo Logo

CVE-2022-23632: Skip the router TLS configuration when the host header is an FQDN

7.4

CVSS Score
3.1

Basic Information

EPSS Score
0.62042%
Published
2/16/2022
Updated
1/27/2023
KEV Status
No
Technology
TechnologyGo

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
github.com/traefik/traefik/v2go< 2.6.12.6.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from improper TLS configuration selection when the host header is an FQDN (with/without a trailing dot) or when CNAME flattening is enabled. The pull request #8764 indicates fixes in TLS configuration logic to align with routing rules. Functions like getTLSConfig (TLS selection) and matchSNI (SNI handling) are critical points where FQDN normalization and CNAME resolution would occur. The workaround requiring explicit FQDN declarations in host rules further suggests the host-matching logic in TLS configuration was not handling these cases correctly.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

### Imp**t P*opl* t**t *on*i*ur* mTLS **tw**n Tr***ik *n* *li*nts. *or * r*qu*st, t** TLS *on*i*ur*tion **oi** **n ** *i***r*nt t**n t** rout*r **oi**, w*i** impli*s t** us* o* * wron* TLS *on*i*ur*tion. - W**n s*n*in* * r*qu*st usin* *Q*N **n*l**

Reasoning

T** vuln*r**ility st*ms *rom improp*r TLS *on*i*ur*tion s*l**tion w**n t** *ost *****r is *n *Q*N (wit*/wit*out * tr*ilin* *ot) or w**n *N*M* *l*tt*nin* is *n**l**. T** pull r*qu*st #**** in*i**t*s *ix*s in TLS *on*i*ur*tion lo*i* to *li*n wit* routi