id: labkey-server-login

info:
  name: LabKey Server Login Panel - Detect
  author: tess
  severity: info
  description: LabKey Server login panel was detected.
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cwe-id: CWE-200
    cpe: cpe:2.3:a:labkey:labkey_server:*:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    product: labkey_server
    shodan-query: 'title:"Sign In: /home"'
    vendor: labkey
    verified: true
  tags: panel,labkey

http:
  - method: GET
    path:
      - '{{BaseURL}}/labkey/home/login-login.view'
      - '{{BaseURL}}/login/home/login.view'

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "TCTU LabKey Server: /home"
          - "Powered by LabKey"
        condition: or

      - type: word
        part: header
        words:
          - "text/html"

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