Bug #65662 | Simulating a malicious access attempt | ||
---|---|---|---|
Submitted: | 19 Jun 2012 0:08 | Modified: | 19 Jun 2012 9:48 |
Reporter: | Darren Cassar | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Security: Privileges | Severity: | S4 (Feature request) |
Version: | 5.5.25, 5.1.50, 5.1.44 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[19 Jun 2012 0:08]
Darren Cassar
[19 Jun 2012 0:15]
Darren Cassar
The * are masking the real hostname ...
[19 Jun 2012 9:48]
Valeriy Kravchuk
I see the same problem with 5.5.26 on Mac OS X: macbook-pro:5.5 openxs$ a=0 macbook-pro:5.5 openxs$ while [ $a -le 20 ]; do bin/mysql -uwrong -pwrong test; echo $a; let a=a+1; done ERROR 1045 (28000): Access denied for user 'wrong'@'localhost' (using password: YES) 0 ERROR 1045 (28000): Access denied for user 'wrong'@'localhost' (using password: YES) 1 ERROR 1045 (28000): Access denied for user 'wrong'@'localhost' (using password: YES) 2 ERROR 1045 (28000): Access denied for user 'wrong'@'localhost' (using password: YES) 3 ERROR 1045 (28000): Access denied for user 'wrong'@'localhost' (using password: YES) 4 ERROR 1045 (28000): Access denied for user 'wrong'@'localhost' (using password: YES) 5 ERROR 1045 (28000): Access denied for user 'wrong'@'localhost' (using password: YES) 6 ERROR 1045 (28000): Access denied for user 'wrong'@'localhost' (using password: YES) 7 ERROR 1045 (28000): Access denied for user 'wrong'@'localhost' (using password: YES) 8 ERROR 1045 (28000): Access denied for user 'wrong'@'localhost' (using password: YES) 9 ERROR 1045 (28000): Access denied for user 'wrong'@'localhost' (using password: YES) 10 ERROR 1045 (28000): Access denied for user 'wrong'@'localhost' (using password: YES) 11 ERROR 1045 (28000): Access denied for user 'wrong'@'localhost' (using password: YES) 12 ERROR 1045 (28000): Access denied for user 'wrong'@'localhost' (using password: YES) 13 ERROR 1045 (28000): Access denied for user 'wrong'@'localhost' (using password: YES) 14 ERROR 1045 (28000): Access denied for user 'wrong'@'localhost' (using password: YES) 15 ERROR 1045 (28000): Access denied for user 'wrong'@'localhost' (using password: YES) 16 ERROR 1045 (28000): Access denied for user 'wrong'@'localhost' (using password: YES) 17 ERROR 1045 (28000): Access denied for user 'wrong'@'localhost' (using password: YES) 18 ERROR 1045 (28000): Access denied for user 'wrong'@'localhost' (using password: YES) 19 ERROR 1045 (28000): Access denied for user 'wrong'@'localhost' (using password: YES) 20 macbook-pro:5.5 openxs$ bin/mysql -uroot test -e "show variables like 'max_connect%'" +--------------------+-------+ | Variable_name | Value | +--------------------+-------+ | max_connect_errors | 10 | | max_connections | 151 | +--------------------+-------+ Maybe we just interpret http://dev.mysql.com/doc/refman/5.5/en/server-system-variables.html#sysvar_max_connect_err... in some wrong way expecting all connections to be blocked after more than max_connect_errors attempts to connect with wrong password and/or username/password, but then manual should be clarified.
[19 Jun 2012 12:50]
Georgi Kodinov
max_connect_errors was never designed to block failed authentication attempts. It's intended primarily as a remedy to TCP floods (connect and disconnect in a quick succession). And with those there're different protection constraints compared to failed authentication attempts. So I'm moving this to be a feature request for a new parameter that would limit consequtive authentication failures in way similar to how max_connect_error works for TCP floods.
[19 Jun 2012 15:49]
Ronald Bradford
What test constitutes seeing an error of max connection errors? i.e. how do you successfully show connect and disconnect in a quick succession (this time of "quick" being unkown also)
[20 Jun 2012 15:41]
Georgi Kodinov
Ronald, http://dev.mysql.com/doc/refman/5.6/en/server-system-variables.html#sysvar_max_connect_err... has : "If a connection is established successfully within fewer than max_connect_errors attempts after a previous connection was interrupted, the error count for the host is cleared to zero." This means that every network error before that point should count towards max_connect_errors.
[10 Sep 2012 1:21]
André verwijs
YES!! keep loosing root password..!! please fix..!!