claude-code-best/src/cli/handlers
James Feng 70bc47eadc fix(security): Phase 4 — fix remaining reachable CodeQL alerts
Command injection (real fix):
- which.ts: switch to array-args execa, remove shell:true
- execFileNoThrowPortable/execSyncWrapper/imagePaste/execFileNoThrow: security comments

Log injection:
- handlers/mcp.tsx: security comments (secrets already redacted)

ReDoS:
- debugFilter.ts: split regex, add input length guard

Sanitization bypass:
- stripHtml.ts: loop-based script/style removal
- claudemd.ts: loop-based HTML comment stripping
- sedEditParser.ts: single-pass char scan replaces chained replaces
- bingAdapter.ts: URL.hostname comparison instead of string includes

Tests: 3068 pass, 0 fail
2026-06-03 19:51:17 +08:00
..
agents.ts Phase 2a: mechanical dedup — import rewrite to canonical package 2026-06-03 13:54:22 +08:00
ant.ts feat: 全面清理类型错误 — tsc 零错误,any 标注全部消除 2026-04-01 01:00:10 +08:00
auth.ts feat: 问就是封包 2026-03-31 23:32:58 +08:00
autoMode.ts feat: build 2026-03-31 19:22:47 +08:00
autonomy.ts Enable auto mode autonomy commands 2026-06-01 20:17:09 +08:00
mcp.tsx fix(security): Phase 4 — fix remaining reachable CodeQL alerts 2026-06-03 19:51:17 +08:00
plugins.ts feat: build 2026-03-31 19:22:47 +08:00
templateJobs.ts feat: 全面清理类型错误 — tsc 零错误,any 标注全部消除 2026-04-01 01:00:10 +08:00
util.tsx Revert "Revert "feat: 第一个可以用的 ink 组件抽象 (#158)" (#175)" 2026-04-07 16:17:48 +08:00