id: dompdf-config

info:
  name: DomPDF - Configuration Page
  author: kazet
  severity: low
  description: |
    DOMPDF Configuration page was detected, which contains paths, library versions and other potentially sensitive information
  classification:
    cwe-id: CWE-200
    cpe: cpe:2.3:a:dompdf_project:dompdf:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 6
    fofa-query: title="dompdf - The PHP 5 HTML to PDF Converter"
    product: dompdf
    vendor: dompdf_project
  tags: config,exposure,dompdf

http:
  - method: GET
    path:
      - "{{BaseURL}}/www/setup.php"
      - "{{BaseURL}}/dompdf/dompdf/www/setup.php"
      - "{{BaseURL}}/js/dompdf/www/setup.php"
      - "{{BaseURL}}/portal/application/libraries/dompdf/www/setup.php"
      - "{{BaseURL}}/sites/all/libraries/dompdf/www/setup.php"
      - "{{BaseURL}}/vendor/dompdf/dompdf/www/setup.php"

    stop-at-first-match: true
    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'HTML to PDF Converter</title>'
          - '<td class="title">DOMPDF_PDF_BACKEND</td>'
        condition: and

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