Miggo Logo

CVE-2020-15216: github.com/russellhaering/goxmldsig vulnerable to Signature Validation Bypass

5.3

CVSS Score
3.1

Basic Information

EPSS Score
0.43517%
Published
5/24/2021
Updated
8/29/2023
KEV Status
No
Technology
TechnologyGo

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
github.com/russellhaering/goxmldsiggo< 1.1.01.1.0

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stemmed from insufficient structural validation of the XML Signature element. The commit f6188febf0c29d7ffe26a0436212b19cb9615e64 added a validateShape function to check signature structure, which was missing in previous versions. The findSignature function was vulnerable because it processed signatures without first verifying required child elements (SignedInfo, SignatureValue) were present in correct quantities, enabling signature bypass through XML structure manipulation.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

### Imp**t Wit* * **r**ully *r**t** XML *il*, *n *tt**k*r **n *ompl*t*ly *yp*ss si*n*tur* v*li**tion *n* p*ss o** *n *lt*r** *il* *s * si*n** on*. ### P*t***s * p*t** is *v*il**l*, *ll us*rs o* *oxml*si* s*oul* up*r*** to v*.*.*. ### *or mor* in*o

Reasoning

T** vuln*r**ility st*mm** *rom insu**i*i*nt stru*tur*l v*li**tion o* t** XML Si*n*tur* *l*m*nt. T** *ommit **************************************** ***** * `v*li**t*S**p*` *un*tion to ****k si*n*tur* stru*tur*, w*i** w*s missin* in pr*vious v*rsions.