Fresh fruit reader reflection xss

Source: Internet
Author: User

The web version of the fresh fruit reader directly brings hash into the js function and executes it... this is the first time you can see it...

Var HashListener = {
...
Init: function (c, ){
// Function a listens for hashc changes
This. onHashChanged = a |
Function (){};
...
},
...
}

HashListener. init ("/static/ui/history.htm ",
// Initialize HashListener. PageMgr. loadHistory is the function for listening to hashchange.
Function (c ){
PageMgr. loadHistory (c)
});

PageMgr. loadHistory = function (call ){
Var script = decodeURIComponent (call ));
If (script! = This. currentSrc ){
Try {
// Dynamic execution
Eval (script );
This. currentSrc = script
} Catch (ex ){
Console. log (ex );
Return false
}
}
Return true
}


Solution:

Filter it out. A big wave of google reader is coming again.

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.