id: iclock-admin-panel

info:
  name: iClock Automatic Data Master Server Admin Panel - Detect
  author: deFr0ggy
  severity: info
  description: An iClock Automatic Data Master Server Admin login panel was detected.
  classification:
    cwe-id: CWE-200
  metadata:
    verified: true
    max-request: 2
    shodan-query: html:"iClock Automatic"
  tags: panel,iclock,login,admin

http:
  - method: GET
    path:
      - '{{BaseURL}}/iclock/accounts/login/'
      - '{{BaseURL}}/iclock/accounts/login/?next=/iclock/data/iclock/'

    stop-at-first-match: true
    host-redirects: true
    max-redirects: 2

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"site-name">iClock Automatic Data Master Server'
          - '<title> | Django site admin</title>'
        condition: or

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '<span style="float:right">\(v([0-9.-]+)\)</span>'
# digest: 4b0a00483046022100ede0cf54ae28acacefed971b18247cb8c0fa6adf171ff80c7cecbbac01cfc7c8022100f18f45fd54cb85ba8f3a1c159f64c7801828279cf9a2861f5eaaff5f9723f94a:922c64590222798bb761d5b6d8e72950