MongoDB must enforce approved authorizations for logical access to information and system resources in accordance with applicable access control policies.

Severity
Group ID
Group Title
Version
Rule ID
Date
STIG Version
highV-265906SRG-APP-000033-DB-000084MD7X-00-000300SV-265906r1028504_rule2024-09-271
Description
MongoDB must enforce approved authorizations for logical access to information and system resources in accordance with applicable access control policies.
ℹ️ Check
The MongoDB administrator must ensure that additional application access control is enforced. Review the system documentation to determine the required levels of protection for MongoDB server securables by type of login. Review the permissions actually in place on the server. Run the command to view roles and privileges in a particular <database> : use <database> db.getRoles( { rolesInfo: 1, showPrivileges: true, showBuiltinRoles: true } ) If the permissions do not match the documented requirements, this is a finding.
✔️ Fix
Use the following statements to add and remove permissions on MongoDB server securables, bringing them into line with the documented requirements: createRole(), updateRole(), dropRole(), grantRolesToUser() MongoDB commands for role management can be found here: https://www.mongodb.com/docs/v7.0/reference/method/js-role-management/