Bug #51349 | database name containts underline; creating database without privileges | ||
---|---|---|---|
Submitted: | 20 Feb 2010 14:17 | Modified: | 2 Mar 2010 10:46 |
Reporter: | Claudiu Cc | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Security: Privileges | Severity: | S1 (Critical) |
Version: | 5.0.88/5.1.42 | OS: | Linux |
Assigned to: | CPU Architecture: | Any | |
Tags: | creating database without privileges |
[20 Feb 2010 14:17]
Claudiu Cc
[2 Mar 2010 10:46]
Sveta Smirnova
If user has privilege to database 12345_db1 your case looks like one described in our user manual at http://dev.mysql.com/doc/refman/5.0/en/grant.html: "Note: the ‘_’ and ‘%’ wildcards are allowed when specifying database names in GRANT statements that grant privileges at the global or database levels. This means, for example, that if you want to use a ‘_’ character as part of a database name, you should specify it as ‘\_’ in the GRANT statement, to prevent the user from being able to access additional databases matching the wildcard pattern; for example, GRANT ... ON `foo\_bar`.* TO ...." So this is not a bug