id: wp-woocommerce-admin-fpd

info:
  name: WordPress Plugin WooCommerce Admin (woocommerce-admin) Full Path Disclosure
  author: DhiyaneshDk
  severity: low
  description: |
    WordPress Plugin WooCommerce Admin 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/woocommerce-admin/
  metadata:
    max-request: 1
    verified: false
    shodan-query: html:"/plugins/woocommerce-admin"
  tags: debug,wordpress,fpd,woocommerce-admin,wp-plugin

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/woocommerce-admin/src/Loader.php"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(body, "/woocommerce-admin/src/")'
          - 'contains_all(body, "Fatal error", "Uncaught Error:")'
        condition: and
# digest: 4a0a00473045022100869d3174f4ba627cd3a2b50b7b1265fcd755aae0b226361b324f47cf9a6917d602203d80c94e5f13694398c918d34634ccc7567cf9736e2e6314537fd508a08cf2c2:922c64590222798bb761d5b6d8e72950