mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
MDEV-20110 don't try to load client plugins with invalid names
reported by lixtelnis
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
source include/not_embedded.inc;
|
||||
source include/have_debug.inc;
|
||||
set @old_dbug=@@global.debug_dbug;
|
||||
|
||||
@@ -10,3 +11,13 @@ create user 'bad' identified by 'worse';
|
||||
--exec $MYSQL --default-auth=mysql_old_password --user=bad --password=worse
|
||||
set global debug_dbug=@old_dbug;
|
||||
drop user bad;
|
||||
|
||||
#
|
||||
# malicious server, invalid plugin name
|
||||
#
|
||||
set global debug_dbug='+d,auth_invalid_plugin';
|
||||
create user 'bad' identified by 'worse';
|
||||
--error 1
|
||||
--exec $MYSQL --default-auth=mysql_old_password --user=bad --password=worse 2>&1
|
||||
set global debug_dbug=@old_dbug;
|
||||
drop user bad;
|
||||
|
||||
Reference in New Issue
Block a user