claude-code-best/src/services/mcp/__tests__
James Feng 368dd99d01 fix(security): prevent shell injection in headersHelper (#36)
- Parse headersHelper command with shell-quote to reject operators
- Call execFileNoThrowWithCwd(cmd, args) without shell: true
- Remove shell option from ExecFileWithCwdOptions type entirely
- Add headersHelper.test.ts with injection rejection test
- Fix existing MCP test mocks for compatibility

Test: MCP tests 91/0, full suite 3058 pass (0 new failures)
2026-06-03 16:59:16 +08:00
..
channelNotification.test.ts test: 添加一大堆测试文件 2026-04-02 20:28:08 +08:00
channelPermissions.test.ts fix(security): prevent shell injection in headersHelper (#36) 2026-06-03 16:59:16 +08:00
envExpansion.test.ts test: Phase 5 — 添加 12 个测试文件 (+209 tests, 1177 total) 2026-04-02 10:11:43 +08:00
filterUtils.test.ts test: 添加一大堆测试文件 2026-04-02 20:28:08 +08:00
headersHelper.test.ts fix(security): prevent shell injection in headersHelper (#36) 2026-06-03 16:59:16 +08:00
mcpStringUtils.test.ts test: Phase 2-4 — 添加 12 个测试文件 (+321 tests, 968 total) 2026-04-02 09:29:01 +08:00
normalization.test.ts test: Phase 5 — 添加 12 个测试文件 (+209 tests, 1177 total) 2026-04-02 10:11:43 +08:00
officialRegistry.test.ts fix(security): prevent shell injection in headersHelper (#36) 2026-06-03 16:59:16 +08:00