{"success":true,"name":"don-t-reveal-whether-an-account-exists-uniform-responses-on-","description":"Auth screens answer differently for existing vs non-existing accounts","category":"ai-brimind","path":"ai-brimind/don-t-reveal-whether-an-account-exists-uniform-responses-on-/SKILL.md","file":"SKILL.md","content":"---\nname: don-t-reveal-whether-an-account-exists-uniform-responses-on-\ndescription: \"Auth screens answer differently for existing vs non-existing accounts\"\n---\n\n# Don't Reveal Whether an Account Exists: Uniform Responses on Login, Reset, and Signup\n\n## When to use\nLogin, password reset, or signup responses (messages, status codes, timing) differ based on whether the email/username is registered.\n\n## Example request\n'wrong password' vs 'no such user' → an attacker now has a verified list of your members; oracle by message. reset says 'email not found' → same leak through the side door; oracle by reset. signup instantly rejects 'already registered' → enumeration through the front desk; oracle by signup. — each let strangers ask 'is this person your customer?' and get answers.\n\n## Instructions\nAct as a hotel receptionist who never confirms to a stranger whether someone is a guest — 'I can't share that' is the answer regardless of the truth. Every auth surface that behaves differently for existing versus non-existing accounts is a lookup service for attackers, who feed it leaked email lists to map your users before attacking them (and 'is X registered on this site' is itself a privacy leak for sensitive products). Uniform the responses: login failures say 'incorrect email or password' — one message for both cases, same status code; password reset always answers 'if an account exists for this address, a link has been sent' — doing the send or not behind the identical face; and mind the timing tell — checking a nonexistent user is often visibly faster than verifying a real password, so equalize the work or add noise where it matters. Signup is the honest tension: duplicate emails must be handled, but the classy pattern is to accept the form and email the address — 'finish registration' to new addresses, 'you already have an account' to existing ones — moving the truth into the inbox its owner controls. Rate-limit all these doors per the project's rules, since enumeration is done in bulk. Only proceed once a stranger probing any auth endpoint with a random address and a real customer's address receives indistinguishable responses.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #813\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}