Reflection xss of Baidu Security Center

Source: Internet
Author: User

URL parameters are output to js Code without escaping, resulting in xss vulnerability. this vulnerability may expose sensitive personal information under the domain name of the Baidu Security Center. For details, go to the activation mailbox page after registering an account, page URL with the user's mailbox address user mailbox will be output to two places, one is html, escape, the other is js, not escape, resulting in xss attack risk https://passport.baidu.com/v2? Regnotify & email = % 22; alert ('xss'); % 3C/script % 3E
No js escape is performed for the email parameter output on the page, resulting in xss VulnerabilitySolution:

1. Escape the output parameters directly. Note the differences between html and js. 2. Pass the parameters to the activation email page through POST. 3. The parameters in the URL should not be displayed on the page as much as possible.

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.