First, understand the updatexml() function UPDATEXML (XML_document, XPath_string, new_value); The first parameter: XML_document is in String format and is the name of the XML document object, Doc in this article. The second parameter: XPath_string (a string in Xpath format). If you don’t understand Xpath syntax, you can find a tutorial online. The third parameter: new_value, in String format, replaces the found data that meets the conditions Function: Change the value of the node that meets the conditions in the document Change the value of XPATH_string in XML_document And our injection statement is: updatexml(1,concat(0x7e,(SELECT @@version),0x7e),1) The concat() function concatenates them into a string, so it does not conform to the format of XPATH_string, resulting in a format error. ERROR 1105 (HY000): XPATH syntax error: ':root@localhost' Summary of xpath syntax format: https://www.jb51.net/article/125607.htm Summarize The above is all the content of this article about MYSQL updatexml() function error injection analysis. I hope it will be helpful to everyone. Interested friends can refer to: Detailed explanation of MySQL prepare principles, several important MySQL variables, methods of deleting MySQL table data, etc. If you have any questions, you can leave a message at any time. Everyone is welcome to communicate and discuss. I would also like to thank my friends for their support of this site. You may also be interested in:
|
>>: VUE+Express+MongoDB front-end and back-end separation to realize a note wall
This article shares the specific code of JS+Canva...
In the Linux system, environment variables can be...
1. View existing modules /usr/local/nginx/sbin/ng...
Table of contents Find and fix table conflicts Up...
Table of contents 1. Scene introduction 2 Code Op...
Set the background image for the table header. Yo...
<br />For every ten thousand people who answ...
Source of the problem As we all know, all network...
1. Demand A picture moves from left to right in a...
1. Unzip to the location where you want to instal...
The layout problem of irregular picture walls enc...
Table of contents 1. What is a template string? 2...
Introduction to void keyword First of all, the vo...
In the process of database operation, it is inevi...
Table of contents 1. New II. Modification element...