claude-code-best/src/cli
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
..
bg Enable auto mode autonomy commands 2026-06-01 20:17:09 +08:00
handlers fix(security): Phase 4 — fix remaining reachable CodeQL alerts 2026-06-03 19:51:17 +08:00
src feat: 完成stub 2026-03-31 20:40:16 +08:00
transports fix: resolve tsc errors (upstream type cleanup batch) 2026-06-01 18:44:46 +08:00
bg.ts Enable auto mode autonomy commands 2026-06-01 20:17:09 +08:00
exit.ts Phase 1: security do-now — redaction helpers + RCS defaults hardened 2026-06-03 13:43:38 +08:00
ndjsonSafeStringify.ts feat: build 2026-03-31 19:22:47 +08:00
print.ts Phase 2a: mechanical dedup — import rewrite to canonical package 2026-06-03 13:54:22 +08:00
remoteIO.ts feat: build 2026-03-31 19:22:47 +08:00
rollback.ts feat: 大规模清理 claude 的类型问题及依赖 2026-03-31 22:21:35 +08:00
structuredIO.ts fix: resolve tsc errors (provider and print refinements) 2026-06-01 18:47:27 +08:00
up.ts feat: 大规模清理 claude 的类型问题及依赖 2026-03-31 22:21:35 +08:00
update.ts feat: build 2026-03-31 19:22:47 +08:00