MD7X-00-004600 MongoDB must separate user functionality (including user interface services) from database management functionality.

Information

Information system management functionality includes functions necessary to administer databases, network components, workstations, or servers and typically requires privileged user access.

The separation of user functionality from information system management functionality is either physical or logical and is accomplished by using different computers, different central processing units, different instances of the operating system, different network addresses, combinations of these methods, or other methods, as appropriate.

An example of this type of separation is observed in web administrative interfaces that use separate authentication methods for users of any other information system resources.

This may include isolating the administrative interface on a different domain and with additional access controls.

If administrative functionality or information regarding DBMS management is presented on an interface available for users, information on DBMS settings may be inadvertently made available to the user.

NOTE: Nessus has provided the target output to assist in reviewing the benchmark to ensure target compliance.

Solution

Administrators using MongoDB should document the appropriate privileges for various roles appropriate to the application.

For each database, identify the user's roles for the database.

> use <database>
> db.getUser("<username>")

The server will return a document with the user's roles.

To revoke a user's role from a database use the following:

> db.revokeRolesFromUser( "<username>", [ <roles> ], { <writeConcern> } )

To grant a role to a user use the following:

> db.grantRolesToUser( "<username>", [ <roles> ], { <writeConcern> } )

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_MongoDB_Enterprise_Advanced_7-x_V1R1_STIG.zip

Item Details

Category: SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|SC-2, CAT|II, CCI|CCI-001082, Rule-ID|SV-265924r1028722_rule, STIG-ID|MD7X-00-004600, Vuln-ID|V-265924

Plugin: MongoDB

Control ID: 91abf105c2732fd14902331c480efba43e98df1784314a6abba9fb753b22633b