Skip to main content
Vulnerability Database/CVE-2024-58389

CVE-2024-58389: HoloViz Panel Open Redirect Vulnerability

CVE-2024-58389 is an open redirect flaw in HoloViz Panel that allows attackers to redirect users to malicious sites via unvalidated next query parameters. This post covers technical details, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2024-58389 Overview

CVE-2024-58389 is an open redirect vulnerability in HoloViz Panel versions 1.2.2 through 1.8.x, fixed in 1.9.0. The flaw resides in panel/auth.py, where BasicLoginHandler and PasswordLoginHandler accept an unvalidated next query parameter during authentication. The handlers store the attacker-supplied value in a next_url cookie and redirect the user after a successful login. Attackers can craft login links that send authenticated victims to arbitrary external domains, enabling phishing and credential theft campaigns that leverage the trusted application origin. The weakness is classified under CWE-601: URL Redirection to Untrusted Site.

Critical Impact

Attackers can abuse the trusted Panel login flow to redirect authenticated users to attacker-controlled sites, facilitating phishing, session theft, and malware delivery.

Affected Products

  • HoloViz Panel 1.2.2 through 1.8.10
  • HoloViz Panel deployments using BasicLoginHandler
  • HoloViz Panel deployments using PasswordLoginHandler

Discovery Timeline

  • 2026-10-12 - CVE-2024-58389 published to NVD
  • 2026-10-13 - Last updated in NVD database

Technical Details for CVE-2024-58389

Vulnerability Analysis

The vulnerability is an open redirect [CWE-601] triggered by the authentication flow in panel/auth.py. When a user requests a protected resource, Panel appends a next query parameter containing the originally requested path to the login URL. The BasicLoginHandler and PasswordLoginHandler classes read this parameter without origin validation and persist it to a next_url cookie. After the user authenticates, the handler issues an HTTP redirect to the stored value. Because the parameter accepts absolute URLs with arbitrary schemes and hosts, attackers can direct the post-login redirect to any domain they control.

Typical exploitation involves distributing a link such as https://victim.example/login?next=https://attacker.example/phish. The victim sees a legitimate Panel domain, submits valid credentials, and is then transparently redirected to the attacker site. Because the redirect originates from the authenticated application, it bypasses user suspicion and some URL reputation controls.

Root Cause

The root cause is missing validation of the next_url value. The pre-patch code did not check whether the URL contained a scheme, netloc, or backslash character, nor did it enforce that the target path remained within the application's base_url. Any string accepted by urlparse was treated as a safe post-login destination.

Attack Vector

Exploitation requires user interaction: the victim must click a crafted link and complete authentication. The attack is network-reachable and requires no privileges on the Panel server. The impact is primarily on the user (phishing, credential compromise, social engineering) rather than on server confidentiality or integrity directly.

python
         return {}
 
 
+@t.overload
+def _validate_next_url(next_url: str) -> str: ...
+@t.overload
+def _validate_next_url(next_url: None) -> None: ...
+def _validate_next_url(next_url: str | None) -> str | None:
+    """
+    Validate that next_url is a same-origin path. Raises HTTPError(400)
+    if it carries a scheme, netloc, or backslash (which some browsers
+    treat as '/'). Returns the (possibly base_url-prefixed) value, or
+    None when the input is empty.
+    """
+    if not next_url:
+        return None
+    urlinfo = urlparse.urlparse(next_url)
+    if urlinfo.scheme or urlinfo.netloc or '\\' in next_url:
+        log.warning("Rejecting tampered next_url: %r", next_url)
+        raise HTTPError(400, "Invalid next url")
+    if state.base_url and not next_url.startswith(state.base_url):
+        next_url = next_url.replace('/', state.base_url, 1)
+    return next_url

Source: HoloViz Panel security patch commit a6a8b2c. The patch introduces _validate_next_url, which rejects any value containing a URL scheme, network location, or backslash and prefixes same-origin paths with the configured base_url.

Detection Methods for CVE-2024-58389

Indicators of Compromise

  • Access log entries where the /login endpoint is called with a next parameter containing an absolute URL (values beginning with http://, https://, //, or \).
  • Set-Cookie: next_url= response headers carrying external hostnames.
  • Post-login 302 redirects whose Location header points to a domain outside the Panel deployment's base_url.

Detection Strategies

  • Parse web server and reverse proxy logs for next= query values and flag entries where the decoded value has a scheme or network authority.
  • Correlate successful authentication events with subsequent redirects to non-allowlisted hosts.
  • Hunt for referrer chains in which users leave the Panel origin immediately after login to an untrusted domain.

Monitoring Recommendations

  • Enable verbose access logging on Panel reverse proxies (NGINX, Traefik) with full query string capture.
  • Alert on login requests referred from external email, chat, or short-link services that include a next parameter.
  • Review user reports of unexpected post-login landing pages as potential social-engineering indicators.

How to Mitigate CVE-2024-58389

Immediate Actions Required

  • Upgrade HoloViz Panel to version 1.9.0 or later, which ships the _validate_next_url fix.
  • Inventory all Panel deployments and identify those using BasicLoginHandler or PasswordLoginHandler.
  • Rotate any session cookies or credentials for users who may have been phished via crafted login links.

Patch Information

The fix is implemented in commit a6a8b2cb9592a014cf6a7b0d3d5fc9cbf59bb2ed and released in HoloViz Panel 1.9.0. See the VulnCheck advisory and GitHub issue #6782 for additional context. Pre-patch code is referenced at panel/auth.py lines 866-900.

Workarounds

  • Deploy a reverse proxy rule that strips or rewrites any next parameter containing ://, //, or \ before the request reaches Panel.
  • Enforce a Content Security Policy and Referrer-Policy that limit outbound navigation targets from the login page.
  • Restrict Panel authentication to internal networks or add a secondary authentication proxy that validates redirect targets against an allowlist.
bash
# NGINX workaround: block absolute URLs in the next parameter
location = /login {
    if ($arg_next ~* "^(https?:|//|\\)") {
        return 400;
    }
    proxy_pass http://panel_upstream;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.