Project data was readable by any signed-in user #8
Labels
No labels
bug
dependencies
documentation
feature
phase-summary
security
testing
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
vmanne-poc/Postak#8
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?
Problem: routes under
/projects/:projectId/...(contacts, senders, templates, campaigns, forms, reports) only checked that a user was logged in, not that they belonged to the project. Because self-registration was open, anyone could register and read or change another project's data.Fix:
ProjectAccessGuardruns after JWT auth on every project-scoped route and requires aProjectMemberrow. Non-members get 404 so the API doesn't confirm a project exists.POSTAK_DISABLE_REGISTRATION=truecan also turn off public sign-up.Tests: guard unit tests; e2e test "hides a project from users who are not members".
Fixed in
v0.7.0.