HexBrain

Browse / CVEs / CVE-2024-0250

CVE-2024-0250

Analytics Insights for Google Analytics 4 < 6.3 - Open Redirect

mediumseverity
1.3%likelihood of exploitation, next 30 days
70%of all CVEs are less likely
Readycheck to confirm it

The plugin is vulnerable to Open Redirect due to insufficient validation on the redirect oauth2callback.php file. This makes it possible for unauthenticated attackers to redirect users to potentially malicious sites if they can successfully trick them into performing an action.

Impact

Unauthenticated attackers can redirect users to malicious sites for phishing attacks, credential harvesting, or malware distribution by exploiting insufficient redirect validation.

Fix

Upgrade to Analytics Insights for Google Analytics 4 version 6.3 or later.

How to confirm it

Send: GET {{BaseURL}}/wp-content/plugins/analytics-insights/tools/oauth2callback.php?state=https://oast.me/%3f&code=x
Positive when: matches in header /(?m)^(?:Location\s*?:\s*?)(?:https?://|//)?(?:[a-zA-Z0-9\-_\.@]*)oast\.me.*$/

Run it with nuclei: nuclei -id CVE-2024-0250 -u <target>

The full check
id: CVE-2024-0250

info:
  name: Analytics Insights for Google Analytics 4 < 6.3 - Open Redirect
  author: s4e-io
  severity: medium
  description: |
    The plugin is vulnerable to Open Redirect due to insufficient validation on the redirect oauth2callback.php file. This makes it possible for unauthenticated attackers to redirect users to potentially malicious sites if they can successfully trick them into performing an action.
  impact: |
    Unauthenticated attackers can redirect users to malicious sites for phishing attacks, credential harvesting, or malware distribution by exploiting insufficient redirect validation.
  remediation: |
    Upgrade to Analytics Insights for Google Analytics 4 version 6.3 or later.
  reference:
    - https://wpscan.com/vulnerability/321b07d1-692f-48e9-a8e5-a15b38efa979/
    - https://github.com/fkie-cad/nvd-json-data-feeds
    - https://nvd.nist.gov/vuln/detail/CVE-2024-0250
  classification:
    epss-score: 0.01265
    epss-percentile: 0.69953
  metadata:
    max-request: 1
    verified: true
    fofa-query: body="/wp-content/plugins/analytics-insights"
    publicwww-query: "/wp-content/plugins/analytics-insights"
  tags: cve,cve2024,wpscan,redirect,wp,wp-plugin,wordpress,analytics-insights,vuln,vkev

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/analytics-insights/tools/oauth2callback.php?state=https://oast.me/%3f&code=x"

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

References

Use this check only on systems you are authorised to test. Where the data comes from