Rapid7 VulnDB

ElasticSearch Dynamic Script Arbitrary Java Execution

Back to Search

ElasticSearch Dynamic Script Arbitrary Java Execution

Disclosed
12/09/2013
Created
05/30/2018

Description

This module exploits a remote command execution (RCE) vulnerability in ElasticSearch, exploitable by default on ElasticSearch prior to 1.2.0. The bug is found in the REST API, which does not require authentication, where the search function allows dynamic scripts execution. It can be used for remote attackers to execute arbitrary Java code. This module has been tested successfully on ElasticSearch 1.1.1 on Ubuntu Server 12.04 and Windows XP SP3.

Author(s)

  • Alex Brasetvik
  • Bouke van der Bijl
  • juan vazquez <juan.vazquez@metasploit.com>

Platform

Java

Architectures

java

Development

References

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/multi/elasticsearch/script_mvel_rce
msf exploit(script_mvel_rce) > show targets
    ...targets...
msf exploit(script_mvel_rce) > set TARGET < target-id >
msf exploit(script_mvel_rce) > show options
    ...show and set options...
msf exploit(script_mvel_rce) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;