Skip to content

fix: require auth and scope campaign analytics to owner/members - #625

Merged
dotunv merged 1 commit into
Savitura:mainfrom
Jessicaayegh:fix/campaign-analytics-auth
Jul 28, 2026
Merged

fix: require auth and scope campaign analytics to owner/members#625
dotunv merged 1 commit into
Savitura:mainfrom
Jessicaayegh:fix/campaign-analytics-auth

Conversation

@Jessicaayegh

Copy link
Copy Markdown
Contributor

Secured the campaign analytics routes (GET /:id/analytics, GET /:id/analytics/contributors, and GET /:id/analytics/backers) by enforcing requireAuth to block unauthenticated access and standardizing authorization using requireCampaignMember(), scoping access strictly to campaign owners, admins, and assigned team members while adding comprehensive unit tests to verify access control. Closes #563

@drips-wave

drips-wave Bot commented Jul 28, 2026

Copy link
Copy Markdown

@Jessicaayegh Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Secured the campaign analytics routes (`GET /:id/analytics`, `GET /:id/analytics/contributors`, and `GET /:id/analytics/backers`) by enforcing `requireAuth` to block unauthenticated access and standardizing authorization using `requireCampaignMember()`, scoping access strictly to campaign owners, admins, and assigned team members while adding comprehensive unit tests to verify access control.
Closes Savitura#563
@dotunv
dotunv merged commit 8ecae18 into Savitura:main Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SECURITY: IDOR on campaign analytics endpoints

2 participants