id: wp-googlecaptcha-fpd

info:
  name: WordPress Plugin reCaptcha by BestWebSoft (google-captcha) - Full Path Disclosure
  author: DhiyaneshDk
  severity: low
  description: |
    WordPress ManageWP Worker 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/google-captcha/
  metadata:
    max-request: 1
    verified: true
    shodan-query: html:"/plugins/google-captcha"
  tags: debug,wordpress,fpd,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/google-captcha/includes/captcha-for-formidable.php"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(body, "/plugins/google-captcha")'
          - 'contains_all(body, "Fatal error", "Uncaught Error:")'
        condition: and
# digest: 4a0a00473045022100de7654d9299006d419944607bb74c5548fb47422db131ffce2acc28777d50aec022077c2d6b2f4c908f51a66ae70b3d8dc18aed207830e5ae58a4e95e2109fdaf5ac:922c64590222798bb761d5b6d8e72950