[SERVER-8623] Unauthorized users are allowed to rename to and from system.users Created: 19/Feb/13 Updated: 11/Jul/16 Resolved: 20/Feb/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Security |
| Affects Version/s: | 2.4.0-rc0 |
| Fix Version/s: | 2.4.0-rc1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Andrew Emil (Inactive) | Assignee: | Spencer Brody (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Operating System: | ALL | ||||
| Steps To Reproduce: | >db.auth('hacker', 'hack') //assume you have readWrite and dbAdmin rights , { $set : { roles : ['userAdmin']}}) |
||||
| Participants: | |||||
| Description |
|
A user with dbAdmin access is allowed to rename the system.users collection. They are also allowed to rename any collection to system.users (if there is not currently a collection there). This makes it possible to change user permissions without having userAdmin rights. |
| Comments |
| Comment by auto [ 20/Feb/13 ] |
|
Author: {u'date': u'2013-02-20T15:22:35Z', u'name': u'Spencer T Brody', u'email': u'spencer@10gen.com'}Message: |
| Comment by Andrew Emil (Inactive) [ 20/Feb/13 ] |
|
Just as an update: don't need dbAdmin rights here, just readWrite |