Re:MySQL Local/Remote Account Password Cracking
by Nick_C on Tuesday December 04, 2012 @10:25PM
(#4874696)
Off the top of my head, I can't think of a case where a user script absolutely needs change_user to return quickly. Sounds like change_user should be modified to return only after a delay, say 1 second.
[ Parent
| on HN ]
Re:MySQL Local/Remote Account Password Cracking
by robbles on Wednesday December 05, 2012 @12:30AM
(#4875042)
It's sometimes used to clear the connection state with persistent connections to the database (say for example in a high-traffic web app). Changing to the same user clears any state and local settings from the previous use of the connection and cancels the current transaction (I believe).
Re:MySQL Local/Remote Account Password Cracking
by Bakkot on Wednesday December 05, 2012 @01:35AM
(#4875213)
Easy enough to make it return instantly when switching to the current user. This would still allow for someone to crack their own password (a problem if someone has access to the database without having the password, say by an SQL injection), but would mitigate most of the problem without breaking things for almost anyone.