NoForbiddenFunctions
extends Check
in package
Checks if all functions from the `audit.forbiddenFunctions` config array are disabled.
These functions should only be enabled if required to minimize attack target.
Table of Contents
Methods
- check() : bool
- Function to check against. This is used by the execute() function to check if a positive or negative result is returned.
- execute() : CheckResult
- This executes the check and returns a positive result or the result of getError(). You can overwrite this to implement more complex checks.
- getError() : CheckResult
- This value is returned if check() fails.
- getGroup() : string
- Group of the check to partition the results.
- getMissingFunctions() : array<string|int, mixed>
- getName() : string
- Name of the check to identify the result.
Methods
check()
Function to check against. This is used by the execute() function to check if a positive or negative result is returned.
public
check() : bool
Return values
boolexecute()
This executes the check and returns a positive result or the result of getError(). You can overwrite this to implement more complex checks.
public
execute() : CheckResult
Tags
Return values
CheckResultgetError()
This value is returned if check() fails.
public
getError() : CheckResult
Return values
CheckResultgetGroup()
Group of the check to partition the results.
public
getGroup() : string
Return values
stringgetMissingFunctions()
public
getMissingFunctions() : array<string|int, mixed>
Return values
array<string|int, mixed>getName()
Name of the check to identify the result.
public
getName() : string