T05 · Unauthorized Access and Privilege Escalation
- Location
scripts/obsidian_audit.py:25- Finding
Unrestricted Recursive Rename Target Allows Out-of-Scope File Modification
- Content
View full analysis
{target}") if not args.apply: print("\nDry-run only. Re-run with --apply to rename files.") return for p, kind, target in issues: if kind != "rename": continue new_path = p.with_name(target) if new_path.exists(): print(f"skip (exists): {new_path}") continue p.rename(new_path) print(f"renamed: {p.name} -> {new_path.name}") ``` ### Technical Analysis The positional `vault` argument is treated as a trusted Obsidian vault after only checking whether the resolved path exists. The implementation does not: - Require the target to be a directory. - Verify that it ...[truncated 2684 chars]- Remediation
View remediation
