id: wp-all-in-one-wp-security-and-firewall-fpd

info:
  name: All In One WP Security & Firewall - Full Path Disclosure
  author: theamanrawat
  severity: low
  description: |
    All In One WP Security & Firewall WordPress plugin 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-wp-security-and-firewall/
  metadata:
    verified: true
    max-requests: 1
    public-www: "/wp-content/plugins/all-in-one-wp-security-and-firewall/"
  tags: debug,wordpress,wp,wp-plugin,all-in-one-wp-security-and-firewall,fpd

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/all-in-one-wp-security-and-firewall/wp-security-core.php"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_all(body, "Fatal error", "undefined function", "all-in-one-wp-security-and-firewall")'
        condition: and
# digest: 4a0a00473045022100e381889c0ebd1b4735d0c260a3b5aa6df63a7ec1510ad9ef43c6b0b49827653702207baad0d63cbc2c49f9d674e4dd30dc59c00064422645d1d8d36ae364b23bd867:922c64590222798bb761d5b6d8e72950