id: zimbra-detect

info:
  name: Zimbra Detect
  author: UdinChan
  severity: info
  description: Send a GET request to js file on Zimbra server to obtain version information
  metadata:
    max-request: 1
  tags: tech,zimbra

http:
  - method: GET
    path:
      - "{{BaseURL}}/js/zimbraMail/share/model/ZmSettings.js"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "Zimbra Collaboration Suite Web Client"

      - type: word
        part: header
        words:
          - "application/x-javascript"

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - 'CLIENT_VERSION\",					{type:ZmSetting.T_CONFIG, defaultValue:\"(.*?)"'

# digest: 4a0a0047304502204026455a1afa6c8cc2aad9dc1c537b32defa2c862bb1ecf8f649687ee3327a6402210098f6238234aec256f0808f4e94902079d9f3da5518614200d5bd2c28c34fd1c4:922c64590222798bb761d5b6d8e72950
