mod_security issue

Mehr
4 Jahre 4 Monate her #104396 von oldgit
oldgit erstellte das Thema mod_security issue
I have just been creating a survey and have noticed that it has generated a large number of notifications from mod_security on my server. Luckily, I have my IP address whitelisted so I am not locked out. I am using the latest update of LimeSurvey and a pretty standard rule set on mod_sec.

One example of the notice follows...
[Sun Feb 02 14:32:19 2014] [error] [client xxx.xxx.xxx.xxx] ModSecurity: Access denied with code 406 (phase 2). Pattern match "(?:\\\\b(?:(?:type\\\\b\\\\W*?\\\\b(?:text\\\\b\\\\W*?\\\\b(?:j(?:ava)?|ecma|vb)|application\\\\b\\\\W*?\\\\bx-(?:java|vb))script|c(?:opyparentfolder|reatetextrange)|get(?:special|parent)folder|iframe\\\\b.{0,100}?\\\\bsrc)\\\\b|on(?:(?:mo(?:use(?:o(?:ver|ut)|down|move|up)|ve)| ..." at REQUEST_FILENAME. [file "/usr/local/apache/conf/modsec2.user.conf"] [line "117"] [id "1234123404"] [msg "Cross-site Scripting (XSS) Attack"] [data ".cookie"] [severity "CRITICAL"] [tag "WEB_ATTACK/XSS"] [hostname "www.my-domain.net"] [uri "/third_party/jquery-cookie/jquery.cookie.js"] [unique_id "Uu5W89XlWkcAAFrjdzsAAAAI"]

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
4 Jahre 4 Monate her #104483 von DenisChenu
DenisChenu antwortete auf das Thema: mod_security issue
Hi,

Did you use "Adanced setting"/ timer settings ?
If yes: can you deactivate it and test again ?

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
4 Jahre 4 Monate her #104508 von oldgit
oldgit antwortete auf das Thema: mod_security issue

DenisChenu schrieb: Hi,

Did you use "Adanced setting"/ timer settings ?

Denis


Thanks, Denis, for your response. I'm not sure where I would find these settings. Are they in mod_sec or LimeSurvey's admin area? Anyway, I have disabled that rule for this subdomain as I was getting just too many false positives.

Thanks again...

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
4 Jahre 4 Monate her #104612 von DenisChenu
DenisChenu antwortete auf das Thema: mod_security issue
Hi,

It's because i don't think we use /third_party/jquery-cookie/jquery.cookie.js in all survey.

Just need to find : when we use it and if it's with the last Yii version.

Maybe you can put a bug rem=port with a "really" little survey ?

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
4 Jahre 3 Monate her - 4 Jahre 4 Wochen her #106337 von jelo
jelo antwortete auf das Thema: mod_security issue

DenisChenu schrieb: Hi,
It's because i don't think we use /third_party/jquery-cookie/jquery.cookie.js in all survey.


This ModSecure Rule [id "1234123404"] [msg "Cross-site Scripting (XSS) Attack"] is also triggered when just using the comfort updater.

It's not a problem of Limesurvey. The corerules ( spiderlabs.github.io/owasp-modsecurity-crs/ ) are containing this rule since years.

Perhaps the regex pattern is too broad or the jquery team would need to adapt some code.

Perhaps both are right and the administrator need to choose the rules casewise.
<LocationMatch /third_party/jquery-cookie/jquery.cookie.js>
  <IfModule mod_security2.c>
    SecRuleRemoveById 1234123404
    # SecRuleEngine Off
  </IfModule>
</LocationMatch>

There are a few ways to disable rules. www.modsecurity.org/documentation/
Letzte Änderung: 4 Jahre 4 Wochen her von c_schmitz.

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
4 Jahre 4 Wochen her #109116 von elbaloo
elbaloo antwortete auf das Thema: mod_security issue
I'm not sure of following... so, just to be sure:
Is this an issue with LimeSurvey, with jQuery, or just with very strict rulesets?

I'm asking because my hosting provider blocked some IPs from where I was accessing the application and after submitted a support ticket they told me that they "relaxed the rule for the domain that was causing the issue" (mine).

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
4 Jahre 4 Wochen her #109118 von jelo
jelo antwortete auf das Thema: mod_security issue
The rule was disabled for your domain. My example above only disables the rule for the path of jquery. If you are on a shared hosting it is normal to disable the rule domain/account wise.

It is a false positive with this specific mod_security rule.

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
4 Monate 1 Woche her #164021 von first
first antwortete auf das Thema: mod_security issue
HI jelo - Do you think the 406 response code I am getting is related to this topic? If so I will chase hosting team.

www.limesurvey.org/forum/can-i-do-this-w...to-r?start=15#164018

Survey Designer and Programmer

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Jetzt loslegen!

Melden Sie sich jetzt an, und erstellen Sie in wenigen Minuten Ihre erste Umfrage.

Account einrichten

Abonnieren Sie unseren Newsletter

Abonnieren Sie unseren Newsletter für alle Neuigkeiten rund um LimeSurvey
captcha