Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 251 Bytes

TaintedXpath.md

File metadata and controls

12 lines (9 loc) · 251 Bytes

TaintedXpath

Emitted when user-controlled input can be passed into a xpath query.

<?php

function queryExpression(SimpleXMLElement $xml) : array|false|null {
    $expression = $_GET["expression"];
    return $xml->xpath($expression);
}