id: pki-validation-exposure

info:
  name: Well-Known PKI Validation Directory
  author: rxerium
  severity: info
  description: |
    Detects CA/B Forum PKI validation artefacts directory.
  impact: |
    Presence of this well-known resource can expose implementation details or policies.
  reference:
    - https://www.namecheap.com/support/knowledgebase/article.aspx/10025/68/how-to-complete-httpbased-validation-upload-a-validation-file-option/
  metadata:
    verified: true
    max-request: 1
    google-query: inurl:"/.well-known/pki-validation/"
  tags: well-known,pki,certificate,validation,miscellaneous,misc,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/.well-known/pki-validation/"
      - "{{BaseURL}}/well-known/pki-validation/"

    redirects: true
    stop-at-first-match: true
    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "pki-validation"
          - "Parent Directory"
        condition: and

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