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

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