Miggo Logo

CVE-2020-13675: Unrestricted Upload of File with Dangerous Type in Drupal core

9.8

CVSS Score
3.1

Basic Information

EPSS Score
0.48513%
Published
2/12/2022
Updated
2/3/2023
KEV Status
No
Technology
TechnologyPHP

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
drupal/corecomposer>= 9.1.0, < 9.1.139.1.13
drupal/corecomposer>= 9.2.0, < 9.2.69.2.6
drupal/corecomposer>= 8.0.0, < 8.9.198.9.19

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from incomplete file validation in HTTP API handlers. Both REST/File and JSON:API modules contain file upload entry points (POST handlers) that were missing proper validation chaining. These methods are directly responsible for processing upload requests but failed to integrate with Drupal's full file validation stack, allowing dangerous files to bypass security checks. The high confidence comes from: 1) The vulnerability description specifically implicates these two modules' HTTP APIs 2) File upload resources in REST/JSON:API would logically be implemented through POST handler methods 3) The CWE mapping (CWE-434) directly correlates with file upload handling functions.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

*rup*l's JSON:*PI *n* R*ST/*il* mo*ul*s *llow *il* uplo**s t*rou** t**ir *TTP *PIs. T** mo*ul*s *o not *orr**tly run *ll *il* v*li**tion, w*i** **us*s *n ****ss *yp*ss vuln*r**ility. *n *tt**k*r mi**t ** **l* to uplo** *il*s t**t *yp*ss t** *il* v*li

Reasoning

T** vuln*r**ility st*ms *rom in*ompl*t* *il* v*li**tion in *TTP *PI **n*l*rs. *ot* R*ST/*il* *n* JSON:*PI mo*ul*s *ont*in *il* uplo** *ntry points (POST **n*l*rs) t**t w*r* missin* prop*r v*li**tion ***inin*. T**s* m*t*o*s *r* *ir**tly r*sponsi*l* *o