interesting database problem
Posted on November 20, 2007
Filed Under Programming |
I discovered an interesting and perhaps disturbing database problem today in a database owned by a large company with very sensitive information in its archives. Apparently, there can be two identical usernames in this database, differentiated only by their separate passwords. Only the username and password are needed to authenticate, and there is no apparent way to keep totally unrelated users from choosing the same username. I currently have access to my own account, and another account that I should not be able to access (simply because I typed the wrong password… imagine that). I plan to call the CTO.
I guess it is unlikely to have a situation like this occur often, but my case proves it is possible. Given this oversight, I wonder what else might happen… for example, if I changed my password to match the other password for the account with identical username? Would it crash their web applications, or perhaps their database? Or would it choose one of the two accounts at random each time I logged in? Or, maybe it would notify me that "this username and password combination is already in use." That would add its own little note of irony, wouldn't it.
Comments
Leave a Reply
You must be logged in to post a comment.