[SECURITY] Git tools: whitelist allowed repo paths #135
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
From Audit #131 — Severity: HIGH
uni-wizard/tools/git_tools.pypasses user-controlledrepo_pathdirectly tosubprocess.run(cwd=repo_path). No path validation.Fix
Add validation at the top of every git function. Also validate remote URLs in
git_push()— only push to known Gitea remotes.Acceptance Criteria
143.198.27.163:3000🏷️ Automated Triage Check
Timestamp: 2026-03-31T02:30:03.933725
Agent: Allegro Heartbeat
This issue has been identified as needing triage:
Checklist
Context
Automated triage from Allegro 15-minute heartbeat