id: openemr-setup-installer

info:
  name: OpenEMR Setup Installation Page - Exposure
  author: DhiyaneshDK
  severity: high
  description: |
    Detects exposed OpenEMR setup installation pages which could allow unauthorized access or information disclosure.
  reference:
    - https://www.open-emr.org/
  classification:
    cpe: cpe:2.3:a:open-emr:openemr:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: open-emr
    product: openemr
    shodan-query: title:"OpenEMR Setup Tool"
  tags: misconfig,install,exposure,openemr

http:
  - method: GET
    path:
      - "{{BaseURL}}/setup.php"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<title>OpenEMR Setup Tool</title>"

      - type: status
        status:
          - 200
# digest: 490a00463044022008e1d7a18719e625a85146252bdb17ea75e5ac051e365fcdea997463879a8eef02202b7175d1d4404e41d7f269f43f5dbdb37f06da4e0afd43c987be1edac50853df:922c64590222798bb761d5b6d8e72950