mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #7900] [Issue]: Assess eMudhra CA compromise exposure before stable release #4343
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#4343
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Gunterlie on GitHub (Oct 20, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7900
Originally assigned to: @Gunterlie, @SpicyMarinara on GitHub.
Summary
Assess Marinara Engine's outbound HTTPS exposure to the publicly disclosed eMudhra intermediate-CA key compromise before the stable release planned for 20 October 2026. This is a release-triage tracker for a public upstream incident; exposure of a specific Marinara release or installation has not yet been demonstrated, and this report does not establish exploitation.
Expected behavior
Marinara's outbound HTTPS clients should reject certificate chains containing the compromised intermediate public keys before sending application credentials or prompt content, while preserving certificate-chain and hostname validation for legitimate connections.
The stable-release decision should record which installation/runtime combinations were tested, their results, and any remaining exposure or coverage gaps.
Actual behavior
Code inspection identifies a plausible exposure path:
llmFetchinpackages/server/src/services/llm/base-provider.ts, which delegates to the undici-basedsafeFetchpath inpackages/server/src/utils/security.ts.An attacker would additionally need to intercept or redirect a connection. If an affected client accepts an attacker-issued certificate, potential consequences include credential/prompt disclosure and response modification. A legitimate provider using a different CA does not by itself prevent impersonation. Browser protections do not establish that backend requests are protected.
The candidate source runtime and credential-free HTTP probes have now been completed; Docker, Windows, and Android/Termux candidate probes remain outstanding. A development-shell probe did not run because
nodewas absent from that shell's PATH; this is not evidence that shipped installations lack Node or are protected.Steps to reproduce
Proposed assessment procedure; these steps have not yet been executed successfully against the release candidate:
https://dv-g3b-emudhra.we-have-a-problem.com/andhttps://dv-g3b-aaa-emudhra.we-have-a-problem.com/. Expand coverage to the affected chains listed in the incident report.Environment
Logs, screenshots, or video
No successful runtime reproduction or certificate-rejection evidence is attached yet. Current evidence is code inspection and the public upstream disclosures below. Do not include credentials or personal chat data in follow-up evidence.
Additional context
Public incident: https://emudhra.we-have-a-problem.com/
Proposed upstream Node mitigation: https://github.com/nodejs/node/pull/66871
Requested release-triage work:
v24.22.0still accepts the direct compromised-chain probe; no protected released Node 24 build is established.safeFetchpath now checks the eight affected intermediate SPKI hashes while preserving normal TLS validation; broader outbound-path coverage remains open.Any newly discovered Marinara-specific vulnerability details should follow
SECURITY.mdand private vulnerability reporting. This public issue tracks the known upstream incident and assessment work only.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@Gunterlie commented on GitHub (Oct 20, 2026):
Assessment update — 20 October 2026
Owner:
GunterlieCandidate tested:
1fd8affcd7b3d5d0dd8c53d79a6425a1e166aee4(the-emudhra-chain-breaks-the-release), package version2.5.1.Runtime result
The available source-shell runtime was Node
v24.18.0with OpenSSL3.5.7on Linuxx64. This is also the Node major line used by the candidate Dockerfiles, although the Docker image digest and the host-installed runtime were not built from the candidate.Credential-free probes produced these results:
fetch→https://dv-g3b-emudhra.we-have-a-problem.com/200fetch→https://dv-g3b-aaa-emudhra.we-have-a-problem.com/UNABLE_TO_GET_ISSUER_CERT_LOCALLYcurl→ both endpoints200fetch→https://example.com/200The first endpoint served
EM DV TLS CA - G3Bchained toemSign Root TLS CA - G3. OpenSSL reported verification success. This confirms that the tested Node runtime accepts at least one compromised intermediate chain before application data is sent.Upstream status
Node PR #66871 merged on 20 October 2026 at commit
d9a3f3d. It adds the compiled-in SPKI blocklist for the eight compromised intermediates.The Node release index checked today lists Node
v24.22.0as the newest Node 24 release, published on 14 October 2026. The checked release metadata does not establish that any released Node 24 build contains the merged fix. The current candidate'sv24.18.0is therefore affected by the direct probe.Marinara coverage
Provider requests use
llmFetch→safeFetch→ undiciAgentand are covered by the Node TLS runtime. The shared path preserves normal certificate and hostname validation, but it does not add eMudhra SPKI blocking.The source scan also found separate outbound HTTPS paths that do not use
safeFetch, including:packages/server/src/routes/updates.routes.ts;packages/server/src/routes/fonts.routes.ts;packages/server/src/routes/spotify-auth.routes.tsandpackages/server/src/services/spotify/spotify.service.ts;packages/server/src/services/tools/tool-executor.ts;These paths require separate runtime and trust behavior checks. A change to
safeFetchalone would not cover them.Release decision
Current candidate: delay or use a reviewed, tested mitigation. It is not protected against the tested compromised chain. Do not mark this issue protected based on the current Dockerfile's Node 24 image or on browser results.
The next action is to test a candidate with a verified Node release that contains the merged fix, or to implement and review a narrow SPKI-based mitigation. Any mitigation must cover rejection before credentials or prompt content are sent, legitimate HTTPS, streaming, redirects, supported proxies, and separately documented direct-fetch or subprocess paths. A rebuilt image with the existing Node digest is not evidence of protection.
Remaining coverage
safeFetchandllmFetchdirectly without credentials, including proxy behavior, redirects, and streaming.fetch, SDK clients, downloads, WebSocket clients, and separate CLI subprocesses.@Gunterlie commented on GitHub (Oct 20, 2026):
Follow-up runtime check — 20 October 2026
I tested the newest published Node 24 release available today,
v24.22.0, using the official Linux x64 binary. It reports OpenSSL3.5.8.Results:
v24.22.0→https://dv-g3b-emudhra.we-have-a-problem.com/200; compromised chain acceptedv24.22.0→https://dv-g3b-aaa-emudhra.we-have-a-problem.com/UNABLE_TO_GET_ISSUER_CERT_LOCALLY; inconclusive for SPKI blocking because the endpoint served an incomplete chain herev24.22.0→https://example.com/200; legitimate HTTPS worksThis confirms that upgrading the candidate from Node
v24.18.0to the latest published Node 24 release does not establish protection. Node PR #66871 is merged in Node main atd9a3f3d, but the fix is not present in the tested Node 24 release.The Docker image digest currently pinned by the repository must therefore remain an open release blocker. Updating only the Node tag or rebuilding the existing digest does not prove protection.
The narrow temporary mitigation remains unimplemented. A safe implementation must inspect the complete verified chain and block the eight affected intermediate SPKI hashes while preserving normal hostname and chain validation. A leaf-only
checkServerIdentityhook would not meet that requirement. The mitigation must also cover directfetchcallers, SDK clients, WebSockets, streaming, redirects, proxies, downloads, and separate CLI processes, or document those gaps.@Gunterlie commented on GitHub (Oct 20, 2026):
Temporary mitigation implementation — 20 October 2026
Implemented a narrow mitigation in
packages/server/src/utils/security.tsfor the sharedsafeFetchpath.The change:
Validation completed:
heavy pnpm --filter @marinara-engine/server lintpassed.safeFetchrejectedhttps://dv-g3b-emudhra.we-have-a-problem.com/withfetch failedafter the mitigation.safeFetchacceptedhttps://example.com/with HTTP200.UNABLE_TO_GET_ISSUER_CERT_LOCALLY.git diff --checkpassed.The patch is currently uncommitted. Full validation remains open for streaming, redirects, supported proxy configurations, direct
fetchcallers, WebSockets, SDK clients, downloads, and separate CLI processes. Those paths do not all usesafeFetch.