User profiles

Similar to the login page, if you have user profile pages, be careful about allowing username enumeration. For example, if someone visits /users/JohnDoe and then /users/JaneDoe, and one returns a 404 Not Found error, while the other returns an 401 Access Denied error, the attacker can infer that one account actually exists and the other does not.

Get Security with Go now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.