fix: remove existing_app_id from 409 response + clarify recovery instructions#51
Merged
i8ramin merged 1 commit intoJun 1, 2026
Conversation
…ructions — closes dupe-com#50 Removes existing_app_id from the EMAIL_ALREADY_REGISTERED 409 response to prevent unauthenticated app_id enumeration via email probing. Updates the recovery message to describe the correct human-mediated flow: trigger a BOTCHA code email, then visit botcha.ai/Account to retrieve the app_id. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Closes #50
Summary
existing_app_idfrom theEMAIL_ALREADY_REGISTERED409 response body — leaking it allows unauthenticated app_id enumeration by probing with arbitrary emailsrecoverymessage to accurately describe the human-mediated flow: callPOST /v1/auth/recover→ receive BOTCHA code by email → visit https://botcha.ai → click "Account" → enter code → retrieveapp_idand share with the agentTest plan
POST /v1/appswith a duplicate email returns 409 with noexisting_app_idfieldrecoverymessage in the 409 body matches the updated wordingbun run test:run— 1219 tests)🤖 Generated with Claude Code