"Sqli-labs" LESS20 Post-cookie injections-uagent field-error based (Error-based Cookie header POST injection)

Source: Internet
Author: User

After successful login with admin admin, the cookie information is saved and displayed.

If you do not click the Delete Your cookie! button, then access

http://localhost/sqli-labs-master/Less-20/

There is no need to log in again, the username is obtained via cookies and is not verified.

Modified by Browser plugin Editthiscookie

Add single quotation marks and refresh the page

I found the error message from MySQL.

$sql= "SELECT * from Users WHERE username= '$cookee' LIMIT 0,1";

As this shows both the queried field and the error message

So it's possible to burst the data with an error in the union Select and Updatexml functions.

It is important to note that if you use the union select you should be aware that because there is only one display of data, then the previous query can not have results, the uname to a nonexistent user name can be

"Sqli-labs" LESS20 Post-cookie injections-uagent field-error based (Error-based Cookie header POST injection)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.