Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix loadmaster privesc check method and refs #19810

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ def initialize(info = {})
'License' => MSF_LICENSE,
'References' => [
['URL', 'https://rhinosecuritylabs.com/research/cve-2024-1212unauthenticated-command-injection-in-progress-kemp-loadmaster/'],
['URL', 'https://kemptechnologies.com/kemp-load-balancers']
['URL', 'https://kemptechnologies.com/kemp-load-balancers'],
['CVE', '2024-1212']
],
'DisclosureDate' => '2024-03-19',
'Notes' => {
Expand Down Expand Up @@ -84,13 +85,12 @@ def initialize(info = {})

def check
score = 0
score += 1 if read_file('/usr/wui/index.js').include?('KEMP')
score += 1 if read_file('/etc/motd').include?('Kemp LoadMaster')
score += 1 if exists?('/usr/wui/eula.kemp.html')
vprint_status("Found #{score} indicators this is a KEMP product")
return CheckCode::Detected if score > 0
score += 1 if file?('/usr/wui/index.js') && read_file('/usr/wui/index.js').include?('KEMP')
score += 1 if file?('/etc/motd') && read_file('/etc/motd').include?('Kemp LoadMaster')
score += 1 if file?('/usr/wui/eula.kemp.html')
return CheckCode::Detected("Found #{score} indicators this is a KEMP product") if score > 0

return CheckCode::Safe
CheckCode::Safe("Found #{score} indicators this is a KEMP product")
end

def verify_copy(src, dest, elevate)
Expand Down
Loading