id: apache-pinot-config

info:
  name: Apache Pinot - Exposure
  author: icarot
  severity: medium
  description: |
    Detects if path Appconfigs of Apache Pinot web application is exposed, getting internal information about the configuration made.
  classification:
    cpe: cpe:2.3:a:apache:pinot:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    verified: true
    vendor: apache
    product: pinot
    shodan-query: title:"Apache Pinot"
  tags: config,exposure,pinot,apache

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

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"systemConfig"'
          - '"pinotConfig"'
          - '"jvmConfig"'
        condition: and

      - type: word
        part: header
        words:
          - 'application/json'

      - type: status
        status:
          - 200
# digest: 4a0a004730450221009e8b9bc11a9ba964bd64ee0f6b978fbe1237a2f8f656821be854581b283f8b40022070a1833e274e1d8b30584d13573ea596c3ffe02552f231e0b57ffa77aaca4e09:922c64590222798bb761d5b6d8e72950