id: CVE-2024-6690

info:
  name: WP Content Copy Protection & No Right Click - Open Redirect
  author: 0x_Akoko
  severity: medium
  description: |
    The WP Content Copy Protection & No Right Click plugin before version 15.3 contains an open-redirect vulnerability via the referrer parameter in no-js.php, allowing redirection of users to external sites.
  impact: |
    Attackers can redirect users to malicious external sites, facilitating phishing or malware distribution.
  remediation: |
    Update to version 15.3 or later.
  reference:
    - https://wpscan.com/vulnerability/09c6848d-30dc-4382-ae74-b470f586e142/
    - https://nvd.nist.gov/vuln/detail/CVE-2024-6690
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2024-6690
    cwe-id: CWE-601
    epss-score: 0.00473
    epss-percentile: 0.38492
    cpe: cpe:2.3:a:wp-buy:wp_content_copy_protection_\&_no_right_click:*:*:*:*:pro:wordpress:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: wp-buy
    product: wp_content_copy_protection_\&_no_right_click
    framework: wordpress
  tags: cve,cve2024,wordpress,wp-plugin,redirect,wccp-pro,unauth,vkev

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/wccp-pro/no-js.php?referrer=https://oast.pro"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - '(?m)^(?:Location\s*?:\s*?)(?:https?://|//)(?:[a-zA-Z0-9\-_\.@]*)oast\.pro.*$'
        part: header

      - type: status
        status:
          - 302
# digest: 4a0a004730450220395918d87281da7d56f89417fe43df0f70a15d89e6ae677683a8f8992ca191f7022100b91af26015a16b230761e610c3088cbf4897645960f8e9b4357ec099fef01dc7:922c64590222798bb761d5b6d8e72950