id: dbeaver-database-connections

info:
  name: DBeaver Database Connections - Detect
  author: geeknik
  severity: info
  description: DBeaver database connections were detected.
  reference:
    - https://dbeaver.com/docs/wiki/Admin-Manage-Connections/
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cvss-score: 0
    cwe-id: CWE-200
  metadata:
    verified: true
    max-request: 1
  tags: dbeaver,files,exposure

http:
  - method: GET
    path:
      - "{{BaseURL}}/.dbeaver/data-sources.json"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - '"folders": {'
          - '"connection-types": {'
          - '"connections": {'
        condition: and

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