id: wp-wpfront-scroll-top-fpd

info:
  name: WordPress WPFront Scroll Top - Full Path Disclosure
  author: DhiyaneshDk
  severity: low
  description: |
    WordPress Plugin WPFront Scroll Top 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/wpfront-scroll-top/
  metadata:
    verified: true
    max-request: 1
    publicwww-query: "/plugins/wpfront-scroll-top"
  tags: wp,wordpress,wp-plugin,fpd,wpfront-scroll-top,misconfig

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/wpfront-scroll-top/wpfront-scroll-top.php"

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