package Default

 Methods

Return true if PHP is running with PHP-FPM

isPhpFpm() : boolean
Static

Returns

boolean

Scan XML string for potential XXE and XEE attacks

scan(string $xml, \ZendXml\DomDocument $dom = null) : \SimpleXMLElement | \ZendXml\DomDocument | boolean
Static

Parameters

$xml

string

$dom

\ZendXml\DomDocument

Exceptions

\ZendXml\Exception\RuntimeException

Returns

\SimpleXMLElement\ZendXml\DomDocumentboolean

Scan XML file for potential XXE/XEE attacks

scanFile(string $file, \DOMDocument $dom = null) : \SimpleXMLElement | \ZendXml\DomDocument
Static

Parameters

$file

string

$dom

\DOMDocument

Exceptions

\ZendXml\Exception\InvalidArgumentException

Returns

\SimpleXMLElement\ZendXml\DomDocument

Heuristic scan to detect entity in XML

heuristicScan(string $xml) 
Static

Parameters

$xml

string

Exceptions

\ZendXml\Exception\RuntimeException

 Constants

 

ENTITY_DETECT

ENTITY_DETECT = 'Detected use of ENTITY in XML, disabled to prevent XXE/XEE attacks'