Skip to content

TODO - #1

Closed
alanjumpi wants to merge 1 commit into
owasp-modsecurity:masterfrom
alanjumpi:master
Closed

alanjumpi wants to merge 1 commit into
owasp-modsecurity:masterfrom
alanjumpi:master

Conversation

@alanjumpi

Copy link
Copy Markdown

TODO Updated

@brenosilva brenosilva closed this Oct 23, 2012
brenosilva referenced this pull request in chaizhenhua/ModSecurity May 11, 2013
@pbesedm pbesedm mentioned this pull request May 8, 2015
@pbesedm pbesedm mentioned this pull request Mar 12, 2016
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.
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.
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