id: wp-easy-fancybox-fpd

info:
  name: Easy FancyBox - Full Path Disclosure
  author: theamanrawat
  severity: low
  description: |
    Easy FancyBox WordPress plugin contains a full path disclosure vulnerability due to improper access restrictions in its source files, allowing unauthenticated attackers to retrieve full server paths and aiding exploitation.
  impact: |
    Attackers can obtain server file paths, aiding in further exploitation of the website.
  reference:
    - https://wordpress.org/plugins/easy-fancybox/
  metadata:
    verified: true
    max-requests: 1
    public-www: "/wp-content/plugins/easy-fancybox/"
  tags: debug,wordpress,wp,wp-plugin,easy-fancybox,fpd

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/easy-fancybox/easy-fancybox.php"

    matchers-condition: and
    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_all(body, "Fatal error", "undefined function", "wp-content/plugins/easy-fancybox/easy-fancybox.php")'
        condition: and

    extractors:
      - type: regex
        name: disclosed-path
        group: 0
        regex:
          - '([A-Za-z]:\\[^\s<>"]+|/[^\s<>"]+)wp-content/plugins/easy-fancybox/easy-fancybox\.php'
# digest: 4b0a00483046022100ee2a000e45a24ca94b4922427d41541fdd21304e75c8d7d5e23db300dcecc749022100d43d570f37c833f80b098e2b94ac26ce36d1add854ea6fcebc4afd60dfd7fc84:922c64590222798bb761d5b6d8e72950