id: openemr-detect

info:
  name: OpenEMR Product Registration Panel - Detect
  author: pussycat0x
  severity: info
  description: OpenEMR Product Registration panel was detected.
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cwe-id: CWE-200
    cpe: cpe:2.3:a:open-emr:openemr:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: open-emr
    product: openemr
    shodan-query:
      - http.html:"OpenEMR"
      - http.html:"openemr"
      - http.title:"openemr"
      - http.favicon.hash:1971268439
    fofa-query:
      - app="OpenEMR"
      - body="openemr"
      - title="openemr"
      - app="openemr"
      - icon_hash=1971268439
    google-query: intitle:"openemr"
  tags: panel,openemr,open-emr,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}/interface/login/login.php?site=default"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"title":"OpenEMR Product Registration"'

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100ab10f07a41620db3b0f490610b151dbc53c1f9b38519f653ec89f03270977e06022051be2b7c3bb856b2e948eb7f41d478c0700c0b601fa9d2409b0fe259be69dcbf:922c64590222798bb761d5b6d8e72950