Miggo Logo

CVE-2021-32560: OctoPrint Incorrect Access Control

6.5

CVSS Score
3.1

Basic Information

EPSS Score
0.56885%
Published
5/24/2022
Updated
10/8/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:N/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
octoprintpip< 1.6.01.6.0

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from two key issues: 1) The logging handler managed files without *.log extension validation, and 2) The log listing API endpoint exposed all files in log directories. The release notes explicitly mention adding *.log restrictions in 1.6.0, and the researcher's blog demonstrates exploiting file management to access SSH keys. These functions directly correspond to the described attack vectors (arbitrary file read via log management).

Vulnerable functions

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

WAF Protection Rules

WAF Rule

T** Lo**in* su*syst*m in O*toPrint ***or* *.*.* **s in*orr**t ****ss *ontrol ****us* it *tt*mpts to m*n*** *il*s t**t *r* not `*.lo*` *il*s.

Reasoning

T** vuln*r**ility st*ms *rom two k*y issu*s: *) T** lo**in* **n*l*r m*n**** *il*s wit*out *.lo* *xt*nsion v*li**tion, *n* *) T** lo* listin* *PI *n*point *xpos** *ll *il*s in lo* *ir**tori*s. T** r*l**s* not*s *xpli*itly m*ntion ***in* *.lo* r*stri*t