merlyn/server
Timothy Carambat f2030343d7 Fix potential IDOR vulnerability in workspace parsed files endpoints
Add ownership validation to prevent users from deleting or embedding
parsed files that don't belong to them. Previously, the delete and
embed endpoints only validated authentication but not resource ownership,
allowing users to delete attached files for users within workspaces they are also a member of.

Changes:
- Delete endpoint now filters by userId and workspaceId
- Embed endpoint validates file belongs to user and workspace (redundant)
- delete() returns false when no matching records found (returns 403)
- Added JSDoc comments for clarity
GHSA-p5rf-8p88-979c
2026-03-13 15:22:07 -07:00
..
__tests__ Fix: Azure OpenAI model key collision (#5092) 2026-03-05 17:12:08 -08:00
endpoints Fix potential IDOR vulnerability in workspace parsed files endpoints 2026-03-13 15:22:07 -07:00
jobs chore: add ESLint to /server (#5126) 2026-03-05 16:32:45 -08:00
middleware Add HTTP request/response logging middleware for development mode (#4425) 2025-09-29 13:33:15 -07:00
models Fix potential IDOR vulnerability in workspace parsed files endpoints 2026-03-13 15:22:07 -07:00
prisma Remove WelcomeMessages from app - no longer used (#5206) 2026-03-13 12:55:59 -07:00
storage normalize logo wordmark 2026-02-11 08:53:44 -08:00
swagger linting & show descriptive error for bad addtoWorkspace request body 2026-03-09 11:30:53 -07:00
utils Remove WelcomeMessages from app - no longer used (#5206) 2026-03-13 12:55:59 -07:00
.env.example Fix: Azure OpenAI model key collision (#5092) 2026-03-05 17:12:08 -08:00
.flowconfig devcontainer v1 (#297) 2024-01-08 15:31:06 -08:00
.gitignore Web push notifications (#4942) 2026-02-02 10:56:58 -08:00
.nvmrc dev build with new epub2 build target and remove patch work (#4694) 2025-11-26 17:36:34 -08:00
eslint.config.mjs chore: add ESLint to /server (#5126) 2026-03-05 16:32:45 -08:00
index.js Web push notifications (#4942) 2026-02-02 10:56:58 -08:00
jsconfig.json devcontainer v1 (#297) 2024-01-08 15:31:06 -08:00
nodemon.json Full developer api (#221) 2023-08-23 19:15:07 -07:00
package.json chore: add ESLint CI workflow (#5160) 2026-03-09 14:27:08 -07:00
yarn.lock chore: add ESLint to /server (#5126) 2026-03-05 16:32:45 -08:00