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 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
logEnabled, ignoreVariable, getBlockLevel, init, setScopes, setFilterLevel, getFirewall, setFilterID, filterEnabled, blockEnabled, getRequestLogMessageDetail, logOnly, getFilterInstanceName, inspectVariables, setLogLevel, ignoresVariable, getFilterID, ignoreURI, filterRequest, inspectsCGIScope, getRequestLogMessage, inspectsURI, getLogLevel, setAllowDenyOrder, inspectsCookieScope, setBlockLevel, filterVariables, setFilterInstanceName, inspectVariable, allowURI, getHelp, inspectsUrlScope, getFilterLevel, denyURI, setRequestLogMessage, getFilterComponent, inspectsFormScope
 

Method Detail

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="*"]