Repository navigation
v2.8.27
v2.8.27 (versionCode 109) — Security hardening / 安全加固
English
Security hardening release. All changes verified on a real device.
- Fixed command injection in the debug-service text-input endpoint: input text is now transferred encoded and decoded after shell parsing, so shell metacharacters can no longer escape the argument
- Authentication now runs before the request body is read; request bodies are capped at 32MB, blocking unauthenticated oversized-request memory exhaustion
- Constant-time token comparison plus a short failure delay to slow brute-force attempts; newly issued debug tokens are stronger (existing tokens remain valid; reset in Settings to rotate)
- The startup sweep of leftover script processes now verifies the task marker in /proc before killing, so an unrelated reused PID is never terminated
- Remote (SSH) commands are no longer auto-retried once execution may have started, preventing duplicated side effects; retry only happens when the command verifiably never started
- strict-mode dangerous-tool confirmations no longer prompt twice for the same call
- ask-user prompts now time out after 2 minutes and are cancellable, instead of blocking a round forever
- Chunked file writes abort immediately on a failed chunk and report honestly instead of claiming success
- Full lint pass: fixed missing English translations and an invalid format string
SHA256:eb1b953913bc834514b267a63477fadb5d1d2fc0078a14798694de3b428d55c3
中文
安全加固版本,全部变更经真机回归验证。
- 修复调试服务文本输入端口的命令注入:输入文本改为编码传输、解析后解码,shell 元字符无法再逃逸参数
- 鉴权提前到读取请求体之前;请求体上限 32MB,堵住未授权超大请求的内存耗尽
- 令牌常量时间比较 + 失败短延迟拖慢暴力枚举;新签发调试令牌加强(旧令牌仍有效,可在设置中重置换新)
- 启动时残留脚本进程回收前先核对 /proc 中的任务标记,杜绝进程号复用导致的误杀
- 远端(SSH)命令一旦可能已开始执行就不再自动重试,避免副作用翻倍;仅在确认未开始执行时才重试
- strict 档危险工具确认对同一次调用不再弹两次
- 用户确认等待支持 2 分钟超时与取消,不再无限挂起整轮
- 分块写文件任一块失败立即中止并如实报错,不再误报成功
- 完整静态检查通过:补齐缺失英文翻译、修复无效格式串
SHA256:eb1b953913bc834514b267a63477fadb5d1d2fc0078a14798694de3b428d55c3