Hey there.
I'm currently testing out the features of CouchCMS and am by no means an expert with this CMS. But what it comes down to, is that I've got a website with cms editable regions specified as following:
However, when I edit the text in this region with CouchCMS, the XSS sanitization kicks in (I presume) and changes the originally intended display of the code on the website. The output looks like this: http://imgur.com/UlZm7OE&8G6jZPv
The first image shows how it looks when the webpage is loaded and the second image shows what it looks like when viewing the source of the website.
I know that there is a 'bypass' for my problem, since changing 'richtext' to 'textarea' will prevent this from happening, but I'm really looking to keep working with 'richtext' as my cms editable region. What can I do to ensure that?
I'd love to hear from y'all knowledgeable folks!
I'm currently testing out the features of CouchCMS and am by no means an expert with this CMS. But what it comes down to, is that I've got a website with cms editable regions specified as following:
- Code: Select all
<cms:editable name='email_adres' type='richtext' no_xss_check='1'>
<div class="control-group">
<div class="controls">
<input class="span12" type="email" name="email" id="email" placeholder="* Uw e-mail..." />
<div class="error left-align" id="err-email">Vult u alstublieft een geldig email-adres in.</div>
</div>
</div>
</cms:editable>
However, when I edit the text in this region with CouchCMS, the XSS sanitization kicks in (I presume) and changes the originally intended display of the code on the website. The output looks like this: http://imgur.com/UlZm7OE&8G6jZPv
The first image shows how it looks when the webpage is loaded and the second image shows what it looks like when viewing the source of the website.
I know that there is a 'bypass' for my problem, since changing 'richtext' to 'textarea' will prevent this from happening, but I'm really looking to keep working with 'richtext' as my cms editable region. What can I do to ensure that?
I'd love to hear from y'all knowledgeable folks!
