id: collibra-properties

info:
  name: Collibra Properties Exposure
  author: 0xPugazh
  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: 4a0a00473045022100aabe7605269656cd0e3e1dd02648f738d66a3f5f94de735a4188151bfcfd128d02200f6dfc0a20b0a04690c6b2d23780c5b9fceae13a25bf37ef8a7d46ee3c87c358:922c64590222798bb761d5b6d8e72950