Skip to content

[Security] List endpoints leak data across users (no ownership/membership check) #246

Description

@nourshoreibah

Several read endpoints authenticate but never scope results to the caller:

  • GET /donors, GET /donations (donors lambda)
  • GET /expenditures with no projectId filter (expenditures lambda)
  • GET /reports (reports lambda)

Any authenticated user can read all rows regardless of project membership. Add membership/admin scoping (reuse canAccessProject pattern) or filter by the caller's projects.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

backendbugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions