XPath injection
XPath
Operator list
Select nodes
/ #select root
// #select all nodes regardless of position
*[1] #current node
name(*[1]) #name of current node
<node>/ #select all immediate children of <node>
<node>// #select all children of <node> including sublevels
<node>/<sub> #select a child of <node> named <sub>
<node>//<sub> #select a child of <node> named <sub> regardless of positionAttributes
@ #select an attribute
/@<name> #select all attributes named <name>
<node>[@<attr>] #select a node of type <node> with attribute <attr>
<node>[@<attr>='val'] #select a node of type <node> that satisfy the condition
<node>/text() #get the plain text included between two tags of type <node>
<node>/position() #get current node index related to its brothersComplex select
Logic operators
Injection attacks
Testing for injection
Authentication bypass
Retrieve file structure
Find Root identifier
Build data
XCat
Last updated