TYPO3  7.6
Public Member Functions | Protected Member Functions | List of all members
SecurityStatus Class Reference
Inheritance diagram for SecurityStatus:
StatusProviderInterface

Public Member Functions

 getStatus ()
 

Protected Member Functions

 getTrustedHostsPatternStatus ()
 
 getEncryptionKeyStatus ()
 
 getFileDenyPatternStatus ()
 
 getHtaccessUploadStatus ()
 
 isMemcachedUsed ()
 

Detailed Description

Performs several checks about the system's health

Definition at line 25 of file SecurityStatus.php.

Member Function Documentation

getEncryptionKeyStatus ( )
protected

Checks whether the encryption key is empty.

Returns
An object representing whether the encryption key is empty or not

Definition at line 115 of file SecurityStatus.php.

References $GLOBALS, $url, and GeneralUtility\makeInstance().

Referenced by SecurityStatus\getStatus().

getFileDenyPatternStatus ( )
protected

Checks if fileDenyPattern was changed which is dangerous on Apache

Returns
An object representing whether the file deny pattern has changed

Definition at line 136 of file SecurityStatus.php.

References $GLOBALS, GeneralUtility\makeInstance(), and GeneralUtility\trimExplode().

Referenced by SecurityStatus\getStatus().

getHtaccessUploadStatus ( )
protected

Checks if fileDenyPattern allows to upload .htaccess files which is dangerous on Apache.

Returns
An object representing whether it's possible to upload .htaccess files

Definition at line 160 of file SecurityStatus.php.

References $GLOBALS, GeneralUtility\makeInstance(), and GeneralUtility\verifyFilenameAgainstDenyPattern().

Referenced by SecurityStatus\getStatus().

getStatus ( )
getTrustedHostsPatternStatus ( )
protected

Checks if the trusted hosts pattern check is disabled.

Returns
An object representing whether the check is disabled

Definition at line 50 of file SecurityStatus.php.

References $GLOBALS, GeneralUtility\ENV_TRUSTED_HOSTS_PATTERN_ALLOW_ALL, and GeneralUtility\makeInstance().

Referenced by SecurityStatus\getStatus().

isMemcachedUsed ( )
protected

Checks whether memcached is configured, if that's the case we assume it's also used.

Returns
bool TRUE if memcached is used, FALSE otherwise.

Definition at line 180 of file SecurityStatus.php.