id: rancher-panel

info:
  name: Rancher Login Panel - Detect
  author: princechaddha,idealphase,ritikchaddha
  severity: info
  description: Rancher login panel was detected.
  reference:
    - https://github.com/rancher/rancher
    - 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:suse:rancher:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: suse
    product: rancher
    shodan-query: http.favicon.hash:464587962
    fofa-query: icon_hash=464587962
  tags: panel,rancher,kubernetes,devops,cloud,login,suse

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

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<title>Loading"
          - "ember-basic-dropdown-wormhole"
        condition: and

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '<!\-\- ([0-9. ]+)\-\->'
# digest: 4b0a00483046022100b603ec14eb626a55b579e224d8cf553e8a34b5153f93832f3a0d443697910f700221008f0795cd0e499a0a35a9321a31b916b6a936b29e44688bdadd989673781bcaff:922c64590222798bb761d5b6d8e72950