Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2012-05-16 04:45:24

treblesix
New member
Registered: 2012-05-16
Posts: 4

Postback security issues when a table is inserted

Hi,

I am using Xinha ...
Release:         Trunk (Wed, 12 May 2010 09:40:06 +1200)
Head:            http://svn.xinha.org/trunk/XinhaCore.js
Revision:        1263
Last Changed By: gogo

Everything works fine locally, but when I put on my live webserver, I keep getting the error below every time I insert a table into the textarea using the 'INSERT TABLE' button.

403 : Forbidden . You do not have permission to access this document.


If I switch to HTML mode and insert a table manually, it all works fine.

I am guessing its a security issue with posting HTML, but I don't get why it only does it with tables. Any help greatly appreciated!
An example of the HTML code causing this issue .............

<table style="width: 100%; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; border-top-color: #000000; border-right-color: #000000; border-bottom-color: #000000; border-left-color: #000000; border-image: initial; border-collapse: collapse; " cellpadding="5">
    <tbody>
      <tr>
        <td style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; border-top-color: #000000; border-right-color: #000000; border-bottom-color: #000000; border-left-color: #000000; border-image: initial; "> </td>
      </tr>
    </tbody>
  </table>
  <table style="width: 100%; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; border-top-color: #000000; border-right-color: #000000; border-bottom-color: #000000; border-left-color: #000000; border-image: initial; border-collapse: collapse; display: table; " cellpadding="5" class=" htmtableborders">
    <tbody> </tbody>
  </table>


Many Thanks,
Trebz

Offline

#2 2012-05-18 14:40:52

treblesix
New member
Registered: 2012-05-16
Posts: 4

Re: Postback security issues when a table is inserted

----------------
Update

This does not happen using IE9, but does when using Chome v18 and Firefox v12

Offline

#3 2012-05-19 06:34:34

treblesix
New member
Registered: 2012-05-16
Posts: 4

Re: Postback security issues when a table is inserted

-----
Update again.

This issue happens every time the table dialogue window is accessed. Any ideas why this is happening ? Surely other people have had this issue!

Offline

#4 2012-05-21 05:36:47

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: Postback security issues when a table is inserted

Almost certainly this is caused by mod_security on your server.  Check in your server logs to find out what rule in mod_security is being triggered.


James Sleeman

Offline

#5 2012-05-22 02:46:48

treblesix
New member
Registered: 2012-05-16
Posts: 4

Re: Postback security issues when a table is inserted

@ gogo. Many thanks. My hosting company has disabled the mod_security and it's now working correctly.

Offline

Board footer

Powered by FluxBB