CVE-2020-27387
Horizontcms Project Horizontcms vulnerability
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.
Affected products
Horizontcms. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Horizontcms Project Horizontcms runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- blog.vonahi.io/whats-in-a-re-name/ · Exploit
- github.com/ttimot24/HorizontCMS/commit/436b5ab679fd27afa3d99c023dbe103113da4fee · Patch
- packetstormsecurity.com/files/160046/HorizontCMS-1.0.0-beta-Shell-Upload.html · Exploit
- github.com/rapid7/metasploit-framework/pull/14340 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2020-27387
- cve.org/CVERecord?id=CVE-2020-27387
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.