Bug #94395 | unauthenticated user can access db | ||
---|---|---|---|
Submitted: | 19 Feb 2019 16:38 | Modified: | 20 Feb 2019 9:42 |
Reporter: | ding qi | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Security: Privileges | Severity: | S3 (Non-critical) |
Version: | 5.x | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | DB, grant, revoke, unauthenticated, user |
[19 Feb 2019 16:38]
ding qi
[20 Feb 2019 5:55]
zhai weixiang
The document already described this: https://dev.mysql.com/doc/refman/5.7/en/privilege-changes.html Table and column privilege changes take effect with the client's next request. Database privilege changes take effect the next time the client executes a USE db_name statement.
[20 Feb 2019 6:01]
ding qi
To Zhai, got it. But the actions in Session B and Session C in the case two , do confuse . Why not check db access for every query? I looks more reasonable
[20 Feb 2019 9:42]
MySQL Verification Team
Hello xiaobin lin, Thank you for the report. As Zhai rightly pointed, this is known and documented behavior in https://dev.mysql.com/doc/refman/5.7/en/privilege-changes.html regards, Umesh