{"uuid": "f492e763-401b-4f34-ab13-eeb3995ff5f8", "vulnerability_lookup_origin": "1a89b78e-f703-45f3-bb86-59eb712668bd", "author": "9f56dd64-161d-43a6-b9c3-555944290a09", "vulnerability": "CVE-2022-46169", "type": "seen", "source": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/cacti_unauthenticated_cmd_injection.rb", "content": "{\"aliases\": [], \"arch\": \"cmd, x86, x64\", \"author\": [\"Stefan Schiller\", \"Steven Seeley\", \"Owen Gong\", \"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 unauthenticated command injection\\n          vulnerability in Cacti through 1.2.22 (CVE-2022-46169) in\\n          order to achieve unauthenticated remote code execution as the\\n          www-data user.\\n\\n          The module first attempts to obtain the Cacti version to see\\n          if the target is affected. If LOCAL_DATA_ID and/or HOST_ID\\n          are not set, the module will try to bruteforce the missing\\n          value(s). If a valid combination is found, the module will\\n          use these to attempt exploitation. If LOCAL_DATA_ID and/or\\n          HOST_ID are both set, the module will immediately attempt\\n          exploitation.\\n\\n          During exploitation, the module sends a GET request to\\n          /remote_agent.php with the action parameter set to polldata\\n          and the X-Forwarded-For header set to the provided value for\\n          X_FORWARDED_FOR_IP (by default 127.0.0.1). In addition, the\\n          poller_id parameter is set to the payload and the host_id\\n          and local_data_id parameters are set to the bruteforced or\\n          provided values. If X_FORWARDED_FOR_IP is set to an address\\n          that is resolvable to a hostname in the poller table, and the\\n          local_data_id and host_id values are vulnerable, the payload\\n          set for poller_id will be executed by the target.\\n\\n          This module has been successfully tested against Cacti\\n          version 1.2.22 running on Ubuntu 21.10 (vulhub docker image)\", \"disclosure_date\": \"2022-12-05\", \"fullname\": \"exploit/linux/http/cacti_unauthenticated_cmd_injection\", \"is_install_path\": true, \"mod_time\": \"2026-02-09 15:17:23 +0000\", \"name\": \"Cacti 1.2.22 unauthenticated command injection\", \"needs_cleanup\": null, \"notes\": {\"Reliability\": [\"repeatable-session\"], \"SideEffects\": [\"artifacts-on-disk\", \"ioc-in-logs\"], \"Stability\": [\"crash-safe\"]}, \"path\": \"/modules/exploits/linux/http/cacti_unauthenticated_cmd_injection.rb\", \"platform\": \"Linux,Unix\", \"post_auth\": false, \"rank\": 600, \"ref_name\": \"linux/http/cacti_unauthenticated_cmd_injection\", \"references\": [\"CVE-2022-46169\", \"GHSA-6p93-p743-35gf\", \"URL-https://github.com/vulhub/vulhub/tree/master/cacti/CVE-2022-46169\", \"URL-https://www.sonarsource.com/blog/cacti-unauthenticated-remote-code-execution\"], \"rport\": 8080, \"session_types\": false, \"targets\": [\"Automatic (Unix In-Memory)\", \"Automatic (Linux Dropper)\"], \"type\": \"exploit\"}", "creation_timestamp": "2026-09-08T06:48:25.252907Z"}