2384 Commits

Author SHA1 Message Date
Felipe Zimmerle
4b70c78fff Adds sanity check on SecRemoteRules directive input 2017-06-21 19:06:58 -07:00
Felipe Zimmerle
3d425997df Adds a set of sanity checks to validate API inputs (1 of 2) 2017-06-21 13:03:17 -07:00
Felipe Zimmerle
a71b58417a
Duplicates the url variable in the disruptive action
The log message needs to be freed by the consumer. Doing the same with
the url to keep the API consistent.
2017-06-19 18:56:46 -03:00
Felipe Zimmerle
864d54f619
Extends acmp_prepare to pm_from_file 2017-06-16 16:41:20 -03:00
Felipe Zimmerle
ff73b448de
Makes pm mutex optional via configuration flag 2017-06-16 16:40:58 -03:00
Felipe Zimmerle
67e481bd2b
Adds -lpthread to the reading_logs_via_rule_message example 2017-06-16 10:14:47 -03:00
Felipe Zimmerle
2d326c3236
Fix examples/using_bodies_in_chunks compilation 2017-06-16 10:11:07 -03:00
Felipe Zimmerle
69eb406b8d
test-only: Placing a mutex while evaluating the pm operator
Performing an earlier optimization of the tree (before threads creation)
2017-06-03 23:17:01 -03:00
Felipe Zimmerle
7828220e56
Using multiple threads in reading logs via rule message example 2017-06-03 17:19:46 -03:00
Felipe Zimmerle
92b77d25c5
Using pthreads to avoid concurrent access to the collection 2017-06-03 17:16:55 -03:00
Felipe Zimmerle
ae216245c5
Removes LMDB from the default configuration options 2017-05-29 08:47:02 -03:00
Felipe Zimmerle
b4bc52f670
Code cosmetics: init a vector. 2017-05-28 22:41:58 -03:00
Felipe Zimmerle
accc566730
Removes memory leak on the counter variable modificator 2017-05-28 22:41:54 -03:00
Felipe Zimmerle
6ca573f26c
Removes local cache for transformations 2017-05-10 09:31:07 -03:00
Felipe Zimmerle
a1a70c7f2f
highlight: Fix JSON structure 2017-03-20 22:54:55 -03:00
Felipe Zimmerle
2e068428ea
Fix on the m_buf generation: avoid padding before request body 2017-03-16 11:22:50 -03:00
Felipe Zimmerle
1f70e3f7e4
Having a copy of m_httpVersion and m_uri instead of a pointer reference 2017-03-16 09:46:21 -03:00
Felipe Zimmerle
5b52190f97
Adds request_headers_names.conf to reading_logs_via_rule_message example 2017-03-15 21:46:14 -03:00
Felipe Zimmerle
907397b7f2
Having a better error handler for the highlight feature 2017-03-15 21:44:02 -03:00
Felipe Zimmerle
ee8e0f90ef
Changes the line terminator to fixed value: \n
\r is no longer take into consideration
2017-03-15 12:07:47 -03:00
Felipe Zimmerle
ef35ffa13e
Adjusts the line terminator in the RuleMessage::m_buf variable 2017-03-08 18:02:40 -03:00
Felipe Zimmerle
5537951993
Adds support to m_highlightJSON in RuleMessage class
This variable helds a JSON with information regarding all matches.
Only filled when IncludeFullHighlightLog property is set.
2017-03-08 13:26:53 -03:00
Felipe Zimmerle
0ae459593e
First version of the inline highlight calculation 2017-03-06 15:02:04 -03:00
Felipe Zimmerle
53485c7f74
Fix pcre_exec offset values 2017-03-06 15:02:04 -03:00
Felipe Zimmerle
e79712095b
Minor fix in the decision on whenever the log callback should be called 2017-03-06 15:02:04 -03:00
Felipe Zimmerle
e2af60e765
Expands log_cb to share ruleMessage structure instead text
Text version still available and it is the default options
2017-03-06 15:02:04 -03:00
Felipe Zimmerle
9ea5b475b2
Fix missing initialization on rules-check utility 2017-03-06 15:02:04 -03:00
Felipe Zimmerle
6d61bd6b57
Adds rules-check utility 2017-03-06 15:02:04 -03:00
Felipe Zimmerle
d2c5b31b17
Uses FILE instead of _IO_FILE 2017-03-06 15:02:04 -03:00
Felipe Zimmerle
e2bd87d07d
Fix minor parser errors 2017-03-06 15:02:04 -03:00
Felipe Zimmerle
c3cb23f47d
Removes the ';' from the x-www-form-urlencoded body-processor comparison 2017-03-06 15:02:03 -03:00
Felipe Zimmerle
d6363607aa
Accept quoted regexp in the collection selection 2017-03-06 15:02:03 -03:00
Felipe Zimmerle
39761ce7b8
Discards the `charset' from the C-T while checking for body processors
Issue #1330
2017-03-06 15:02:03 -03:00
Felipe Zimmerle
7ab192e90f
Using method instead of procol in the audit logs.
Issue #1331
2017-03-06 15:02:03 -03:00
Felipe Zimmerle
fcad290152
Having the DebugLogs using the SharedFile schema 2017-03-06 15:02:03 -03:00
Felipe Zimmerle
7f9cd76619
Improvements on the SharedFiles class
examples/multiprocess_c/multi
2017-03-06 15:02:03 -03:00
Felipe Zimmerle
01c13da510
Fix segfault due to invalid memory access on SharedFiles class
Issue #1318
2017-03-06 15:02:03 -03:00
David Testé
87f6b478fb
Fix typo in returned string 2017-03-06 15:02:03 -03:00
David Testé
cc25390dc9
Fix copy/paste typo 2017-03-06 15:02:03 -03:00
Felipe Zimmerle
027d50b76b
Adds first version of `processContentOffset'
This commit also includes an example application on how to use the
`processContentOffset' method.
2017-03-06 15:02:02 -03:00
Felipe Zimmerle
7aae5dc183
Fix Regex::searchAll to behave like global modifier 2017-03-06 15:02:02 -03:00
Felipe Zimmerle
4d66481bfa
travis: Installs cppcheck on MacOS X 2017-03-06 15:02:02 -03:00
Felipe Zimmerle
616cf84c31
Adds check-static to travis.yaml 2017-03-06 15:02:02 -03:00
Felipe Zimmerle
4ad3574cf2
Adds offset regression tests and assorted fixes on var's offsets 2017-03-06 15:02:02 -03:00
Felipe Zimmerle
795994bb0e
Adds support to error_log in the regression tests 2017-03-06 15:02:02 -03:00
Felipe Zimmerle
ae8c2a4865
Adds ZenHub Badge to Readme 2017-03-06 15:02:02 -03:00
Felipe Zimmerle
073b0f6d6a
Small changes in the README, including: having ModSecurity logo 2017-03-06 15:02:02 -03:00
Felipe Zimmerle
aba68a7b6a
Adds ModSec log to the git repository 2017-03-06 15:02:01 -03:00
Felipe Zimmerle
efb90bb554
Adds OWASP rules to the gitignore list 2017-03-06 15:02:01 -03:00
Felipe Zimmerle
71a9677f38
Adds configure.h to system.cc in oder to read the MACOSX def 2017-03-06 15:02:01 -03:00