# CVE-2026-134836 — Dashy: credential disclosure to lookalike origins via `isLocalRequest`
[ |
| **CWE** | CWE-290 (Authentication Bypass by Spoofing), CWE-522 (Insufficiently Protected Credentials) |
| **Impact** | `isLocalRequest()` decided where to attach user credentials using a string prefix check against the application origin. A lookalike host beginning with the real origin, a different port on the same host, or a `/\\...` path were all treated as local and received Authorization / HTTP auth headers. An attacker could lure a logged-in user into a crafted `?config=` link pointing at such a host, capture bearer tokens or HTTP auth headers, read stored API keys, and — for an admin — modify them |
| **Vector** | crafted remote configuration URL delivered to a logged-in user |
| **Trigger** | ` while the app origin is ` |
// request.js — pre-fix (verbatim in the lab)
if (url.startsWith('/') && !url.startsWith('//')) return true;
const domain = import.meta.env.VITE_APP_DOMAIN;
return url.startsWith(origin) || (domain && url.startsWith(domain));
The fix parses and compares exact origins:
// fixed (commit 86c5094, verbatim in the lab)
if (target.origin === origin) return true;
return target.origin === server.origin && target.pathname.startsWith(server.pathname);
`String.startsWith` is not an origin comparison: any URL whose text begins
with the trusted origin string passes — including a different hostname that
merely extends it, a different port, and backslash-prefixed paths that parsing
later resolves to another origin. Because the result decides whether auth
headers are attached, spoofing it turns the function into a credential
exfiltration primitive. The fix constructs `URL` objects and compares their
`origin` properties; the optional configured domain is compared by origin plus
path prefix, preserving legitimate remote API setups.
| `dy-vuln` | `cve-2026-134836:vuln` | verbatim pre-fix `isLocalRequest()` |
| `dy-fixed` | `cve-2026-134836:fixed` | verbatim fixed function from `86c5094` |
| `poc` | `cve-2026-134836-poc:local` | stdlib-only Node.js driver |
Both harnesses embed the verbatim function with only the `VITE_APP_DOMAIN`
environment lookup replaced by a constant. Four URLs are checked: a lookalike
hostname, a different port, a backslash path and the exact same-origin control.
./run-lab.sh build # builds both sides (node:22-alpine)
./run-lab.sh up # cve134836lab network: dy-vuln / dy-fixed
* **check** — exit 1 when the lookalike URL receives auth headers, 0 when it
does not; 3 no worker, 2 unreachable/indeterminate.
* **exploit** — narrated chain: crafted `?config=` link → prefix check → auth
header to attacker host → API key/theft/account modification.
* **probe** — all four URL shapes with auth decisions.
* **mitigation** — 4.9.12 / commit `86c5094` / exact origin comparison.
A standalone full-chain exploit ships at `exploit/exploit.py`:
python3 exploit/exploit.py --host=dy-vuln
# exit 1 on confirmed credential attachment, 0 on a safe target
| URL | `dy-vuln` (< 4.9.12) | `dy-fixed` (4.9.12) |
| ` | **auth attached** | no auth |
| ` | auth attached | no auth |
| `/\evil.tld/conf.yml` | auth attached | no auth |
| ` | auth attached | auth attached |
Captured runs: `evidence/check-*-run.txt`, `evidence/exploit-*-run.txt`,
`evidence/probe-*-run.txt`, `evidence/mitigation-*-run.txt`,
`evidence/exploit-standalone-run.txt`, `evidence/exploit-standalone-fixed-run.txt`,
`evidence/versions.txt`, `evidence/0day-sweep.txt`.
* Podman (or Docker); bounded containers on the isolated `cve134836lab`
* Real-world exploitation requires a logged-in Dashy user to follow an
attacker-supplied remote configuration URL.
## 7. Additional findings (0-day sweep on the fixed line)
Origin comparison covers the configured `VITE_APP_DOMAIN` by origin plus path
prefix, so legitimate remote API configurations still receive credentials.
Malformed URLs throw and are denied by the fixed implementation. The exact
same-origin URL still receives auth on both builds, confirming the fix removes
run-lab.sh environment driver (build / up / sweep / down)
Makefile convenience targets
poc/poc.js the PoC (check / exploit / probe / mitigation)
exploit/exploit.py standalone full-chain exploit
lab/harness-*.js verbatim isLocalRequest() per side
lab/lab.Dockerfile builds both sides from pinned upstream source slices
lab/service.js HTTP wrapper (POST /request), child-process isolation
evidence/ captured runs of every mode on both sides
TRACKING.md excluded (working record)
* CVE record —
* GitHub advisory —
* Fix commit —
The full story
This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.
