[Bug 1213702] New: VUL-0: CVE-2023-38285: modsecurity: DoS Vulnerability in Four Transformations
https://bugzilla.suse.com/show_bug.cgi?id=1213702 Bug ID: 1213702 Summary: VUL-0: CVE-2023-38285: modsecurity: DoS Vulnerability in Four Transformations Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.5 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Apache Assignee: apache-bugs@suse.de Reporter: gianluca.gabrielli@suse.com QA Contact: qa-bugs@suse.de Target Milestone: --- Found By: --- Blocker: --- Vulnerability Details Included in ModSecurity functionality are dozens of transformation actions which support altering the representation of values so that further processing can be done on the modified values. This may be either more convenient to work with, or less prone to rule evasion. The ModSecurity team was recently alerted to a possible DoS issue in four of these transformations in ModSecurity v3. Thanks to the reporter for the investigation and for responsibly disclosing the issue. The affected transformations are: removeWhitespace, removeNull, replaceNull, and removeCommentsChar. The affected transformations were functionally correct. However, the implemented solutions would be inefficient if a malicious user were to submit a specially crafted HTTP request that triggered worst-case performance. The most dramatic delays can typically be prevented through common configuration items such as SecRequestBodyNoFilesLimit with the default value of 131072 suggested in modsecurity.conf-recommended. However, even with this limit in place, a dozen or more executions of these transformations could result in multiple seconds of delay for a single HTTP transaction. If a large enough number of such malicious requests are running simultaneously, this could render the webserver unable to respond to legitimate requests in a timely manner. Mitigation For installations where immediate upgrade to the new version of the software is impractical, some mitigation possibilities are available. The nature of the issue results in large values causing a much greater effect on resources than numerous smaller values. A separate ModSecurity rule could be included to limit the size of each value to be processed, but still allow legitimate content to be processed unimpeded. For example, if there are many rules with the affected transformations executing against the ARGS collection, a rule such as the following could be included before other phase 2 rules: SecRule ARGS "@gt 16000" "id:1,phase:2,t:length,deny,status:403,msg:’ARG exceeds length limit'" Optionally, combined with further reducing the configured value for SecRequestBodyNoFilesLimit, potential delays precipitated by worst-case input can be significantly reduced. References https://www.trustwave.com/en-us/resources/blogs/spiderlabs-blog/modsecurity-... https://github.com/SpiderLabs/ModSecurity/commit/ab5658f2d4cfa5126db256cf3f9... -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1213702 https://bugzilla.suse.com/show_bug.cgi?id=1213702#c1 --- Comment #1 from Gianluca Gabrielli <gianluca.gabrielli@suse.com> --- Apache Modsecurity 3 is only shipped to openSUSE: - openSUSE:Backports:SLE-15-SP5/modsecurity - openSUSE:Factory/modsecurity - openSUSE:Backports:SLE-15-SP4/modsecurity For SLES related products we only ship modsecurity2 which is not affected -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1213702 Maintenance Automation <maint-coord+maintenance-robot@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1213702 David Anes <david.anes@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |IN_PROGRESS CC| |david.anes@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1213702 https://bugzilla.suse.com/show_bug.cgi?id=1213702#c3 --- Comment #3 from David Anes <david.anes@suse.com> --- Codestream Vers. Request -------------------------------------------------------------------------------- openSUSE:Backports:SLE-15-SP4 3.0.0 https://build.opensuse.org/request/show/1108931 openSUSE:Backports:SLE-15-SP5 3.0.0 https://build.opensuse.org/request/show/1108932 openSUSE:Factory 3.0.9 https://build.opensuse.org/request/show/1108933 Fixed all by updating to latest version 3.0.10. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1213702 https://bugzilla.suse.com/show_bug.cgi?id=1213702#c5 --- Comment #5 from Marcus Meissner <meissner@suse.com> --- openSUSE-SU-2023:0257-1: An update that fixes four vulnerabilities is now available. Category: security (moderate) Bug References: 1210993,1213702 CVE References: CVE-2020-15598,CVE-2021-42717,CVE-2023-28882,CVE-2023-38285 JIRA References: Sources used: openSUSE Backports SLE-15-SP5 (src): modsecurity-3.0.10-bp155.3.3.1 -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1213702 https://bugzilla.suse.com/show_bug.cgi?id=1213702#c6 --- Comment #6 from Marcus Meissner <meissner@suse.com> --- openSUSE-SU-2023:0269-1: An update that fixes four vulnerabilities is now available. Category: security (moderate) Bug References: 1210993,1213702 CVE References: CVE-2020-15598,CVE-2021-42717,CVE-2023-28882,CVE-2023-38285 JIRA References: Sources used: openSUSE Backports SLE-15-SP4 (src): modsecurity-3.0.10-bp154.2.3.1 -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1213702 David Anes <david.anes@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|apache-bugs@suse.de |security-team@suse.de -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com