id: kopano-webapp-panel

info:
  name: Kopano WebApp Login Panel - Detect
  author: righettod
  severity: info
  description: Kopano WebApp login panel was detected.
  reference:
    - https://kopano.com/
  classification:
    cpe: cpe:2.3:a:kopano:webapp:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: kopano
    product: webapp
    shodan-query: http.title:"Kopano WebApp"
  tags: panel,kopano,login,detect,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}/webapp/"

    host-redirects: true
    max-redirects: 2
    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_any(body, "<title>Kopano WebApp", "content=\"Kopano WebApp")'
        condition: and

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '\?kv([0-9.]+)"'
# digest: 4b0a00483046022100bb806cd7bb69b3f81016726634099c47ad1330af66aeb86342b09b66ae24a94a022100c075b833c8f2187bc76a3382304360094dc4b5c04a3fe4739b4bcf2b80164637:922c64590222798bb761d5b6d8e72950