id: pgadmin-exposure

info:
  name: PostgreSQL pgAdmin Dashboard Panel - Detect
  author: princechaddha
  severity: info
  description: PostgreSQL pgAdmin Dashboard panel was detected.
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cwe-id: CWE-200
  metadata:
    max-request: 1
  tags: unauth,pgadmin,postgres,panel

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

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: word
        words:
          - "PGADMIN_LANGUAGE="
        part: header

      - type: word
        words:
          - "<title>pgAdmin"
        part: body
# digest: 4a0a00473045022053a8ea7310e8702d0af0df6e44c4324f8f61ea319389dc070080477c4ba78bad022100bf99a9d261f34670d8c3d194ad75009c6ffba7ca0e5fa18596816318a5066990:922c64590222798bb761d5b6d8e72950