id: node-ecstatic-internal-path

info:
  name: Node ecstatic Internal Path - Exposure
  author: DhiyaneshDK
  severity: low
  description: Internal path exposure in Node ecstatic.
  reference:
    - https://tripla.dk/2020/03/26/multiple-vulnerabilities-in-nodejs-ecstatic-http-server-http-party/
  metadata:
    verified: true
    max-request: 1
    shodan-query: 'server: "ecstatic"'
  tags: node,js,exposure,ecstatic,vuln
variables:
  payload: '{{repeat("A", 1000)}}'

http:
  - method: GET
    path:
      - "{{BaseURL}}/{{payload}}"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'ENAMETOOLONG'
          - 'stat'
        condition: and

      - type: status
        status:
          - 500
# digest: 490a0046304402203667aabeb502925ff8519d61f6a5e7517efb1a88e86354e5cf66301f25629edc022050c38282012595cb3ce1a3e9944442b32697330171508a27ebeb56aa2218e1b2:922c64590222798bb761d5b6d8e72950