You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@airween and I spent some time analysing reproducible segfaults on Alpine Linux. We were able to track the issue to PCRE but did not investigate further. The segfaults are triggered by some specific regular expressions only, such as the one for CRS rule 934140, in combination with the input length.
Steps to reproduce the issue:
download the tar archive and extract the two scripts
set up a fresh installation of Alpine Linux (do not use LXC, the segfaults did not manifest when we tried that)
copy the setup.sh and run.sh scripts to the newly installed system, e.g., to /tmp
run setup.sh to compile httpd, ModSecurity and set up CRS
run run.sh to configure CRS and httpd and start httpd
run the following curl command against the started httpd:
You'll see an "empty reply" in curl and a segfault in the httpd error log.
@airween and I have decided not to investigate further and to not fix the issue at this time. We are not aware of anyone having encountered this before. We may reconsider if others step forward with the same problem. In addition, ModSecurity 2 is switching to PCRE2 by default and the segfaults do not occur with PCRE2.
@airween and I spent some time analysing reproducible segfaults on Alpine Linux. We were able to track the issue to PCRE but did not investigate further. The segfaults are triggered by some specific regular expressions only, such as the one for CRS rule 934140, in combination with the input length.
Steps to reproduce the issue:
setup.sh
andrun.sh
scripts to the newly installed system, e.g., to/tmp
setup.sh
to compile httpd, ModSecurity and set up CRSrun.sh
to configure CRS and httpd and start httpdYou'll see an "empty reply" in curl and a segfault in the httpd error log.
@airween and I have decided not to investigate further and to not fix the issue at this time. We are not aware of anyone having encountered this before. We may reconsider if others step forward with the same problem. In addition, ModSecurity 2 is switching to PCRE2 by default and the segfaults do not occur with PCRE2.
alpin-segfault-setup.tar.gz
The text was updated successfully, but these errors were encountered: