id: sogo-detect

info:
  name: SOGo Detect
  author: righettod
  severity: info
  description: This template will detect a running SOGo instance
  reference:
    - https://www.sogo.nu/
  classification:
    cpe: cpe:2.3:a:alinto:sogo:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: alinto
    product: sogo
    shodan-query: http.title:"SOGo"
  tags: sogo,tech

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

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

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'content="SOGo Web Interface"'
          - 'sg-default="SOGo'
        condition: or

      - type: status
        status:
          - 200
# digest: 490a004630440220555e14f5f528d22ea93bc18ed22a00c31c702ac46bf693e33ad509cc65d975000220131cca5ca39f21ff6d33ebf0d78b7aae9580245405550d1b469b83b42d69f42c:922c64590222798bb761d5b6d8e72950