id: phpcli-stack-trace

info:
  name: PHP CLI Server Stack Trace
  author: DhiyaneshDk
  severity: info
  classification:
    cpe: cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: php
    product: php
    shodan-query: The requested resource <code class="url">
  tags: misconfig,phpcli,intrusive,vuln

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

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - '<code.*>/{{randstr}}.php.* this server.'
          - '404 Not Found'
          - '<h1>Not Found</h1>'
        condition: and

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

      - type: status
        status:
          - 404
# digest: 4b0a00483046022100d19b53467864e471b97e58552acc8b1d1596765001f2b74b9cd447314c1c86c2022100bee784d2ae18f14b30f559b5c2922be08f75cdd4497751d956b067becefec2e9:922c64590222798bb761d5b6d8e72950