SV-96639r1_rule
V-81925
SRG-APP-000447-DB-000393
MD3X-00-000780
CAT II
10
Document validation can be added at the time of creation of a collection. Existing collections can also be modified with document validation rules. Use the "validator" option to create or update a collection with the desired validation rules.
As a user with the "dbAdminAnyDatabase" role, execute the following on the database of interest:
use myDB
db.getCollectionInfos()
Where "myDB" is the name of the database on which validator rules are to be inspected. This returns an array of documents containing all collections information within myDB. For each collection's information received.
If the "options" sub-document within each does not contain a "validator" sub-document, this is a finding.
V-81925
False
MD3X-00-000780
As a user with the "dbAdminAnyDatabase" role, execute the following on the database of interest:
use myDB
db.getCollectionInfos()
Where "myDB" is the name of the database on which validator rules are to be inspected. This returns an array of documents containing all collections information within myDB. For each collection's information received.
If the "options" sub-document within each does not contain a "validator" sub-document, this is a finding.
M
3265