id: wp-pretty-links-fpd

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

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/pretty-link/app/models/PrliLink.php"
      - "{{BaseURL}}/wp-content/plugins/pretty-link/app/controllers/PrliLinksController.php"
      - "{{BaseURL}}/wp-content/plugins/pretty-link/app/helpers/PrliUtils.php"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "Fatal error"
          - "pretty-link"
          - "Uncaught Error:"
        condition: and

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