id: wp-fastest-cache-fpd

info:
  name: WordPress WP Fastest Cache Plugin - Full Path Disclosure
  author: 0x_Akoko
  severity: info
  description: |
    WordPress plugin WP Fastest Cache internal file system path was disclosed through direct access to unprotected PHP files.
  reference:
    - https://wordpress.org/plugins/wp-fastest-cache/
  metadata:
    verified: true
    max-request: 3
  tags: debug,wordpress,fpd,wp-fastest-cache,wp-plugin

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/wp-fastest-cache/wpFastestCache.php"
      - "{{BaseURL}}/wp-content/plugins/wp-fastest-cache/inc/cache.php"
      - "{{BaseURL}}/wp-content/plugins/wp-fastest-cache/templates/timeout.php"

    stop-at-first-match: true
    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_all(body, "Fatal error", "Uncaught Error", "/plugins/wp-fastest-cache/")'
        condition: and
# digest: 490a00463044022050ad67654d1f2e8a79de53342058fb836846a6445c41d23b10c4058b26e9a280022042455913fb5c1129073ce779912d7e7e54f001fa660fb20b7f16f058b99d7a86:922c64590222798bb761d5b6d8e72950