-
Type: Bug
-
Resolution: Duplicate
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Security
-
ALL
-
We have database called "try" and a user with "userAdmin" privilege on that database named "userA".
First we authenticate userA using
db.auth("userA","a")
Then, we remove userA using
db.removeUser("userA")
Then, we try to add a user on database "try"
db.addUser(
)
It still works!
Now we authenticate B
db.auth("userB")
And see the content of Database
db.customers.find()
This shows the documents.
The problem is, the user authentication seems to be still there even after the user itself being removed. The removeUser() implementation should call db.runCommand(
{logout:1}) if the current authenticated user is the user being removed.
For note, I tried it in an --auth enabled environment.
- duplicates
-
SERVER-6620 Auth credentials should be invalidated when user is removed
- Closed