Rapid7 Vulnerability & Exploit Database

Apache Spark Unauthenticated Command Execution

Back to Search

Apache Spark Unauthenticated Command Execution

Disclosed
12/12/2017
Created
03/19/2019

Description

This module exploits an unauthenticated command execution vulnerability in Apache Spark with standalone cluster mode through REST API. It uses the function CreateSubmissionRequest to submit a malious java class and trigger it.

Author(s)

  • Fengwei Zhang
  • Imran Rashid
  • aRe00t
  • Green-m <greenm.xxoo@gmail.com>

Platform

Java

Architectures

java

Development

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/linux/http/spark_unauth_rce
msf exploit(spark_unauth_rce) > show targets
    ...targets...
msf exploit(spark_unauth_rce) > set TARGET < target-id >
msf exploit(spark_unauth_rce) > show options
    ...show and set options...
msf exploit(spark_unauth_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

;