Conversation
getSMSById and getSmsBatchById resolved records by id alone, so the device in the route was not part of the query. Both now filter on the device, and the batch id supplied in the sms-status body is matched the same way. A record that does not belong to the device reads as not found, so a mismatch is indistinguishable from a missing id. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The tokeninfo response was trusted without checking who the token was issued for, so a token minted for any other Google OAuth client was accepted. The audience is now matched against GOOGLE_CLIENT_ID and the verified-email flag is required. The audience check is skipped with a logged warning when the variable is unset, so an unconfigured environment does not lose Google sign-in. Password reset requests now return the same response whether or not the address is registered, an unknown address on reset reports the same error as a bad code, a non-string email no longer reaches the query, and the code is drawn from crypto.randomInt. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The customer-support route accepted anonymous callers and only overwrote the user field when one was authenticated, so the body could set it. The route now requires authentication and always takes the user from the token. The daily cap counts per authenticated user rather than per self-reported email address. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
fix(api): scope record lookups to the caller and tighten auth checks
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
No description provided.