Security issues with CKEditor

Source: Internet
Author: User
CKEditor is a visual editing tool that, when committed, is "HTML code" on the server side of the post,

Although some unsafe code is automatically filtered in "WYSIWYG" mode on the client side, it does not guarantee that the server is receiving secure HTML code, does ckeditor provide a server-side HTML filtering tool?


Reply to discussion (solution)

The data submitted by the client is not always reliable, and it is necessary for the server to do some validation.

Does the ckeditor provide a server-side HTML filtering tool?
Want to know whether the plug-in has a function, then you have to look at its source code, the analysis will know,
But you still have to check the service side, to avoid the presence of bugs.

Thanks to the upstairs two-bit answer, it is true that server-side detection is performed. The key is how to ensure the integrity of HTML elements?

For example: Users upload non-standard HTML code, such as:

123

456789

Aaa

The code and the system's original code mix may be messed up, but you can't disable these HTML code, they may be a picture, a link or some style, how to avoid this situation?

If on the server side also to do this kind of processing, feel is to do a system, the difficulty is very big Ah, please expert advice ~ ~ ~

What labels should be filtered on the server side? Like what:






What else has to be filtered???

CKEditor where is the file code to be filtered when converting from Sourse mode to Wusiwug mode? Have to know the master please say Ah, thank you ~ ~ ~

  • 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.