id: wp-better-wp-security-fpd

info:
  name: WordPress Plugin iThemes Security - Full Path Disclosure
  author: DhiyaneshDk
  severity: low
  description: |
    WordPress Plugin iThemes Security files are publicly accessible without ABSPATH protection, exposing sensitive server path information through PHP error messages when accessed directly.
  reference:
    - https://wordpress.org/plugins/better-wp-security/
  metadata:
    max-request: 1
    verified: true
    fofa-query: body="/plugins/better-wp-security/"
  tags: debug,wordpress,fpd,vuln,better-wp-security,wp-plugin

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/better-wp-security/core/admin-pages/page-logs.php"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200 || status_code == 500'
          - 'contains(body, "better-wp-security")'
          - 'contains_any(body, "Fatal error", "Uncaught Error","Call to undefined") || contains_all(body, "Warning:","failed to open stream")'
        condition: and
# digest: 4a0a00473045022100c706b7d0037b9772a2d738540b7531824769fc0a60089df06c8812c207a6efcf02201830a8a8b96c486cbd87fe70a57072493078d8ff05952c605c5a4f49d7a7023f:922c64590222798bb761d5b6d8e72950