3701 Commits

Author SHA1 Message Date
JC247
57437a2b1d
Merge 7b040b37f4421ed34a4580f96df221d00d9f9e4e into e523d7223b5589e68de2c2a9428a4ba81a265e6f 2025-09-22 17:57:19 +05:30
Ervin Hegedus
e523d7223b
Merge pull request #3442 from airween/v3/caseinsruleremovetarget
fix: ignore case when evaluating exceptions
2025-09-17 21:25:28 +03:00
Ervin Hegedus
f49b3e520c
Update test/test-cases/regression/action-ctl_rule_remove_target_by_id.json
Co-authored-by: Max Leske <250711+theseion@users.noreply.github.com>
2025-09-17 09:17:23 +02:00
Ervin Hegedus
b85988d641
Update test/test-cases/regression/action-ctl_rule_remove_target_by_id.json
Co-authored-by: Max Leske <250711+theseion@users.noreply.github.com>
2025-09-17 09:17:15 +02:00
Ervin Hegedus
d8bb86b337
Eliminate compiler type mismatch warnings 2025-09-16 15:28:08 +02:00
Ervin Hegedus
c56da4ca9c
Force case comparison when check previously added exclusion 2025-09-16 15:10:51 +02:00
Ervin Hegedus
98b0a7c071
Add new test cases based on initial issue 2025-09-16 15:02:31 +02:00
Ervin Hegedus
52c1d48085
Merge pull request #3437 from airween/v3/removenonposixvars
fix: eliminate non-posix standard variables
2025-08-29 10:37:59 +03:00
Ervin Hegedus
a0f45a73b5
Typo fix
Co-authored-by: Felipe Zipitría <3012076+fzipi@users.noreply.github.com>
2025-08-25 16:11:58 +02:00
Ervin Hegedus
506bc97617
Eliminate non-posix standard variables 2025-08-25 15:37:04 +02:00
Ervin Hegedus
a07ed61e74
Merge pull request #3432 from szedenik-adam/auditlog-header
Add custom leading text to audit log lines
2025-08-13 20:45:19 +03:00
szedenik-adam
4e2788eb47 Merge branch 'v3/master' into auditlog-header 2025-08-13 09:26:21 +02:00
Ervin Hegedus
f9f4011a4b
Merge pull request #3434 from airween/v3/cppcheckfix2
chore: fix cppcheck warning
2025-08-13 10:04:20 +03:00
Ervin Hegedus
62cb73f31d
Add const modifier to variable 2025-08-12 21:36:52 +02:00
Ervin Hegedus
8b3269f4d1
Try to avoid any kind of type casting 2025-08-12 21:05:31 +02:00
Ervin Hegedus
e879711d87
Add extra SonarCloud supression msg; Change type to auto 2025-08-11 23:05:32 +02:00
Ervin Hegedus
9fea1ca454
Change cast type (fix SonarCloud issues) 2025-08-11 22:41:07 +02:00
Ervin Hegedus
47bc24a808
Decrease code nest level 2025-08-11 22:28:22 +02:00
Ervin Hegedus
12809656a6
Remove redundant parenthesis 2025-08-11 22:02:37 +02:00
Ervin Hegedus
ea51a663f1
Move seclang-parser.hh supression to the right place 2025-08-11 17:19:46 +02:00
Ervin Hegedus
d19d3b4785
Supress uninitMemberVar warning in seclang-parser.hh 2025-08-11 16:43:58 +02:00
Ervin Hegedus
67f32a4e63
Fix cppcheck 2.18.0 warnings 2025-08-11 15:51:49 +02:00
szedenik-adam
6c6d94fc66 Renamed SecAuditLogHeader to SecAuditLogPrefix 2025-08-11 10:30:01 +02:00
szedenik-adam
0f402f33fd Adapted AuditLog based on code check hints 2025-08-07 11:01:44 +02:00
szedenik-adam
01c427f6be Replaced initializer list with in-class initializer in AuditLog 2025-08-07 10:23:50 +02:00
szedenik-adam
31fb9390c2 Replaced string parameters with string_view in AuditLog 2025-08-07 10:22:42 +02:00
szedenik-adam
2ee45de2fc Added audit log header 2025-08-04 17:09:49 +02:00
Ervin Hegedus
0ac551b070
Merge pull request #3430 from airween/v3/confvaluepathfix
fix: add Windows specific characters to config value syntax
2025-08-03 11:06:00 +03:00
Ervin Hegedus
013c8c2c7b
Remove escape from meta characters again 2025-08-01 13:28:19 +02:00
Ervin Hegedus
d8574c8c08
Fix date format pattern in auditlog's regression test 2025-08-01 11:38:39 +02:00
Ervin Hegedus
37948704df
Revert "Remove escape from meta characters"
This reverts commit 28bc3a98df54e251861d26dbb9f1374f622b97ea.
2025-08-01 09:33:22 +02:00
Ervin Hegedus
28bc3a98df
Remove escape from meta characters
Co-authored-by: Max Leske <250711+theseion@users.noreply.github.com>
2025-08-01 09:11:20 +02:00
Ervin Hegedus
72e3abdd12
Add Windows specific characters to config value syntax in config parser 2025-07-30 14:37:27 +02:00
Ervin Hegedus
f2170d8576
Merge pull request #3426 from wooffie/fix-rx-476
fix: rx operators better null checks
2025-07-29 15:48:47 +03:00
Burkov Egor
c60709a58c fix: rx operators better null checks 2025-07-29 13:18:48 +03:00
Ervin Hegedus
1ff9f2a943
Merge pull request #3421 from airween/v3/secreqbodylimit
fix: integer type limits, 2nd try
2025-07-28 22:44:47 +03:00
Ervin Hegedus
690355b297
Merge pull request #3424 from wooffie/patch-1
fix: confusing indentation at acmp.cc
2025-07-28 19:07:27 +03:00
Burkov Egor
78b9cb7b57 Add more brackets 2025-07-28 15:11:02 +03:00
Burkov Egor
5d05ba359c
fix: confusing indentation at acmp.cc 2025-07-28 14:23:11 +03:00
Ervin Hegedus
9fb75d2c9a
Reformat code block with brackets
Co-authored-by: Max Leske <250711+theseion@users.noreply.github.com>
2025-07-28 10:38:01 +02:00
Ervin Hegedus
abed778b4a
Remove unused ConfigDouble class 2025-07-27 17:28:26 +02:00
Ervin Hegedus
8d15991fb4
Update comment
Co-authored-by: Max Leske <250711+theseion@users.noreply.github.com>
2025-07-27 17:14:12 +02:00
Ervin Hegedus
b8a22bb67a
Update error message
Co-authored-by: Max Leske <250711+theseion@users.noreply.github.com>
2025-07-27 17:09:11 +02:00
Ervin Hegedus
7e3c807c0d
Change syntax: add brackets to condition block 2025-07-27 17:07:12 +02:00
Ervin Hegedus
bb70ff06a4
Refactoring the cleaning of MATCHED_VAR* variables 2025-07-27 17:07:12 +02:00
Ervin Hegedus
08b70e006b
Merge pull request #3422 from airween/v3/matchedvarsfix2
Refactoring the cleaning of MATCHED_VAR* variables
2025-07-27 18:00:45 +03:00
Ervin Hegedus
79d55037c0
Refactoring the cleaning of MATCHED_VAR* variables 2025-07-25 14:33:24 +02:00
Ervin Hegedus
9a8ce8b5f5
Refactoring Config*Int types 2025-07-24 19:21:15 +02:00
JustCoding247
7b040b37f4
Fix lib64 detection for 7 libraries and resolve double-slash paths
Fixes #3404: Configure script fails to detect lib64-installed libraries

This commit addresses the configure script's inability to detect YAJL, LMDB,
and PCRE2 libraries when installed in lib64 directories, and extends the fix
to all library detection scripts to ensure comprehensive lib64 support across
the entire ModSecurity build system.

Libraries fixed with lib64 detection support:
- build/yajl.m4 - YAJL JSON parsing library (lines 7096, 7164)
- build/lmdb.m4 - Lightning Memory-Mapped Database (lines 7870, 7945)
- build/pcre2.m4 - Perl Compatible Regular Expressions v2 (lines 9086, 9161)
- build/lua.m4 - Lua scripting language
- build/ssdeep.m4 - SSDEEP fuzzy hashing library
- build/libgeoip.m4 - GeoIP library
- build/libmaxmind.m4 - MaxMind library

Additional improvements:
- Fix double-slash path issues by removing trailing slashes from path assignments
- Follow existing pattern used by MaxMind and other libraries
- Total: 12 lib64 detection points added across all library detection scripts

Impact:
- Resolves compilation failures on systems using lib64 directories
- Enables ModSecurity compilation in container environments
- Supports standard 64-bit library installation paths
- Provides comprehensive lib64 support across all library dependencies

Tested on multiple Linux distributions:
- Alma Linux 9, 10
- CentOS Stream 9, 10
- Oracle Linux 9, 10
- Rocky Linux 9, 10
- Ubuntu 22.04, 24.04
- Debian 12, 13

Closes #3404
2025-06-22 06:23:23 +00:00
Ervin Hegedus
cf24aeaead
Merge pull request #3405 from airween/v3/pmfromffix
fix: @pmFromFile with multiple files issue
2025-06-20 09:29:36 +02:00