id: pghero-dashboard-exposure

info:
  name: PgHero Dashboard Exposure Panel - Detect
  author: DhiyaneshDk
  severity: medium
  description: PgHero Dashboard Exposure panel was detected.
  reference:
    - https://github.com/ankane/pghero
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cwe-id: CWE-200
    cpe: cpe:2.3:a:pghero_project:pghero:*:*:*:*:ruby:*:*:*
  metadata:
    verified: true
    max-request: 1
    shodan-query: title:"PgHero"
    product: pghero
    vendor: pghero_project
  tags: exposure,panel,pghero,misconfig

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

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "<title>PgHero / Connections</title>"

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