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

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: 4a0a00473045022100b077982b9fd33aa1e63dceb1bea55a831fe7283143b8a298a6de82c00ef916c70220619ba34d96c2b1b84c300257bc16de3e94b8a89969d05d5cafdd948c99395f49:922c64590222798bb761d5b6d8e72950