CVE-2021-36440: Unrestricted File Upload in ShowDoc v2.9.5
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.96952%
CWE
Published
9/9/2021
Updated
2/1/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
showdoc/showdoc | composer | < 2.9.6 | 2.9.6 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the download()
function in AdminUpdateController.class.php
. The pre-patch version lacked authentication checks (added in commit 49b992d), allowing unauthenticated users to trigger remote file downloads via the 'file_url' parameter. The function then writes the file to disk and extracts its contents without proper validation of the file type/source. This matches CWE-434 (Unrestricted Upload) and aligns with the PoC demonstrating exploitation via a malicious ZIP payload. The patch added authentication guards, confirming this was the attack vector.