UK WEB HOSTING FORUM FOR DISCUSSION ON WEB HOSTING SERVICE AND SUPPORT
LINUX HOSTING WINDOWS HOSTING PACKAGES SHOPPING CART OSCOMMERCE ZEN CART AGORA
ECOMMERCE HOSTING ASP MSSQL FRONTPAGE HOSTING PHP MYSQL HOSTING DISCUSSION FORUM
CPANEL RESELLER HOSTING DEDICATED SERVER VPS HOSTING PLESK VIRTUOZZO
Quick Search
Your forum announcement here!

  UK Web Hosting | Dedicated Server Windows and Linux VPS Forum > Technical Support > System Security

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-07-2008, 16:36
new member
 
Join Date: Jan 2008
Posts: 4
Default ModSecurity vs FF3 and XMLHttpRequest

Dose anyone know why post requests made by firefox 3 using XMLHttpRequest are blocked buy mod_security?
All the other browsers (incl ff2) work fine and when I turn the SecFilterEngine off, firefox 3 can be used as well.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 08-07-2008, 17:16
Chief Technical Officer
 
Join Date: Jun 2007
Posts: 130
Default

Versions of Firefox prior to version 3 always send the request
using UTF-8 encoding; Firefox 3 properly sends the document using the
encoding specified by data.xmlEncoding, or UTF-8 if no encoding is
specified. You can refer developer.mozilla.org/en/docs/XMLHttpRequest for further information.

Regards,
Nick J.

Last edited by NickJ; 08-07-2008 at 17:59.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 08-07-2008, 17:21
Chief Technical Officer
 
Join Date: Jun 2007
Posts: 130
Default

Also, as per computer-internet.marc8.com/encoding-issue-xmlhttprequest-and-firefox-3-christian-sto

In Firefox 3.0.0 there is a "strange" regression issue regarding the encoding of XMLHttpRequest requests.

It's not a bug per se, it's just different behavior, which we ran into (and no other browser does it this way)

What we basically do on the client side in javascript:

this.data = new XMLHttpRequest(); this.data.open('POST', dataURI); this.data.send(xml);

where "xml" is a DOMDocument Object.

In Firefox 2.0 this request came with a

Content-Type: application/xml

and the xml in the POST...

Last edited by NickJ; 08-07-2008 at 17:53.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 08-07-2008, 22:12
new member
 
Join Date: Jan 2008
Posts: 4
Default

Thanks for replying.
I have read through the pages referenced but I am not sure what I need to do.
the second page seems to be about what to do when the script receiving xml gets it in the wrong encoding.

My problem seems to be it doesn't get that far and I just get index.php sent back to me unless I turn off mod_security.

these are the first headers that are sent
it dose have the
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
which seems to be different from other browsers
but i don't understand what I need to change

Code:

POST /**** HTTP/1.1
Host: ******
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9) Gecko/2008052906 Firefox/3.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-gb,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Referer: ******
Content-Length: 33
Pragma: no-cache
Cache-Control: no-cache
***what ever i sent here


HTTP/1.x 302 Found
Date: Tue, 08 Jul 2008 21:10:37 GMT
Server: Microsoft-IIS/5.0
Location: /
Keep-Alive: timeout=15, max=99
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1
p.s why dose the server say it is Microsoft-IIS not apache?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 08-07-2008, 22:33
eUKhost.com's Avatar
Chief Marketing Officer
 
Join Date: Sep 2005
Posts: 4,771
Send a message via AIM to eUKhost.com Send a message via MSN to eUKhost.com Send a message via Skype™ to eUKhost.com
Default

Quote:
Originally Posted by MarkP View Post
p.s why dose the server say it is Microsoft-IIS not apache?
Hi Mark,

We have changed banners on all our servers to misguide hackers / crackers. We've left no way for the kids to find out actual version of running softwares on our servers.

I have asked other members of staff to answer your other questions.
__________________
UK Web Hosting || Business Hosting || eUKhost Knowledgebase
Toll Free : 0808 262 0255 || MSN : mark @ eukhost.com || AIM : eukmark
A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
__________________________________________________

Great Opportunity :: Join our Affiliate Program for FREE and earn 20% commission on each referral.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 14-07-2008, 22:51
new member
 
Join Date: Jun 2008
Location: uk
Posts: 8
Send a message via MSN to smiffsoft Send a message via Yahoo to smiffsoft
Default

Is this thread any help?

FF3 using POST with XMLHttpRequest • mozillaZine Forums
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 16-07-2008, 12:29
new member
 
Join Date: Jan 2008
Posts: 4
Default

Quote:
Originally Posted by smiffsoft View Post
Is this thread any help?
Haha. Not really, I started that thread.
I didn't understand what was happening with ff3. So now I know it sends the content-type header differently (including the charset) and that the request seems to get blocked by the security settings on the server (which is why I started this thread).

But I am still fairly confused and don't know what I have to change in the browser side code or on the server (without turning the filter off completely).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 14:18.

 

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by Web Hosting 3.1.0
Copyright © 2001-2008, eUKhost.com. All rights reserved.

 
Site Map

VPS Hosting
VPS Hosting plans

Dedicated Server Hosting
Dedicated Server plans

Business Web Hosting
100% uptime Hosting

Cpanel Hosting
cPanel Shared Hosting

Reseller Hosting
Reseller Web Hosting

Windows Hosting
Windows Shared Hosting

Windows VPS

Windows VPS Hosting

Semi Dedicated Servers
Semi-Dedicated Hosting

Dedicated Server Mirroring
Dedicated Server Mirroring

Webhosting Knowledgebase
Frequently asked Questions

Web Hosting Blog
eUKhost Blog

Web Hosting Support
Support Helpdesk

UK Data Center
eUKhost Datacenter

Web Hosting Forum
eUKhost Forum

Support Tutorials
Online Flash Tutorials

Offsite Back-up Plans
Remote Backup Service

Customer Testimonials
eUK Customer Testimonials


knowledgebase articles

eUKhost.com Services

Pre-Sales Questions
Pre-sales FAQ's

Domain Names
Domain registration FAQ's

cPanel Hosting
cPanel Hosting FAQ's

Windows Web Hosting
Plesk Control Panel

Reseller Hosting
Reseller Hosting FAQ's

VPS Hosting
Virtual Private Server

Semi-Dedicated Servers
Semi-Dedicated FAQ's

Dedicated Servers
Dedicated Server Hosting


popular blog categories


Web Hosting
Website Hosting articles

UK Web Hosting
UK Hosting articles

Dedicated Server Hosting
Dedicated Server guidelines

VPS Hosting
VPS hosting articles

cPanel Hosting
cPanel Hosting articles

Linux Operating System
Linux Operating techniques

Windows Web Hosting
Windows plesk articles

Web Hosting
Web Hosting Service