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.