PHP-096 / Intermediate
XPath injection
Why is this a problem?
Conditions are altered to retrieve arbitrary user nodes.
How to fix it
php
$nodes = $xp->query('//user[name=$n]', null, ['n' => $name]); // Use an API supporting variable binding or an input allowlist