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:
    verified: "true"
    max-request: 2
    vendor: rancher
    product: rancher
    shodan-query:
      - http.favicon.hash:-1324930554
      - http.favicon.hash:464587962
    fofa-query: icon_hash=464587962
  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: 4b0a00483046022100aca7850beb5c188bf976fcebe235c56881202967dbebb612da07eb7eba1e58f2022100eb5c636156b3d646441a66c348771ae51c6a0a6cd86a7d80914ee980872aa80a:922c64590222798bb761d5b6d8e72950