id: wp-elementor-pro-fpd

info:
  name: WordPress Elementor Pro - Full Path Disclosure
  author: DhiyaneshDk
  severity: low
  description: |
    WordPress Plugin Elementor Pro plugin files are publicly accessible without ABSPATH protection, exposing sensitive server path information through PHP error messages when accessed directly.
  reference:
    - https://elementor.com/pro/
  metadata:
    verified: true
    max-request: 1
    publicwww-query: "/plugins/elementor-pro"
  tags: wp,wordpress,wp-plugin,fpd,elementor-pro,misconfig

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/elementor-pro/modules/notes/notifications/views/email.php"

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