| Titel | ApodexAI FrontierAgent 0.1.0 Improper Authorization |
|---|
| Beschreibung | FrontierAgent (apodex) up to 0.1.0 stores permanent "never run this" decisions as deny rules in ~/.config/apodex/permissions.json. In --yes or auto_for_me sessions those rules are the last control before a command runs; the approver otherwise approves immediately. If the file exists but cannot be read or parsed, PermissionStore.load() treats the failure as an empty policy, so every deny rule disappears and a permanently blocked command runs unattended with the user's rights.
The lost surface is the whole deny list, not one command: it can name individual commands (Bash(git push)) or whole tools (bash, write_file, file_editor, run_python_code, web_fetch/download_file). A read-only or offline posture built on those denials is lost in one step: files become writable, network tools usable and code execution available. Restored curl/ssh/git push-class commands let an agent steered by repository content or a fetched page send source, .env content or tokens to an external host; an unbanned write_file reaches build scripts and CI configuration. The rules are re-read at every session start, so the widened surface persists until someone rewrites the file by hand, with no UI or log signal.
The trigger is the product's own non-atomic save(): open(path, "w") truncates before json.dump and the write error is swallowed, so a full disk, size limit, interrupted write or two concurrent sessions leave invalid JSON. A present-but-unreadable file (permission error, path replaced by a directory) is collapsed into "no rules" the same way; the decision has no "unknown" state. The same loader shape also covers settings.json's plan_mode, so a truncated settings.json can drop the "no edits until I approve a plan" gate and let write_file execute. |
|---|
| Quelle | ⚠️ https://github.com/ApodexAI/FrontierAgent/pull/72 |
|---|
| Benutzer | EM123 (UID 102854) |
|---|
| Einreichung | 09.11.2026 12:37 (vor 21 Tagen) |
|---|
| Moderieren | 30.11.2026 17:02 (21 days later) |
|---|
| Status | Akzeptiert |
|---|
| VulDB Eintrag | 445860 [ApodexAI FrontierAgent bis 0.1.0 apodex/permissions.py PermissionStore.load erweiterte Rechte] |
|---|
| Punkte | 20 |
|---|