Repository navigation
Replies: 1 comment
|
Just as this friend said: This means the deepseek-ai team itself prevents users from binding to 0.0.0.0 in the first place. This vulnerability is essentially equivalent to "if you manually disable the firewall and open the port, attackers can access it" β this is not a product vulnerability, but a configuration risk arising from the user actively dismantling security boundaries. After an assessment by our team, we determined that this report has no significance and is merely a risk assessment. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
The
dsh webUI (@deepseek-ai/dsh@0.1.0-rc.6) exposes a complete agent control plane over a plainnode:httpserver with no authentication layer β no token, no cookie, no TLS. The only protection is a Host-header/Origin fence that the source itself documents as "not an auth layer" (dsh-client-connection/lib/index.js:117-119). The fence stops browser-based attacks (verified: cross-site Origin, spoofed Host / DNS rebinding, andsec-fetch-site: cross-siteall receive 403), but any non-browser local process passes it trivially and gains remote code execution as the user. If the server is bound to a non-loopback interface (possible via a user cordis config patch, since the fence validates the client-suppliedHostheader rather than the socket peer), this becomes unauthenticated remote RCE, including the methods pinned to "loopback only".Affected versions
@deepseek-ai/dsh@0.1.0-rc.6(npm, published 2026-08-13)0.xRC releases share the same unauthenticated web architectureDetails
dsh web(defaulthttp://127.0.0.1:3080) serves/apiwith 60+ unauthenticated RPC methods, including:session.create(caller-chosen cwd),session.promptβ drive the agent to run bash/pwsh tools; ordinary commands never require interactive approval (dsh-tool-bash/lib/index.js:386-402)commands/executeβ run arbitrary slash commands in a session, including/permission danger-full-access, which silently flips the session to no-sandbox + approval-neverGET /api/events.muxβ broadcasts every session's events, including tool-call arguments and pending approval rpcIdsPOST /api/respondβ answers approval prompts (allowed-once); combined with the mux stream this lets any fence-passing caller self-approve sandbox escalationsGET /api/session.export?sessionId=β¦β downloads full session logssettings.*,credentials.*,llm.discoverModels,host.openPath, β¦) are pinned to loopback β but only via the same client-supplied Host header checkImpact
Any local process (malware, untrusted script, another low-privilege program) can, while
dsh webruns, execute arbitrary shell commands with the user's privileges, with no credential, no approval prompt, and no user interaction. Loopback binding is not a security boundary on a multi-process machine. With a non-loopback bind, any network attacker achieves the same by sendingHost: 127.0.0.1:<port>.Proof of concept (verified locally, sanitized)
Root cause
An architectural decision to ship the web control plane without an authentication layer ("TLS, auth β¦ deliberately out of scope for the dev-facing v1",
dsh-host-webserver/README.md:21), with a threat model covering only malicious web pages. It misses: (1) local multi-process reality; (2) the fence trusts a client-supplied header rather than the connection peer; (3) the approval mechanism is observable and answerable over the same unauthenticated API.Recommended fixes
/apirequests (incl. WebSocket upgrades), injected into index.html via the existingtapIndexhook.0.0.0.0literal from the webserver config schema, or gate it behind an explicit high-risk switch./permission,/api/respond,session.export,dynamicCordisRunner/*; scopeevents.muxper session.danger-full-accessfrom silently becoming the default preset.llm.discoverModelsmust not send stored provider keys to caller-chosen URLs.Mitigations for users (until patched)
dsh webstopped when not in use; treat every local process as able to control the agent while it runs.0.0.0.0via cordis patches.permission.defaultPresetatworkspace-write.Reported by an independent security researcher; full Chinese-language audit available on request. No local paths or personal data included.
All reactions