id: onlyoffice-login-panel

info:
  name: ONLYOFFICE Login Panel - Detect
  author: eremit4
  severity: info
  description: |
    ONLYOFFICE Community Server is a free open-source collaborative system developed to manage documents, projects, customer relationship and email correspondence.
  classification:
    cpe: cpe:2.3:a:onlyoffice:onlyoffice:*:*:*:*:*:*:*:*
  metadata:
    fofa-query: app="ONLYOFFICE" && (icon_hash="1928933157" || icon_hash="826083956" || icon_hash="-1380930248" || icon_hash="-285544629" || icon_hash="812741391")
    max-request: 2
    product: onlyoffice
    vendor: onlyoffice
    verified: true
  tags: panel,onlyoffice,detect

http:
  - method: GET
    path:
      - "{{BaseURL}}"
      - "{{BaseURL}}/auth.aspx"

    stop-at-first-match: true
    host-redirects: true
    max-redirects: 2
    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'ONLYOFFICE'
          - 'title="ONLYOFFICE'
          - 'content="ONLYOFFICE'
          - '/images/onlyoffice_logo/'
          - 'alt="ONLYOFFICE'
        condition: or

      - type: status
        status:
          - 200
# digest: 4a0a004730450221009ba9e5a1dddcf8118ea7f7e7e63d32d60ded6563ce79741e94d86c5c1070fa24022062a3e1ead8b0fc0e35885f05cb06e2b1b68afb1fab07104bf834d4a68daeada0:922c64590222798bb761d5b6d8e72950