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:
    verified: true
    max-request: 2
    vendor: labkey
    product: labkey_server
    shodan-query:
      - 'title:"Sign In: /home"'
      - 'http.title:"sign in: /home"'
      - "server: labkey"
    fofa-query: 'title="sign in: /home"'
    google-query: 'intitle:"sign in: /home"'
  tags: panel,labkey,discovery

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