id: jaeger-ui-dashboard

info:
  name: Jaeger UI
  author: dhiyaneshDK,righettod
  severity: low
  description: Jaeger UI dashboard is exposed.
  reference:
    - https://www.jaegertracing.io/
  classification:
    cpe: cpe:2.3:a:jaegertracing:jaeger_ui:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: jaegertracing
    product: jaeger_ui
    shodan-query: http.title:"Jaeger UI"
  tags: misconfig,discovery

http:
  - method: GET
    path:
      - '{{BaseURL}}/search'
      - '{{BaseURL}}/api/services'

    stop-at-first-match: true
    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_any(to_lower(body), "<title>jaeger ui", "jaeger_version", "jaeger_config_js", "jaeger-ui-root", "jaeger-query")'
        condition: and

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '(?i)"gitVersion":\s*"([a-z0-9.]+)"'
# digest: 4b0a00483046022100e00c27937df26cbd075e390d01073d8ba2b3eb50aa9c5ee8cd2b3c2827bcea20022100d7a0c9514006277f7a59c37b8e4118ce10b1df28132bf44ab4ee9b51aa9385f3:922c64590222798bb761d5b6d8e72950