Expected Findings
- Username is interpolated into the XPath expression.
- `' or '1'='1` matches every user node.
- Same XML store is queried for permissions.
The legacy auth path runs an XPath query built by string concatenation, so `' or '1'='1` flips authentication into a tautology.
CWE-643
expr = "/users/user[name='" + u + "' and pass='" + p + "']"