id: config-properties

info:
  name: Config Properties Exposure
  author: j4vaovo,DhiyaneshDK
  severity: high
  description: Config Properties were exposed.
  reference:
    - https://twitter.com/win3zz/status/1657624974851702784/photo/1
  metadata:
    verified: true
    max-request: 3
  tags: exposure,config,properties,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/config.properties"
      - "{{BaseURL}}/config.properties.bak"
      - "{{BaseURL}}/ui_config.properties"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - 'jdbc:[a-z:]+://[A-Za-z0-9\.\-_:;=/@?,&]+'
          - '((?i)password|pwd|pass|secretkey)='
        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: 4a0a00473045022050524f41c5e193c893e497d8460048d2ae680cc65320d9cdef4af34519401190022100bce716f788e7c23015816723413394d2e0e27073e1d6c77f0d59b7f7814387de:922c64590222798bb761d5b6d8e72950