| Title | bytedance DeerFlow 2.2.0 Improper Authorization |
|---|
| Description | DeerFlow's fine-grained RBAC gate for sandbox execution treats an unreadable configuration file as “authorization is not configured”. The gate loads configuration through `safe_app_config()`, which returns `None` for every exception from `get_app_config()`. The sandbox decision code treats `None` as a disabled policy and returns without evaluating the caller's role. Because the configuration loader re-resolves and re-reads `config.yaml` on each call, a running Gateway whose file is removed or truncated after startup silently stops enforcing the sandbox policy for every role. A role explicitly denied the sandbox capability can then execute sandbox file and shell tools until the file becomes readable again.
The demonstrated impact is unauthorized read and write of the thread workspace and, with the AIO sandbox provider, command execution inside the sandbox container. The loss applies to every sandbox:execute call during the window, not only the tested role; cross-user/cross-thread path checks and host-shell restrictions remain in place. The expected behavior is to fail closed when a configuration that previously enabled authorization can no longer be read, while preserving the documented no-op behavior for a process that never had a configuration. |
|---|
| Source | ⚠️ https://github.com/bytedance/deer-flow/pull/8185 |
|---|
| User | EM1234 (UID 102960) |
|---|
| Submission | 11/12/2026 11:42 (22 days ago) |
|---|
| Moderation | 12/04/2026 13:26 (22 days later) |
|---|
| Status | Accepted |
|---|
| VulDB entry | 449727 [Bytedance DeerFlow 2.1.0/2.2.0 Sandbox Authorization Gate sandbox_authz.py safe_app_config improper authorization] |
|---|
| Points | 20 |
|---|