id: ranger-detection

info:
  name: Apache Ranger Detection
  author: For3stCo1d
  severity: info
  reference:
    - https://github.com/apache/ranger
  classification:
    cpe: cpe:2.3:a:apache:ranger:*:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    vendor: apache
    product: ranger
    shodan-query: http.title:"Ranger - Sign In"
  tags: tech,apache,ranger,discovery

http:
  - method: GET
    path:
      - '{{BaseURL}}/login.jsp'
      - "{{BaseURL}}/images/favicon.ico"

    stop-at-first-match: true

    matchers-condition: or
    matchers:
      - type: word
        part: body
        words:
          - "<title> Ranger - Sign In</title>"

      - type: dsl
        name: favicon
        dsl:
          - "status_code==200 && ('1302629996' == mmh3(base64_py(body)))"
# digest: 490a00463044022065c40b0822e16394c6916db9f9fdca99f71e5a4e6c365f5d3890d6de8837f45c022017c45e7c1ab267db919d7fef286d684aec65101e28abe3387365baa74f30a2d8:922c64590222798bb761d5b6d8e72950