Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
69970f52
Commit
69970f52
authored
Aug 21, 2007
by
gluh@mysql.com/eagle.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#27629 Possible security flaw in INFORMATION_SCHEMA and SHOW statements(addon for 5.1)
added TRIGGER_ACL check for I_S.TRIGGERS
parent
4ae49348
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
mysql-test/r/information_schema.result
mysql-test/r/information_schema.result
+3
-3
sql/sql_show.cc
sql/sql_show.cc
+1
-1
No files found.
mysql-test/r/information_schema.result
View file @
69970f52
...
@@ -1419,8 +1419,8 @@ where event_object_table='t1';
...
@@ -1419,8 +1419,8 @@ where event_object_table='t1';
trigger_name
trigger_name
t1_ai
t1_ai
show triggers from mysqltest;
show triggers from mysqltest;
Trigger Event Table Statement Timing Created sql_mode Definer
Trigger Event Table Statement Timing Created sql_mode Definer
character_set_client collation_connection Database Collation
t1_ai INSERT t1 set @a = new.a + new.b + new.c AFTER NULL root@localhost
t1_ai INSERT t1 set @a = new.a + new.b + new.c AFTER NULL root@localhost
latin1 latin1_swedish_ci latin1_swedish_ci
show columns from t1;
show columns from t1;
Field Type Null Key Default Extra
Field Type Null Key Default Extra
b int(11) YES NULL
b int(11) YES NULL
...
@@ -1428,7 +1428,7 @@ select column_name from information_schema.columns where table_name='t1';
...
@@ -1428,7 +1428,7 @@ select column_name from information_schema.columns where table_name='t1';
column_name
column_name
b
b
show triggers;
show triggers;
Trigger Event Table Statement Timing Created sql_mode Definer
Trigger Event Table Statement Timing Created sql_mode Definer
character_set_client collation_connection Database Collation
select trigger_name from information_schema.triggers
select trigger_name from information_schema.triggers
where event_object_table='t1';
where event_object_table='t1';
trigger_name
trigger_name
...
...
sql/sql_show.cc
View file @
69970f52
...
@@ -4351,7 +4351,7 @@ static int get_schema_triggers_record(THD *thd, TABLE_LIST *tables,
...
@@ -4351,7 +4351,7 @@ static int get_schema_triggers_record(THD *thd, TABLE_LIST *tables,
int
event
,
timing
;
int
event
,
timing
;
#ifndef NO_EMBEDDED_ACCESS_CHECKS
#ifndef NO_EMBEDDED_ACCESS_CHECKS
if
(
!
(
thd
->
security_ctx
->
master_access
&
SUPER_ACL
))
if
(
check_table_access
(
thd
,
TRIGGER_ACL
,
tables
,
1
))
goto
ret
;
goto
ret
;
#endif
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment