The MCP bridge (`Remote`) sent its requests to whatever accepted on the control port. It now opens each connection with a `hello` carrying a fresh nonce and no token; the app answers with HMAC-SHA-256 of the nonce keyed with the session token. Without a token for the port, or without a valid proof (checked again against the token file once, for a restarted app), the bridge sends nothing. The control server answers `hello` before the token check without counting it as authentication, and closes a connection that hasn't shown the token within 10 s of opening, however its bytes trickle in, so peers without the token can't hold every connection slot until the 10-minute idle timeout. The bridge replaces an unauthenticated connection close to that deadline before writing a request to it. Part of #1925.
2.6 KiB
Security policy
Reporting a vulnerability
Please report it privately through GitHub's private reporting, not in a public issue or pull request. Say which version you ran, on which platform, and how to reproduce it. A small sample file helps, as long as it holds nothing private.
Maintainers read reports as they arrive, but there is no fixed response time yet.
Supported versions
Only the latest release gets security fixes. CADCraft is pre-alpha and moves quickly, so please check that a problem still exists there before reporting it.
What counts
CADCraft treats these as untrusted, and a way past these defences is a vulnerability:
- Drawing files. Opening a DXF, DWG or other file must not run code, write outside the paths the user chose, or crash the app. Panics are bugs too, but memory exhaustion or a decoder abort on a crafted file is the more serious case.
- AutoLISP in a drawing's folder. A drawing must not run code that the user didn't choose to load.
- The control channel. It listens on loopback only and needs the session token from an owner-only file on every request. Another local account reaching it without that token is a vulnerability. The MCP bridge sends requests only to a server that proves it holds the token, so a program listening on the port in the app's place gets none.
- Temporary and autosave files. Autosave files are unsaved drawings: another account must not be able to read them or redirect a write through them.
- Updates. A release must not be replaceable by someone other than the project.
Known limits
These are known and being worked on, so they don't need a report:
- Agents connected through MCP or the control channel can read and write any path the user can. There are no workspace roots yet.
- A local process without the token can hold the control channel's 16 connections for up to 10 seconds at a time, with at most 64 KiB of request line each, so it can keep an agent from reaching the app while it keeps reconnecting. It can't make the app run anything.
- The DWG worker process has no memory limit of its own yet, so a crafted file can use a lot of memory before it stops. It ends that one open or save, not the app.
- The web build has no autosave yet.
What stays on your machine
Crash reports are written to the crash-reports folder in the settings folder and are never uploaded. They hold the version, the platform, the panic message and a stack trace, and a message can include a file path, so read a report before you attach it anywhere.