Review and security fix: entity confirmation lateral deletion (A + C) - #15
Open
davidpomerenke wants to merge 2 commits into
Open
Review and security fix: entity confirmation lateral deletion (A + C)#15davidpomerenke wants to merge 2 commits into
davidpomerenke wants to merge 2 commits into
Conversation
Documents security issues: entity confirmation lateral deletion, admin reads all survey responses without entity gating, AI chat log indefinite retention (GDPR), no AI rate limiting. Also notes missing CLAUDE.md and zero tests. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HNCpQeWsxkkQX4iN1q8yKQ
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Previously any authenticated user at Entity X could delete all confirmations for Entity X, including ones created by colleagues. Fix: only the creator of a confirmation (or an admin) may delete it. Entity membership is no longer a sufficient permission — this matches the principle of least privilege and prevents intra-entity lateral tampering. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HNCpQeWsxkkQX4iN1q8yKQ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
DELETE /api/entity-confirmationsendpoint previously allowed any user whoseentityfield matched the target entity to delete all confirmations for that entity, including those created by colleagues. Fixed to only allow deletion by the original creator or an admin.Findings at a glance
responder_emailexposedSecurity detail
Before (vulnerable)
After (fixed)
Test plan
{ deleted: false })deletedflag in the response correctly reflects whether a row was removed🤖 Generated with Claude Code