Miggo Logo

CVE-2020-25074: MoinMoin vulnerable to remote code execution via cache action

8.8

CVSS Score
3.1

Basic Information

EPSS Score
0.93678%
Published
11/11/2020
Updated
10/7/2024
KEV Status
No
Technology
TechnologyPython

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
moinpip< 1.9.111.9.11

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from improper validation of the 'key' parameter in the cache action. The commit diff shows the patched version added a 'valid_key' function to enforce a 40-character hex format, which was missing in the original code. The execute function passed user-controlled 'key' values to _do without checks, enabling path traversal. Both functions are directly involved in processing the malicious input, making them the root cause. The high confidence comes from the explicit addition of validation logic in the patch and the CWE-22 classification aligning with directory traversal via unvalidated inputs.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

### Imp**t T** ***** **tion in **tion/*****.py *llows *ir**tory tr*v*rs*l t*rou** * *r**t** *TTP r*qu*st. *n *tt**k*r w*o **n uplo** *tt***m*nts to t** wiki **n us* t*is to ***i*v* r*mot* *o** *x**ution. ### P*t***s Us*rs *r* stron*ly **vis** to up*

Reasoning

T** vuln*r**ility st*ms *rom improp*r v*li**tion o* t** 'k*y' p*r*m*t*r in t** ***** **tion. T** *ommit *i** s*ows t** p*t**** v*rsion ***** * 'v*li*_k*y' *un*tion to *n*or** * **-***r**t*r **x *orm*t, w*i** w*s missin* in t** ori*in*l *o**. T** *x**