WeChat editor seems to be able to use code, but it is estimated that XXS is impossible. I want to know how WeChat filters and processes the data submitted by our edits?

Source: Internet
Author: User
The editor seems to be able to use code, but it is estimated that XXS is impossible. I want to know how to filter and process the data submitted by our edits? For example, I write an & amp; lt; imgsrc & quot; onclick & quot; alert (1) & quot; & amp; gt; how does the background handle such a situation? It seems that the editor can use code, but it is estimated that XXS is impossible. I want to know how to filter and process the data submitted by our edits?

For example

How does the background handle such a situation?

The HTML code is rich in text and text content, but it also avoids risks. I want to know how this situation is handled.

Hope you can give me some advice. Thank you!

Reply content:

The editor seems to be able to use code, but it is estimated that XXS is impossible. I want to know how to filter and process the data submitted by our edits?

For example

How does the background handle such a situation?

The HTML code is rich in text and text content, but it also avoids risks. I want to know how this situation is handled.

Hope you can give me some advice. Thank you!

When submitting an article, you can see the submitted parameters. To put it simply, escape:ScriptThe tag will be escaped. In this case, the tag will also be escaped. In additionTags are also escaped. Parameters are filtered twice in the browser and when submitted to the server. Therefore, the desire to construct a request to submit illegal Code cannot be fulfilled.

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.