SV-253715r961158_rule
V-253715
SRG-APP-000251-DB-000391
MADB-10-005800
CAT II
10
Where dynamic code execution is employed in circumstances where the objective could practically be satisfied by static execution with strongly typed parameters, modify the code to do so.
Review MariaDB source code (stored procedures, functions, triggers) and application source code, to identify cases of dynamic code execution.
To list all stored procedures, functions, and triggers in the database, as the database administrator, run the following SQL:
MariaDB> SHOW FUNCTION STATUS;
MariaDB> SHOW PROCEDURE STATUS;
MariaDB> SHOW TRIGGERS;
Any user input should be handled through prepared statements.
If dynamic code execution is employed in circumstances where the objective could practically be satisfied by static execution with strongly typed parameters, this is a finding.
V-253715
False
MADB-10-005800
Review MariaDB source code (stored procedures, functions, triggers) and application source code, to identify cases of dynamic code execution.
To list all stored procedures, functions, and triggers in the database, as the database administrator, run the following SQL:
MariaDB> SHOW FUNCTION STATUS;
MariaDB> SHOW PROCEDURE STATUS;
MariaDB> SHOW TRIGGERS;
Any user input should be handled through prepared statements.
If dynamic code execution is employed in circumstances where the objective could practically be satisfied by static execution with strongly typed parameters, this is a finding.
M
5475