MADB-10-009100 - When invalid inputs are received, MariaDB must behave in a predictable and documented manner that reflects organizational and system objectives.

Information

A common vulnerability is unplanned behavior when invalid inputs are received. This requirement guards against adverse or unintended system behavior caused by invalid inputs, where information system responses to the invalid input may be disruptive or cause the system to fail into an unsafe state.

The behavior will be derived from the organizational and system requirements and includes, but is not limited to, notification of the appropriate personnel, creating an audit record, and rejecting invalid input.

This calls for inspection of application source code, which will require collaboration with the application developers. It is recognized that in many cases, the database administrator (DBA) is organizationally separate from the application developers, and may have limited, if any, access to source code. Nevertheless, protections of this type are so important to the secure operation of databases that they must not be ignored. At a minimum, the DBA must attempt to obtain assurances from the development organization that this issue has been addressed and must document what has been discovered.

NOTE: Nessus has not performed this check. Please review the benchmark to ensure target compliance.

Solution

All errors and denials are logged to the sql errorlog. If the sql error log does not exist, install the sql error log plugin as follows:

MariaDB> INSTALL SONAME 'sql_errlog';

The error log should by default be located as sql_errors.log within the data directory (/var/lib/mysql by default).

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_MariaDB_Enterprise_10-x_V2R1_STIG.zip

Item Details

Category: SYSTEM AND INFORMATION INTEGRITY

References: 800-53|SI-10(3), CAT|II, CCI|CCI-002754, Rule-ID|SV-253743r961656_rule, STIG-ID|MADB-10-009100, Vuln-ID|V-253743

Plugin: MySQLDB

Control ID: ba70b1d3e6c94acdcec400e45a9a0f616cd02ebd071c6bf8d757755e1f2e995b