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

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: 490a0046304402201779243e94998c66f39a69469f3f3f0b1f0b2b19f9db88e557949d9943c4f4a602201955e6404a7c7403fa560903168f06ed1f605bb0b1a73a90a59721270b4bdcd3:922c64590222798bb761d5b6d8e72950