id: wp-safe-svg-fpd

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

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/safe-svg/includes/class-safe-svg.php"
      - "{{BaseURL}}/wp-content/plugins/safe-svg/lib/vendor/enshrined/svg-sanitize/src/Sanitizer.php"
      - "{{BaseURL}}/wp-content/plugins/safe-svg/lib/safe-svg-tags.php"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "Fatal error"
          - "safe-svg"
          - "Uncaught Error:"
        condition: and

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100f045a179f37ac2888fac8a65b6899f60125403232673883eb445b3297744cecd02210090e900346f2ed606c0ef1e4d5fc82661ac902b5b906ed1fb29cd9bb222716a1f:922c64590222798bb761d5b6d8e72950