id: wp-rank-math-seo-fpd

info:
  name: WordPress SEO Plugin Rank Math - Full Path Disclosure
  author: ritikchaddha,DhiyaneshDK
  severity: low
  description: |
    WordPress Rank Math SEO plugin is vulnerable to full path disclosure via direct access to plugin files.
  reference:
    - https://wordpress.org/plugins/seo-by-rank-math/
  metadata:
    verified: true
    max-request: 3
    vendor: developer
    product: seo-by-rank-math
    framework: wordpress
    fofa-query: body="/wp-content/plugins/seo-by-rank-math/"
  tags: wp,wordpress,wp-plugin,fpd,rank-math,seo,exposure

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/seo-by-rank-math/vendor/developer/developer.php"
      - "{{BaseURL}}/wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/ActionScheduler_AdminView.php"

    stop-at-first-match: true

    matchers:
      - type: dsl
        dsl:
          - 'contains_all(body, "Fatal error", "Uncaught Error") || contains_all(body, "Warning:", "failed to open stream")'
          - 'status_code == 200 || status_code == 500'
          - 'contains(body, "seo-by-rank-math")'
        condition: and
# digest: 4a0a004730450221008e5e7346d5272d22e63bac4bd7c711bff1f65aee8aae525bed09ea6bf79a8336022066d2ea269f33faf7396cdbef09ee198c236ecfcec170f868db544ca76de7bd7d:922c64590222798bb761d5b6d8e72950