id: harbor-panel

info:
  name: Harbor Login Panel - Detect
  author: daffainfo
  severity: info
  description: Harbor login panel was detected.
  reference:
    - https://github.com/goharbor/harbor
  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:linuxfoundation:harbor:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    product: harbor
    shodan-query: http.favicon.hash:657337228
    vendor: linuxfoundation
    verified: true
  tags: panel,harbor,linuxfoundation

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

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<title>Harbor</title>"
          - "<harbor-app>"
        condition: and

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