Skip to main content

easyapache, mod_sec 2.7 and MULTIPART_STRICT_ERROR

Comments

6 comments

  • quizknows
    I would honestly try just removing the "IQ %{MULTIPART_INVALID_QUOTING}," part from modsec2.conf, then run an EA and see if it reverts it. If it does revert, you could make a custom hook to "Fix" the file after EA runs. Otherwise, the easiest way to whitelist would be by script file name in modsec2.user.conf or other includes file. Say it's tripping on someones site "submit.php" file, then add this: SecRuleRemoveById 1234123456 That would whitelist all checks from the multipart rule on that particular filename, but it's better than whitelisting it completely for the server or domain.
    0
  • cPanelMichael
    Hello :) You could also utilize a third-party utility such as ConfigServer ModSecurity Control that makes it easier to manage the Mod_Security rules. Thank you.
    0
  • sebby
    Hi, I already tried removing the "IQ %{MULTIPART_INVALID_QUOTING}," part from modsec2.conf but it doesn't work. The legitimate scripts were still blocked. I think that this particular string is there only for verbose mod_sec reporting/logs (i.e. explain why the rule was triggered). I am already using ConfigServer ModSecurity Control and used it to whitelist the complete rule server wide while I find a solution. So again may question is: Is there a way to skip the IQ test? Kind Regards, Seb
    0
  • quizknows
    Did you restart apache after modifying the rule? Otherwise your change was not active.
    0
  • sebby
    [quote="quizknows, post: 1504581">Did you restart apache after modifying the rule? Otherwise your change was not active.
    Yes I did.
    0
  • quizknows
    I'd check the modsec audit log for further information at that point.
    0

Please sign in to leave a comment.