Zend Framework  3.0
Public Member Functions | List of all members
MultibyteTest Class Reference

ZF2015-06 More...

Public Member Functions

 multibyteEncodings ()
 
 getXmlWithXXE ()
 
 invokeHeuristicScan ($xml)
 Invoke ZendXml::heuristicScan with the provided XML.
 
 testDetectsMultibyteXXEVectorsUnderFPMWithEncodedStringMissingBOM ($encoding, $bom, $bomLength)
 multibyteEncodings heuristicDetection
 
 testDetectsMultibyteXXEVectorsUnderFPMWithEncodedStringUsingBOM ($encoding, $bom)
 multibyteEncodings
 
 getXmlWithoutXXE ()
 
 testDoesNotFlagValidMultibyteXmlAsInvalidUnderFPM ($encoding)
 multibyteEncodings
 
 testDetectsXXEWhenXMLDocumentEncodingDiffersFromFileEncoding ($encoding, $bom)
 multibyteEncodings mixedEncoding
 

Detailed Description

ZF2015-06

Member Function Documentation

getXmlWithoutXXE ( )
getXmlWithXXE ( )
invokeHeuristicScan (   $xml)

Invoke ZendXml::heuristicScan with the provided XML.

Parameters
string$xml
Returns
void
Exceptions
Exception\RuntimeException
multibyteEncodings ( )
testDetectsMultibyteXXEVectorsUnderFPMWithEncodedStringMissingBOM (   $encoding,
  $bom,
  $bomLength 
)

multibyteEncodings heuristicDetection

testDetectsMultibyteXXEVectorsUnderFPMWithEncodedStringUsingBOM (   $encoding,
  $bom 
)

multibyteEncodings

testDetectsXXEWhenXMLDocumentEncodingDiffersFromFileEncoding (   $encoding,
  $bom 
)

multibyteEncodings mixedEncoding

testDoesNotFlagValidMultibyteXmlAsInvalidUnderFPM (   $encoding)

multibyteEncodings