id: rancher-dashboard

info:
  name: Rancher Dashboard Panel - Detect
  author: ritikchaddha,righettod
  severity: info
  description: Rancher Dashboard was detected.
  reference:
    - https://rancher.com/
  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:rancher:rancher:*:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    product: rancher
    shodan-query: http.favicon.hash:-1324930554
    vendor: rancher
    verified: "true"
  tags: panel,rancher,dashboard,login

http:
  - method: GET
    path:
      - "{{BaseURL}}"
      - "{{BaseURL}}/dashboard/auth/login"

    stop-at-first-match: true
    host-redirects: true
    max-redirects: 2

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'content="Rancher Dashboard'
          - 'rancherEnv:'
          - '<title>Rancher'
        condition: or

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