{"uuid": "a55025b8-dcbe-4391-80ba-0c5de103d1f4", "vulnerability_lookup_origin": "1a89b78e-f703-45f3-bb86-59eb712668bd", "author": "9f56dd64-161d-43a6-b9c3-555944290a09", "vulnerability": "CVE-2020-27387", "type": "seen", "source": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/horizontcms_upload_exec.rb", "content": "{\"aliases\": [], \"arch\": \"php, x86, x64\", \"author\": [\"Erik Wynter\"], \"autofilter_ports\": [80, 8080, 443, 8000, 8888, 8880, 8008, 3000, 8443], \"autofilter_services\": [\"http\", \"https\"], \"check\": true, \"default_credential\": false, \"description\": \"This module exploits an arbitrary file upload vulnerability in\\n          HorizontCMS 1.0.0-beta in order to execute arbitrary commands.\\n\\n          The module first attempts to authenticate to HorizontCMS. It then tries\\n          to upload a malicious PHP file via an HTTP POST request to\\n          `/admin/file-manager/fileupload`. The server will rename this file to a\\n          random string. The module will therefore attempt to change the filename\\n          back to the original name via an HTTP POST request to\\n          `/admin/file-manager/rename`. For the `php` target, the payload is\\n          embedded in the uploaded file and the module attempts to execute the\\n          payload via an HTTP GET request to `/storage/file_name`. For the `linux`\\n          and `windows` targets, the module uploads a simple PHP web shell\\n          similar to ``. Subsequently, it leverages\\n          the CmdStager mixin to deliver the final payload via a series of HTTP\\n          GET requests to the PHP web shell.\\n\\n          Valid credentials for a HorizontCMS user with permissions to use the\\n          FileManager are required. This would be all users in the Admin, Manager\\n          and Editor groups if HorizontCMS is configured with the default group\\n          settings.This module has been successfully tested against HorizontCMS\\n          1.0.0-beta running on Ubuntu 18.04.\", \"disclosure_date\": \"2020-09-24\", \"fullname\": \"exploit/multi/http/horizontcms_upload_exec\", \"is_install_path\": true, \"mod_time\": \"2025-12-17 16:12:31 +0000\", \"name\": \"HorizontCMS Arbitrary PHP File Upload\", \"needs_cleanup\": null, \"notes\": {\"Reliability\": [\"repeatable-session\"], \"SideEffects\": [\"artifacts-on-disk\", \"ioc-in-logs\"], \"Stability\": [\"crash-safe\"]}, \"path\": \"/modules/exploits/multi/http/horizontcms_upload_exec.rb\", \"platform\": \"Linux,PHP,Windows\", \"post_auth\": true, \"rank\": 600, \"ref_name\": \"multi/http/horizontcms_upload_exec\", \"references\": [\"CVE-2020-27387\"], \"rport\": 80, \"session_types\": false, \"targets\": [\"PHP\", \"Linux\", \"Windows\"], \"type\": \"exploit\"}", "creation_timestamp": "2026-09-08T06:49:50.034908Z"}