id: rundeck-login

info:
  name: Rundeck Login Panel - Detect
  author: DhiyaneshDk, daffainfo
  severity: info
  description: Rundeck 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:pagerduty:rundeck:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    shodan-query: title:"Rundeck"
    product: rundeck
    vendor: pagerduty
  tags: panel,rundeck

http:
  - method: GET
    path:
      - '{{BaseURL}}/user/login'

    host-redirects: true
    max-redirects: 2

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'alt="Rundeck"'
          - '/assets/rundeck' ## For old rundeck
        condition: or

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - 'utm_medium=([0-9.]+)-'
          - 'data-version-string=\"([0-9.-]+)\"' ## Detection version on old rundeck
          - '<span class="version">([0-9.-]+)<\/span>' ## Detection on very old rudneck
# digest: 4a0a0047304502205db6317940495bb44911f78d1a459668267640f6b67bb5efb6ba9fee202143af022100c1904026f18790afb9e637bdeb987439d8571a45c27c6491effbd298b8a4fc07:922c64590222798bb761d5b6d8e72950