[Senate] Fix path traversal in bridge.py upload with Path.resolve()

← All Specs

[Senate] Fix path traversal in bridge.py upload with Path.resolve()

ID: f850da6d-e38 Priority: 87 Type: one_shot Status: open

Goal

Medium (M-1): bridge.py:32-36 upload endpoint vulnerable to path traversal. Replace os.path.join() with pathlib.Path.resolve() for safe path handling. Prevent writes outside BASE directory. See security_audit_2026-04-02.md.

Acceptance Criteria

☐ Concrete deliverables created
☐ Work log updated with timestamped entry

Work Log

Tasks using this spec (1)
[Senate] Fix path traversal in bridge.py upload with Path.re
Senate done P87
File: f850da6d_e38_spec.md
Modified: 2026-05-01 20:13
Size: 0.5 KB