id: wp-a3-lazy-load-top-fpd

info:
  name: WordPress a3 Lazy Load - Full Path Disclosure
  author: DhiyaneshDk
  severity: low
  description: |
    WordPress Plugin a3 Lazy Load 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/a3-lazy-load/
  metadata:
    verified: true
    max-request: 1
    publicwww-query: "/plugins/a3-lazy-load"
  tags: wp,wordpress,wp-plugin,fpd,a3-lazy-load,misconfig

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/a3-lazy-load/a3-lazy-load.php"
      - "{{BaseURL}}/wp-content/plugins/a3-lazy-load/admin/a3-lazy-load-admin.php"

    stop-at-first-match: true

    matchers:
      - type: dsl
        dsl:
          - 'contains_all(body, "Fatal error", "Uncaught Error") || contains_all(body, "Warning:","failed to open stream")'
          - 'contains(body, "a3-lazy-load")'
          - 'status_code == 200 || status_code == 500'
        condition: and
# digest: 4a0a00473045022100a1151cb65345eaff18e9d0da4f53b05e3d5999337a17423035d1e352c722bc1302205c848ab747d2be1c1e247c56cc1b66da5b1709cd01f64b20c29d6777f3240fde:922c64590222798bb761d5b6d8e72950