Cookie injection procedure

Source: Internet
Author: User



Cookie injection procedure
1) Search for an image like "*. asp? Id = x "class with parameter rul
2) Remove "id = x" to check whether the page is normal. If it is abnormal, it indicates that the difference works directly during data transmission.
3) Clear the browser address and enter "javascript: alert (document. cookie =" id = "+ escape (" x "));"
Press Enter to return a dialog box with the content "id = x", and then refresh the page with the original url. If the display is normal,
Indicates that the Code collects data in the format of Request ("ID"). cookies can be used for injection.
4) Repeat the preceding steps to inject the Regular Script Injection judgment statement into the above URL :"
Javascript: alert (document. cookie = "id =" + escape ("x and 1 = 1 ")"
Or
Javascript: alert (document. cookie = "id =" + escape ("x and 1 = 2") is the same as normal Script Injection,
If both normal and abnormal pages are returned, the script system has an injection vulnerability and can be injected with cookies.
5) use the conventional injection statement Construction Method for Injection
 
From firehalt's BLOG

Related Article

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.