FuseGuard Logo

fuseguard.components.filters
Component FileUploadFilter

filters.BaseFilter
  |
  +--filters.FileUploadFilter

Checks the File Extensions of Uploaded file and matches them against a whitelist or blacklist.

Method Summary
public array getConfigurables()
          Returns a list of configurable properties
public string getDescription()
public string getName()
public string getThreatCategory()
          Returns path-traversal
public numeric inspectRequest()
public void setAllowedFileExtensions([string extensionList="*"])
          Set a comma seperated list of allowed file extensions, or use * to allow all. If * is not used any file extension not in the list causes the filter to respond with a threat level of 10.
public void setDeniedFileExtensions([string extensionList="*"])
          Set a comma seperated list of denied file extensions. If a file extension in this list is found the filter responds with a threat level of 10.

Methods inherited from filters.BaseFilter
setAllowURIList, blockEnabled, ignoresVariable, setIgnoreURIList, setScopes, inspectsRequestBody, inspectsCGIScope, inspectsUrlScope, setFilterLevel, setAllowDenyOrder, filterVariables, denyURI, getFilterID, inspectsRequest, setFilterWhitelist, ignoreVariable, ignoreURI, getHelp, init, inspectVariables, getFilterComponent, getRequestLogMessageDetail, inspectsCookieScope, allowURI, setLogLevel, getBlockLevel, inspectsURI, logEnabled, hasIPWhiteList, getFilterInstanceName, filterEnabled, filterRequest, getIPWhiteListProvider, setFilterID, getFilterLevel, inspectResponse, logOnly, setIgnoreVariableList, setRequestLogMessage, setBlockLevel, setFilterInstanceName, inspectVariable, inspectsFormScope, getLogLevel, getRequestLogMessage, getFirewall
 

Method Detail

getConfigurables

public array getConfigurables()
Returns a list of configurable properties


getDescription

public string getDescription()

getName

public string getName()

getThreatCategory

public string getThreatCategory()
Returns path-traversal


inspectRequest

public numeric inspectRequest()

setAllowedFileExtensions

public void setAllowedFileExtensions([string extensionList="*"])
Set a comma seperated list of allowed file extensions, or use * to allow all. If * is not used any file extension not in the list causes the filter to respond with a threat level of 10.

Parameters:
[string extensionList="*"]

setDeniedFileExtensions

public void setDeniedFileExtensions([string extensionList="*"])
Set a comma seperated list of denied file extensions. If a file extension in this list is found the filter responds with a threat level of 10.

Parameters:
[string extensionList="*"]