TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
RemoveXSSTest Class Reference
Inheritance diagram for RemoveXSSTest:
UnitTestCase BaseTestCase

Public Member Functions

 checkAttackScriptAlert ()
 
 checkAttackScriptSrcJs ()
 
 checkAttackScriptAlertFromCharCode ()
 
 checkAttackBaseHref ()
 
 checkAttackBgsound ()
 
 checkAttackBodyBackground ()
 
 checkAttackBodyOnLoad ()
 
 checkAttackStyleUrl ()
 
 checkAttackStyleWidth ()
 
 checkAttackFrameset ()
 
 checkAttackIframe ()
 
 checkAttackInputImage ()
 
 checkAttackImageSrc ()
 
 checkAttackImageSrcNoQuotesNoSemicolon ()
 
 checkAttackImageDynsrc ()
 
 checkAttackImageLowsrc ()
 
 checkAttackStyle ()
 
 checkAttackImageVbscript ()
 
 checkAttackLayer ()
 
 checkAttackMeta ()
 
 checkAttackMetaWithUrl ()
 
 checkAttackMetaWithUrlExtended ()
 
 checkAttackObject ()
 
 checkAttackObjectEmbeddedXss ()
 
 checkAttackEmbedFlash ()
 
 checkAttackActionScriptEval ()
 
 checkAttackImageStyleWithComment ()
 
 checkAttackStyleInAnonymousHtml ()
 
 checkAttackStyleWithBackgroundImage ()
 
 checkAttackStyleWithBackground ()
 
 checkAttackStylesheet ()
 
 checkAttackRemoteStylesheet ()
 
 checkAttackImportRemoteStylesheet ()
 
 processDataProvider ()
 
 processWithDataProvider ($input, $expected)
 
 processValidDataProvider ()
 
 proccessValidStrings ($input)
 

Additional Inherited Members

- Protected Member Functions inherited from UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from BaseTestCase
 getAccessibleMock ($originalClassName, $methods=[], array $arguments=[], $mockClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true)
 
 getAccessibleMockForAbstractClass ($originalClassName, array $arguments=[], $mockClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true, $mockedMethods=[])
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name,...$arguments)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix= '')
 
- Protected Attributes inherited from UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Testcase for class RemoveXSS @ see http://ha.ckers.org/xss.html @ examples from http://ha.ckers.org/xssAttacks.xml

Definition at line 20 of file class.removexssTest.php.

Member Function Documentation

checkAttackActionScriptEval ( )
Test:

Definition at line 300 of file class.removexssTest.php.

References RemoveXSS\process().

checkAttackBaseHref ( )
Test:

Definition at line 58 of file class.removexssTest.php.

References RemoveXSS\process().

checkAttackBgsound ( )
Test:

Definition at line 69 of file class.removexssTest.php.

References RemoveXSS\process().

checkAttackBodyBackground ( )
Test:

Definition at line 80 of file class.removexssTest.php.

References RemoveXSS\process().

checkAttackBodyOnLoad ( )
Test:

Definition at line 91 of file class.removexssTest.php.

References RemoveXSS\process().

checkAttackEmbedFlash ( )
Test:

Definition at line 289 of file class.removexssTest.php.

References RemoveXSS\process().

checkAttackFrameset ( )
Test:

Definition at line 124 of file class.removexssTest.php.

References RemoveXSS\process().

checkAttackIframe ( )
Test:

Definition at line 135 of file class.removexssTest.php.

References RemoveXSS\process().

checkAttackImageDynsrc ( )
Test:

Definition at line 179 of file class.removexssTest.php.

References RemoveXSS\process().

checkAttackImageLowsrc ( )
Test:

Definition at line 190 of file class.removexssTest.php.

References RemoveXSS\process().

checkAttackImageSrc ( )
Test:

Definition at line 157 of file class.removexssTest.php.

References RemoveXSS\process().

checkAttackImageSrcNoQuotesNoSemicolon ( )
Test:

Definition at line 168 of file class.removexssTest.php.

References RemoveXSS\process().

checkAttackImageStyleWithComment ( )
Test:

Definition at line 311 of file class.removexssTest.php.

References RemoveXSS\process().

checkAttackImageVbscript ( )
Test:

Definition at line 212 of file class.removexssTest.php.

References RemoveXSS\process().

checkAttackImportRemoteStylesheet ( )
Test:

Definition at line 377 of file class.removexssTest.php.

References RemoveXSS\process().

checkAttackInputImage ( )
Test:

Definition at line 146 of file class.removexssTest.php.

References RemoveXSS\process().

checkAttackLayer ( )
Test:

Definition at line 223 of file class.removexssTest.php.

References RemoveXSS\process().

checkAttackMeta ( )
Test:

Definition at line 234 of file class.removexssTest.php.

References RemoveXSS\process().

checkAttackMetaWithUrl ( )
Test:

Definition at line 245 of file class.removexssTest.php.

References RemoveXSS\process().

checkAttackMetaWithUrlExtended ( )
Test:

Definition at line 256 of file class.removexssTest.php.

References RemoveXSS\process().

checkAttackObject ( )
Test:

Definition at line 267 of file class.removexssTest.php.

References RemoveXSS\process().

checkAttackObjectEmbeddedXss ( )
Test:

Definition at line 278 of file class.removexssTest.php.

References RemoveXSS\process().

checkAttackRemoteStylesheet ( )
Test:

Definition at line 366 of file class.removexssTest.php.

References RemoveXSS\process().

checkAttackScriptAlert ( )
Test:

Definition at line 25 of file class.removexssTest.php.

References RemoveXSS\process().

checkAttackScriptAlertFromCharCode ( )
Test:

Definition at line 47 of file class.removexssTest.php.

References RemoveXSS\process().

checkAttackScriptSrcJs ( )
Test:

Definition at line 36 of file class.removexssTest.php.

References RemoveXSS\process().

checkAttackStyle ( )
Test:

Definition at line 201 of file class.removexssTest.php.

References RemoveXSS\process().

checkAttackStyleInAnonymousHtml ( )
Test:

Definition at line 322 of file class.removexssTest.php.

References RemoveXSS\process().

checkAttackStylesheet ( )
Test:

Definition at line 355 of file class.removexssTest.php.

References RemoveXSS\process().

checkAttackStyleUrl ( )
Test:

Definition at line 102 of file class.removexssTest.php.

References RemoveXSS\process().

checkAttackStyleWidth ( )
Test:

Definition at line 113 of file class.removexssTest.php.

References RemoveXSS\process().

checkAttackStyleWithBackground ( )
Test:

Definition at line 344 of file class.removexssTest.php.

References RemoveXSS\process().

checkAttackStyleWithBackgroundImage ( )
Test:

Definition at line 333 of file class.removexssTest.php.

References RemoveXSS\process().

proccessValidStrings (   $input)
Test:
Parameters
string$inputValue to test processValidDataProvider

Definition at line 463 of file class.removexssTest.php.

References RemoveXSS\process().

processDataProvider ( )
Returns
array<array> input strings and expected output strings to test
See also
processWithDataProvider

Definition at line 391 of file class.removexssTest.php.

processValidDataProvider ( )

Allowed combinations

Definition at line 440 of file class.removexssTest.php.

processWithDataProvider (   $input,
  $expected 
)
Test:
Parameters
string$inputinput value to test
string$expectedexpected output value

processDataProvider

Definition at line 429 of file class.removexssTest.php.

References RemoveXSS\process().