id: wp-megamenu-fpd

info:
  name: WordPress Plugin Max Mega Menu (megamenu) - Full Path Disclosure
  author: DhiyaneshDk
  severity: low
  description: |
    WordPress Plugin Max Mega Menu 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/megamenu/
  metadata:
    max-request: 1
    verified: true
    shodan-query: html:"/plugins/megamenu"
  tags: debug,wordpress,fpd,megamenu,wp-plugin

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/megamenu/integration/zerif/functions.php"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_all(body, "Fatal error", "Uncaught Error:", "/plugins/megamenu/")'
        condition: and
# digest: 4a0a00473045022100ac22a44f11483b6724a3c15217f8e04b5ef7e4215462263cf9810019c13ed31f0220494332aa40b5524baf844907f13f5354a2b2de9ae3f0b3f3c483d80c5af4298f:922c64590222798bb761d5b6d8e72950