Skip to content

TODO updated - #2

Merged
brenosilva merged 1 commit into
owasp-modsecurity:remotes/trunkfrom
alanjumpi:remotes/trunk
Oct 26, 2012
Merged

brenosilva merged 1 commit into
owasp-modsecurity:remotes/trunkfrom
alanjumpi:remotes/trunk

Conversation

@alanjumpi

Copy link
Copy Markdown

For tests

@alanjumpi alanjumpi closed this Oct 25, 2012
@alanjumpi alanjumpi reopened this Oct 25, 2012
@alanjumpi

Copy link
Copy Markdown
Author

TODO updated

brenosilva added a commit that referenced this pull request Oct 26, 2012
@brenosilva
brenosilva merged commit f23dbcb into owasp-modsecurity:remotes/trunk Oct 26, 2012
@pbesedm pbesedm mentioned this pull request May 8, 2015
@pbesedm pbesedm mentioned this pull request Mar 12, 2016
@wergoth wergoth mentioned this pull request Jul 25, 2017
abhijoglekar pushed a commit to avinetworks/ModSecurity that referenced this pull request Aug 22, 2017
…ecurity#2)

* Support --enable-debug-logs=no option of configure script

* Undo unintended white space changes

* Undo more unintended white space changes

* Address review comments - thanks Mirko

* Address more review comments - thanks Mirko
zimmerle pushed a commit that referenced this pull request Aug 24, 2017
* Support --enable-debug-logs=no option of configure script

* Undo unintended white space changes

* Undo more unintended white space changes

* Address review comments - thanks Mirko

* Address more review comments - thanks Mirko
@martinhsv martinhsv mentioned this pull request Apr 29, 2020
EunjinLee08 pushed a commit to EunjinLee08/ModSecurity that referenced this pull request Nov 10, 2025
…fdf6_bump-cosign-400md

Create 박성하_e1ffdf6_Bump-cosign-4.0.0.md
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 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.
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.
rohadistp pushed a commit to rohadistp/ModSecurity that referenced this pull request Oct 18, 2026
Address review feedback on PR owasp-modsecurity#2: bring v2 in line with the v3 patch by
adding a len field to msc_html_named_entities[] and populating it via 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.

The new length field lets the lookup short-circuit on length mismatch
before the strncasecmp call. The text-entity call site already had the
token length available as j - k, so the lookup signature changes from
(name, out) to (name, name_len, out) and the apr_pstrmemdup() of the
token can be dropped -- the input bytes are passed directly with their
length, saving a pool allocation per text entity.

Numeric-entity branches still use apr_pstrmemdup() because strtol()
requires a NUL-terminated copy, so mp remains in use.
rohadistp pushed a commit to rohadistp/ModSecurity that referenced this pull request Oct 18, 2026
…sp-modsecurity#2)

Fix the "unknown entity passes through unchanged" case in
htmlEntityDecode.t: ret should be 0 since input equals output (no
transformation applied), matching the convention used elsewhere (e.g.
urlDecodeUni.t). It was incorrectly set to 1.

Add a regression case to 00-transformations.t reproducing the advisory
end to end via a JSON request body, so the named entity survives as
literal text in a single ARGS value instead of being split like a
query-string argument would be. Based on the case suggested in review,
with the duplicate "request =>" key removed (the suggested diff defined
it twice in the same hash - a leftover GET request that would have been
silently overwritten by the POST one) and indentation matched to the
file's existing tab convention.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants