Repository navigation
Description
Three findings from the same end-to-end QA pass that produced #937. None is a security break — the runtime fails closed in every case — but each misleads an operator about what the scanner is actually doing.
1. MEDIUM — REST accepts any string as trust_mode, with no validation
curl -X PATCH -H "X-API-Key: ..." .../api/v1/servers/<name> -d '{"trust_mode":"yolo"}'
→ {"success": true, "message": "Server '<name>' updated successfully"}
GET /servers then echoes trust_mode: "yolo" verbatim, and it is persisted to mcp_config.json.
The runtime does fail closed — a poisoned tool change under "yolo" is correctly held, and so is one under "ScAn" — so this is not exploitable. The problem is that an operator who typos "Scan" silently gets manual behaviour while the API and UI display their typo back to them as though it were a valid mode. Someone intending scan and typing Scan would believe scanning is on.
Expected: reject with 400, or normalize and warn.
2. MEDIUM — the signature bundle is invisible to operators, and FR-019 is unimplemented
Three related parts:
FR-019 is not implemented. The bundle is go:embed-only (internal/security/scanner/tpa_bundle.go:22). There is no config field, no env override, no filesystem load and no hot-reload. FR-019 requires all of these and states the path "MUST NOT be hardcoded". Verified by grep: zero hits for any bundle-path config or env key.
The one status report never reaches a log. tpa_bundle.go:190 logs "loaded embedded TPA scanner bundle" with runnable/skipped counts, but does so via the unconfigured global zap.L(). Searching every console and file log across four instances — including one started with --log-level=debug — produced zero occurrences. Repro: start the core with --log-level=debug, run any scan, then grep -r "TPA scanner bundle\|runnable_rules" <logdir> → nothing.
No freshness signal exists anywhere. There is no bundle version or signature count in security overview, security scanners, the REST API, or the UI — and the bundle format itself carries no generated_at, expires, or equivalent. A years-stale corpus is indistinguishable from a freshly exported one, both to a human and to any automation.
The practical consequence: an operator cannot answer "which signatures is my proxy actually running, and how old are they?" by any supported means.
3. LOW — CLI and UI hide hold state in places where an operator would look
mcpproxy tools list --server <name> shows no HELD column and no approval status — only the global mcpproxy tools list carries it. Worse, the server-scoped view prints the raw poisoned description unescaped to the terminal, where the global view correctly escapes control characters.
Repro: create a held changed tool, then compare mcpproxy tools list --server <name> (no state shown) against mcpproxy tools list (HELD populated).
mcpproxy upstream list shows a green ✅ Connected (1 tool) while a poisoned tool sits held on that server.
The Web UI server card reads "Clean" — a green shield from the last full server scan — directly above the text "1 tool changed since approval — re-review needed", while the tool-level gate is holding that tool with a dangerous verdict and two TPA signature hits. The juxtaposition reads as reassurance next to a warning.
No --trust-mode flag on mcpproxy upstream add. The mode can only be set by pre-seeding config or by a follow-up REST PATCH, so a server cannot be added directly into scan mode from the CLI.
Context
The hold-evidence surfacing itself is good where it exists — the global tools list renders matched TPA ids first so truncation never drops them (FR-018 confirmed working), and the Web UI hold panel with its signature chips and before/after description diff is genuinely useful. These findings are about the places that state does not reach.
Activity
fix: close the seven cross-model review findings on the #938 fixes
fix: validate trust_mode, surface the TPA signature bundle, show hold…
Dumbris commentedon Aug 1, 2026
Fixed in #946 (merged as
ba7caa6c3).All three findings addressed:
trust_modevalidation — bogus values are now rejected at every write seam with a consistent message listing the valid set. Verified live:POST /api/v1/serversandPATCH /api/v1/servers/{name}return 400 for"Scan"/"yolo"/"MANUAL"; theupstream_serverstool (add/update/patch) returnsisError;upstream add --trust-modeandadd-jsonexit 1;POST /api/v1/config/validatereports the field path. Nothing bogus reached storage on any path.Left open per the repo's manual-closure convention.
Dumbris commentedon Aug 2, 2026
Shipped in v0.53.0-rc.4 (published 2026-08-01). Verified live before merge: bogus
trust_moderejected at all six write seams with nothing reaching storage; signature bundle surfaced; hold state visible.Closing now that the fix is in a testable build. Reopen if it does not behave as described on a real install.
fix: quarantined servers over-report available tools (#1064) + three …
fix: address review round 1
fix(oauth): recover a stale saved DCR client_id at login; readable to…
docs(roadmap): tpa-db-format in review as #1701
fix(security): tpa-db opens no-follow non-blocking and sets the sidec…
fix(webui): Spec 101 US1 surface the signature bundle status on Revie…
fix(security): Spec 101 US1 anchor LKG files to a non-symlinked direc…
fix(security): tpa-db verify reports sidecar_too_large for an oversiz…
test(tpa-db): skip the POSIX key-mode assertion on Windows
fix(webui): Review keeps the signature bundle status fresh; authority…
13 remaining items
fix(security): address cross-model review round 6 (negation guard acr…
test(scanner): ENOTDIR-vs-absent candidate test is POSIX-only
fix(security): address cross-model review round 7 (negations inside r…
fix(security): address cross-model review round 8 (secret-value vs ac…
fix(security): address cross-model review round 9 (negated objects an…
docs(roadmap): regenerate ROADMAP.md after merging main
docs(roadmap): regenerate ROADMAP.md after merging main
feat(security): Spec 101 US1 signed TPA bundle format and downgrade-p…
test(scan-eval): compare the quoted bundle path so the assertion hold…
feat(security): Spec 101 US3 TPA bundle refresh lifecycle and publica…
fix(security): close the two round-10 recall gaps (0011 multiline cla…
test(server): build the operator-signed fixture on the seed corpus
fix(cli): escape registry-supplied text in catalog search and show (#…
feat(security): Spec 101 US2 TPA seed corpus and eval gate (#1702)
fix(cli): carry oauth through add-json and import, warn on unknown ke…