id: phppgadmin-panel

info:
  name: phpPgAdmin Login Panel - Detect
  author: Ganofins,Nullfuzz
  severity: info
  description: |
    phpPgAdmin login ipanel was detected.
  reference:
    - https://docs.cpanel.net/cpanel/databases/phppgadmin/
  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
    cpe: cpe:2.3:a:phppgadmin_project:phppgadmin:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: phppgadmin_project
    product: phppgadmin
    shodan-query:
      - http.title:phpPgAdmin
      - http.title:phppgadmin
      - cpe:"cpe:2.3:a:phppgadmin_project:phppgadmin"
    fofa-query: title=phppgadmin
    google-query: intitle:phppgadmin
  tags: panel,phppgadmin,phppgadmin_project

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

    matchers-condition: or
    matchers:
      - type: dsl
        dsl:
          - "status_code == 200"
          - "contains(body, 'intro.php') && contains(body, 'browser.php')"
        condition: and

      - type: dsl
        dsl:
          - "status_code == 200"
          - "contains(body, '<title>phpPgAdmin')"
        condition: and
# digest: 490a0046304402205c86ddba9b4efd52865189a2893de008fbe8125b5ff580b3024b4d6c2164a6ff02204cb5ed1059ece8fae5e5ec8e6de139c177fbc428c2ba8d577514618efd1170c2:922c64590222798bb761d5b6d8e72950