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.37164
    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: 4a0a004730450220041b4967bfe3a64aede30fbc64d901ddcfb3b831cbfab07c3a9ef62da904d79e022100b815617492178984ef0251f359d6534afaf1d3fc3920d93b48846d313415a8db:922c64590222798bb761d5b6d8e72950