Repository navigation
Conversation
brenosilva
referenced
this pull request
in chaizhenhua/ModSecurity
May 11, 2013
This was referenced Oct 17, 2013
This was referenced Apr 3, 2014
This was referenced Oct 28, 2014
Closed
Closed
daixiang0
pushed a commit
to daixiang0/ModSecurity
that referenced
this pull request
Apr 24, 2022
support logCb for disruptive actions
airween
pushed a commit
that referenced
this pull request
May 15, 2024
eduar-hte
pushed a commit
to eduar-hte/ModSecurity
that referenced
this pull request
Aug 6, 2024
g4mm4-VCF
added a commit
to g4mm4-VCF/ModSecurity
that referenced
this pull request
May 10, 2026
1. Add missing bound check before reading value_len (Copilot owasp-modsecurity#1 — real bug). After consuming the name field, blob_offset can advance to exactly blob_size; the subsequent 16-bit read of value_len from blob[blob_offset] / blob[blob_offset+1] would then OOB-read on a truncated blob. Fixed with the standard 2-byte check. 2. Drop tests/regression/persist_dbm/ (Copilot owasp-modsecurity#2-owasp-modsecurity#5). The directory was not wired into the Autotools build (no AC_CONFIG_FILES nor parent SUBDIRS entry), and the existing tests/regression/ is a Perl-based HTTP integration harness that doesn't fit a unit test of a static function. Wiring it into tests/Makefile.am where msc_test lives would require non-trivial restructuring; keeping the standalone harness outside the upstream tree (in the security advisory's PoC archive) is the cleaner path for now. Refs: PR owasp-modsecurity#3560 review comments by github-actions[bot] / Copilot.
1 of 3 tasks
g4mm4-VCF
added a commit
to g4mm4-VCF/ModSecurity
that referenced
this pull request
May 10, 2026
1. Add missing bound check before reading value_len (Copilot owasp-modsecurity#1 — real bug). After consuming the name field, blob_offset can advance to exactly blob_size; the subsequent 16-bit read of value_len from blob[blob_offset] / blob[blob_offset+1] would then OOB-read on a truncated blob. Fixed with the standard 2-byte check. 2. Drop tests/regression/persist_dbm/ (Copilot owasp-modsecurity#2-owasp-modsecurity#5). The directory was not wired into the Autotools build (no AC_CONFIG_FILES nor parent SUBDIRS entry), and the existing tests/regression/ is a Perl-based HTTP integration harness that doesn't fit a unit test of a static function. Wiring it into tests/Makefile.am where msc_test lives would require non-trivial restructuring; keeping the standalone harness outside the upstream tree (in the security advisory's PoC archive) is the cleaner path for now. Refs: PR owasp-modsecurity#3560 review comments by github-actions[bot] / Copilot.
g4mm4-VCF
added a commit
to g4mm4-VCF/ModSecurity
that referenced
this pull request
May 14, 2026
1. Add missing bound check before reading value_len (Copilot owasp-modsecurity#1 — real bug). After consuming the name field, blob_offset can advance to exactly blob_size; the subsequent 16-bit read of value_len from blob[blob_offset] / blob[blob_offset+1] would then OOB-read on a truncated blob. Fixed with the standard 2-byte check. 2. Drop tests/regression/persist_dbm/ (Copilot owasp-modsecurity#2-owasp-modsecurity#5). The directory was not wired into the Autotools build (no AC_CONFIG_FILES nor parent SUBDIRS entry), and the existing tests/regression/ is a Perl-based HTTP integration harness that doesn't fit a unit test of a static function. Wiring it into tests/Makefile.am where msc_test lives would require non-trivial restructuring; keeping the standalone harness outside the upstream tree (in the security advisory's PoC archive) is the cleaner path for now. Refs: PR owasp-modsecurity#3560 review comments by github-actions[bot] / Copilot.
fzipi
pushed a commit
that referenced
this pull request
Jun 8, 2026
Pin new Windows CI job to windows-2022
g4mm4-VCF
added a commit
to g4mm4-VCF/ModSecurity
that referenced
this pull request
Jul 2, 2026
1. Add missing bound check before reading value_len (Copilot owasp-modsecurity#1 — real bug). After consuming the name field, blob_offset can advance to exactly blob_size; the subsequent 16-bit read of value_len from blob[blob_offset] / blob[blob_offset+1] would then OOB-read on a truncated blob. Fixed with the standard 2-byte check. 2. Drop tests/regression/persist_dbm/ (Copilot owasp-modsecurity#2-owasp-modsecurity#5). The directory was not wired into the Autotools build (no AC_CONFIG_FILES nor parent SUBDIRS entry), and the existing tests/regression/ is a Perl-based HTTP integration harness that doesn't fit a unit test of a static function. Wiring it into tests/Makefile.am where msc_test lives would require non-trivial restructuring; keeping the standalone harness outside the upstream tree (in the security advisory's PoC archive) is the cleaner path for now. Refs: PR owasp-modsecurity#3560 review comments by github-actions[bot] / Copilot.
g4mm4-VCF
added a commit
to g4mm4-VCF/ModSecurity
that referenced
this pull request
Jul 2, 2026
1. Add missing bound check before reading value_len (Copilot owasp-modsecurity#1 — real bug). After consuming the name field, blob_offset can advance to exactly blob_size; the subsequent 16-bit read of value_len from blob[blob_offset] / blob[blob_offset+1] would then OOB-read on a truncated blob. Fixed with the standard 2-byte check. 2. Drop tests/regression/persist_dbm/ (Copilot owasp-modsecurity#2-owasp-modsecurity#5). The directory was not wired into the Autotools build (no AC_CONFIG_FILES nor parent SUBDIRS entry), and the existing tests/regression/ is a Perl-based HTTP integration harness that doesn't fit a unit test of a static function. Wiring it into tests/Makefile.am where msc_test lives would require non-trivial restructuring; keeping the standalone harness outside the upstream tree (in the security advisory's PoC archive) is the cleaner path for now. Refs: PR owasp-modsecurity#3560 review comments by github-actions[bot] / Copilot.
LoveDoLove
pushed a commit
to LoveDoLove-Cloud-Projects/ModSecurity
that referenced
this pull request
Sep 30, 2026
Address review feedback on PR owasp-modsecurity#1: replace the hand-maintained len fields in named_entities[] with a NAMED_ENTITY(name_lit, character) macro that derives the length from sizeof(name_lit) - 1 at compile time. Eliminates the bug class of mismatched length values. Uses plain aggregate initialization (no designated initializers), since the project mandates C++17 via AX_CXX_COMPILE_STDCXX(17, noext, mandatory). Also rename the unit-test fixture to drop the advisory identifier from its filename, so it does not leak the GHSA reference once published.
LoveDoLove
pushed a commit
to LoveDoLove-Cloud-Projects/ModSecurity
that referenced
this pull request
Sep 30, 2026
…n case Wire test/test-cases/unit/transformation-html-entity-decode.json into test-suite.in per review feedback on PR owasp-modsecurity#1 - without this the file was never picked up by `make check`. Add a full-pipeline regression case to test/test-cases/regression/ transformations.json reproducing the advisory scenario end to end. A literal "&" in a query string (e.g. q=javascript:execute_my_code()) is split into two ARGS by Transaction::extractArguments before htmlEntityDecode ever runs, since argument splitting on '&' happens before percent-decoding (src/transaction.cc). That delivery mechanism can't demonstrate the bypass regardless of the transformation fix. The ampersand must arrive percent-encoded (%26) to survive as literal text inside a single ARGS value, matching how a browser would encode it when submitting the payload as form/query data.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TODO Updated