Description
The default configuration in Elasticsearch before 1.2 enables dynamic scripting, which allows remote attackers to execute arbitrary MVEL expressions and Java code via the source parameter to _search. NOTE: this only violates the vendor's intended security policy if the user does not run Elasticsearch in its own independent virtual machine.
Remediation
References
http://bouk.co/blog/elasticsearch-rce/
http://www.exploit-db.com/exploits/33370
https://www.found.no/foundation/elasticsearch-security/#staying-safe-while-developing-with-elasticsearch
http://www.osvdb.org/106949
http://www.securityfocus.com/bid/67731
http://www.rapid7.com/db/modules/exploit/multi/elasticsearch/script_mvel_rce
https://www.elastic.co/blog/logstash-1-4-3-released
https://www.elastic.co/community/security/