BUG/PRIVACY: attachment uploads share one global filename namespace and silently overwrite prior files #183
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nsaspy/a0-symbolics#183
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
Finding
Chat/message attachments are saved directly under the shared
usr/uploadsdirectory using onlysafe_filename(original_name):api/message.py:api/upload.pyuses the same shared destination/name pattern.There is no context/message namespace, content hash, unique generated storage name, or collision check. Uploading a second file called
report.pdf,image.png, etc. overwrites the existing file in place. Historical chat messages retain the same path, so opening an old attachment can silently show the new file's contents instead of what was originally attached.This is data corruption and a cross-chat confidentiality problem: one chat/import/tool can replace the backing file referenced by another chat.
Direction
Separate immutable storage identity from display filename.
Acceptance
usr/uploads/<filename>references remain readable during migration without allowing new overwrites.Mirrored from
lost-rob0t/a0-symbolics#46via tracker sync.