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