id: wp-oceanwp-fpd

info:
  name: WordPress OceanWP - Full Path Disclosure
  author: ritikchaddha
  severity: low
  description: |
    WordPress OceanWP theme is vulnerable to full path disclosure via direct access to theme files.
  reference:
    - https://wordpress.org/themes/oceanwp/
  metadata:
    verified: true
    max-request: 3
    vendor: developer
    product: oceanwp
    framework: wordpress
    fofa-query: body="/wp-content/themes/oceanwp/"
  tags: wp,wordpress,wp-theme,fpd,oceanwp,exposure

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/themes/oceanwp/inc/helpers.php"
      - "{{BaseURL}}/wp-content/themes/oceanwp/inc/customizer/customizer.php"
      - "{{BaseURL}}/wp-content/themes/oceanwp/inc/walker/menu-walker.php"

    stop-at-first-match: true

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_all(body, "Fatal error", "/themes/oceanwp", "Uncaught Error:")'
        condition: and
# digest: 4a0a00473045022100da57945e49d6f05a1250ddd2db33c7d7c756cd121810797dadd7f94e6169cbe60220128b50871d105f982e37c506a4f01b57ad78e7fbdf81e1962ab930aeff9c2df1:922c64590222798bb761d5b6d8e72950