id: node-ecstatic-listing

info:
  name: Node ecstatic Directory Listing
  author: DhiyaneshDK
  severity: low
  description: Directiory listing enabled in Node ecstatic.
  reference:
    - https://tripla.dk/2020/03/26/multiple-vulnerabilities-in-nodejs-ecstatic-http-server-http-party/
  metadata:
    verified: true
    shodan-query: 'server: "ecstatic"'
    max-request: 1
  tags: node,js,listing,ecstatic

http:
  - method: GET
    path:
      - "{{BaseURL}}/img/"
    headers:
      Range: 10000

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<title>Index of /img/</title>"

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100a033b0038b6268d1d87ae9df207cafe17b04f84ded3410716a9c02e5c894ed9502202bfdb2aae869f46d5b080d7a5e32c1397ca639aa06f1394234723a2db9d016ea:922c64590222798bb761d5b6d8e72950