Jump to content
Nytro

XPath Injection

Recommended Posts

XPath Injection

Similar to SQL Injection, XPath Injection attacks occur when a web site uses user-supplied

information to construct an XPath query for XML data. By sending intentionally malformed

information into the web site, an attacker can find out how the XML data is structured, or access

data that he may not normally have access to. He may even be able to elevate his privileges on the

web site if the XML data is being used for authentication (such as an XML based user file).

Querying XML is done with XPath, a type of simple descriptive statement that allows the

XML query to locate a piece of information. Like SQL, you can specify certain attributes to find,

and patterns to match. When using XML for a web site it is common to accept some form of input

on the query string to identify the content to locate and display on the page. This input must be

sanitized to verify that it doesn't mess up the XPath query and return the wrong data.

XPath is a standard language; its notation/syntax is always implementation independent,

which means the attack may be automated. There are no different dialects as it takes place in

requests to the SQL databeses.

Download:

http://sec4app.com/download/XPathInjection.pdf

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...