id: collibra-properties

info:
  name: Collibra Properties Exposure
  author: 0xPugal
  severity: high
  description: Detected exposed Collibra Properties.
  reference:
    - https://twitter.com/shaybt12/status/1662431219223605254
  metadata:
    verified: true
    max-request: 3
  tags: exposure,config,collibra-properties,collibra

http:
  - method: GET
    path:
      - "{{BaseURL}}/collibra.properties"
      - "{{BaseURL}}/app/collibra.properties"
      - "{{BaseURL}}/src/collibra.properties"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'collibra.url'
          - 'collibra.port'
          - 'collibra.user'
          - 'collibra.password'
        condition: or

      - type: word
        part: header
        words:
          - "text/plain"
          - "bytes"
        condition: or

      - type: word
        part: header
        words:
          - "text/html"
        negative: true

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