DEV Community

OnaEiuspkz
OnaEiuspkz

Posted on

Dashy lookalike-host check exposed stored dashboard credentials

Dashy lookalike-host check exposed stored dashboard credentials

Dashy versions from 4.0.0 through releases before 4.9.12 used a prefix check in isLocalRequest to decide when to attach user credentials. CVE-2026-134836, fixed in 4.9.12, describes a lookalike-host problem that could disclose bearer tokens or HTTP authentication headers to a crafted host. The CVSS 3.1 score is 8.1 and the weakness is mapped to CWE-346, origin validation error.

How the boundary failed

A prefix comparison can accept a host that begins with the trusted text even though the full hostname belongs to someone else. The advisory describes a crafted ?config= link as the lure and says the victim must be logged in and open the link. Credentials attached to the resulting request could expose dashboard configuration and stored API keys, or let an administrator's browser modify them.

The flaw did not create unauthenticated access to every Dashy instance. It changed where an authenticated browser would send a credential. That distinction shapes the investigation: the interesting event is a request from a known user to an unexpected host, followed by configuration access or a change in stored settings.

Why a dashboard is sensitive

The dashboard is a collection of service links and configuration, but it may also hold API keys, icons from remote origins, status widgets and credentials used by integrations. A leaked bearer token may be replayable from another location. An HTTP authentication header may reveal a reusable username and password if the operator did not use per-service credentials. An administrator who visits a malicious link could also hand an attacker the ability to alter what other users see.

Public sources identify the vulnerable range and the fix but do not prove that a malicious hostname is active. Treat the advisory as a reason to review authentication history and configuration changes. Do not treat every access to a lookalike domain as exploitation until the request metadata identifies credentials and a target that matches the attack pattern.

Update and rotate

Update Dashy to 4.9.12 or later. Confirm the running build after the container or service restart, since a browser tab can remain open while the backend still runs the old version. Review reverse-proxy and browser logs for requests made while the user was logged in to the dashboard. Authentication systems may retain the source address, user agent and target host, while the browser history can show the lure.

If a token or HTTP basic credential may have been sent to an untrusted host, rotate it. Replace stored API keys that the browser could read or modify. Review dashboard configuration changes and linked-service permissions for the same period. A changed URL is easy to spot. A modified API key that still works may leave no visible dashboard error.

Make the origin check explicit

The long-term control is an exact origin comparison that accounts for scheme, hostname and port. Redirects and proxy headers need a separate review, because an origin check can be correct in code and still receive misleading values from an unsafe proxy configuration. Keep dashboard administration on a trusted network where practical, and use a reverse proxy to enforce authentication and host routing.

Users should also be trained to treat configuration links as privileged actions. The product may legitimately accept a configuration file through a URL parameter. That makes the origin and prompt behavior part of the security model. A link preview or QR code is not enough evidence that the target host is trusted.

Verify the user path

After rotation, sign out active sessions where the product supports it and confirm that old keys fail. Review service accounts that consumed the exposed keys. If a key allowed write access, compare remote configuration and audit logs with the expected state. If a key allowed read access, decide whether the exposed data changes the incident classification or notification obligations.

The patch closes the reported prefix-check flaw. Stronger host validation, shorter credential lifetimes and explicit review of configuration links reduce the chance that one click becomes a credential incident.

References

Top comments (0)