Go Back   Web Hosting UK Forums | Linux Windows Dedicated Server and cPanel VPS Hosting Forum > Support > Internet Security

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-22-2006, 06:31 PM
Pumazooma's Avatar
Senior Member
 
Join Date: Jun 2006
Location: Oxford
Posts: 271
Default mod_security

I've just had an interesting afternoon trying to sort out a problem on my forum. Having now fixed it I'd like to know if someone can tell me why the answer is what it is.

I run a phpBB forum and had a user who was having problems sending a PM. It looked like a fairly standard message but each time he tried to send it he got

Quote:
Not Acceptable
An appropriate representation of the requested resource /forum/privmsg.php could not be found on this server.
I tried sending it too and had no luck despite test messages working.

After consulting an online operator who assured me it wasn't a server issue I did some reading around and found out it's related to a server side application called mod_security which has a list of disallowed words or characters (for security reasons).

After chopping the PM up into sections and test sending it, I managed to narrow it down to one single character that was causing the problem.

é

The message contained the word coupé.

So, my question is, why is é such a major security problem to be on a disallowed list?
Reply With Quote
  #2 (permalink)  
Old 08-16-2006, 01:07 PM
Pumazooma's Avatar
Senior Member
 
Join Date: Jun 2006
Location: Oxford
Posts: 271
Default

No one got an answer for this?
Reply With Quote
  #3 (permalink)  
Old 08-16-2006, 01:28 PM
Administrator
 
Join Date: Mar 2006
Posts: 1,688
Default

Hello Pumazooma,

We have customized rules in mod_security on our server and most of the commands that are executed by guys running exploits from browser are turned off in mod_security. There must have been something in your private message which was turned off in mod_security. If you can let me know the exact time you will be trying same message then I can check the logs on the server and make out which word is getting blocked in mod_security.
Reply With Quote
  #4 (permalink)  
Old 08-16-2006, 01:36 PM
Junior Member
 
Join Date: Aug 2006
Posts: 12
Default

The é character exists outside the basic characters. (I am not sure of it's ASCII or UNICODE values) I would assume that mod_security bans all non-standard characters from strings just to ensure that you can't break any applications it is protecting. Personally, I find that PHP is fairly robust and the escape() function does a very good job on its own but you can never guess what might break a proprietary application because you don't know what characters they might use for delimiters, so the safest bet would be to only allow a-z, A-Z, 0-9 and the common special characters.

That is my guess...
__________________
Why me?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:34 PM.
Copyright 2002-2007 WebHosting.uk.com. All rights reserved.
Web Hosting UK Forum