CSRF vulnerability and repair in Sina Blog

Source: Internet
Author: User

Brief description:

Modify a function to get for submission.
Detailed description:

Set the blog permission to GET and submit. you can insert a link image in the blog, so that the target user can open the permission.
Proof of vulnerability:

For example, you can set the permission on the page http://control.blog.sina.com.cn/blogprofile/profilepower.php.
1. Insert in blog
Http://control.blog.sina.com.cn/riaapi/conf/update_user_private.php? Uid = *** & privatekey = cms % 2 Cpageset % 2 Cinvitationset % 2 Cspamcms % 2 Cquote % 2 Cfoot % 2 Cisprivate & privatevalue = 4% 2C0% 2C0% 2C1% 2C0% 2C0% 2C0% 2C0 image Link
2. When a user logs on, the user is tempted to click on this blog, so that the user ID is *** (the blog directory address is exposed) and the blog is open to all users.

Solution:

1. Modify get to post for submission
2. token Mechanism

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.