Miggo Logo

CVE-2021-32721: Open Redirect in github.com/AndrewBurian/powermux

4.7

CVSS Score
3.1

Basic Information

EPSS Score
0.42476%
Published
7/1/2021
Updated
5/30/2024
KEV Status
No
Technology
TechnologyGo

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
github.com/AndrewBurian/powermuxgo< 1.1.11.1.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stemmed from two key issues: 1) The trailing slash redirection in ServeMux.getAll didn't validate path structure, allowing redirects from paths with double slashes. 2) Route.execute processed paths without checking for invalid consecutive slashes. The fix moved redirection logic to Route.execute and added explicit checks for '//' patterns. The removed code in servemux.go and modified logic in route.go indicate these were the vulnerable areas.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

### Imp**t *tt**k*rs m*y ** **l* to *r**t p*is*in* links *n* ot**r op*n r**ir**ts *y *xploitin* t** tr*ilin* sl*s* r**ir**tion ***tur*. T*is m*y l*** to us*rs **in* r**ir**t** to untrust** sit*s **t*r *ollowin* *n *tt**k*r *r**t** link. ### P*t***s

Reasoning

T** vuln*r**ility st*mm** *rom two k*y issu*s: *) T** tr*ilin* sl*s* r**ir**tion in `S*rv*Mux.**t*ll` *i*n't v*li**t* p*t* stru*tur*, *llowin* r**ir**ts *rom p*t*s wit* *ou*l* sl*s**s. *) `Rout*.*x**ut*` pro**ss** p*t*s wit*out ****kin* *or inv*li* *