id: express-stack-trace

info:
  name: Express Stack Trace
  author: DhiyaneshDk
  severity: low
  description: Express Stack trace is exposed.
  metadata:
    verified: true
    max-request: 1
    shodan-query: html:"Welcome to Express"
  tags: misconfig,express,intrusive

http:
  - method: GET
    path:
      - '{{BaseURL}}/{{randstr}}'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "NotFoundError: Not Found"
          - "at Function.handle"
        condition: and

      - type: word
        part: header
        words:
          - "text/html"

      - type: status
        status:
          - 404
# digest: 490a00463044022005e81933912764848b2e40a15f45fddbecc36009b2cbd552bd4570c4a69f1473022071893137eaca2777db6f246d472492eb55f05038faf86dc15b1587e8bdfdb3f7:922c64590222798bb761d5b6d8e72950