| Bug #98332 | partial_revokes=1 disables wildcard database grants | ||
|---|---|---|---|
| Submitted: | 23 Jan 2020 7:12 | Modified: | 24 Jan 2020 14:58 |
| Reporter: | Nikolai Ikhalainen | Email Updates: | |
| Status: | Verified | Impact on me: | |
| Category: | MySQL Server: Options | Severity: | S3 (Non-critical) |
| Version: | 8.0.19 | OS: | Any |
| Assigned to: | CPU Architecture: | Any | |
[23 Jan 2020 7:12]
Nikolai Ikhalainen
[24 Jan 2020 11:00]
MySQL Verification Team
Hello Nikolai, Thank you for the report and feedback. Verified as described with 8.0.19 build. Thanks, Umesh
[24 Jan 2020 12:16]
Rahul Sisondia
As per manual - https://dev.mysql.com/doc/refman/8.0/en/partial-revokes.html Partial revokes do not treat the wild card specially. That means user can create the partial revokes on database names that has wild cards in them. Partial revokes don't give special treatment to wild cards.
[24 Jan 2020 14:58]
Nikolai Ikhalainen
Hi Rahul, Just to be sure, there is no REVOKE statements in the test case, but partial_revokes = ON changes behavior for simple GRANT SELECT 'test%'.* handling.
[4 May 2020 7:35]
MySQL Verification Team
Bug #99431 marked as duplicate of this one
[9 Feb 8:40]
Rahul Sisondia
Hello Nikolai, > Just to be sure, there is no REVOKE statements in the test case, but partial_revokes = ON changes behavior for simple GRANT SELECT 'test%'.* handling. Sorry, I might have missed to read your comment. I am responding 6 years later when I am no longer part of MySQL team at Oracle. If Partial revokes is ON then Grant statement also aggregate the privileges to be shown to the user. Therefore, REVOKES statements presence is not required. Anyways, as per the manual using wildcard is deprecated in the later releases. > The use of the wildcard characters % and _ as described in the next few paragraphs is deprecated as of MySQL 8.0.35 and thus subject to removal in a future version of MySQL. It is not a good idea from security reasons to grant privileges using wild card, it may lead to privilege escalation if not done carefully. Hope this deprecated feature will be removed in the future MYSQL releases.
