Arbitrary file upload in Horizontcms Project
CVE-2020-27387
An unrestricted file upload issue in HorizontCMS through 1.0.0-beta allows an authenticated remote attacker (with access to the FileManager) to upload and execute arbitrary PHP code by uploading a PHP payload, and then using the FileManager's rename function to provide the payload (which will receive a random name on the server) with the PHP extension, and finally executing the PHP file via an HTTP GET request to /storage/<php_file_name>. NOTE: the vendor has patched this while leaving the version number at 1.0.0-beta.
Vulnerability class: Unrestricted File Upload
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.185, 97.3th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Horizontcms Project — versions 1.0.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Metasploit modules
Also mentioned in 2 other repositories (ARPSyndicate/cvemon, Live-Hack-CVE/CVE-2020-27387). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/rapid7/metasploit-framework/pull/14340 (Third Party Advisory)
- github.com/ttimot24/HorizontCMS/commit/436b5ab679fd27afa3d99c023dbe103113da4fee (Patch, Third Party Advisory)
- blog.vonahi.io/whats-in-a-re-name/ (Exploit, Patch, Third Party Advisory)
- packetstormsecurity.com/files/160046/HorizontCMS-1.0.0-beta-Shell-Upload.html (Exploit, VDB Entry, Third Party Advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.