DB2X-00-003700 - Access to external executables must be disabled or restricted

Information

Information systems are capable of providing a wide variety of functions and services. Some of the functions and services, provided by default, may not be necessary to support essential organizational operations (e.g., key missions, functions).

It is detrimental for applications to provide, or install by default, functionality exceeding requirements or mission objectives.

Applications must adhere to the principles of least functionality by providing only essential capabilities.

DBMSs may spawn additional external processes to execute procedures that are defined in the DBMS but stored in external host files (external procedures). The spawned process used to execute the external procedure may operate within a different OS security context than the DBMS and provide unauthorized access to the host system.

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

Solution

Drop the external routines if these are non-essential for mission objective.
DB2> DROP FUNCTION <name>

Revoke execute privileges from non-authorized users on external routines.
DB2> REVOKE EXECUTE ON FUNCTION <FUNCTION1> FROM <USER1>

Note: Select the following link for the knowledgebase information on the DROP statement:
http://www.ibm.com/support/knowledgecenter/SSEPGG_10.5.0/com.ibm.db2.luw.sql.ref.doc/doc/r0000945.html?cp=SSEPGG_10.5.0%2F2-12-7-129&lang=en

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_IBM_DB2_V10-5_LUW_V2R1_STIG.zip

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-7a., CAT|II, CCI|CCI-000381, Rule-ID|SV-213697r879587_rule, STIG-ID|DB2X-00-003700, STIG-Legacy|SV-89157, STIG-Legacy|V-74483, Vuln-ID|V-213697

Plugin: IBM_DB2DB

Control ID: 409055963552d8eff94bf91312c4834a66cf2f0e2ca5027ee653aad5d37ed83c