/usr/lib/mysql-testsuite/t/percona_bug1289599.test is in percona-server-test-5.6 5.6.22-rel71.0-0ubuntu4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | #
# Bug 1289599: Authentication bypass if auth_socket installed
#
--source include/have_socket_auth_plugin.inc
if (`SELECT count(*) <> 0 FROM mysql.user WHERE user = '$USER'`)
{
--skip Unix user present in mysql.user
}
connect (con1,localhost,root);
connect (con2,localhost,root);
call mtr.add_suppression("The plugin 'auth_socket' used to authenticate user .* is not loaded. Nobody can currently login using this account.");
update mysql.user set plugin='auth_socket';
flush privileges;
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT $USER USER
--error ER_ACCESS_DENIED_ERROR
connect (fail,localhost,$USER);
--error ER_ACCESS_DENIED_ERROR
change_user $USER;
connection default;
eval install plugin auth_socket soname '$SOCKET_AUTH';
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT $USER USER
--error ER_ACCESS_DENIED_ERROR, ER_ACCESS_DENIED_NO_PASSWORD_ERROR
connect (fail,localhost,$USER);
connection con2;
# CR_SERVER_LOST, CR_SERVER_GONE_ERROR
--error 2006,2013
change_user $USER;
connection default;
update mysql.user set plugin='';
flush privileges;
uninstall plugin auth_socket;
disconnect con1;
disconnect con2;
|