Nytro Posted September 6, 2010 Report Posted September 6, 2010 XPath InjectionSimilar to SQL Injection, XPath Injection attacks occur when a web site uses user-suppliedinformation to construct an XPath query for XML data. By sending intentionally malformedinformation into the web site, an attacker can find out how the XML data is structured, or accessdata that he may not normally have access to. He may even be able to elevate his privileges on theweb 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 theXML 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 inputon the query string to identify the content to locate and display on the page. This input must besanitized 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 inrequests to the SQL databeses.Download:http://sec4app.com/download/XPathInjection.pdf Quote