id: laragon-phpinfo

info:
  name: Laragon - phpinfo Disclosure
  author: DhiyaneshDk
  severity: low
  description: |
    Laragon phpinfo file was exposed.
  metadata:
    verified: true
    max-request: 1
    shodan-query: html:"Laragon" html:"phpinfo"
  tags: laragon,exposure,misconfig,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/?q=info"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "PHP Extension"
          - "PHP Version"
        condition: and

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        group: 1
        regex:
          - '>PHP Version <\/td><td class="v">([0-9.]+)'
        part: body
# digest: 4a0a00473045022100c608d80507b4f192f82e5e9f68bd416193f79e8ae4f8fd7cd54b2f9e0e04487e02202895d47ef6fd03d48fa89d9b042cac55ad814e4ffd7b34b97f7a5033f93dd94b:922c64590222798bb761d5b6d8e72950