• Johnny's avatar
    fix: add access control checks for attachments, comments, and reactions · c7b48b80
    Johnny authored
    Security fixes for multiple authorization bypass vulnerabilities:
    
    - GetAttachment: Add visibility check via checkAttachmentAccess helper
    - UpdateAttachment: Add ownership check (creator or admin only)
    - Fileserver: Require creator/admin auth for unlinked attachments
    - ListMemoAttachments: Add memo visibility check
    - CreateMemoComment: Add memo visibility check for target memo
    - ListMemoReactions: Add memo visibility check
    - UpsertMemoReaction: Add memo visibility check
    
    All checks follow the existing pattern used in GetMemo for consistency.
    c7b48b80
Name
Last commit
Last update
.github Loading commit data...
cmd/memos Loading commit data...
internal Loading commit data...
plugin Loading commit data...
proto Loading commit data...
scripts Loading commit data...
server Loading commit data...
store Loading commit data...
web Loading commit data...
.dockerignore Loading commit data...
.gitignore Loading commit data...
.golangci.yaml Loading commit data...
AGENTS.md Loading commit data...
CODEOWNERS Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
SECURITY.md Loading commit data...
go.mod Loading commit data...
go.sum Loading commit data...