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,discovery

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: 490a004630440220709bab076a55a1fd4a23a857af2718c69a947359e751773882891b4c5d246d09022064a012562edae1aafb61e769bf79dee23558792e8f7b4a8f5d6a52fff4d61067:922c64590222798bb761d5b6d8e72950