115 CSRF vulnerability and repair

Source: Internet
Author: User

Brief description: http get can be used to modify user data.
115 http://u.115.com/a large number of use of AJAX to trigger user operations, but AJAX requests not only do not use CSRF token, but also use GET to trigger, resulting in easy construction of a URL to trigger the operation
Vulnerability proof: in any forum to publish a picture of a link to the http://is.gd/jW4CF.jpg, if the user has logged on to the 115 network disk before accessing this page, will create a directory named fb5672 under the user's directory
Solution: Use POST instead of GET for AJAX, and use csrf token to defend against POST-based CSRF attacks

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.