| Title | MervinPraison PraisonAI praisonaiagents 1.7.22 Improper Authorization |
|---|
| Description | PraisonAI's praisonaiagents SDK up to 1.7.22 stores permission rules in rules.json and loads them at PermissionManager construction. The deny tier is evaluated before approval, so a deny rule is the control no approval decision can override. If the file exists but cannot be read or decoded, _load_rules() catches the error, logs a warning and leaves the rule set empty; the manager reports no rule for every target.
The failure removes every deny rule at once, not one command. Any tool covered by a deny rule becomes callable: for execute_command that is arbitrary command execution as the agent's account, subject only to the shell tool's own parsing rather than an authorization boundary. File-writing tools can modify or delete protected files; MCP tools can act on connected systems; HTTP/browser tools can reach internal services or move data; the same _load_rules/is_denied path is shared by all. Bot/gateway and CLI FULL_AUTO set PRAISONAI_AUTO_APPROVE=true, so the remaining approval layer approves automatically and the denied tool executes with the agent's account privileges.
The trigger is a local file fault: partial write, full disk, file lock, sync/restore, permission change or a schema-invalid entry. The state persists across restarts and new workers: every new PermissionManager loads zero rules, and the deny tier is gone until the file is repaired. The only signal is one warning at startup when the file exists but does not parse; a deleted store is indistinguishable from a first run and logs nothing. |
|---|
| Source | ⚠️ https://github.com/MervinPraison/PraisonAI/pull/6310 |
|---|
| User | EM123 (UID 102854) |
|---|
| Submission | 11/09/2026 12:46 (21 days ago) |
|---|
| Moderation | 11/30/2026 17:03 (21 days later) |
|---|
| Status | Accepted |
|---|
| VulDB entry | 445868 [MervinPraison PraisonAI up to 4.7.24 Permission Manager manager.py _load_rules improper authorization] |
|---|
| Points | 20 |
|---|