id: apache-ozone-conf

info:
  name: Apache Ozone - Exposure
  author: icarot
  severity: info
  description: |
    Detects if path /conf of Apache Ozone web application is exposed.
  classification:
    cpe: cpe:2.3:a:apache:ozone:-:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: apache
    product: ozone
    shodan-query: title:"Apache Ozone"
  tags: tech,ozone,apache,detect

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

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '<source>ozone-default.xml</source>'
          - 'ozone'
        condition: and

      - type: word
        part: content_type
        words:
          - 'text/xml'

      - type: status
        status:
          - 200
# digest: 490a00463044022058c8c116d9424afde26bfe5979333f9af4ed02fb60f5777d5749a6c15d8e1f3702203e29f8261a769475b3ef1383a1f5c7fb199891b5bca680b48b4e50b1b448417e:922c64590222798bb761d5b6d8e72950