id: phpstan-config

info:
  name: PHPStan Configuration Page - Detect
  author: DhiyaneshDK
  severity: info
  description: PHPStan configuration page was detected.
  reference: https://phpstan.org/
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cvss-score: 0
    cwe-id: CWE-200
  metadata:
    verified: true
    max-request: 1
    shodan-query: html:"phpstan.neon"
  tags: devops,exposure

http:
  - method: GET
    path:
      - "{{BaseURL}}/phpstan.neon"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - 'parameters:'

      - type: word
        part: header
        words:
          - "text/html"
          - "application/javascript"
        negative: true

      - type: status
        status:
          - 200

# digest: 490a004630440220441934031397cf2ed74a0c018c45754d01819b225a10e27ee9ed1264846039bf022076187e594d0d9b487e26d5c2fccceb2a48cdf92ea50b129ddc353470bf5958cc:922c64590222798bb761d5b6d8e72950
