Security: Dots May Not Matter in Gmail Addresses, But They Matter to Your Application Design

If you manage applications, you may encounter users who register multiple accounts using variations of the same Gmail address (or other email providers with a similar feature). This allows them to exploit your account creation process without needing to create entirely new email addresses.

As Google explains: Dots don't matter in Gmail addresses

Screenshot from Google Article

While this may seem like a minor issue, it can have significant implications for your application. When performing duplicate account checks, simply relying on a unique index in your database is insufficient. To safeguard your application, ensure that you normalise email addresses by removing dots in the local part before conducting duplicate checks. This small adjustment can prevent exploitation and maintain the integrity of your user database.

Disclosure: This entry is based on a collection of my personal notes, and some of the information may be outdated or no longer relevant. If you notice any inaccuracies, please let me know in the comments. I appreciate your feedback and will correct the entry as needed. :)

Comments

Popular posts from this blog

Words: You Aren't Gonna Need It (YAGNI)

Words: Domain-Driven Development

Words: Chaos Engineering