id: wordpress-joinchat-fpd

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

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/creame-whatsapp-me/includes/class-joinchat-elementor-finder.php"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200 || status_code == 500'
          - 'contains(body, "creame-whatsapp-me")'
          - 'contains_all(body, "Fatal error", "Uncaught Error") || contains_all(body, "Warning:","failed to open stream")'
        condition: and
# digest: 4a0a0047304502207c9336f93197242a8500054b7ffdb815d38a45e34335ea250d890499188e9aa102210098d257d7dc483a0001c02a766d7fbd89d339b2939ada2a30b03a2da0e1583e44:922c64590222798bb761d5b6d8e72950