Bug #5821 | User can create databases without permissions | ||
---|---|---|---|
Submitted: | 30 Sep 2004 11:04 | Modified: | 30 Sep 2004 12:31 |
Reporter: | Isaac Saldana | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S1 (Critical) |
Version: | 4.0.20,4.0.21 | OS: | Tested on Linux 2.4.27 |
Assigned to: | CPU Architecture: | Any |
[30 Sep 2004 11:04]
Isaac Saldana
[30 Sep 2004 12:31]
Paul DuBois
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.mysql.com/documentation/ and the instructions on how to report a bug at http://bugs.mysql.com/how-to-report.php Additional info: This occurs because _ and % are wildcard characters. To avoid this behavior, precede the _ with a \ character when granting privileges with GRANT. More information: http://dev.mysql.com/doc/mysql/en/GRANT.html
[31 Jan 2005 23:39]
Robert Hopson
I recently started seeing this problem on a MySQL 4.0.20 server with many user accounts and databases; exactly as Isaac described, we have databases with underscores in the names, and the non-privileged users that couldn't otherwise create databases can create additional databases by not escaping the wildcards. Doesn't the fact that an unprivileged user can create a database by not escaping the wildcards make this a semi-serious bug?