mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-25141 JSON_TABLE: SELECT into outfile bypasses file privilege check.
access rights checking fixed.
This commit is contained in:
@@ -111,6 +111,8 @@ a
|
||||
select * from t, json_table(t.a, '$' columns(f varchar(20) path '$.foo')) as jt;
|
||||
a f
|
||||
{"foo":"bar"} bar
|
||||
select * into outfile 'f' from json_table('[]', '$' columns(x for ordinality)) q;
|
||||
ERROR 28000: Access denied for user 'u'@'localhost' (using password: NO)
|
||||
connection default;
|
||||
disconnect con1;
|
||||
drop user u@localhost;
|
||||
|
Reference in New Issue
Block a user