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:
    max-request: 2
    shodan-query: html:"iClock Automatic"
    verified: true
  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: 4b0a00483046022100d1b1a5ead4abcb0c21ecd1e09fa99ef102f7b2d4b804c7e1bb7baa22aeff9cf3022100acb12a9010d272e08215657ca09d343fdf9f6615fa715eaf98eced91da4918fd:922c64590222798bb761d5b6d8e72950