Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8438963
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T07:52:16+00:00 2026-06-10T07:52:16+00:00

My situation is a little bit different, I’m using CKEditor for both editing and

  • 0

My situation is a little bit different, I’m using CKEditor for both editing and displaying things, and the submitted string will only be shown inside CKEditor, nowhere else.

I tried this XSS:

<IMG """><SCRIPT>alert("XSS")</SCRIPT>">

I added this to the database directly from backend, not by CKEditor since I know it doesn’t matter what CKEditor does before going into the database as the attacker could always send some raw http request without dealing with CKEditor.

To my surprise CKEditor shows me this:

{cke_protected_1}">

So CKEditor is doing something to prevent XSS, and I realized that the XSS security could be achieved from client side.

My question is, how good is CKEditor doing and if it’s reliable if I only use no-attribute tags plus

<a><img><table><span><pre>
(<a> and <table> could be disabled if it makes things easier)

PS: The CKEditor is using default settings.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T07:52:17+00:00Added an answer on June 10, 2026 at 7:52 am

    You should protect against XSS on the server side. If you have this possibility, just strip any unsafe data before saving it.

    Note that wysiwyg editors must protect somehow JavaScript code included in edited HTML, in order to not destroy edited contents, which includes e.g. hiding in Wysiwyg mode <script> tags or changing onclick event handlers into “data-” attributes.

    {cke_protected_1} is a result of an attempt to hide the <script> tag by CKEditor, that did not work entirely properly because of a bit “hackish” HTML taken from XSS Cheat Sheet.

    The partial built-in protection in wysiwyg editors should not be considered as a replacement for a server side protection against XSS.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I will try to explain the situation as it is a little bit more
I'm using jQuery 1.5.1 and Knockoutjs 2.0.0. My situation's a little bit complicated, but
I have seen a similar related post but my situation is a little different
There's a little bit uncommon situation in my app, that is, I have to
I have a little bit of a confusing situation :) I have a JavaScript
A little bit about my current situation: I have a decent knowledge of OOP
**Edit:**I am sorry, but the situation could be a little bit more complex than
I'm in a little bit weird situation. The situation I currently have is typically
I just started using Active Admin Gem. I have a little bit of a
I have a funny little situation on my hands. I have a httpModule on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.