id: checkmk-login

info:
  name: Checkmk Login Panel - Detect
  author: princechaddha
  severity: info
  description: Checkmk login 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:tribe29:checkmk:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    product: checkmk
    vendor: tribe29
  tags: login,tech,synology,rackstation,panel,tribe29

http:
  - method: GET
    path:
      - "{{BaseURL}}/check_mk/login.py"

    matchers-condition: or
    matchers:
      - type: word
        part: body
        words:
          - '<title>Check_MK Multisite Login</title>'

      - type: regex
        part: body
        regex:
          - '<title>Checkmk ([A-Za-z_0-9 ]+)<\/title>'

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '<div id="version">([0-9.a-z]+)<\/div>'
          - '<div id="foot">Version: ([0-9.a-z]+)'
# digest: 4a0a00473045022100c05097a066ea3ac7388836e614a90ffedf62317936eb547238190ff82cfd3eb002204baefd146e350a8551aa70d283be7f7aadb163d0a2638cc443aff536d8327293:922c64590222798bb761d5b6d8e72950