id: phppgadmin-version

info:
  name: PhpPgAdmin Version Information - Detect
  author: dr0pd34d
  severity: info
  description: PhpPgAdmin version information was detected via the intro.php file.
  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:
    max-request: 1
  tags: tech,phppgadmin

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

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - '<span class="appname">phpPgAdmin</span> <span class="version">.*</span>'

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        part: body
        regex:
          - 'phpPgAdmin.*\(.*\)'
# digest: 490a004630440220151df9f95f1b8a4cc84c01fb8a0f70871776b5c6a59d60ac053a58836ddd13770220369bded7528f2803c8c7a4b587f48553e929174a2aeaa90df15500fc88a75b4a:922c64590222798bb761d5b6d8e72950