Oleh: rodin | 28.11.2009

Firefox Indonesia and HTTP Error 501

If you are using Firefox Indonesian version and getting HTTP error 501 Not Implemented on some websites, here is an info.

The culprit lies on the modsecurity installation on Apache webserver. The rules are:

  • For modsecurity 2.5.10 (tested), using Core ModSecurity Rule Set ver.2.0.3: Rule id 958885 on modsecurity_crs_40_generic_attacks.conf around line 253 (254?)
  • For modsecurity 2.1.7 (tested) using Core ModSecurity Rule Set ver.1.5.1: Rule id 950006 on modsecurity_crs_40_generic_attacks.conf around line 105-108

Workarounds:

  • For modsecurity 2.5.10, workaround is to disable rule id 958885 in file modsecurity_crs_40_generic_attacks.conf
  • For modsecurity 2.1.7 with core rules ver 1.5.1, workaround is to remove string “|id” (yes, remove that pipe character also) on the regular expression of rule 950006 in file modsecurity_crs_40_generic_attacks.conf

Tested using:

  • Web browser:
    • Firefox 3.6 (Localized version: Indonesia, nightly build) using following User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; id; rv:1.9.2b5pre) Gecko/20091126 Namoroka/3.6b5pre
    • Firefox 3.6 (Localized version: Indonesia) on other platforms (win32 and linux)
    • Released versions: Firefox 3.5, Firefox 3.0 (Localized version: Indonesia)
    • wget -U “Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; id)”.
  • Webserver:
    • CentOS 5.4 on VirtualBox, using compiled Apache (2.2.14) and compiled Modsecurity (2.1.7)
    • Fedora 10 on VirtualBox, using Apache RPM (2.2.11-2.fc10) and Modsecurity RPM (2.5.10-2.fc10)

I’ve reported the bug to modsecurity.org: https://www.modsecurity.org/tracker/browse/CORERULES-26 (you will need a login to view)

Update: tajidyakub has dicussed this this thread a year ago.

Update 2: Fix the rule id in the workaround

Update 3: Added the pipe character too, thanks to gregorius.

About these ads

Tanggapan

  1. [...] 501 (Not Implemented) jika diakses dari Firefox Bahasa Indonesia. Menurut beliau ada yang harus dihapus sedikit pada rules modsecurity. Lakukan back up sebelum melakukan [...]

  2. Waaaaaaakkkkk….!!!!! Orang wiki…., orang firefox juga…. jangan2 orang linuk bankon juga nech…. :)

    Sujuuuuud…..!!!!!!

  3. Mas, sampai versi terbaru, firefox bahasa indonesia-nya masih method not implemented ! harus report kemana yah ? supaya tidak perlu modif2 modsecurity

    • Laporkan saja di URL bugnya :)
      BTW, yang buat modsecurity juga bilang itu (too many) false positif
      kok (silakan masuk ke URL bugnya untuk melihat komentar pembuatnya).
      Saya nggak ngikuti perkembangan versinya.
      Jadi saran saya: delete saja rulenya.
      Salam

  4. pankal pokoknya, lakukan yang terbaik!


Tinggalkan Balasan

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Ubah )

Twitter picture

You are commenting using your Twitter account. Log Out / Ubah )

Facebook photo

You are commenting using your Facebook account. Log Out / Ubah )

Connecting to %s

Kategori

Ikuti

Get every new post delivered to your Inbox.

%d bloggers like this: