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
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: 4b0a004830460221008952e8cfbd98bee2fa59cd91a8b06335a5707e5699be50e3768c60c915c7b93702210080d836cf1dd733b32a7b4ff10193beb8d0d5cad2cb56d0273ecd71fb723d0f56:922c64590222798bb761d5b6d8e72950