You're offline — showing cached data

MC-3570

[LegalMind] getDocuments storage method does not enforce user ownership — relies entirely on route-layer checks
2026-06-13 06:15:08 SAST
Home Board MC-3570

[LegalMind] getDocuments storage method does not enforce user ownership — relies entirely on route-layer checks

storage.getDocuments(projectId) (server/storage.ts:269) returns all documents for a project without verifying the caller owns the project. Every one of the 20+ route callers mus...
State Done Next Action Closed Owner Luci Runtime Closed Age 27d ago
MC-3570
Ticket is done; runtime is closed. · profile claude_opus_1m_medium · cwd /home/lucienne/workspace · uptime 27d 3h · last activity 27d 1h ago

Description

MC-3570
storage.getDocuments(projectId) (server/storage.ts:269) returns all documents for a project without verifying the caller owns the project. Every one of the 20+ route callers must independently fetch the project and compare userId — a pattern that is correctly implemented today but has no defense-in-depth at the storage layer. Adding a userId parameter (or a separate getDocumentsForUser method) would prevent accidental data leakage if a future caller forgets the ownership check. File: server/storage.ts:269 Complexity: medium Found by: nightly code review (e49ba03c fix(MC-3526): scope role-phrase stripping to user instruction fields)

Activity

done
Luci is working...
Live
No activity yet
Help