SV-279347r1179208_rule
V-279347
SRG-APP-000148-DB-000103
MD8X-00-003400
CAT II
10
For any user that is not a member of an appropriate organization and that has access to a database in the system, run the following command:
// Change to the appropriate database
> use <database>
> db.dropUser("<username>", {w: "majority", wtimeout: 5000})
The MongoDB configuration file (default location /etc/mongod.conf) must contain the following:
security:
authorization: "enabled"
If not, edit the MongoDB configuration file. Add the parameters and stop/start (restart) any mongod or mongos process using this MongoDB configuration file.
For each database in the system, run the following command:
> use <database>
> db.getUsers()
Verify each user identified is a member of an appropriate organization that can access the database.
Alternatively, if LDAP/AD is being used for authentication/authorization, the mongoldap tool can be used to verify user account access.
If a user is found not be a member of an appropriate organization that can access the database, this is a finding.
Verify the MongoDB configuration file (default location /etc/mongod.conf) contains the following:
security:
authorization: "enabled"
If this parameter is not present, this is a finding.
V-279347
False
MD8X-00-003400
For each database in the system, run the following command:
> use <database>
> db.getUsers()
Verify each user identified is a member of an appropriate organization that can access the database.
Alternatively, if LDAP/AD is being used for authentication/authorization, the mongoldap tool can be used to verify user account access.
If a user is found not be a member of an appropriate organization that can access the database, this is a finding.
Verify the MongoDB configuration file (default location /etc/mongod.conf) contains the following:
security:
authorization: "enabled"
If this parameter is not present, this is a finding.
M
5728