Details
-
Bug
-
Status: Closed (View Workflow)
-
Blocker
-
Resolution: Fixed
-
10.7(EOL), 10.8(EOL), 10.9(EOL)
-
None
Description
password_reuse_check plugin cannot distinguish between username "foo" and password "bar" and username "foob" and password "ar".
To fix that, the string length can be added to the buffer first. Like:
int4store(buff, hostname->length);
|
memcpy(buff+4, hostname->str, hostname->length); |
Attachments
Issue Links
- is caused by
-
MDEV-9245 password "reuse prevention" validation plugin
-
- Closed
-
- relates to
-
MDEV-28234 Change maturity of plugins for July 2022 Releases
-
- Closed
-
test:
--source include/not_embedded.inc
if (!$PASSWORD_REUSE_CHECK_SO) {
skip No PASSWORD_REUSE_CHECK plugin;
}
install soname "password_reuse_check";
set global password_reuse_check_interval= 0;
grant select on *.* to user_name@localhost identified by 'test_pwd';
grant select on *.* to user_nam@localhost identified by 'etest_pwd';
show warnings;
drop user user_name@localhost;
drop user user_nam@localhost;
grant select on *.* to user_name@localhost identified by 'test_pwd';
grant select on *.* to tuser_name@localhos identified by 'test_pwd';
show warnings;
drop user user_name@localhost;
drop user tuser_name@localhos;