News for hackers. Stuff that matters.
Re:Creative usernames and Spotify account hijacking by tantalor on Wednesday June 19, 2013 @12:45AM (#5903781)
So if a username gets passed from service to service and you want to make sure it is in canonical form you can safely apply .lower() and if it was already in canonical form there is no harm done, and it is easy to stay safe.

Why?

Suppose you only pass the original name around instead. Then you don't require your canonicalization function to be idempotent, which might be good in your case since it wasn't.

Re:Creative usernames and Spotify account hijacking by antocv on Wednesday June 19, 2013 @03:34AM (#5904190)
Because they wanted "BigBird" to be the same as "bigbird" or "BIGBIRD". Hence if you wanted to rely on a userId, you would still need to ensure all the variations of BiGbirD map to the same userId.