id: wp-add-to-any-fpd

info:
  name: WordPress AddToAny Share Buttons Plugin - Full Path Disclosure
  author: pussycat0x
  severity: low
  description: |
    The AddToAny Share Buttons plugin for WordPress was detected to be vulnerable to Full Path Disclosure, allowing unauthenticated access to the full application path.
  reference:
    - https://wordpress.org/plugins/add-to-any/
  metadata:
    max-request: 5
    vendor: wordpress
    product: add-to-any
    fofa-query: body="/wp-content/plugins/add-to-any/"
  tags: wordpress,wp,wp-plugin,fpd,disclosure,add-to-any

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/add-to-any/add-to-any.php"
      - "{{BaseURL}}/wp-content/plugins/add-to-any/addtoany.php"
      - "{{BaseURL}}/wp-content/plugins/add-to-any/includes/addtoany.class.php"
      - "{{BaseURL}}/wp-content/plugins/add-to-any/admin/class-addtoany-admin.php"
      - "{{BaseURL}}/wp-content/plugins/add-to-any/admin/settings.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")'
          - 'status_code == 200 || status_code == 500'
          - 'contains(body, "add-to-any")'
        condition: and
# digest: 4a0a00473045022100cd86de7cd1806e186cbf608901e79f828431f319564cbb8b02d9612aff214edb0220142d4303152caee0c586fcd95a1e4a473c99b7dfa3111b499478e1da69c40b01:922c64590222798bb761d5b6d8e72950