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

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