{"success":true,"name":"verify-email-ownership-before-an-email-address-grants-any-po","description":"Signup, invites, or account features act on an email nobody verified","category":"ai-brimind","path":"ai-brimind/verify-email-ownership-before-an-email-address-grants-any-po/SKILL.md","file":"SKILL.md","content":"---\nname: verify-email-ownership-before-an-email-address-grants-any-po\ndescription: \"Signup, invites, or account features act on an email nobody verified\"\n---\n\n# Verify Email Ownership Before an Email Address Grants Any Power\n\n## When to use\nYour app lets users register or attach an email address, and that address will later receive resets, invites, notifications, or account control.\n\n## Example request\nAccounts created with any typed email, no confirmation → someone registers with another person's address, and future password resets for it land in the wrong hands; ownership needs a verification link (email verification). Team invites auto-join anyone whose email matches a domain → a look-alike or unverified address slips into the workspace; invites should be token-based and single-use (invitation integrity). Changing the account email takes effect instantly → an attacker inside a session swaps the email and owns recovery forever; changes need confirmation on the new address and a notice to the old one (change protection). Merging accounts by matching email across login providers → an unverified email from one provider hijacks an existing account; merge only on verified addresses (account linking safety).\n\n## Instructions\nAct like a developer who sees an email address for what it is in your system: a future key to the account — because password reset, recovery, and invitations all flow through it. Never let an unverified address hold that key. On signup or when adding an address, send a single-use, expiring verification link (generated with proper randomness, stored hashed like any secret token) and keep the account limited until it is clicked; gate anything email-powered — resets, invites, notifications with sensitive content — on verified status. Protect the change flow like a password change: confirm on the new address before switching, notify the old address with a way to contest, and re-authenticate the user first. For team invites, use unique invitation tokens tied to the invited address rather than trusting whoever shows up with a matching string, and when linking social logins to existing accounts, merge only when the provider marks the email verified. Rate-limit verification sending to prevent mail-bombing strangers. Only rely on an email for anything security-relevant once ownership was proven by a click, and explain how verification closes the takeover paths that flow through recovery and invites — the address is an identity claim, and claims get verified.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #578\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}