id: opentext-contentserver-panel

info:
  name: OpenText Content Server Login Panel - Detect
  author: righettod
  severity: info
  description: |
    OpenText Content Server products was detected.
  reference:
    - https://www.opentext.com/products/document-management
  metadata:
    max-request: 1
    verified: true
    shodan-query: http.title:"Content Server"
  tags: panel,opentext,login

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

    host-redirects: true
    max-redirects: 4
    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_any(to_lower(body), "opentext content server", "opentext content suite")'
        condition: and

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '(?i)login\.js\?v=([0-9.]+)'
          - '(?i)OpenText\s+Content\s+Server\s+version\s+([0-9.]+)'
# digest: 4b0a004830460221008dfdbea68bae33c8d125fd01da604f182c529d94dc557552d6ce0d12b1d664ee022100a09daccb6f15d93bca52b977382802026d1d52d64f4c7e892d5a3d450ff35907:922c64590222798bb761d5b6d8e72950