--- /dev/null
+04 Nov 2009 - 2.5.11
+--------------------
+
+ * Added a new multipart flag, MULTIPART_INVALID_QUOTING, which will be
+ set true if any invalid quoting is found during multipart parsing.
+
+ * Fixed parsing quoted strings in multipart Content-Disposition headers.
+ Discovered by Stefan Esser.
+
+ * Cleanup persistence database locking code.
+
+ * Added warning during configure if libcurl is found linked against
+ gnutls for SSL. The openssl lib is recommended as gnutls has
+ proven to cause issues with mutexes and may crash.
+
+ * Cleanup some mlogc (over)logging.
+
+ * Do not log output filter errors in the error log.
+
+ * Moved output filter to run before other stock filters (mod_deflate,
+ mod_cache, mod_expires, mod_filter) to avoid analyzing modified data
+ in the response. Patch originally submitted by Ivan Ristic.
+
+
+18 Sep 2009 - 2.5.10
+--------------------
+
+ * Cleanup mlogc so that it builds on Windows.
+
+ * Added more detailed messages to replace "Unknown error" in filters.
+
+ * Added SecAuditLogDirMode and SecAuditLogFileMode to allow fine tuning
+ auditlog permissions (especially with mpm-itk).
+
+ * Cleanup SecUploadFileMode implementation.
+
+ * Cleanup build scripts.
+
+ * Fixed crash on configuration if SecMarker is used before any rules.
+
+ * Fixed SecRuleUpdateActionById so that it will work on chain starters.
+
+ * Cleanup build system for mlogc.
+
+ * Allow mlogc to periodically flush memory pools.
+
+ * Using nolog,auditlog will now log the "Message:" line to the auditlog, but
+ nothing to the error log. Prior versions dropped the "Message:" line from
+ both logs. To do this now, just use "nolog" or "nolog,noauditlog".
+
+ * Forced mlogc to use SSLv3 to avoid some potential auto negotiation
+ issues with some libcurl versions.
+
+ * Fixed mlogc issue seen on big endian machines where content type
+ could be listed as zero.
+
+ * Removed extra newline from audit log message line when logging XML errors.
+ This was causing problems parsing audit logs.
+
+ * Fixed @pm/@pmFromFile case insensitivity.
+
+ * Truncate long parameters in log message for "Match of ... against ...
+ required" messages.
+
+ * Correctly resolve chained rule actions in logs.
+
+ * Cleanup some code for portability.
+
+ * AIX does not support hidden visibility with xlc compiler.
+
+ * Allow specifying EXTRA_CFLAGS during configure to override gcc specific
+ values for non-gcc compilers.
+
+ * Populate GEO:COUNTRY_NAME and GEO:COUNTRY_CONTINENT as documented.
+
+ * Handle a newer geo database more gracefully, avoiding a potential crash for
+ new countries that ModSecurity is not yet aware.
+
+ * Allow checking &GEO "@eq 0" for a failed @geoLookup.
+
+ * Fixed mlogc global mutex locking issue and added more debugging output.
+
+ * Cleaned up build dependencies and configure options.
+
+
+05 Mar 2009 - 2.5.9
+-------------------
+
+ * Fixed parsing multipart content with a missing part header name which
+ would crash Apache. Discovered by "Internet Security Auditors"
+ (isecauditors.com).
+
+ * Added ability to specify the config script directly using --with-apr
+ and --with-apu.
+
+ * Updated copyright year to 2009.
+
+ * Added macro expansion for append/prepend action.
+
+ * Fixed race condition in concurrent updates of persistent counters. Updates
+ are now atomic.
+
+ * Cleaned up build, adding an option for verbose configure output and making
+ the mlogc build more portable.
+
+
+21 Nov 2008 - 2.5.8
+-------------------
+
+ * Fixed PDF XSS issue where a non-GET request for a PDF file would crash the
+ Apache httpd process. Discovered by Steve Grubb at Red Hat.
+
+ * Removed an invalid "Internal error: Issuing "%s" for unspecified error."
+ message that was logged when denying with nolog/noauditlog set and
+ causing the request to be audited.
+
+
+24 Sep 2008 - 2.5.7
+-------------------
+
+ * Fixed XML DTD/Schema validation which will now fail after request body
+ processing errors, even if the XML parser returns a document tree.
+
+ * Added ctl:forceRequestBodyVariable=on|off which, when enabled, will force
+ the REQUEST_BODY variable to be set when a request body processor is not set.
+ Previously the REQUEST_BODY target was only populated by the URLENCODED
+ request body processor.
+
+ * Integrated mlogc source.
+
+ * Fixed logging the hostname in the error_log which was logging the
+ request hostname instead of the Apache resolved hostname.
+
+ * Allow for disabling request body limit checks in phase:1.
+
+ * Added transformations for processing parity for legacy protocols ported
+ to HTTP(S): t:parityEven7bit, t:parityOdd7bit, t:parityZero7bit
+
+ * Added t:cssDecode transformation to decode CSS escapes.
+
+ * Now log XML parsing/validation warnings and errors to be in the debug log
+ at levels 3 and 4, respectivly.
+
+
+31 Jul 2008 - 2.5.6
+-------------------
+
+ * Transformation caching has been deprecated, and is now off by default. We
+ now advise against using transformation caching in production.
+
+ * Fixed two separate transformation caching issues that could cause incorrect
+ content inspection in some circumstances.
+
+ * Fixed an issue with the transformation cache using too much RAM, potentially
+ crashing Apache with a large number of cache entries. Two new configuration
+ options have been added to allow for a finer control of caching:
+
+ maxitems: Max number of items to cache (default 1024)
+ incremental: Whether to cache incrementally (default off)
+
+ * Added an experimental regression testing suite. The regression suite may
+ be executed via "make test-regression", however it is strongly advised
+ to only be executed on a non-production machine as it will startup the
+ Apache web server that ModSecurity is compiled against with various
+ configurations in which it will run tests.
+
+ * Added a licensing exception so that ModSecurity can be used in a derivative
+ work when that derivative is also under an approved open source license.
+
+ * Updated mlogc to version 1.4.5 which adds a LockFile directive and fixes an
+ issue in which the configuration file may be deleted.
+
+
+05 Jun 2008 - 2.5.5
+-------------------
+
+ * Fixed an issue where an alert was not logged in the error log
+ unless "auditlog" was used.
+
+ * Enable the "auditlog" action by default to help prevent a misconfiguration.
+ The new default is now: "phase:2,log,auditlog,pass"
+
+ * Improve request body processing error messages.
+
+ * Handle lack of a new line after the final boundary in a multipart request.
+ This fixes the reported WordPress Flash file uploader problem.
+
+ * Fixed issue with multithreaded servers where concurrent XML processing
+ could crash the web server (at least under Windows).
+
+ * Fixed blocking in phase 3.
+
+ * Force modules "mod_rpaf-2.0.c" and "mod_custom_header.c" to run before
+ ModSecurity so that the correct IP is used.
+
+
+07 May 2008 - 2.5.4
+-------------------
+
+ * Fixed issue where transformation cache was using the SecDefaultAction
+ value even when t:none was used within a rule.
+
+
+24 Apr 2008 - 2.5.3
+-------------------
+
+ * Fixed issue where the exec action may not be able to execute shell scripts.
+
+ * Macros are now expanded in expirevar and deprecatevar.
+
+ * Fixed crash if a persistent variable name was more than 126 characters.
+
+ * Updated included Core Ruleset to version 1.6.1 which fixes some
+ false negative issues in the migration to using some 2.5 features.
+
+
+02 Apr 2008 - 2.5.2
+-------------------
+
+ * Allow HTTP_* targets as an alias for REQUEST_HEADERS:*.
+
+ * Make sure temporary filehandles are closed after a transaction.
+
+ * Make sure the apache include directory is included during build.
+
+
+02 Apr 2008 - 2.1.7
+-------------------
+
+ * Make sure temporary filehandles are closed after a transaction.
+
+
+14 Mar 2008 - 2.5.1
+-------------------
+
+ * Fixed an issue where a match would not occur if transformation caching
+ was enabled.
+
+ * Using "severity" in a default action is now just a warning.
+
+ * Cleaned up the "make test" target to better locate headers/libraries.
+
+ * Now search /usr/lib64 and /usr/lib32 for lua libs.
+
+ * No longer treat warnings as errors by default (use --enable-strict-compile).
+
+
+19 Feb 2008 - 2.5.0
+-------------------
+
+ * Updated included Core Ruleset to version 1.6.0 which uses 2.5 features.
+
+ * Cleaned up and clarified some documentation.
+
+ * Updated code to be more portable so it builds with MS VC++.
+
+ * Added unit tests for most operators and transformations.
+
+ * Fixed crash on startup when ENV is improperly used without a parameter.
+
+ * Allow macro resolution in setenv action.
+
+ * The default action is now a minimal "phase:2,log,pass" with no default
+ transformations performed.
+
+ * Implemented SecUploadFileMode to allow setting the mode for uploaded files.
+
+ * Implemented "block" action.
+
+ * Implemented SecRuleUpdateActionById.
+
+ * Fixed removal of phase 5 rules via SecRuleRemoveBy* directives.
+
+ * No longer log the query portion of the URI in the error log as
+ it may contain sensitive data.
+
+ * Build is now 'configure' based: ./configure && make && make install
+
+ * Added support for Lua scripting in the following ways: SecRuleScript
+ can be used to specify a script to execute as a rule, the exec
+ action processes Lua scripts internally, as does the @inspectFile
+ operator. Refer to the documentation for more details.
+
+ * Changed how allow works. Used on its own it now allows phases 1-4. Used
+ with parameter "phase" (e.g. SecAction allow:phase) it only affects
+ the current phase. Used with parameter "request" it allows phases
+ 1-2.
+
+ * Fixed issue where only the first phase 5 rule would run when the
+ request was intercepted in an earlier phase.
+
+ * Stricter configuration parsing. Disruptive actions, meta actions and
+ phases are no longer allowed in a chained rule. Disruptive actions,
+ are no longer allowed in a logging phase (phase 5) rule, including
+ inheriting from SecDefaultAction.
+
+ * More efficient collection persistance.
+
+ * Fixed t:escapeSeqDecode to better follow ANSI C escapes.
+
+ * Added t:jsDecode to decode JavScript escape sequences.
+
+ * Added IS_NEW built-in collection variables.
+
+ * New audit log part 'K' logs all matching rules.
+
+ * Implemented SecRequestBodyNoFilesLimit.
+
+ * Enhance handling of the case where we run out of disk space while
+ writing to audit log entry.
+
+ * Added SecComponentSignature to allow other components the ability
+ to append to the logged signature.
+
+ * Added skipAfter:<id> action to allow skipping all rules until a rule
+ with a specified ID is reached. Rule execution then continues after
+ the specified rule.
+
+ * Added SecMarker <id> directive to allow a fixed target for skipAfter.
+
+ * Added ctl:ruleRemoveById action to allow rule removal on a match.
+
+ * Added a @containsWord operator that will match a given string anywhere in
+ the target value, but only on word boundaries.
+
+ * Added a MATCHED_VAR_NAME variable to store the last matched variable name
+ so that it can be more easily used by rules.
+
+ * Added a MATCHED_VAR variable to store the last matched variable value
+ so that it can be more easily used by rules.
+
+ * Fixed expansion of macros when using relative changes with setvar. In
+ addition, added support for expanding macros in the variable name.
+
+ * Situations where ModSecurity will intercept, generate an error or log
+ a level 1-3 message to the debug log are now marked as 'relevant' and may
+ generate an audit log entry.
+
+ * Fixed deprecatevar:var=N/S action so that it decrements N every S seconds
+ as documented instead of decrementing by a rate.
+
+ * Enable ModSecurity to look at partial response bodies. In previous
+ versions, ModSecurity would respond with status code 500 when the
+ response body was too long. Now, if SecResponseBodyLimitAction is
+ set to "ProcessPartial", it will process the part of the response
+ body received up until that point but send the rest without buffering.
+
+ * ModSecurity will now process phases 3 and 4 even when request processing
+ is interrupted (either by Apache - e.g. by responding with 400, 401
+ or 403, or by ModSecurity itself).
+
+ * Fixed the base64decode transformation function to not return extra
+ characters at the end.
+
+ * Return from the output filter with an error in addition to setting
+ up the HTTP error status in the output data.
+
+ * Used new Apache API calls to get the server version/banner when available.
+
+ * Added "logdata" meta action to allow logging of raw transaction data.
+
+ * Added TX_SEVERITY that keeps track of the highest severity
+ for any matched rules so far.
+
+ * Added ARGS_GET, ARGS_POST, ARGS_GET_NAMES, ARGS_POST_NAMES variables to
+ allow seperation of GET and POST arguments.
+
+ * Added an Apache define (MODSEC_2.5) so that you can conditionally include
+ directives based on the ModSecurity major/minor versions with IfDefine.
+
+ * Added MODSEC_BUILD variable that contains the numeric build value based
+ on the ModSecurity version.
+
+ * Enhanced debug logging by displaying more data on rule execution. All
+ invoked rules are now logged in the debug log at level 5.
+
+ * Stricter validation for @validateUtf8Encoding.
+
+ * No longer process Apache internal subrequests.
+
+ * Fixed warnings on Solaris and/or 64bit builds.
+
+ * Added @within string comparison operator with support for macro expansion.
+
+ * Do not trigger "pause" action for internal requests.
+
+ * Added matching rule filename and line number to audit log.
+
+ * Added new phrase matching operators, @pm and @pmFromFile. These use
+ an alternate set based matching engine (Aho-Corasick) to perform faster
+ phrase type matches such as black/white lists, spam keywords, etc.
+
+ * Allow caching transformations per-request/phase so they are not repeated.
+
+ * Added Solaris and Cygwin to the list of platforms not supporting the hidden
+ visibility attribute.
+
+ * Fixed decoding full-width unicode in t:urlDecodeUni.
+
+ * Add SecGeoLookupDB, @geoLookups and GEO collection to support
+ geographical lookups by IP/host.
+
+ * Do not try to intercept a request after a failed rule. This fixes the
+ issue associated with an "Internal Error: Asked to intercept request
+ but was_intercepted is zero" error message.
+
+ * Removed extraneous exported symbols.
+
+ * Merged the PDF XSS protection functionality into ModSecurity.
+
+ * Exported API for registering custom variables. Example in api directory.
+
+ * Added experimental support for content injection. Directive
+ SecContentInjection (On|Off) controls whether injection is taking place.
+ Actions "prepend" and "append" inject content when executed. Do note that
+ it is your responsibility to make sure the response is of the appropriate
+ content type (e.g. HTML, plain text, etc).
+
+ * Added string comparison operators with support for macro expansion:
+ @contains, @streq, @beginsWith and @endsWith.
+
+ * Enhanced debug log output to log macro expansion, quote values and
+ correctly display values that contained NULs.
+
+ * Removed support for %0 - %9 capture macros as they were incorrectly
+ expanding url encoded values. Use %{TX.0} - %{TX.9} instead.
+
+ * Added t:length to transform a value to its character length.
+
+ * Added t:trimLeft, t:trimRight, t:trim to remove whitespace
+ from a value on the left, right or both.
+
+ * Added SecAuditLog2 directive to allow redundent concurrent audit log
+ index files. This will allow sending audit data to two consoles, etc.
+
+ * Removed CGI style HTTP_* variables in favor of REQUEST_HEADERS:Header-Name.
+
+ * Store filename/line for each rule and display it and the ID (if available)
+ in the debug log when invoking a rule. Thanks to Christian Bockermann
+ for the idea.
+
+ * Do not log 'allow' action as intercepted in the debug log.
+
+ * Fixed some collection variable names not printing with the parameter
+ and/or counting operator in the debug log.
+
+
+19 Feb 2008 - 2.1.6
+-------------------
+
+ * Fixed crash on startup when ENV is improperly used without a parameter.
+
+ * Allow macro resolution in setenv action.
+
+ * Implemented SecUploadFileMode to allow setting the mode for uploaded files.
+
+ * No longer log the query portion of the URI in the error log as
+ it may contain sensitive data.
+
+
+10 Jan 2008 - 2.1.5
+-------------------
+
+ * Updated included Core Ruleset to version 1.5.1.
+
+ * Phase 5 rules can now be removed via SecRuleRemoveBy* directives.
+
+ * Fixed issue where only the first phase 5 rule would run when the
+ request was intercepted in an earlier phase.
+
+ * Fixed configuration parsing so that disruptive actions, meta actions
+ and phases are not allowed in a chained rule (as originally intended).
+
+ * Fixed t:escapeSeqDecode to better follow ANSI C escapes.
+
+
+27 Nov 2007 - 2.1.4
+-------------------
+
+ * Updated included Core Ruleset to version 1.5 and noted in the docs that
+ XML support is required to use the rules without modification.
+
+ * Fixed an evasion FP, mistaking a multipart non-boundary for a boundary.
+
+ * Fixed multiple warnings on Solaris and/or 64bit builds.
+
+ * Do not process subrequests in phase 2-4, but do hand off the request data.
+
+ * Fixed a blocking FP in the multipart parser, which affected Safari.
+
+
+11 Sep 2007 - 2.1.3
+-------------------
+
+ * Updated multipart parsing code adding variables to allow checking
+ for various parsing issues (request body abnormalities).
+
+ * Allow mod_rpaf and mod_extract_forwarded2 to work before ModSecurity.
+
+ * Quiet some compiler warnings.
+
+ * Do not block internal ErrorDocument requests after blocking request.
+
+ * Added ability to compile without an external API (use -DNO_MODSEC_API).
+
+
+27 Jul 2007 - 2.1.2
+-------------------
+
+ * Cleaned up and clarified some documentation.
+
+ * Update included core rules to latest version (1.4.3).
+
+ * Enhanced ability to alert/audit failed requests.
+
+ * Do not trigger "pause" action for internal requests.
+
+ * Fixed issue with requests that use internal requests. These had the
+ potential to be intercepted incorrectly when other Apache httpd modules
+ that used internal requests were used with mod_security.
+
+ * Added Solaris and Cygwin to the list of platforms not supporting the hidden
+ visibility attribute.
+
+ * Fixed decoding full-width unicode in t:urlDecodeUni.
+
+ * Lessen some overhead of debugging messages and calculations.
+
+ * Do not try to intercept a request after a failed rule. This fixes the
+ issue associated with an "Internal Error: Asked to intercept request
+ but was_intercepted is zero" error message.
+
+ * Added SecAuditLog2 directive to allow redundent concurrent audit log
+ index files. This will allow sending audit data to two consoles, etc.
+
+ * Small performance improvement in memory management for rule execution.
+
+
+11 Apr 2007 - 2.1.1
+-------------------
+
+ * Add the PCRE_DOLLAR_ENDONLY option when compiling regular expression
+ for the @rx operator and variables.
+
+ * Really set PCRE_DOTALL option when compiling the regular expression
+ for the @rx operator as the docs state.
+
+ * Fixed potential memory corruption when expanding macros.
+
+ * Fixed error when a collection was retrieved from storage in the same second
+ as creation by setting the rate to zero.
+
+ * Fixed ASCIIZ (NUL) parsing for application/x-www-form-urlencoded forms.
+
+ * Fixed the faulty REQUEST_FILENAME variable, which used to change
+ the internal Apache structures by mistake.
+
+ * Updates to quiet some compiler warnings.
+
+ * Fixed some casting issues for compiling on NetWare (patch from Guenter Knauf).
+
+
+23 Feb 2007 - 2.1.0
+-------------------
+
+ * Removed the "Connection reset by peer" message, which has nothing
+ to do with us. Actually the message was downgraded from ERROR to
+ NOTICE so it will still appear in the debug log.
+
+ * Removed the (harmless) message mentioning LAST_UPDATE_TIME missing.
+
+ * It was not possible to remove a rule placed in phase 4 using
+ SecRuleRemoveById or SecRuleRemoveByMsg. Fixed.
+
+ * Fixed a problem with incorrectly setting requestBodyProcessor using
+ the ctl action.
+
+ * Bundled Core Rules 2.1-1.3.2b4.
+
+ * Updates to the reference manual.
+
+ * Reversed the return values of @validateDTD and @validateSchema, to
+ make them consistent with other operators.
+
+ * Added a few helpful debug messages in the XML validation area.
+
+ * Updates to the reference manual.
+
+ * Fixed the validateByteRange operator.
+
+ * Default value for the status action is now 403 (as it was supposed to
+ be but it was effectively 500).
+
+ * Rule exceptions (removing using an ID range or an regular expression)
+ is now applied to the current context too. (Previously it only worked
+ on rules that are inherited from the parent context.)
+
+ * Fix of a bug with expired variables.
+
+ * Fixed regular expression variable selectors for many collections.
+
+ * Performance improvements - up to two times for real-life work loads!
+
+ * Memory consumption improvements (not measured but significant).
+
+ * The allow action did not work in phases 3 and 4. Fixed.
+
+ * Unlocked collections GLOBAL and RESOURCE.
+
+ * Added support for variable expansion in the msg action.
+
+ * New feature: It is now possible to make relative changes to the
+ audit log parts with the ctl action. For example: "ctl:auditLogParts=+E".
+
+ * New feature: "tag" action. To be used for event categorisation.
+
+ * XML parser was not reporting errors that occured at the end
+ of XML payload.
+
+ * Files were not extracted from request if SecUploadKeepFiles was
+ Off. Fixed.
+
+ * Regular expressions that are too long are truncated to 256
+ characters before used in error messages. (In order to keep
+ the error messages in the log at a reasonable size.)
+
+ * Fixed the sha1 transformation function.
+
+ * Fixed the skip action.
+
+ * Fixed REQUEST_PROTOCOL, REMOTE_USER, and AUTH_TYPE.
+
+ * SecRuleEngine did not work in child configuration contexts
+ (e.g. <Location>).
+
+ * Fixed base64Decode and base64Encode.
+
+
+15 Nov 2006 - 2.0.4
+-------------------
+
+ * Fixed the "deprecatevar" action.
+
+ * Decreasing variable values did not work.
+
+ * Made "nolog" do what it is supposed to do - cause a rule match to
+ not be logged. Also "nolog" now implies "noauditlog" but it's
+ possible to follow "nolog" with "auditlog" and have the match
+ not logged to the error log but logged to the auditlog. (Not
+ something that strikes me as useful but it's possible.)
+
+ * Relative paths given to SecDataDir will now be treated as relative
+ to the Apache server root.
+
+ * Added checks to make sure only correct actions are specified in
+ SecDefaultAction (some actions are required, some don't make any
+ sense) and in rules that are not chain starters (same). This should
+ make the unhelpful "Internal Error: Failed to add rule to the ruleset"
+ message go away.
+
+ * Fixed the problem when "SecRuleInheritance Off" is used in a context
+ with no rules defined.
+
+ * Fixed a problem of lost input (request body) data on some redirections,
+ for example when mod_rewrite is used.
+
+
+26 Oct 2006 - 2.0.3
+-------------------
+
+ * Fixed a memory leak (all platforms) and a concurrency control
+ problem that could cause a crash (multithreaded platforms only).
+
+ * Fixed a SecAuditLogRelevantStatus problem, which would not work
+ properly unless the regular expression contained a subexpression.
+
+
+19 Oct 2006 - 2.0.2
+-------------------
+
+ * Fixed incorrect permissions on the global mutex, which prevented
+ the mutex from working properly.
+
+ * Fixed incorrect actionset merging where the status was copied from
+ the child actionset even though it was not defined.
+
+ * Fixed missing metadata information (in the logs) for warnings.
+
+
+16 Oct 2006 - 2.0.1
+-------------------
+
+ * Rules that used operator negation did not work. Fixed.
+
+ * Fixed bug that prevented invalid regular expressions from being reported.
+
+
+16 Oct 2006 - 2.0.0
+-------------------
+
+ * First stable 2.x release.
+
--- /dev/null
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+ 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it. (Some other Free Software Foundation software is covered by
+the GNU Library General Public License instead.) You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must show them these terms so they know their
+rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary. To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+\f
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License. The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+ 1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+ 2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in
+ whole or in part contains or is derived from the Program or any
+ part thereof, to be licensed as a whole at no charge to all third
+ parties under the terms of this License.
+
+ c) If the modified program normally reads commands interactively
+ when run, you must cause it, when started running for such
+ interactive use in the most ordinary way, to print or display an
+ announcement including an appropriate copyright notice and a
+ notice that there is no warranty (or else, saying that you provide
+ a warranty) and that users may redistribute the program under
+ these conditions, and telling the user how to view a copy of this
+ License. (Exception: if the Program itself is interactive but
+ does not normally print such an announcement, your work based on
+ the Program is not required to print an announcement.)
+\f
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of Sections
+ 1 and 2 above on a medium customarily used for software interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three
+ years, to give any third party, for a charge no more than your
+ cost of physically performing source distribution, a complete
+ machine-readable copy of the corresponding source code, to be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer
+ to distribute corresponding source code. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form with such
+ an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable. However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+\f
+ 4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+ 5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all. For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+\f
+ 8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded. In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+ 9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation. If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+ 10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission. For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this. Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
--- /dev/null
+
+MODSECURITY LICENSING EXCEPTION
+===============================
+
+Version 1.0, 29 July 2008
+
+As a special exception ("Exception") to the terms and conditions of version 2
+of the GPL, Breach Security, Inc. hereby grants you the rights described
+below, provided you agree to the terms and conditions in this Exception,
+including its obligations and restrictions on use.
+
+
+Exception Intent
+================
+
+We want specified Free/Libre and Open Source Software ("FLOSS") programs to be
+able to use ModSecurity (the "Program") despite the fact that not all FLOSS
+licenses are compatible with version 2 of the GNU General Public License (the
+"GPLv2").
+
+
+Legal Terms and Conditions
+==========================
+
+You are free to distribute a Derivative Work that is formed entirely from the
+Program and one or more works (each, a "FLOSS Work") licensed under one or
+more of the licenses listed below in section 1, as long as all of the
+following conditions are met:
+
+ 1. You obey the GPLv2 in all respects for the Program and the Derivative
+ Work, except for identifiable sections of the Derivative Work which are
+
+ 1. not derived from the Program, and
+
+ 2. are not designed to interact with the Program, and
+
+ 3. which can reasonably be considered independent and separate works in
+ themselves.
+
+ 2. All such identifiable sections of the Derivative Work are
+
+ 1. distributed subject to one of the FLOSS licenses listed below, and
+
+ 2. the object code or executable form of those sections are accompanied
+ by the complete corresponding machine-readable source code for those
+ sections on the same medium and under the same FLOSS license as the
+ corresponding object code or executable forms of those sections.
+
+ 3. Any works which are aggregated with the Program or with a Derivative Work
+ on a volume of a storage or distribution medium in accordance with the
+ GPLv2, can reasonably be considered independent and separate works in
+ themselves which are not derivatives of either the Program, a Derivative
+ Work or a FLOSS Work, and are not designed to interact with the Program.
+
+If the above conditions are not met, then the Program may only be copied,
+modified, distributed or used under the terms and conditions of the GPLv2
+or another valid licensing option from Breach Security, Inc.
+
+
+FLOSS License List
+==================
+
+License name Version(s)/Copyright Date
+-----------------------------------------------------------------------
+Academic Free License 2.0
+Apache Software License 1.0/1.1/2.0
+Apple Public Source License 2.0
+Artistic license From Perl 5.8.0
+BSD license "July 22 1999"
+Common Development and Distribution License (CDDL) 1.0
+Common Public License 1.0
+Eclipse Public License 1.0
+GNU Library or "Lesser" General Public License (LGPL) 2.0/2.1/3.0
+Jabber Open Source License 1.0
+MIT License (As listed in file MIT-License.txt) -
+Mozilla Public License (MPL) 1.0/1.1
+Open Software License 2.0
+OpenSSL license (with original SSLeay license) "2003" ("1998")
+PHP License 3.0
+Python license (CNRI Python License) -
+Python Software Foundation License 2.1.1
+Sleepycat License "1999"
+University of Illinois/NCSA Open Source License -
+W3C License "2001"
+X11 License "2001"
+Zlib/libpng License -
+Zope Public License 2.0
+
+Due to the many variants of some of the above licenses, we require that for
+any version of the listed FLOSS licenses to qualify under this exception, it
+must follow the 2003 version of the Free Software Foundation's Free Software
+Definition (http://www.gnu.org/philosophy/free-sw.html) or version 1.9 of the
+Open Source Definition by the Open Source Initiative
+(http://www.opensource.org/docs/definition.php).
+
+
+Definitions
+===========
+
+1. Terms used, but not defined, herein shall have the meaning provided in the
+ version 2 of the GPL.
+
+2. Derivative Work means a derivative work under copyright law.
+
+
+Applicability
+=============
+
+This Exception applies to all Programs that contain a notice placed by Breach
+Security, Inc. saying that the Program may be distributed under the terms of
+this Exception. If you create or distribute a work which is a Derivative Work
+of both the Program and any other work licensed under the GPL, then this FLOSS
+Exception is not available for that work; thus, you must remove the FLOSS
+Exception notice from that work and comply with the GPL in all respects,
+including by retaining all GPL notices.
+
+You may choose to redistribute a copy of the Program exclusively under the
+terms of the GPLv2 by removing the Exception notice from that copy of the
+Program, provided that the copy has never been modified by you or any third
+party.
+
+
+Appendix A. Qualified Libraries and Packages
+============================================
+
+The following is a non-exhaustive list of libraries and packages which are
+covered by the Exception when they are licensed under one or more of the
+licenses listed above. Please note that this appendix is merely provided as
+an additional service to specific FLOSS projects who wish to simplify
+licensing information for their users. Compliance with one of the licenses
+noted under the "FLOSS license list" section remains a prerequisite.
+
+Package name Qualifying License and Version
+-----------------------------------------------------------------
+Apache HTTP Server Apache Software License 2.0
+Apache Portable Runtime (APR) Apache Software License 2.0
+
--- /dev/null
+ModSecurity for Apache 2.x, http://www.modsecurity.org/
+Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
+
+ModSecurity for Apache is an open source product, released under terms of
+the General Public Licence, Version 2 (GPLv2). Please refer to the
+file LICENSE, which contains the complete text of the licence.
+
+There are special exceptions to the terms and conditions of the GPL
+as it is applied to this software. View the full text of the exception in
+file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
+distribution.
+
+
+DOCUMENTATION
+
+Please refer to the documentation folder (/doc) for
+the reference manual.
--- /dev/null
+# Makefile for ModSecurity
+
+MOD_SECURITY2 = mod_security2 apache2_config apache2_io apache2_util \
+ re re_operators re_actions re_tfns re_variables \
+ msc_logging msc_xml msc_multipart modsecurity msc_parsers msc_util msc_pcre \
+ persist_dbm msc_reqbody pdf_protect msc_geo acmp msc_lua msc_release
+
+MSC_TEST = re re_operators re_actions re_tfns re_variables \
+ msc_logging msc_xml msc_multipart modsecurity \
+ msc_parsers msc_util msc_pcre persist_dbm \
+ msc_reqbody msc_geo acmp msc_lua msc_release
+
+MOD_SECURITY2_H = re.h modsecurity.h msc_logging.h msc_multipart.h msc_parsers.h \
+ msc_pcre.h msc_util.h msc_xml.h persist_dbm.h apache2.h pdf_protect.h \
+ msc_geo.h acmp.h utf8tables.h msc_lua.h msc_release.h
+
+CC = @APXS_CC@
+LIBTOOL = @APXS_LIBTOOL@
+PERL = @PERL@
+EXTRA_CFLAGS = @EXTRA_CFLAGS@
+MODSEC_EXTRA_CFLAGS = @MODSEC_EXTRA_CFLAGS@
+
+### Note: must be in APXS format: -Wc,-flag
+APXS_EXTRA_CFLAGS = @APXS_EXTRA_CFLAGS@
+MODSEC_APXS_EXTRA_CFLAGS = @MODSEC_APXS_EXTRA_CFLAGS@
+
+APXS = @APXS@
+APXS_WRAPPER = @APXS_WRAPPER@
+APXS_INCLUDEDIR = @APXS_INCLUDEDIR@
+APXS_INCLUDES = @APXS_INCLUDES@
+APXS_CFLAGS = @APXS_CFLAGS@
+APXS_LDFLAGS = @APXS_LDFLAGS@
+APXS_LIBS = @APXS_LIBS@
+
+PCRE_CFLAGS = @PCRE_CFLAGS@
+PCRE_LIBS = @PCRE_LIBS@
+
+LUA_CFLAGS = @LUA_CFLAGS@
+LUA_LIBS = @LUA_LIBS@
+
+LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
+LIBXML2_LIBS = @LIBXML2_LIBS@
+
+APR_CFLAGS = @APR_CFLAGS@
+APR_LDFLAGS = @APR_LDFLAGS@
+APR_LIBS = @APR_LIBS@
+APR_LINK_LD = @APR_LINK_LD@
+
+APU_CFLAGS = @APU_CFLAGS@
+APU_LDFLAGS = @APU_LDFLAGS@
+APU_LIBS = @APU_LIBS@
+APU_LINK_LD = @APU_LINK_LD@
+
+CPPFLAGS = @CPPFLAGS@ $(PCRE_CFLAGS) $(LIBXML2_CFLAGS) $(LUA_CFLAGS)
+LIBS = @LIBS@ $(PCRE_LIBS) $(LIBXML2_LIBS) $(LUA_LIBS)
+LDFLAGS = @LDFLAGS@
+CFLAGS = @CFLAGS@
+
+COMPILE_APACHE_MOD = $(APXS_WRAPPER) -c $(CPPFLAGS) $(LDFLAGS) $(LIBS)
+
+INSTALL_MOD_SHARED = $(APXS_WRAPPER) -i
+
+all: mod_security2.la
+
+install: install-mods
+
+clean-extras:
+ @for dir in mlogc-src; do \
+ if test -d $$dir; then \
+ (cd $$dir && $(MAKE) clean); \
+ fi; \
+ done
+ @rm -rf ../tools/mlogc ../tools/mlogc-batch-load.pl
+
+clean: clean-extras
+ @rm -rf *.la *.lo *.loT *.o *.slo .libs msc_test msc-test-debug.log
+
+distclean: clean
+ @rm -rf Makefile mlogc-src/Makefile mlogc-src/mlogc-batch-load.pl ../tools/*.pl t/run-unit-tests.pl t/run-regression-tests.pl t/gen_rx-pm.pl t/csv_rx-pm.pl t/run-tests.pl t/regression/server_root/conf/httpd.conf t/regression/server_root/conf/*.t_*.conf t/regression/server_root/tmp/* t/regression/server_root/logs/*.log t/regression/server_root/logs/audit/* t/regression/server_root/upload/* t/regression/server_root/data/* config config.log config.status build/apxs-wrapper
+
+maintainer-clean: distclean
+ @rm -rf config config.log config.status configure mod_security2_config.h autoscan.log configure.scan build/libtool.m4 build/config.guess build/config.sub build/ltmain.sh
+
+install-mods: mod_security2.la
+ $(INSTALL_MOD_SHARED) mod_security2.la
+
+${MOD_SECURITY2:=.slo}: $(MOD_SECURITY2_H)
+${MOD_SECURITY2:=.lo}: $(MOD_SECURITY2_H)
+${MOD_SECURITY2:=.o}: $(MOD_SECURITY2_H})
+
+mod_security2.la: $(MOD_SECURITY2_H) *.c
+ @src=""; \
+ for f in $(MOD_SECURITY2); do \
+ src="$$src $$f.c"; \
+ done; \
+ rm -f msc_test msc_test.o msc_test.lo msc_test.slo; \
+ $(COMPILE_APACHE_MOD) $(APXS_EXTRA_CFLAGS) $(MODSEC_APXS_EXTRA_CFLAGS) $$src
+
+### MLogC
+mlogc:
+ @(cd mlogc-src && $(MAKE) mlogc) \
+ && cp -p mlogc-src/mlogc ../tools \
+ && cp -p mlogc-src/mlogc-batch-load.pl ../tools \
+ && echo \
+ && echo "Successfully built \"mlogc\" in ../tools." \
+ && echo "See: mlogc-src/INSTALL" \
+ && echo
+
+### Experimental Test Framework (*NIX only right now)
+msc_test.lo: msc_test.c
+ $(LIBTOOL) --mode=compile $(CC) $(APXS_INCLUDES) $(APXS_CFLAGS) $(CPPFLAGS) $(APR_CFLAGS) $(APU_CFLAGS) -o msc_test.lo -c msc_test.c
+
+msc_test: $(TESTOBJS) $(MOD_SECURITY2_H}) msc_test.lo
+ objs=""; \
+ for f in $(MSC_TEST); do \
+ objs="$$objs $$f.lo"; \
+ done; \
+ $(LIBTOOL) --mode=link $(CC) $$objs -o msc_test msc_test.lo $(LDFLAGS) $(LIBS) $(APR_LINK_LD) $(APU_LINK_LD)
+
+test: t/run-unit-tests.pl msc_test
+ @rm -f msc-test-debug.log; \
+ $(PERL) t/run-unit-tests.pl
+
+test-regression: t/run-regression-tests.pl
+ @$(PERL) t/run-regression-tests.pl
+
+.PHONY: all install clean-extras clean maintainer-clean distclean install-mods test test-regression
--- /dev/null
+###########################################################################\r
+### You Will need to modify the following variables for your system\r
+###########################################################################\r
+###########################################################################\r
+\r
+# Path to Apache httpd installation\r
+BASE = C:\Apache2\r
+\r
+# Paths to required libraries\r
+LIBXML2 = C:\work\libxml2-2.6.31\r
+LUA = C:\work\lua-5.1.3\r
+PCRE = C:\work\httpd-2.2.8\srclib\pcre\r
+\r
+# Linking libraries\r
+LIBS = $(BASE)\lib\libhttpd.lib \\r
+ $(BASE)\lib\libapr-1.lib \\r
+ $(BASE)\lib\libaprutil-1.lib \\r
+ $(PCRE)\LibR\pcre.lib \\r
+ $(LIBXML2)\win32\bin.msvc\libxml2.lib \\r
+ $(LUA)\lua5.1.lib \\r
+ wsock32.lib\r
+\r
+###########################################################################\r
+###########################################################################\r
+\r
+CC = cL\r
+\r
+MT = mt\r
+\r
+DEFS = /nologo /O2 /LD /W3 /wd4244 -DWIN32 -DWINNT -Dinline=APR_INLINE\r
+\r
+DLL = mod_security2.so\r
+\r
+INCLUDES = -I. \\r
+ -I$(PCRE)\include -I$(PCRE) \\r
+ -I$(LIBXML2)\include \\r
+ -I$(LUA)\include -I$(LUA) \\r
+ -I$(BASE)\include \r
+\r
+CFLAGS= -MD $(INCLUDES) $(DEFS)\r
+\r
+LDFLAGS = \r
+\r
+OBJS = mod_security2.obj apache2_config.obj apache2_io.obj apache2_util.obj \\r
+ re.obj re_operators.obj re_actions.obj re_tfns.obj re_variables.obj \\r
+ msc_logging.obj msc_xml.obj msc_multipart.obj modsecurity.obj \\r
+ msc_parsers.obj msc_util.obj msc_pcre.obj persist_dbm.obj \\r
+ msc_reqbody.obj pdf_protect.obj msc_geo.obj acmp.obj msc_lua.obj \\r
+ msc_release.obj\r
+\r
+all: $(DLL)\r
+\r
+dll: $(DLL)\r
+\r
+mod_security2_config.h: mod_security2_config.hw\r
+ @echo off\r
+ type mod_security2_config.hw > mod_security2_config.h\r
+\r
+.c.obj:\r
+ $(CC) $(CFLAGS) -c $< -Fo$@\r
+\r
+.cpp.obj:\r
+ $(CC) $(CFLAGS) -c $< -Fo$@\r
+\r
+$(DLL): mod_security2_config.h $(OBJS)\r
+ $(CC) $(CFLAGS) $(LDFLAGS) -LD $(OBJS) -Fe$(DLL) $(LIBS) /link\r
+ IF EXIST $(DLL).manifest $(MT) -manifest $(DLL).manifest -outputresource:$(DLL);2\r
+\r
+install: $(DLL)\r
+ copy $(DLL) $(BASE)\modules\r
+\r
+clean:\r
+ del $(OBJS) $(DLL) *.dll *.lib *.pdb *.idb *.ilk *.exp *.res *.rc *.bin mod_security2_config.h *.manifest\r
--- /dev/null
+/*
+ * ModSecurity for Apache 2.x, http://www.modsecurity.org/
+ * Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
+ *
+ * This product is released under the terms of the General Public Licence,
+ * version 2 (GPLv2). Please refer to the file LICENSE (included with this
+ * distribution) which contains the complete text of the licence.
+ *
+ * There are special exceptions to the terms and conditions of the GPL
+ * as it is applied to this software. View the full text of the exception in
+ * file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
+ * distribution.
+ *
+ * If any of the files related to licensing are missing or if you have any
+ * other questions related to licensing please contact Breach Security, Inc.
+ * directly using the email address support@breach.com.
+ *
+ */
+
+/* Aho-Corasick Matching */
+
+#include "acmp.h"
+
+#ifdef ACMP_USE_UTF8
+/* UTF support */
+#include "utf8tables.h"
+#else
+/* No UTF support */
+#define acmp_utf8_char_t long
+#include <apr_lib.h>
+#define utf8_lcase(a) apr_tolower(a)
+#endif
+
+#include <apr_tables.h>
+#include <stdio.h>
+#include <string.h>
+
+
+/*
+ *******************************************************************************
+ *******************************************************************************
+ * Data structures for acmp parser
+ */
+
+ /**
+ * One node in trie
+ */
+typedef struct acmp_node_t acmp_node_t;
+typedef struct acmp_btree_node_t acmp_btree_node_t;
+struct acmp_node_t {
+ acmp_utf8_char_t letter;
+ int is_last;
+ acmp_callback_t callback;
+ void *callback_data;
+ int depth;
+
+ acmp_node_t *child;
+ acmp_node_t *sibling;
+ acmp_node_t *fail;
+ acmp_node_t *parent;
+ acmp_node_t *o_match;
+
+ acmp_btree_node_t *btree;
+
+ apr_size_t hit_count;
+
+ char *text;
+ char *pattern;
+};
+
+struct acmp_btree_node_t {
+ acmp_utf8_char_t letter;
+ acmp_btree_node_t *left;
+ acmp_btree_node_t *right;
+ acmp_node_t *node;
+};
+
+/**
+ * Data related to parser, not to individual nodes
+ */
+struct ACMP {
+ #ifdef ACMP_USE_UTF8
+ int is_utf8;
+ #endif
+ int is_case_sensitive;
+ apr_pool_t *parent_pool;
+ apr_pool_t *pool;
+
+ int dict_count;
+ apr_size_t longest_entry;
+
+ acmp_node_t *root_node;
+
+ const char *data_start;
+ const char *data_end;
+ const char *data_pos;
+ apr_size_t data_len;
+
+ apr_size_t *bp_buffer;
+ apr_size_t bp_buff_len;
+
+ acmp_node_t *active_node;
+ char u8_buff[6];
+ apr_size_t u8buff_len;
+ apr_size_t hit_count;
+ int is_failtree_done;
+ int is_active;
+ apr_size_t byte_pos;
+ apr_size_t char_pos;
+};
+
+/*
+ *******************************************************************************
+ *******************************************************************************
+ * Functions for UTF-8 support
+ */
+
+#ifdef ACMP_USE_UTF8
+/**
+ * Returns length of utf-8 sequence based on its first byte
+ */
+static int utf8_seq_len(const char *first_byte) {
+ return utf8_seq_lengths[(unsigned int)(unsigned char)first_byte[0]];
+}
+
+/**
+ * Returns length of utf8-encoded text
+ */
+static size_t utf8_strlen(const char *str) {
+ int len = 0;
+ const char *c = str;
+ while (*c != 0) {
+ c += utf8_seq_len(c);
+ len++;
+ }
+ return len;
+}
+
+/**
+ * Returns ucs code for given utf-8 sequence
+ */
+static acmp_utf8_char_t utf8_decodechar(const char *str) {
+ int len = utf8_seq_len(str);
+ acmp_utf8_char_t ch = 0;
+ switch (len) {
+ case 6: ch += (unsigned char)*str++; ch <<= 6;
+ case 5: ch += (unsigned char)*str++; ch <<= 6;
+ case 4: ch += (unsigned char)*str++; ch <<= 6;
+ case 3: ch += (unsigned char)*str++; ch <<= 6;
+ case 2: ch += (unsigned char)*str++; ch <<= 6;
+ case 1: ch += (unsigned char)*str++;
+ }
+ ch -= utf8_offsets[len - 1];
+ return ch;
+}
+
+/**
+ * Returns lowercase for given unicode character. Searches through
+ * utf8_lcase_map table, if it doesn't find the code assumes
+ * it doesn't have a lowercase variant and returns code itself.
+ */
+static long utf8_lcase(acmp_utf8_char_t ucs_code) {
+ long mid, left, right;
+ left = 1;
+ right = UTF8_LCASEMAP_LEN * 2 + 1;
+
+ while (left <= right) {
+ mid = (left + right) >> 1;
+ mid -= (mid % 2); mid++;
+ if (ucs_code > utf8_lcase_map[mid])
+ left = mid + 2;
+ else if (ucs_code < utf8_lcase_map[mid])
+ right = mid - 2;
+ else if (ucs_code == utf8_lcase_map[mid])
+ return utf8_lcase_map[mid - 1];
+ }
+ return ucs_code;
+}
+#endif
+
+/*
+ *******************************************************************************
+ *******************************************************************************
+ * Code for local / static utility functions
+ */
+
+/**
+ * Returns length of given string for parser's encoding
+ */
+static size_t acmp_strlen(ACMP *parser, const char *str) {
+ #ifdef ACMP_USE_UTF8
+ return (parser->is_utf8 == 0) ? strlen(str) : utf8_strlen(str);
+ #else
+ return strlen(str);
+ #endif
+}
+
+/**
+ * Turns string to array of ucs values, depending on parser's encoding
+ * str - string to convert, doesn't have to be NULL-terminated
+ * ucs_chars - where to write ucs values
+ * len - length of input string
+ */
+static void acmp_strtoucs(ACMP *parser, const char *str, acmp_utf8_char_t *ucs_chars, int len) {
+ int i;
+ const char *c = str;
+
+ #ifdef ACMP_USE_UTF8
+ if (parser->is_utf8) {
+ for (i = 0; i < len; i++) {
+ *(ucs_chars++) = utf8_decodechar(c);
+ c += utf8_seq_len(c);
+ }
+ } else
+ #endif
+ {
+ for (i = 0; i < len; i++) {
+ *(ucs_chars++) = *(c++);
+ }
+ }
+}
+
+/**
+ * Returns node with given letter, or null if not found
+ */
+static acmp_node_t *acmp_child_for_code(acmp_node_t *parent_node, acmp_utf8_char_t ucs_code) {
+ acmp_node_t *node = parent_node->child;
+ if (node == NULL) return NULL;
+ for (;;) {
+ if (node->letter == ucs_code) return node;
+ node = node->sibling;
+ if (node == NULL) return NULL;
+ }
+}
+
+/**
+ * Adds node to parent node, if it is not already there
+ */
+static void acmp_add_node_to_parent(acmp_node_t *parent, acmp_node_t *child) {
+ acmp_node_t *node = NULL;
+
+ child->parent = parent;
+ if (parent->child == NULL) {
+ parent->child = child;
+ return;
+ }
+
+ node = parent->child;
+ for (;;) {
+ if (node == child) return;
+ if (node->sibling == NULL) {
+ node->sibling = child;
+ return;
+ }
+ node = node->sibling;
+ }
+}
+
+/**
+ * Copies values from one node to another, without child/sibling/fail pointers
+ * and without state variables.
+ */
+static void acmp_clone_node_no_state(acmp_node_t *from, acmp_node_t *to) {
+ memcpy(to, from, sizeof(acmp_node_t));
+ to->child = NULL;
+ to->sibling = NULL;
+ to->fail = NULL;
+ to->hit_count = 0;
+}
+
+/**
+ * Copies sibling nodes and child node for from given "from" node to "to" node.
+ * Both nodes must already exist.
+ */
+static void acmp_copy_nodes_recursive(acmp_node_t *from, acmp_node_t *to, apr_pool_t *pool) {
+ acmp_node_t *old_node = from->child, *new_node, *nn2;
+ if (old_node == NULL) return;
+ nn2 = apr_pcalloc(pool, sizeof(acmp_node_t));
+ /* ENH: Check alloc succeded */
+ acmp_clone_node_no_state(old_node, nn2);
+ nn2->parent = to;
+ to->child = nn2;
+ acmp_copy_nodes_recursive(from->child, to->child, pool);
+
+ for (;;) {
+ old_node = old_node->sibling;
+ if (old_node == NULL) break;
+ new_node = apr_pcalloc(pool, sizeof(acmp_node_t));
+ /* ENH: Check alloc succeded */
+ acmp_clone_node_no_state(old_node, new_node);
+ new_node->parent = to;
+ nn2->sibling = new_node;
+ nn2 = new_node;
+ acmp_copy_nodes_recursive(old_node, new_node, pool);
+ }
+}
+
+static inline acmp_node_t *acmp_btree_find(acmp_node_t *node, acmp_utf8_char_t letter) {
+ acmp_btree_node_t *bnode = node->btree;
+ for (;;) {
+ if (bnode == NULL) return NULL;
+ if (bnode->letter == letter) return bnode->node;
+ if (bnode->letter > letter) {
+ bnode = bnode->left;
+ } else {
+ bnode = bnode->right;
+ }
+ }
+}
+
+/**
+ *
+ */
+static inline acmp_node_t *acmp_goto(acmp_node_t *node, acmp_utf8_char_t letter) {
+ return acmp_btree_find(node, letter);
+}
+
+/**
+ * Connects each node with its first fail node that is end of a phrase.
+ */
+static void acmp_connect_other_matches(ACMP *parser, acmp_node_t *node) {
+ acmp_node_t *child, *om;
+
+ for (child = node->child; child != NULL; child = child->sibling) {
+ if (child->fail == NULL) continue;
+ for (om = child->fail; om != parser->root_node; om = om->fail) {
+ if (om->is_last) {
+ child->o_match = om;
+ break;
+ }
+ }
+ }
+
+ /* Go recursively through children of this node that have a child node */
+ for(child = node->child; child != NULL; child = child->sibling) {
+ if (child->child != NULL) acmp_connect_other_matches(parser, child);
+ }
+}
+
+/**
+ * Adds leaves to binary tree, working from sorted array of keyword tree nodes
+ */
+static void acmp_add_btree_leaves(acmp_btree_node_t *node, acmp_node_t *nodes[],
+ int pos, int lb, int rb, apr_pool_t *pool) {
+
+ int left = 0, right = 0;
+ if ((pos - lb) > 1) {
+ left = lb + (pos - lb) / 2;
+ node->left = apr_pcalloc(pool, sizeof(acmp_btree_node_t));
+ /* ENH: Check alloc succeded */
+ node->left->node = nodes[left];
+ node->left->letter = nodes[left]->letter;
+ #ifdef DEBUG_ACMP
+ fprintf(stderr, "%lc ->left %lc\n", (wint_t)node->node->letter, (wint_t)node->left->node->letter);
+ #endif
+ }
+ if ((rb - pos) > 1) {
+ right = pos + (rb - pos) / 2;
+ node->right = apr_pcalloc(pool, sizeof(acmp_btree_node_t));
+ /* ENH: Check alloc succeded */
+ node->right->node = nodes[right];
+ node->right->letter = nodes[right]->letter;
+ #ifdef DEBUG_ACMP
+ fprintf(stderr, "%lc ->right %lc\n", (wint_t)node->node->letter, (wint_t)node->right->node->letter);
+ #endif
+ }
+ if (node->right != NULL) {
+ acmp_add_btree_leaves(node->right, nodes, right, pos, rb, pool);
+ }
+ if (node->left != NULL) {
+ acmp_add_btree_leaves(node->left, nodes, left, lb, pos, pool);
+ }
+}
+
+/**
+ * Builds balanced binary tree from children nodes of given node.
+ */
+static void acmp_build_binary_tree(ACMP *parser, acmp_node_t *node) {
+ apr_size_t count, i, j;
+ acmp_node_t *child = node->child;
+ acmp_node_t **nodes;
+ apr_size_t pos;
+
+ /* Build an array big enough */
+ for (count = 0; child != NULL; child = child->sibling) count++;
+ nodes = apr_pcalloc(parser->pool, count * sizeof(acmp_node_t *));
+ /* ENH: Check alloc succeded */
+
+ /* ENH: Combine this in the loop below - we do not need two loops */
+ child = node->child;
+ for (i = 0; i < count; i++) {
+ nodes[i] = child;
+ child = child->sibling;
+ };
+
+ /* We have array with all children of the node and number of those children
+ */
+ for (i = 0; i < count - 1; i++)
+ for (j = i + 1; j < count; j++) {
+ acmp_node_t *tmp;
+
+ if (nodes[i]->letter < nodes[j]->letter) continue;
+
+ tmp = nodes[i];
+ nodes[i] = nodes[j];
+ nodes[j] = tmp;
+ }
+ node->btree = apr_pcalloc(parser->pool, sizeof(acmp_btree_node_t));
+ /* ENH: Check alloc succeded */
+ pos = count / 2;
+ node->btree->node = nodes[pos];
+ node->btree->letter = nodes[pos]->letter;
+ acmp_add_btree_leaves(node->btree, nodes, pos, -1, count, parser->pool);
+ for (i = 0; i < count; i++) {
+ if (nodes[i]->child != NULL) acmp_build_binary_tree(parser, nodes[i]);
+ }
+}
+
+/**
+ * Constructs fail paths on keyword trie
+ */
+static apr_status_t acmp_connect_fail_branches(ACMP *parser) {
+ /* Already connected ? */
+ acmp_node_t *child, *node, *goto_node;
+ apr_array_header_t *arr, *arr2, *tmp;
+
+ if (parser->is_failtree_done != 0) return APR_SUCCESS;
+
+ parser->root_node->text = "";
+ arr = apr_array_make(parser->pool, 32, sizeof(acmp_node_t *));
+ arr2 = apr_array_make(parser->pool, 32, sizeof(acmp_node_t *));
+
+ parser->root_node->fail = parser->root_node;
+
+ /* All first-level children will fail back to root node */
+ for (child = parser->root_node->child; child != NULL; child = child->sibling) {
+ child->fail = parser->root_node;
+ *(acmp_node_t **)apr_array_push(arr) = child;
+ #ifdef DEBUG_ACMP
+ fprintf(stderr, "fail direction: *%s* => *%s*\n", child->text, child->fail->text);
+ #endif
+ }
+
+ for (;;) {
+ while (apr_is_empty_array(arr) == 0) {
+ node = *(acmp_node_t **)apr_array_pop(arr);
+ node->fail = parser->root_node;
+ if (node->parent != parser->root_node) {
+ goto_node = acmp_child_for_code(node->parent->fail, node->letter);
+ node->fail = (goto_node != NULL) ? goto_node : parser->root_node;
+ }
+ #ifdef DEBUG_ACMP
+ fprintf(stderr, "fail direction: *%s* => *%s*\n", node->text, node->fail->text);
+ #endif
+ child = node->child;
+ while (child != NULL) {
+ *(acmp_node_t **)apr_array_push(arr2) = child;
+ child = child->sibling;
+ }
+ }
+ if (apr_is_empty_array(arr2) != 0) break;
+
+ tmp = arr;
+ arr = arr2;
+ arr2 = tmp;
+ }
+ acmp_connect_other_matches(parser, parser->root_node);
+ if (parser->root_node->child != NULL) acmp_build_binary_tree(parser, parser->root_node);
+ parser->is_failtree_done = 1;
+ return APR_SUCCESS;
+}
+
+/**
+ * Clears hit count of each node, called from acmp_reset()
+ */
+static void acmp_clear_hit_count_recursive(acmp_node_t *node) {
+ for (; node != NULL; node = node->sibling) {
+ node->hit_count = 0;
+ if (node->child != NULL) acmp_clear_hit_count_recursive(node->child);
+ }
+}
+
+/**
+ * Called when a match is found
+ */
+static void acmp_found(ACMP *parser, acmp_node_t *node) {
+ if (node->callback) {
+ node->callback(parser, node->callback_data,
+ parser->bp_buffer[(parser->char_pos - node->depth - 1) % parser->bp_buff_len],
+ parser->char_pos - node->depth - 1);
+ }
+ node->hit_count++;
+ parser->hit_count++;
+}
+
+/*
+ *******************************************************************************
+ *******************************************************************************
+ * Code for functions from header file
+ */
+
+
+/**
+ * flags - OR-ed values of ACMP_FLAG constants
+ * pool - apr_pool to use as parent pool, can be set to NULL
+ */
+ACMP *acmp_create(int flags, apr_pool_t *pool) {
+ apr_status_t rc;
+ apr_pool_t *p;
+ ACMP *parser;
+
+ rc = apr_pool_create(&p, pool);
+ if (rc != APR_SUCCESS) return NULL;
+
+ parser = apr_pcalloc(p, sizeof(ACMP));
+ /* ENH: Check alloc succeded */
+ parser->pool = p;
+ parser->parent_pool = pool;
+ #ifdef ACMP_USE_UTF8
+ parser->is_utf8 = (flags & ACMP_FLAG_UTF8) == 0 ? 0 : 1;
+ #endif
+ parser->is_case_sensitive = (flags & ACMP_FLAG_CASE_SENSITIVE) == 0 ? 0 : 1;
+ parser->root_node = apr_pcalloc(p, sizeof(acmp_node_t));
+ /* ENH: Check alloc succeded */
+ return parser;
+}
+
+/**
+ * Destroys previously created parser
+ */
+void acmp_destroy(ACMP *parser) {
+ /*
+ * All data is kept in parser's pool (including parser struct itself), so
+ * destroying the pool will destroy everything
+ */
+ apr_pool_destroy(parser->pool);
+}
+
+/**
+ * Creates parser with same options and same patterns
+ * parser - ACMP parser to duplicate
+ * pool - parent pool to use, if left as NULL original parser's parent pool is used
+ */
+ACMP *acmp_duplicate(ACMP *parser, apr_pool_t *pool) {
+ apr_status_t rc;
+ apr_pool_t *p;
+ ACMP *new_parser;
+
+ if (pool == NULL) pool = parser->parent_pool;
+ rc = apr_pool_create(&p, pool);
+ if (rc != APR_SUCCESS) return NULL;
+
+ new_parser = apr_pcalloc(p, sizeof(ACMP));
+ /* ENH: Check alloc succeded */
+ new_parser->pool = p;
+ new_parser->parent_pool = pool;
+ #ifdef ACMP_USE_UTF8
+ new_parser->is_utf8 = parser->is_utf8;
+ #endif
+ new_parser->is_case_sensitive = parser->is_case_sensitive;
+ new_parser->root_node = apr_pcalloc(p, sizeof(acmp_node_t));
+ /* ENH: Check alloc succeded */
+ new_parser->dict_count = parser->dict_count;
+ new_parser->longest_entry = parser->longest_entry;
+ acmp_copy_nodes_recursive(parser->root_node, new_parser->root_node, new_parser->pool);
+ acmp_prepare(new_parser);
+ return new_parser;
+}
+
+/**
+ * Creates fail tree and initializes buffer
+ */
+apr_status_t acmp_prepare(ACMP *parser) {
+ apr_status_t st;
+
+ if (parser->bp_buff_len < parser->longest_entry) {
+ parser->bp_buff_len = parser->longest_entry * 2;
+ parser->bp_buffer = apr_pcalloc(parser->pool, sizeof(apr_size_t) * parser->bp_buff_len);
+ /* ENH: Check alloc succeded */
+ }
+
+ st = acmp_connect_fail_branches(parser);
+ parser->active_node = parser->root_node;
+ if (st != APR_SUCCESS) return st;
+ parser->is_active = 1;
+ return APR_SUCCESS;
+}
+
+/**
+ * Adds pattern to parser
+ * parser - ACMP parser
+ * pattern - string with pattern to match
+ * callback - Optional, pointer to an acmp_callback_t function
+ * data - pointer to data that will be passed to callback function, only used if callback
+ * is supplied
+ * len - Length of pattern in characters, if zero string length is used.
+ */
+apr_status_t acmp_add_pattern(ACMP *parser, const char *pattern,
+ acmp_callback_t callback, void *data, apr_size_t len)
+{
+ size_t length, i, j;
+ acmp_utf8_char_t *ucs_chars;
+ acmp_node_t *parent, *child;
+
+ if (parser->is_active != 0) return APR_EGENERAL;
+
+ length = (len == 0) ? acmp_strlen(parser, pattern) : len;
+ ucs_chars = apr_pcalloc(parser->pool, length * sizeof(acmp_utf8_char_t));
+ /* ENH: Check alloc succeded */
+
+ parent = parser->root_node;
+ acmp_strtoucs(parser, pattern, ucs_chars, length);
+
+ for (i = 0; i < length; i++) {
+ acmp_utf8_char_t letter = ucs_chars[i];
+ if (parser->is_case_sensitive == 0) {
+ letter = utf8_lcase(letter);
+ }
+ child = acmp_child_for_code(parent, letter);
+ if (child == NULL) {
+ child = apr_pcalloc(parser->pool, sizeof(acmp_node_t));
+ /* ENH: Check alloc succeded */
+ child->pattern = "";
+ child->letter = letter;
+ child->depth = i;
+ child->text = apr_pcalloc(parser->pool, strlen(pattern) + 2);
+ /* ENH: Check alloc succeded */
+ for (j = 0; j <= i; j++) child->text[j] = pattern[j];
+ }
+ if (i == length - 1) {
+ if (child->is_last == 0) {
+ parser->dict_count++;
+ child->is_last = 1;
+ child->pattern = apr_pcalloc(parser->pool, strlen(pattern) + 2);
+ /* ENH: Check alloc succeded */
+ strcpy(child->pattern, pattern);
+ }
+ child->callback = callback;
+ child->callback_data = data;
+ }
+ acmp_add_node_to_parent(parent, child);
+ parent = child;
+ }
+ if (length > parser->longest_entry) parser->longest_entry = length;
+ parser->is_failtree_done = 0;
+
+ return APR_SUCCESS;
+}
+
+/**
+ * Called to process incoming data stream
+ * data - ptr to incoming data
+ * len - size of data in bytes
+ */
+apr_status_t acmp_process(ACMP *parser, const char *data, apr_size_t len) {
+ acmp_node_t *node, *go_to;
+ #ifdef ACMP_USE_UTF8
+ apr_size_t seq_length;
+ #endif
+ const char *end;
+
+ if (parser->is_failtree_done == 0) acmp_prepare(parser);
+
+ node = parser->active_node;
+ end = data + len;
+
+ while (data < end) {
+ acmp_utf8_char_t letter;
+
+ parser->bp_buffer[parser->char_pos % parser->bp_buff_len] = parser->byte_pos;
+ #ifdef ACMP_USE_UTF8
+ if (parser->is_utf8) {
+ if (parser->u8buff_len > 0) {
+ /* Resuming partial utf-8 sequence */
+ seq_length = utf8_seq_len(parser->u8_buff);
+ for (;;) {
+ parser->u8_buff[parser->u8buff_len++] = *data++;
+ if (parser->u8buff_len == seq_length) {
+ parser->u8buff_len = 0;
+ letter = utf8_decodechar(parser->u8_buff);
+ parser->byte_pos += seq_length;
+ parser->char_pos++;
+ break;
+ }
+ }
+ } else {
+ /* not resuming partial sequence, reading from the stream */
+ seq_length = utf8_seq_len(data);
+ if ((data + seq_length) > end) {
+ while (data < end) parser->u8_buff[parser->u8buff_len++] = *data++;
+ return APR_SUCCESS;
+ } else {
+ letter = utf8_decodechar(data);
+ data += seq_length;
+ parser->byte_pos += seq_length;
+ parser->char_pos++;
+ }
+ }
+ } else
+ #endif
+ {
+ letter = *data++;
+ parser->byte_pos++;
+ parser->char_pos++;
+ }
+ if (parser->is_case_sensitive == 0) letter = utf8_lcase(letter);
+
+ go_to = NULL;
+ while (go_to == NULL) {
+ acmp_node_t *n2 = acmp_goto(node, letter);
+ go_to = acmp_child_for_code(node, letter);
+ if (n2 != go_to) {
+ n2 = acmp_goto(node, letter);
+ };
+ if (go_to != NULL) {
+ if (go_to->is_last) {
+ acmp_found(parser, go_to);
+ }
+ }
+ if (node == parser->root_node) break;
+ if (go_to == NULL) node = node->fail;
+ }
+ if (go_to != NULL) node = go_to;
+
+ /* We need to collect other nodes that are last letters of phrase. These
+ * will be fail node of current node if it has is_last flag set, and
+ * fail node of that node, recursively down to root node.
+ */
+ go_to = node;
+ if (go_to != parser->root_node) {
+ for (go_to = go_to->o_match; go_to != NULL; go_to = go_to->o_match) {
+ acmp_found(parser, go_to);
+ }
+ }
+ }
+ parser->active_node = node;
+ return parser->hit_count > 0 ? 1 : 0;
+}
+
+/**
+ * Resets the state of parser so you can start using it with new set of data.
+ *
+ * No need to clear buffer since it will be re-initialized at first run of
+ * acmp_process
+ */
+void acmp_reset(ACMP *parser) {
+ parser->is_active = 0;
+ parser->byte_pos = 0;
+ parser->char_pos = 0;
+ parser->hit_count = 0;
+ parser->u8buff_len = 0;
+ acmp_clear_hit_count_recursive(parser->root_node);
+}
+
+/**
+ * Creates an ACMPT struct that will use parser's tree, without duplicating its data
+ */
+ACMPT *acmp_duplicate_quick(ACMP *parser, apr_pool_t *pool) {
+ apr_pool_t *p = (pool != NULL) ? pool : parser->pool;
+ ACMPT *dup = apr_pcalloc(p, sizeof(ACMPT));
+ /* ENH: Check alloc succeded */
+ dup->parser = parser;
+ return dup;
+}
+
+/**
+ * Process the data using ACMPT to keep state, and ACMPT's parser to keep the tree
+ */
+apr_status_t acmp_process_quick(ACMPT *acmpt, const char **match, const char *data, apr_size_t len) {
+ ACMP *parser;
+ acmp_node_t *node, *go_to;
+ const char *end;
+
+ if (acmpt->parser->is_failtree_done == 0) {
+ acmp_prepare(acmpt->parser);
+ };
+
+ parser = acmpt->parser;
+ if (acmpt->ptr == NULL) acmpt->ptr = parser->root_node;
+ node = acmpt->ptr;
+ end = data + len;
+
+ while (data < end) {
+ acmp_utf8_char_t letter = (unsigned char)*data++;
+
+ if (parser->is_case_sensitive == 0) letter = utf8_lcase(letter);
+
+ go_to = NULL;
+ while (go_to == NULL) {
+ go_to = acmp_goto(node, letter);
+ if (go_to != NULL) {
+ if (go_to->is_last) {
+ *match = go_to->text;
+ return 1;
+ }
+ }
+ if (node == parser->root_node) break;
+ if (go_to == NULL) node = node->fail;
+ }
+ if (go_to != NULL) node = go_to;
+
+ /* If node has o_match, then we found a pattern */
+ if (node->o_match != NULL) {
+ *match = node->text;
+ return 1;
+ }
+ }
+ acmpt->ptr = node;
+ return 0;
+}
--- /dev/null
+/*
+ * ModSecurity for Apache 2.x, http://www.modsecurity.org/
+ * Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
+ *
+ * This product is released under the terms of the General Public Licence,
+ * version 2 (GPLv2). Please refer to the file LICENSE (included with this
+ * distribution) which contains the complete text of the licence.
+ *
+ * There are special exceptions to the terms and conditions of the GPL
+ * as it is applied to this software. View the full text of the exception in
+ * file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
+ * distribution.
+ *
+ * If any of the files related to licensing are missing or if you have any
+ * other questions related to licensing please contact Breach Security, Inc.
+ * directly using the email address support@breach.com.
+ *
+ */
+#ifndef ACMP_H_
+#define ACMP_H_
+
+#include <apr.h>
+#include <apr_pools.h>
+
+#define ACMP_FLAG_BYTE 0
+#define ACMP_FLAG_CASE_SENSITIVE 1
+#define ACMP_FLAG_CASE_INSENSITIVE 0
+#ifdef ACMP_USE_UTF8
+#define ACMP_FLAG_UTF8 0x100
+#endif
+
+/**
+ * Opaque struct with parser data
+ */
+typedef struct ACMP ACMP;
+
+/**
+ * Used to separate state from the trie for acmp_process_quick function
+ */
+typedef struct {
+ ACMP *parser;
+ void *ptr;
+} ACMPT;
+
+/**
+ * Callback function. Arguments are:
+ * ACMP * - acmp parser that initiated callback
+ * void * - custom data you supplied when adding callback
+ * apr_size_t - position in bytes where pattern was found
+ * apr_size_t - position in chars where pattern was found, for multibyte strings
+ */
+typedef void (*acmp_callback_t)(ACMP *, void *, apr_size_t, apr_size_t);
+
+/**
+ * flags - OR-ed values of ACMP_FLAG constants
+ * pool - apr_pool to use as parent pool, can be set to NULL
+ */
+ACMP *acmp_create(int flags, apr_pool_t *pool);
+
+/**
+ * Destroys previously created parser
+ */
+void acmp_destroy(ACMP *parser);
+
+/**
+ * Creates parser with same options and same patterns
+ * parser - ACMP parser to duplicate
+ * pool - parent pool to use, if left as NULL original parser's parent pool is used
+ */
+ACMP *acmp_duplicate(ACMP *parser, apr_pool_t *pool);
+
+/**
+ * Adds pattern to parser. Cannot be done after starting the search.
+ * parser - ACMP parser
+ * pattern - string with pattern to match
+ * callback - Optional, pointer to an acmp_callback_t function
+ * data - pointer to data that will be passed to callback function, only used if callback
+ * is supplied
+ * len - Length of pattern in characters, if zero string length is used.
+ */
+apr_status_t acmp_add_pattern(ACMP *parser, const char *pattern,
+ acmp_callback_t callback, void *data, apr_size_t len);
+
+/**
+ * Called to process incoming data stream. You must call acmp_done after sending
+ * last data packet
+ *
+ * data - ptr to incoming data
+ * len - size of data in bytes
+ */
+apr_status_t acmp_process(ACMP *parser, const char *data, apr_size_t len);
+
+/**
+ * Returns number of matches on all patterns combined
+ */
+apr_size_t acmp_match_count_total(ACMP *parser);
+
+/**
+ * Returns number of matches for given pattern
+ */
+apr_size_t acmp_match_count(ACMP *parser, const char *pattern);
+
+/**
+ * Resets the state of parser so you can start using it with new set of data,
+ * or add new patterns.
+ */
+void acmp_reset(ACMP *parser);
+
+/**
+ * Creates an ACMPT struct that will use parser's tree, without duplicating its data
+ */
+ACMPT *acmp_duplicate_quick(ACMP *parser, apr_pool_t *pool);
+
+/**
+ * Process the data using ACMPT to keep state, and ACMPT's parser to keep the tree
+ */
+apr_status_t acmp_process_quick(ACMPT *acmpt, const char **match, const char *data, apr_size_t len);
+
+/**
+ * Prepares parser for searching
+ */
+apr_status_t acmp_prepare(ACMP *parser);
+
+
+#endif /*ACMP_H_*/
--- /dev/null
+/*
+ * ModSecurity for Apache 2.x, http://www.modsecurity.org/
+ * Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
+ *
+ * This product is released under the terms of the General Public Licence,
+ * version 2 (GPLv2). Please refer to the file LICENSE (included with this
+ * distribution) which contains the complete text of the licence.
+ *
+ * There are special exceptions to the terms and conditions of the GPL
+ * as it is applied to this software. View the full text of the exception in
+ * file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
+ * distribution.
+ *
+ * If any of the files related to licensing are missing or if you have any
+ * other questions related to licensing please contact Breach Security, Inc.
+ * directly using the email address support@breach.com.
+ *
+ */
+#ifndef _APACHE2_H_
+#define _APACHE2_H_
+
+#include "http_core.h"
+#include "http_request.h"
+#include "httpd.h"
+#include "ap_release.h"
+
+#include <apr_general.h>
+#include <apr_optional.h>
+
+
+#if (!defined(NO_MODSEC_API))
+/* Optional functions. */
+
+APR_DECLARE_OPTIONAL_FN(void, modsec_register_tfn, (const char *name, void *fn));
+APR_DECLARE_OPTIONAL_FN(void, modsec_register_operator, (const char *name, void *fn_init, void *fn_exec));
+APR_DECLARE_OPTIONAL_FN(void, modsec_register_variable,
+ (const char *name, unsigned int type,
+ unsigned int argc_min, unsigned int argc_max,
+ void *fn_validate, void *fn_generate,
+ unsigned int is_cacheable, unsigned int availability));
+#endif
+
+/* ap_get_server_version() is gone in 2.3.0.
+ * It was replaced by two calls in 2.2.4 and higher:
+ * ap_get_server_banner()
+ * ap_get_server_description()
+ */
+#if (AP_SERVER_MAJORVERSION_NUMBER > 2) \
+ || ((AP_SERVER_MAJORVERSION_NUMBER == 2)&& (AP_SERVER_MINORVERSION_NUMBER > 2)) \
+ || ((AP_SERVER_MAJORVERSION_NUMBER == 2) && (AP_SERVER_MINORVERSION_NUMBER == 2) && (AP_SERVER_PATCHLEVEL_NUMBER >= 4))
+#define apache_get_server_version() ap_get_server_banner()
+#else
+#define apache_get_server_version() ap_get_server_version()
+#endif
+
+
+/* Configuration functions. */
+
+void DSOLOCAL *create_directory_config(apr_pool_t *mp, char *path);
+
+void DSOLOCAL *merge_directory_configs(apr_pool_t *mp, void *_parent, void *_child);
+
+void DSOLOCAL init_directory_config(directory_config *dcfg);
+
+
+/* IO functions. */
+
+apr_status_t DSOLOCAL input_filter(ap_filter_t *f, apr_bucket_brigade *bb_out,
+ ap_input_mode_t mode, apr_read_type_e block, apr_off_t nbytes);
+
+apr_status_t DSOLOCAL output_filter(ap_filter_t *f, apr_bucket_brigade *bb_in);
+
+apr_status_t DSOLOCAL read_request_body(modsec_rec *msr, char **error_msg);
+
+
+/* Utility functions */
+
+int DSOLOCAL perform_interception(modsec_rec *msr);
+
+apr_status_t DSOLOCAL send_error_bucket(modsec_rec *msr, ap_filter_t *f, int status);
+
+int DSOLOCAL apache2_exec(modsec_rec *msr, const char *command, const char **argv, char **output);
+
+void DSOLOCAL record_time_checkpoint(modsec_rec *msr, int checkpoint_no);
+
+char DSOLOCAL *get_apr_error(apr_pool_t *p, apr_status_t rc);
+
+char DSOLOCAL *get_env_var(request_rec *r, char *name);
+
+void DSOLOCAL internal_log_ex(request_rec *r, directory_config *dcfg, modsec_rec *msr,
+ int level, int fixup, const char *text, va_list ap);
+
+void DSOLOCAL internal_log(request_rec *r, directory_config *dcfg, modsec_rec *msr,
+ int level, const char *text, va_list ap);
+
+void DSOLOCAL msr_log(modsec_rec *msr, int level, const char *text, ...) PRINTF_ATTRIBUTE(3,4);
+
+void DSOLOCAL msr_log_error(modsec_rec *msr, const char *text, ...) PRINTF_ATTRIBUTE(2,3);
+
+void DSOLOCAL msr_log_warn(modsec_rec *msr, const char *text, ...) PRINTF_ATTRIBUTE(2,3);
+
+char DSOLOCAL *format_error_log_message(apr_pool_t *mp, error_message *em);
+
+const DSOLOCAL char *get_response_protocol(request_rec *r);
+
+
+#endif
+
--- /dev/null
+/*
+ * ModSecurity for Apache 2.x, http://www.modsecurity.org/
+ * Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
+ *
+ * This product is released under the terms of the General Public Licence,
+ * version 2 (GPLv2). Please refer to the file LICENSE (included with this
+ * distribution) which contains the complete text of the licence.
+ *
+ * There are special exceptions to the terms and conditions of the GPL
+ * as it is applied to this software. View the full text of the exception in
+ * file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
+ * distribution.
+ *
+ * If any of the files related to licensing are missing or if you have any
+ * other questions related to licensing please contact Breach Security, Inc.
+ * directly using the email address support@breach.com.
+ *
+ */
+#include <limits.h>
+
+#include "modsecurity.h"
+#include "msc_logging.h"
+#include "msc_util.h"
+#include "pdf_protect.h"
+#include "http_log.h"
+
+#if defined(WITH_LUA)
+#include "msc_lua.h"
+#endif
+
+
+/* -- Directory context creation and initialisation -- */
+
+/**
+ * Creates a fresh directory configuration.
+ */
+void *create_directory_config(apr_pool_t *mp, char *path) {
+ directory_config *dcfg = (directory_config *)apr_pcalloc(mp, sizeof(directory_config));
+ if (dcfg == NULL) return NULL;
+
+ #ifdef DEBUG_CONF
+ ap_log_perror(APLOG_MARK, APLOG_STARTUP|APLOG_NOERRNO, 0, mp, "Created directory config %pp path %s", dcfg, path);
+ #endif
+
+ dcfg->mp = mp;
+ dcfg->is_enabled = NOT_SET;
+
+ dcfg->reqbody_access = NOT_SET;
+ dcfg->reqbody_buffering = NOT_SET;
+ dcfg->reqbody_inmemory_limit = NOT_SET;
+ dcfg->reqbody_limit = NOT_SET;
+ dcfg->reqbody_no_files_limit = NOT_SET;
+ dcfg->resbody_access = NOT_SET;
+
+ dcfg->debuglog_name = NOT_SET_P;
+ dcfg->debuglog_level = NOT_SET;
+ dcfg->debuglog_fd = NOT_SET_P;
+
+ dcfg->of_limit = NOT_SET;
+ dcfg->of_limit_action = NOT_SET;
+ dcfg->of_mime_types = NOT_SET_P;
+ dcfg->of_mime_types_cleared = NOT_SET;
+
+ dcfg->cookie_format = NOT_SET;
+ dcfg->argument_separator = NOT_SET;
+
+ dcfg->rule_inheritance = NOT_SET;
+ dcfg->rule_exceptions = apr_array_make(mp, 16, sizeof(rule_exception *));
+
+ /* audit log variables */
+ dcfg->auditlog_flag = NOT_SET;
+ dcfg->auditlog_type = NOT_SET;
+ dcfg->auditlog_dirperms = NOT_SET;
+ dcfg->auditlog_fileperms = NOT_SET;
+ dcfg->auditlog_name = NOT_SET_P;
+ dcfg->auditlog2_name = NOT_SET_P;
+ dcfg->auditlog_fd = NOT_SET_P;
+ dcfg->auditlog2_fd = NOT_SET_P;
+ dcfg->auditlog_storage_dir = NOT_SET_P;
+ dcfg->auditlog_parts = NOT_SET_P;
+ dcfg->auditlog_relevant_regex = NOT_SET_P;
+
+ dcfg->ruleset = NULL;
+
+ /* Upload */
+ dcfg->tmp_dir = NOT_SET_P;
+ dcfg->upload_dir = NOT_SET_P;
+ dcfg->upload_keep_files = NOT_SET;
+ dcfg->upload_validates_files = NOT_SET;
+ dcfg->upload_filemode = NOT_SET;
+
+ /* These are only used during the configuration process. */
+ dcfg->tmp_chain_starter = NULL;
+ dcfg->tmp_default_actionset = NULL;
+ dcfg->tmp_rule_placeholders = NULL;
+
+ /* Misc */
+ dcfg->data_dir = NOT_SET_P;
+ dcfg->webappid = NOT_SET_P;
+
+ /* Content injection. */
+ dcfg->content_injection_enabled = NOT_SET;
+
+ /* PDF XSS protection. */
+ dcfg->pdfp_enabled = NOT_SET;
+ dcfg->pdfp_secret = NOT_SET_P;
+ dcfg->pdfp_timeout = NOT_SET;
+ dcfg->pdfp_token_name = NOT_SET_P;
+ dcfg->pdfp_only_get = NOT_SET;
+ dcfg->pdfp_method = NOT_SET;
+
+ /* Geo Lookups */
+ dcfg->geo = NOT_SET_P;
+
+ /* Cache */
+ dcfg->cache_trans = NOT_SET;
+ dcfg->cache_trans_incremental = NOT_SET;
+ dcfg->cache_trans_min = NOT_SET;
+ dcfg->cache_trans_max = NOT_SET;
+ dcfg->cache_trans_maxitems = NOT_SET;
+
+ dcfg->component_signatures = apr_array_make(mp, 16, sizeof(char *));
+
+ dcfg->request_encoding = NOT_SET_P;
+
+ return dcfg;
+}
+
+/**
+ * Copies rules between one phase of two configuration contexts,
+ * taking exceptions into account.
+ */
+static void copy_rules_phase(apr_pool_t *mp, apr_array_header_t *parent_phase_arr,
+ apr_array_header_t *child_phase_arr, apr_array_header_t *exceptions_arr)
+{
+ rule_exception **exceptions;
+ msre_rule **rules;
+ int i, j;
+ int mode = 0;
+
+ rules = (msre_rule **)parent_phase_arr->elts;
+ for(i = 0; i < parent_phase_arr->nelts; i++) {
+ msre_rule *rule = (msre_rule *)rules[i];
+ int copy = 1;
+
+ if (mode == 0) {
+ /* First rule in the chain. */
+ exceptions = (rule_exception **)exceptions_arr->elts;
+ for(j = 0; j < exceptions_arr->nelts; j++) {
+
+ /* Process exceptions. */
+ switch(exceptions[j]->type) {
+ case RULE_EXCEPTION_REMOVE_ID :
+ if ((rule->actionset != NULL)&&(rule->actionset->id != NULL)) {
+ int ruleid = atoi(rule->actionset->id);
+ if (rule_id_in_range(ruleid, exceptions[j]->param)) copy--;
+ }
+ break;
+ case RULE_EXCEPTION_REMOVE_MSG :
+ if ((rule->actionset != NULL)&&(rule->actionset->msg != NULL)) {
+ char *my_error_msg = NULL;
+
+ int rc = msc_regexec(exceptions[j]->param_data,
+ rule->actionset->msg, strlen(rule->actionset->msg),
+ &my_error_msg);
+ if (rc >= 0) copy--;
+ }
+ break;
+ }
+ }
+
+ if (copy > 0) {
+ #ifdef DEBUG_CONF
+ ap_log_perror(APLOG_MARK, APLOG_STARTUP|APLOG_NOERRNO, 0, mp, "Copy rule %pp [id \"%s\"]", rule, rule->actionset->id);
+ #endif
+
+ /* Copy the rule. */
+ *(msre_rule **)apr_array_push(child_phase_arr) = rule;
+ if (rule->actionset->is_chained) mode = 2;
+ } else {
+ if (rule->actionset->is_chained) mode = 1;
+ }
+ } else {
+ if (mode == 2) {
+ #ifdef DEBUG_CONF
+ ap_log_perror(APLOG_MARK, APLOG_STARTUP|APLOG_NOERRNO, 0, mp, "Copy chain %pp for rule %pp [id \"%s\"]", rule, rule->chain_starter, rule->chain_starter->actionset->id);
+ #endif
+
+ /* Copy the rule (it belongs to the chain we want to include. */
+ *(msre_rule **)apr_array_push(child_phase_arr) = rule;
+ }
+
+ if ((rule->actionset == NULL)||(rule->actionset->is_chained == 0)) mode = 0;
+ }
+ }
+}
+
+/**
+ * Copies rules between two configuration contexts,
+ * taking exceptions into account.
+ */
+static int copy_rules(apr_pool_t *mp, msre_ruleset *parent_ruleset, msre_ruleset *child_ruleset,
+ apr_array_header_t *exceptions_arr)
+{
+ copy_rules_phase(mp, parent_ruleset->phase_request_headers,
+ child_ruleset->phase_request_headers, exceptions_arr);
+ copy_rules_phase(mp, parent_ruleset->phase_request_body,
+ child_ruleset->phase_request_body, exceptions_arr);
+ copy_rules_phase(mp, parent_ruleset->phase_response_headers,
+ child_ruleset->phase_response_headers, exceptions_arr);
+ copy_rules_phase(mp, parent_ruleset->phase_response_body,
+ child_ruleset->phase_response_body, exceptions_arr);
+ copy_rules_phase(mp, parent_ruleset->phase_logging,
+ child_ruleset->phase_logging, exceptions_arr);
+
+ return 1;
+}
+
+/**
+ * Merges two directory configurations.
+ */
+void *merge_directory_configs(apr_pool_t *mp, void *_parent, void *_child) {
+ directory_config *parent = (directory_config *)_parent;
+ directory_config *child = (directory_config *)_child;
+ directory_config *merged = create_directory_config(mp, NULL);
+
+ #ifdef DEBUG_CONF
+ ap_log_perror(APLOG_MARK, APLOG_STARTUP|APLOG_NOERRNO, 0, mp, "Merge parent %pp child %pp RESULT %pp", _parent, _child, merged);
+ #endif
+
+ if (merged == NULL) return NULL;
+
+ /* Use values from the child configuration where possible,
+ * otherwise use the parent's.
+ */
+
+ merged->is_enabled = (child->is_enabled == NOT_SET
+ ? parent->is_enabled : child->is_enabled);
+
+ /* IO parameters */
+ merged->reqbody_access = (child->reqbody_access == NOT_SET
+ ? parent->reqbody_access : child->reqbody_access);
+ merged->reqbody_buffering = (child->reqbody_buffering == NOT_SET
+ ? parent->reqbody_buffering : child->reqbody_buffering);
+ merged->reqbody_inmemory_limit = (child->reqbody_inmemory_limit == NOT_SET
+ ? parent->reqbody_inmemory_limit : child->reqbody_inmemory_limit);
+ merged->reqbody_limit = (child->reqbody_limit == NOT_SET
+ ? parent->reqbody_limit : child->reqbody_limit);
+ merged->reqbody_no_files_limit = (child->reqbody_no_files_limit == NOT_SET
+ ? parent->reqbody_no_files_limit : child->reqbody_no_files_limit);
+ merged->resbody_access = (child->resbody_access == NOT_SET
+ ? parent->resbody_access : child->resbody_access);
+
+ merged->of_limit = (child->of_limit == NOT_SET
+ ? parent->of_limit : child->of_limit);
+ merged->of_limit_action = (child->of_limit_action == NOT_SET
+ ? parent->of_limit_action : child->of_limit_action);
+
+ if (child->of_mime_types != NOT_SET_P) {
+ /* Child added to the table */
+
+ if (child->of_mime_types_cleared == 1) {
+ /* The list of MIME types was cleared in the child,
+ * which means the parent's MIME types went away and
+ * we should not take them into consideration here.
+ */
+ merged->of_mime_types = child->of_mime_types;
+ merged->of_mime_types_cleared = 1;
+ } else {
+ /* Add MIME types defined in the child to those
+ * defined in the parent context.
+ */
+ if (parent->of_mime_types == NOT_SET_P) {
+ merged->of_mime_types = child->of_mime_types;
+ merged->of_mime_types_cleared = NOT_SET;
+ } else {
+ merged->of_mime_types = apr_table_overlay(mp, parent->of_mime_types,
+ child->of_mime_types);
+ if (merged->of_mime_types == NULL) return NULL;
+ }
+ }
+ } else {
+ /* Child did not add to the table */
+
+ if (child->of_mime_types_cleared == 1) {
+ merged->of_mime_types_cleared = 1;
+ } else {
+ merged->of_mime_types = parent->of_mime_types;
+ merged->of_mime_types_cleared = parent->of_mime_types_cleared;
+ }
+ }
+
+ /* debug log */
+ if (child->debuglog_fd == NOT_SET_P) {
+ merged->debuglog_name = parent->debuglog_name;
+ merged->debuglog_fd = parent->debuglog_fd;
+ } else {
+ merged->debuglog_name = child->debuglog_name;
+ merged->debuglog_fd = child->debuglog_fd;
+ }
+
+ merged->debuglog_level = (child->debuglog_level == NOT_SET
+ ? parent->debuglog_level : child->debuglog_level);
+
+ merged->cookie_format = (child->cookie_format == NOT_SET
+ ? parent->cookie_format : child->cookie_format);
+ merged->argument_separator = (child->argument_separator == NOT_SET
+ ? parent->argument_separator : child->argument_separator);
+
+
+ /* rule inheritance */
+ if ((child->rule_inheritance == NOT_SET)||(child->rule_inheritance == 1)) {
+ merged->rule_inheritance = parent->rule_inheritance;
+ if ((child->ruleset == NULL)&&(parent->ruleset == NULL)) {
+ #ifdef DEBUG_CONF
+ ap_log_perror(APLOG_MARK, APLOG_STARTUP|APLOG_NOERRNO, 0, mp, "No rules in this context.");
+ #endif
+
+ /* Do nothing, there are no rules in either context. */
+ } else
+ if (child->ruleset == NULL) {
+ #ifdef DEBUG_CONF
+ ap_log_perror(APLOG_MARK, APLOG_STARTUP|APLOG_NOERRNO, 0, mp, "Using parent rules in this context.");
+ #endif
+
+ /* Copy the rules from the parent context. */
+ merged->ruleset = msre_ruleset_create(parent->ruleset->engine, mp);
+ copy_rules(mp, parent->ruleset, merged->ruleset, child->rule_exceptions);
+ } else
+ if (parent->ruleset == NULL) {
+ #ifdef DEBUG_CONF
+ ap_log_perror(APLOG_MARK, APLOG_STARTUP|APLOG_NOERRNO, 0, mp, "Using child rules in this context.");
+ #endif
+
+ /* Copy child rules. */
+ merged->ruleset = msre_ruleset_create(child->ruleset->engine, mp);
+ merged->ruleset->phase_request_headers = apr_array_copy(mp,
+ child->ruleset->phase_request_headers);
+ merged->ruleset->phase_request_body = apr_array_copy(mp,
+ child->ruleset->phase_request_body);
+ merged->ruleset->phase_response_headers = apr_array_copy(mp,
+ child->ruleset->phase_response_headers);
+ merged->ruleset->phase_response_body = apr_array_copy(mp,
+ child->ruleset->phase_response_body);
+ merged->ruleset->phase_logging = apr_array_copy(mp,
+ child->ruleset->phase_logging);
+ } else {
+ #ifdef DEBUG_CONF
+ ap_log_perror(APLOG_MARK, APLOG_STARTUP|APLOG_NOERRNO, 0, mp, "Using parent then child rules in this context.");
+ #endif
+
+ /* Copy parent rules, then add child rules to it. */
+ merged->ruleset = msre_ruleset_create(parent->ruleset->engine, mp);
+ copy_rules(mp, parent->ruleset, merged->ruleset, child->rule_exceptions);
+
+ apr_array_cat(merged->ruleset->phase_request_headers,
+ child->ruleset->phase_request_headers);
+ apr_array_cat(merged->ruleset->phase_request_body,
+ child->ruleset->phase_request_body);
+ apr_array_cat(merged->ruleset->phase_response_headers,
+ child->ruleset->phase_response_headers);
+ apr_array_cat(merged->ruleset->phase_response_body,
+ child->ruleset->phase_response_body);
+ apr_array_cat(merged->ruleset->phase_logging,
+ child->ruleset->phase_logging);
+ }
+ } else {
+ merged->rule_inheritance = 0;
+ if (child->ruleset != NULL) {
+ /* Copy child rules. */
+ merged->ruleset = msre_ruleset_create(child->ruleset->engine, mp);
+ merged->ruleset->phase_request_headers = apr_array_copy(mp,
+ child->ruleset->phase_request_headers);
+ merged->ruleset->phase_request_body = apr_array_copy(mp,
+ child->ruleset->phase_request_body);
+ merged->ruleset->phase_response_headers = apr_array_copy(mp,
+ child->ruleset->phase_response_headers);
+ merged->ruleset->phase_response_body = apr_array_copy(mp,
+ child->ruleset->phase_response_body);
+ merged->ruleset->phase_logging = apr_array_copy(mp,
+ child->ruleset->phase_logging);
+ }
+ }
+
+ /* Merge rule exceptions. */
+ merged->rule_exceptions = apr_array_append(mp, parent->rule_exceptions,
+ child->rule_exceptions);
+
+ /* audit log variables */
+ merged->auditlog_flag = (child->auditlog_flag == NOT_SET
+ ? parent->auditlog_flag : child->auditlog_flag);
+ merged->auditlog_type = (child->auditlog_type == NOT_SET
+ ? parent->auditlog_type : child->auditlog_type);
+ merged->auditlog_dirperms = (child->auditlog_dirperms == NOT_SET
+ ? parent->auditlog_dirperms : child->auditlog_dirperms);
+ merged->auditlog_fileperms = (child->auditlog_fileperms == NOT_SET
+ ? parent->auditlog_fileperms : child->auditlog_fileperms);
+ if (child->auditlog_fd != NOT_SET_P) {
+ merged->auditlog_fd = child->auditlog_fd;
+ merged->auditlog_name = child->auditlog_name;
+ } else {
+ merged->auditlog_fd = parent->auditlog_fd;
+ merged->auditlog_name = parent->auditlog_name;
+ }
+ if (child->auditlog2_fd != NOT_SET_P) {
+ merged->auditlog2_fd = child->auditlog2_fd;
+ merged->auditlog2_name = child->auditlog2_name;
+ } else {
+ merged->auditlog2_fd = parent->auditlog2_fd;
+ merged->auditlog2_name = parent->auditlog2_name;
+ }
+ merged->auditlog_storage_dir = (child->auditlog_storage_dir == NOT_SET_P
+ ? parent->auditlog_storage_dir : child->auditlog_storage_dir);
+ merged->auditlog_parts = (child->auditlog_parts == NOT_SET_P
+ ? parent->auditlog_parts : child->auditlog_parts);
+ merged->auditlog_relevant_regex = (child->auditlog_relevant_regex == NOT_SET_P
+ ? parent->auditlog_relevant_regex : child->auditlog_relevant_regex);
+
+ /* Upload */
+ merged->tmp_dir = (child->tmp_dir == NOT_SET_P
+ ? parent->tmp_dir : child->tmp_dir);
+ merged->upload_dir = (child->upload_dir == NOT_SET_P
+ ? parent->upload_dir : child->upload_dir);
+ merged->upload_keep_files = (child->upload_keep_files == NOT_SET
+ ? parent->upload_keep_files : child->upload_keep_files);
+ merged->upload_validates_files = (child->upload_validates_files == NOT_SET
+ ? parent->upload_validates_files : child->upload_validates_files);
+ merged->upload_filemode = (child->upload_filemode == NOT_SET
+ ? parent->upload_filemode : child->upload_filemode);
+
+ /* Misc */
+ merged->data_dir = (child->data_dir == NOT_SET_P
+ ? parent->data_dir : child->data_dir);
+ merged->webappid = (child->webappid == NOT_SET_P
+ ? parent->webappid : child->webappid);
+
+ /* Content injection. */
+ merged->content_injection_enabled = (child->content_injection_enabled == NOT_SET
+ ? parent->content_injection_enabled : child->content_injection_enabled);
+
+ /* PDF XSS protection. */
+ merged->pdfp_enabled = (child->pdfp_enabled == NOT_SET
+ ? parent->pdfp_enabled : child->pdfp_enabled);
+ merged->pdfp_secret = (child->pdfp_secret == NOT_SET_P
+ ? parent->pdfp_secret : child->pdfp_secret);
+ merged->pdfp_timeout = (child->pdfp_timeout == NOT_SET
+ ? parent->pdfp_timeout : child->pdfp_timeout);
+ merged->pdfp_token_name = (child->pdfp_token_name == NOT_SET_P
+ ? parent->pdfp_token_name : child->pdfp_token_name);
+ merged->pdfp_only_get = (child->pdfp_only_get == NOT_SET
+ ? parent->pdfp_only_get : child->pdfp_only_get);
+ merged->pdfp_method = (child->pdfp_method == NOT_SET
+ ? parent->pdfp_method : child->pdfp_method);
+
+ /* Geo Lookup */
+ merged->geo = (child->geo == NOT_SET_P
+ ? parent->geo : child->geo);
+
+ /* Cache */
+ merged->cache_trans = (child->cache_trans == NOT_SET
+ ? parent->cache_trans : child->cache_trans);
+ merged->cache_trans_incremental = (child->cache_trans_incremental == NOT_SET
+ ? parent->cache_trans_incremental : child->cache_trans_incremental);
+ merged->cache_trans_min = (child->cache_trans_min == (apr_size_t)NOT_SET
+ ? parent->cache_trans_min : child->cache_trans_min);
+ merged->cache_trans_max = (child->cache_trans_max == (apr_size_t)NOT_SET
+ ? parent->cache_trans_max : child->cache_trans_max);
+ merged->cache_trans_maxitems = (child->cache_trans_maxitems == (apr_size_t)NOT_SET
+ ? parent->cache_trans_maxitems : child->cache_trans_maxitems);
+
+ /* Merge component signatures. */
+ merged->component_signatures = apr_array_append(mp, parent->component_signatures,
+ child->component_signatures);
+
+ merged->request_encoding = (child->request_encoding == NOT_SET_P
+ ? parent->request_encoding : child->request_encoding);
+
+ return merged;
+}
+
+/**
+ * Initialise directory configuration. This function is *not* meant
+ * to be called for directory configuration instances created during
+ * the configuration phase. It can only be called on copies of those
+ * (created fresh for every transaction).
+ */
+void init_directory_config(directory_config *dcfg) {
+ if (dcfg == NULL) return;
+
+ if (dcfg->is_enabled == NOT_SET) dcfg->is_enabled = 0;
+
+ if (dcfg->reqbody_access == NOT_SET) dcfg->reqbody_access = 0;
+ if (dcfg->reqbody_buffering == NOT_SET) dcfg->reqbody_buffering = REQUEST_BODY_FORCEBUF_OFF;
+ if (dcfg->reqbody_inmemory_limit == NOT_SET)
+ dcfg->reqbody_inmemory_limit = REQUEST_BODY_DEFAULT_INMEMORY_LIMIT;
+ if (dcfg->reqbody_limit == NOT_SET) dcfg->reqbody_limit = REQUEST_BODY_DEFAULT_LIMIT;
+ if (dcfg->reqbody_no_files_limit == NOT_SET) dcfg->reqbody_no_files_limit = REQUEST_BODY_NO_FILES_DEFAULT_LIMIT;
+ if (dcfg->resbody_access == NOT_SET) dcfg->resbody_access = 0;
+ if (dcfg->of_limit == NOT_SET) dcfg->of_limit = RESPONSE_BODY_DEFAULT_LIMIT;
+ if (dcfg->of_limit_action == NOT_SET) dcfg->of_limit_action = RESPONSE_BODY_LIMIT_ACTION_REJECT;
+
+ if (dcfg->of_mime_types == NOT_SET_P) {
+ dcfg->of_mime_types = apr_table_make(dcfg->mp, 3);
+ if (dcfg->of_mime_types_cleared != 1) {
+ apr_table_setn(dcfg->of_mime_types, "text/plain", "1");
+ apr_table_setn(dcfg->of_mime_types, "text/html", "1");
+ }
+ }
+
+ if (dcfg->debuglog_fd == NOT_SET_P) dcfg->debuglog_fd = NULL;
+ if (dcfg->debuglog_name == NOT_SET_P) dcfg->debuglog_name = NULL;
+ if (dcfg->debuglog_level == NOT_SET) dcfg->debuglog_level = 0;
+
+ if (dcfg->cookie_format == NOT_SET) dcfg->cookie_format = 0;
+ if (dcfg->argument_separator == NOT_SET) dcfg->argument_separator = '&';
+
+ if (dcfg->rule_inheritance == NOT_SET) dcfg->rule_inheritance = 1;
+
+ /* audit log variables */
+ if (dcfg->auditlog_flag == NOT_SET) dcfg->auditlog_flag = 0;
+ if (dcfg->auditlog_type == NOT_SET) dcfg->auditlog_type = AUDITLOG_SERIAL;
+ if (dcfg->auditlog_dirperms == NOT_SET) dcfg->auditlog_dirperms = CREATEMODE_DIR;
+ if (dcfg->auditlog_fileperms == NOT_SET) dcfg->auditlog_fileperms = CREATEMODE;
+ if (dcfg->auditlog_fd == NOT_SET_P) dcfg->auditlog_fd = NULL;
+ if (dcfg->auditlog2_fd == NOT_SET_P) dcfg->auditlog2_fd = NULL;
+ if (dcfg->auditlog_name == NOT_SET_P) dcfg->auditlog_name = NULL;
+ if (dcfg->auditlog2_name == NOT_SET_P) dcfg->auditlog2_name = NULL;
+ if (dcfg->auditlog_storage_dir == NOT_SET_P) dcfg->auditlog_storage_dir = NULL;
+ if (dcfg->auditlog_parts == NOT_SET_P) dcfg->auditlog_parts = "ABCFHZ";
+ if (dcfg->auditlog_relevant_regex == NOT_SET_P) dcfg->auditlog_relevant_regex = NULL;
+
+ /* Upload */
+ if (dcfg->tmp_dir == NOT_SET_P) dcfg->tmp_dir = guess_tmp_dir(dcfg->mp);
+ if (dcfg->upload_dir == NOT_SET_P) dcfg->upload_dir = NULL;
+ if (dcfg->upload_keep_files == NOT_SET) dcfg->upload_keep_files = KEEP_FILES_OFF;
+ if (dcfg->upload_validates_files == NOT_SET) dcfg->upload_validates_files = 0;
+ if (dcfg->upload_filemode == NOT_SET) dcfg->upload_filemode = mode2fileperms(0600);
+
+ /* Misc */
+ if (dcfg->data_dir == NOT_SET_P) dcfg->data_dir = NULL;
+ if (dcfg->webappid == NOT_SET_P) dcfg->webappid = "default";
+
+ /* Content injection. */
+ if (dcfg->content_injection_enabled == NOT_SET) dcfg->content_injection_enabled = 0;
+
+ /* PDF XSS protection. */
+ if (dcfg->pdfp_enabled == NOT_SET) dcfg->pdfp_enabled = 0;
+ if (dcfg->pdfp_secret == NOT_SET_P) dcfg->pdfp_secret = NULL;
+ if (dcfg->pdfp_timeout == NOT_SET) dcfg->pdfp_timeout = 10;
+ if (dcfg->pdfp_token_name == NOT_SET_P) dcfg->pdfp_token_name = "PDFPTOKEN";
+ if (dcfg->pdfp_only_get == NOT_SET) dcfg->pdfp_only_get = 1;
+ if (dcfg->pdfp_method == NOT_SET) dcfg->pdfp_method = PDF_PROTECT_METHOD_TOKEN_REDIRECTION;
+
+ /* Geo Lookup */
+ if (dcfg->geo == NOT_SET_P) dcfg->geo = NULL;
+
+ /* Cache */
+ if (dcfg->cache_trans == NOT_SET) dcfg->cache_trans = MODSEC_CACHE_DISABLED;
+ if (dcfg->cache_trans_incremental == NOT_SET) dcfg->cache_trans_incremental = 0;
+ if (dcfg->cache_trans_min == (apr_size_t)NOT_SET) dcfg->cache_trans_min = 32;
+ if (dcfg->cache_trans_max == (apr_size_t)NOT_SET) dcfg->cache_trans_max = 1024;
+ if (dcfg->cache_trans_maxitems == (apr_size_t)NOT_SET) dcfg->cache_trans_maxitems = 512;
+
+ if (dcfg->request_encoding == NOT_SET_P) dcfg->request_encoding = NULL;
+}
+
+/**
+ *
+ */
+static const char *add_rule(cmd_parms *cmd, directory_config *dcfg, int type,
+ const char *p1, const char *p2, const char *p3)
+{
+ char *my_error_msg = NULL;
+ msre_rule *rule = NULL;
+ extern msc_engine *modsecurity;
+
+ #ifdef DEBUG_CONF
+ ap_log_perror(APLOG_MARK, APLOG_STARTUP|APLOG_NOERRNO, 0, cmd->pool,
+ "Rule: type=%d p1='%s' p2='%s' p3='%s'", type, p1, p2, p3);
+ #endif
+
+ /* Create a ruleset if one does not exist. */
+ if ((dcfg->ruleset == NULL)||(dcfg->ruleset == NOT_SET_P)) {
+ dcfg->ruleset = msre_ruleset_create(modsecurity->msre, cmd->pool);
+ if (dcfg->ruleset == NULL) return FATAL_ERROR;
+ }
+
+ /* Create the rule now. */
+ switch(type) {
+ #if defined(WITH_LUA)
+ case RULE_TYPE_LUA :
+ rule = msre_rule_lua_create(dcfg->ruleset, cmd->directive->filename,
+ cmd->directive->line_num, p1, p2, &my_error_msg);
+ break;
+ #endif
+ default :
+ rule = msre_rule_create(dcfg->ruleset, type, cmd->directive->filename,
+ cmd->directive->line_num, p1, p2, p3, &my_error_msg);
+ break;
+ }
+
+ if (rule == NULL) {
+ return my_error_msg;
+ }
+
+ /* Create default actionset if one does not already exist. */
+ if (dcfg->tmp_default_actionset == NULL) {
+ dcfg->tmp_default_actionset = msre_actionset_create_default(modsecurity->msre);
+ if (dcfg->tmp_default_actionset == NULL) return FATAL_ERROR;
+ }
+
+ /* Check some cases prior to merging so we know where it came from */
+
+ /* Check syntax for chained rules */
+ if ((rule->actionset != NULL) && (dcfg->tmp_chain_starter != NULL)) {
+ /* Must NOT specify a disruptive action. */
+ if (rule->actionset->intercept_action != NOT_SET) {
+ return apr_psprintf(cmd->pool, "ModSecurity: Disruptive actions can only "
+ "be specified by chain starter rules.");
+ }
+
+ /* Must NOT specify a phase. */
+ if (rule->actionset->phase != NOT_SET) {
+ return apr_psprintf(cmd->pool, "ModSecurity: Execution phases can only be "
+ "specified by chain starter rules.");
+ }
+
+ /* Must NOT use metadata actions. */
+ /* ENH: loop through to check for tags */
+ if ((rule->actionset->id != NOT_SET_P)
+ ||(rule->actionset->rev != NOT_SET_P)
+ ||(rule->actionset->msg != NOT_SET_P)
+ ||(rule->actionset->severity != NOT_SET)
+ ||(rule->actionset->logdata != NOT_SET_P))
+ {
+ return apr_psprintf(cmd->pool, "ModSecurity: Metadata actions (id, rev, msg, tag, severity, logdata) "
+ " can only be specified by chain starter rules.");
+ }
+
+ /* Must NOT use skip. */
+ if (rule->actionset->skip_count != NOT_SET) {
+ return apr_psprintf(cmd->pool, "ModSecurity: The skip action can only be used "
+ " by chain starter rules. ");
+ }
+ }
+
+ /* Merge actions with the parent.
+ *
+ * ENH Probably do not want this done fully for chained rules.
+ */
+ rule->actionset = msre_actionset_merge(modsecurity->msre, dcfg->tmp_default_actionset,
+ rule->actionset, 1);
+
+ /* Keep track of the parent action for "block" */
+ rule->actionset->parent_intercept_action_rec = dcfg->tmp_default_actionset->intercept_action_rec;
+ rule->actionset->parent_intercept_action = dcfg->tmp_default_actionset->intercept_action;
+
+ /* Must NOT specify a disruptive action in logging phase. */
+ if ((rule->actionset != NULL)
+ && (rule->actionset->phase == PHASE_LOGGING)
+ && (rule->actionset->intercept_action != ACTION_ALLOW)
+ && (rule->actionset->intercept_action != ACTION_ALLOW_REQUEST)
+ && (rule->actionset->intercept_action != ACTION_NONE)
+ ) {
+ return apr_psprintf(cmd->pool, "ModSecurity: Disruptive actions "
+ "cannot be specified in the logging phase.");
+ }
+
+ if (dcfg->tmp_chain_starter != NULL) {
+ rule->chain_starter = dcfg->tmp_chain_starter;
+ rule->actionset->phase = rule->chain_starter->actionset->phase;
+ }
+
+ if (rule->actionset->is_chained != 1) {
+ /* If this rule is part of the chain but does
+ * not want more rules to follow in the chain
+ * then cut it (the chain).
+ */
+ dcfg->tmp_chain_starter = NULL;
+ } else {
+ /* On the other hand, if this rule wants other
+ * rules to follow it, then start a new chain
+ * if there isn't one already.
+ */
+ if (dcfg->tmp_chain_starter == NULL) {
+ dcfg->tmp_chain_starter = rule;
+ }
+ }
+
+ /* Optimisation */
+ if ((rule->op_name != NULL)&&(strcasecmp(rule->op_name, "inspectFile") == 0)) {
+ dcfg->upload_validates_files = 1;
+ }
+
+ /* Create skip table if one does not already exist. */
+ if (dcfg->tmp_rule_placeholders == NULL) {
+ dcfg->tmp_rule_placeholders = apr_table_make(cmd->pool, 10);
+ if (dcfg->tmp_rule_placeholders == NULL) return FATAL_ERROR;
+ }
+
+ /* Keep track of any rule IDs we need to skip after */
+ if (rule->actionset->skip_after != NOT_SET_P) {
+ char *tmp_id = apr_pstrdup(cmd->pool, rule->actionset->skip_after);
+ apr_table_setn(dcfg->tmp_rule_placeholders, tmp_id, tmp_id);
+
+ #ifdef DEBUG_CONF
+ ap_log_perror(APLOG_MARK, APLOG_STARTUP|APLOG_NOERRNO, 0, cmd->pool,
+ "Watching for skipafter target rule id=\"%s\".", tmp_id);
+ #endif
+
+ }
+
+ #ifdef DEBUG_CONF
+ ap_log_perror(APLOG_MARK, APLOG_STARTUP|APLOG_NOERRNO, 0, cmd->pool,
+ "Adding rule %pp phase=%d id=\"%s\".", rule, rule->actionset->phase, (rule->actionset->id == NOT_SET_P
+ ? "(none)" : rule->actionset->id));
+ #endif
+
+ /* Add rule to the recipe. */
+ if (msre_ruleset_rule_add(dcfg->ruleset, rule, rule->actionset->phase) < 0) {
+ return "Internal Error: Failed to add rule to the ruleset.";
+ }
+
+ /* Add an additional placeholder if this rule ID is on the list */
+ if ((rule->actionset->id != NULL) && apr_table_get(dcfg->tmp_rule_placeholders, rule->actionset->id)) {
+ msre_rule *phrule = apr_palloc(rule->ruleset->mp, sizeof(msre_rule));
+ if (phrule == NULL) {
+ return FATAL_ERROR;
+ }
+
+ #ifdef DEBUG_CONF
+ ap_log_perror(APLOG_MARK, APLOG_STARTUP|APLOG_NOERRNO, 0, cmd->pool,
+ "Adding placeholder %pp for rule %pp id=\"%s\".", phrule, rule, rule->actionset->id);
+ #endif
+
+ /* shallow copy of original rule with placeholder marked as target */
+ memcpy(phrule, rule, sizeof(msre_rule));
+ phrule->placeholder = RULE_PH_SKIPAFTER;
+
+ /* Add placeholder. */
+ if (msre_ruleset_rule_add(dcfg->ruleset, phrule, phrule->actionset->phase) < 0) {
+ return "Internal Error: Failed to add placeholder to the ruleset.";
+ }
+
+ /* No longer need to search for the ID */
+ apr_table_unset(dcfg->tmp_rule_placeholders, rule->actionset->id);
+ }
+
+ /* Update the unparsed rule */
+ rule->unparsed = msre_rule_generate_unparsed(dcfg->ruleset->mp, rule, NULL, NULL, NULL);
+
+ return NULL;
+}
+
+/**
+ *
+ */
+static const char *add_marker(cmd_parms *cmd, directory_config *dcfg, const char *p1,
+ const char *p2, const char *p3)
+{
+ char *my_error_msg = NULL;
+ msre_rule *rule = NULL;
+ extern msc_engine *modsecurity;
+ int p;
+
+ #ifdef DEBUG_CONF
+ ap_log_perror(APLOG_MARK, APLOG_STARTUP|APLOG_NOERRNO, 0, cmd->pool,
+ "Rule: type=%d p1='%s' p2='%s' p3='%s'", RULE_TYPE_MARKER, p1, p2, p3);
+ #endif
+
+ /* Create a ruleset if one does not exist. */
+ if ((dcfg->ruleset == NULL)||(dcfg->ruleset == NOT_SET_P)) {
+ dcfg->ruleset = msre_ruleset_create(modsecurity->msre, cmd->pool);
+ if (dcfg->ruleset == NULL) return FATAL_ERROR;
+ }
+
+ /* Create the rule now. */
+ rule = msre_rule_create(dcfg->ruleset, RULE_TYPE_MARKER, cmd->directive->filename, cmd->directive->line_num, p1, p2, p3, &my_error_msg);
+ if (rule == NULL) {
+ return my_error_msg;
+ }
+
+ /* This is a marker */
+ rule->placeholder = RULE_PH_MARKER;
+
+ /* Add placeholder to each phase */
+ for (p = PHASE_FIRST; p <= PHASE_LAST; p++) {
+ #ifdef DEBUG_CONF
+ ap_log_perror(APLOG_MARK, APLOG_STARTUP|APLOG_NOERRNO, 0, cmd->pool,
+ "Adding marker %pp phase=%d id=\"%s\".", rule, p, (rule->actionset->id == NOT_SET_P
+ ? "(none)" : rule->actionset->id));
+ #endif
+
+ if (msre_ruleset_rule_add(dcfg->ruleset, rule, p) < 0) {
+ return "Internal Error: Failed to add marker to the ruleset.";
+ }
+ }
+
+ /* No longer need to search for the ID */
+ if (dcfg->tmp_rule_placeholders != NULL) {
+ apr_table_unset(dcfg->tmp_rule_placeholders, rule->actionset->id);
+ }
+
+ return NULL;
+}
+
+/**
+ *
+ */
+static const char *update_rule_action(cmd_parms *cmd, directory_config *dcfg,
+ const char *p1, const char *p2)
+{
+ char *my_error_msg = NULL;
+ msre_rule *rule = NULL;
+ msre_actionset *new_actionset = NULL;
+ msre_ruleset *ruleset = dcfg->ruleset;
+ extern msc_engine *modsecurity;
+
+ /* Get the ruleset if one exists */
+ if ((ruleset == NULL)||(ruleset == NOT_SET_P)) {
+ return NULL;
+ }
+
+ #ifdef DEBUG_CONF
+ ap_log_perror(APLOG_MARK, APLOG_STARTUP|APLOG_NOERRNO, 0, cmd->pool,
+ "Update rule id=\"%s\" with action \"%s\".", p1, p2);
+ #endif
+
+ /* Fetch the rule */
+ rule = msre_ruleset_fetch_rule(ruleset, p1);
+ if (rule == NULL) {
+ #ifdef DEBUG_CONF
+ ap_log_perror(APLOG_MARK, APLOG_STARTUP|APLOG_NOERRNO, 0, cmd->pool,
+ "Update rule id=\"%s\" with action \"%s\" failed: Rule not found.", p1, p2);
+ #endif
+ return NULL;
+ }
+
+ /* Check the rule actionset */
+ /* ENH: Can this happen? */
+ if (rule->actionset == NULL) {
+ return apr_psprintf(cmd->pool, "ModSecurity: Attempt to update action for rule \"%s\" failed: Rule does not have an actionset.", p1);
+ }
+
+ /* Create a new actionset */
+ new_actionset = msre_actionset_create(modsecurity->msre, p2, &my_error_msg);
+ if (new_actionset == NULL) return FATAL_ERROR;
+ if (my_error_msg != NULL) return my_error_msg;
+
+ /* Must NOT change an id */
+ if ((new_actionset->id != NOT_SET_P) && (rule->actionset->id != NULL) && (strcmp(rule->actionset->id, new_actionset->id) != 0)) {
+ return apr_psprintf(cmd->pool, "ModSecurity: Rule IDs cannot be updated via SecRuleUpdateActionById.");
+ }
+
+ /* Must NOT alter the phase */
+ if ((new_actionset->phase != NOT_SET) && (rule->actionset->phase != new_actionset->phase)) {
+ return apr_psprintf(cmd->pool, "ModSecurity: Rule phases cannot be updated via SecRuleUpdateActionById.");
+ }
+
+ #ifdef DEBUG_CONF
+ {
+ char *actions = msre_actionset_generate_action_string(ruleset->mp, rule->actionset);
+ ap_log_perror(APLOG_MARK, APLOG_STARTUP|APLOG_NOERRNO, 0, cmd->pool,
+ "Update rule %pp id=\"%s\" old action: \"%s\"",
+ rule,
+ (rule->actionset->id == NOT_SET_P ? "(none)" : rule->actionset->id),
+ actions);
+ }
+ #endif
+
+ /* Merge new actions with the rule */
+ /* ENH: Will this leak the old actionset? */
+ rule->actionset = msre_actionset_merge(modsecurity->msre, rule->actionset,
+ new_actionset, 1);
+ msre_actionset_set_defaults(rule->actionset);
+
+ /* Update the unparsed rule */
+ rule->unparsed = msre_rule_generate_unparsed(ruleset->mp, rule, NULL, NULL, NULL);
+
+ #ifdef DEBUG_CONF
+ {
+ char *actions = msre_actionset_generate_action_string(ruleset->mp, rule->actionset);
+ ap_log_perror(APLOG_MARK, APLOG_STARTUP|APLOG_NOERRNO, 0, cmd->pool,
+ "Update rule %pp id=\"%s\" new action: \"%s\"",
+ rule,
+ (rule->actionset->id == NOT_SET_P ? "(none)" : rule->actionset->id),
+ actions);
+ }
+ #endif
+
+ return NULL;
+}
+
+/* -- Configuration directives -- */
+
+static const char *cmd_action(cmd_parms *cmd, void *_dcfg, const char *p1) {
+ return add_rule(cmd, (directory_config *)_dcfg, RULE_TYPE_ACTION, SECACTION_TARGETS, SECACTION_ARGS, p1);
+}
+
+static const char *cmd_marker(cmd_parms *cmd, void *_dcfg, const char *p1) {
+ directory_config *dcfg = (directory_config *)_dcfg;
+ const char *action = apr_pstrcat(dcfg->mp, SECMARKER_BASE_ACTIONS, p1, NULL);
+ return add_marker(cmd, (directory_config *)_dcfg, SECMARKER_TARGETS, SECMARKER_ARGS, action);
+}
+
+static const char *cmd_argument_separator(cmd_parms *cmd, void *_dcfg, const char *p1) {
+ directory_config *dcfg = (directory_config *)_dcfg;
+
+ if (strlen(p1) != 1) {
+ return apr_psprintf(cmd->pool, "ModSecurity: Invalid argument separator: %s", p1);
+ }
+
+ dcfg->argument_separator = p1[0];
+
+ return NULL;
+}
+
+static const char *cmd_audit_engine(cmd_parms *cmd, void *_dcfg, const char *p1) {
+ directory_config *dcfg = _dcfg;
+
+ if (strcasecmp(p1, "On") == 0) dcfg->auditlog_flag = AUDITLOG_ON;
+ else
+ if (strcasecmp(p1, "Off") == 0) dcfg->auditlog_flag = AUDITLOG_OFF;
+ else
+ if (strcasecmp(p1, "RelevantOnly") == 0) dcfg->auditlog_flag = AUDITLOG_RELEVANT;
+ else
+ return (const char *)apr_psprintf(cmd->pool,
+ "ModSecurity: Unrecognised parameter value for SecAuditEngine: %s", p1);
+
+ return NULL;
+}
+
+static const char *cmd_audit_log(cmd_parms *cmd, void *_dcfg, const char *p1) {
+ directory_config *dcfg = _dcfg;
+
+ dcfg->auditlog_name = (char *)p1;
+
+ if (dcfg->auditlog_name[0] == '|') {
+ const char *pipe_name = ap_server_root_relative(cmd->pool, dcfg->auditlog_name + 1);
+ piped_log *pipe_log;
+
+ pipe_log = ap_open_piped_log(cmd->pool, pipe_name);
+ if (pipe_log == NULL) {
+ return apr_psprintf(cmd->pool, "ModSecurity: Failed to open the audit log pipe: %s",
+ pipe_name);
+ }
+ dcfg->auditlog_fd = ap_piped_log_write_fd(pipe_log);
+ }
+ else {
+ const char *file_name = ap_server_root_relative(cmd->pool, dcfg->auditlog_name);
+ apr_status_t rc;
+
+ rc = apr_file_open(&dcfg->auditlog_fd, file_name,
+ APR_WRITE | APR_APPEND | APR_CREATE | APR_BINARY,
+ CREATEMODE, cmd->pool);
+
+ if (rc != APR_SUCCESS) {
+ return apr_psprintf(cmd->pool, "ModSecurity: Failed to open the audit log file: %s",
+ file_name);
+ }
+ }
+
+ return NULL;
+}
+
+static const char *cmd_audit_log2(cmd_parms *cmd, void *_dcfg, const char *p1) {
+ directory_config *dcfg = _dcfg;
+
+ if (dcfg->auditlog_name == NOT_SET_P) {
+ return apr_psprintf(cmd->pool, "ModSecurity: Cannot configure a secondary audit log without a primary defined: %s", p1);
+ }
+
+ dcfg->auditlog2_name = (char *)p1;
+
+ if (dcfg->auditlog2_name[0] == '|') {
+ const char *pipe_name = ap_server_root_relative(cmd->pool, dcfg->auditlog2_name + 1);
+ piped_log *pipe_log;
+
+ pipe_log = ap_open_piped_log(cmd->pool, pipe_name);
+ if (pipe_log == NULL) {
+ return apr_psprintf(cmd->pool, "ModSecurity: Failed to open the secondary audit log pipe: %s",
+ pipe_name);
+ }
+ dcfg->auditlog2_fd = ap_piped_log_write_fd(pipe_log);
+ }
+ else {
+ const char *file_name = ap_server_root_relative(cmd->pool, dcfg->auditlog2_name);
+ apr_status_t rc;
+
+ rc = apr_file_open(&dcfg->auditlog2_fd, file_name,
+ APR_WRITE | APR_APPEND | APR_CREATE | APR_BINARY,
+ CREATEMODE, cmd->pool);
+
+ if (rc != APR_SUCCESS) {
+ return apr_psprintf(cmd->pool, "ModSecurity: Failed to open the secondary audit log file: %s",
+ file_name);
+ }
+ }
+
+ return NULL;
+}
+
+static const char *cmd_audit_log_parts(cmd_parms *cmd, void *_dcfg, const char *p1) {
+ directory_config *dcfg = _dcfg;
+
+ if (is_valid_parts_specification((char *)p1) != 1) {
+ return apr_psprintf(cmd->pool, "Invalid parts specification for SecAuditLogParts: %s", p1);
+ }
+
+ dcfg->auditlog_parts = (char *)p1;
+ return NULL;
+}
+
+static const char *cmd_audit_log_relevant_status(cmd_parms *cmd, void *_dcfg, const char *p1) {
+ directory_config *dcfg = _dcfg;
+
+ dcfg->auditlog_relevant_regex = msc_pregcomp(cmd->pool, p1, PCRE_DOTALL, NULL, NULL);
+ if (dcfg->auditlog_relevant_regex == NULL) {
+ return apr_psprintf(cmd->pool, "ModSecurity: Invalid regular expression: %s", p1);
+ }
+
+ return NULL;
+}
+
+static const char *cmd_audit_log_type(cmd_parms *cmd, void *_dcfg, const char *p1) {
+ directory_config *dcfg = _dcfg;
+
+ if (strcasecmp(p1, "Serial") == 0) dcfg->auditlog_type = AUDITLOG_SERIAL;
+ else
+ if (strcasecmp(p1, "Concurrent") == 0) dcfg->auditlog_type = AUDITLOG_CONCURRENT;
+ else
+ return (const char *)apr_psprintf(cmd->pool,
+ "ModSecurity: Unrecognised parameter value for SecAuditLogType: %s", p1);
+
+ return NULL;
+}
+
+static const char *cmd_audit_log_dirmode(cmd_parms *cmd, void *_dcfg, const char *p1) {
+ directory_config *dcfg = (directory_config *)_dcfg;
+
+ if (dcfg == NULL) return NULL;
+
+ if (strcasecmp(p1, "default") == 0) {
+ dcfg->auditlog_dirperms = NOT_SET;
+ }
+ else {
+ long int mode = strtol(p1, NULL, 8); /* expects octal mode */
+ if ((mode == LONG_MAX)||(mode == LONG_MIN)||(mode <= 0)||(mode > 07777)) {
+ return apr_psprintf(cmd->pool, "ModSecurity: Invalid value for SecAuditLogDirMode: %s", p1);
+ }
+
+ dcfg->auditlog_dirperms = mode2fileperms(mode);
+ }
+
+ return NULL;
+}
+
+static const char *cmd_audit_log_filemode(cmd_parms *cmd, void *_dcfg, const char *p1) {
+ directory_config *dcfg = (directory_config *)_dcfg;
+
+ if (dcfg == NULL) return NULL;
+
+ if (strcasecmp(p1, "default") == 0) {
+ dcfg->auditlog_fileperms = NOT_SET;
+ }
+ else {
+ long int mode = strtol(p1, NULL, 8); /* expects octal mode */
+ if ((mode == LONG_MAX)||(mode == LONG_MIN)||(mode <= 0)||(mode > 07777)) {
+ return apr_psprintf(cmd->pool, "ModSecurity: Invalid value for SecAuditLogFileMode: %s", p1);
+ }
+
+ dcfg->auditlog_fileperms = mode2fileperms(mode);
+ }
+
+ return NULL;
+}
+
+static const char *cmd_audit_log_storage_dir(cmd_parms *cmd, void *_dcfg, const char *p1) {
+ directory_config *dcfg = _dcfg;
+
+ dcfg->auditlog_storage_dir = ap_server_root_relative(cmd->pool, p1);
+
+ return NULL;
+}
+
+static const char *cmd_cookie_format(cmd_parms *cmd, void *_dcfg, const char *p1) {
+ directory_config *dcfg = (directory_config *)_dcfg;
+
+ if (strcmp(p1, "0") == 0) dcfg->cookie_format = COOKIES_V0;
+ else
+ if (strcmp(p1, "1") == 0) dcfg->cookie_format = COOKIES_V1;
+ else {
+ return apr_psprintf(cmd->pool, "ModSecurity: Invalid cookie format: %s", p1);
+ }
+
+ return NULL;
+}
+
+static const char *cmd_chroot_dir(cmd_parms *cmd, void *_dcfg, const char *p1) {
+ char cwd[1025] = "";
+
+ if (cmd->server->is_virtual) {
+ return "ModSecurity: SecChrootDir not allowed in VirtualHost";
+ }
+
+ chroot_dir = (char *)p1;
+
+ if (getcwd(cwd, 1024) == NULL) {
+ return "ModSecurity: Failed to get the current working directory";
+ }
+
+ if (chdir(chroot_dir) < 0) {
+ return apr_psprintf(cmd->pool, "ModSecurity: Failed to chdir to %s, errno=%d (%s)",
+ chroot_dir, errno, strerror(errno));
+ }
+
+ if (chdir(cwd) < 0) {
+ return apr_psprintf(cmd->pool, "ModSecurity: Failed to chdir to %s, errno=%d (%s)",
+ cwd, errno, strerror(errno));
+ }
+
+ return NULL;
+}
+
+/**
+ * Adds component signature to the list of signatures kept in configuration.
+ */
+static const char *cmd_component_signature(cmd_parms *cmd, void *_dcfg, const char *p1) {
+ directory_config *dcfg = (directory_config *)_dcfg;
+
+ /* ENH Enforce "Name/VersionX.Y.Z (comment)" format. */
+ *(char **)apr_array_push(dcfg->component_signatures) = (char *)p1;
+
+ return NULL;
+}
+
+static const char *cmd_content_injection(cmd_parms *cmd, void *_dcfg, int flag) {
+ directory_config *dcfg = (directory_config *)_dcfg;
+ if (dcfg == NULL) return NULL;
+ dcfg->content_injection_enabled = flag;
+ return NULL;
+}
+
+static const char *cmd_data_dir(cmd_parms *cmd, void *_dcfg, const char *p1) {
+ directory_config *dcfg = (directory_config *)_dcfg;
+
+ if (cmd->server->is_virtual) {
+ return "ModSecurity: SecDataDir not allowed in VirtualHost.";
+ }
+
+ dcfg->data_dir = ap_server_root_relative(cmd->pool, p1);
+
+ return NULL;
+}
+
+static const char *cmd_debug_log(cmd_parms *cmd, void *_dcfg, const char *p1) {
+ directory_config *dcfg = (directory_config *)_dcfg;
+ apr_status_t rc;
+
+ dcfg->debuglog_name = ap_server_root_relative(cmd->pool, p1);
+
+ rc = apr_file_open(&dcfg->debuglog_fd, dcfg->debuglog_name,
+ APR_WRITE | APR_APPEND | APR_CREATE | APR_BINARY,
+ CREATEMODE, cmd->pool);
+
+ if (rc != APR_SUCCESS) {
+ return apr_psprintf(cmd->pool, "ModSecurity: Failed to open debug log file: %s",
+ dcfg->debuglog_name);
+ }
+
+ return NULL;
+}
+
+static const char *cmd_debug_log_level(cmd_parms *cmd, void *_dcfg, const char *p1) {
+ directory_config *dcfg = (directory_config *)_dcfg;
+
+ dcfg->debuglog_level = atoi(p1);
+ if ((dcfg->debuglog_level >= 0)&&(dcfg->debuglog_level <= 9)) return NULL;
+
+ return apr_psprintf(cmd->pool, "ModSecurity: Invalid value for SecDebugLogLevel: %s", p1);
+}
+
+static const char *cmd_default_action(cmd_parms *cmd, void *_dcfg, const char *p1) {
+ directory_config *dcfg = (directory_config *)_dcfg;
+ extern msc_engine *modsecurity;
+ char *my_error_msg = NULL;
+
+ dcfg->tmp_default_actionset = msre_actionset_create(modsecurity->msre, p1, &my_error_msg);
+ if (dcfg->tmp_default_actionset == NULL) {
+ if (my_error_msg != NULL) return my_error_msg;
+ else return FATAL_ERROR;
+ }
+
+ /* Must specify a disruptive action. */
+ /* ENH: Remove this requirement? */
+ if (dcfg->tmp_default_actionset->intercept_action == NOT_SET) {
+ return apr_psprintf(cmd->pool, "ModSecurity: SecDefaultAction must specify a disruptive action.");
+ }
+
+ /* Must specify a phase. */
+ /* ENH: Remove this requirement? */
+ if (dcfg->tmp_default_actionset->phase == NOT_SET) {
+ return apr_psprintf(cmd->pool, "ModSecurity: SecDefaultAction must specify a phase.");
+ }
+
+ /* Must not use metadata actions. */
+ /* ENH: loop through to check for tags */
+ if ((dcfg->tmp_default_actionset->id != NOT_SET_P)
+ ||(dcfg->tmp_default_actionset->rev != NOT_SET_P)
+ ||(dcfg->tmp_default_actionset->msg != NOT_SET_P))
+ {
+ return apr_psprintf(cmd->pool, "ModSecurity: SecDefaultAction must not "
+ "contain any metadata actions (id, rev, msg, tag, severity, logdata).");
+ }
+ /* These are just a warning for now. */
+ if ((dcfg->tmp_default_actionset->severity != NOT_SET)
+ ||(dcfg->tmp_default_actionset->logdata != NOT_SET_P))
+ {
+ ap_log_perror(APLOG_MARK,
+ APLOG_STARTUP|APLOG_WARNING|APLOG_NOERRNO, 0, cmd->pool,
+ "ModSecurity: WARNING Using \"severity\" or \"logdata\" in "
+ "SecDefaultAction is deprecated (%s:%d).",
+ cmd->directive->filename, cmd->directive->line_num);
+ }
+
+ /* Must not use chain. */
+ if (dcfg->tmp_default_actionset->is_chained != NOT_SET) {
+ return apr_psprintf(cmd->pool, "ModSecurity: SecDefaultAction must not "
+ "contain a chain action.");
+ }
+
+ /* Must not use skip. */
+ if (dcfg->tmp_default_actionset->skip_count != NOT_SET) {
+ return apr_psprintf(cmd->pool, "ModSecurity: SecDefaultAction must not "
+ "contain a skip action.");
+ }
+
+ /* Must not use skipAfter. */
+ if (dcfg->tmp_default_actionset->skip_after != NOT_SET_P) {
+ return apr_psprintf(cmd->pool, "ModSecurity: SecDefaultAction must not "
+ "contain a skipAfter action.");
+ }
+
+ return NULL;
+}
+
+static const char *cmd_guardian_log(cmd_parms *cmd, void *_dcfg, const char *p1, const char *p2) {
+ extern char *guardianlog_name;
+ extern apr_file_t *guardianlog_fd;
+ extern char *guardianlog_condition;
+
+ if (cmd->server->is_virtual) {
+ return "ModSecurity: SecGuardianLog not allowed in VirtualHost";
+ }
+
+ if (p2 != NULL) {
+ if (strncmp(p2, "env=", 4) != 0) {
+ return "ModSecurity: Error in condition clause";
+ }
+ if ( (p2[4] == '\0') || ((p2[4] == '!')&&(p2[5] == '\0')) ) {
+ return "ModSecurity: Missing variable name";
+ }
+ guardianlog_condition = apr_pstrdup(cmd->pool, p2 + 4);
+ }
+
+ guardianlog_name = (char *)p1;
+
+ if (guardianlog_name[0] == '|') {
+ const char *pipe_name = ap_server_root_relative(cmd->pool, guardianlog_name + 1);
+ piped_log *pipe_log;
+
+ pipe_log = ap_open_piped_log(cmd->pool, pipe_name);
+ if (pipe_log == NULL) {
+ return apr_psprintf(cmd->pool, "ModSecurity: Failed to open the guardian log pipe: %s",
+ pipe_name);
+ }
+ guardianlog_fd = ap_piped_log_write_fd(pipe_log);
+ }
+ else {
+ const char *file_name = ap_server_root_relative(cmd->pool, guardianlog_name);
+ apr_status_t rc;
+
+ rc = apr_file_open(&guardianlog_fd, file_name,
+ APR_WRITE | APR_APPEND | APR_CREATE | APR_BINARY,
+ CREATEMODE, cmd->pool);
+
+ if (rc != APR_SUCCESS) {
+ return apr_psprintf(cmd->pool, "ModSecurity: Failed to open the guardian log file: %s",
+ file_name);
+ }
+ }
+
+ return NULL;
+}
+
+static const char *cmd_request_body_inmemory_limit(cmd_parms *cmd, void *_dcfg, const char *p1) {
+ directory_config *dcfg = (directory_config *)_dcfg;
+ long int limit;
+
+ if (dcfg == NULL) return NULL;
+
+ limit = strtol(p1, NULL, 10);
+ if ((limit == LONG_MAX)||(limit == LONG_MIN)||(limit <= 0)) {
+ return apr_psprintf(cmd->pool, "ModSecurity: Invalid value for SecRequestBodyInMemoryLimit: %s", p1);
+ }
+
+ dcfg->reqbody_inmemory_limit = limit;
+
+ return NULL;
+}
+
+static const char *cmd_request_body_limit(cmd_parms *cmd, void *_dcfg, const char *p1) {
+ directory_config *dcfg = (directory_config *)_dcfg;
+ long int limit;
+
+ if (dcfg == NULL) return NULL;
+
+ limit = strtol(p1, NULL, 10);
+ if ((limit == LONG_MAX)||(limit == LONG_MIN)||(limit <= 0)) {
+ return apr_psprintf(cmd->pool, "ModSecurity: Invalid value for SecRequestBodyLimit: %s", p1);
+ }
+
+ dcfg->reqbody_limit = limit;
+
+ return NULL;
+}
+
+static const char *cmd_request_body_no_files_limit(cmd_parms *cmd, void *_dcfg, const char *p1) {
+ directory_config *dcfg = (directory_config *)_dcfg;
+ long int limit;
+
+ if (dcfg == NULL) return NULL;
+
+ limit = strtol(p1, NULL, 10);
+ if ((limit == LONG_MAX)||(limit == LONG_MIN)||(limit <= 0)) {
+ return apr_psprintf(cmd->pool, "ModSecurity: Invalid value for SecRequestBodyNoFilesLimit: %s", p1);
+ }
+
+ dcfg->reqbody_no_files_limit = limit;
+
+ return NULL;
+}
+
+static const char *cmd_request_body_access(cmd_parms *cmd, void *_dcfg, const char *p1) {
+ directory_config *dcfg = (directory_config *)_dcfg;
+ if (dcfg == NULL) return NULL;
+
+ if (strcasecmp(p1, "on") == 0) dcfg->reqbody_access = 1;
+ else
+ if (strcasecmp(p1, "off") == 0) dcfg->reqbody_access = 0;
+ else
+ return apr_psprintf(cmd->pool, "ModSecurity: Invalid value for SecRequestBodyAccess: %s", p1);
+
+ return NULL;
+}
+
+static const char *cmd_request_encoding(cmd_parms *cmd, void *_dcfg, const char *p1) {
+ directory_config *dcfg = (directory_config *)_dcfg;
+ if (dcfg == NULL) return NULL;
+
+ /* ENH Validate encoding */
+
+ dcfg->request_encoding = p1;
+
+ return NULL;
+}
+
+static const char *cmd_response_body_access(cmd_parms *cmd, void *_dcfg, const char *p1) {
+ directory_config *dcfg = (directory_config *)_dcfg;
+ if (dcfg == NULL) return NULL;
+
+ if (strcasecmp(p1, "on") == 0) dcfg->resbody_access = 1;
+ else
+ if (strcasecmp(p1, "off") == 0) dcfg->resbody_access = 0;
+ else
+ return apr_psprintf(cmd->pool, "ModSecurity: Invalid value for SecResponseBodyAccess: %s", p1);
+
+ return NULL;
+}
+
+static const char *cmd_response_body_limit(cmd_parms *cmd, void *_dcfg, const char *p1) {
+ directory_config *dcfg = (directory_config *)_dcfg;
+ long int limit;
+
+ limit = strtol(p1, NULL, 10);
+ if ((limit == LONG_MAX)||(limit == LONG_MIN)||(limit <= 0)) {
+ return apr_psprintf(cmd->pool, "ModSecurity: Invalid value for SecResponseBodyLimit: %s", p1);
+ }
+
+ if (limit > RESPONSE_BODY_HARD_LIMIT) {
+ return apr_psprintf(cmd->pool, "ModSecurity: Response size limit can not exceed the hard limit: %li", RESPONSE_BODY_HARD_LIMIT);
+ }
+
+ dcfg->of_limit = limit;
+
+ return NULL;
+}
+
+static const char *cmd_response_body_limit_action(cmd_parms *cmd, void *_dcfg, const char *p1) {
+ directory_config *dcfg = (directory_config *)_dcfg;
+ if (dcfg == NULL) return NULL;
+
+ if (strcasecmp(p1, "ProcessPartial") == 0) dcfg->of_limit_action = RESPONSE_BODY_LIMIT_ACTION_PARTIAL;
+ else
+ if (strcasecmp(p1, "Reject") == 0) dcfg->of_limit_action = RESPONSE_BODY_LIMIT_ACTION_REJECT;
+ else
+ return apr_psprintf(cmd->pool, "ModSecurity: Invalid value for SecResponseBodyLimitAction: %s", p1);
+
+ return NULL;
+}
+
+static const char *cmd_response_body_mime_type(cmd_parms *cmd, void *_dcfg, const char *_p1) {
+ directory_config *dcfg = (directory_config *)_dcfg;
+ char *p1 = apr_pstrdup(cmd->pool, _p1);
+
+ /* TODO check whether the parameter is a valid MIME type of "???" */
+
+ if ((dcfg->of_mime_types == NULL)||(dcfg->of_mime_types == NOT_SET_P)) {
+ dcfg->of_mime_types = apr_table_make(cmd->pool, 10);
+ }
+
+ strtolower_inplace((unsigned char *)p1);
+ apr_table_setn(dcfg->of_mime_types, p1, "1");
+
+ return NULL;
+}
+
+static const char *cmd_response_body_mime_types_clear(cmd_parms *cmd, void *_dcfg) {
+ directory_config *dcfg = (directory_config *)_dcfg;
+ if (dcfg == NULL) return NULL;
+
+ dcfg->of_mime_types_cleared = 1;
+
+ if ((dcfg->of_mime_types != NULL)&&(dcfg->of_mime_types != NOT_SET_P)) {
+ apr_table_clear(dcfg->of_mime_types);
+ }
+
+ return NULL;
+}
+
+static const char *cmd_rule(cmd_parms *cmd, void *_dcfg, const char *p1,
+ const char *p2, const char *p3)
+{
+ return add_rule(cmd, (directory_config *)_dcfg, RULE_TYPE_NORMAL, p1, p2, p3);
+}
+
+static const char *cmd_rule_engine(cmd_parms *cmd, void *_dcfg, const char *p1) {
+ directory_config *dcfg = (directory_config *)_dcfg;
+ if (dcfg == NULL) return NULL;
+
+ if (strcasecmp(p1, "on") == 0) dcfg->is_enabled = MODSEC_ENABLED;
+ else
+ if (strcasecmp(p1, "off") == 0) dcfg->is_enabled = MODSEC_DISABLED;
+ else
+ if (strcasecmp(p1, "detectiononly") == 0) dcfg->is_enabled = MODSEC_DETECTION_ONLY;
+ else
+ return apr_psprintf(cmd->pool, "ModSecurity: Invalid value for SecRuleEngine: %s", p1);
+
+ return NULL;
+}
+
+/*
+static const char *cmd_rule_import_by_id(cmd_parms *cmd, void *_dcfg, const char *p1) {
+ directory_config *dcfg = (directory_config *)_dcfg;
+ rule_exception *re = apr_pcalloc(cmd->pool, sizeof(rule_exception));
+ if (dcfg == NULL) return NULL;
+
+ re->type = RULE_EXCEPTION_IMPORT_ID;
+ // TODO verify p1
+ re->param = p1;
+ *(rule_exception **)apr_array_push(dcfg->rule_exceptions) = re;
+
+ return NULL;
+}
+
+static const char *cmd_rule_import_by_msg(cmd_parms *cmd, void *_dcfg, const char *p1) {
+ directory_config *dcfg = (directory_config *)_dcfg;
+ rule_exception *re = apr_pcalloc(cmd->pool, sizeof(rule_exception));
+ if (dcfg == NULL) return NULL;
+
+ re->type = RULE_EXCEPTION_IMPORT_MSG;
+ // TODO verify p1
+ re->param = p1;
+ *(rule_exception **)apr_array_push(dcfg->rule_exceptions) = re;
+
+ return NULL;
+}
+*/
+
+static const char *cmd_rule_inheritance(cmd_parms *cmd, void *_dcfg, int flag) {
+ directory_config *dcfg = (directory_config *)_dcfg;
+ if (dcfg == NULL) return NULL;
+ dcfg->rule_inheritance = flag;
+ return NULL;
+}
+
+static const char *cmd_rule_script(cmd_parms *cmd, void *_dcfg, const char *p1,
+ const char *p2)
+{
+ #if defined(WITH_LUA)
+ const char *filename = resolve_relative_path(cmd->pool, cmd->directive->filename, p1);
+ return add_rule(cmd, (directory_config *)_dcfg, RULE_TYPE_LUA, filename, p2, NULL);
+ #else
+ ap_log_perror(APLOG_MARK, APLOG_STARTUP|APLOG_NOERRNO, 0, cmd->pool, "Ignoring SecRuleScript \"%s\" directive (%s:%d): No Lua scripting support.", p1, cmd->directive->filename, cmd->directive->line_num);
+ return NULL;
+ #endif
+}
+
+static const char *cmd_rule_remove_by_id(cmd_parms *cmd, void *_dcfg, const char *p1) {
+ directory_config *dcfg = (directory_config *)_dcfg;
+ rule_exception *re = apr_pcalloc(cmd->pool, sizeof(rule_exception));
+ if (dcfg == NULL) return NULL;
+
+ re->type = RULE_EXCEPTION_REMOVE_ID;
+ re->param = p1;
+ *(rule_exception **)apr_array_push(dcfg->rule_exceptions) = re;
+
+ /* Remove the corresponding rules from the context straight away. */
+ msre_ruleset_rule_remove_with_exception(dcfg->ruleset, re);
+
+ return NULL;
+}
+
+static const char *cmd_rule_remove_by_msg(cmd_parms *cmd, void *_dcfg, const char *p1) {
+ directory_config *dcfg = (directory_config *)_dcfg;
+ rule_exception *re = apr_pcalloc(cmd->pool, sizeof(rule_exception));
+ if (dcfg == NULL) return NULL;
+
+ re->type = RULE_EXCEPTION_REMOVE_MSG;
+ re->param = p1;
+ re->param_data = msc_pregcomp(cmd->pool, p1, 0, NULL, NULL);
+ if (re->param_data == NULL) {
+ return apr_psprintf(cmd->pool, "ModSecurity: Invalid regular expression: %s", p1);
+ }
+ *(rule_exception **)apr_array_push(dcfg->rule_exceptions) = re;
+
+ /* Remove the corresponding rules from the context straight away. */
+ msre_ruleset_rule_remove_with_exception(dcfg->ruleset, re);
+
+ #ifdef DEBUG_CONF
+ ap_log_perror(APLOG_MARK, APLOG_STARTUP|APLOG_NOERRNO, 0, cmd->pool, "Added exception %pp (%d %s) to dcfg %pp.", re, re->type, re->param, dcfg);
+ #endif
+
+ return NULL;
+}
+
+static const char *cmd_rule_update_action_by_id(cmd_parms *cmd, void *_dcfg,
+ const char *p1, const char *p2)
+{
+ return update_rule_action(cmd, (directory_config *)_dcfg, p1, p2);
+}
+
+static const char *cmd_server_signature(cmd_parms *cmd, void *_dcfg, const char *p1) {
+ if (cmd->server->is_virtual) {
+ return "ModSecurity: SecServerSignature not allowed in VirtualHost";
+ }
+ new_server_signature = (char *)p1;
+ return NULL;
+}
+
+static const char *cmd_tmp_dir(cmd_parms *cmd, void *_dcfg, const char *p1) {
+ directory_config *dcfg = (directory_config *)_dcfg;
+
+ if (dcfg == NULL) return NULL;
+
+ if (strcasecmp(p1, "none") == 0) dcfg->tmp_dir = NULL;
+ else dcfg->tmp_dir = ap_server_root_relative(cmd->pool, p1);
+
+ return NULL;
+}
+
+static const char *cmd_upload_dir(cmd_parms *cmd, void *_dcfg, const char *p1) {
+ directory_config *dcfg = (directory_config *)_dcfg;
+
+ if (dcfg == NULL) return NULL;
+
+ if (strcasecmp(p1, "none") == 0) dcfg->upload_dir = NULL;
+ else dcfg->upload_dir = ap_server_root_relative(cmd->pool, p1);
+
+ return NULL;
+}
+
+static const char *cmd_upload_filemode(cmd_parms *cmd, void *_dcfg, const char *p1) {
+ directory_config *dcfg = (directory_config *)_dcfg;
+
+ if (dcfg == NULL) return NULL;
+
+ if (strcasecmp(p1, "default") == 0) {
+ dcfg->upload_filemode = NOT_SET;
+ }
+ else {
+ long int mode = strtol(p1, NULL, 8); /* expects octal mode */
+ if ((mode == LONG_MAX)||(mode == LONG_MIN)||(mode <= 0)||(mode > 07777)) {
+ return apr_psprintf(cmd->pool, "ModSecurity: Invalid value for SecUploadFileMode: %s", p1);
+ }
+
+ dcfg->upload_filemode = (int)mode;
+ }
+
+ return NULL;
+}
+
+static const char *cmd_upload_keep_files(cmd_parms *cmd, void *_dcfg, const char *p1) {
+ directory_config *dcfg = (directory_config *)_dcfg;
+
+ if (dcfg == NULL) return NULL;
+
+ if (strcasecmp(p1, "on") == 0) {
+ dcfg->upload_keep_files = KEEP_FILES_ON;
+ } else
+ if (strcasecmp(p1, "off") == 0) {
+ dcfg->upload_keep_files = KEEP_FILES_OFF;
+ } else
+ if (strcasecmp(p1, "relevantonly") == 0) {
+ dcfg->upload_keep_files = KEEP_FILES_RELEVANT_ONLY;
+ } else {
+ return apr_psprintf(cmd->pool, "ModSecurity: Invalid setting for SecUploadKeepFiles: %s",
+ p1);
+ }
+ return NULL;
+}
+
+static const char *cmd_web_app_id(cmd_parms *cmd, void *_dcfg, const char *p1) {
+ directory_config *dcfg = (directory_config *)_dcfg;
+
+ /* ENH enforce format (letters, digits, ., _, -) */
+ dcfg->webappid = p1;
+
+ return NULL;
+}
+
+/* -- PDF Protection configuration -- */
+
+static const char *cmd_pdf_protect(cmd_parms *cmd, void *_dcfg, int flag) {
+ directory_config *dcfg = (directory_config *)_dcfg;
+ if (dcfg == NULL) return NULL;
+
+ dcfg->pdfp_enabled = flag;
+
+ return NULL;
+}
+
+static const char *cmd_pdf_protect_secret(cmd_parms *cmd, void *_dcfg,
+ const char *p1)
+{
+ directory_config *dcfg = (directory_config *)_dcfg;
+ if (dcfg == NULL) return NULL;
+
+ dcfg->pdfp_secret = p1;
+
+ return NULL;
+}
+
+static const char *cmd_pdf_protect_timeout(cmd_parms *cmd, void *_dcfg,
+ const char *p1)
+{
+ directory_config *dcfg = (directory_config *)_dcfg;
+ if (dcfg == NULL) return NULL;
+
+ dcfg->pdfp_timeout = atoi(p1);
+
+ return NULL;
+}
+
+static const char *cmd_pdf_protect_token_name(cmd_parms *cmd, void *_dcfg,
+ const char *p1)
+{
+ directory_config *dcfg = (directory_config *)_dcfg;
+ if (dcfg == NULL) return NULL;
+
+ dcfg->pdfp_token_name = p1;
+
+ return NULL;
+}
+
+static const char *cmd_pdf_protect_intercept_get_only(cmd_parms *cmd, void *_dcfg,
+ int flag)
+{
+ directory_config *dcfg = (directory_config *)_dcfg;
+ if (dcfg == NULL) return NULL;
+
+ dcfg->pdfp_only_get = flag;
+
+ return NULL;
+}
+
+static const char *cmd_pdf_protect_method(cmd_parms *cmd, void *_dcfg,
+ const char *p1)
+{
+ directory_config *dcfg = (directory_config *)_dcfg;
+ if (dcfg == NULL) return NULL;
+
+ if (strcasecmp(p1, "TokenRedirection") == 0) {
+ dcfg->pdfp_method = PDF_PROTECT_METHOD_TOKEN_REDIRECTION;
+ } else
+ if (strcasecmp(p1, "ForcedDownload") == 0) {
+ dcfg->pdfp_method = PDF_PROTECT_METHOD_FORCED_DOWNLOAD;
+ } else {
+ return (const char *)apr_psprintf(cmd->pool,
+ "ModSecurity: Unrecognised parameter value for SecPdfProtectMethod: %s", p1);
+ }
+
+ return NULL;
+}
+
+/* -- Geo Lookup configuration -- */
+
+static const char *cmd_geo_lookup_db(cmd_parms *cmd, void *_dcfg,
+ const char *p1)
+{
+ const char *filename = resolve_relative_path(cmd->pool, cmd->directive->filename, p1);
+ char *error_msg;
+ directory_config *dcfg = (directory_config *)_dcfg;
+ if (dcfg == NULL) return NULL;
+
+ if (geo_init(dcfg, filename, &error_msg) <= 0) {
+ return error_msg;
+ }
+
+ return NULL;
+}
+
+
+/* -- Cache -- */
+
+static const char *cmd_cache_transformations(cmd_parms *cmd, void *_dcfg, const char *p1, const char *p2) {
+ directory_config *dcfg = (directory_config *)_dcfg;
+
+ if (dcfg == NULL) return NULL;
+
+ if (strcasecmp(p1, "on") == 0)
+ dcfg->cache_trans = MODSEC_CACHE_ENABLED;
+ else if (strcasecmp(p1, "off") == 0)
+ dcfg->cache_trans = MODSEC_CACHE_DISABLED;
+ else
+ return apr_psprintf(cmd->pool, "ModSecurity: Invalid value for SecCacheTransformations: %s", p1);
+
+ /* Process options */
+ if (p2 != NULL) {
+ apr_table_t *vartable = apr_table_make(cmd->pool, 4);
+ apr_status_t rc;
+ char *error_msg = NULL;
+ const char *charval = NULL;
+ apr_int64_t intval = 0;
+
+ if (vartable == NULL) {
+ return apr_psprintf(cmd->pool, "ModSecurity: Unable to process options for SecCacheTransformations");
+ }
+ rc = msre_parse_generic(cmd->pool, p2, vartable, &error_msg);
+ if (rc < 0) {
+ return apr_psprintf(cmd->pool, "ModSecurity: Unable to parse options for SecCacheTransformations: %s", error_msg);
+ }
+
+ /* incremental */
+ charval = apr_table_get(vartable, "incremental");
+ if (charval != NULL) {
+ if (strcasecmp(charval, "on") == 0)
+ dcfg->cache_trans_incremental = 1;
+ else if (strcasecmp(charval, "off") == 0)
+ dcfg->cache_trans_incremental = 0;
+ else
+ return apr_psprintf(cmd->pool, "ModSecurity: SecCacheTransformations invalid incremental value: %s", charval);
+ }
+
+ /* minlen */
+ charval = apr_table_get(vartable, "minlen");
+ if (charval != NULL) {
+ intval = apr_atoi64(charval);
+ if (errno == ERANGE) {
+ return apr_psprintf(cmd->pool, "ModSecurity: SecCacheTransformations minlen out of range: %s", charval);
+ }
+ if (intval < 0) {
+ return apr_psprintf(cmd->pool, "ModSecurity: SecCacheTransformations minlen must be positive: %s", charval);
+ }
+
+ /* The NOT_SET indicator is -1, a signed long, and therfore
+ * we cannot be >= the unsigned value of NOT_SET.
+ */
+ if ((unsigned long)intval >= (unsigned long)NOT_SET) {
+ return apr_psprintf(cmd->pool, "ModSecurity: SecCacheTransformations minlen must be less than: %lu", (unsigned long)NOT_SET);
+ }
+ dcfg->cache_trans_min = (apr_size_t)intval;
+ }
+
+ /* maxlen */
+ charval = apr_table_get(vartable, "maxlen");
+ if (charval != NULL) {
+ intval = apr_atoi64(charval);
+ if (errno == ERANGE) {
+ return apr_psprintf(cmd->pool, "ModSecurity: SecCacheTransformations maxlen out of range: %s", charval);
+ }
+ if (intval < 0) {
+ return apr_psprintf(cmd->pool, "ModSecurity: SecCacheTransformations maxlen must be positive: %s", charval);
+ }
+
+ /* The NOT_SET indicator is -1, a signed long, and therfore
+ * we cannot be >= the unsigned value of NOT_SET.
+ */
+ if ((unsigned long)intval >= (unsigned long)NOT_SET) {
+ return apr_psprintf(cmd->pool, "ModSecurity: SecCacheTransformations maxlen must be less than: %lu", (unsigned long)NOT_SET);
+ }
+ if ((intval != 0) && ((apr_size_t)intval < dcfg->cache_trans_min)) {
+ return apr_psprintf(cmd->pool, "ModSecurity: SecCacheTransformations maxlen must not be less than minlen: %lu < %" APR_SIZE_T_FMT, (unsigned long)intval, dcfg->cache_trans_min);
+ }
+ dcfg->cache_trans_max = (apr_size_t)intval;
+
+ }
+
+ /* maxitems */
+ charval = apr_table_get(vartable, "maxitems");
+ if (charval != NULL) {
+ intval = apr_atoi64(charval);
+ if (errno == ERANGE) {
+ return apr_psprintf(cmd->pool, "ModSecurity: SecCacheTransformations maxitems out of range: %s", charval);
+ }
+ if (intval < 0) {
+ return apr_psprintf(cmd->pool, "ModSecurity: SecCacheTransformations maxitems must be positive: %s", charval);
+ }
+ dcfg->cache_trans_maxitems = (apr_size_t)intval;
+ }
+ }
+
+ return NULL;
+}
+
+
+/* -- Configuration directives definitions -- */
+
+#define CMD_SCOPE_MAIN (RSRC_CONF)
+#define CMD_SCOPE_ANY (RSRC_CONF | ACCESS_CONF)
+
+const command_rec module_directives[] = {
+
+ AP_INIT_TAKE1 (
+ "SecAction",
+ cmd_action,
+ NULL,
+ CMD_SCOPE_ANY,
+ "an action list"
+ ),
+
+ AP_INIT_TAKE1 (
+ "SecArgumentSeparator",
+ cmd_argument_separator,
+ NULL,
+ CMD_SCOPE_MAIN,
+ "character that will be used as separator when parsing application/x-www-form-urlencoded content."
+ ),
+
+ AP_INIT_TAKE1 (
+ "SecAuditEngine",
+ cmd_audit_engine,
+ NULL,
+ CMD_SCOPE_ANY,
+ "On, Off or RelevantOnly to determine the level of audit logging"
+ ),
+
+ AP_INIT_TAKE1 (
+ "SecAuditLog",
+ cmd_audit_log,
+ NULL,
+ CMD_SCOPE_ANY,
+ "filename of the primary audit log file"
+ ),
+
+ AP_INIT_TAKE1 (
+ "SecAuditLog2",
+ cmd_audit_log2,
+ NULL,
+ CMD_SCOPE_ANY,
+ "filename of the secondary audit log file"
+ ),
+
+ AP_INIT_TAKE1 (
+ "SecAuditLogParts",
+ cmd_audit_log_parts,
+ NULL,
+ CMD_SCOPE_ANY,
+ "list of audit log parts that go into the log."
+ ),
+
+ AP_INIT_TAKE1 (
+ "SecAuditLogRelevantStatus",
+ cmd_audit_log_relevant_status,
+ NULL,
+ CMD_SCOPE_ANY,
+ "regular expression that will be used to determine if the response status is relevant for audit logging"
+ ),
+
+ AP_INIT_TAKE1 (
+ "SecAuditLogType",
+ cmd_audit_log_type,
+ NULL,
+ CMD_SCOPE_ANY,
+ "whether to use the old audit log format (Serial) or new (Concurrent)"
+ ),
+
+ AP_INIT_TAKE1 (
+ "SecAuditLogStorageDir",
+ cmd_audit_log_storage_dir,
+ NULL,
+ CMD_SCOPE_ANY,
+ "path to the audit log storage area; absolute, or relative to the root of the server"
+ ),
+
+ AP_INIT_TAKE1 (
+ "SecAuditLogDirMode",
+ cmd_audit_log_dirmode,
+ NULL,
+ CMD_SCOPE_ANY,
+ "octal permissions mode for concurrent audit log directories"
+ ),
+
+ AP_INIT_TAKE1 (
+ "SecAuditLogFileMode",
+ cmd_audit_log_filemode,
+ NULL,
+ CMD_SCOPE_ANY,
+ "octal permissions mode for concurrent audit log files"
+ ),
+
+ AP_INIT_TAKE12 (
+ "SecCacheTransformations",
+ cmd_cache_transformations,
+ NULL,
+ CMD_SCOPE_ANY,
+ "whether or not to cache transformations. Defaults to true."
+ ),
+
+ AP_INIT_TAKE1 (
+ "SecChrootDir",
+ cmd_chroot_dir,
+ NULL,
+ CMD_SCOPE_MAIN,
+ "path of the directory to which server will be chrooted"
+ ),
+
+ AP_INIT_TAKE1 (
+ "SecComponentSignature",
+ cmd_component_signature,
+ NULL,
+ CMD_SCOPE_MAIN,
+ "component signature to add to ModSecurity signature."
+ ),
+
+ AP_INIT_FLAG (
+ "SecContentInjection",
+ cmd_content_injection,
+ NULL,
+ CMD_SCOPE_ANY,
+ "On or Off"
+ ),
+
+ AP_INIT_TAKE1 (
+ "SecCookieFormat",
+ cmd_cookie_format,
+ NULL,
+ CMD_SCOPE_ANY,
+ "version of the Cookie specification to use for parsing. Possible values are 0 and 1."
+ ),
+
+ AP_INIT_TAKE1 (
+ "SecDataDir",
+ cmd_data_dir,
+ NULL,
+ CMD_SCOPE_MAIN,
+ "path to the persistent data storage area" // TODO
+ ),
+
+ AP_INIT_TAKE1 (
+ "SecDebugLog",
+ cmd_debug_log,
+ NULL,
+ CMD_SCOPE_ANY,
+ "path to the debug log file"
+ ),
+
+ AP_INIT_TAKE1 (
+ "SecDebugLogLevel",
+ cmd_debug_log_level,
+ NULL,
+ CMD_SCOPE_ANY,
+ "debug log level, which controls the verbosity of logging."
+ " Use values from 0 (no logging) to 9 (a *lot* of logging)."
+ ),
+
+ AP_INIT_TAKE1 (
+ "SecDefaultAction",
+ cmd_default_action,
+ NULL,
+ CMD_SCOPE_ANY,
+ "default action list"
+ ),
+
+ AP_INIT_TAKE1 (
+ "SecGeoLookupDB",
+ cmd_geo_lookup_db,
+ NULL,
+ RSRC_CONF,
+ "database for geographical lookups module."
+ ),
+
+ AP_INIT_TAKE12 (
+ "SecGuardianLog",
+ cmd_guardian_log,
+ NULL,
+ CMD_SCOPE_MAIN,
+ "The filename of the filter debugging log file"
+ ),
+
+ AP_INIT_TAKE1 (
+ "SecMarker",
+ cmd_marker,
+ NULL,
+ CMD_SCOPE_ANY,
+ "marker for a skipAfter target"
+ ),
+
+ AP_INIT_FLAG (
+ "SecPdfProtect",
+ cmd_pdf_protect,
+ NULL,
+ RSRC_CONF,
+ "enable PDF protection module."
+ ),
+
+ AP_INIT_TAKE1 (
+ "SecPdfProtectSecret",
+ cmd_pdf_protect_secret,
+ NULL,
+ RSRC_CONF,
+ "secret that will be used to construct protection tokens."
+ ),
+
+ AP_INIT_TAKE1 (
+ "SecPdfProtectTimeout",
+ cmd_pdf_protect_timeout,
+ NULL,
+ RSRC_CONF,
+ "duration for which protection tokens will be valid."
+ ),
+
+ AP_INIT_TAKE1 (
+ "SecPdfProtectTokenName",
+ cmd_pdf_protect_token_name,
+ NULL,
+ RSRC_CONF,
+ "name of the protection token. The name 'PDFTOKEN' is used by default."
+ ),
+
+ AP_INIT_FLAG (
+ "SecPdfProtectInterceptGETOnly",
+ cmd_pdf_protect_intercept_get_only,
+ NULL,
+ RSRC_CONF,
+ "whether or not to intercept only GET and HEAD requess. Defaults to true."
+ ),
+
+ AP_INIT_TAKE1 (
+ "SecPdfProtectMethod",
+ cmd_pdf_protect_method,
+ NULL,
+ RSRC_CONF,
+ "protection method to use. Can be 'TokenRedirection' (default) or 'ForcedDownload'"
+ ),
+
+ AP_INIT_TAKE1 (
+ "SecRequestBodyAccess",
+ cmd_request_body_access,
+ NULL,
+ CMD_SCOPE_ANY,
+ "On or Off"
+ ),
+
+ AP_INIT_TAKE1 (
+ "SecRequestBodyInMemoryLimit",
+ cmd_request_body_inmemory_limit,
+ NULL,
+ CMD_SCOPE_ANY,
+ "maximum request body size that will be placed in memory (except for POST urlencoded requests)."
+ ),
+
+ AP_INIT_TAKE1 (
+ "SecRequestBodyLimit",
+ cmd_request_body_limit,
+ NULL,
+ CMD_SCOPE_ANY,
+ "maximum request body size ModSecurity will accept."
+ ),
+
+ AP_INIT_TAKE1 (
+ "SecRequestBodyNoFilesLimit",
+ cmd_request_body_no_files_limit,
+ NULL,
+ CMD_SCOPE_ANY,
+ "maximum request body size ModSecurity will accept, but excluding the size of uploaded files."
+ ),
+
+ AP_INIT_TAKE1 (
+ "SecRequestEncoding",
+ cmd_request_encoding,
+ NULL,
+ CMD_SCOPE_ANY,
+ "character encoding used in request."
+ ),
+
+ AP_INIT_TAKE1 (
+ "SecResponseBodyAccess",
+ cmd_response_body_access,
+ NULL,
+ CMD_SCOPE_ANY,
+ "On or Off"
+ ),
+
+ AP_INIT_TAKE1 (
+ "SecResponseBodyLimit",
+ cmd_response_body_limit,
+ NULL,
+ CMD_SCOPE_ANY,
+ "byte limit for response body"
+ ),
+
+ AP_INIT_TAKE1 (
+ "SecResponseBodyLimitAction",
+ cmd_response_body_limit_action,
+ NULL,
+ CMD_SCOPE_ANY,
+ "what happens when the response body limit is reached"
+ ),
+
+ AP_INIT_ITERATE (
+ "SecResponseBodyMimeType",
+ cmd_response_body_mime_type,
+ NULL,
+ CMD_SCOPE_ANY,
+ "adds given MIME types to the list of types that will be buffered on output"
+ ),
+
+ AP_INIT_NO_ARGS (
+ "SecResponseBodyMimeTypesClear",
+ cmd_response_body_mime_types_clear,
+ NULL,
+ CMD_SCOPE_ANY,
+ "clears the list of MIME types that will be buffered on output"
+ ),
+
+ AP_INIT_TAKE23 (
+ "SecRule",
+ cmd_rule,
+ NULL,
+ CMD_SCOPE_ANY,
+ "rule target, operator and optional action list"
+ ),
+
+ AP_INIT_TAKE1 (
+ "SecRuleEngine",
+ cmd_rule_engine,
+ NULL,
+ CMD_SCOPE_ANY,
+ "On or Off"
+ ),
+
+ AP_INIT_FLAG (
+ "SecRuleInheritance",
+ cmd_rule_inheritance,
+ NULL,
+ CMD_SCOPE_ANY,
+ "On or Off"
+ ),
+
+ AP_INIT_TAKE12 (
+ "SecRuleScript",
+ cmd_rule_script,
+ NULL,
+ CMD_SCOPE_ANY,
+ "rule script and optional actionlist"
+ ),
+
+ AP_INIT_ITERATE (
+ "SecRuleRemoveById",
+ cmd_rule_remove_by_id,
+ NULL,
+ CMD_SCOPE_ANY,
+ "rule ID for removal"
+ ),
+
+ AP_INIT_ITERATE (
+ "SecRuleRemoveByMsg",
+ cmd_rule_remove_by_msg,
+ NULL,
+ CMD_SCOPE_ANY,
+ "rule message for removal"
+ ),
+
+ AP_INIT_TAKE2 (
+ "SecRuleUpdateActionById",
+ cmd_rule_update_action_by_id,
+ NULL,
+ CMD_SCOPE_ANY,
+ "updated action list"
+ ),
+
+ AP_INIT_TAKE1 (
+ "SecServerSignature",
+ cmd_server_signature,
+ NULL,
+ CMD_SCOPE_MAIN,
+ "the new signature of the server"
+ ),
+
+ AP_INIT_TAKE1 (
+ "SecTmpDir",
+ cmd_tmp_dir,
+ NULL,
+ CMD_SCOPE_ANY,
+ "path to the temporary storage area"
+ ),
+
+ AP_INIT_TAKE1 (
+ "SecUploadDir",
+ cmd_upload_dir,
+ NULL,
+ CMD_SCOPE_ANY,
+ "path to the file upload area"
+ ),
+
+ AP_INIT_TAKE1 (
+ "SecUploadFileMode",
+ cmd_upload_filemode,
+ NULL,
+ CMD_SCOPE_ANY,
+ "octal permissions mode for uploaded files"
+ ),
+
+ AP_INIT_TAKE1 (
+ "SecUploadKeepFiles",
+ cmd_upload_keep_files,
+ NULL,
+ CMD_SCOPE_ANY,
+ "On or Off"
+ ),
+
+ AP_INIT_TAKE1 (
+ "SecWebAppId",
+ cmd_web_app_id,
+ NULL,
+ CMD_SCOPE_ANY,
+ "id"
+ ),
+
+ { NULL }
+};
--- /dev/null
+/*
+ * ModSecurity for Apache 2.x, http://www.modsecurity.org/
+ * Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
+ *
+ * This product is released under the terms of the General Public Licence,
+ * version 2 (GPLv2). Please refer to the file LICENSE (included with this
+ * distribution) which contains the complete text of the licence.
+ *
+ * There are special exceptions to the terms and conditions of the GPL
+ * as it is applied to this software. View the full text of the exception in
+ * file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
+ * distribution.
+ *
+ * If any of the files related to licensing are missing or if you have any
+ * other questions related to licensing please contact Breach Security, Inc.
+ * directly using the email address support@breach.com.
+ *
+ */
+#include <util_filter.h>
+
+#include "modsecurity.h"
+#include "apache2.h"
+
+
+/* -- Input filter -- */
+
+#if 0
+static void dummy_free_func(void *data) {}
+#endif
+
+/**
+ * This request filter will forward the previously stored
+ * request body further down the chain (most likely to the
+ * processing module).
+ */
+apr_status_t input_filter(ap_filter_t *f, apr_bucket_brigade *bb_out,
+ ap_input_mode_t mode, apr_read_type_e block, apr_off_t nbytes)
+{
+ modsec_rec *msr = (modsec_rec *)f->ctx;
+ msc_data_chunk *chunk = NULL;
+ apr_bucket *bucket;
+ apr_status_t rc;
+ char *my_error_msg = NULL;
+
+ if (msr == NULL) {
+ ap_log_error(APLOG_MARK, APLOG_ERR | APLOG_NOERRNO, 0, f->r->server,
+ "ModSecurity: Internal error in input filter: msr is null.");
+ ap_remove_input_filter(f);
+ return APR_EGENERAL;
+ }
+
+ /* Make sure we are using the current request */
+ msr->r = f->r;
+
+ if (msr->phase < PHASE_REQUEST_BODY) {
+ msr_log(msr, 1, "Internal error: REQUEST_BODY phase incomplete for input filter in phase %d", msr->phase);
+ return APR_EGENERAL;
+ }
+
+ if ((msr->if_status == IF_STATUS_COMPLETE)||(msr->if_status == IF_STATUS_NONE)) {
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Input filter: Input forwarding already complete, skipping (f %pp, r %pp).", f, f->r);
+ }
+ ap_remove_input_filter(f);
+ return ap_get_brigade(f->next, bb_out, mode, block, nbytes);
+ }
+
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Input filter: Forwarding input: mode=%d, block=%d, nbytes=%" APR_OFF_T_FMT
+ " (f %pp, r %pp).", mode, block, nbytes, f, f->r);
+ }
+
+ if (msr->if_started_forwarding == 0) {
+ msr->if_started_forwarding = 1;
+ rc = modsecurity_request_body_retrieve_start(msr, &my_error_msg);
+ if (rc == -1) {
+ if (my_error_msg != NULL) {
+ msr_log(msr, 1, "%s", my_error_msg);
+ }
+ return APR_EGENERAL;
+ }
+ }
+
+ rc = modsecurity_request_body_retrieve(msr, &chunk, (unsigned int)nbytes, &my_error_msg);
+ if (rc == -1) {
+ if (my_error_msg != NULL) {
+ msr_log(msr, 1, "%s", my_error_msg);
+ }
+ return APR_EGENERAL;
+ }
+
+ if (chunk) {
+ /* Copy the data we received in the chunk */
+ bucket = apr_bucket_heap_create(chunk->data, chunk->length, NULL,
+ f->r->connection->bucket_alloc);
+
+ #if 0
+
+ It would seem that we cannot prevent other filters in the chain
+ from modifying data in-place. Hence we copy.
+
+ if (chunk->is_permanent) {
+ /* Do not make a copy of the data we received in the chunk. */
+ bucket = apr_bucket_heap_create(chunk->data, chunk->length, dummy_free_func,
+ f->r->connection->bucket_alloc);
+ } else {
+ /* Copy the data we received in the chunk. */
+ bucket = apr_bucket_heap_create(chunk->data, chunk->length, NULL,
+ f->r->connection->bucket_alloc);
+ }
+
+ #endif
+
+ if (bucket == NULL) return APR_EGENERAL;
+ APR_BRIGADE_INSERT_TAIL(bb_out, bucket);
+
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Input filter: Forwarded %" APR_SIZE_T_FMT " bytes.", chunk->length);
+ }
+ }
+
+ if (rc == 0) {
+ modsecurity_request_body_retrieve_end(msr);
+
+ bucket = apr_bucket_eos_create(f->r->connection->bucket_alloc);
+ if (bucket == NULL) return APR_EGENERAL;
+ APR_BRIGADE_INSERT_TAIL(bb_out, bucket);
+
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Input filter: Sent EOS.");
+ }
+
+ /* We're done */
+ msr->if_status = IF_STATUS_COMPLETE;
+ ap_remove_input_filter(f);
+
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Input filter: Input forwarding complete.");
+ }
+ }
+
+ return APR_SUCCESS;
+}
+
+/**
+ * Reads request body from a client.
+ */
+apr_status_t read_request_body(modsec_rec *msr, char **error_msg) {
+ request_rec *r = msr->r;
+ unsigned int seen_eos;
+ apr_bucket_brigade *bb_in;
+ apr_bucket *bucket;
+
+ if (error_msg == NULL) return -1;
+ *error_msg = NULL;
+
+ if (msr->reqbody_should_exist != 1) {
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Input filter: This request does not have a body.");
+ }
+ return 0;
+ }
+
+ if (msr->txcfg->reqbody_access != 1) {
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Input filter: Request body access not enabled.");
+ }
+ return 0;
+ }
+
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Input filter: Reading request body.");
+ }
+
+ if (modsecurity_request_body_start(msr, error_msg) < 0) {
+ return -1;
+ }
+
+ seen_eos = 0;
+ bb_in = apr_brigade_create(msr->mp, r->connection->bucket_alloc);
+ if (bb_in == NULL) return -1;
+ do {
+ apr_status_t rc;
+
+ rc = ap_get_brigade(r->input_filters, bb_in, AP_MODE_READBYTES, APR_BLOCK_READ, HUGE_STRING_LEN);
+ if (rc != APR_SUCCESS) {
+ /* NOTE Apache returns AP_FILTER_ERROR here when the request is
+ * too large and APR_EGENERAL when the client disconnects.
+ */
+ switch(rc) {
+ case APR_TIMEUP :
+ *error_msg = apr_psprintf(msr->mp, "Error reading request body: %s", get_apr_error(msr->mp, rc));
+ return -4;
+ case AP_FILTER_ERROR :
+ *error_msg = apr_psprintf(msr->mp, "Error reading request body: HTTP Error 413 - Request entity too large. (Most likely.)");
+ return -3;
+ case APR_EGENERAL :
+ *error_msg = apr_psprintf(msr->mp, "Error reading request body: Client went away.");
+ return -2;
+ default :
+ *error_msg = apr_psprintf(msr->mp, "Error reading request body: %s", get_apr_error(msr->mp, rc));
+ return -1;
+ }
+ }
+
+ /* Loop through the buckets in the brigade in order
+ * to extract the size of the data available.
+ */
+ for(bucket = APR_BRIGADE_FIRST(bb_in);
+ bucket != APR_BRIGADE_SENTINEL(bb_in);
+ bucket = APR_BUCKET_NEXT(bucket))
+ {
+ const char *buf;
+ apr_size_t buflen;
+
+ rc = apr_bucket_read(bucket, &buf, &buflen, APR_BLOCK_READ);
+ if (rc != APR_SUCCESS) {
+ *error_msg = apr_psprintf(msr->mp, "Failed reading input / bucket (%d): %s", rc, get_apr_error(msr->mp, rc));
+ return -1;
+ }
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Input filter: Bucket type %s contains %" APR_SIZE_T_FMT " bytes.",
+ bucket->type->name, buflen);
+ }
+
+ /* Check request body limit (should only trigger on chunked requests). */
+ if (msr->reqbody_length + buflen > (apr_size_t)msr->txcfg->reqbody_limit) {
+ *error_msg = apr_psprintf(msr->mp, "Request body is larger than the "
+ "configured limit (%ld).", msr->txcfg->reqbody_limit);
+ return -5;
+ }
+
+ if (buflen != 0) {
+ int rcbs = modsecurity_request_body_store(msr, buf, buflen, error_msg);
+ if (rcbs < 0) {
+ if (rcbs == -5) {
+ *error_msg = apr_psprintf(msr->mp, "Request body no files data length is larger than the "
+ "configured limit (%ld).", msr->txcfg->reqbody_no_files_limit);
+ return -5;
+ }
+
+ return -1;
+ }
+
+ msr->reqbody_length += buflen;
+ }
+
+ if (APR_BUCKET_IS_EOS(bucket)) {
+ seen_eos = 1;
+ }
+ }
+
+ apr_brigade_cleanup(bb_in);
+ } while(!seen_eos);
+
+ // TODO: Why ignore the return code here?
+ modsecurity_request_body_end(msr, error_msg);
+
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Input filter: Completed receiving request body (length %" APR_SIZE_T_FMT ").",
+ msr->reqbody_length);
+ }
+
+ msr->if_status = IF_STATUS_WANTS_TO_RUN;
+
+ return 1;
+}
+
+
+/* -- Output filter -- */
+
+/**
+ * Examines the configuration and the response MIME type
+ * in order to determine whether output buffering should
+ * run or not.
+ */
+static int output_filter_should_run(modsec_rec *msr, request_rec *r) {
+ char *content_type = NULL;
+
+ /* Check configuration. */
+ if (msr->txcfg->resbody_access != 1) {
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Output filter: Response body buffering is not enabled.");
+ }
+
+ return 0;
+ }
+
+ /* Check MIME type. */
+
+ if ((msr->txcfg->of_mime_types == NULL)||(msr->txcfg->of_mime_types == NOT_SET_P)) {
+ msr_log(msr, 1, "Output filter: MIME type structures corrupted (internal error).");
+ return -1;
+ }
+
+ if (r->content_type != NULL) {
+ char *p = NULL;
+
+ content_type = apr_pstrdup(msr->mp, r->content_type);
+ if (content_type == NULL) {
+ msr_log(msr, 1, "Output filter: Failed to allocate memory for content type.");
+ return -1;
+ }
+
+ /* Hide the character encoding information
+ * if present. Sometimes the content type header
+ * looks like this "text/html; charset=xyz" ...
+ */
+ p = strstr(content_type, ";");
+ if (p != NULL) {
+ *p = '\0';
+ }
+
+ strtolower_inplace((unsigned char *)content_type);
+
+ if (strcmp(content_type, "text/html") == 0) {
+ /* Useful information to have should we later
+ * decide to do something with the HTML output.
+ */
+ msr->resbody_contains_html = 1;
+ }
+ } else {
+ content_type = "null";
+ }
+
+ if (apr_table_get(msr->txcfg->of_mime_types, content_type) != NULL) return 1;
+
+ msr_log(msr, 4, "Output filter: Not buffering response body for unconfigured MIME type \"%s\".", content_type);
+
+ return 0;
+}
+
+/**
+ * Initialises the output filter.
+ */
+static apr_status_t output_filter_init(modsec_rec *msr, ap_filter_t *f,
+ apr_bucket_brigade *bb_in)
+{
+ request_rec *r = f->r;
+ const char *s_content_length = NULL;
+ apr_status_t rc;
+
+ msr->of_brigade = apr_brigade_create(msr->mp, f->c->bucket_alloc);
+ if (msr->of_brigade == NULL) {
+ msr_log(msr, 1, "Output filter: Failed to create brigade.");
+ return -1;
+ }
+ msr->of_status = OF_STATUS_IN_PROGRESS;
+
+ rc = output_filter_should_run(msr, r);
+ if (rc < 0) return -1; /* output_filter_should_run() generates error msg */
+ if (rc == 0) return 0;
+
+ /* Do not check the output limit if we are willing to
+ * process partial response bodies.
+ */
+
+ if (msr->txcfg->of_limit_action == RESPONSE_BODY_LIMIT_ACTION_PARTIAL) {
+ return 1;
+ }
+
+ /* Look up the Content-Length header to see if we know
+ * the amount of data coming our way. If we do and if
+ * it's too much we might want to stop processing right here.
+ */
+ s_content_length = apr_table_get(r->headers_out, "Content-Length");
+ if (s_content_length == NULL) {
+ /* Try this too, mod_cgi seems to put headers there. */
+ s_content_length = apr_table_get(r->err_headers_out, "Content-Length");
+ }
+
+ if (s_content_length != NULL) {
+ long int len;
+
+ len = strtol(s_content_length, NULL, 10);
+ if ((len == LONG_MIN)||(len == LONG_MAX)||(len < 0)||(len >= 1073741824)) {
+ msr_log(msr, 1, "Output filter: Invalid Content-Length: %s", log_escape_nq(r->pool,
+ (char *)s_content_length));
+ return -1; /* Invalid. */
+ }
+
+ if (len == 0) {
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Output filter: Skipping response since Content-Length is zero.");
+ }
+
+ return 0;
+ }
+
+ if (len > msr->txcfg->of_limit) {
+ msr_log(msr, 1, "Output filter: Content-Length (%s) over the limit (%ld).",
+ log_escape_nq(r->pool, (char *)s_content_length), msr->txcfg->of_limit);
+ return -2; /* Over the limit. */
+ }
+ }
+
+ return 1;
+}
+
+/**
+ * Send the accumulated content down the filter stream
+ * and to the client.
+ */
+static apr_status_t send_of_brigade(modsec_rec *msr, ap_filter_t *f) {
+ apr_status_t rc;
+
+ rc = ap_pass_brigade(f->next, msr->of_brigade);
+ if (rc != APR_SUCCESS) {
+ /* TODO: These need to move to flags in 2.6. For now log them
+ * at level 4 so that they are not confusing users.
+ */
+ int log_level = 4;
+
+ if (msr->txcfg->debuglog_level >= log_level) {
+ switch(rc) {
+ case AP_NOBODY_WROTE :
+ msr_log(msr, log_level, "Output filter: Error while forwarding response data (%d): No data", rc);
+ break;
+ case AP_FILTER_ERROR :
+ /* Look like this is caused by the error
+ * already being handled, so we should ignore it
+ *
+ msr_log(msr, log_level, "Output filter: Error while forwarding response data (%d): Filter error", rc);
+ */
+ break;
+ default :
+ msr_log(msr, log_level, "Output filter: Error while forwarding response data (%d): %s",
+ rc, get_apr_error(msr->mp, rc));
+ break;
+ }
+ }
+
+ return rc;
+ }
+
+ return APR_SUCCESS;
+}
+
+/**
+ *
+ */
+static void prepend_content_to_of_brigade(modsec_rec *msr, ap_filter_t *f) {
+ if ((msr->txcfg->content_injection_enabled) && (msr->content_prepend) && (!msr->of_skipping)) {
+ apr_bucket *bucket_ci = NULL;
+
+ bucket_ci = apr_bucket_heap_create(msr->content_prepend,
+ msr->content_prepend_len, NULL, f->r->connection->bucket_alloc);
+ APR_BRIGADE_INSERT_HEAD(msr->of_brigade, bucket_ci);
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Content Injection (b): Added content to top: %s",
+ log_escape_nq_ex(msr->mp, msr->content_prepend, msr->content_prepend_len));
+ }
+ }
+}
+
+/**
+ *
+ */
+static int flatten_response_body(modsec_rec *msr) {
+ apr_status_t rc;
+
+ msr->resbody_status = RESBODY_STATUS_READ_BRIGADE;
+
+ if (msr->resbody_length + 1 <= 0) {
+ msr_log(msr, 1, "Output filter: Invalid response length: %" APR_SIZE_T_FMT, msr->resbody_length);
+ return -1;
+ }
+
+ msr->resbody_data = apr_palloc(msr->mp, msr->resbody_length + 1);
+ if (msr->resbody_data == NULL) {
+ msr_log(msr, 1, "Output filter: Response body data memory allocation failed. Asked for: %" APR_SIZE_T_FMT,
+ msr->resbody_length + 1);
+ return -1;
+ }
+
+ rc = apr_brigade_flatten(msr->of_brigade, msr->resbody_data, &msr->resbody_length);
+ if (rc != APR_SUCCESS) {
+ msr_log(msr, 1, "Output filter: Failed to flatten brigade (%d): %s", rc,
+ get_apr_error(msr->mp, rc));
+ return -1;
+ }
+
+ msr->resbody_data[msr->resbody_length] = '\0';
+ msr->resbody_status = RESBODY_STATUS_READ;
+
+ return 1;
+}
+
+/**
+ * Output filter.
+ */
+apr_status_t output_filter(ap_filter_t *f, apr_bucket_brigade *bb_in) {
+ request_rec *r = f->r;
+ modsec_rec *msr = (modsec_rec *)f->ctx;
+ apr_bucket *bucket = NULL, *eos_bucket = NULL;
+ apr_status_t rc;
+ int start_skipping = 0;
+
+ /* Do we have the context? */
+ if (msr == NULL) {
+ ap_log_error(APLOG_MARK, APLOG_ERR | APLOG_NOERRNO, 0, f->r->server,
+ "ModSecurity: Internal Error: msr is null in output filter.");
+ ap_remove_output_filter(f);
+ return send_error_bucket(msr, f, HTTP_INTERNAL_SERVER_ERROR);
+ }
+
+ msr->r = r;
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Output filter: Receiving output (f %pp, r %pp).", f, f->r);
+ }
+
+ /* Initialise on first invocation */
+ if (msr->of_status == OF_STATUS_NOT_STARTED) {
+ /* Update our context from the request structure. */
+ msr->r = r;
+ msr->response_status = r->status;
+ msr->status_line = ((r->status_line != NULL)
+ ? r->status_line : ap_get_status_line(r->status));
+ msr->response_protocol = get_response_protocol(r);
+ msr->response_headers = apr_table_overlay(msr->mp, r->err_headers_out, r->headers_out);
+
+ /* Process phase RESPONSE_HEADERS */
+ rc = modsecurity_process_phase(msr, PHASE_RESPONSE_HEADERS);
+ if (rc < 0) { /* error */
+ ap_remove_output_filter(f);
+ return send_error_bucket(msr, f, HTTP_INTERNAL_SERVER_ERROR);
+ }
+
+ if (rc > 0) { /* transaction needs to be interrupted */
+ int status = perform_interception(msr);
+ if (status != DECLINED) { /* DECLINED means we allow-ed the request. */
+ ap_remove_output_filter(f);
+ msr->of_status = OF_STATUS_COMPLETE;
+ msr->resbody_status = RESBODY_STATUS_ERROR;
+ return send_error_bucket(msr, f, status);
+ }
+ }
+
+ /* Decide whether to observe the response body. */
+ rc = output_filter_init(msr, f, bb_in);
+ switch(rc) {
+ case -2 : /* response too large */
+ case -1 : /* error */
+ /* there's something wrong with this response */
+ ap_remove_output_filter(f);
+ msr->of_status = OF_STATUS_COMPLETE;
+ msr->resbody_status = RESBODY_STATUS_ERROR;
+ return send_error_bucket(msr, f, HTTP_INTERNAL_SERVER_ERROR);
+ case 0 :
+ /* We do not want to observe this response body
+ * but we need to remain attached to observe
+ * when it is completed so that we can run
+ * the RESPONSE_BODY phase.
+ */
+ msr->of_skipping = 1;
+ msr->resbody_status = RESBODY_STATUS_NOT_READ;
+ break;
+ default :
+ /* Continue (observe the response body). */
+ break;
+ }
+
+ /* If injecting content unset headers now. */
+ if (msr->txcfg->content_injection_enabled == 0) {
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Content Injection: Not enabled.");
+ }
+ } else {
+ if ((msr->content_prepend) || (msr->content_append)) {
+ apr_table_unset(msr->r->headers_out, "Content-Length");
+ apr_table_unset(msr->r->headers_out, "Last-Modified");
+ apr_table_unset(msr->r->headers_out, "ETag");
+ apr_table_unset(msr->r->headers_out, "Expires");
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Content Injection: Removing headers (C-L, L-M, Etag, Expires).");
+ }
+ } else {
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Content Injection: Nothing to inject.");
+ }
+ }
+ }
+
+ /* Content injection (prepend & non-buffering). */
+ if ((msr->txcfg->content_injection_enabled) && (msr->content_prepend) && (msr->of_skipping)) {
+ apr_bucket *bucket_ci = apr_bucket_heap_create(msr->content_prepend,
+ msr->content_prepend_len, NULL, f->r->connection->bucket_alloc);
+ APR_BRIGADE_INSERT_HEAD(bb_in, bucket_ci);
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Content Injection (nb): Added content to top: %s",
+ log_escape_nq_ex(msr->mp, msr->content_prepend, msr->content_prepend_len));
+ }
+ }
+ } else
+ if (msr->of_status == OF_STATUS_COMPLETE) {
+ msr_log(msr, 1, "Output filter: Internal error: output filtering complete yet filter was invoked.");
+ ap_remove_output_filter(f);
+ return APR_EGENERAL;
+ }
+
+
+ /* Loop through the buckets in the brigade in order
+ * to extract the size of the data available.
+ */
+ for(bucket = APR_BRIGADE_FIRST(bb_in);
+ bucket != APR_BRIGADE_SENTINEL(bb_in);
+ bucket = APR_BUCKET_NEXT(bucket)) {
+ const char *buf;
+ apr_size_t buflen;
+
+ /* Look into response data if configured to do so,
+ * unless we've already processed a partial response.
+ */
+ if ((msr->of_skipping == 0)&&(!msr->of_partial)) { /* Observe the response data. */
+ /* Retrieve data from the bucket. */
+ rc = apr_bucket_read(bucket, &buf, &buflen, APR_BLOCK_READ);
+ if (rc != APR_SUCCESS) {
+ msr->of_status = OF_STATUS_COMPLETE;
+ msr->resbody_status = RESBODY_STATUS_ERROR;
+
+ msr_log(msr, 1, "Output filter: Failed to read bucket (rc %d): %s",
+ rc, get_apr_error(r->pool, rc));
+
+ ap_remove_output_filter(f);
+ return send_error_bucket(msr, f, HTTP_INTERNAL_SERVER_ERROR);
+ }
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Output filter: Bucket type %s contains %" APR_SIZE_T_FMT " bytes.",
+ bucket->type->name, buflen);
+ }
+
+ /* Check the response size. */
+ if (msr->resbody_length > (apr_size_t)msr->txcfg->of_limit) {
+ /* The size of the response is larger than what we're
+ * ready to accept. We need to decide what we want to do
+ * about it.
+ */
+ if (msr->txcfg->of_limit_action == RESPONSE_BODY_LIMIT_ACTION_REJECT) {
+ /* Reject response. */
+ msr_log(msr, 1, "Output filter: Response body too large (over limit of %ld, "
+ "total not specified).", msr->txcfg->of_limit);
+
+ msr->of_status = OF_STATUS_COMPLETE;
+ msr->resbody_status = RESBODY_STATUS_PARTIAL;
+
+ ap_remove_output_filter(f);
+ return send_error_bucket(msr, f, HTTP_INTERNAL_SERVER_ERROR);
+ } else {
+ /* Process partial response. */
+ start_skipping = 1;
+ msr->resbody_length = msr->txcfg->of_limit;
+
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Output filter: Processing partial response body (limit %ld)",
+ msr->txcfg->of_limit);
+ }
+ }
+ } else {
+ msr->resbody_length += buflen;
+ }
+ }
+
+ /* Have we reached the end of the response? */
+ if (APR_BUCKET_IS_EOS(bucket)) {
+ eos_bucket = bucket;
+
+ /* Inject content (append & non-buffering). */
+ if ((msr->txcfg->content_injection_enabled) && (msr->content_append)
+ && (msr->of_skipping || msr->of_partial || start_skipping))
+ {
+ apr_bucket *bucket_ci = NULL;
+
+ bucket_ci = apr_bucket_heap_create(msr->content_append,
+ msr->content_append_len, NULL, f->r->connection->bucket_alloc);
+ APR_BUCKET_INSERT_BEFORE(bucket, bucket_ci);
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Content-Injection (nb): Added content to bottom: %s",
+ log_escape_nq_ex(msr->mp, msr->content_append, msr->content_append_len));
+ }
+ }
+
+ msr->of_done_reading = 1;
+ }
+ }
+
+ /* Add buckets in this brigade to the brigade
+ * we have in the context, but only if we actually
+ * want to keep the response body.
+ */
+ if ((msr->of_skipping == 0)&&(msr->of_partial == 0)) {
+ ap_save_brigade(f, &msr->of_brigade, &bb_in, msr->mp);
+
+ /* Do we need to process a partial response? */
+ if (start_skipping) {
+ if (flatten_response_body(msr) < 0) {
+ ap_remove_output_filter(f);
+ return send_error_bucket(msr, f, HTTP_INTERNAL_SERVER_ERROR);
+ }
+
+ /* Process phase RESPONSE_BODY */
+ rc = modsecurity_process_phase(msr, PHASE_RESPONSE_BODY);
+ if (rc < 0) {
+ ap_remove_output_filter(f);
+ return send_error_bucket(msr, f, HTTP_INTERNAL_SERVER_ERROR);
+ }
+ if (rc > 0) {
+ int status = perform_interception(msr);
+ if (status != DECLINED) { /* DECLINED means we allow-ed the request. */
+ ap_remove_output_filter(f);
+ return send_error_bucket(msr, f, status);
+ }
+ }
+
+ /* Prepend content as necessary. */
+ prepend_content_to_of_brigade(msr, f);
+
+ if ((rc = send_of_brigade(msr, f)) != APR_SUCCESS) {
+ return rc;
+ }
+
+ msr->of_partial = 1;
+ }
+
+ if (msr->of_done_reading == 0) {
+ /* We are done for now. We will be called again with more data. */
+ return APR_SUCCESS;
+ }
+
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Output filter: Completed receiving response body (buffered %s - %" APR_SIZE_T_FMT " bytes).",
+ (msr->of_partial ? "partial" : "full"), msr->resbody_length);
+ }
+ } else { /* Not looking at response data. */
+ if (msr->of_done_reading == 0) {
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Output filter: Sending input brigade directly.");
+ }
+
+ return ap_pass_brigade(f->next, bb_in);
+ }
+
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Output filter: Completed receiving response body (non-buffering).");
+ }
+ }
+
+ /* We've done our thing; remove us from the filter list. */
+ msr->of_status = OF_STATUS_COMPLETE;
+ ap_remove_output_filter(f);
+
+ /* Process phase RESPONSE_BODY, but
+ * only if it hasn't been processed already.
+ */
+ if (msr->phase < PHASE_RESPONSE_BODY) {
+ if (flatten_response_body(msr) < 0) {
+ ap_remove_output_filter(f);
+ return send_error_bucket(msr, f, HTTP_INTERNAL_SERVER_ERROR);
+ }
+
+ rc = modsecurity_process_phase(msr, PHASE_RESPONSE_BODY);
+ if (rc < 0) {
+ ap_remove_output_filter(f);
+ return send_error_bucket(msr, f, HTTP_INTERNAL_SERVER_ERROR);
+ }
+ if (rc > 0) {
+ int status = perform_interception(msr);
+ if (status != DECLINED) { /* DECLINED means we allow-ed the request. */
+ ap_remove_output_filter(f);
+ return send_error_bucket(msr, f, status);
+ }
+ }
+ }
+
+ /* Now send data down the filter stream
+ * (full-buffering only).
+ */
+ if ((msr->of_skipping == 0)&&(!msr->of_partial)) {
+ record_time_checkpoint(msr, 3);
+
+ prepend_content_to_of_brigade(msr, f);
+
+ /* Inject content into response (append & buffering). */
+ if ((msr->txcfg->content_injection_enabled) && (msr->content_append)) {
+ apr_bucket *bucket_ci = NULL;
+
+ bucket_ci = apr_bucket_heap_create(msr->content_append,
+ msr->content_append_len, NULL, f->r->connection->bucket_alloc);
+ APR_BUCKET_INSERT_BEFORE(eos_bucket, bucket_ci);
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Content-Injection (b): Added content to bottom: %s",
+ log_escape_nq_ex(msr->mp, msr->content_append, msr->content_append_len));
+ }
+ }
+
+ /* Send data down the filter stream. */
+ if ((rc = send_of_brigade(msr, f)) != APR_SUCCESS) {
+ return rc;
+ }
+ }
+
+ /* Another job well done! */
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Output filter: Output forwarding complete.");
+ }
+
+ if ((msr->of_skipping == 0)&&(msr->of_partial == 0)) {
+ return APR_SUCCESS;
+ } else {
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Output filter: Sending input brigade directly.");
+ }
+
+ return ap_pass_brigade(f->next, bb_in);
+ }
+}
--- /dev/null
+/*
+ * ModSecurity for Apache 2.x, http://www.modsecurity.org/
+ * Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
+ *
+ * This product is released under the terms of the General Public Licence,
+ * version 2 (GPLv2). Please refer to the file LICENSE (included with this
+ * distribution) which contains the complete text of the licence.
+ *
+ * There are special exceptions to the terms and conditions of the GPL
+ * as it is applied to this software. View the full text of the exception in
+ * file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
+ * distribution.
+ *
+ * If any of the files related to licensing are missing or if you have any
+ * other questions related to licensing please contact Breach Security, Inc.
+ * directly using the email address support@breach.com.
+ *
+ */
+#include "modsecurity.h"
+#include "apache2.h"
+#include "http_core.h"
+#include "util_script.h"
+
+/**
+ * Sends a brigade with an error bucket down the filter chain.
+ */
+apr_status_t send_error_bucket(modsec_rec *msr, ap_filter_t *f, int status) {
+ apr_bucket_brigade *brigade = NULL;
+ apr_bucket *bucket = NULL;
+
+ /* Set the status line explicitly for the error document */
+ f->r->status_line = ap_get_status_line(status);
+
+ brigade = apr_brigade_create(f->r->pool, f->r->connection->bucket_alloc);
+ if (brigade == NULL) return APR_EGENERAL;
+
+ bucket = ap_bucket_error_create(status, NULL, f->r->pool, f->r->connection->bucket_alloc);
+ if (bucket == NULL) return APR_EGENERAL;
+
+ APR_BRIGADE_INSERT_TAIL(brigade, bucket);
+
+ bucket = apr_bucket_eos_create(f->r->connection->bucket_alloc);
+ if (bucket == NULL) return APR_EGENERAL;
+
+ APR_BRIGADE_INSERT_TAIL(brigade, bucket);
+
+ ap_pass_brigade(f->next, brigade);
+
+ /* NOTE:
+ * It may not matter what we do from the filter as it may be too
+ * late to even generate an error (already sent to client). Nick Kew
+ * recommends to return APR_EGENERAL in hopes that the handler in control
+ * will notice and do The Right Thing. So, that is what we do now.
+ */
+
+ return APR_EGENERAL;
+}
+
+/**
+ * Execute system command. First line of the output will be returned in
+ * the "output" parameter.
+ */
+int apache2_exec(modsec_rec *msr, const char *command, const char **argv, char **output) {
+ apr_procattr_t *procattr = NULL;
+ apr_proc_t *procnew = NULL;
+ apr_status_t rc = APR_SUCCESS;
+ const char *const *env = NULL;
+ apr_file_t *script_out = NULL;
+ request_rec *r = msr->r;
+
+ if (argv == NULL) {
+ argv = apr_pcalloc(r->pool, 3 * sizeof(char *));
+ argv[0] = command;
+ argv[1] = NULL;
+ }
+
+ ap_add_cgi_vars(r);
+ ap_add_common_vars(r);
+
+ /* PHP hack, getting around its silly security checks. */
+ apr_table_add(r->subprocess_env, "PATH_TRANSLATED", command);
+ apr_table_add(r->subprocess_env, "REDIRECT_STATUS", "302");
+
+ env = (const char * const *)ap_create_environment(r->pool, r->subprocess_env);
+ if (env == NULL) {
+ msr_log(msr, 1, "Exec: Unable to create environment.");
+ return -1;
+ }
+
+ procnew = apr_pcalloc(r->pool, sizeof(*procnew));
+ if (procnew == NULL) {
+ msr_log(msr, 1, "Exec: Unable to allocate %lu bytes.", (unsigned long)sizeof(*procnew));
+ return -1;
+ }
+
+ apr_procattr_create(&procattr, r->pool);
+ if (procattr == NULL) {
+ msr_log(msr, 1, "Exec: Unable to create procattr.");
+ return -1;
+ }
+
+ apr_procattr_io_set(procattr, APR_NO_PIPE, APR_FULL_BLOCK, APR_NO_PIPE);
+ apr_procattr_cmdtype_set(procattr, APR_SHELLCMD);
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Exec: %s", log_escape_nq(r->pool, command));
+ }
+
+ rc = apr_proc_create(procnew, command, argv, env, procattr, r->pool);
+ if (rc != APR_SUCCESS) {
+ msr_log(msr, 1, "Exec: Execution failed: %s (%s)", log_escape_nq(r->pool, command),
+ get_apr_error(r->pool, rc));
+ return -1;
+ }
+
+ apr_pool_note_subprocess(r->pool, procnew, APR_KILL_AFTER_TIMEOUT);
+
+ script_out = procnew->out;
+ if (!script_out) {
+ msr_log(msr, 1, "Exec: Failed to get script output pipe.");
+ return -1;
+ }
+
+ apr_file_pipe_timeout_set(script_out, r->server->timeout);
+
+ /* Now read from the pipe. */
+ {
+ char buf[260] = "";
+ char *p = buf;
+ apr_size_t nbytes = 255;
+ apr_status_t rc2;
+
+ rc2 = apr_file_read(script_out, buf, &nbytes);
+ if (rc2 == APR_SUCCESS) {
+ buf[nbytes] = 0;
+
+ /* if there is more than one line ignore them */
+ while(*p != 0) {
+ if (*p == 0x0a) *p = 0;
+ p++;
+ }
+
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Exec: First line from script output: \"%s\"",
+ log_escape(r->pool, buf));
+ }
+
+ if (output != NULL) *output = apr_pstrdup(r->pool, buf);
+
+ /* Soak up the remaining data. */
+ nbytes = 255;
+ while(apr_file_read(script_out, buf, &nbytes) == APR_SUCCESS) nbytes = 255;
+ } else {
+ msr_log(msr, 1, "Exec: Execution failed while reading output: %s (%s)",
+ log_escape_nq(r->pool, command),
+ get_apr_error(r->pool, rc2));
+ return -1;
+ }
+ }
+
+ apr_proc_wait(procnew, NULL, NULL, APR_WAIT);
+
+ return 1;
+}
+
+/**
+ * Record the current time and store for later.
+ */
+void record_time_checkpoint(modsec_rec *msr, int checkpoint_no) {
+ char note[100], note_name[100];
+ apr_time_t now;
+
+ now = apr_time_now();
+ switch(checkpoint_no) {
+ case 1 :
+ msr->time_checkpoint_1 = now;
+ break;
+ case 2 :
+ msr->time_checkpoint_2 = now;
+ break;
+ case 3 :
+ msr->time_checkpoint_3 = now;
+ break;
+ default :
+ msr_log(msr, 1, "Internal Error: Unknown checkpoint: %d", checkpoint_no);
+ return;
+ break;
+ }
+
+ /* Apache-specific stuff. */
+ apr_snprintf(note, 99, "%" APR_TIME_T_FMT, (now - msr->request_time));
+ apr_snprintf(note_name, 99, "mod_security-time%d", checkpoint_no);
+ apr_table_set(msr->r->notes, note_name, note);
+
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Time #%d: %s", checkpoint_no, note);
+ }
+}
+
+/**
+ * Returns a new string that contains the error
+ * message for the given return code.
+ */
+char *get_apr_error(apr_pool_t *p, apr_status_t rc) {
+ char *text = apr_pcalloc(p, 201);
+ if (text == NULL) return NULL;
+ apr_strerror(rc, text, 200);
+ return text;
+}
+
+/**
+ * Retrieve named environment variable.
+ */
+char *get_env_var(request_rec *r, char *name) {
+ char *result = (char *)apr_table_get(r->notes, name);
+
+ if (result == NULL) {
+ result = (char *)apr_table_get(r->subprocess_env, name);
+ }
+
+ if (result == NULL) {
+ result = getenv(name);
+ }
+
+ return result;
+}
+
+/**
+ * Extended internal log helper function. Use msr_log instead. If fixup is
+ * true, the message will be stripped of any trailing newline and any
+ * required bytes will be escaped.
+ */
+void internal_log_ex(request_rec *r, directory_config *dcfg, modsec_rec *msr,
+ int level, int fixup, const char *text, va_list ap)
+{
+ apr_size_t nbytes, nbytes_written;
+ apr_file_t *debuglog_fd = NULL;
+ int filter_debug_level = 0;
+ char str1[1024] = "";
+ char str2[1256] = "";
+
+ /* Find the logging FD and determine the logging level from configuration. */
+ if (dcfg != NULL) {
+ if ((dcfg->debuglog_fd != NULL)&&(dcfg->debuglog_fd != NOT_SET_P)) {
+ debuglog_fd = dcfg->debuglog_fd;
+ }
+
+ if (dcfg->debuglog_level != NOT_SET) {
+ filter_debug_level = dcfg->debuglog_level;
+ }
+ }
+
+ /* Return immediately if we don't have where to write
+ * or if the log level of the message is higher than
+ * wanted in the log.
+ */
+ if ((level > 3)&&( (debuglog_fd == NULL) || (level > filter_debug_level) )) return;
+
+ /* Construct the message. */
+ apr_vsnprintf(str1, sizeof(str1), text, ap);
+ if (fixup) {
+ int len = strlen(str1);
+
+ /* Strip line ending. */
+ if (len && str1[len - 1] == '\n') {
+ str1[len - 1] = '\0';
+ }
+ if (len > 1 && str1[len - 2] == '\r') {
+ str1[len - 2] = '\0';
+ }
+ }
+
+ /* Construct the log entry. */
+ apr_snprintf(str2, sizeof(str2),
+ "[%s] [%s/sid#%pp][rid#%pp][%s][%d] %s\n",
+ current_logtime(msr->mp), ap_get_server_name(r), (r->server),
+ r, ((r->uri == NULL) ? "" : log_escape_nq(msr->mp, r->uri)),
+ level, (fixup ? log_escape_nq(msr->mp, str1) : str1));
+
+ /* Write to the debug log. */
+ if ((debuglog_fd != NULL)&&(level <= filter_debug_level)) {
+ nbytes = strlen(str2);
+ apr_file_write_full(debuglog_fd, str2, nbytes, &nbytes_written);
+ }
+
+ /* Send message levels 1-3 to the Apache error log and
+ * add it to the message list in the audit log. */
+ if (level <= 3) {
+ char *unique_id = (char *)get_env_var(r, "UNIQUE_ID");
+ char *hostname = (char *)msr->hostname;
+
+ if (unique_id != NULL) {
+ unique_id = apr_psprintf(msr->mp, " [unique_id \"%s\"]",
+ log_escape(msr->mp, unique_id));
+ }
+ else unique_id = "";
+
+ if (hostname != NULL) {
+ hostname = apr_psprintf(msr->mp, " [hostname \"%s\"]",
+ log_escape(msr->mp, hostname));
+ }
+ else hostname = "";
+
+ ap_log_error(APLOG_MARK, APLOG_ERR | APLOG_NOERRNO, 0, r->server,
+ "[client %s] ModSecurity: %s%s [uri \"%s\"]%s", r->connection->remote_ip, str1,
+ hostname, log_escape(msr->mp, r->uri), unique_id);
+
+ /* Add this message to the list. */
+ if (msr != NULL) {
+ /* Force relevency if this is an alert */
+ msr->is_relevant++;
+
+ *(const char **)apr_array_push(msr->alerts) = apr_pstrdup(msr->mp, str1);
+ }
+ }
+
+ return;
+}
+
+/**
+ * Internal log helper function. Use msr_log instead.
+ */
+void internal_log(request_rec *r, directory_config *dcfg, modsec_rec *msr,
+ int level, const char *text, va_list ap)
+{
+ internal_log_ex(r, dcfg, msr, level, 0, text, ap);
+}
+
+/**
+ * Logs one message at the given level to the debug log (and to the
+ * Apache error log if the message is important enough.
+ */
+void msr_log(modsec_rec *msr, int level, const char *text, ...) {
+ va_list ap;
+
+ va_start(ap, text);
+ internal_log_ex(msr->r, msr->txcfg, msr, level, 0, text, ap);
+ va_end(ap);
+}
+
+
+/**
+ * Logs one message at level 3 to the debug log and to the
+ * Apache error log. This is intended for error callbacks.
+ */
+void msr_log_error(modsec_rec *msr, const char *text, ...) {
+ va_list ap;
+
+ va_start(ap, text);
+ internal_log_ex(msr->r, msr->txcfg, msr, 3, 1, text, ap);
+ va_end(ap);
+}
+
+/**
+ * Logs one message at level 4 to the debug log and to the
+ * Apache error log. This is intended for warning callbacks.
+ *
+ * The 'text' will first be escaped.
+ */
+void msr_log_warn(modsec_rec *msr, const char *text, ...) {
+ va_list ap;
+
+ va_start(ap, text);
+ internal_log_ex(msr->r, msr->txcfg, msr, 4, 1, text, ap);
+ va_end(ap);
+}
+
+
+/**
+ * Converts an Apache error log message into one line of text.
+ */
+char *format_error_log_message(apr_pool_t *mp, error_message *em) {
+ char *s_file = "", *s_line = "", *s_level = "";
+ char *s_status = "", *s_message = "";
+ char *msg = NULL;
+
+ if (em == NULL) return NULL;
+
+ if (em->file != NULL) {
+ s_file = apr_psprintf(mp, "[file \"%s\"] ",
+ log_escape(mp, (char *)em->file));
+ if (s_file == NULL) return NULL;
+ }
+
+ if (em->line > 0) {
+ s_line = apr_psprintf(mp, "[line %d] ", em->line);
+ if (s_line == NULL) return NULL;
+ }
+
+ s_level = apr_psprintf(mp, "[level %d] ", em->level);
+ if (s_level == NULL) return NULL;
+
+ if (em->status != 0) {
+ s_status = apr_psprintf(mp, "[status %d] ", em->status);
+ if (s_status == NULL) return NULL;
+ }
+
+ if (em->message != NULL) {
+ s_message = log_escape_nq(mp, em->message);
+ if (s_message == NULL) return NULL;
+ }
+
+ msg = apr_psprintf(mp, "%s%s%s%s%s", s_file, s_line, s_level, s_status, s_message);
+ if (msg == NULL) return NULL;
+
+ return msg;
+}
+
+/**
+ * Determines the reponse protocol Apache will use (or has used)
+ * to respond to the given request.
+ */
+const char *get_response_protocol(request_rec *r) {
+ int proto_num = r->proto_num;
+
+ if (r->assbackwards) {
+ return NULL;
+ }
+
+ if (proto_num > HTTP_VERSION(1,0)
+ && apr_table_get(r->subprocess_env, "downgrade-1.0"))
+ {
+ proto_num = HTTP_VERSION(1,0);
+ }
+
+ if (proto_num == HTTP_VERSION(1,0)
+ && apr_table_get(r->subprocess_env, "force-response-1.0"))
+ {
+ return "HTTP/1.0";
+ }
+
+ return AP_SERVER_PROTOCOL;
+}
--- /dev/null
+Custom ModSecurity Modules
+--------------------------
+
+This directory contains three examples how you can extend
+ModSecurity without having to touch it directly, simply
+by creating custom Apache modules.
+
+NOTE: ModSecurity must be compiled with API support
+ to use this feature (do not use -DNO_MODSEC_API).
+
+
+Building the Example Custom Modules
+-----------------------------------
+
+1) Example custom transformation function module
+
+Module mod_tfn_reverse.c creates a custom transformation
+function "reverse" that reverses the content it receives
+on input.
+
+ # Compile as a normal user
+ apxs -ca mod_tfn_reverse.c
+
+ # Install as superuser
+ sudo apxs -i mod_tfn_reverse.la
+
+
+2) Example custom operator module
+
+Module mod_op_strstr.c creates a custom operator "strstr"
+that implements fast matching using the Boyer-Moore-Horspool
+algorithm.
+
+Compiling this module is more involved because it requires
+access to ModSecurity structures.
+
+ # Compile as a normal user
+ apxs -I<MODSECURITY_SOURCE_CODE> -I/usr/include/libxml2 \
+ -ca mod_op_strstr.c
+
+ # Install as superuser
+ sudo apxs -i mod_op_strstr.la
+
+
+3) Example custom target variable module
+
+Module mod_var_remote_addr_port.c creates a custom variable "REMOTE_ADDR_PORT"
+that combines the REMOTE_ADDR and REMOTE_PORT into a.b.c.d:port format.
+
+Compiling this module is more involved because it requires
+access to ModSecurity structures.
+
+ # Compile as a normal user
+ apxs -I<MODSECURITY_SOURCE_CODE> -I/usr/include/libxml2 \
+ -ca mod_var_remote_addr_port.c
+
+ # Install as superuser
+ sudo apxs -i mod_var_remote_addr_port.la
+
+
+Using the Modules
+-----------------
+
+Once the modules are built and installed, you load them like any other Apache module, but they must be loaded *after* the mod_security2.so module.
+
+ # Load ModSecurity
+ LoadModule security2_module modules/mod_security2.so
+
+ # Load ModSecurity custom modules
+ LoadModule tfn_reverse_module modules/mod_tfn_reverse.so
+ LoadModule op_strstr_module modules/mod_op_strstr.so
+ LoadModule var_remote_addr_port_module modules/mod_var_remote_addr_port.so
+
+ # All three custom var/op/tfn used
+ SecRule REMOTE_ADDR_PORT "@strstr 1.2.3.4:5678" "t:reverse"
+
--- /dev/null
+
+#include "httpd.h"
+#include "http_core.h"
+#include "http_config.h"
+#include "http_log.h"
+#include "http_protocol.h"
+#include "ap_config.h"
+#include "apr_optional.h"
+
+#include "modsecurity.h"
+
+#define ALPHABET_SIZE 256
+#define MAX_PATTERN_SIZE 64
+
+static void initBoyerMooreHorspool(const char *pattern, int patlength,
+ int *bm_badcharacter_array);
+
+static int BoyerMooreHorspool(const char *pattern, int patlength,
+ const char *text, int textlen, int *bm_badcharacter_array);
+
+/**
+ * Operator parameter initialisation entry point.
+ */
+static int op_strstr_init(msre_rule *rule, char **error_msg) {
+ /* Operator initialisation function will be called once per
+ * statement where operator is used. It is meant to be used
+ * to check the parameters to see whether they are present
+ * and if they are in the correct format.
+ */
+
+ /* In this example we just look for a simple non-empty parameter. */
+ if ((rule->op_param == NULL)||(strlen(rule->op_param) == 0)) {
+ *error_msg = apr_psprintf(rule->ruleset->mp, "Missing parameter for operator 'strstr'.");
+ return 0; /* ERROR */
+ }
+
+ /* If you need to transform the data in the parameter into something
+ * else you should do that here. Simply create a new structure to hold
+ * the transformed data and place the pointer to it into rule->op_param_data.
+ * You will have access to this pointer later on.
+ */
+ rule->op_param_data = apr_pcalloc(rule->ruleset->mp, ALPHABET_SIZE * sizeof(int));
+ initBoyerMooreHorspool(rule->op_param, strlen(rule->op_param), (int *)rule->op_param_data);
+
+ /* OK */
+ return 1;
+}
+
+/**
+ * Operator execution entry point.
+ */
+static int op_strstr_exec(modsec_rec *msr, msre_rule *rule, msre_var *var, char **error_msg) {
+ /* Here we need to inspect the contents of the supplied variable. */
+
+ /* In a general case it is possible for the value
+ * to be NULL. What you need to do in this case
+ * depends on your operator. In this example we return
+ * a "no match" response.
+ */
+ if (var->value == NULL) return 0; /* No match. */
+
+ /* Another thing to note is that variables are not C strings,
+ * meaning the NULL byte is not used to determine the end
+ * of the string. Variable length var->value_len should be
+ * used for this purpose.
+ */
+
+ if (BoyerMooreHorspool(rule->op_param, strlen(rule->op_param),
+ var->value, var->value_len, (int *)rule->op_param_data) >= 0)
+ {
+ return 1; /* Match. */
+ }
+
+ return 0; /* No match. */
+}
+
+static int hook_pre_config(apr_pool_t *mp, apr_pool_t *mp_log, apr_pool_t *mp_temp) {
+ void (*fn)(const char *name, void *fn_init, void *fn_exec);
+
+ /* Look for the registration function
+ * exported by ModSecurity.
+ */
+ fn = APR_RETRIEVE_OPTIONAL_FN(modsec_register_operator);
+ if (fn) {
+ /* Use it to register our new
+ * transformation function under the
+ * name "reverse".
+ */
+ fn("strstr", (void *)op_strstr_init, (void *)op_strstr_exec);
+ }
+
+ return OK;
+}
+
+static void register_hooks(apr_pool_t *p) {
+ ap_hook_pre_config(hook_pre_config, NULL, NULL, APR_HOOK_LAST);
+}
+
+/* Dispatch list for API hooks */
+module AP_MODULE_DECLARE_DATA op_strstr_module = {
+ STANDARD20_MODULE_STUFF,
+ NULL, /* create per-dir config structures */
+ NULL, /* merge per-dir config structures */
+ NULL, /* create per-server config structures */
+ NULL, /* merge per-server config structures */
+ NULL, /* table of config file commands */
+ register_hooks /* register hooks */
+};
+
+/*
+
+This example uses an implementation Boyer-Moore-Horspool
+matching algorithm as implemented in Streamline (http://ffpf.sourceforge.net).
+
+Copyright (c) 2004-2006, Vrije Universiteit Amsterdam
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+Redistributions of source code must retain the above copyright notice,
+this list of conditions and the following disclaimer.
+
+Redistributions in binary form must reproduce the above copyright notice,
+this list of conditions and the following disclaimer in the documentation
+and/or other materials provided with the distribution.
+
+Neither the name of the Vrije Universiteit nor the names of its contributors
+may be used to endorse or promote products derived from this software without
+specific prior written permission.
+
+*/
+
+static void precompute_badcharacter(const char *pattern, int patlength,
+ int bm_badcharacter_array[])
+{
+ int i;
+
+ for (i = 0; i < ALPHABET_SIZE; ++i) {
+ bm_badcharacter_array[i] = patlength;
+ }
+
+ for (i = 0; i < patlength - 1; ++i){
+ bm_badcharacter_array[(uint8_t)pattern[i]] = patlength - i - 1;
+ }
+}
+
+static void initBoyerMooreHorspool(const char *pattern, int patlength,
+ int *bm_badcharacter_array)
+{
+ precompute_badcharacter(pattern,
+ (patlength < MAX_PATTERN_SIZE ? patlength : MAX_PATTERN_SIZE), bm_badcharacter_array);
+}
+
+static int BoyerMooreHorspool(const char *pattern, int patlength,
+ const char *text, int textlen, int *bm_badcharacter_array)
+{
+ int j;
+ char c;
+
+ j = 0;
+ while (j <= textlen - patlength) {
+ c = text[j + patlength - 1];
+ if (pattern[patlength - 1] == c && memcmp(pattern, text + j, patlength - 1) == 0) {
+ return j;
+ }
+ j += bm_badcharacter_array[(uint8_t)c];
+ }
+
+ return -1;
+}
--- /dev/null
+
+#include "httpd.h"
+#include "http_core.h"
+#include "http_config.h"
+#include "http_log.h"
+#include "http_protocol.h"
+#include "ap_config.h"
+#include "apr_optional.h"
+
+/* Must be declared if modsecurity.h is not included */
+APR_DECLARE_OPTIONAL_FN(void, modsec_register_tfn, (const char *name, void *fn));
+
+
+/**
+ * This function will be invoked by
+ * ModSecurity to transform input.
+ */
+static int reverse(apr_pool_t *mptmp, unsigned char *input,
+ long int input_len, char **rval, long int *rval_len)
+{
+ /* Transformation functions can choose to do their
+ * thing in-place, overwriting the existing content. This
+ * is normally possible only if the transformed content
+ * is of equal length or shorter.
+ *
+ * If you need to expand the content use the temporary
+ * memory pool mptmp to allocate the space.
+ */
+
+ /* Reverse the string in place, but only if it's long enough. */
+ if (input_len > 1) {
+ long int i = 0;
+ long int j = input_len - 1;
+ while(i < j) {
+ char c = input[i];
+ input[i] = input[j];
+ input[j] = c;
+ i++;
+ j--;
+ }
+ }
+
+ /* Tell ModSecurity about the content
+ * we have generated. In this case we
+ * merely point back to the input buffer.
+ */
+ *rval = (char *)input;
+ *rval_len = input_len;
+
+ /* Must return 1 if the content was
+ * changed, or 0 otherwise.
+ */
+ return 1;
+}
+
+static int hook_pre_config(apr_pool_t *mp, apr_pool_t *mp_log, apr_pool_t *mp_temp) {
+ void (*fn)(const char *name, void *fn);
+
+ /* Look for the registration function
+ * exported by ModSecurity.
+ */
+ fn = APR_RETRIEVE_OPTIONAL_FN(modsec_register_tfn);
+ if (fn) {
+ /* Use it to register our new
+ * transformation function under the
+ * name "reverse".
+ */
+ fn("reverse", (void *)reverse);
+ }
+
+ return OK;
+}
+
+static void register_hooks(apr_pool_t *p) {
+ ap_hook_pre_config(hook_pre_config, NULL, NULL, APR_HOOK_LAST);
+}
+
+/* Dispatch list for API hooks */
+module AP_MODULE_DECLARE_DATA tfn_reverse_module = {
+ STANDARD20_MODULE_STUFF,
+ NULL, /* create per-dir config structures */
+ NULL, /* merge per-dir config structures */
+ NULL, /* create per-server config structures */
+ NULL, /* merge per-server config structures */
+ NULL, /* table of config file commands */
+ register_hooks /* register hooks */
+};
+
--- /dev/null
+
+#include "httpd.h"
+#include "http_core.h"
+#include "http_config.h"
+#include "http_log.h"
+#include "http_protocol.h"
+#include "ap_config.h"
+#include "apr_optional.h"
+
+#include "re.h"
+
+/* -- Generic generators/validators from re_variables.c -- */
+
+/**
+ * Generates a variable from a string and a length.
+ */
+static int var_simple_generate_ex(msre_var *var, apr_table_t *vartab, apr_pool_t *mptmp,
+ const char *value, int value_len)
+{
+ msre_var *rvar = NULL;
+
+ if (value == NULL) return 0;
+
+ rvar = apr_pmemdup(mptmp, var, sizeof(msre_var));
+ rvar->value = value;
+ rvar->value_len = value_len;
+ apr_table_addn(vartab, rvar->name, (void *)rvar);
+
+ return 1;
+}
+
+/**
+ * Generates a variable from a NULL-terminated string.
+ */
+static int var_simple_generate(msre_var *var, apr_table_t *vartab, apr_pool_t *mptmp,
+ const char *value)
+{
+ if (value == NULL) return 0;
+ return var_simple_generate_ex(var, vartab, mptmp, value, strlen(value));
+}
+
+
+/* -- Module specific code -- */
+
+/**
+ * Create a silly variable with value = a.b.c.d:port
+ */
+static int var_remote_addr_port_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ const char *value = apr_psprintf(mptmp, "%s:%d", msr->remote_addr, msr->remote_port);
+
+ return var_simple_generate(var, vartab, mptmp, value);
+}
+
+static int hook_pre_config(apr_pool_t *mp, apr_pool_t *mp_log, apr_pool_t *mp_temp) {
+ void (*register_fn)(const char *name, unsigned int type,
+ unsigned int argc_min, unsigned int argc_max,
+ void *fn_validate, void *fn_generate,
+ unsigned int is_cacheable, unsigned int availability);
+
+ /* Look for the registration function
+ * exported by ModSecurity.
+ */
+ register_fn = APR_RETRIEVE_OPTIONAL_FN(modsec_register_variable);
+ if (register_fn) {
+ /* Use it to register our new
+ * variable under the
+ * name "REMOTE_ADDR_PORT".
+ */
+ register_fn(
+ "REMOTE_ADDR_PORT",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_remote_addr_port_generate,
+ VAR_DONT_CACHE,
+ PHASE_REQUEST_HEADERS
+ );
+ }
+
+ return OK;
+}
+
+static void register_hooks(apr_pool_t *p) {
+ ap_hook_pre_config(hook_pre_config, NULL, NULL, APR_HOOK_LAST);
+}
+
+/* Dispatch list for API hooks */
+module AP_MODULE_DECLARE_DATA var_remote_addr_port_module = {
+ STANDARD20_MODULE_STUFF,
+ NULL, /* create per-dir config structures */
+ NULL, /* merge per-dir config structures */
+ NULL, /* create per-server config structures */
+ NULL, /* merge per-server config structures */
+ NULL, /* table of config file commands */
+ register_hooks /* register hooks */
+};
+
--- /dev/null
+#!/bin/sh
+
+rm -rf autom4te.cache
+
+#automake --add-missing --copy
+autoreconf --install
--- /dev/null
+#!@SHELL@
+
+WRAPPED_OPTS=""
+for opt in "$@"; do
+ case "$opt" in
+ # Fix for -R not working w/apxs
+ -R*) WRAPPED_OPTS="$WRAPPED_OPTS -Wl,$opt" ;;
+ # OSF1 compiler option
+ -pthread) WRAPPED_OPTS="$WRAPPED_OPTS -Wc,$opt" ;;
+ # Unwrapped
+ *) WRAPPED_OPTS="$WRAPPED_OPTS $opt" ;;
+ esac
+done
+
+exec @APXS@ $WRAPPED_OPTS
--- /dev/null
+dnl Check for APR Libraries
+dnl CHECK_APR(ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND])
+dnl Sets:
+dnl APR_CFLAGS
+dnl APR_LDFLAGS
+dnl APR_LIBS
+dnl APR_LINK_LD
+
+APR_CONFIG=""
+APR_CFLAGS=""
+APR_LDFLAGS=""
+APR_LIBS=""
+APR_LINK_LD=""
+
+AC_DEFUN([CHECK_APR],
+[dnl
+
+AC_ARG_WITH(
+ apr,
+ [AC_HELP_STRING([--with-apr=PATH],[Path to apr prefix or config script])],
+ [test_paths="${with_apr}"],
+ [test_paths="/usr/local/libapr /usr/local/apr /usr/local /opt/libapr /opt/apr /opt /usr"])
+
+AC_MSG_CHECKING([for libapr config script])
+
+for x in ${test_paths}; do
+ dnl # Determine if the script was specified and use it directly
+ if test ! -d "$x" -a -e "$x"; then
+ APR_CONFIG=$x
+ apr_path=no
+ break
+ fi
+
+ dnl # Try known config script names/locations
+ for APR_CONFIG in apr-1-mt-config apr-1-config apr-config-1 apr-mt-config-1 apr-mt-config apr-config; do
+ if test -e "${x}/bin/${APR_CONFIG}"; then
+ apr_path="${x}/bin"
+ break
+ elif test -e "${x}/${APR_CONFIG}"; then
+ apr_path="${x}"
+ break
+ else
+ apr_path=""
+ fi
+ done
+ if test -n "$apr_path"; then
+ break
+ fi
+done
+
+if test -n "${apr_path}"; then
+ if test "${apr_path}" != "no"; then
+ APR_CONFIG="${apr_path}/${APR_CONFIG}"
+ fi
+ AC_MSG_RESULT([${APR_CONFIG}])
+ APR_CFLAGS="`${APR_CONFIG} --includes --cppflags --cflags`"
+ if test "$verbose_output" -eq 1; then AC_MSG_NOTICE(apr CFLAGS: $APR_CFLAGS); fi
+ APR_LDFLAGS="`${APR_CONFIG} --ldflags`"
+ if test "$verbose_output" -eq 1; then AC_MSG_NOTICE(apr LDFLAGS: $APR_LDFLAGS); fi
+ APR_LIBS="`${APR_CONFIG} --libs`"
+ if test "$verbose_output" -eq 1; then AC_MSG_NOTICE(apr LIBS: $APR_LIBS); fi
+ APR_LINK_LD="`${APR_CONFIG} --link-ld`"
+ if test "$verbose_output" -eq 1; then AC_MSG_NOTICE(apr LINK_LD: $APR_LINK_LD); fi
+ CFLAGS=$save_CFLAGS
+ LDFLAGS=$save_LDFLAGS
+else
+ AC_MSG_RESULT([no])
+fi
+
+AC_SUBST(APR_LIBS)
+AC_SUBST(APR_CFLAGS)
+AC_SUBST(APR_LDFLAGS)
+AC_SUBST(APR_LINK_LD)
+
+if test -z "${APR_LIBS}"; then
+ AC_MSG_NOTICE([*** apr library not found.])
+ ifelse([$2], , AC_MSG_ERROR([apr library is required]), $2)
+else
+ AC_MSG_NOTICE([using '${APR_LIBS}' for apr Library])
+ ifelse([$1], , , $1)
+fi
+])
--- /dev/null
+dnl Check for APU Libraries
+dnl CHECK_APU(ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND])
+dnl Sets:
+dnl APU_CFLAGS
+dnl APU_LDFLAGS
+dnl APU_LIBS
+dnl APU_LINK_LD
+
+APU_CONFIG=""
+APU_CFLAGS=""
+APU_LDFLAGS=""
+APU_LIBS=""
+APU_LINK_LD=""
+
+AC_DEFUN([CHECK_APU],
+[dnl
+
+AC_ARG_WITH(
+ apu,
+ [AC_HELP_STRING([--with-apu=PATH],[Path to apu prefix or config script])],
+ [test_paths="${with_apu}"],
+ [test_paths="/usr/local/libapr-util /usr/local/apr-util /usr/local/libapu /usr/local/apu /usr/local /opt/libapr-util /opt/apr-util /opt/libapu /opt/apu /opt /usr"])
+
+AC_MSG_CHECKING([for libapu config script])
+
+for x in ${test_paths}; do
+ dnl # Determine if the script was specified and use it directly
+ if test ! -d "$x" -a -e "$x"; then
+ APU_CONFIG=$x
+ apu_path="no"
+ break
+ fi
+
+ dnl # Try known config script names/locations
+ for APU_CONFIG in apu-1-mt-config apu-1-config apu-config-1 apu-mt-config-1 apu-mt-config apu-config; do
+ if test -e "${x}/bin/${APU_CONFIG}"; then
+ apu_path="${x}/bin"
+ break
+ elif test -e "${x}/${APU_CONFIG}"; then
+ apu_path="${x}"
+ break
+ else
+ apu_path=""
+ fi
+ done
+ if test -n "$apu_path"; then
+ break
+ fi
+done
+
+if test -n "${apu_path}"; then
+ if test "${apu_path}" != "no"; then
+ APU_CONFIG="${apu_path}/${APU_CONFIG}"
+ fi
+ AC_MSG_RESULT([${APU_CONFIG}])
+ APU_CFLAGS="`${APU_CONFIG} --includes`"
+ if test "$verbose_output" -eq 1; then AC_MSG_NOTICE(apu CFLAGS: $APU_CFLAGS); fi
+ APU_LDFLAGS="`${APU_CONFIG} --ldflags`"
+ if test "$verbose_output" -eq 1; then AC_MSG_NOTICE(apu LDFLAGS: $APU_LDFLAGS); fi
+ APU_LIBS="`${APU_CONFIG} --libs`"
+ if test "$verbose_output" -eq 1; then AC_MSG_NOTICE(apu LIBS: $APU_LIBS); fi
+ APU_LINK_LD="`${APU_CONFIG} --link-ld`"
+ if test "$verbose_output" -eq 1; then AC_MSG_NOTICE(apu LINK_LD: $APU_LINK_LD); fi
+ CFLAGS=$save_CFLAGS
+ LDFLAGS=$save_LDFLAGS
+else
+ AC_MSG_RESULT([no])
+fi
+
+AC_SUBST(APU_LIBS)
+AC_SUBST(APU_CFLAGS)
+AC_SUBST(APU_LDFLAGS)
+AC_SUBST(APU_LINK_LD)
+
+if test -z "${APU_LIBS}"; then
+ AC_MSG_NOTICE([*** apu library not found.])
+ ifelse([$2], , AC_MSG_ERROR([apu library is required]), $2)
+else
+ AC_MSG_NOTICE([using '${APU_LIBS}' for apu Library])
+ ifelse([$1], , , $1)
+fi
+])
--- /dev/null
+dnl Check for CURL Libraries
+dnl CHECK_CURL(ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND])
+dnl Sets:
+dnl CURL_CFLAGS
+dnl CURL_LIBS
+
+CURL_CONFIG=""
+CURL_CFLAGS=""
+CURL_LIBS=""
+CURL_MIN_VERSION="7.15.1"
+
+AC_DEFUN([CHECK_CURL],
+[dnl
+
+AC_ARG_WITH(
+ curl,
+ [AC_HELP_STRING([--with-curl=PATH],[Path to curl prefix or config script])],
+ [test_paths="${with_curl}"],
+ [test_paths="/usr/local/libcurl /usr/local/curl /usr/local /opt/libcurl /opt/curl /opt /usr"])
+
+AC_MSG_CHECKING([for libcurl config script])
+
+for x in ${test_paths}; do
+ dnl # Determine if the script was specified and use it directly
+ if test ! -d "$x" -a -e "$x"; then
+ CURL_CONFIG=$x
+ curl_path="no"
+ break
+ fi
+
+ dnl # Try known config script names/locations
+ for CURL_CONFIG in curl-config; do
+ if test -e "${x}/bin/${CURL_CONFIG}"; then
+ curl_path="${x}/bin"
+ break
+ elif test -e "${x}/${CURL_CONFIG}"; then
+ curl_path="${x}"
+ break
+ else
+ curl_path=""
+ fi
+ done
+ if test -n "$curl_path"; then
+ break
+ fi
+done
+
+if test -n "${curl_path}"; then
+ if test "${curl_path}" != "no"; then
+ CURL_CONFIG="${curl_path}/${CURL_CONFIG}"
+ fi
+ AC_MSG_RESULT([${CURL_CONFIG}])
+ CURL_CFLAGS="`${CURL_CONFIG} --cflags`"
+ if test "$verbose_output" -eq 1; then AC_MSG_NOTICE(curl CFLAGS: $CURL_CFLAGS); fi
+ CURL_LIBS="`${CURL_CONFIG} --libs`"
+ if test "$verbose_output" -eq 1; then AC_MSG_NOTICE(curl LIBS: $CURL_LIBS); fi
+ CURL_VERSION=`${CURL_CONFIG} --version | sed 's/^[[^0-9]][[^[:space:]]][[^[:space:]]]*[[[:space:]]]*//'`
+ if test "$verbose_output" -eq 1; then AC_MSG_NOTICE(curl VERSION: $CURL_VERSION); fi
+ CFLAGS=$save_CFLAGS
+ LDFLAGS=$save_LDFLAGS
+
+ dnl # Check version is ok
+ AC_MSG_CHECKING([if libcurl is at least v${CURL_MIN_VERSION}])
+ curl_min_ver=`echo ${CURL_MIN_VERSION} | awk -F. '{print (\$ 1 * 1000000) + (\$ 2 * 1000) + \$ 3}'`
+ curl_ver=`echo ${CURL_VERSION} | awk -F. '{print (\$ 1 * 1000000) + (\$ 2 * 1000) + \$ 3}'`
+ if test "$curl_min_ver" -le "$curl_ver"; then
+ AC_MSG_RESULT([yes])
+ else
+ AC_MSG_RESULT([no])
+ AC_MSG_NOTICE([NOTE: curl library may be too old: $CURL_VERSION])
+ fi
+
+ dnl # Check/warn if GnuTLS is used
+ AC_MSG_CHECKING([if libcurl is linked with gnutls])
+ curl_uses_gnutls=`echo ${CURL_LIBS} | grep gnutls | wc -l`
+ if test "$curl_uses_gnutls" -ne 0; then
+ AC_MSG_RESULT([yes])
+ AC_MSG_NOTICE([NOTE: curl linked with gnutls may be buggy, openssl recommended])
+ CURL_USES_GNUTLS=yes
+ else
+ AC_MSG_RESULT([no])
+ CURL_USES_GNUTLS=no
+ fi
+
+else
+ AC_MSG_RESULT([no])
+fi
+
+AC_SUBST(CURL_LIBS)
+AC_SUBST(CURL_CFLAGS)
+AC_SUBST(CURL_USES_GNUTLS)
+
+if test -z "${CURL_LIBS}"; then
+ AC_MSG_NOTICE([*** curl library not found.])
+ ifelse([$2], , AC_MSG_NOTICE([NOTE: curl library is only required for building mlogc]), $2)
+else
+ AC_MSG_NOTICE([using '${CURL_LIBS}' for curl Library])
+ ifelse([$1], , , $1)
+fi
+])
--- /dev/null
+dnl Check for LUA Libraries
+dnl CHECK_LUA(ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND])
+dnl Sets:
+dnl LUA_CFLAGS
+dnl LUA_LIBS
+
+LUA_CONFIG=""
+LUA_CFLAGS=""
+LUA_LIBS=""
+LUA_CONFIG=pkg-config
+LUA_PKGNAMES="lua5.1 lua-5.1 lua_5.1 lua-51 lua_51 lua51 lua5 lua"
+LUA_SONAMES="so la sl dll dylib"
+
+AC_DEFUN([CHECK_LUA],
+[dnl
+
+AC_ARG_WITH(
+ lua,
+ [AC_HELP_STRING([--with-lua=PATH],[Path to lua prefix or config script])],
+ [test_paths="${with_lua}"],
+ [test_paths="/usr/local/liblua /usr/local/lua /usr/local /opt/liblua /opt/lua /opt /usr"; ])
+
+AC_MSG_CHECKING([for liblua config script])
+
+for x in ${test_paths}; do
+ dnl # Determine if the script was specified and use it directly
+ if test ! -d "$x" -a -e "$x"; then
+ LUA_CONFIG=$x
+ break
+ fi
+
+ dnl # Try known config script names/locations
+ for y in $LUA_CONFIG; do
+ if test -e "${x}/bin/${y}"; then
+ LUA_CONFIG="${x}/bin/${y}"
+ lua_config="${LUA_CONFIG}"
+ break
+ elif test -e "${x}/${y}"; then
+ LUA_CONFIG="${x}/${y}"
+ lua_config="${LUA_CONFIG}"
+ break
+ fi
+ done
+ if test -n "${lua_config}"; then
+ break
+ fi
+done
+
+dnl # Try known package names
+if test -n "${LUA_CONFIG}"; then
+ LUA_PKGNAME=""
+ for x in ${LUA_PKGNAMES}; do
+ if ${LUA_CONFIG} --exists ${x}; then
+ LUA_PKGNAME="$x"
+ break
+ fi
+ done
+fi
+
+if test -n "${LUA_PKGNAME}"; then
+ AC_MSG_RESULT([${LUA_CONFIG}])
+ LUA_CFLAGS="`${LUA_CONFIG} ${LUA_PKGNAME} --cflags`"
+ if test "$verbose_output" -eq 1; then AC_MSG_NOTICE(lua CFLAGS: $LUA_CFLAGS); fi
+ LUA_LIBS="`${LUA_CONFIG} ${LUA_PKGNAME} --libs`"
+ if test "$verbose_output" -eq 1; then AC_MSG_NOTICE(lua LIBS: $LUA_LIBS); fi
+ CFLAGS=$save_CFLAGS
+ LDFLAGS=$save_LDFLAGS
+else
+ AC_MSG_RESULT([no])
+
+ dnl Hack to just try to find the lib and include
+ AC_MSG_CHECKING([for lua install])
+ for x in ${test_paths}; do
+ for y in ${LUA_SONAMES}; do
+ if test -e "${x}/liblua5.1.${y}"; then
+ lua_lib_path="${x}"
+ lua_lib_name="lua5.1"
+ break
+ elif test -e "${x}/lib/liblua5.1.${y}"; then
+ lua_lib_path="${x}/lib"
+ lua_lib_name="lua5.1"
+ break
+ elif test -e "${x}/lib64/liblua5.1.${y}"; then
+ lua_lib_path="${x}/lib64"
+ lua_lib_name="lua5.1"
+ break
+ elif test -e "${x}/lib32/liblua5.1.${y}"; then
+ lua_lib_path="${x}/lib32"
+ lua_lib_name="lua5.1"
+ break
+ elif test -e "${x}/liblua51.${y}"; then
+ lua_lib_path="${x}"
+ lua_lib_name="lua51"
+ break
+ elif test -e "${x}/lib/liblua51.${y}"; then
+ lua_lib_path="${x}/lib"
+ lua_lib_name="lua51"
+ break
+ elif test -e "${x}/lib64/liblua51.${y}"; then
+ lua_lib_path="${x}/lib64"
+ lua_lib_name="lua51"
+ break
+ elif test -e "${x}/lib32/liblua51.${y}"; then
+ lua_lib_path="${x}/lib32"
+ lua_lib_name="lua51"
+ break
+ elif test -e "${x}/liblua.${y}"; then
+ lua_lib_path="${x}"
+ lua_lib_name="lua"
+ break
+ elif test -e "${x}/lib/liblua.${y}"; then
+ lua_lib_path="${x}/lib"
+ lua_lib_name="lua"
+ break
+ elif test -e "${x}/lib64/liblua.${y}"; then
+ lua_lib_path="${x}/lib64"
+ lua_lib_name="lua"
+ break
+ elif test -e "${x}/lib32/liblua.${y}"; then
+ lua_lib_path="${x}/lib32"
+ lua_lib_name="lua"
+ break
+ else
+ lua_lib_path=""
+ lua_lib_name=""
+ fi
+ done
+ if test -n "$lua_lib_path"; then
+ break
+ fi
+ done
+ for x in ${test_paths}; do
+ if test -e "${x}/include/lua.h"; then
+ lua_inc_path="${x}/include"
+ break
+ elif test -e "${x}/lua.h"; then
+ lua_inc_path="${x}"
+ break
+ fi
+
+ dnl # Check some sub-paths as well
+ for lua_pkg_name in ${lua_lib_name} ${LUA_PKGNAMES}; do
+ if test -e "${x}/include/${lua_pkg_name}/lua.h"; then
+ lua_inc_path="${x}/include"
+ break
+ elif test -e "${x}/${lua_pkg_name}/lua.h"; then
+ lua_inc_path="${x}"
+ break
+ else
+ lua_inc_path=""
+ fi
+ done
+ if test -n "$lua_inc_path"; then
+ break
+ fi
+ done
+ if test -n "${lua_lib_path}" -a -n "${lua_inc_path}"; then
+ LUA_CONFIG=""
+ AC_MSG_RESULT([${lua_lib_path} ${lua_inc_path}])
+ LUA_CFLAGS="-I${lua_inc_path}"
+ LUA_LIBS="-L${lua_lib_path} -l${lua_lib_name}"
+ CFLAGS=$save_CFLAGS
+ LDFLAGS=$save_LDFLAGS
+ else
+ AC_MSG_RESULT([no])
+ fi
+fi
+
+if test -n "${LUA_LIBS}"; then
+ LUA_CFLAGS="-DWITH_LUA ${LUA_CFLAGS}"
+fi
+
+AC_SUBST(LUA_LIBS)
+AC_SUBST(LUA_CFLAGS)
+
+if test "${with_path}" != "no"; then
+ if test -z "${LUA_LIBS}"; then
+ ifelse([$2], , AC_MSG_NOTICE([optional lua library not found]), $2)
+ else
+ AC_MSG_NOTICE([using '${LUA_LIBS}' for lua Library])
+ ifelse([$1], , , $1)
+ fi
+fi
+])
--- /dev/null
+dnl Check for PCRE Libraries
+dnl CHECK_PCRE(ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND])
+dnl Sets:
+dnl PCRE_CFLAGS
+dnl PCRE_LIBS
+
+PCRE_CONFIG=""
+PCRE_CFLAGS=""
+PCRE_LIBS=""
+
+AC_DEFUN([CHECK_PCRE],
+[dnl
+
+AC_ARG_WITH(
+ pcre,
+ [AC_HELP_STRING([--with-pcre=PATH],[Path to pcre prefix or config script])],
+ [test_paths="${with_pcre}"],
+ [test_paths="/usr/local/libpcre /usr/local/pcre /usr/local /opt/libpcre /opt/pcre /opt /usr"])
+
+AC_MSG_CHECKING([for libpcre config script])
+
+dnl # Determine pcre lib directory
+if test -z "${with_pcre}"; then
+ test_paths="/usr/local/pcre /usr/local /usr"
+else
+ test_paths="${with_pcre}"
+fi
+
+for x in ${test_paths}; do
+ dnl # Determine if the script was specified and use it directly
+ if test ! -d "$x" -a -e "$x"; then
+ PCRE_CONFIG=$x
+ pcre_path="no"
+ break
+ fi
+
+ dnl # Try known config script names/locations
+ for PCRE_CONFIG in pcre-config; do
+ if test -e "${x}/bin/${PCRE_CONFIG}"; then
+ pcre_path="${x}/bin"
+ break
+ elif test -e "${x}/${PCRE_CONFIG}"; then
+ pcre_path="${x}"
+ break
+ else
+ pcre_path=""
+ fi
+ done
+ if test -n "$pcre_path"; then
+ break
+ fi
+done
+ CFLAGS=$save_CFLAGS
+ LDFLAGS=$save_LDFLAGS
+
+if test -n "${pcre_path}"; then
+ if test "${pcre_path}" != "no"; then
+ PCRE_CONFIG="${pcre_path}/${PCRE_CONFIG}"
+ fi
+ AC_MSG_RESULT([${PCRE_CONFIG}])
+ PCRE_CFLAGS="`${PCRE_CONFIG} --cflags`"
+ if test "$verbose_output" -eq 1; then AC_MSG_NOTICE(pcre CFLAGS: $PCRE_CFLAGS); fi
+ PCRE_LIBS="`${PCRE_CONFIG} --libs`"
+ if test "$verbose_output" -eq 1; then AC_MSG_NOTICE(pcre LIBS: $PCRE_LIBS); fi
+ CFLAGS=$save_CFLAGS
+ LDFLAGS=$save_LDFLAGS
+else
+ AC_MSG_RESULT([no])
+fi
+
+AC_SUBST(PCRE_LIBS)
+AC_SUBST(PCRE_CFLAGS)
+
+if test -z "${PCRE_LIBS}"; then
+ AC_MSG_NOTICE([*** pcre library not found.])
+ ifelse([$2], , AC_MSG_ERROR([pcre library is required]), $2)
+else
+ AC_MSG_NOTICE([using '${PCRE_LIBS}' for pcre Library])
+ ifelse([$1], , , $1)
+fi
+])
--- /dev/null
+dnl Check for LIBXML2 Libraries
+dnl CHECK_LIBXML2(ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND])
+dnl Sets:
+dnl LIBXML2_CFLAGS
+dnl LIBXML2_LIBS
+
+LIBXML2_CONFIG=""
+LIBXML2_CFLAGS=""
+LIBXML2_LIBS=""
+
+AC_DEFUN([CHECK_LIBXML2],
+[dnl
+
+AC_ARG_WITH(
+ libxml,
+ [AC_HELP_STRING([--with-libxml=PATH],[Path to libxml2 prefix or config script])],
+ [test_paths="${with_libxml}"],
+ [test_paths="/usr/local/libxml2 /usr/local/xml2 /usr/local/xml /usr/local /opt/libxml2 /opt/libxml /opt/xml2 /opt/xml /opt /usr"])
+
+AC_MSG_CHECKING([for libxml2 config script])
+
+for x in ${test_paths}; do
+ dnl # Determine if the script was specified and use it directly
+ if test ! -d "$x" -a -e "$x"; then
+ LIBXML2_CONFIG=$x
+ libxml2_path="no"
+ break
+ fi
+
+ dnl # Try known config script names/locations
+ for LIBXML2_CONFIG in xml2-config xml-2-config xml-config; do
+ if test -e "${x}/bin/${LIBXML2_CONFIG}"; then
+ libxml2_path="${x}/bin"
+ break
+ elif test -e "${x}/${LIBXML2_CONFIG}"; then
+ libxml2_path="${x}"
+ break
+ else
+ libxml2_path=""
+ fi
+ done
+ if test -n "$libxml2_path"; then
+ break
+ fi
+done
+ CFLAGS=$save_CFLAGS
+ LDFLAGS=$save_LDFLAGS
+
+if test -n "${libxml2_path}"; then
+ if test "${libxml2_path}" != "no"; then
+ LIBXML2_CONFIG="${libxml2_path}/${LIBXML2_CONFIG}"
+ fi
+ AC_MSG_RESULT([${LIBXML2_CONFIG}])
+ LIBXML2_CFLAGS="`${LIBXML2_CONFIG} --cflags`"
+ if test "$verbose_output" -eq 1; then AC_MSG_NOTICE(xml CFLAGS: $LIBXML2_CFLAGS); fi
+ LIBXML2_LIBS="`${LIBXML2_CONFIG} --libs`"
+ if test "$verbose_output" -eq 1; then AC_MSG_NOTICE(xml LIBS: $LIBXML2_LIBS); fi
+ CFLAGS=$save_CFLAGS
+ LDFLAGS=$save_LDFLAGS
+else
+ AC_MSG_RESULT([no])
+fi
+
+AC_SUBST(LIBXML2_LIBS)
+AC_SUBST(LIBXML2_CFLAGS)
+
+if test -z "${LIBXML2_LIBS}"; then
+ AC_MSG_NOTICE([*** xml library not found.])
+ ifelse([$2], , AC_MSG_ERROR([libxml2 is required]), $2)
+else
+ AC_MSG_NOTICE([using '${LIBXML2_LIBS}' for libxml2])
+ ifelse([$1], , , $1)
+fi
+])
--- /dev/null
+#!/bin/sh
+##
+## install.sh -- install a program, script or datafile
+##
+## Based on `install-sh' from the X Consortium's X11R5 distribution
+## as of 89/12/18 which is freely available.
+## Cleaned up for Apache's Autoconf-style Interface (APACI)
+## by Ralf S. Engelschall <rse@apache.org>
+##
+#
+# This script falls under the Apache License.
+# See http://www.apache.org/docs/LICENSE
+
+
+#
+# put in absolute paths if you don't have them in your path;
+# or use env. vars.
+#
+mvprog="${MVPROG-mv}"
+cpprog="${CPPROG-cp}"
+chmodprog="${CHMODPROG-chmod}"
+chownprog="${CHOWNPROG-chown}"
+chgrpprog="${CHGRPPROG-chgrp}"
+stripprog="${STRIPPROG-strip}"
+rmprog="${RMPROG-rm}"
+
+#
+# parse argument line
+#
+instcmd="$mvprog"
+chmodcmd=""
+chowncmd=""
+chgrpcmd=""
+stripcmd=""
+rmcmd="$rmprog -f"
+mvcmd="$mvprog"
+ext=""
+src=""
+dst=""
+while [ "x$1" != "x" ]; do
+ case $1 in
+ -c) instcmd="$cpprog"
+ shift; continue
+ ;;
+ -m) chmodcmd="$chmodprog $2"
+ shift; shift; continue
+ ;;
+ -o) chowncmd="$chownprog $2"
+ shift; shift; continue
+ ;;
+ -g) chgrpcmd="$chgrpprog $2"
+ shift; shift; continue
+ ;;
+ -s) stripcmd="$stripprog"
+ shift; continue
+ ;;
+ -S) stripcmd="$stripprog $2"
+ shift; shift; continue
+ ;;
+ -e) ext="$2"
+ shift; shift; continue
+ ;;
+ *) if [ "x$src" = "x" ]; then
+ src=$1
+ else
+ dst=$1
+ fi
+ shift; continue
+ ;;
+ esac
+done
+if [ "x$src" = "x" ]; then
+ echo "install.sh: no input file specified"
+ exit 1
+fi
+if [ "x$dst" = "x" ]; then
+ echo "install.sh: no destination specified"
+ exit 1
+fi
+
+#
+# If destination is a directory, append the input filename; if
+# your system does not like double slashes in filenames, you may
+# need to add some logic
+#
+if [ -d $dst ]; then
+ dst="$dst/`basename $src`"
+fi
+
+# Add a possible extension (such as ".exe") to src and dst
+src="$src$ext"
+dst="$dst$ext"
+
+# Make a temp file name in the proper directory.
+dstdir=`dirname $dst`
+dsttmp=$dstdir/#inst.$$#
+
+# Move or copy the file name to the temp name
+$instcmd $src $dsttmp
+
+# And set any options; do chmod last to preserve setuid bits
+if [ "x$chowncmd" != "x" ]; then $chowncmd $dsttmp; fi
+if [ "x$chgrpcmd" != "x" ]; then $chgrpcmd $dsttmp; fi
+if [ "x$stripcmd" != "x" ]; then $stripcmd $dsttmp; fi
+if [ "x$chmodcmd" != "x" ]; then $chmodcmd $dsttmp; fi
+
+# Now rename the file to the real destination.
+$rmcmd $dst
+$mvcmd $dsttmp $dst
+
+exit 0
+
+#!/bin/sh
+##
+## install.sh -- install a program, script or datafile
+##
+## Based on `install-sh' from the X Consortium's X11R5 distribution
+## as of 89/12/18 which is freely available.
+## Cleaned up for Apache's Autoconf-style Interface (APACI)
+## by Ralf S. Engelschall <rse@apache.org>
+##
+#
+# This script falls under the Apache License.
+# See http://www.apache.org/docs/LICENSE
+
+
+#
+# put in absolute paths if you don't have them in your path;
+# or use env. vars.
+#
+mvprog="${MVPROG-mv}"
+cpprog="${CPPROG-cp}"
+chmodprog="${CHMODPROG-chmod}"
+chownprog="${CHOWNPROG-chown}"
+chgrpprog="${CHGRPPROG-chgrp}"
+stripprog="${STRIPPROG-strip}"
+rmprog="${RMPROG-rm}"
+
+#
+# parse argument line
+#
+instcmd="$mvprog"
+chmodcmd=""
+chowncmd=""
+chgrpcmd=""
+stripcmd=""
+rmcmd="$rmprog -f"
+mvcmd="$mvprog"
+ext=""
+src=""
+dst=""
+while [ "x$1" != "x" ]; do
+ case $1 in
+ -c) instcmd="$cpprog"
+ shift; continue
+ ;;
+ -m) chmodcmd="$chmodprog $2"
+ shift; shift; continue
+ ;;
+ -o) chowncmd="$chownprog $2"
+ shift; shift; continue
+ ;;
+ -g) chgrpcmd="$chgrpprog $2"
+ shift; shift; continue
+ ;;
+ -s) stripcmd="$stripprog"
+ shift; continue
+ ;;
+ -S) stripcmd="$stripprog $2"
+ shift; shift; continue
+ ;;
+ -e) ext="$2"
+ shift; shift; continue
+ ;;
+ *) if [ "x$src" = "x" ]; then
+ src=$1
+ else
+ dst=$1
+ fi
+ shift; continue
+ ;;
+ esac
+done
+if [ "x$src" = "x" ]; then
+ echo "install.sh: no input file specified"
+ exit 1
+fi
+if [ "x$dst" = "x" ]; then
+ echo "install.sh: no destination specified"
+ exit 1
+fi
+
+#
+# If destination is a directory, append the input filename; if
+# your system does not like double slashes in filenames, you may
+# need to add some logic
+#
+if [ -d $dst ]; then
+ dst="$dst/`basename $src`"
+fi
+
+# Add a possible extension (such as ".exe") to src and dst
+src="$src$ext"
+dst="$dst$ext"
+
+# Make a temp file name in the proper directory.
+dstdir=`dirname $dst`
+dsttmp=$dstdir/#inst.$$#
+
+# Move or copy the file name to the temp name
+$instcmd $src $dsttmp
+
+# And set any options; do chmod last to preserve setuid bits
+if [ "x$chowncmd" != "x" ]; then $chowncmd $dsttmp; fi
+if [ "x$chgrpcmd" != "x" ]; then $chgrpcmd $dsttmp; fi
+if [ "x$stripcmd" != "x" ]; then $stripcmd $dsttmp; fi
+if [ "x$chmodcmd" != "x" ]; then $chmodcmd $dsttmp; fi
+
+# Now rename the file to the real destination.
+$rmcmd $dst
+$mvcmd $dsttmp $dst
+
+exit 0
+
--- /dev/null
+# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
+#
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
+# 2006, 2007, 2008 Free Software Foundation, Inc.
+# Written by Gordon Matzigkeit, 1996
+#
+# This file is free software; the Free Software Foundation gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+
+m4_define([_LT_COPYING], [dnl
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
+# 2006, 2007, 2008 Free Software Foundation, Inc.
+# Written by Gordon Matzigkeit, 1996
+#
+# This file is part of GNU Libtool.
+#
+# GNU Libtool is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# As a special exception to the GNU General Public License,
+# if you distribute this file as part of a program or library that
+# is built using GNU Libtool, you may include this file under the
+# same distribution terms that you use for the rest of that program.
+#
+# GNU Libtool is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNU Libtool; see the file COPYING. If not, a copy
+# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
+# obtained by writing to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+])
+
+# serial 56 LT_INIT
+
+
+# LT_PREREQ(VERSION)
+# ------------------
+# Complain and exit if this libtool version is less that VERSION.
+m4_defun([LT_PREREQ],
+[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
+ [m4_default([$3],
+ [m4_fatal([Libtool version $1 or higher is required],
+ 63)])],
+ [$2])])
+
+
+# _LT_CHECK_BUILDDIR
+# ------------------
+# Complain if the absolute build directory name contains unusual characters
+m4_defun([_LT_CHECK_BUILDDIR],
+[case `pwd` in
+ *\ * | *\ *)
+ AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
+esac
+])
+
+
+# LT_INIT([OPTIONS])
+# ------------------
+AC_DEFUN([LT_INIT],
+[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
+AC_BEFORE([$0], [LT_LANG])dnl
+AC_BEFORE([$0], [LT_OUTPUT])dnl
+AC_BEFORE([$0], [LTDL_INIT])dnl
+m4_require([_LT_CHECK_BUILDDIR])dnl
+
+dnl Autoconf doesn't catch unexpanded LT_ macros by default:
+m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
+m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
+dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
+dnl unless we require an AC_DEFUNed macro:
+AC_REQUIRE([LTOPTIONS_VERSION])dnl
+AC_REQUIRE([LTSUGAR_VERSION])dnl
+AC_REQUIRE([LTVERSION_VERSION])dnl
+AC_REQUIRE([LTOBSOLETE_VERSION])dnl
+m4_require([_LT_PROG_LTMAIN])dnl
+
+dnl Parse OPTIONS
+_LT_SET_OPTIONS([$0], [$1])
+
+# This can be used to rebuild libtool when needed
+LIBTOOL_DEPS="$ltmain"
+
+# Always use our own libtool.
+LIBTOOL='$(SHELL) $(apr_builddir)/libtool'
+AC_SUBST(LIBTOOL)dnl
+
+_LT_SETUP
+
+# Only expand once:
+m4_define([LT_INIT])
+])# LT_INIT
+
+# Old names:
+AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
+AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
+dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
+
+
+# _LT_CC_BASENAME(CC)
+# -------------------
+# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
+m4_defun([_LT_CC_BASENAME],
+[for cc_temp in $1""; do
+ case $cc_temp in
+ compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
+ distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
+ \-*) ;;
+ *) break;;
+ esac
+done
+cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
+])
+
+
+# _LT_FILEUTILS_DEFAULTS
+# ----------------------
+# It is okay to use these file commands and assume they have been set
+# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
+m4_defun([_LT_FILEUTILS_DEFAULTS],
+[: ${CP="cp -f"}
+: ${MV="mv -f"}
+: ${RM="rm -f"}
+])# _LT_FILEUTILS_DEFAULTS
+
+
+# _LT_SETUP
+# ---------
+m4_defun([_LT_SETUP],
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
+AC_REQUIRE([AC_CANONICAL_BUILD])dnl
+_LT_DECL([], [host_alias], [0], [The host system])dnl
+_LT_DECL([], [host], [0])dnl
+_LT_DECL([], [host_os], [0])dnl
+dnl
+_LT_DECL([], [build_alias], [0], [The build system])dnl
+_LT_DECL([], [build], [0])dnl
+_LT_DECL([], [build_os], [0])dnl
+dnl
+AC_REQUIRE([AC_PROG_CC])dnl
+AC_REQUIRE([LT_PATH_LD])dnl
+AC_REQUIRE([LT_PATH_NM])dnl
+dnl
+AC_REQUIRE([AC_PROG_LN_S])dnl
+test -z "$LN_S" && LN_S="ln -s"
+_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
+dnl
+AC_REQUIRE([LT_CMD_MAX_LEN])dnl
+_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
+_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
+dnl
+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+m4_require([_LT_CHECK_SHELL_FEATURES])dnl
+m4_require([_LT_CMD_RELOAD])dnl
+m4_require([_LT_CHECK_MAGIC_METHOD])dnl
+m4_require([_LT_CMD_OLD_ARCHIVE])dnl
+m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
+
+_LT_CONFIG_LIBTOOL_INIT([
+# See if we are running on zsh, and set the options which allow our
+# commands through without removal of \ escapes INIT.
+if test -n "\${ZSH_VERSION+set}" ; then
+ setopt NO_GLOB_SUBST
+fi
+])
+if test -n "${ZSH_VERSION+set}" ; then
+ setopt NO_GLOB_SUBST
+fi
+
+_LT_CHECK_OBJDIR
+
+m4_require([_LT_TAG_COMPILER])dnl
+_LT_PROG_ECHO_BACKSLASH
+
+case $host_os in
+aix3*)
+ # AIX sometimes has problems with the GCC collect2 program. For some
+ # reason, if we set the COLLECT_NAMES environment variable, the problems
+ # vanish in a puff of smoke.
+ if test "X${COLLECT_NAMES+set}" != Xset; then
+ COLLECT_NAMES=
+ export COLLECT_NAMES
+ fi
+ ;;
+esac
+
+# Sed substitution that helps us do robust quoting. It backslashifies
+# metacharacters that are still active within double-quoted strings.
+sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
+
+# Same as above, but do not quote variable references.
+double_quote_subst='s/\([["`\\]]\)/\\\1/g'
+
+# Sed substitution to delay expansion of an escaped shell variable in a
+# double_quote_subst'ed string.
+delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
+
+# Sed substitution to delay expansion of an escaped single quote.
+delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
+
+# Sed substitution to avoid accidental globbing in evaled expressions
+no_glob_subst='s/\*/\\\*/g'
+
+# Global variables:
+ofile=libtool
+can_build_shared=yes
+
+# All known linkers require a `.a' archive for static linking (except MSVC,
+# which needs '.lib').
+libext=a
+
+with_gnu_ld="$lt_cv_prog_gnu_ld"
+
+old_CC="$CC"
+old_CFLAGS="$CFLAGS"
+
+# Set sane defaults for various variables
+test -z "$CC" && CC=cc
+test -z "$LTCC" && LTCC=$CC
+test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
+test -z "$LD" && LD=ld
+test -z "$ac_objext" && ac_objext=o
+
+_LT_CC_BASENAME([$compiler])
+
+# Only perform the check for file, if the check method requires it
+test -z "$MAGIC_CMD" && MAGIC_CMD=file
+case $deplibs_check_method in
+file_magic*)
+ if test "$file_magic_cmd" = '$MAGIC_CMD'; then
+ _LT_PATH_MAGIC
+ fi
+ ;;
+esac
+
+# Use C for the default configuration in the libtool script
+LT_SUPPORTED_TAG([CC])
+_LT_LANG_C_CONFIG
+_LT_LANG_DEFAULT_CONFIG
+_LT_CONFIG_COMMANDS
+])# _LT_SETUP
+
+
+# _LT_PROG_LTMAIN
+# ---------------
+# Note that this code is called both from `configure', and `config.status'
+# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
+# `config.status' has no value for ac_aux_dir unless we are using Automake,
+# so we pass a copy along to make sure it has a sensible value anyway.
+m4_defun([_LT_PROG_LTMAIN],
+[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
+_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
+ltmain="$ac_aux_dir/ltmain.sh"
+])# _LT_PROG_LTMAIN
+
+
+## ------------------------------------- ##
+## Accumulate code for creating libtool. ##
+## ------------------------------------- ##
+
+# So that we can recreate a full libtool script including additional
+# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
+# in macros and then make a single call at the end using the `libtool'
+# label.
+
+
+# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
+# ----------------------------------------
+# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
+m4_define([_LT_CONFIG_LIBTOOL_INIT],
+[m4_ifval([$1],
+ [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
+ [$1
+])])])
+
+# Initialize.
+m4_define([_LT_OUTPUT_LIBTOOL_INIT])
+
+
+# _LT_CONFIG_LIBTOOL([COMMANDS])
+# ------------------------------
+# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
+m4_define([_LT_CONFIG_LIBTOOL],
+[m4_ifval([$1],
+ [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
+ [$1
+])])])
+
+# Initialize.
+m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
+
+
+# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
+# -----------------------------------------------------
+m4_defun([_LT_CONFIG_SAVE_COMMANDS],
+[_LT_CONFIG_LIBTOOL([$1])
+_LT_CONFIG_LIBTOOL_INIT([$2])
+])
+
+
+# _LT_FORMAT_COMMENT([COMMENT])
+# -----------------------------
+# Add leading comment marks to the start of each line, and a trailing
+# full-stop to the whole comment if one is not present already.
+m4_define([_LT_FORMAT_COMMENT],
+[m4_ifval([$1], [
+m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
+ [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
+)])
+
+
+
+## ------------------------ ##
+## FIXME: Eliminate VARNAME ##
+## ------------------------ ##
+
+
+# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
+# -------------------------------------------------------------------
+# CONFIGNAME is the name given to the value in the libtool script.
+# VARNAME is the (base) name used in the configure script.
+# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
+# VARNAME. Any other value will be used directly.
+m4_define([_LT_DECL],
+[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
+ [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
+ [m4_ifval([$1], [$1], [$2])])
+ lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
+ m4_ifval([$4],
+ [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
+ lt_dict_add_subkey([lt_decl_dict], [$2],
+ [tagged?], [m4_ifval([$5], [yes], [no])])])
+])
+
+
+# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
+# --------------------------------------------------------
+m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
+
+
+# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
+# ------------------------------------------------
+m4_define([lt_decl_tag_varnames],
+[_lt_decl_filter([tagged?], [yes], $@)])
+
+
+# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
+# ---------------------------------------------------------
+m4_define([_lt_decl_filter],
+[m4_case([$#],
+ [0], [m4_fatal([$0: too few arguments: $#])],
+ [1], [m4_fatal([$0: too few arguments: $#: $1])],
+ [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
+ [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
+ [lt_dict_filter([lt_decl_dict], $@)])[]dnl
+])
+
+
+# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
+# --------------------------------------------------
+m4_define([lt_decl_quote_varnames],
+[_lt_decl_filter([value], [1], $@)])
+
+
+# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
+# ---------------------------------------------------
+m4_define([lt_decl_dquote_varnames],
+[_lt_decl_filter([value], [2], $@)])
+
+
+# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
+# ---------------------------------------------------
+m4_define([lt_decl_varnames_tagged],
+[m4_assert([$# <= 2])dnl
+_$0(m4_quote(m4_default([$1], [[, ]])),
+ m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
+ m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
+m4_define([_lt_decl_varnames_tagged],
+[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
+
+
+# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
+# ------------------------------------------------
+m4_define([lt_decl_all_varnames],
+[_$0(m4_quote(m4_default([$1], [[, ]])),
+ m4_if([$2], [],
+ m4_quote(lt_decl_varnames),
+ m4_quote(m4_shift($@))))[]dnl
+])
+m4_define([_lt_decl_all_varnames],
+[lt_join($@, lt_decl_varnames_tagged([$1],
+ lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
+])
+
+
+# _LT_CONFIG_STATUS_DECLARE([VARNAME])
+# ------------------------------------
+# Quote a variable value, and forward it to `config.status' so that its
+# declaration there will have the same value as in `configure'. VARNAME
+# must have a single quote delimited value for this to work.
+m4_define([_LT_CONFIG_STATUS_DECLARE],
+[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
+
+
+# _LT_CONFIG_STATUS_DECLARATIONS
+# ------------------------------
+# We delimit libtool config variables with single quotes, so when
+# we write them to config.status, we have to be sure to quote all
+# embedded single quotes properly. In configure, this macro expands
+# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
+#
+# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
+m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
+[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
+ [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
+
+
+# _LT_LIBTOOL_TAGS
+# ----------------
+# Output comment and list of tags supported by the script
+m4_defun([_LT_LIBTOOL_TAGS],
+[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
+available_tags="_LT_TAGS"dnl
+])
+
+
+# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
+# -----------------------------------
+# Extract the dictionary values for VARNAME (optionally with TAG) and
+# expand to a commented shell variable setting:
+#
+# # Some comment about what VAR is for.
+# visible_name=$lt_internal_name
+m4_define([_LT_LIBTOOL_DECLARE],
+[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
+ [description])))[]dnl
+m4_pushdef([_libtool_name],
+ m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
+m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
+ [0], [_libtool_name=[$]$1],
+ [1], [_libtool_name=$lt_[]$1],
+ [2], [_libtool_name=$lt_[]$1],
+ [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
+m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
+])
+
+
+# _LT_LIBTOOL_CONFIG_VARS
+# -----------------------
+# Produce commented declarations of non-tagged libtool config variables
+# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
+# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
+# section) are produced by _LT_LIBTOOL_TAG_VARS.
+m4_defun([_LT_LIBTOOL_CONFIG_VARS],
+[m4_foreach([_lt_var],
+ m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
+ [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
+
+
+# _LT_LIBTOOL_TAG_VARS(TAG)
+# -------------------------
+m4_define([_LT_LIBTOOL_TAG_VARS],
+[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
+ [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
+
+
+# _LT_TAGVAR(VARNAME, [TAGNAME])
+# ------------------------------
+m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
+
+
+# _LT_CONFIG_COMMANDS
+# -------------------
+# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
+# variables for single and double quote escaping we saved from calls
+# to _LT_DECL, we can put quote escaped variables declarations
+# into `config.status', and then the shell code to quote escape them in
+# for loops in `config.status'. Finally, any additional code accumulated
+# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
+m4_defun([_LT_CONFIG_COMMANDS],
+[AC_PROVIDE_IFELSE([LT_OUTPUT],
+ dnl If the libtool generation code has been placed in $CONFIG_LT,
+ dnl instead of duplicating it all over again into config.status,
+ dnl then we will have config.status run $CONFIG_LT later, so it
+ dnl needs to know what name is stored there:
+ [AC_CONFIG_COMMANDS([libtool],
+ [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
+ dnl If the libtool generation code is destined for config.status,
+ dnl expand the accumulated commands and init code now:
+ [AC_CONFIG_COMMANDS([libtool],
+ [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
+])#_LT_CONFIG_COMMANDS
+
+
+# Initialize.
+m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
+[
+
+# The HP-UX ksh and POSIX shell print the target directory to stdout
+# if CDPATH is set.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+sed_quote_subst='$sed_quote_subst'
+double_quote_subst='$double_quote_subst'
+delay_variable_subst='$delay_variable_subst'
+_LT_CONFIG_STATUS_DECLARATIONS
+LTCC='$LTCC'
+LTCFLAGS='$LTCFLAGS'
+compiler='$compiler_DEFAULT'
+
+# Quote evaled strings.
+for var in lt_decl_all_varnames([[ \
+]], lt_decl_quote_varnames); do
+ case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
+ *[[\\\\\\\`\\"\\\$]]*)
+ eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
+ ;;
+ *)
+ eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
+ ;;
+ esac
+done
+
+# Double-quote double-evaled strings.
+for var in lt_decl_all_varnames([[ \
+]], lt_decl_dquote_varnames); do
+ case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
+ *[[\\\\\\\`\\"\\\$]]*)
+ eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
+ ;;
+ *)
+ eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
+ ;;
+ esac
+done
+
+# Fix-up fallback echo if it was mangled by the above quoting rules.
+case \$lt_ECHO in
+*'\\\[$]0 --fallback-echo"')dnl "
+ lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
+ ;;
+esac
+
+_LT_OUTPUT_LIBTOOL_INIT
+])
+
+
+# LT_OUTPUT
+# ---------
+# This macro allows early generation of the libtool script (before
+# AC_OUTPUT is called), incase it is used in configure for compilation
+# tests.
+AC_DEFUN([LT_OUTPUT],
+[: ${CONFIG_LT=./config.lt}
+AC_MSG_NOTICE([creating $CONFIG_LT])
+cat >"$CONFIG_LT" <<_LTEOF
+#! $SHELL
+# Generated by $as_me.
+# Run this file to recreate a libtool stub with the current configuration.
+
+lt_cl_silent=false
+SHELL=\${CONFIG_SHELL-$SHELL}
+_LTEOF
+
+cat >>"$CONFIG_LT" <<\_LTEOF
+AS_SHELL_SANITIZE
+_AS_PREPARE
+
+exec AS_MESSAGE_FD>&1
+exec AS_MESSAGE_LOG_FD>>config.log
+{
+ echo
+ AS_BOX([Running $as_me.])
+} >&AS_MESSAGE_LOG_FD
+
+lt_cl_help="\
+\`$as_me' creates a local libtool stub from the current configuration,
+for use in further configure time tests before the real libtool is
+generated.
+
+Usage: $[0] [[OPTIONS]]
+
+ -h, --help print this help, then exit
+ -V, --version print version number, then exit
+ -q, --quiet do not print progress messages
+ -d, --debug don't remove temporary files
+
+Report bugs to <bug-libtool@gnu.org>."
+
+lt_cl_version="\
+m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
+m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
+configured by $[0], generated by m4_PACKAGE_STRING.
+
+Copyright (C) 2008 Free Software Foundation, Inc.
+This config.lt script is free software; the Free Software Foundation
+gives unlimited permision to copy, distribute and modify it."
+
+while test $[#] != 0
+do
+ case $[1] in
+ --version | --v* | -V )
+ echo "$lt_cl_version"; exit 0 ;;
+ --help | --h* | -h )
+ echo "$lt_cl_help"; exit 0 ;;
+ --debug | --d* | -d )
+ debug=: ;;
+ --quiet | --q* | --silent | --s* | -q )
+ lt_cl_silent=: ;;
+
+ -*) AC_MSG_ERROR([unrecognized option: $[1]
+Try \`$[0] --help' for more information.]) ;;
+
+ *) AC_MSG_ERROR([unrecognized argument: $[1]
+Try \`$[0] --help' for more information.]) ;;
+ esac
+ shift
+done
+
+if $lt_cl_silent; then
+ exec AS_MESSAGE_FD>/dev/null
+fi
+_LTEOF
+
+cat >>"$CONFIG_LT" <<_LTEOF
+_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
+_LTEOF
+
+cat >>"$CONFIG_LT" <<\_LTEOF
+AC_MSG_NOTICE([creating $ofile])
+_LT_OUTPUT_LIBTOOL_COMMANDS
+AS_EXIT(0)
+_LTEOF
+chmod +x "$CONFIG_LT"
+
+# configure is writing to config.log, but config.lt does its own redirection,
+# appending to config.log, which fails on DOS, as config.log is still kept
+# open by configure. Here we exec the FD to /dev/null, effectively closing
+# config.log, so it can be properly (re)opened and appended to by config.lt.
+if test "$no_create" != yes; then
+ lt_cl_success=:
+ test "$silent" = yes &&
+ lt_config_lt_args="$lt_config_lt_args --quiet"
+ exec AS_MESSAGE_LOG_FD>/dev/null
+ $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
+ exec AS_MESSAGE_LOG_FD>>config.log
+ $lt_cl_success || AS_EXIT(1)
+fi
+])# LT_OUTPUT
+
+
+# _LT_CONFIG(TAG)
+# ---------------
+# If TAG is the built-in tag, create an initial libtool script with a
+# default configuration from the untagged config vars. Otherwise add code
+# to config.status for appending the configuration named by TAG from the
+# matching tagged config vars.
+m4_defun([_LT_CONFIG],
+[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+_LT_CONFIG_SAVE_COMMANDS([
+ m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
+ m4_if(_LT_TAG, [C], [
+ # See if we are running on zsh, and set the options which allow our
+ # commands through without removal of \ escapes.
+ if test -n "${ZSH_VERSION+set}" ; then
+ setopt NO_GLOB_SUBST
+ fi
+
+ cfgfile="${ofile}T"
+ trap "$RM \"$cfgfile\"; exit 1" 1 2 15
+ $RM "$cfgfile"
+
+ cat <<_LT_EOF >> "$cfgfile"
+#! $SHELL
+
+# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
+# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
+# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
+# NOTE: Changes made to this file will be lost: look at ltmain.sh.
+#
+_LT_COPYING
+_LT_LIBTOOL_TAGS
+
+# ### BEGIN LIBTOOL CONFIG
+_LT_LIBTOOL_CONFIG_VARS
+_LT_LIBTOOL_TAG_VARS
+# ### END LIBTOOL CONFIG
+
+_LT_EOF
+
+ case $host_os in
+ aix3*)
+ cat <<\_LT_EOF >> "$cfgfile"
+# AIX sometimes has problems with the GCC collect2 program. For some
+# reason, if we set the COLLECT_NAMES environment variable, the problems
+# vanish in a puff of smoke.
+if test "X${COLLECT_NAMES+set}" != Xset; then
+ COLLECT_NAMES=
+ export COLLECT_NAMES
+fi
+_LT_EOF
+ ;;
+ esac
+
+ _LT_PROG_LTMAIN
+
+ # We use sed instead of cat because bash on DJGPP gets confused if
+ # if finds mixed CR/LF and LF-only lines. Since sed operates in
+ # text mode, it properly converts lines to CR/LF. This bash problem
+ # is reportedly fixed, but why not run on old versions too?
+ sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
+ || (rm -f "$cfgfile"; exit 1)
+
+ _LT_PROG_XSI_SHELLFNS
+
+ sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
+ || (rm -f "$cfgfile"; exit 1)
+
+ mv -f "$cfgfile" "$ofile" ||
+ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
+ chmod +x "$ofile"
+],
+[cat <<_LT_EOF >> "$ofile"
+
+dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
+dnl in a comment (ie after a #).
+# ### BEGIN LIBTOOL TAG CONFIG: $1
+_LT_LIBTOOL_TAG_VARS(_LT_TAG)
+# ### END LIBTOOL TAG CONFIG: $1
+_LT_EOF
+])dnl /m4_if
+],
+[m4_if([$1], [], [
+ PACKAGE='$PACKAGE'
+ VERSION='$VERSION'
+ TIMESTAMP='$TIMESTAMP'
+ RM='$RM'
+ ofile='$ofile'], [])
+])dnl /_LT_CONFIG_SAVE_COMMANDS
+])# _LT_CONFIG
+
+
+# LT_SUPPORTED_TAG(TAG)
+# ---------------------
+# Trace this macro to discover what tags are supported by the libtool
+# --tag option, using:
+# autoconf --trace 'LT_SUPPORTED_TAG:$1'
+AC_DEFUN([LT_SUPPORTED_TAG], [])
+
+
+# C support is built-in for now
+m4_define([_LT_LANG_C_enabled], [])
+m4_define([_LT_TAGS], [])
+
+
+# LT_LANG(LANG)
+# -------------
+# Enable libtool support for the given language if not already enabled.
+AC_DEFUN([LT_LANG],
+[AC_BEFORE([$0], [LT_OUTPUT])dnl
+m4_case([$1],
+ [C], [_LT_LANG(C)],
+ [C++], [_LT_LANG(CXX)],
+ [Java], [_LT_LANG(GCJ)],
+ [Fortran 77], [_LT_LANG(F77)],
+ [Fortran], [_LT_LANG(FC)],
+ [Windows Resource], [_LT_LANG(RC)],
+ [m4_ifdef([_LT_LANG_]$1[_CONFIG],
+ [_LT_LANG($1)],
+ [m4_fatal([$0: unsupported language: "$1"])])])dnl
+])# LT_LANG
+
+
+# _LT_LANG(LANGNAME)
+# ------------------
+m4_defun([_LT_LANG],
+[m4_ifdef([_LT_LANG_]$1[_enabled], [],
+ [LT_SUPPORTED_TAG([$1])dnl
+ m4_append([_LT_TAGS], [$1 ])dnl
+ m4_define([_LT_LANG_]$1[_enabled], [])dnl
+ _LT_LANG_$1_CONFIG($1)])dnl
+])# _LT_LANG
+
+
+# _LT_LANG_DEFAULT_CONFIG
+# -----------------------
+m4_defun([_LT_LANG_DEFAULT_CONFIG],
+[AC_PROVIDE_IFELSE([AC_PROG_CXX],
+ [LT_LANG(CXX)],
+ [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
+
+AC_PROVIDE_IFELSE([AC_PROG_F77],
+ [LT_LANG(F77)],
+ [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
+
+AC_PROVIDE_IFELSE([AC_PROG_FC],
+ [LT_LANG(FC)],
+ [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
+
+dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
+dnl pulling things in needlessly.
+AC_PROVIDE_IFELSE([AC_PROG_GCJ],
+ [LT_LANG(GCJ)],
+ [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
+ [LT_LANG(GCJ)],
+ [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
+ [LT_LANG(GCJ)],
+ [m4_ifdef([AC_PROG_GCJ],
+ [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
+ m4_ifdef([A][M_PROG_GCJ],
+ [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
+ m4_ifdef([LT_PROG_GCJ],
+ [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
+
+AC_PROVIDE_IFELSE([LT_PROG_RC],
+ [LT_LANG(RC)],
+ [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
+])# _LT_LANG_DEFAULT_CONFIG
+
+# Obsolete macros:
+AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
+AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
+AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
+AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
+dnl AC_DEFUN([AC_LIBTOOL_F77], [])
+dnl AC_DEFUN([AC_LIBTOOL_FC], [])
+dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
+
+
+# _LT_TAG_COMPILER
+# ----------------
+m4_defun([_LT_TAG_COMPILER],
+[AC_REQUIRE([AC_PROG_CC])dnl
+
+_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
+_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
+_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
+_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
+
+# If no C compiler was specified, use CC.
+LTCC=${LTCC-"$CC"}
+
+# If no C compiler flags were specified, use CFLAGS.
+LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
+
+# Allow CC to be a program name with arguments.
+compiler=$CC
+])# _LT_TAG_COMPILER
+
+
+# _LT_COMPILER_BOILERPLATE
+# ------------------------
+# Check for compiler boilerplate output or warnings with
+# the simple compiler test code.
+m4_defun([_LT_COMPILER_BOILERPLATE],
+[m4_require([_LT_DECL_SED])dnl
+ac_outfile=conftest.$ac_objext
+echo "$lt_simple_compile_test_code" >conftest.$ac_ext
+eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
+_lt_compiler_boilerplate=`cat conftest.err`
+$RM conftest*
+])# _LT_COMPILER_BOILERPLATE
+
+
+# _LT_LINKER_BOILERPLATE
+# ----------------------
+# Check for linker boilerplate output or warnings with
+# the simple link test code.
+m4_defun([_LT_LINKER_BOILERPLATE],
+[m4_require([_LT_DECL_SED])dnl
+ac_outfile=conftest.$ac_objext
+echo "$lt_simple_link_test_code" >conftest.$ac_ext
+eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
+_lt_linker_boilerplate=`cat conftest.err`
+$RM -r conftest*
+])# _LT_LINKER_BOILERPLATE
+
+# _LT_REQUIRED_DARWIN_CHECKS
+# -------------------------
+m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
+ case $host_os in
+ rhapsody* | darwin*)
+ AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
+ AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
+ AC_CHECK_TOOL([LIPO], [lipo], [:])
+ AC_CHECK_TOOL([OTOOL], [otool], [:])
+ AC_CHECK_TOOL([OTOOL64], [otool64], [:])
+ _LT_DECL([], [DSYMUTIL], [1],
+ [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
+ _LT_DECL([], [NMEDIT], [1],
+ [Tool to change global to local symbols on Mac OS X])
+ _LT_DECL([], [LIPO], [1],
+ [Tool to manipulate fat objects and archives on Mac OS X])
+ _LT_DECL([], [OTOOL], [1],
+ [ldd/readelf like tool for Mach-O binaries on Mac OS X])
+ _LT_DECL([], [OTOOL64], [1],
+ [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
+
+ AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
+ [lt_cv_apple_cc_single_mod=no
+ if test -z "${LT_MULTI_MODULE}"; then
+ # By default we will add the -single_module flag. You can override
+ # by either setting the environment variable LT_MULTI_MODULE
+ # non-empty at configure time, or by adding -multi_module to the
+ # link flags.
+ rm -rf libconftest.dylib*
+ echo "int foo(void){return 1;}" > conftest.c
+ echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
+-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
+ $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
+ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
+ _lt_result=$?
+ if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
+ lt_cv_apple_cc_single_mod=yes
+ else
+ cat conftest.err >&AS_MESSAGE_LOG_FD
+ fi
+ rm -rf libconftest.dylib*
+ rm -f conftest.*
+ fi])
+ AC_CACHE_CHECK([for -exported_symbols_list linker flag],
+ [lt_cv_ld_exported_symbols_list],
+ [lt_cv_ld_exported_symbols_list=no
+ save_LDFLAGS=$LDFLAGS
+ echo "_main" > conftest.sym
+ LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
+ [lt_cv_ld_exported_symbols_list=yes],
+ [lt_cv_ld_exported_symbols_list=no])
+ LDFLAGS="$save_LDFLAGS"
+ ])
+ case $host_os in
+ rhapsody* | darwin1.[[012]])
+ _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
+ darwin1.*)
+ _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
+ darwin*) # darwin 5.x on
+ # if running on 10.5 or later, the deployment target defaults
+ # to the OS version, if on x86, and 10.4, the deployment
+ # target defaults to 10.4. Don't you love it?
+ case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
+ 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
+ _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
+ 10.[[012]]*)
+ _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
+ 10.*)
+ _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
+ esac
+ ;;
+ esac
+ if test "$lt_cv_apple_cc_single_mod" = "yes"; then
+ _lt_dar_single_mod='$single_module'
+ fi
+ if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
+ _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
+ else
+ _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
+ fi
+ if test "$DSYMUTIL" != ":"; then
+ _lt_dsymutil='~$DSYMUTIL $lib || :'
+ else
+ _lt_dsymutil=
+ fi
+ ;;
+ esac
+])
+
+
+# _LT_DARWIN_LINKER_FEATURES
+# --------------------------
+# Checks for linker and compiler features on darwin
+m4_defun([_LT_DARWIN_LINKER_FEATURES],
+[
+ m4_require([_LT_REQUIRED_DARWIN_CHECKS])
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=no
+ _LT_TAGVAR(hardcode_direct, $1)=no
+ _LT_TAGVAR(hardcode_automatic, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
+ _LT_TAGVAR(whole_archive_flag_spec, $1)=''
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
+ _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
+ case $cc_basename in
+ ifort*) _lt_dar_can_shared=yes ;;
+ *) _lt_dar_can_shared=$GCC ;;
+ esac
+ if test "$_lt_dar_can_shared" = "yes"; then
+ output_verbose_link_cmd=echo
+ _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
+ _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
+ _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
+ _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
+ m4_if([$1], [CXX],
+[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
+ _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
+ _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
+ fi
+],[])
+ else
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+])
+
+# _LT_SYS_MODULE_PATH_AIX
+# -----------------------
+# Links a minimal program and checks the executable
+# for the system default hardcoded library path. In most cases,
+# this is /usr/lib:/lib, but when the MPI compilers are used
+# the location of the communication and MPI libs are included too.
+# If we don't find anything, use the default library path according
+# to the aix ld manual.
+m4_defun([_LT_SYS_MODULE_PATH_AIX],
+[m4_require([_LT_DECL_SED])dnl
+AC_LINK_IFELSE(AC_LANG_PROGRAM,[
+lt_aix_libpath_sed='
+ /Import File Strings/,/^$/ {
+ /^0/ {
+ s/^0 *\(.*\)$/\1/
+ p
+ }
+ }'
+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+# Check for a 64-bit object if we didn't find anything.
+if test -z "$aix_libpath"; then
+ aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+fi],[])
+if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
+])# _LT_SYS_MODULE_PATH_AIX
+
+
+# _LT_SHELL_INIT(ARG)
+# -------------------
+m4_define([_LT_SHELL_INIT],
+[ifdef([AC_DIVERSION_NOTICE],
+ [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
+ [AC_DIVERT_PUSH(NOTICE)])
+$1
+AC_DIVERT_POP
+])# _LT_SHELL_INIT
+
+
+# _LT_PROG_ECHO_BACKSLASH
+# -----------------------
+# Add some code to the start of the generated configure script which
+# will find an echo command which doesn't interpret backslashes.
+m4_defun([_LT_PROG_ECHO_BACKSLASH],
+[_LT_SHELL_INIT([
+# Check that we are running under the correct shell.
+SHELL=${CONFIG_SHELL-/bin/sh}
+
+case X$lt_ECHO in
+X*--fallback-echo)
+ # Remove one level of quotation (which was required for Make).
+ ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
+ ;;
+esac
+
+ECHO=${lt_ECHO-echo}
+if test "X[$]1" = X--no-reexec; then
+ # Discard the --no-reexec flag, and continue.
+ shift
+elif test "X[$]1" = X--fallback-echo; then
+ # Avoid inline document here, it may be left over
+ :
+elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
+ # Yippee, $ECHO works!
+ :
+else
+ # Restart under the correct shell.
+ exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
+fi
+
+if test "X[$]1" = X--fallback-echo; then
+ # used as fallback echo
+ shift
+ cat <<_LT_EOF
+[$]*
+_LT_EOF
+ exit 0
+fi
+
+# The HP-UX ksh and POSIX shell print the target directory to stdout
+# if CDPATH is set.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+if test -z "$lt_ECHO"; then
+ if test "X${echo_test_string+set}" != Xset; then
+ # find a string as large as possible, as long as the shell can cope with it
+ for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
+ # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
+ if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
+ { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
+ then
+ break
+ fi
+ done
+ fi
+
+ if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
+ echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
+ test "X$echo_testing_string" = "X$echo_test_string"; then
+ :
+ else
+ # The Solaris, AIX, and Digital Unix default echo programs unquote
+ # backslashes. This makes it impossible to quote backslashes using
+ # echo "$something" | sed 's/\\/\\\\/g'
+ #
+ # So, first we look for a working echo in the user's PATH.
+
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+ for dir in $PATH /usr/ucb; do
+ IFS="$lt_save_ifs"
+ if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
+ test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
+ echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
+ test "X$echo_testing_string" = "X$echo_test_string"; then
+ ECHO="$dir/echo"
+ break
+ fi
+ done
+ IFS="$lt_save_ifs"
+
+ if test "X$ECHO" = Xecho; then
+ # We didn't find a better echo, so look for alternatives.
+ if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
+ echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
+ test "X$echo_testing_string" = "X$echo_test_string"; then
+ # This shell has a builtin print -r that does the trick.
+ ECHO='print -r'
+ elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
+ test "X$CONFIG_SHELL" != X/bin/ksh; then
+ # If we have ksh, try running configure again with it.
+ ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
+ export ORIGINAL_CONFIG_SHELL
+ CONFIG_SHELL=/bin/ksh
+ export CONFIG_SHELL
+ exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
+ else
+ # Try using printf.
+ ECHO='printf %s\n'
+ if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
+ echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
+ test "X$echo_testing_string" = "X$echo_test_string"; then
+ # Cool, printf works
+ :
+ elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
+ test "X$echo_testing_string" = 'X\t' &&
+ echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
+ test "X$echo_testing_string" = "X$echo_test_string"; then
+ CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
+ export CONFIG_SHELL
+ SHELL="$CONFIG_SHELL"
+ export SHELL
+ ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
+ elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
+ test "X$echo_testing_string" = 'X\t' &&
+ echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
+ test "X$echo_testing_string" = "X$echo_test_string"; then
+ ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
+ else
+ # maybe with a smaller string...
+ prev=:
+
+ for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
+ if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
+ then
+ break
+ fi
+ prev="$cmd"
+ done
+
+ if test "$prev" != 'sed 50q "[$]0"'; then
+ echo_test_string=`eval $prev`
+ export echo_test_string
+ exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
+ else
+ # Oops. We lost completely, so just stick with echo.
+ ECHO=echo
+ fi
+ fi
+ fi
+ fi
+ fi
+fi
+
+# Copy echo and quote the copy suitably for passing to libtool from
+# the Makefile, instead of quoting the original, which is used later.
+lt_ECHO=$ECHO
+if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
+ lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
+fi
+
+AC_SUBST(lt_ECHO)
+])
+_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
+_LT_DECL([], [ECHO], [1],
+ [An echo program that does not interpret backslashes])
+])# _LT_PROG_ECHO_BACKSLASH
+
+
+# _LT_ENABLE_LOCK
+# ---------------
+m4_defun([_LT_ENABLE_LOCK],
+[AC_ARG_ENABLE([libtool-lock],
+ [AS_HELP_STRING([--disable-libtool-lock],
+ [avoid locking (might break parallel builds)])])
+test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
+
+# Some flags need to be propagated to the compiler or linker for good
+# libtool support.
+case $host in
+ia64-*-hpux*)
+ # Find out which ABI we are using.
+ echo 'int i;' > conftest.$ac_ext
+ if AC_TRY_EVAL(ac_compile); then
+ case `/usr/bin/file conftest.$ac_objext` in
+ *ELF-32*)
+ HPUX_IA64_MODE="32"
+ ;;
+ *ELF-64*)
+ HPUX_IA64_MODE="64"
+ ;;
+ esac
+ fi
+ rm -rf conftest*
+ ;;
+*-*-irix6*)
+ # Find out which ABI we are using.
+ echo '[#]line __oline__ "configure"' > conftest.$ac_ext
+ if AC_TRY_EVAL(ac_compile); then
+ if test "$lt_cv_prog_gnu_ld" = yes; then
+ case `/usr/bin/file conftest.$ac_objext` in
+ *32-bit*)
+ LD="${LD-ld} -melf32bsmip"
+ ;;
+ *N32*)
+ LD="${LD-ld} -melf32bmipn32"
+ ;;
+ *64-bit*)
+ LD="${LD-ld} -melf64bmip"
+ ;;
+ esac
+ else
+ case `/usr/bin/file conftest.$ac_objext` in
+ *32-bit*)
+ LD="${LD-ld} -32"
+ ;;
+ *N32*)
+ LD="${LD-ld} -n32"
+ ;;
+ *64-bit*)
+ LD="${LD-ld} -64"
+ ;;
+ esac
+ fi
+ fi
+ rm -rf conftest*
+ ;;
+
+x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
+s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
+ # Find out which ABI we are using.
+ echo 'int i;' > conftest.$ac_ext
+ if AC_TRY_EVAL(ac_compile); then
+ case `/usr/bin/file conftest.o` in
+ *32-bit*)
+ case $host in
+ x86_64-*kfreebsd*-gnu)
+ LD="${LD-ld} -m elf_i386_fbsd"
+ ;;
+ x86_64-*linux*)
+ LD="${LD-ld} -m elf_i386"
+ ;;
+ ppc64-*linux*|powerpc64-*linux*)
+ LD="${LD-ld} -m elf32ppclinux"
+ ;;
+ s390x-*linux*)
+ LD="${LD-ld} -m elf_s390"
+ ;;
+ sparc64-*linux*)
+ LD="${LD-ld} -m elf32_sparc"
+ ;;
+ esac
+ ;;
+ *64-bit*)
+ case $host in
+ x86_64-*kfreebsd*-gnu)
+ LD="${LD-ld} -m elf_x86_64_fbsd"
+ ;;
+ x86_64-*linux*)
+ LD="${LD-ld} -m elf_x86_64"
+ ;;
+ ppc*-*linux*|powerpc*-*linux*)
+ LD="${LD-ld} -m elf64ppc"
+ ;;
+ s390*-*linux*|s390*-*tpf*)
+ LD="${LD-ld} -m elf64_s390"
+ ;;
+ sparc*-*linux*)
+ LD="${LD-ld} -m elf64_sparc"
+ ;;
+ esac
+ ;;
+ esac
+ fi
+ rm -rf conftest*
+ ;;
+
+*-*-sco3.2v5*)
+ # On SCO OpenServer 5, we need -belf to get full-featured binaries.
+ SAVE_CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS -belf"
+ AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
+ [AC_LANG_PUSH(C)
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
+ AC_LANG_POP])
+ if test x"$lt_cv_cc_needs_belf" != x"yes"; then
+ # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
+ CFLAGS="$SAVE_CFLAGS"
+ fi
+ ;;
+sparc*-*solaris*)
+ # Find out which ABI we are using.
+ echo 'int i;' > conftest.$ac_ext
+ if AC_TRY_EVAL(ac_compile); then
+ case `/usr/bin/file conftest.o` in
+ *64-bit*)
+ case $lt_cv_prog_gnu_ld in
+ yes*) LD="${LD-ld} -m elf64_sparc" ;;
+ *)
+ if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
+ LD="${LD-ld} -64"
+ fi
+ ;;
+ esac
+ ;;
+ esac
+ fi
+ rm -rf conftest*
+ ;;
+esac
+
+need_locks="$enable_libtool_lock"
+])# _LT_ENABLE_LOCK
+
+
+# _LT_CMD_OLD_ARCHIVE
+# -------------------
+m4_defun([_LT_CMD_OLD_ARCHIVE],
+[AC_CHECK_TOOL(AR, ar, false)
+test -z "$AR" && AR=ar
+test -z "$AR_FLAGS" && AR_FLAGS=cru
+_LT_DECL([], [AR], [1], [The archiver])
+_LT_DECL([], [AR_FLAGS], [1])
+
+AC_CHECK_TOOL(STRIP, strip, :)
+test -z "$STRIP" && STRIP=:
+_LT_DECL([], [STRIP], [1], [A symbol stripping program])
+
+AC_CHECK_TOOL(RANLIB, ranlib, :)
+test -z "$RANLIB" && RANLIB=:
+_LT_DECL([], [RANLIB], [1],
+ [Commands used to install an old-style archive])
+
+# Determine commands to create old-style static archives.
+old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
+old_postinstall_cmds='chmod 644 $oldlib'
+old_postuninstall_cmds=
+
+if test -n "$RANLIB"; then
+ case $host_os in
+ openbsd*)
+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
+ ;;
+ *)
+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
+ ;;
+ esac
+ old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
+fi
+_LT_DECL([], [old_postinstall_cmds], [2])
+_LT_DECL([], [old_postuninstall_cmds], [2])
+_LT_TAGDECL([], [old_archive_cmds], [2],
+ [Commands used to build an old-style archive])
+])# _LT_CMD_OLD_ARCHIVE
+
+
+# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
+# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
+# ----------------------------------------------------------------
+# Check whether the given compiler option works
+AC_DEFUN([_LT_COMPILER_OPTION],
+[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+m4_require([_LT_DECL_SED])dnl
+AC_CACHE_CHECK([$1], [$2],
+ [$2=no
+ m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+ lt_compiler_flag="$3"
+ # Insert the option either (1) after the last *FLAGS variable, or
+ # (2) before a word containing "conftest.", or (3) at the end.
+ # Note that $ac_compile itself does not contain backslashes and begins
+ # with a dollar sign (not a hyphen), so the echo should work correctly.
+ # The option is referenced via a variable to avoid confusing sed.
+ lt_compile=`echo "$ac_compile" | $SED \
+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
+ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
+ -e 's:$: $lt_compiler_flag:'`
+ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
+ (eval "$lt_compile" 2>conftest.err)
+ ac_status=$?
+ cat conftest.err >&AS_MESSAGE_LOG_FD
+ echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
+ if (exit $ac_status) && test -s "$ac_outfile"; then
+ # The compiler can only warn and ignore the option if not recognized
+ # So say no if there are warnings other than the usual output.
+ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
+ if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
+ $2=yes
+ fi
+ fi
+ $RM conftest*
+])
+
+if test x"[$]$2" = xyes; then
+ m4_if([$5], , :, [$5])
+else
+ m4_if([$6], , :, [$6])
+fi
+])# _LT_COMPILER_OPTION
+
+# Old name:
+AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
+
+
+# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
+# [ACTION-SUCCESS], [ACTION-FAILURE])
+# ----------------------------------------------------
+# Check whether the given linker option works
+AC_DEFUN([_LT_LINKER_OPTION],
+[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+m4_require([_LT_DECL_SED])dnl
+AC_CACHE_CHECK([$1], [$2],
+ [$2=no
+ save_LDFLAGS="$LDFLAGS"
+ LDFLAGS="$LDFLAGS $3"
+ echo "$lt_simple_link_test_code" > conftest.$ac_ext
+ if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
+ # The linker can only warn and ignore the option if not recognized
+ # So say no if there are warnings
+ if test -s conftest.err; then
+ # Append any errors to the config.log.
+ cat conftest.err 1>&AS_MESSAGE_LOG_FD
+ $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
+ if diff conftest.exp conftest.er2 >/dev/null; then
+ $2=yes
+ fi
+ else
+ $2=yes
+ fi
+ fi
+ $RM -r conftest*
+ LDFLAGS="$save_LDFLAGS"
+])
+
+if test x"[$]$2" = xyes; then
+ m4_if([$4], , :, [$4])
+else
+ m4_if([$5], , :, [$5])
+fi
+])# _LT_LINKER_OPTION
+
+# Old name:
+AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
+
+
+# LT_CMD_MAX_LEN
+#---------------
+AC_DEFUN([LT_CMD_MAX_LEN],
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
+# find the maximum length of command line arguments
+AC_MSG_CHECKING([the maximum length of command line arguments])
+AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
+ i=0
+ teststring="ABCD"
+
+ case $build_os in
+ msdosdjgpp*)
+ # On DJGPP, this test can blow up pretty badly due to problems in libc
+ # (any single argument exceeding 2000 bytes causes a buffer overrun
+ # during glob expansion). Even if it were fixed, the result of this
+ # check would be larger than it should be.
+ lt_cv_sys_max_cmd_len=12288; # 12K is about right
+ ;;
+
+ gnu*)
+ # Under GNU Hurd, this test is not required because there is
+ # no limit to the length of command line arguments.
+ # Libtool will interpret -1 as no limit whatsoever
+ lt_cv_sys_max_cmd_len=-1;
+ ;;
+
+ cygwin* | mingw* | cegcc*)
+ # On Win9x/ME, this test blows up -- it succeeds, but takes
+ # about 5 minutes as the teststring grows exponentially.
+ # Worse, since 9x/ME are not pre-emptively multitasking,
+ # you end up with a "frozen" computer, even though with patience
+ # the test eventually succeeds (with a max line length of 256k).
+ # Instead, let's just punt: use the minimum linelength reported by
+ # all of the supported platforms: 8192 (on NT/2K/XP).
+ lt_cv_sys_max_cmd_len=8192;
+ ;;
+
+ amigaos*)
+ # On AmigaOS with pdksh, this test takes hours, literally.
+ # So we just punt and use a minimum line length of 8192.
+ lt_cv_sys_max_cmd_len=8192;
+ ;;
+
+ netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
+ # This has been around since 386BSD, at least. Likely further.
+ if test -x /sbin/sysctl; then
+ lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
+ elif test -x /usr/sbin/sysctl; then
+ lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
+ else
+ lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
+ fi
+ # And add a safety zone
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
+ ;;
+
+ interix*)
+ # We know the value 262144 and hardcode it with a safety zone (like BSD)
+ lt_cv_sys_max_cmd_len=196608
+ ;;
+
+ osf*)
+ # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
+ # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
+ # nice to cause kernel panics so lets avoid the loop below.
+ # First set a reasonable default.
+ lt_cv_sys_max_cmd_len=16384
+ #
+ if test -x /sbin/sysconfig; then
+ case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
+ *1*) lt_cv_sys_max_cmd_len=-1 ;;
+ esac
+ fi
+ ;;
+ sco3.2v5*)
+ lt_cv_sys_max_cmd_len=102400
+ ;;
+ sysv5* | sco5v6* | sysv4.2uw2*)
+ kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
+ if test -n "$kargmax"; then
+ lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
+ else
+ lt_cv_sys_max_cmd_len=32768
+ fi
+ ;;
+ *)
+ lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
+ if test -n "$lt_cv_sys_max_cmd_len"; then
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
+ else
+ # Make teststring a little bigger before we do anything with it.
+ # a 1K string should be a reasonable start.
+ for i in 1 2 3 4 5 6 7 8 ; do
+ teststring=$teststring$teststring
+ done
+ SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
+ # If test is not a shell built-in, we'll probably end up computing a
+ # maximum length that is only half of the actual maximum length, but
+ # we can't tell.
+ while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
+ = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
+ test $i != 17 # 1/2 MB should be enough
+ do
+ i=`expr $i + 1`
+ teststring=$teststring$teststring
+ done
+ # Only check the string length outside the loop.
+ lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
+ teststring=
+ # Add a significant safety factor because C++ compilers can tack on
+ # massive amounts of additional arguments before passing them to the
+ # linker. It appears as though 1/2 is a usable value.
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
+ fi
+ ;;
+ esac
+])
+if test -n $lt_cv_sys_max_cmd_len ; then
+ AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
+else
+ AC_MSG_RESULT(none)
+fi
+max_cmd_len=$lt_cv_sys_max_cmd_len
+_LT_DECL([], [max_cmd_len], [0],
+ [What is the maximum length of a command?])
+])# LT_CMD_MAX_LEN
+
+# Old name:
+AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
+
+
+# _LT_HEADER_DLFCN
+# ----------------
+m4_defun([_LT_HEADER_DLFCN],
+[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
+])# _LT_HEADER_DLFCN
+
+
+# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
+# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
+# ----------------------------------------------------------------
+m4_defun([_LT_TRY_DLOPEN_SELF],
+[m4_require([_LT_HEADER_DLFCN])dnl
+if test "$cross_compiling" = yes; then :
+ [$4]
+else
+ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
+ lt_status=$lt_dlunknown
+ cat > conftest.$ac_ext <<_LT_EOF
+[#line __oline__ "configure"
+#include "confdefs.h"
+
+#if HAVE_DLFCN_H
+#include <dlfcn.h>
+#endif
+
+#include <stdio.h>
+
+#ifdef RTLD_GLOBAL
+# define LT_DLGLOBAL RTLD_GLOBAL
+#else
+# ifdef DL_GLOBAL
+# define LT_DLGLOBAL DL_GLOBAL
+# else
+# define LT_DLGLOBAL 0
+# endif
+#endif
+
+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
+ find out it does not work in some platform. */
+#ifndef LT_DLLAZY_OR_NOW
+# ifdef RTLD_LAZY
+# define LT_DLLAZY_OR_NOW RTLD_LAZY
+# else
+# ifdef DL_LAZY
+# define LT_DLLAZY_OR_NOW DL_LAZY
+# else
+# ifdef RTLD_NOW
+# define LT_DLLAZY_OR_NOW RTLD_NOW
+# else
+# ifdef DL_NOW
+# define LT_DLLAZY_OR_NOW DL_NOW
+# else
+# define LT_DLLAZY_OR_NOW 0
+# endif
+# endif
+# endif
+# endif
+#endif
+
+void fnord() { int i=42;}
+int main ()
+{
+ void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
+ int status = $lt_dlunknown;
+
+ if (self)
+ {
+ if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
+ else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
+ /* dlclose (self); */
+ }
+ else
+ puts (dlerror ());
+
+ return status;
+}]
+_LT_EOF
+ if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
+ (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
+ lt_status=$?
+ case x$lt_status in
+ x$lt_dlno_uscore) $1 ;;
+ x$lt_dlneed_uscore) $2 ;;
+ x$lt_dlunknown|x*) $3 ;;
+ esac
+ else :
+ # compilation failed
+ $3
+ fi
+fi
+rm -fr conftest*
+])# _LT_TRY_DLOPEN_SELF
+
+
+# LT_SYS_DLOPEN_SELF
+# ------------------
+AC_DEFUN([LT_SYS_DLOPEN_SELF],
+[m4_require([_LT_HEADER_DLFCN])dnl
+if test "x$enable_dlopen" != xyes; then
+ enable_dlopen=unknown
+ enable_dlopen_self=unknown
+ enable_dlopen_self_static=unknown
+else
+ lt_cv_dlopen=no
+ lt_cv_dlopen_libs=
+
+ case $host_os in
+ beos*)
+ lt_cv_dlopen="load_add_on"
+ lt_cv_dlopen_libs=
+ lt_cv_dlopen_self=yes
+ ;;
+
+ mingw* | pw32* | cegcc*)
+ lt_cv_dlopen="LoadLibrary"
+ lt_cv_dlopen_libs=
+ ;;
+
+ cygwin*)
+ lt_cv_dlopen="dlopen"
+ lt_cv_dlopen_libs=
+ ;;
+
+ darwin*)
+ # if libdl is installed we need to link against it
+ AC_CHECK_LIB([dl], [dlopen],
+ [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
+ lt_cv_dlopen="dyld"
+ lt_cv_dlopen_libs=
+ lt_cv_dlopen_self=yes
+ ])
+ ;;
+
+ *)
+ AC_CHECK_FUNC([shl_load],
+ [lt_cv_dlopen="shl_load"],
+ [AC_CHECK_LIB([dld], [shl_load],
+ [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
+ [AC_CHECK_FUNC([dlopen],
+ [lt_cv_dlopen="dlopen"],
+ [AC_CHECK_LIB([dl], [dlopen],
+ [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
+ [AC_CHECK_LIB([svld], [dlopen],
+ [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
+ [AC_CHECK_LIB([dld], [dld_link],
+ [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
+ ])
+ ])
+ ])
+ ])
+ ])
+ ;;
+ esac
+
+ if test "x$lt_cv_dlopen" != xno; then
+ enable_dlopen=yes
+ else
+ enable_dlopen=no
+ fi
+
+ case $lt_cv_dlopen in
+ dlopen)
+ save_CPPFLAGS="$CPPFLAGS"
+ test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
+
+ save_LDFLAGS="$LDFLAGS"
+ wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
+
+ save_LIBS="$LIBS"
+ LIBS="$lt_cv_dlopen_libs $LIBS"
+
+ AC_CACHE_CHECK([whether a program can dlopen itself],
+ lt_cv_dlopen_self, [dnl
+ _LT_TRY_DLOPEN_SELF(
+ lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
+ lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
+ ])
+
+ if test "x$lt_cv_dlopen_self" = xyes; then
+ wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
+ AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
+ lt_cv_dlopen_self_static, [dnl
+ _LT_TRY_DLOPEN_SELF(
+ lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
+ lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
+ ])
+ fi
+
+ CPPFLAGS="$save_CPPFLAGS"
+ LDFLAGS="$save_LDFLAGS"
+ LIBS="$save_LIBS"
+ ;;
+ esac
+
+ case $lt_cv_dlopen_self in
+ yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
+ *) enable_dlopen_self=unknown ;;
+ esac
+
+ case $lt_cv_dlopen_self_static in
+ yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
+ *) enable_dlopen_self_static=unknown ;;
+ esac
+fi
+_LT_DECL([dlopen_support], [enable_dlopen], [0],
+ [Whether dlopen is supported])
+_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
+ [Whether dlopen of programs is supported])
+_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
+ [Whether dlopen of statically linked programs is supported])
+])# LT_SYS_DLOPEN_SELF
+
+# Old name:
+AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
+
+
+# _LT_COMPILER_C_O([TAGNAME])
+# ---------------------------
+# Check to see if options -c and -o are simultaneously supported by compiler.
+# This macro does not hard code the compiler like AC_PROG_CC_C_O.
+m4_defun([_LT_COMPILER_C_O],
+[m4_require([_LT_DECL_SED])dnl
+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+m4_require([_LT_TAG_COMPILER])dnl
+AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
+ [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
+ [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
+ $RM -r conftest 2>/dev/null
+ mkdir conftest
+ cd conftest
+ mkdir out
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+
+ lt_compiler_flag="-o out/conftest2.$ac_objext"
+ # Insert the option either (1) after the last *FLAGS variable, or
+ # (2) before a word containing "conftest.", or (3) at the end.
+ # Note that $ac_compile itself does not contain backslashes and begins
+ # with a dollar sign (not a hyphen), so the echo should work correctly.
+ lt_compile=`echo "$ac_compile" | $SED \
+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
+ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
+ -e 's:$: $lt_compiler_flag:'`
+ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
+ (eval "$lt_compile" 2>out/conftest.err)
+ ac_status=$?
+ cat out/conftest.err >&AS_MESSAGE_LOG_FD
+ echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
+ if (exit $ac_status) && test -s out/conftest2.$ac_objext
+ then
+ # The compiler can only warn and ignore the option if not recognized
+ # So say no if there are warnings
+ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
+ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
+ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
+ _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
+ fi
+ fi
+ chmod u+w . 2>&AS_MESSAGE_LOG_FD
+ $RM conftest*
+ # SGI C++ compiler will create directory out/ii_files/ for
+ # template instantiation
+ test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
+ $RM out/* && rmdir out
+ cd ..
+ $RM -r conftest
+ $RM conftest*
+])
+_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
+ [Does compiler simultaneously support -c and -o options?])
+])# _LT_COMPILER_C_O
+
+
+# _LT_COMPILER_FILE_LOCKS([TAGNAME])
+# ----------------------------------
+# Check to see if we can do hard links to lock some files if needed
+m4_defun([_LT_COMPILER_FILE_LOCKS],
+[m4_require([_LT_ENABLE_LOCK])dnl
+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+_LT_COMPILER_C_O([$1])
+
+hard_links="nottested"
+if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
+ # do not overwrite the value of need_locks provided by the user
+ AC_MSG_CHECKING([if we can lock with hard links])
+ hard_links=yes
+ $RM conftest*
+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
+ touch conftest.a
+ ln conftest.a conftest.b 2>&5 || hard_links=no
+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
+ AC_MSG_RESULT([$hard_links])
+ if test "$hard_links" = no; then
+ AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
+ need_locks=warn
+ fi
+else
+ need_locks=no
+fi
+_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
+])# _LT_COMPILER_FILE_LOCKS
+
+
+# _LT_CHECK_OBJDIR
+# ----------------
+m4_defun([_LT_CHECK_OBJDIR],
+[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
+[rm -f .libs 2>/dev/null
+mkdir .libs 2>/dev/null
+if test -d .libs; then
+ lt_cv_objdir=.libs
+else
+ # MS-DOS does not allow filenames that begin with a dot.
+ lt_cv_objdir=_libs
+fi
+rmdir .libs 2>/dev/null])
+objdir=$lt_cv_objdir
+_LT_DECL([], [objdir], [0],
+ [The name of the directory that contains temporary libtool files])dnl
+m4_pattern_allow([LT_OBJDIR])dnl
+AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
+ [Define to the sub-directory in which libtool stores uninstalled libraries.])
+])# _LT_CHECK_OBJDIR
+
+
+# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
+# --------------------------------------
+# Check hardcoding attributes.
+m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
+[AC_MSG_CHECKING([how to hardcode library paths into programs])
+_LT_TAGVAR(hardcode_action, $1)=
+if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
+ test -n "$_LT_TAGVAR(runpath_var, $1)" ||
+ test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
+
+ # We can hardcode non-existent directories.
+ if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
+ # If the only mechanism to avoid hardcoding is shlibpath_var, we
+ # have to relink, otherwise we might link with an installed library
+ # when we should be linking with a yet-to-be-installed one
+ ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
+ test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
+ # Linking always hardcodes the temporary library directory.
+ _LT_TAGVAR(hardcode_action, $1)=relink
+ else
+ # We can link without hardcoding, and we can hardcode nonexisting dirs.
+ _LT_TAGVAR(hardcode_action, $1)=immediate
+ fi
+else
+ # We cannot hardcode anything, or else we can only hardcode existing
+ # directories.
+ _LT_TAGVAR(hardcode_action, $1)=unsupported
+fi
+AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
+
+if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
+ test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
+ # Fast installation is not supported
+ enable_fast_install=no
+elif test "$shlibpath_overrides_runpath" = yes ||
+ test "$enable_shared" = no; then
+ # Fast installation is not necessary
+ enable_fast_install=needless
+fi
+_LT_TAGDECL([], [hardcode_action], [0],
+ [How to hardcode a shared library path into an executable])
+])# _LT_LINKER_HARDCODE_LIBPATH
+
+
+# _LT_CMD_STRIPLIB
+# ----------------
+m4_defun([_LT_CMD_STRIPLIB],
+[m4_require([_LT_DECL_EGREP])
+striplib=
+old_striplib=
+AC_MSG_CHECKING([whether stripping libraries is possible])
+if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
+ test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
+ test -z "$striplib" && striplib="$STRIP --strip-unneeded"
+ AC_MSG_RESULT([yes])
+else
+# FIXME - insert some real tests, host_os isn't really good enough
+ case $host_os in
+ darwin*)
+ if test -n "$STRIP" ; then
+ striplib="$STRIP -x"
+ old_striplib="$STRIP -S"
+ AC_MSG_RESULT([yes])
+ else
+ AC_MSG_RESULT([no])
+ fi
+ ;;
+ *)
+ AC_MSG_RESULT([no])
+ ;;
+ esac
+fi
+_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
+_LT_DECL([], [striplib], [1])
+])# _LT_CMD_STRIPLIB
+
+
+# _LT_SYS_DYNAMIC_LINKER([TAG])
+# -----------------------------
+# PORTME Fill in your ld.so characteristics
+m4_defun([_LT_SYS_DYNAMIC_LINKER],
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
+m4_require([_LT_DECL_EGREP])dnl
+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+m4_require([_LT_DECL_OBJDUMP])dnl
+m4_require([_LT_DECL_SED])dnl
+AC_MSG_CHECKING([dynamic linker characteristics])
+m4_if([$1],
+ [], [
+if test "$GCC" = yes; then
+ case $host_os in
+ darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
+ *) lt_awk_arg="/^libraries:/" ;;
+ esac
+ lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
+ if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
+ # if the path contains ";" then we assume it to be the separator
+ # otherwise default to the standard path separator (i.e. ":") - it is
+ # assumed that no part of a normal pathname contains ";" but that should
+ # okay in the real world where ";" in dirpaths is itself problematic.
+ lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
+ else
+ lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
+ fi
+ # Ok, now we have the path, separated by spaces, we can step through it
+ # and add multilib dir if necessary.
+ lt_tmp_lt_search_path_spec=
+ lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
+ for lt_sys_path in $lt_search_path_spec; do
+ if test -d "$lt_sys_path/$lt_multi_os_dir"; then
+ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
+ else
+ test -d "$lt_sys_path" && \
+ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
+ fi
+ done
+ lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
+BEGIN {RS=" "; FS="/|\n";} {
+ lt_foo="";
+ lt_count=0;
+ for (lt_i = NF; lt_i > 0; lt_i--) {
+ if ($lt_i != "" && $lt_i != ".") {
+ if ($lt_i == "..") {
+ lt_count++;
+ } else {
+ if (lt_count == 0) {
+ lt_foo="/" $lt_i lt_foo;
+ } else {
+ lt_count--;
+ }
+ }
+ }
+ }
+ if (lt_foo != "") { lt_freq[[lt_foo]]++; }
+ if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
+}'`
+ sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
+else
+ sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
+fi])
+library_names_spec=
+libname_spec='lib$name'
+soname_spec=
+shrext_cmds=".so"
+postinstall_cmds=
+postuninstall_cmds=
+finish_cmds=
+finish_eval=
+shlibpath_var=
+shlibpath_overrides_runpath=unknown
+version_type=none
+dynamic_linker="$host_os ld.so"
+sys_lib_dlsearch_path_spec="/lib /usr/lib"
+need_lib_prefix=unknown
+hardcode_into_libs=no
+
+# when you set need_version to no, make sure it does not cause -set_version
+# flags to be left without arguments
+need_version=unknown
+
+case $host_os in
+aix3*)
+ version_type=linux
+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
+ shlibpath_var=LIBPATH
+
+ # AIX 3 has no versioning support, so we append a major version to the name.
+ soname_spec='${libname}${release}${shared_ext}$major'
+ ;;
+
+aix[[4-9]]*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ hardcode_into_libs=yes
+ if test "$host_cpu" = ia64; then
+ # AIX 5 supports IA64
+ library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ else
+ # With GCC up to 2.95.x, collect2 would create an import file
+ # for dependence libraries. The import file would start with
+ # the line `#! .'. This would cause the generated library to
+ # depend on `.', always an invalid library. This was fixed in
+ # development snapshots of GCC prior to 3.0.
+ case $host_os in
+ aix4 | aix4.[[01]] | aix4.[[01]].*)
+ if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
+ echo ' yes '
+ echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
+ :
+ else
+ can_build_shared=no
+ fi
+ ;;
+ esac
+ # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
+ # soname into executable. Probably we can add versioning support to
+ # collect2, so additional links can be useful in future.
+ if test "$aix_use_runtimelinking" = yes; then
+ # If using run time linking (on AIX 4.2 or later) use lib<name>.so
+ # instead of lib<name>.a to let people know that these are not
+ # typical AIX shared libraries.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ else
+ # We preserve .a as extension for shared libraries through AIX4.2
+ # and later when we are not doing run time linking.
+ library_names_spec='${libname}${release}.a $libname.a'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ fi
+ shlibpath_var=LIBPATH
+ fi
+ ;;
+
+amigaos*)
+ case $host_cpu in
+ powerpc)
+ # Since July 2007 AmigaOS4 officially supports .so libraries.
+ # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ ;;
+ m68k)
+ library_names_spec='$libname.ixlibrary $libname.a'
+ # Create ${libname}_ixlibrary.a entries in /sys/libs.
+ finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
+ ;;
+ esac
+ ;;
+
+beos*)
+ library_names_spec='${libname}${shared_ext}'
+ dynamic_linker="$host_os ld.so"
+ shlibpath_var=LIBRARY_PATH
+ ;;
+
+bsdi[[45]]*)
+ version_type=linux
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
+ sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
+ # the default ld.so.conf also contains /usr/contrib/lib and
+ # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
+ # libtool to hard-code these into programs
+ ;;
+
+cygwin* | mingw* | pw32* | cegcc*)
+ version_type=windows
+ shrext_cmds=".dll"
+ need_version=no
+ need_lib_prefix=no
+
+ case $GCC,$host_os in
+ yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
+ library_names_spec='$libname.dll.a'
+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
+ postinstall_cmds='base_file=`basename \${file}`~
+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
+ dldir=$destdir/`dirname \$dlpath`~
+ test -d \$dldir || mkdir -p \$dldir~
+ $install_prog $dir/$dlname \$dldir/$dlname~
+ chmod a+x \$dldir/$dlname~
+ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
+ eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
+ fi'
+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
+ dlpath=$dir/\$dldll~
+ $RM \$dlpath'
+ shlibpath_overrides_runpath=yes
+
+ case $host_os in
+ cygwin*)
+ # Cygwin DLLs use 'cyg' prefix rather than 'lib'
+ soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
+ sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
+ ;;
+ mingw* | cegcc*)
+ # MinGW DLLs use traditional 'lib' prefix
+ soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
+ sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
+ if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
+ # It is most probably a Windows format PATH printed by
+ # mingw gcc, but we are running on Cygwin. Gcc prints its search
+ # path with ; separators, and with drive letters. We can handle the
+ # drive letters (cygwin fileutils understands them), so leave them,
+ # especially as we might pass files found there to a mingw objdump,
+ # which wouldn't understand a cygwinified path. Ahh.
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
+ else
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
+ fi
+ ;;
+ pw32*)
+ # pw32 DLLs use 'pw' prefix rather than 'lib'
+ library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
+ ;;
+ esac
+ ;;
+
+ *)
+ library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
+ ;;
+ esac
+ dynamic_linker='Win32 ld.exe'
+ # FIXME: first we should search . and the directory the executable is in
+ shlibpath_var=PATH
+ ;;
+
+darwin* | rhapsody*)
+ dynamic_linker="$host_os dyld"
+ version_type=darwin
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
+ soname_spec='${libname}${release}${major}$shared_ext'
+ shlibpath_overrides_runpath=yes
+ shlibpath_var=DYLD_LIBRARY_PATH
+ shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
+m4_if([$1], [],[
+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
+ sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
+ ;;
+
+dgux*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ ;;
+
+freebsd1*)
+ dynamic_linker=no
+ ;;
+
+freebsd* | dragonfly*)
+ # DragonFly does not have aout. When/if they implement a new
+ # versioning mechanism, adjust this.
+ if test -x /usr/bin/objformat; then
+ objformat=`/usr/bin/objformat`
+ else
+ case $host_os in
+ freebsd[[123]]*) objformat=aout ;;
+ *) objformat=elf ;;
+ esac
+ fi
+ version_type=freebsd-$objformat
+ case $version_type in
+ freebsd-elf*)
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
+ need_version=no
+ need_lib_prefix=no
+ ;;
+ freebsd-*)
+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
+ need_version=yes
+ ;;
+ esac
+ shlibpath_var=LD_LIBRARY_PATH
+ case $host_os in
+ freebsd2*)
+ shlibpath_overrides_runpath=yes
+ ;;
+ freebsd3.[[01]]* | freebsdelf3.[[01]]*)
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ ;;
+ freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
+ freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ ;;
+ *) # from 4.6 on, and DragonFly
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ ;;
+ esac
+ ;;
+
+gnu*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ hardcode_into_libs=yes
+ ;;
+
+hpux9* | hpux10* | hpux11*)
+ # Give a soname corresponding to the major version so that dld.sl refuses to
+ # link against other versions.
+ version_type=sunos
+ need_lib_prefix=no
+ need_version=no
+ case $host_cpu in
+ ia64*)
+ shrext_cmds='.so'
+ hardcode_into_libs=yes
+ dynamic_linker="$host_os dld.so"
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ if test "X$HPUX_IA64_MODE" = X32; then
+ sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
+ else
+ sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
+ fi
+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+ ;;
+ hppa*64*)
+ shrext_cmds='.sl'
+ hardcode_into_libs=yes
+ dynamic_linker="$host_os dld.sl"
+ shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+ ;;
+ *)
+ shrext_cmds='.sl'
+ dynamic_linker="$host_os dld.sl"
+ shlibpath_var=SHLIB_PATH
+ shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ ;;
+ esac
+ # HP-UX runs *really* slowly unless shared libraries are mode 555.
+ postinstall_cmds='chmod 555 $lib'
+ ;;
+
+interix[[3-9]]*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ ;;
+
+irix5* | irix6* | nonstopux*)
+ case $host_os in
+ nonstopux*) version_type=nonstopux ;;
+ *)
+ if test "$lt_cv_prog_gnu_ld" = yes; then
+ version_type=linux
+ else
+ version_type=irix
+ fi ;;
+ esac
+ need_lib_prefix=no
+ need_version=no
+ soname_spec='${libname}${release}${shared_ext}$major'
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
+ case $host_os in
+ irix5* | nonstopux*)
+ libsuff= shlibsuff=
+ ;;
+ *)
+ case $LD in # libtool.m4 will add one of these switches to LD
+ *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
+ libsuff= shlibsuff= libmagic=32-bit;;
+ *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
+ libsuff=32 shlibsuff=N32 libmagic=N32;;
+ *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
+ libsuff=64 shlibsuff=64 libmagic=64-bit;;
+ *) libsuff= shlibsuff= libmagic=never-match;;
+ esac
+ ;;
+ esac
+ shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
+ shlibpath_overrides_runpath=no
+ sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
+ sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
+ hardcode_into_libs=yes
+ ;;
+
+# No shared lib support for Linux oldld, aout, or coff.
+linux*oldld* | linux*aout* | linux*coff*)
+ dynamic_linker=no
+ ;;
+
+# This must be Linux ELF.
+linux* | k*bsd*-gnu)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ # Some binutils ld are patched to set DT_RUNPATH
+ save_LDFLAGS=$LDFLAGS
+ save_libdir=$libdir
+ eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
+ LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
+ [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
+ [shlibpath_overrides_runpath=yes])])
+ LDFLAGS=$save_LDFLAGS
+ libdir=$save_libdir
+
+ # This implies no fast_install, which is unacceptable.
+ # Some rework will be needed to allow for fast_install
+ # before this can be enabled.
+ hardcode_into_libs=yes
+
+ # Append ld.so.conf contents to the search path
+ if test -f /etc/ld.so.conf; then
+ lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
+ sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
+ fi
+
+ # We used to test for /lib/ld.so.1 and disable shared libraries on
+ # powerpc, because MkLinux only supported shared libraries with the
+ # GNU dynamic linker. Since this was broken with cross compilers,
+ # most powerpc-linux boxes support dynamic linking these days and
+ # people can always --disable-shared, the test was removed, and we
+ # assume the GNU/Linux dynamic linker is in use.
+ dynamic_linker='GNU/Linux ld.so'
+ ;;
+
+netbsdelf*-gnu)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ dynamic_linker='NetBSD ld.elf_so'
+ ;;
+
+netbsd*)
+ version_type=sunos
+ need_lib_prefix=no
+ need_version=no
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
+ dynamic_linker='NetBSD (a.out) ld.so'
+ else
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ dynamic_linker='NetBSD ld.elf_so'
+ fi
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ ;;
+
+newsos6)
+ version_type=linux
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ ;;
+
+*nto* | *qnx*)
+ version_type=qnx
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ dynamic_linker='ldqnx.so'
+ ;;
+
+openbsd*)
+ version_type=sunos
+ sys_lib_dlsearch_path_spec="/usr/lib"
+ need_lib_prefix=no
+ # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
+ case $host_os in
+ openbsd3.3 | openbsd3.3.*) need_version=yes ;;
+ *) need_version=no ;;
+ esac
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ case $host_os in
+ openbsd2.[[89]] | openbsd2.[[89]].*)
+ shlibpath_overrides_runpath=no
+ ;;
+ *)
+ shlibpath_overrides_runpath=yes
+ ;;
+ esac
+ else
+ shlibpath_overrides_runpath=yes
+ fi
+ ;;
+
+os2*)
+ libname_spec='$name'
+ shrext_cmds=".dll"
+ need_lib_prefix=no
+ library_names_spec='$libname${shared_ext} $libname.a'
+ dynamic_linker='OS/2 ld.exe'
+ shlibpath_var=LIBPATH
+ ;;
+
+osf3* | osf4* | osf5*)
+ version_type=osf
+ need_lib_prefix=no
+ need_version=no
+ soname_spec='${libname}${release}${shared_ext}$major'
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
+ sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
+ ;;
+
+rdos*)
+ dynamic_linker=no
+ ;;
+
+solaris*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ # ldd complains unless libraries are executable
+ postinstall_cmds='chmod +x $lib'
+ ;;
+
+sunos4*)
+ version_type=sunos
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+ finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ if test "$with_gnu_ld" = yes; then
+ need_lib_prefix=no
+ fi
+ need_version=yes
+ ;;
+
+sysv4 | sysv4.3*)
+ version_type=linux
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ case $host_vendor in
+ sni)
+ shlibpath_overrides_runpath=no
+ need_lib_prefix=no
+ runpath_var=LD_RUN_PATH
+ ;;
+ siemens)
+ need_lib_prefix=no
+ ;;
+ motorola)
+ need_lib_prefix=no
+ need_version=no
+ shlibpath_overrides_runpath=no
+ sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
+ ;;
+ esac
+ ;;
+
+sysv4*MP*)
+ if test -d /usr/nec ;then
+ version_type=linux
+ library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
+ soname_spec='$libname${shared_ext}.$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ fi
+ ;;
+
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
+ version_type=freebsd-elf
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ if test "$with_gnu_ld" = yes; then
+ sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
+ else
+ sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
+ case $host_os in
+ sco3.2v5*)
+ sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
+ ;;
+ esac
+ fi
+ sys_lib_dlsearch_path_spec='/usr/lib'
+ ;;
+
+tpf*)
+ # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ ;;
+
+uts4*)
+ version_type=linux
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ ;;
+
+*)
+ dynamic_linker=no
+ ;;
+esac
+AC_MSG_RESULT([$dynamic_linker])
+test "$dynamic_linker" = no && can_build_shared=no
+
+variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
+if test "$GCC" = yes; then
+ variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
+fi
+
+if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
+ sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
+fi
+if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
+ sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
+fi
+
+_LT_DECL([], [variables_saved_for_relink], [1],
+ [Variables whose values should be saved in libtool wrapper scripts and
+ restored at link time])
+_LT_DECL([], [need_lib_prefix], [0],
+ [Do we need the "lib" prefix for modules?])
+_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
+_LT_DECL([], [version_type], [0], [Library versioning type])
+_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
+_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
+_LT_DECL([], [shlibpath_overrides_runpath], [0],
+ [Is shlibpath searched before the hard-coded library search path?])
+_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
+_LT_DECL([], [library_names_spec], [1],
+ [[List of archive names. First name is the real one, the rest are links.
+ The last name is the one that the linker finds with -lNAME]])
+_LT_DECL([], [soname_spec], [1],
+ [[The coded name of the library, if different from the real name]])
+_LT_DECL([], [postinstall_cmds], [2],
+ [Command to use after installation of a shared archive])
+_LT_DECL([], [postuninstall_cmds], [2],
+ [Command to use after uninstallation of a shared archive])
+_LT_DECL([], [finish_cmds], [2],
+ [Commands used to finish a libtool library installation in a directory])
+_LT_DECL([], [finish_eval], [1],
+ [[As "finish_cmds", except a single script fragment to be evaled but
+ not shown]])
+_LT_DECL([], [hardcode_into_libs], [0],
+ [Whether we should hardcode library paths into libraries])
+_LT_DECL([], [sys_lib_search_path_spec], [2],
+ [Compile-time system search path for libraries])
+_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
+ [Run-time system search path for libraries])
+])# _LT_SYS_DYNAMIC_LINKER
+
+
+# _LT_PATH_TOOL_PREFIX(TOOL)
+# --------------------------
+# find a file program which can recognize shared library
+AC_DEFUN([_LT_PATH_TOOL_PREFIX],
+[m4_require([_LT_DECL_EGREP])dnl
+AC_MSG_CHECKING([for $1])
+AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
+[case $MAGIC_CMD in
+[[\\/*] | ?:[\\/]*])
+ lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
+ ;;
+*)
+ lt_save_MAGIC_CMD="$MAGIC_CMD"
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+dnl $ac_dummy forces splitting on constant user-supplied paths.
+dnl POSIX.2 word splitting is done only on the output of word expansions,
+dnl not every word. This closes a longstanding sh security hole.
+ ac_dummy="m4_if([$2], , $PATH, [$2])"
+ for ac_dir in $ac_dummy; do
+ IFS="$lt_save_ifs"
+ test -z "$ac_dir" && ac_dir=.
+ if test -f $ac_dir/$1; then
+ lt_cv_path_MAGIC_CMD="$ac_dir/$1"
+ if test -n "$file_magic_test_file"; then
+ case $deplibs_check_method in
+ "file_magic "*)
+ file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
+ MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
+ if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
+ $EGREP "$file_magic_regex" > /dev/null; then
+ :
+ else
+ cat <<_LT_EOF 1>&2
+
+*** Warning: the command libtool uses to detect shared libraries,
+*** $file_magic_cmd, produces output that libtool cannot recognize.
+*** The result is that libtool may fail to recognize shared libraries
+*** as such. This will affect the creation of libtool libraries that
+*** depend on shared libraries, but programs linked with such libtool
+*** libraries will work regardless of this problem. Nevertheless, you
+*** may want to report the problem to your system manager and/or to
+*** bug-libtool@gnu.org
+
+_LT_EOF
+ fi ;;
+ esac
+ fi
+ break
+ fi
+ done
+ IFS="$lt_save_ifs"
+ MAGIC_CMD="$lt_save_MAGIC_CMD"
+ ;;
+esac])
+MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
+if test -n "$MAGIC_CMD"; then
+ AC_MSG_RESULT($MAGIC_CMD)
+else
+ AC_MSG_RESULT(no)
+fi
+_LT_DECL([], [MAGIC_CMD], [0],
+ [Used to examine libraries when file_magic_cmd begins with "file"])dnl
+])# _LT_PATH_TOOL_PREFIX
+
+# Old name:
+AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
+
+
+# _LT_PATH_MAGIC
+# --------------
+# find a file program which can recognize a shared library
+m4_defun([_LT_PATH_MAGIC],
+[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
+if test -z "$lt_cv_path_MAGIC_CMD"; then
+ if test -n "$ac_tool_prefix"; then
+ _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
+ else
+ MAGIC_CMD=:
+ fi
+fi
+])# _LT_PATH_MAGIC
+
+
+# LT_PATH_LD
+# ----------
+# find the pathname to the GNU or non-GNU linker
+AC_DEFUN([LT_PATH_LD],
+[AC_REQUIRE([AC_PROG_CC])dnl
+AC_REQUIRE([AC_CANONICAL_HOST])dnl
+AC_REQUIRE([AC_CANONICAL_BUILD])dnl
+m4_require([_LT_DECL_SED])dnl
+m4_require([_LT_DECL_EGREP])dnl
+
+AC_ARG_WITH([gnu-ld],
+ [AS_HELP_STRING([--with-gnu-ld],
+ [assume the C compiler uses GNU ld @<:@default=no@:>@])],
+ [test "$withval" = no || with_gnu_ld=yes],
+ [with_gnu_ld=no])dnl
+
+ac_prog=ld
+if test "$GCC" = yes; then
+ # Check if gcc -print-prog-name=ld gives a path.
+ AC_MSG_CHECKING([for ld used by $CC])
+ case $host in
+ *-*-mingw*)
+ # gcc leaves a trailing carriage return which upsets mingw
+ ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
+ *)
+ ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
+ esac
+ case $ac_prog in
+ # Accept absolute paths.
+ [[\\/]]* | ?:[[\\/]]*)
+ re_direlt='/[[^/]][[^/]]*/\.\./'
+ # Canonicalize the pathname of ld
+ ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
+ while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
+ ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
+ done
+ test -z "$LD" && LD="$ac_prog"
+ ;;
+ "")
+ # If it fails, then pretend we aren't using GCC.
+ ac_prog=ld
+ ;;
+ *)
+ # If it is relative, then search for the first ld in PATH.
+ with_gnu_ld=unknown
+ ;;
+ esac
+elif test "$with_gnu_ld" = yes; then
+ AC_MSG_CHECKING([for GNU ld])
+else
+ AC_MSG_CHECKING([for non-GNU ld])
+fi
+AC_CACHE_VAL(lt_cv_path_LD,
+[if test -z "$LD"; then
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+ for ac_dir in $PATH; do
+ IFS="$lt_save_ifs"
+ test -z "$ac_dir" && ac_dir=.
+ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
+ lt_cv_path_LD="$ac_dir/$ac_prog"
+ # Check to see if the program is GNU ld. I'd rather use --version,
+ # but apparently some variants of GNU ld only accept -v.
+ # Break only if it was the GNU/non-GNU ld that we prefer.
+ case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
+ *GNU* | *'with BFD'*)
+ test "$with_gnu_ld" != no && break
+ ;;
+ *)
+ test "$with_gnu_ld" != yes && break
+ ;;
+ esac
+ fi
+ done
+ IFS="$lt_save_ifs"
+else
+ lt_cv_path_LD="$LD" # Let the user override the test with a path.
+fi])
+LD="$lt_cv_path_LD"
+if test -n "$LD"; then
+ AC_MSG_RESULT($LD)
+else
+ AC_MSG_RESULT(no)
+fi
+test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
+_LT_PATH_LD_GNU
+AC_SUBST([LD])
+
+_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
+])# LT_PATH_LD
+
+# Old names:
+AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
+AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AM_PROG_LD], [])
+dnl AC_DEFUN([AC_PROG_LD], [])
+
+
+# _LT_PATH_LD_GNU
+#- --------------
+m4_defun([_LT_PATH_LD_GNU],
+[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
+[# I'd rather use --version here, but apparently some GNU lds only accept -v.
+case `$LD -v 2>&1 </dev/null` in
+*GNU* | *'with BFD'*)
+ lt_cv_prog_gnu_ld=yes
+ ;;
+*)
+ lt_cv_prog_gnu_ld=no
+ ;;
+esac])
+with_gnu_ld=$lt_cv_prog_gnu_ld
+])# _LT_PATH_LD_GNU
+
+
+# _LT_CMD_RELOAD
+# --------------
+# find reload flag for linker
+# -- PORTME Some linkers may need a different reload flag.
+m4_defun([_LT_CMD_RELOAD],
+[AC_CACHE_CHECK([for $LD option to reload object files],
+ lt_cv_ld_reload_flag,
+ [lt_cv_ld_reload_flag='-r'])
+reload_flag=$lt_cv_ld_reload_flag
+case $reload_flag in
+"" | " "*) ;;
+*) reload_flag=" $reload_flag" ;;
+esac
+reload_cmds='$LD$reload_flag -o $output$reload_objs'
+case $host_os in
+ darwin*)
+ if test "$GCC" = yes; then
+ reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
+ else
+ reload_cmds='$LD$reload_flag -o $output$reload_objs'
+ fi
+ ;;
+esac
+_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
+_LT_DECL([], [reload_cmds], [2])dnl
+])# _LT_CMD_RELOAD
+
+
+# _LT_CHECK_MAGIC_METHOD
+# ----------------------
+# how to check for library dependencies
+# -- PORTME fill in with the dynamic library characteristics
+m4_defun([_LT_CHECK_MAGIC_METHOD],
+[m4_require([_LT_DECL_EGREP])
+m4_require([_LT_DECL_OBJDUMP])
+AC_CACHE_CHECK([how to recognize dependent libraries],
+lt_cv_deplibs_check_method,
+[lt_cv_file_magic_cmd='$MAGIC_CMD'
+lt_cv_file_magic_test_file=
+lt_cv_deplibs_check_method='unknown'
+# Need to set the preceding variable on all platforms that support
+# interlibrary dependencies.
+# 'none' -- dependencies not supported.
+# `unknown' -- same as none, but documents that we really don't know.
+# 'pass_all' -- all dependencies passed with no checks.
+# 'test_compile' -- check by making test program.
+# 'file_magic [[regex]]' -- check by looking for files in library path
+# which responds to the $file_magic_cmd with a given extended regex.
+# If you have `file' or equivalent on your system and you're not sure
+# whether `pass_all' will *always* work, you probably want this one.
+
+case $host_os in
+aix[[4-9]]*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+beos*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+bsdi[[45]]*)
+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
+ lt_cv_file_magic_cmd='/usr/bin/file -L'
+ lt_cv_file_magic_test_file=/shlib/libc.so
+ ;;
+
+cygwin*)
+ # func_win32_libid is a shell function defined in ltmain.sh
+ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
+ lt_cv_file_magic_cmd='func_win32_libid'
+ ;;
+
+mingw* | pw32*)
+ # Base MSYS/MinGW do not provide the 'file' command needed by
+ # func_win32_libid shell function, so use a weaker test based on 'objdump',
+ # unless we find 'file', for example because we are cross-compiling.
+ if ( file / ) >/dev/null 2>&1; then
+ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
+ lt_cv_file_magic_cmd='func_win32_libid'
+ else
+ lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
+ lt_cv_file_magic_cmd='$OBJDUMP -f'
+ fi
+ ;;
+
+cegcc)
+ # use the weaker test based on 'objdump'. See mingw*.
+ lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
+ lt_cv_file_magic_cmd='$OBJDUMP -f'
+ ;;
+
+darwin* | rhapsody*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+freebsd* | dragonfly*)
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
+ case $host_cpu in
+ i*86 )
+ # Not sure whether the presence of OpenBSD here was a mistake.
+ # Let's accept both of them until this is cleared up.
+ lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
+ lt_cv_file_magic_cmd=/usr/bin/file
+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
+ ;;
+ esac
+ else
+ lt_cv_deplibs_check_method=pass_all
+ fi
+ ;;
+
+gnu*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+hpux10.20* | hpux11*)
+ lt_cv_file_magic_cmd=/usr/bin/file
+ case $host_cpu in
+ ia64*)
+ lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
+ lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
+ ;;
+ hppa*64*)
+ [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
+ lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
+ ;;
+ *)
+ lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
+ lt_cv_file_magic_test_file=/usr/lib/libc.sl
+ ;;
+ esac
+ ;;
+
+interix[[3-9]]*)
+ # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
+ ;;
+
+irix5* | irix6* | nonstopux*)
+ case $LD in
+ *-32|*"-32 ") libmagic=32-bit;;
+ *-n32|*"-n32 ") libmagic=N32;;
+ *-64|*"-64 ") libmagic=64-bit;;
+ *) libmagic=never-match;;
+ esac
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+# This must be Linux ELF.
+linux* | k*bsd*-gnu)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+netbsd* | netbsdelf*-gnu)
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
+ else
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
+ fi
+ ;;
+
+newos6*)
+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
+ lt_cv_file_magic_cmd=/usr/bin/file
+ lt_cv_file_magic_test_file=/usr/lib/libnls.so
+ ;;
+
+*nto* | *qnx*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+openbsd*)
+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
+ else
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
+ fi
+ ;;
+
+osf3* | osf4* | osf5*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+rdos*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+solaris*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+sysv4 | sysv4.3*)
+ case $host_vendor in
+ motorola)
+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
+ ;;
+ ncr)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+ sequent)
+ lt_cv_file_magic_cmd='/bin/file'
+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
+ ;;
+ sni)
+ lt_cv_file_magic_cmd='/bin/file'
+ lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
+ lt_cv_file_magic_test_file=/lib/libc.so
+ ;;
+ siemens)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+ pc)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+ esac
+ ;;
+
+tpf*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+esac
+])
+file_magic_cmd=$lt_cv_file_magic_cmd
+deplibs_check_method=$lt_cv_deplibs_check_method
+test -z "$deplibs_check_method" && deplibs_check_method=unknown
+
+_LT_DECL([], [deplibs_check_method], [1],
+ [Method to check whether dependent libraries are shared objects])
+_LT_DECL([], [file_magic_cmd], [1],
+ [Command to use when deplibs_check_method == "file_magic"])
+])# _LT_CHECK_MAGIC_METHOD
+
+
+# LT_PATH_NM
+# ----------
+# find the pathname to a BSD- or MS-compatible name lister
+AC_DEFUN([LT_PATH_NM],
+[AC_REQUIRE([AC_PROG_CC])dnl
+AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
+[if test -n "$NM"; then
+ # Let the user override the test.
+ lt_cv_path_NM="$NM"
+else
+ lt_nm_to_check="${ac_tool_prefix}nm"
+ if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
+ lt_nm_to_check="$lt_nm_to_check nm"
+ fi
+ for lt_tmp_nm in $lt_nm_to_check; do
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+ for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
+ IFS="$lt_save_ifs"
+ test -z "$ac_dir" && ac_dir=.
+ tmp_nm="$ac_dir/$lt_tmp_nm"
+ if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
+ # Check to see if the nm accepts a BSD-compat flag.
+ # Adding the `sed 1q' prevents false positives on HP-UX, which says:
+ # nm: unknown option "B" ignored
+ # Tru64's nm complains that /dev/null is an invalid object file
+ case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
+ */dev/null* | *'Invalid file or object type'*)
+ lt_cv_path_NM="$tmp_nm -B"
+ break
+ ;;
+ *)
+ case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
+ */dev/null*)
+ lt_cv_path_NM="$tmp_nm -p"
+ break
+ ;;
+ *)
+ lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
+ continue # so that we can try to find one that supports BSD flags
+ ;;
+ esac
+ ;;
+ esac
+ fi
+ done
+ IFS="$lt_save_ifs"
+ done
+ : ${lt_cv_path_NM=no}
+fi])
+if test "$lt_cv_path_NM" != "no"; then
+ NM="$lt_cv_path_NM"
+else
+ # Didn't find any BSD compatible name lister, look for dumpbin.
+ AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
+ AC_SUBST([DUMPBIN])
+ if test "$DUMPBIN" != ":"; then
+ NM="$DUMPBIN"
+ fi
+fi
+test -z "$NM" && NM=nm
+AC_SUBST([NM])
+_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
+
+AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
+ [lt_cv_nm_interface="BSD nm"
+ echo "int some_variable = 0;" > conftest.$ac_ext
+ (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
+ (eval "$ac_compile" 2>conftest.err)
+ cat conftest.err >&AS_MESSAGE_LOG_FD
+ (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
+ (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
+ cat conftest.err >&AS_MESSAGE_LOG_FD
+ (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
+ cat conftest.out >&AS_MESSAGE_LOG_FD
+ if $GREP 'External.*some_variable' conftest.out > /dev/null; then
+ lt_cv_nm_interface="MS dumpbin"
+ fi
+ rm -f conftest*])
+])# LT_PATH_NM
+
+# Old names:
+AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
+AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AM_PROG_NM], [])
+dnl AC_DEFUN([AC_PROG_NM], [])
+
+
+# LT_LIB_M
+# --------
+# check for math library
+AC_DEFUN([LT_LIB_M],
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
+LIBM=
+case $host in
+*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
+ # These system don't have libm, or don't need it
+ ;;
+*-ncr-sysv4.3*)
+ AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
+ AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
+ ;;
+*)
+ AC_CHECK_LIB(m, cos, LIBM="-lm")
+ ;;
+esac
+AC_SUBST([LIBM])
+])# LT_LIB_M
+
+# Old name:
+AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_CHECK_LIBM], [])
+
+
+# _LT_COMPILER_NO_RTTI([TAGNAME])
+# -------------------------------
+m4_defun([_LT_COMPILER_NO_RTTI],
+[m4_require([_LT_TAG_COMPILER])dnl
+
+_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
+
+if test "$GCC" = yes; then
+ _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
+
+ _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
+ lt_cv_prog_compiler_rtti_exceptions,
+ [-fno-rtti -fno-exceptions], [],
+ [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
+fi
+_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
+ [Compiler flag to turn off builtin functions])
+])# _LT_COMPILER_NO_RTTI
+
+
+# _LT_CMD_GLOBAL_SYMBOLS
+# ----------------------
+m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
+AC_REQUIRE([AC_PROG_CC])dnl
+AC_REQUIRE([LT_PATH_NM])dnl
+AC_REQUIRE([LT_PATH_LD])dnl
+m4_require([_LT_DECL_SED])dnl
+m4_require([_LT_DECL_EGREP])dnl
+m4_require([_LT_TAG_COMPILER])dnl
+
+# Check for command to grab the raw symbol name followed by C symbol from nm.
+AC_MSG_CHECKING([command to parse $NM output from $compiler object])
+AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
+[
+# These are sane defaults that work on at least a few old systems.
+# [They come from Ultrix. What could be older than Ultrix?!! ;)]
+
+# Character class describing NM global symbol codes.
+symcode='[[BCDEGRST]]'
+
+# Regexp to match symbols that can be accessed directly from C.
+sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
+
+# Define system-specific variables.
+case $host_os in
+aix*)
+ symcode='[[BCDT]]'
+ ;;
+cygwin* | mingw* | pw32* | cegcc*)
+ symcode='[[ABCDGISTW]]'
+ ;;
+hpux*)
+ if test "$host_cpu" = ia64; then
+ symcode='[[ABCDEGRST]]'
+ fi
+ ;;
+irix* | nonstopux*)
+ symcode='[[BCDEGRST]]'
+ ;;
+osf*)
+ symcode='[[BCDEGQRST]]'
+ ;;
+solaris*)
+ symcode='[[BDRT]]'
+ ;;
+sco3.2v5*)
+ symcode='[[DT]]'
+ ;;
+sysv4.2uw2*)
+ symcode='[[DT]]'
+ ;;
+sysv5* | sco5v6* | unixware* | OpenUNIX*)
+ symcode='[[ABDT]]'
+ ;;
+sysv4)
+ symcode='[[DFNSTU]]'
+ ;;
+esac
+
+# If we're using GNU nm, then use its standard symbol codes.
+case `$NM -V 2>&1` in
+*GNU* | *'with BFD'*)
+ symcode='[[ABCDGIRSTW]]' ;;
+esac
+
+# Transform an extracted symbol line into a proper C declaration.
+# Some systems (esp. on ia64) link data and code symbols differently,
+# so use this general approach.
+lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
+
+# Transform an extracted symbol line into symbol name and symbol address
+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
+
+# Handle CRLF in mingw tool chain
+opt_cr=
+case $build_os in
+mingw*)
+ opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
+ ;;
+esac
+
+# Try without a prefix underscore, then with it.
+for ac_symprfx in "" "_"; do
+
+ # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
+ symxfrm="\\1 $ac_symprfx\\2 \\2"
+
+ # Write the raw and C identifiers.
+ if test "$lt_cv_nm_interface" = "MS dumpbin"; then
+ # Fake it for dumpbin and say T for any non-static function
+ # and D for any global variable.
+ # Also find C++ and __fastcall symbols from MSVC++,
+ # which start with @ or ?.
+ lt_cv_sys_global_symbol_pipe="$AWK ['"\
+" {last_section=section; section=\$ 3};"\
+" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
+" \$ 0!~/External *\|/{next};"\
+" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
+" {if(hide[section]) next};"\
+" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
+" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
+" s[1]~/^[@?]/{print s[1], s[1]; next};"\
+" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
+" ' prfx=^$ac_symprfx]"
+ else
+ lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
+ fi
+
+ # Check to see that the pipe works correctly.
+ pipe_works=no
+
+ rm -f conftest*
+ cat > conftest.$ac_ext <<_LT_EOF
+#ifdef __cplusplus
+extern "C" {
+#endif
+char nm_test_var;
+void nm_test_func(void);
+void nm_test_func(void){}
+#ifdef __cplusplus
+}
+#endif
+int main(){nm_test_var='a';nm_test_func();return(0);}
+_LT_EOF
+
+ if AC_TRY_EVAL(ac_compile); then
+ # Now try to grab the symbols.
+ nlist=conftest.nm
+ if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
+ # Try sorting and uniquifying the output.
+ if sort "$nlist" | uniq > "$nlist"T; then
+ mv -f "$nlist"T "$nlist"
+ else
+ rm -f "$nlist"T
+ fi
+
+ # Make sure that we snagged all the symbols we need.
+ if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
+ if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
+ cat <<_LT_EOF > conftest.$ac_ext
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+_LT_EOF
+ # Now generate the symbol file.
+ eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
+
+ cat <<_LT_EOF >> conftest.$ac_ext
+
+/* The mapping between symbol names and symbols. */
+const struct {
+ const char *name;
+ void *address;
+}
+lt__PROGRAM__LTX_preloaded_symbols[[]] =
+{
+ { "@PROGRAM@", (void *) 0 },
+_LT_EOF
+ $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
+ cat <<\_LT_EOF >> conftest.$ac_ext
+ {0, (void *) 0}
+};
+
+/* This works around a problem in FreeBSD linker */
+#ifdef FREEBSD_WORKAROUND
+static const void *lt_preloaded_setup() {
+ return lt__PROGRAM__LTX_preloaded_symbols;
+}
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+_LT_EOF
+ # Now try linking the two files.
+ mv conftest.$ac_objext conftstm.$ac_objext
+ lt_save_LIBS="$LIBS"
+ lt_save_CFLAGS="$CFLAGS"
+ LIBS="conftstm.$ac_objext"
+ CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
+ if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
+ pipe_works=yes
+ fi
+ LIBS="$lt_save_LIBS"
+ CFLAGS="$lt_save_CFLAGS"
+ else
+ echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
+ fi
+ else
+ echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
+ fi
+ else
+ echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
+ fi
+ else
+ echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
+ cat conftest.$ac_ext >&5
+ fi
+ rm -rf conftest* conftst*
+
+ # Do not use the global_symbol_pipe unless it works.
+ if test "$pipe_works" = yes; then
+ break
+ else
+ lt_cv_sys_global_symbol_pipe=
+ fi
+done
+])
+if test -z "$lt_cv_sys_global_symbol_pipe"; then
+ lt_cv_sys_global_symbol_to_cdecl=
+fi
+if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
+ AC_MSG_RESULT(failed)
+else
+ AC_MSG_RESULT(ok)
+fi
+
+_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
+ [Take the output of nm and produce a listing of raw symbols and C names])
+_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
+ [Transform the output of nm in a proper C declaration])
+_LT_DECL([global_symbol_to_c_name_address],
+ [lt_cv_sys_global_symbol_to_c_name_address], [1],
+ [Transform the output of nm in a C name address pair])
+_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
+ [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
+ [Transform the output of nm in a C name address pair when lib prefix is needed])
+]) # _LT_CMD_GLOBAL_SYMBOLS
+
+
+# _LT_COMPILER_PIC([TAGNAME])
+# ---------------------------
+m4_defun([_LT_COMPILER_PIC],
+[m4_require([_LT_TAG_COMPILER])dnl
+_LT_TAGVAR(lt_prog_compiler_wl, $1)=
+_LT_TAGVAR(lt_prog_compiler_pic, $1)=
+_LT_TAGVAR(lt_prog_compiler_static, $1)=
+
+AC_MSG_CHECKING([for $compiler option to produce PIC])
+m4_if([$1], [CXX], [
+ # C++ specific cases for pic, static, wl, etc.
+ if test "$GXX" = yes; then
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
+
+ case $host_os in
+ aix*)
+ # All AIX code is PIC.
+ if test "$host_cpu" = ia64; then
+ # AIX 5 now supports IA64 processor
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ fi
+ ;;
+
+ amigaos*)
+ case $host_cpu in
+ powerpc)
+ # see comment about AmigaOS4 .so support
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+ ;;
+ m68k)
+ # FIXME: we need at least 68020 code to build shared libraries, but
+ # adding the `-m68020' flag to GCC prevents building anything better,
+ # like `-m68040'.
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
+ ;;
+ esac
+ ;;
+
+ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
+ # PIC is the default for these OSes.
+ ;;
+ mingw* | cygwin* | os2* | pw32* | cegcc*)
+ # This hack is so that the source file can tell whether it is being
+ # built for inclusion in a dll (and should export symbols for example).
+ # Although the cygwin gcc ignores -fPIC, still need this for old-style
+ # (--disable-auto-import) libraries
+ m4_if([$1], [GCJ], [],
+ [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
+ ;;
+ darwin* | rhapsody*)
+ # PIC is the default on this platform
+ # Common symbols not allowed in MH_DYLIB files
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
+ ;;
+ *djgpp*)
+ # DJGPP does not support shared libraries at all
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)=
+ ;;
+ interix[[3-9]]*)
+ # Interix 3.x gcc -fpic/-fPIC options generate broken code.
+ # Instead, we relocate shared libraries at runtime.
+ ;;
+ sysv4*MP*)
+ if test -d /usr/nec; then
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
+ fi
+ ;;
+ hpux*)
+ # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
+ # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
+ # sets the default TLS model and affects inlining.
+ case $host_cpu in
+ hppa*64*)
+ ;;
+ *)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+ ;;
+ esac
+ ;;
+ *qnx* | *nto*)
+ # QNX uses GNU C++, but need to define -shared option too, otherwise
+ # it will coredump.
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
+ ;;
+ *)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+ ;;
+ esac
+ else
+ case $host_os in
+ aix[[4-9]]*)
+ # All AIX code is PIC.
+ if test "$host_cpu" = ia64; then
+ # AIX 5 now supports IA64 processor
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ else
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
+ fi
+ ;;
+ chorus*)
+ case $cc_basename in
+ cxch68*)
+ # Green Hills C++ Compiler
+ # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
+ ;;
+ esac
+ ;;
+ dgux*)
+ case $cc_basename in
+ ec++*)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ ;;
+ ghcx*)
+ # Green Hills C++ Compiler
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ freebsd* | dragonfly*)
+ # FreeBSD uses GNU C++
+ ;;
+ hpux9* | hpux10* | hpux11*)
+ case $cc_basename in
+ CC*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
+ if test "$host_cpu" != ia64; then
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
+ fi
+ ;;
+ aCC*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
+ case $host_cpu in
+ hppa*64*|ia64*)
+ # +Z the default
+ ;;
+ *)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
+ ;;
+ esac
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ interix*)
+ # This is c89, which is MS Visual C++ (no shared libs)
+ # Anyone wants to do a port?
+ ;;
+ irix5* | irix6* | nonstopux*)
+ case $cc_basename in
+ CC*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+ # CC pic flag -KPIC is the default.
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ linux* | k*bsd*-gnu)
+ case $cc_basename in
+ KCC*)
+ # KAI C++ Compiler
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+ ;;
+ ecpc* )
+ # old Intel C++ for x86_64 which still supported -KPIC.
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
+ ;;
+ icpc* )
+ # Intel C++, used to be incompatible with GCC.
+ # ICC 10 doesn't accept -KPIC any more.
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
+ ;;
+ pgCC* | pgcpp*)
+ # Portland Group C++ compiler
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+ cxx*)
+ # Compaq C++
+ # Make sure the PIC flag is empty. It appears that all Alpha
+ # Linux and Compaq Tru64 Unix objects are PIC.
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)=
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+ ;;
+ xlc* | xlC*)
+ # IBM XL 8.0 on PPC
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
+ ;;
+ *)
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*)
+ # Sun C++ 5.9
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
+ ;;
+ esac
+ ;;
+ esac
+ ;;
+ lynxos*)
+ ;;
+ m88k*)
+ ;;
+ mvs*)
+ case $cc_basename in
+ cxx*)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ netbsd* | netbsdelf*-gnu)
+ ;;
+ *qnx* | *nto*)
+ # QNX uses GNU C++, but need to define -shared option too, otherwise
+ # it will coredump.
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
+ ;;
+ osf3* | osf4* | osf5*)
+ case $cc_basename in
+ KCC*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
+ ;;
+ RCC*)
+ # Rational C++ 2.4.1
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
+ ;;
+ cxx*)
+ # Digital/Compaq C++
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ # Make sure the PIC flag is empty. It appears that all Alpha
+ # Linux and Compaq Tru64 Unix objects are PIC.
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)=
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ psos*)
+ ;;
+ solaris*)
+ case $cc_basename in
+ CC*)
+ # Sun C++ 4.2, 5.x and Centerline C++
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
+ ;;
+ gcx*)
+ # Green Hills C++ Compiler
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ sunos4*)
+ case $cc_basename in
+ CC*)
+ # Sun C++ 4.x
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+ lcc*)
+ # Lucid
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
+ case $cc_basename in
+ CC*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+ esac
+ ;;
+ tandem*)
+ case $cc_basename in
+ NCC*)
+ # NonStop-UX NCC 3.20
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ vxworks*)
+ ;;
+ *)
+ _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
+ ;;
+ esac
+ fi
+],
+[
+ if test "$GCC" = yes; then
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
+
+ case $host_os in
+ aix*)
+ # All AIX code is PIC.
+ if test "$host_cpu" = ia64; then
+ # AIX 5 now supports IA64 processor
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ fi
+ ;;
+
+ amigaos*)
+ case $host_cpu in
+ powerpc)
+ # see comment about AmigaOS4 .so support
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+ ;;
+ m68k)
+ # FIXME: we need at least 68020 code to build shared libraries, but
+ # adding the `-m68020' flag to GCC prevents building anything better,
+ # like `-m68040'.
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
+ ;;
+ esac
+ ;;
+
+ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
+ # PIC is the default for these OSes.
+ ;;
+
+ mingw* | cygwin* | pw32* | os2* | cegcc*)
+ # This hack is so that the source file can tell whether it is being
+ # built for inclusion in a dll (and should export symbols for example).
+ # Although the cygwin gcc ignores -fPIC, still need this for old-style
+ # (--disable-auto-import) libraries
+ m4_if([$1], [GCJ], [],
+ [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
+ ;;
+
+ darwin* | rhapsody*)
+ # PIC is the default on this platform
+ # Common symbols not allowed in MH_DYLIB files
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
+ ;;
+
+ hpux*)
+ # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
+ # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
+ # sets the default TLS model and affects inlining.
+ case $host_cpu in
+ hppa*64*)
+ # +Z the default
+ ;;
+ *)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+ ;;
+ esac
+ ;;
+
+ interix[[3-9]]*)
+ # Interix 3.x gcc -fpic/-fPIC options generate broken code.
+ # Instead, we relocate shared libraries at runtime.
+ ;;
+
+ msdosdjgpp*)
+ # Just because we use GCC doesn't mean we suddenly get shared libraries
+ # on systems that don't support them.
+ _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
+ enable_shared=no
+ ;;
+
+ *nto* | *qnx*)
+ # QNX uses GNU C++, but need to define -shared option too, otherwise
+ # it will coredump.
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
+ ;;
+
+ sysv4*MP*)
+ if test -d /usr/nec; then
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
+ fi
+ ;;
+
+ *)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+ ;;
+ esac
+ else
+ # PORTME Check for flag to pass linker flags through the system compiler.
+ case $host_os in
+ aix*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ if test "$host_cpu" = ia64; then
+ # AIX 5 now supports IA64 processor
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ else
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
+ fi
+ ;;
+
+ mingw* | cygwin* | pw32* | os2* | cegcc*)
+ # This hack is so that the source file can tell whether it is being
+ # built for inclusion in a dll (and should export symbols for example).
+ m4_if([$1], [GCJ], [],
+ [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
+ ;;
+
+ hpux9* | hpux10* | hpux11*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
+ # not for PA HP-UX.
+ case $host_cpu in
+ hppa*64*|ia64*)
+ # +Z the default
+ ;;
+ *)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
+ ;;
+ esac
+ # Is there a better lt_prog_compiler_static that works with the bundled CC?
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
+ ;;
+
+ irix5* | irix6* | nonstopux*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ # PIC (with -KPIC) is the default.
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+ ;;
+
+ linux* | k*bsd*-gnu)
+ case $cc_basename in
+ # old Intel for x86_64 which still supported -KPIC.
+ ecc*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
+ ;;
+ # icc used to be incompatible with GCC.
+ # ICC 10 doesn't accept -KPIC any more.
+ icc* | ifort*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
+ ;;
+ # Lahey Fortran 8.1.
+ lf95*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
+ ;;
+ pgcc* | pgf77* | pgf90* | pgf95*)
+ # Portland Group compilers (*not* the Pentium gcc compiler,
+ # which looks to be a dead project)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+ ccc*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ # All Alpha code is PIC.
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+ ;;
+ xl*)
+ # IBM XL C 8.0/Fortran 10.1 on PPC
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
+ ;;
+ *)
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*)
+ # Sun C 5.9
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ ;;
+ *Sun\ F*)
+ # Sun Fortran 8.3 passes all unrecognized flags to the linker
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
+ ;;
+ esac
+ ;;
+ esac
+ ;;
+
+ newsos6)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+
+ *nto* | *qnx*)
+ # QNX uses GNU C++, but need to define -shared option too, otherwise
+ # it will coredump.
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
+ ;;
+
+ osf3* | osf4* | osf5*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ # All OSF/1 code is PIC.
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+ ;;
+
+ rdos*)
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+ ;;
+
+ solaris*)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ case $cc_basename in
+ f77* | f90* | f95*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
+ *)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
+ esac
+ ;;
+
+ sunos4*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+
+ sysv4 | sysv4.2uw2* | sysv4.3*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+
+ sysv4*MP*)
+ if test -d /usr/nec ;then
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ fi
+ ;;
+
+ sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+
+ unicos*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
+ ;;
+
+ uts4*)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+
+ *)
+ _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
+ ;;
+ esac
+ fi
+])
+case $host_os in
+ # For platforms which do not support PIC, -DPIC is meaningless:
+ *djgpp*)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)=
+ ;;
+ *)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
+ ;;
+esac
+AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
+_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
+ [How to pass a linker flag through the compiler])
+
+#
+# Check to make sure the PIC flag actually works.
+#
+if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
+ _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
+ [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
+ [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
+ [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
+ "" | " "*) ;;
+ *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
+ esac],
+ [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
+ _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
+fi
+_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
+ [Additional compiler flags for building library objects])
+
+#
+# Check to make sure the static flag actually works.
+#
+wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
+_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
+ _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
+ $lt_tmp_static_flag,
+ [],
+ [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
+_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
+ [Compiler flag to prevent dynamic linking])
+])# _LT_COMPILER_PIC
+
+
+# _LT_LINKER_SHLIBS([TAGNAME])
+# ----------------------------
+# See if the linker supports building shared libraries.
+m4_defun([_LT_LINKER_SHLIBS],
+[AC_REQUIRE([LT_PATH_LD])dnl
+AC_REQUIRE([LT_PATH_NM])dnl
+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+m4_require([_LT_DECL_EGREP])dnl
+m4_require([_LT_DECL_SED])dnl
+m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
+m4_require([_LT_TAG_COMPILER])dnl
+AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
+m4_if([$1], [CXX], [
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
+ case $host_os in
+ aix[[4-9]]*)
+ # If we're using GNU nm, then we don't want the "-C" option.
+ # -C means demangle to AIX nm, but means don't demangle with GNU nm
+ if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
+ else
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
+ fi
+ ;;
+ pw32*)
+ _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
+ ;;
+ cygwin* | mingw* | cegcc*)
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
+ ;;
+ linux* | k*bsd*-gnu)
+ _LT_TAGVAR(link_all_deplibs, $1)=no
+ ;;
+ *)
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
+ ;;
+ esac
+ _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
+], [
+ runpath_var=
+ _LT_TAGVAR(allow_undefined_flag, $1)=
+ _LT_TAGVAR(always_export_symbols, $1)=no
+ _LT_TAGVAR(archive_cmds, $1)=
+ _LT_TAGVAR(archive_expsym_cmds, $1)=
+ _LT_TAGVAR(compiler_needs_object, $1)=no
+ _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)=
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
+ _LT_TAGVAR(hardcode_automatic, $1)=no
+ _LT_TAGVAR(hardcode_direct, $1)=no
+ _LT_TAGVAR(hardcode_direct_absolute, $1)=no
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
+ _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=
+ _LT_TAGVAR(hardcode_minus_L, $1)=no
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
+ _LT_TAGVAR(inherit_rpath, $1)=no
+ _LT_TAGVAR(link_all_deplibs, $1)=unknown
+ _LT_TAGVAR(module_cmds, $1)=
+ _LT_TAGVAR(module_expsym_cmds, $1)=
+ _LT_TAGVAR(old_archive_from_new_cmds, $1)=
+ _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
+ _LT_TAGVAR(thread_safe_flag_spec, $1)=
+ _LT_TAGVAR(whole_archive_flag_spec, $1)=
+ # include_expsyms should be a list of space-separated symbols to be *always*
+ # included in the symbol list
+ _LT_TAGVAR(include_expsyms, $1)=
+ # exclude_expsyms can be an extended regexp of symbols to exclude
+ # it will be wrapped by ` (' and `)$', so one must not match beginning or
+ # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
+ # as well as any symbol that contains `d'.
+ _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
+ # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
+ # platforms (ab)use it in PIC code, but their linkers get confused if
+ # the symbol is explicitly referenced. Since portable code cannot
+ # rely on this symbol name, it's probably fine to never include it in
+ # preloaded symbol tables.
+ # Exclude shared library initialization/finalization symbols.
+dnl Note also adjust exclude_expsyms for C++ above.
+ extract_expsyms_cmds=
+
+ case $host_os in
+ cygwin* | mingw* | pw32* | cegcc*)
+ # FIXME: the MSVC++ port hasn't been tested in a loooong time
+ # When not using gcc, we currently assume that we are using
+ # Microsoft Visual C++.
+ if test "$GCC" != yes; then
+ with_gnu_ld=no
+ fi
+ ;;
+ interix*)
+ # we just hope/assume this is gcc and not c89 (= MSVC++)
+ with_gnu_ld=yes
+ ;;
+ openbsd*)
+ with_gnu_ld=no
+ ;;
+ esac
+
+ _LT_TAGVAR(ld_shlibs, $1)=yes
+ if test "$with_gnu_ld" = yes; then
+ # If archive_cmds runs LD, not CC, wlarc should be empty
+ wlarc='${wl}'
+
+ # Set some defaults for GNU ld with shared library support. These
+ # are reset later if shared libraries are not supported. Putting them
+ # here allows them to be overridden if necessary.
+ runpath_var=LD_RUN_PATH
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
+ # ancient GNU ld didn't support --whole-archive et. al.
+ if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
+ _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
+ else
+ _LT_TAGVAR(whole_archive_flag_spec, $1)=
+ fi
+ supports_anon_versioning=no
+ case `$LD -v 2>&1` in
+ *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
+ *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
+ *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
+ *\ 2.11.*) ;; # other 2.11 versions
+ *) supports_anon_versioning=yes ;;
+ esac
+
+ # See if GNU ld supports shared libraries.
+ case $host_os in
+ aix[[3-9]]*)
+ # On AIX/PPC, the GNU linker is very broken
+ if test "$host_cpu" != ia64; then
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ cat <<_LT_EOF 1>&2
+
+*** Warning: the GNU linker, at least up to release 2.9.1, is reported
+*** to be unable to reliably create shared libraries on AIX.
+*** Therefore, libtool is disabling shared libraries support. If you
+*** really care for shared libraries, you may want to modify your PATH
+*** so that a non-GNU linker is found, and then restart.
+
+_LT_EOF
+ fi
+ ;;
+
+ amigaos*)
+ case $host_cpu in
+ powerpc)
+ # see comment about AmigaOS4 .so support
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)=''
+ ;;
+ m68k)
+ _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
+ ;;
+ esac
+ ;;
+
+ beos*)
+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
+ # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
+ # support --undefined. This deserves some investigation. FIXME
+ _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ else
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+
+ cygwin* | mingw* | pw32* | cegcc*)
+ # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
+ # as there is no search path for DLLs.
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
+ _LT_TAGVAR(always_export_symbols, $1)=no
+ _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
+
+ if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
+ # If the export-symbols file already is a .def file (1st line
+ # is EXPORTS), use it as is; otherwise, prepend...
+ _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
+ cp $export_symbols $output_objdir/$soname.def;
+ else
+ echo EXPORTS > $output_objdir/$soname.def;
+ cat $export_symbols >> $output_objdir/$soname.def;
+ fi~
+ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
+ else
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+
+ interix[[3-9]]*)
+ _LT_TAGVAR(hardcode_direct, $1)=no
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+ # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
+ # Instead, shared libraries are loaded at an image base (0x10000000 by
+ # default) and relocated if they conflict, which is a slow very memory
+ # consuming and fragmenting process. To avoid this, we pick a random,
+ # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
+ # time. Moving up from 0x10000000 also allows more sbrk(2) space.
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
+ ;;
+
+ gnu* | linux* | tpf* | k*bsd*-gnu)
+ tmp_diet=no
+ if test "$host_os" = linux-dietlibc; then
+ case $cc_basename in
+ diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
+ esac
+ fi
+ if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
+ && test "$tmp_diet" = no
+ then
+ tmp_addflag=
+ tmp_sharedflag='-shared'
+ case $cc_basename,$host_cpu in
+ pgcc*) # Portland Group C compiler
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
+ tmp_addflag=' $pic_flag'
+ ;;
+ pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
+ tmp_addflag=' $pic_flag -Mnomain' ;;
+ ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
+ tmp_addflag=' -i_dynamic' ;;
+ efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
+ tmp_addflag=' -i_dynamic -nofor_main' ;;
+ ifc* | ifort*) # Intel Fortran compiler
+ tmp_addflag=' -nofor_main' ;;
+ lf95*) # Lahey Fortran 8.1
+ _LT_TAGVAR(whole_archive_flag_spec, $1)=
+ tmp_sharedflag='--shared' ;;
+ xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
+ tmp_sharedflag='-qmkshrobj'
+ tmp_addflag= ;;
+ esac
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*) # Sun C 5.9
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
+ _LT_TAGVAR(compiler_needs_object, $1)=yes
+ tmp_sharedflag='-G' ;;
+ *Sun\ F*) # Sun Fortran 8.3
+ tmp_sharedflag='-G' ;;
+ esac
+ _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+
+ if test "x$supports_anon_versioning" = xyes; then
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
+ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
+ echo "local: *; };" >> $output_objdir/$libname.ver~
+ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
+ fi
+
+ case $cc_basename in
+ xlf*)
+ # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
+ _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
+ _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
+ if test "x$supports_anon_versioning" = xyes; then
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
+ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
+ echo "local: *; };" >> $output_objdir/$libname.ver~
+ $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
+ fi
+ ;;
+ esac
+ else
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+
+ netbsd* | netbsdelf*-gnu)
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
+ _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
+ wlarc=
+ else
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ fi
+ ;;
+
+ solaris*)
+ if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ cat <<_LT_EOF 1>&2
+
+*** Warning: The releases 2.8.* of the GNU linker cannot reliably
+*** create shared libraries on Solaris systems. Therefore, libtool
+*** is disabling shared libraries support. We urge you to upgrade GNU
+*** binutils to release 2.9.1 or newer. Another option is to modify
+*** your PATH or compiler configuration so that the native linker is
+*** used, and then restart.
+
+_LT_EOF
+ elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ else
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+
+ sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
+ case `$LD -v 2>&1` in
+ *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ cat <<_LT_EOF 1>&2
+
+*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
+*** reliably create shared libraries on SCO systems. Therefore, libtool
+*** is disabling shared libraries support. We urge you to upgrade GNU
+*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
+*** your PATH or compiler configuration so that the native linker is
+*** used, and then restart.
+
+_LT_EOF
+ ;;
+ *)
+ # For security reasons, it is highly recommended that you always
+ # use absolute paths for naming shared libraries, and exclude the
+ # DT_RUNPATH tag from executables and libraries. But doing so
+ # requires that you compile everything twice, which is a pain.
+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ else
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+ esac
+ ;;
+
+ sunos4*)
+ _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+ wlarc=
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ *)
+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ else
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+ esac
+
+ if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
+ runpath_var=
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)=
+ _LT_TAGVAR(whole_archive_flag_spec, $1)=
+ fi
+ else
+ # PORTME fill in a description of your system's linker (not GNU ld)
+ case $host_os in
+ aix3*)
+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
+ _LT_TAGVAR(always_export_symbols, $1)=yes
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
+ # Note: this linker hardcodes the directories in LIBPATH if there
+ # are no directories specified by -L.
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
+ if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
+ # Neither direct hardcoding nor static linking is supported with a
+ # broken collect2.
+ _LT_TAGVAR(hardcode_direct, $1)=unsupported
+ fi
+ ;;
+
+ aix[[4-9]]*)
+ if test "$host_cpu" = ia64; then
+ # On IA64, the linker does run time linking by default, so we don't
+ # have to do anything special.
+ aix_use_runtimelinking=no
+ exp_sym_flag='-Bexport'
+ no_entry_flag=""
+ else
+ # If we're using GNU nm, then we don't want the "-C" option.
+ # -C means demangle to AIX nm, but means don't demangle with GNU nm
+ if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
+ else
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
+ fi
+ aix_use_runtimelinking=no
+
+ # Test if we are trying to use run time linking or normal
+ # AIX style linking. If -brtl is somewhere in LDFLAGS, we
+ # need to do runtime linking.
+ case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
+ for ld_flag in $LDFLAGS; do
+ if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
+ aix_use_runtimelinking=yes
+ break
+ fi
+ done
+ ;;
+ esac
+
+ exp_sym_flag='-bexport'
+ no_entry_flag='-bnoentry'
+ fi
+
+ # When large executables or shared objects are built, AIX ld can
+ # have problems creating the table of contents. If linking a library
+ # or program results in "error TOC overflow" add -mminimal-toc to
+ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
+ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
+
+ _LT_TAGVAR(archive_cmds, $1)=''
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
+ _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
+
+ if test "$GCC" = yes; then
+ case $host_os in aix4.[[012]]|aix4.[[012]].*)
+ # We only want to do this on AIX 4.2 and lower, the check
+ # below for broken collect2 doesn't work under 4.3+
+ collect2name=`${CC} -print-prog-name=collect2`
+ if test -f "$collect2name" &&
+ strings "$collect2name" | $GREP resolve_lib_name >/dev/null
+ then
+ # We have reworked collect2
+ :
+ else
+ # We have old collect2
+ _LT_TAGVAR(hardcode_direct, $1)=unsupported
+ # It fails to find uninstalled libraries when the uninstalled
+ # path is not listed in the libpath. Setting hardcode_minus_L
+ # to unsupported forces relinking
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=
+ fi
+ ;;
+ esac
+ shared_flag='-shared'
+ if test "$aix_use_runtimelinking" = yes; then
+ shared_flag="$shared_flag "'${wl}-G'
+ fi
+ _LT_TAGVAR(link_all_deplibs, $1)=no
+ else
+ # not using gcc
+ if test "$host_cpu" = ia64; then
+ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
+ # chokes on -Wl,-G. The following line is correct:
+ shared_flag='-G'
+ else
+ if test "$aix_use_runtimelinking" = yes; then
+ shared_flag='${wl}-G'
+ else
+ shared_flag='${wl}-bM:SRE'
+ fi
+ fi
+ fi
+
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
+ # It seems that -bexpall does not export symbols beginning with
+ # underscore (_), so it is better to generate a list of symbols to export.
+ _LT_TAGVAR(always_export_symbols, $1)=yes
+ if test "$aix_use_runtimelinking" = yes; then
+ # Warning - without using the other runtime loading flags (-brtl),
+ # -berok will link without error, but may produce a broken library.
+ _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
+ # Determine the default libpath from the value encoded in an
+ # empty executable.
+ _LT_SYS_MODULE_PATH_AIX
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
+ else
+ if test "$host_cpu" = ia64; then
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
+ _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
+ _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
+ else
+ # Determine the default libpath from the value encoded in an
+ # empty executable.
+ _LT_SYS_MODULE_PATH_AIX
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
+ # Warning - without using the other run time loading flags,
+ # -berok will link without error, but may produce a broken library.
+ _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
+ _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
+ # Exported symbols can be pulled into shared objects from archives
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
+ # This is similar to how AIX traditionally builds its shared libraries.
+ _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
+ fi
+ fi
+ ;;
+
+ amigaos*)
+ case $host_cpu in
+ powerpc)
+ # see comment about AmigaOS4 .so support
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)=''
+ ;;
+ m68k)
+ _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
+ ;;
+ esac
+ ;;
+
+ bsdi[[45]]*)
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
+ ;;
+
+ cygwin* | mingw* | pw32* | cegcc*)
+ # When not using gcc, we currently assume that we are using
+ # Microsoft Visual C++.
+ # hardcode_libdir_flag_spec is actually meaningless, as there is
+ # no search path for DLLs.
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
+ # Tell ltmain to make .lib files, not .a files.
+ libext=lib
+ # Tell ltmain to make .dll files, not .so files.
+ shrext_cmds=".dll"
+ # FIXME: Setting linknames here is a bad hack.
+ _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
+ # The linker will automatically build a .lib file if we build a DLL.
+ _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
+ # FIXME: Should let the user specify the lib program.
+ _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
+ _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
+ _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
+ ;;
+
+ darwin* | rhapsody*)
+ _LT_DARWIN_LINKER_FEATURES($1)
+ ;;
+
+ dgux*)
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ freebsd1*)
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+
+ # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
+ # support. Future versions do this automatically, but an explicit c++rt0.o
+ # does not break anything, and helps significantly (at the cost of a little
+ # extra space).
+ freebsd2.2*)
+ _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ # Unfortunately, older versions of FreeBSD 2 do not have this feature.
+ freebsd2*)
+ _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
+ freebsd* | dragonfly*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ hpux9*)
+ if test "$GCC" = yes; then
+ _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+ else
+ _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+ fi
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+
+ # hardcode_minus_L: Not really in the search PATH,
+ # but as the default location of the library.
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+ ;;
+
+ hpux10*)
+ if test "$GCC" = yes -a "$with_gnu_ld" = no; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
+ fi
+ if test "$with_gnu_ld" = no; then
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
+ _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+ # hardcode_minus_L: Not really in the search PATH,
+ # but as the default location of the library.
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
+ fi
+ ;;
+
+ hpux11*)
+ if test "$GCC" = yes -a "$with_gnu_ld" = no; then
+ case $host_cpu in
+ hppa*64*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ ia64*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ *)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ esac
+ else
+ case $host_cpu in
+ hppa*64*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ ia64*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ *)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ esac
+ fi
+ if test "$with_gnu_ld" = no; then
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+
+ case $host_cpu in
+ hppa*64*|ia64*)
+ _LT_TAGVAR(hardcode_direct, $1)=no
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+ *)
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+
+ # hardcode_minus_L: Not really in the search PATH,
+ # but as the default location of the library.
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
+ ;;
+ esac
+ fi
+ ;;
+
+ irix5* | irix6* | nonstopux*)
+ if test "$GCC" = yes; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ # Try to use the -exported_symbol ld option, if it does not
+ # work, assume that -exports_file does not work either and
+ # implicitly export all symbols.
+ save_LDFLAGS="$LDFLAGS"
+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
+ AC_LINK_IFELSE(int foo(void) {},
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
+ )
+ LDFLAGS="$save_LDFLAGS"
+ else
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
+ fi
+ _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+ _LT_TAGVAR(inherit_rpath, $1)=yes
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
+ ;;
+
+ netbsd* | netbsdelf*-gnu)
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
+ _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
+ else
+ _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
+ fi
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ newsos6)
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ *nto* | *qnx*)
+ ;;
+
+ openbsd*)
+ if test -f /usr/libexec/ld.so; then
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+ else
+ case $host_os in
+ openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
+ _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+ ;;
+ *)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+ ;;
+ esac
+ fi
+ else
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+
+ os2*)
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
+ _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
+ _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
+ ;;
+
+ osf3*)
+ if test "$GCC" = yes; then
+ _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ else
+ _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
+ fi
+ _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+ ;;
+
+ osf4* | osf5*) # as osf3* with the addition of -msym flag
+ if test "$GCC" = yes; then
+ _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ else
+ _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
+ $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
+
+ # Both c and cxx compiler support -rpath directly
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
+ fi
+ _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+ ;;
+
+ solaris*)
+ _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
+ if test "$GCC" = yes; then
+ wlarc='${wl}'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+ $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
+ else
+ case `$CC -V 2>&1` in
+ *"Compilers 5.0"*)
+ wlarc=''
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
+ ;;
+ *)
+ wlarc='${wl}'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+ $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
+ ;;
+ esac
+ fi
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ case $host_os in
+ solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
+ *)
+ # The compiler driver will combine and reorder linker options,
+ # but understands `-z linker_flag'. GCC discards it without `$wl',
+ # but is careful enough not to reorder.
+ # Supported since Solaris 2.6 (maybe 2.5.1?)
+ if test "$GCC" = yes; then
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
+ else
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
+ fi
+ ;;
+ esac
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
+ ;;
+
+ sunos4*)
+ if test "x$host_vendor" = xsequent; then
+ # Use $CC to link under sequent, because it throws in some extra .o
+ # files that make .init and .fini sections work.
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
+ fi
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ sysv4)
+ case $host_vendor in
+ sni)
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
+ ;;
+ siemens)
+ ## LD is ld it makes a PLAMLIB
+ ## CC just makes a GrossModule.
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
+ _LT_TAGVAR(hardcode_direct, $1)=no
+ ;;
+ motorola)
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
+ ;;
+ esac
+ runpath_var='LD_RUN_PATH'
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ sysv4.3*)
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
+ ;;
+
+ sysv4*MP*)
+ if test -d /usr/nec; then
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ runpath_var=LD_RUN_PATH
+ hardcode_runpath_var=yes
+ _LT_TAGVAR(ld_shlibs, $1)=yes
+ fi
+ ;;
+
+ sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
+ _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=no
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ runpath_var='LD_RUN_PATH'
+
+ if test "$GCC" = yes; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ fi
+ ;;
+
+ sysv5* | sco3.2v5* | sco5v6*)
+ # Note: We can NOT use -z defs as we might desire, because we do not
+ # link with -lc, and that would cause any symbols used from libc to
+ # always be unresolved, which means just about no library would
+ # ever link correctly. If we're not using GNU ld we use -z text
+ # though, which does catch some bad symbols but isn't as heavy-handed
+ # as -z defs.
+ _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
+ _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=no
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
+ runpath_var='LD_RUN_PATH'
+
+ if test "$GCC" = yes; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ fi
+ ;;
+
+ uts4*)
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ *)
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ esac
+
+ if test x$host_vendor = xsni; then
+ case $host in
+ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
+ ;;
+ esac
+ fi
+ fi
+])
+AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
+test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
+
+_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
+
+_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
+_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
+_LT_DECL([], [extract_expsyms_cmds], [2],
+ [The commands to extract the exported symbol list from a shared archive])
+
+#
+# Do we need to explicitly link libc?
+#
+case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
+x|xyes)
+ # Assume -lc should be added
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
+
+ if test "$enable_shared" = yes && test "$GCC" = yes; then
+ case $_LT_TAGVAR(archive_cmds, $1) in
+ *'~'*)
+ # FIXME: we may have to deal with multi-command sequences.
+ ;;
+ '$CC '*)
+ # Test whether the compiler implicitly links with -lc since on some
+ # systems, -lgcc has to come before -lc. If gcc already passes -lc
+ # to ld, don't add -lc before -lgcc.
+ AC_MSG_CHECKING([whether -lc should be explicitly linked in])
+ $RM conftest*
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+
+ if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
+ soname=conftest
+ lib=conftest
+ libobjs=conftest.$ac_objext
+ deplibs=
+ wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
+ pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
+ compiler_flags=-v
+ linker_flags=-v
+ verstring=
+ output_objdir=.
+ libname=conftest
+ lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
+ _LT_TAGVAR(allow_undefined_flag, $1)=
+ if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
+ then
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=no
+ else
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
+ fi
+ _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
+ else
+ cat conftest.err 1>&5
+ fi
+ $RM conftest*
+ AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
+ ;;
+ esac
+ fi
+ ;;
+esac
+
+_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
+ [Whether or not to add -lc for building shared libraries])
+_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
+ [enable_shared_with_static_runtimes], [0],
+ [Whether or not to disallow shared libs when runtime libs are static])
+_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
+ [Compiler flag to allow reflexive dlopens])
+_LT_TAGDECL([], [whole_archive_flag_spec], [1],
+ [Compiler flag to generate shared objects directly from archives])
+_LT_TAGDECL([], [compiler_needs_object], [1],
+ [Whether the compiler copes with passing no objects directly])
+_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
+ [Create an old-style archive from a shared archive])
+_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
+ [Create a temporary old-style archive to link instead of a shared archive])
+_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
+_LT_TAGDECL([], [archive_expsym_cmds], [2])
+_LT_TAGDECL([], [module_cmds], [2],
+ [Commands used to build a loadable module if different from building
+ a shared archive.])
+_LT_TAGDECL([], [module_expsym_cmds], [2])
+_LT_TAGDECL([], [with_gnu_ld], [1],
+ [Whether we are building with GNU ld or not])
+_LT_TAGDECL([], [allow_undefined_flag], [1],
+ [Flag that allows shared libraries with undefined symbols to be built])
+_LT_TAGDECL([], [no_undefined_flag], [1],
+ [Flag that enforces no undefined symbols])
+_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
+ [Flag to hardcode $libdir into a binary during linking.
+ This must work even if $libdir does not exist])
+_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
+ [[If ld is used when linking, flag to hardcode $libdir into a binary
+ during linking. This must work even if $libdir does not exist]])
+_LT_TAGDECL([], [hardcode_libdir_separator], [1],
+ [Whether we need a single "-rpath" flag with a separated argument])
+_LT_TAGDECL([], [hardcode_direct], [0],
+ [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
+ DIR into the resulting binary])
+_LT_TAGDECL([], [hardcode_direct_absolute], [0],
+ [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
+ DIR into the resulting binary and the resulting library dependency is
+ "absolute", i.e impossible to change by setting ${shlibpath_var} if the
+ library is relocated])
+_LT_TAGDECL([], [hardcode_minus_L], [0],
+ [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
+ into the resulting binary])
+_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
+ [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
+ into the resulting binary])
+_LT_TAGDECL([], [hardcode_automatic], [0],
+ [Set to "yes" if building a shared library automatically hardcodes DIR
+ into the library and all subsequent libraries and executables linked
+ against it])
+_LT_TAGDECL([], [inherit_rpath], [0],
+ [Set to yes if linker adds runtime paths of dependent libraries
+ to runtime path list])
+_LT_TAGDECL([], [link_all_deplibs], [0],
+ [Whether libtool must link a program against all its dependency libraries])
+_LT_TAGDECL([], [fix_srcfile_path], [1],
+ [Fix the shell variable $srcfile for the compiler])
+_LT_TAGDECL([], [always_export_symbols], [0],
+ [Set to "yes" if exported symbols are required])
+_LT_TAGDECL([], [export_symbols_cmds], [2],
+ [The commands to list exported symbols])
+_LT_TAGDECL([], [exclude_expsyms], [1],
+ [Symbols that should not be listed in the preloaded symbols])
+_LT_TAGDECL([], [include_expsyms], [1],
+ [Symbols that must always be exported])
+_LT_TAGDECL([], [prelink_cmds], [2],
+ [Commands necessary for linking programs (against libraries) with templates])
+_LT_TAGDECL([], [file_list_spec], [1],
+ [Specify filename containing input files])
+dnl FIXME: Not yet implemented
+dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
+dnl [Compiler flag to generate thread safe objects])
+])# _LT_LINKER_SHLIBS
+
+
+# _LT_LANG_C_CONFIG([TAG])
+# ------------------------
+# Ensure that the configuration variables for a C compiler are suitably
+# defined. These variables are subsequently used by _LT_CONFIG to write
+# the compiler configuration to `libtool'.
+m4_defun([_LT_LANG_C_CONFIG],
+[m4_require([_LT_DECL_EGREP])dnl
+lt_save_CC="$CC"
+AC_LANG_PUSH(C)
+
+# Source file extension for C test sources.
+ac_ext=c
+
+# Object file extension for compiled C test sources.
+objext=o
+_LT_TAGVAR(objext, $1)=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code="int some_variable = 0;"
+
+# Code to be used in simple link tests
+lt_simple_link_test_code='int main(){return(0);}'
+
+_LT_TAG_COMPILER
+# Save the default compiler, since it gets overwritten when the other
+# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
+compiler_DEFAULT=$CC
+
+# save warnings/boilerplate of simple test code
+_LT_COMPILER_BOILERPLATE
+_LT_LINKER_BOILERPLATE
+
+## CAVEAT EMPTOR:
+## There is no encapsulation within the following macros, do not change
+## the running order or otherwise move them around unless you know exactly
+## what you are doing...
+if test -n "$compiler"; then
+ _LT_COMPILER_NO_RTTI($1)
+ _LT_COMPILER_PIC($1)
+ _LT_COMPILER_C_O($1)
+ _LT_COMPILER_FILE_LOCKS($1)
+ _LT_LINKER_SHLIBS($1)
+ _LT_SYS_DYNAMIC_LINKER($1)
+ _LT_LINKER_HARDCODE_LIBPATH($1)
+ LT_SYS_DLOPEN_SELF
+ _LT_CMD_STRIPLIB
+
+ # Report which library types will actually be built
+ AC_MSG_CHECKING([if libtool supports shared libraries])
+ AC_MSG_RESULT([$can_build_shared])
+
+ AC_MSG_CHECKING([whether to build shared libraries])
+ test "$can_build_shared" = "no" && enable_shared=no
+
+ # On AIX, shared libraries and static libraries use the same namespace, and
+ # are all built from PIC.
+ case $host_os in
+ aix3*)
+ test "$enable_shared" = yes && enable_static=no
+ if test -n "$RANLIB"; then
+ archive_cmds="$archive_cmds~\$RANLIB \$lib"
+ postinstall_cmds='$RANLIB $lib'
+ fi
+ ;;
+
+ aix[[4-9]]*)
+ if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
+ test "$enable_shared" = yes && enable_static=no
+ fi
+ ;;
+ esac
+ AC_MSG_RESULT([$enable_shared])
+
+ AC_MSG_CHECKING([whether to build static libraries])
+ # Make sure either enable_shared or enable_static is yes.
+ test "$enable_shared" = yes || enable_static=yes
+ AC_MSG_RESULT([$enable_static])
+
+ _LT_CONFIG($1)
+fi
+AC_LANG_POP
+CC="$lt_save_CC"
+])# _LT_LANG_C_CONFIG
+
+
+# _LT_PROG_CXX
+# ------------
+# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
+# compiler, we have our own version here.
+m4_defun([_LT_PROG_CXX],
+[
+pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
+AC_PROG_CXX
+if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
+ ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
+ (test "X$CXX" != "Xg++"))) ; then
+ AC_PROG_CXXCPP
+else
+ _lt_caught_CXX_error=yes
+fi
+popdef([AC_MSG_ERROR])
+])# _LT_PROG_CXX
+
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([_LT_PROG_CXX], [])
+
+
+# _LT_LANG_CXX_CONFIG([TAG])
+# --------------------------
+# Ensure that the configuration variables for a C++ compiler are suitably
+# defined. These variables are subsequently used by _LT_CONFIG to write
+# the compiler configuration to `libtool'.
+m4_defun([_LT_LANG_CXX_CONFIG],
+[AC_REQUIRE([_LT_PROG_CXX])dnl
+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+m4_require([_LT_DECL_EGREP])dnl
+
+AC_LANG_PUSH(C++)
+_LT_TAGVAR(archive_cmds_need_lc, $1)=no
+_LT_TAGVAR(allow_undefined_flag, $1)=
+_LT_TAGVAR(always_export_symbols, $1)=no
+_LT_TAGVAR(archive_expsym_cmds, $1)=
+_LT_TAGVAR(compiler_needs_object, $1)=no
+_LT_TAGVAR(export_dynamic_flag_spec, $1)=
+_LT_TAGVAR(hardcode_direct, $1)=no
+_LT_TAGVAR(hardcode_direct_absolute, $1)=no
+_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
+_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
+_LT_TAGVAR(hardcode_libdir_separator, $1)=
+_LT_TAGVAR(hardcode_minus_L, $1)=no
+_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
+_LT_TAGVAR(hardcode_automatic, $1)=no
+_LT_TAGVAR(inherit_rpath, $1)=no
+_LT_TAGVAR(module_cmds, $1)=
+_LT_TAGVAR(module_expsym_cmds, $1)=
+_LT_TAGVAR(link_all_deplibs, $1)=unknown
+_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
+_LT_TAGVAR(no_undefined_flag, $1)=
+_LT_TAGVAR(whole_archive_flag_spec, $1)=
+_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
+
+# Source file extension for C++ test sources.
+ac_ext=cpp
+
+# Object file extension for compiled C++ test sources.
+objext=o
+_LT_TAGVAR(objext, $1)=$objext
+
+# No sense in running all these tests if we already determined that
+# the CXX compiler isn't working. Some variables (like enable_shared)
+# are currently assumed to apply to all compilers on this platform,
+# and will be corrupted by setting them based on a non-working compiler.
+if test "$_lt_caught_CXX_error" != yes; then
+ # Code to be used in simple compile tests
+ lt_simple_compile_test_code="int some_variable = 0;"
+
+ # Code to be used in simple link tests
+ lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
+
+ # ltmain only uses $CC for tagged configurations so make sure $CC is set.
+ _LT_TAG_COMPILER
+
+ # save warnings/boilerplate of simple test code
+ _LT_COMPILER_BOILERPLATE
+ _LT_LINKER_BOILERPLATE
+
+ # Allow CC to be a program name with arguments.
+ lt_save_CC=$CC
+ lt_save_LD=$LD
+ lt_save_GCC=$GCC
+ GCC=$GXX
+ lt_save_with_gnu_ld=$with_gnu_ld
+ lt_save_path_LD=$lt_cv_path_LD
+ if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
+ lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
+ else
+ $as_unset lt_cv_prog_gnu_ld
+ fi
+ if test -n "${lt_cv_path_LDCXX+set}"; then
+ lt_cv_path_LD=$lt_cv_path_LDCXX
+ else
+ $as_unset lt_cv_path_LD
+ fi
+ test -z "${LDCXX+set}" || LD=$LDCXX
+ CC=${CXX-"c++"}
+ compiler=$CC
+ _LT_TAGVAR(compiler, $1)=$CC
+ _LT_CC_BASENAME([$compiler])
+
+ if test -n "$compiler"; then
+ # We don't want -fno-exception when compiling C++ code, so set the
+ # no_builtin_flag separately
+ if test "$GXX" = yes; then
+ _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
+ else
+ _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
+ fi
+
+ if test "$GXX" = yes; then
+ # Set up default GNU C++ configuration
+
+ LT_PATH_LD
+
+ # Check if GNU C++ uses GNU ld as the underlying linker, since the
+ # archiving commands below assume that GNU ld is being used.
+ if test "$with_gnu_ld" = yes; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
+
+ # If archive_cmds runs LD, not CC, wlarc should be empty
+ # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
+ # investigate it a little bit more. (MM)
+ wlarc='${wl}'
+
+ # ancient GNU ld didn't support --whole-archive et. al.
+ if eval "`$CC -print-prog-name=ld` --help 2>&1" |
+ $GREP 'no-whole-archive' > /dev/null; then
+ _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
+ else
+ _LT_TAGVAR(whole_archive_flag_spec, $1)=
+ fi
+ else
+ with_gnu_ld=no
+ wlarc=
+
+ # A generic and very simple default shared library creation
+ # command for GNU C++ for the case where it uses the native
+ # linker, instead of GNU ld. If possible, this setting should
+ # overridden to take advantage of the native linker features on
+ # the platform it is being used on.
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
+ fi
+
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
+
+ else
+ GXX=no
+ with_gnu_ld=no
+ wlarc=
+ fi
+
+ # PORTME: fill in a description of your system's C++ link characteristics
+ AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
+ _LT_TAGVAR(ld_shlibs, $1)=yes
+ case $host_os in
+ aix3*)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ aix[[4-9]]*)
+ if test "$host_cpu" = ia64; then
+ # On IA64, the linker does run time linking by default, so we don't
+ # have to do anything special.
+ aix_use_runtimelinking=no
+ exp_sym_flag='-Bexport'
+ no_entry_flag=""
+ else
+ aix_use_runtimelinking=no
+
+ # Test if we are trying to use run time linking or normal
+ # AIX style linking. If -brtl is somewhere in LDFLAGS, we
+ # need to do runtime linking.
+ case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
+ for ld_flag in $LDFLAGS; do
+ case $ld_flag in
+ *-brtl*)
+ aix_use_runtimelinking=yes
+ break
+ ;;
+ esac
+ done
+ ;;
+ esac
+
+ exp_sym_flag='-bexport'
+ no_entry_flag='-bnoentry'
+ fi
+
+ # When large executables or shared objects are built, AIX ld can
+ # have problems creating the table of contents. If linking a library
+ # or program results in "error TOC overflow" add -mminimal-toc to
+ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
+ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
+
+ _LT_TAGVAR(archive_cmds, $1)=''
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
+ _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
+
+ if test "$GXX" = yes; then
+ case $host_os in aix4.[[012]]|aix4.[[012]].*)
+ # We only want to do this on AIX 4.2 and lower, the check
+ # below for broken collect2 doesn't work under 4.3+
+ collect2name=`${CC} -print-prog-name=collect2`
+ if test -f "$collect2name" &&
+ strings "$collect2name" | $GREP resolve_lib_name >/dev/null
+ then
+ # We have reworked collect2
+ :
+ else
+ # We have old collect2
+ _LT_TAGVAR(hardcode_direct, $1)=unsupported
+ # It fails to find uninstalled libraries when the uninstalled
+ # path is not listed in the libpath. Setting hardcode_minus_L
+ # to unsupported forces relinking
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=
+ fi
+ esac
+ shared_flag='-shared'
+ if test "$aix_use_runtimelinking" = yes; then
+ shared_flag="$shared_flag "'${wl}-G'
+ fi
+ else
+ # not using gcc
+ if test "$host_cpu" = ia64; then
+ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
+ # chokes on -Wl,-G. The following line is correct:
+ shared_flag='-G'
+ else
+ if test "$aix_use_runtimelinking" = yes; then
+ shared_flag='${wl}-G'
+ else
+ shared_flag='${wl}-bM:SRE'
+ fi
+ fi
+ fi
+
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
+ # It seems that -bexpall does not export symbols beginning with
+ # underscore (_), so it is better to generate a list of symbols to
+ # export.
+ _LT_TAGVAR(always_export_symbols, $1)=yes
+ if test "$aix_use_runtimelinking" = yes; then
+ # Warning - without using the other runtime loading flags (-brtl),
+ # -berok will link without error, but may produce a broken library.
+ _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
+ # Determine the default libpath from the value encoded in an empty
+ # executable.
+ _LT_SYS_MODULE_PATH_AIX
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
+
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
+ else
+ if test "$host_cpu" = ia64; then
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
+ _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
+ _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
+ else
+ # Determine the default libpath from the value encoded in an
+ # empty executable.
+ _LT_SYS_MODULE_PATH_AIX
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
+ # Warning - without using the other run time loading flags,
+ # -berok will link without error, but may produce a broken library.
+ _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
+ _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
+ # Exported symbols can be pulled into shared objects from archives
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
+ # This is similar to how AIX traditionally builds its shared
+ # libraries.
+ _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
+ fi
+ fi
+ ;;
+
+ beos*)
+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
+ # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
+ # support --undefined. This deserves some investigation. FIXME
+ _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ else
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+
+ chorus*)
+ case $cc_basename in
+ *)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ esac
+ ;;
+
+ cygwin* | mingw* | pw32* | cegcc*)
+ # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
+ # as there is no search path for DLLs.
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
+ _LT_TAGVAR(always_export_symbols, $1)=no
+ _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
+
+ if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
+ # If the export-symbols file already is a .def file (1st line
+ # is EXPORTS), use it as is; otherwise, prepend...
+ _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
+ cp $export_symbols $output_objdir/$soname.def;
+ else
+ echo EXPORTS > $output_objdir/$soname.def;
+ cat $export_symbols >> $output_objdir/$soname.def;
+ fi~
+ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
+ else
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+ darwin* | rhapsody*)
+ _LT_DARWIN_LINKER_FEATURES($1)
+ ;;
+
+ dgux*)
+ case $cc_basename in
+ ec++*)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ ghcx*)
+ # Green Hills C++ Compiler
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ *)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ esac
+ ;;
+
+ freebsd[[12]]*)
+ # C++ shared libraries reported to be fairly broken before
+ # switch to ELF
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+
+ freebsd-elf*)
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=no
+ ;;
+
+ freebsd* | dragonfly*)
+ # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
+ # conventions
+ _LT_TAGVAR(ld_shlibs, $1)=yes
+ ;;
+
+ gnu*)
+ ;;
+
+ hpux9*)
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
+ # but as the default
+ # location of the library.
+
+ case $cc_basename in
+ CC*)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ aCC*)
+ _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ #
+ # There doesn't appear to be a way to prevent this compiler from
+ # explicitly linking system object files so we need to strip them
+ # from the output so that they don't get included in the library
+ # dependencies.
+ output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
+ ;;
+ *)
+ if test "$GXX" = yes; then
+ _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+ else
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+ esac
+ ;;
+
+ hpux10*|hpux11*)
+ if test $with_gnu_ld = no; then
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+
+ case $host_cpu in
+ hppa*64*|ia64*)
+ ;;
+ *)
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+ ;;
+ esac
+ fi
+ case $host_cpu in
+ hppa*64*|ia64*)
+ _LT_TAGVAR(hardcode_direct, $1)=no
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+ *)
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
+ # but as the default
+ # location of the library.
+ ;;
+ esac
+
+ case $cc_basename in
+ CC*)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ aCC*)
+ case $host_cpu in
+ hppa*64*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ ;;
+ ia64*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ ;;
+ *)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ ;;
+ esac
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ #
+ # There doesn't appear to be a way to prevent this compiler from
+ # explicitly linking system object files so we need to strip them
+ # from the output so that they don't get included in the library
+ # dependencies.
+ output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
+ ;;
+ *)
+ if test "$GXX" = yes; then
+ if test $with_gnu_ld = no; then
+ case $host_cpu in
+ hppa*64*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ ;;
+ ia64*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ ;;
+ *)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ ;;
+ esac
+ fi
+ else
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+ esac
+ ;;
+
+ interix[[3-9]]*)
+ _LT_TAGVAR(hardcode_direct, $1)=no
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+ # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
+ # Instead, shared libraries are loaded at an image base (0x10000000 by
+ # default) and relocated if they conflict, which is a slow very memory
+ # consuming and fragmenting process. To avoid this, we pick a random,
+ # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
+ # time. Moving up from 0x10000000 also allows more sbrk(2) space.
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
+ ;;
+ irix5* | irix6*)
+ case $cc_basename in
+ CC*)
+ # SGI C++
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
+
+ # Archives containing C++ object files must be created using
+ # "CC -ar", where "CC" is the IRIX C++ compiler. This is
+ # necessary to make sure instantiated templates are included
+ # in the archive.
+ _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
+ ;;
+ *)
+ if test "$GXX" = yes; then
+ if test "$with_gnu_ld" = no; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ else
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
+ fi
+ fi
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
+ ;;
+ esac
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+ _LT_TAGVAR(inherit_rpath, $1)=yes
+ ;;
+
+ linux* | k*bsd*-gnu)
+ case $cc_basename in
+ KCC*)
+ # Kuck and Associates, Inc. (KAI) C++ Compiler
+
+ # KCC will only create a shared library if the output file
+ # ends with ".so" (or ".sl" for HP-UX), so rename the library
+ # to its proper name (with version) after linking.
+ _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ #
+ # There doesn't appear to be a way to prevent this compiler from
+ # explicitly linking system object files so we need to strip them
+ # from the output so that they don't get included in the library
+ # dependencies.
+ output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
+
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
+
+ # Archives containing C++ object files must be created using
+ # "CC -Bstatic", where "CC" is the KAI C++ compiler.
+ _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
+ ;;
+ icpc* | ecpc* )
+ # Intel C++
+ with_gnu_ld=yes
+ # version 8.0 and above of icpc choke on multiply defined symbols
+ # if we add $predep_objects and $postdep_objects, however 7.1 and
+ # earlier do not add the objects themselves.
+ case `$CC -V 2>&1` in
+ *"Version 7."*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ ;;
+ *) # Version 8.0 or newer
+ tmp_idyn=
+ case $host_cpu in
+ ia64*) tmp_idyn=' -i_dynamic';;
+ esac
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ ;;
+ esac
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=no
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
+ ;;
+ pgCC* | pgcpp*)
+ # Portland Group C++ compiler
+ case `$CC -V` in
+ *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
+ _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
+ rm -rf $tpldir~
+ $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
+ compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
+ _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
+ rm -rf $tpldir~
+ $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
+ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
+ $RANLIB $oldlib'
+ _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
+ rm -rf $tpldir~
+ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
+ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
+ rm -rf $tpldir~
+ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
+ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
+ ;;
+ *) # Version 6 will use weak symbols
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
+ ;;
+ esac
+
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
+ ;;
+ cxx*)
+ # Compaq C++
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
+
+ runpath_var=LD_RUN_PATH
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ #
+ # There doesn't appear to be a way to prevent this compiler from
+ # explicitly linking system object files so we need to strip them
+ # from the output so that they don't get included in the library
+ # dependencies.
+ output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
+ ;;
+ xl*)
+ # IBM XL 8.0 on PPC, with GNU ld
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ if test "x$supports_anon_versioning" = xyes; then
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
+ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
+ echo "local: *; };" >> $output_objdir/$libname.ver~
+ $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
+ fi
+ ;;
+ *)
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*)
+ # Sun C++ 5.9
+ _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
+ _LT_TAGVAR(compiler_needs_object, $1)=yes
+
+ # Not sure whether something based on
+ # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
+ # would be better.
+ output_verbose_link_cmd='echo'
+
+ # Archives containing C++ object files must be created using
+ # "CC -xar", where "CC" is the Sun C++ compiler. This is
+ # necessary to make sure instantiated templates are included
+ # in the archive.
+ _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
+ ;;
+ esac
+ ;;
+ esac
+ ;;
+
+ lynxos*)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+
+ m88k*)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+
+ mvs*)
+ case $cc_basename in
+ cxx*)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ *)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ esac
+ ;;
+
+ netbsd*)
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
+ _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
+ wlarc=
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ fi
+ # Workaround some broken pre-1.5 toolchains
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
+ ;;
+
+ *nto* | *qnx*)
+ _LT_TAGVAR(ld_shlibs, $1)=yes
+ ;;
+
+ openbsd2*)
+ # C++ shared libraries are fairly broken
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+
+ openbsd*)
+ if test -f /usr/libexec/ld.so; then
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+ _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
+ fi
+ output_verbose_link_cmd=echo
+ else
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+
+ osf3* | osf4* | osf5*)
+ case $cc_basename in
+ KCC*)
+ # Kuck and Associates, Inc. (KAI) C++ Compiler
+
+ # KCC will only create a shared library if the output file
+ # ends with ".so" (or ".sl" for HP-UX), so rename the library
+ # to its proper name (with version) after linking.
+ _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
+
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+
+ # Archives containing C++ object files must be created using
+ # the KAI C++ compiler.
+ case $host in
+ osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
+ *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
+ esac
+ ;;
+ RCC*)
+ # Rational C++ 2.4.1
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ cxx*)
+ case $host in
+ osf3*)
+ _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ ;;
+ *)
+ _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
+ echo "-hidden">> $lib.exp~
+ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
+ $RM $lib.exp'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
+ ;;
+ esac
+
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ #
+ # There doesn't appear to be a way to prevent this compiler from
+ # explicitly linking system object files so we need to strip them
+ # from the output so that they don't get included in the library
+ # dependencies.
+ output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
+ ;;
+ *)
+ if test "$GXX" = yes && test "$with_gnu_ld" = no; then
+ _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
+ case $host in
+ osf3*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ ;;
+ *)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ ;;
+ esac
+
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
+
+ else
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+ esac
+ ;;
+
+ psos*)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+
+ sunos4*)
+ case $cc_basename in
+ CC*)
+ # Sun C++ 4.x
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ lcc*)
+ # Lucid
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ *)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ esac
+ ;;
+
+ solaris*)
+ case $cc_basename in
+ CC*)
+ # Sun C++ 4.2, 5.x and Centerline C++
+ _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
+ _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+ $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
+
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ case $host_os in
+ solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
+ *)
+ # The compiler driver will combine and reorder linker options,
+ # but understands `-z linker_flag'.
+ # Supported since Solaris 2.6 (maybe 2.5.1?)
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
+ ;;
+ esac
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
+
+ output_verbose_link_cmd='echo'
+
+ # Archives containing C++ object files must be created using
+ # "CC -xar", where "CC" is the Sun C++ compiler. This is
+ # necessary to make sure instantiated templates are included
+ # in the archive.
+ _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
+ ;;
+ gcx*)
+ # Green Hills C++ Compiler
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
+
+ # The C++ compiler must be used to create the archive.
+ _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
+ ;;
+ *)
+ # GNU C++ compiler with Solaris linker
+ if test "$GXX" = yes && test "$with_gnu_ld" = no; then
+ _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
+ if $CC --version | $GREP -v '^2\.7' > /dev/null; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+ $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
+
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
+ else
+ # g++ 2.7 appears to require `-G' NOT `-shared' on this
+ # platform.
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
+
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
+ fi
+
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
+ case $host_os in
+ solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
+ *)
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
+ ;;
+ esac
+ fi
+ ;;
+ esac
+ ;;
+
+ sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
+ _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=no
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ runpath_var='LD_RUN_PATH'
+
+ case $cc_basename in
+ CC*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ *)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ esac
+ ;;
+
+ sysv5* | sco3.2v5* | sco5v6*)
+ # Note: We can NOT use -z defs as we might desire, because we do not
+ # link with -lc, and that would cause any symbols used from libc to
+ # always be unresolved, which means just about no library would
+ # ever link correctly. If we're not using GNU ld we use -z text
+ # though, which does catch some bad symbols but isn't as heavy-handed
+ # as -z defs.
+ _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
+ _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=no
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
+ runpath_var='LD_RUN_PATH'
+
+ case $cc_basename in
+ CC*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ *)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ esac
+ ;;
+
+ tandem*)
+ case $cc_basename in
+ NCC*)
+ # NonStop-UX NCC 3.20
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ *)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ esac
+ ;;
+
+ vxworks*)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+
+ *)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ esac
+
+ AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
+ test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
+
+ _LT_TAGVAR(GCC, $1)="$GXX"
+ _LT_TAGVAR(LD, $1)="$LD"
+
+ ## CAVEAT EMPTOR:
+ ## There is no encapsulation within the following macros, do not change
+ ## the running order or otherwise move them around unless you know exactly
+ ## what you are doing...
+ _LT_SYS_HIDDEN_LIBDEPS($1)
+ _LT_COMPILER_PIC($1)
+ _LT_COMPILER_C_O($1)
+ _LT_COMPILER_FILE_LOCKS($1)
+ _LT_LINKER_SHLIBS($1)
+ _LT_SYS_DYNAMIC_LINKER($1)
+ _LT_LINKER_HARDCODE_LIBPATH($1)
+
+ _LT_CONFIG($1)
+ fi # test -n "$compiler"
+
+ CC=$lt_save_CC
+ LDCXX=$LD
+ LD=$lt_save_LD
+ GCC=$lt_save_GCC
+ with_gnu_ld=$lt_save_with_gnu_ld
+ lt_cv_path_LDCXX=$lt_cv_path_LD
+ lt_cv_path_LD=$lt_save_path_LD
+ lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
+ lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
+fi # test "$_lt_caught_CXX_error" != yes
+
+AC_LANG_POP
+])# _LT_LANG_CXX_CONFIG
+
+
+# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
+# ---------------------------------
+# Figure out "hidden" library dependencies from verbose
+# compiler output when linking a shared library.
+# Parse the compiler output and extract the necessary
+# objects, libraries and library flags.
+m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
+[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+# Dependencies to place before and after the object being linked:
+_LT_TAGVAR(predep_objects, $1)=
+_LT_TAGVAR(postdep_objects, $1)=
+_LT_TAGVAR(predeps, $1)=
+_LT_TAGVAR(postdeps, $1)=
+_LT_TAGVAR(compiler_lib_search_path, $1)=
+
+dnl we can't use the lt_simple_compile_test_code here,
+dnl because it contains code intended for an executable,
+dnl not a library. It's possible we should let each
+dnl tag define a new lt_????_link_test_code variable,
+dnl but it's only used here...
+m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
+int a;
+void foo (void) { a = 0; }
+_LT_EOF
+], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
+class Foo
+{
+public:
+ Foo (void) { a = 0; }
+private:
+ int a;
+};
+_LT_EOF
+], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
+ subroutine foo
+ implicit none
+ integer*4 a
+ a=0
+ return
+ end
+_LT_EOF
+], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
+ subroutine foo
+ implicit none
+ integer a
+ a=0
+ return
+ end
+_LT_EOF
+], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
+public class foo {
+ private int a;
+ public void bar (void) {
+ a = 0;
+ }
+};
+_LT_EOF
+])
+dnl Parse the compiler output and extract the necessary
+dnl objects, libraries and library flags.
+if AC_TRY_EVAL(ac_compile); then
+ # Parse the compiler output and extract the necessary
+ # objects, libraries and library flags.
+
+ # Sentinel used to keep track of whether or not we are before
+ # the conftest object file.
+ pre_test_object_deps_done=no
+
+ for p in `eval "$output_verbose_link_cmd"`; do
+ case $p in
+
+ -L* | -R* | -l*)
+ # Some compilers place space between "-{L,R}" and the path.
+ # Remove the space.
+ if test $p = "-L" ||
+ test $p = "-R"; then
+ prev=$p
+ continue
+ else
+ prev=
+ fi
+
+ if test "$pre_test_object_deps_done" = no; then
+ case $p in
+ -L* | -R*)
+ # Internal compiler library paths should come after those
+ # provided the user. The postdeps already come after the
+ # user supplied libs so there is no need to process them.
+ if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
+ _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
+ else
+ _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
+ fi
+ ;;
+ # The "-l" case would never come before the object being
+ # linked, so don't bother handling this case.
+ esac
+ else
+ if test -z "$_LT_TAGVAR(postdeps, $1)"; then
+ _LT_TAGVAR(postdeps, $1)="${prev}${p}"
+ else
+ _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
+ fi
+ fi
+ ;;
+
+ *.$objext)
+ # This assumes that the test object file only shows up
+ # once in the compiler output.
+ if test "$p" = "conftest.$objext"; then
+ pre_test_object_deps_done=yes
+ continue
+ fi
+
+ if test "$pre_test_object_deps_done" = no; then
+ if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
+ _LT_TAGVAR(predep_objects, $1)="$p"
+ else
+ _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
+ fi
+ else
+ if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
+ _LT_TAGVAR(postdep_objects, $1)="$p"
+ else
+ _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
+ fi
+ fi
+ ;;
+
+ *) ;; # Ignore the rest.
+
+ esac
+ done
+
+ # Clean up.
+ rm -f a.out a.exe
+else
+ echo "libtool.m4: error: problem compiling $1 test program"
+fi
+
+$RM -f confest.$objext
+
+# PORTME: override above test on systems where it is broken
+m4_if([$1], [CXX],
+[case $host_os in
+interix[[3-9]]*)
+ # Interix 3.5 installs completely hosed .la files for C++, so rather than
+ # hack all around it, let's just trust "g++" to DTRT.
+ _LT_TAGVAR(predep_objects,$1)=
+ _LT_TAGVAR(postdep_objects,$1)=
+ _LT_TAGVAR(postdeps,$1)=
+ ;;
+
+linux*)
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*)
+ # Sun C++ 5.9
+
+ # The more standards-conforming stlport4 library is
+ # incompatible with the Cstd library. Avoid specifying
+ # it if it's in CXXFLAGS. Ignore libCrun as
+ # -library=stlport4 depends on it.
+ case " $CXX $CXXFLAGS " in
+ *" -library=stlport4 "*)
+ solaris_use_stlport4=yes
+ ;;
+ esac
+
+ if test "$solaris_use_stlport4" != yes; then
+ _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
+ fi
+ ;;
+ esac
+ ;;
+
+solaris*)
+ case $cc_basename in
+ CC*)
+ # The more standards-conforming stlport4 library is
+ # incompatible with the Cstd library. Avoid specifying
+ # it if it's in CXXFLAGS. Ignore libCrun as
+ # -library=stlport4 depends on it.
+ case " $CXX $CXXFLAGS " in
+ *" -library=stlport4 "*)
+ solaris_use_stlport4=yes
+ ;;
+ esac
+
+ # Adding this requires a known-good setup of shared libraries for
+ # Sun compiler versions before 5.6, else PIC objects from an old
+ # archive will be linked into the output, leading to subtle bugs.
+ if test "$solaris_use_stlport4" != yes; then
+ _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
+ fi
+ ;;
+ esac
+ ;;
+esac
+])
+
+case " $_LT_TAGVAR(postdeps, $1) " in
+*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
+esac
+ _LT_TAGVAR(compiler_lib_search_dirs, $1)=
+if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
+ _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
+fi
+_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
+ [The directories searched by this compiler when creating a shared library])
+_LT_TAGDECL([], [predep_objects], [1],
+ [Dependencies to place before and after the objects being linked to
+ create a shared library])
+_LT_TAGDECL([], [postdep_objects], [1])
+_LT_TAGDECL([], [predeps], [1])
+_LT_TAGDECL([], [postdeps], [1])
+_LT_TAGDECL([], [compiler_lib_search_path], [1],
+ [The library search path used internally by the compiler when linking
+ a shared library])
+])# _LT_SYS_HIDDEN_LIBDEPS
+
+
+# _LT_PROG_F77
+# ------------
+# Since AC_PROG_F77 is broken, in that it returns the empty string
+# if there is no fortran compiler, we have our own version here.
+m4_defun([_LT_PROG_F77],
+[
+pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
+AC_PROG_F77
+if test -z "$F77" || test "X$F77" = "Xno"; then
+ _lt_disable_F77=yes
+fi
+popdef([AC_MSG_ERROR])
+])# _LT_PROG_F77
+
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([_LT_PROG_F77], [])
+
+
+# _LT_LANG_F77_CONFIG([TAG])
+# --------------------------
+# Ensure that the configuration variables for a Fortran 77 compiler are
+# suitably defined. These variables are subsequently used by _LT_CONFIG
+# to write the compiler configuration to `libtool'.
+m4_defun([_LT_LANG_F77_CONFIG],
+[AC_REQUIRE([_LT_PROG_F77])dnl
+AC_LANG_PUSH(Fortran 77)
+
+_LT_TAGVAR(archive_cmds_need_lc, $1)=no
+_LT_TAGVAR(allow_undefined_flag, $1)=
+_LT_TAGVAR(always_export_symbols, $1)=no
+_LT_TAGVAR(archive_expsym_cmds, $1)=
+_LT_TAGVAR(export_dynamic_flag_spec, $1)=
+_LT_TAGVAR(hardcode_direct, $1)=no
+_LT_TAGVAR(hardcode_direct_absolute, $1)=no
+_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
+_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
+_LT_TAGVAR(hardcode_libdir_separator, $1)=
+_LT_TAGVAR(hardcode_minus_L, $1)=no
+_LT_TAGVAR(hardcode_automatic, $1)=no
+_LT_TAGVAR(inherit_rpath, $1)=no
+_LT_TAGVAR(module_cmds, $1)=
+_LT_TAGVAR(module_expsym_cmds, $1)=
+_LT_TAGVAR(link_all_deplibs, $1)=unknown
+_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
+_LT_TAGVAR(no_undefined_flag, $1)=
+_LT_TAGVAR(whole_archive_flag_spec, $1)=
+_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
+
+# Source file extension for f77 test sources.
+ac_ext=f
+
+# Object file extension for compiled f77 test sources.
+objext=o
+_LT_TAGVAR(objext, $1)=$objext
+
+# No sense in running all these tests if we already determined that
+# the F77 compiler isn't working. Some variables (like enable_shared)
+# are currently assumed to apply to all compilers on this platform,
+# and will be corrupted by setting them based on a non-working compiler.
+if test "$_lt_disable_F77" != yes; then
+ # Code to be used in simple compile tests
+ lt_simple_compile_test_code="\
+ subroutine t
+ return
+ end
+"
+
+ # Code to be used in simple link tests
+ lt_simple_link_test_code="\
+ program t
+ end
+"
+
+ # ltmain only uses $CC for tagged configurations so make sure $CC is set.
+ _LT_TAG_COMPILER
+
+ # save warnings/boilerplate of simple test code
+ _LT_COMPILER_BOILERPLATE
+ _LT_LINKER_BOILERPLATE
+
+ # Allow CC to be a program name with arguments.
+ lt_save_CC="$CC"
+ lt_save_GCC=$GCC
+ CC=${F77-"f77"}
+ compiler=$CC
+ _LT_TAGVAR(compiler, $1)=$CC
+ _LT_CC_BASENAME([$compiler])
+ GCC=$G77
+ if test -n "$compiler"; then
+ AC_MSG_CHECKING([if libtool supports shared libraries])
+ AC_MSG_RESULT([$can_build_shared])
+
+ AC_MSG_CHECKING([whether to build shared libraries])
+ test "$can_build_shared" = "no" && enable_shared=no
+
+ # On AIX, shared libraries and static libraries use the same namespace, and
+ # are all built from PIC.
+ case $host_os in
+ aix3*)
+ test "$enable_shared" = yes && enable_static=no
+ if test -n "$RANLIB"; then
+ archive_cmds="$archive_cmds~\$RANLIB \$lib"
+ postinstall_cmds='$RANLIB $lib'
+ fi
+ ;;
+ aix[[4-9]]*)
+ if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
+ test "$enable_shared" = yes && enable_static=no
+ fi
+ ;;
+ esac
+ AC_MSG_RESULT([$enable_shared])
+
+ AC_MSG_CHECKING([whether to build static libraries])
+ # Make sure either enable_shared or enable_static is yes.
+ test "$enable_shared" = yes || enable_static=yes
+ AC_MSG_RESULT([$enable_static])
+
+ _LT_TAGVAR(GCC, $1)="$G77"
+ _LT_TAGVAR(LD, $1)="$LD"
+
+ ## CAVEAT EMPTOR:
+ ## There is no encapsulation within the following macros, do not change
+ ## the running order or otherwise move them around unless you know exactly
+ ## what you are doing...
+ _LT_COMPILER_PIC($1)
+ _LT_COMPILER_C_O($1)
+ _LT_COMPILER_FILE_LOCKS($1)
+ _LT_LINKER_SHLIBS($1)
+ _LT_SYS_DYNAMIC_LINKER($1)
+ _LT_LINKER_HARDCODE_LIBPATH($1)
+
+ _LT_CONFIG($1)
+ fi # test -n "$compiler"
+
+ GCC=$lt_save_GCC
+ CC="$lt_save_CC"
+fi # test "$_lt_disable_F77" != yes
+
+AC_LANG_POP
+])# _LT_LANG_F77_CONFIG
+
+
+# _LT_PROG_FC
+# -----------
+# Since AC_PROG_FC is broken, in that it returns the empty string
+# if there is no fortran compiler, we have our own version here.
+m4_defun([_LT_PROG_FC],
+[
+pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
+AC_PROG_FC
+if test -z "$FC" || test "X$FC" = "Xno"; then
+ _lt_disable_FC=yes
+fi
+popdef([AC_MSG_ERROR])
+])# _LT_PROG_FC
+
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([_LT_PROG_FC], [])
+
+
+# _LT_LANG_FC_CONFIG([TAG])
+# -------------------------
+# Ensure that the configuration variables for a Fortran compiler are
+# suitably defined. These variables are subsequently used by _LT_CONFIG
+# to write the compiler configuration to `libtool'.
+m4_defun([_LT_LANG_FC_CONFIG],
+[AC_REQUIRE([_LT_PROG_FC])dnl
+AC_LANG_PUSH(Fortran)
+
+_LT_TAGVAR(archive_cmds_need_lc, $1)=no
+_LT_TAGVAR(allow_undefined_flag, $1)=
+_LT_TAGVAR(always_export_symbols, $1)=no
+_LT_TAGVAR(archive_expsym_cmds, $1)=
+_LT_TAGVAR(export_dynamic_flag_spec, $1)=
+_LT_TAGVAR(hardcode_direct, $1)=no
+_LT_TAGVAR(hardcode_direct_absolute, $1)=no
+_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
+_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
+_LT_TAGVAR(hardcode_libdir_separator, $1)=
+_LT_TAGVAR(hardcode_minus_L, $1)=no
+_LT_TAGVAR(hardcode_automatic, $1)=no
+_LT_TAGVAR(inherit_rpath, $1)=no
+_LT_TAGVAR(module_cmds, $1)=
+_LT_TAGVAR(module_expsym_cmds, $1)=
+_LT_TAGVAR(link_all_deplibs, $1)=unknown
+_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
+_LT_TAGVAR(no_undefined_flag, $1)=
+_LT_TAGVAR(whole_archive_flag_spec, $1)=
+_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
+
+# Source file extension for fc test sources.
+ac_ext=${ac_fc_srcext-f}
+
+# Object file extension for compiled fc test sources.
+objext=o
+_LT_TAGVAR(objext, $1)=$objext
+
+# No sense in running all these tests if we already determined that
+# the FC compiler isn't working. Some variables (like enable_shared)
+# are currently assumed to apply to all compilers on this platform,
+# and will be corrupted by setting them based on a non-working compiler.
+if test "$_lt_disable_FC" != yes; then
+ # Code to be used in simple compile tests
+ lt_simple_compile_test_code="\
+ subroutine t
+ return
+ end
+"
+
+ # Code to be used in simple link tests
+ lt_simple_link_test_code="\
+ program t
+ end
+"
+
+ # ltmain only uses $CC for tagged configurations so make sure $CC is set.
+ _LT_TAG_COMPILER
+
+ # save warnings/boilerplate of simple test code
+ _LT_COMPILER_BOILERPLATE
+ _LT_LINKER_BOILERPLATE
+
+ # Allow CC to be a program name with arguments.
+ lt_save_CC="$CC"
+ lt_save_GCC=$GCC
+ CC=${FC-"f95"}
+ compiler=$CC
+ GCC=$ac_cv_fc_compiler_gnu
+
+ _LT_TAGVAR(compiler, $1)=$CC
+ _LT_CC_BASENAME([$compiler])
+
+ if test -n "$compiler"; then
+ AC_MSG_CHECKING([if libtool supports shared libraries])
+ AC_MSG_RESULT([$can_build_shared])
+
+ AC_MSG_CHECKING([whether to build shared libraries])
+ test "$can_build_shared" = "no" && enable_shared=no
+
+ # On AIX, shared libraries and static libraries use the same namespace, and
+ # are all built from PIC.
+ case $host_os in
+ aix3*)
+ test "$enable_shared" = yes && enable_static=no
+ if test -n "$RANLIB"; then
+ archive_cmds="$archive_cmds~\$RANLIB \$lib"
+ postinstall_cmds='$RANLIB $lib'
+ fi
+ ;;
+ aix[[4-9]]*)
+ if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
+ test "$enable_shared" = yes && enable_static=no
+ fi
+ ;;
+ esac
+ AC_MSG_RESULT([$enable_shared])
+
+ AC_MSG_CHECKING([whether to build static libraries])
+ # Make sure either enable_shared or enable_static is yes.
+ test "$enable_shared" = yes || enable_static=yes
+ AC_MSG_RESULT([$enable_static])
+
+ _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
+ _LT_TAGVAR(LD, $1)="$LD"
+
+ ## CAVEAT EMPTOR:
+ ## There is no encapsulation within the following macros, do not change
+ ## the running order or otherwise move them around unless you know exactly
+ ## what you are doing...
+ _LT_SYS_HIDDEN_LIBDEPS($1)
+ _LT_COMPILER_PIC($1)
+ _LT_COMPILER_C_O($1)
+ _LT_COMPILER_FILE_LOCKS($1)
+ _LT_LINKER_SHLIBS($1)
+ _LT_SYS_DYNAMIC_LINKER($1)
+ _LT_LINKER_HARDCODE_LIBPATH($1)
+
+ _LT_CONFIG($1)
+ fi # test -n "$compiler"
+
+ GCC=$lt_save_GCC
+ CC="$lt_save_CC"
+fi # test "$_lt_disable_FC" != yes
+
+AC_LANG_POP
+])# _LT_LANG_FC_CONFIG
+
+
+# _LT_LANG_GCJ_CONFIG([TAG])
+# --------------------------
+# Ensure that the configuration variables for the GNU Java Compiler compiler
+# are suitably defined. These variables are subsequently used by _LT_CONFIG
+# to write the compiler configuration to `libtool'.
+m4_defun([_LT_LANG_GCJ_CONFIG],
+[AC_REQUIRE([LT_PROG_GCJ])dnl
+AC_LANG_SAVE
+
+# Source file extension for Java test sources.
+ac_ext=java
+
+# Object file extension for compiled Java test sources.
+objext=o
+_LT_TAGVAR(objext, $1)=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code="class foo {}"
+
+# Code to be used in simple link tests
+lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
+
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
+_LT_TAG_COMPILER
+
+# save warnings/boilerplate of simple test code
+_LT_COMPILER_BOILERPLATE
+_LT_LINKER_BOILERPLATE
+
+# Allow CC to be a program name with arguments.
+lt_save_CC="$CC"
+lt_save_GCC=$GCC
+GCC=yes
+CC=${GCJ-"gcj"}
+compiler=$CC
+_LT_TAGVAR(compiler, $1)=$CC
+_LT_TAGVAR(LD, $1)="$LD"
+_LT_CC_BASENAME([$compiler])
+
+# GCJ did not exist at the time GCC didn't implicitly link libc in.
+_LT_TAGVAR(archive_cmds_need_lc, $1)=no
+
+_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
+
+## CAVEAT EMPTOR:
+## There is no encapsulation within the following macros, do not change
+## the running order or otherwise move them around unless you know exactly
+## what you are doing...
+if test -n "$compiler"; then
+ _LT_COMPILER_NO_RTTI($1)
+ _LT_COMPILER_PIC($1)
+ _LT_COMPILER_C_O($1)
+ _LT_COMPILER_FILE_LOCKS($1)
+ _LT_LINKER_SHLIBS($1)
+ _LT_LINKER_HARDCODE_LIBPATH($1)
+
+ _LT_CONFIG($1)
+fi
+
+AC_LANG_RESTORE
+
+GCC=$lt_save_GCC
+CC="$lt_save_CC"
+])# _LT_LANG_GCJ_CONFIG
+
+
+# _LT_LANG_RC_CONFIG([TAG])
+# -------------------------
+# Ensure that the configuration variables for the Windows resource compiler
+# are suitably defined. These variables are subsequently used by _LT_CONFIG
+# to write the compiler configuration to `libtool'.
+m4_defun([_LT_LANG_RC_CONFIG],
+[AC_REQUIRE([LT_PROG_RC])dnl
+AC_LANG_SAVE
+
+# Source file extension for RC test sources.
+ac_ext=rc
+
+# Object file extension for compiled RC test sources.
+objext=o
+_LT_TAGVAR(objext, $1)=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
+
+# Code to be used in simple link tests
+lt_simple_link_test_code="$lt_simple_compile_test_code"
+
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
+_LT_TAG_COMPILER
+
+# save warnings/boilerplate of simple test code
+_LT_COMPILER_BOILERPLATE
+_LT_LINKER_BOILERPLATE
+
+# Allow CC to be a program name with arguments.
+lt_save_CC="$CC"
+lt_save_GCC=$GCC
+GCC=
+CC=${RC-"windres"}
+compiler=$CC
+_LT_TAGVAR(compiler, $1)=$CC
+_LT_CC_BASENAME([$compiler])
+_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
+
+if test -n "$compiler"; then
+ :
+ _LT_CONFIG($1)
+fi
+
+GCC=$lt_save_GCC
+AC_LANG_RESTORE
+CC="$lt_save_CC"
+])# _LT_LANG_RC_CONFIG
+
+
+# LT_PROG_GCJ
+# -----------
+AC_DEFUN([LT_PROG_GCJ],
+[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
+ [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
+ [AC_CHECK_TOOL(GCJ, gcj,)
+ test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
+ AC_SUBST(GCJFLAGS)])])[]dnl
+])
+
+# Old name:
+AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
+
+
+# LT_PROG_RC
+# ----------
+AC_DEFUN([LT_PROG_RC],
+[AC_CHECK_TOOL(RC, windres,)
+])
+
+# Old name:
+AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([LT_AC_PROG_RC], [])
+
+
+# _LT_DECL_EGREP
+# --------------
+# If we don't have a new enough Autoconf to choose the best grep
+# available, choose the one first in the user's PATH.
+m4_defun([_LT_DECL_EGREP],
+[AC_REQUIRE([AC_PROG_EGREP])dnl
+AC_REQUIRE([AC_PROG_FGREP])dnl
+test -z "$GREP" && GREP=grep
+_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
+_LT_DECL([], [EGREP], [1], [An ERE matcher])
+_LT_DECL([], [FGREP], [1], [A literal string matcher])
+dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
+AC_SUBST([GREP])
+])
+
+
+# _LT_DECL_OBJDUMP
+# --------------
+# If we don't have a new enough Autoconf to choose the best objdump
+# available, choose the one first in the user's PATH.
+m4_defun([_LT_DECL_OBJDUMP],
+[AC_CHECK_TOOL(OBJDUMP, objdump, false)
+test -z "$OBJDUMP" && OBJDUMP=objdump
+_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
+AC_SUBST([OBJDUMP])
+])
+
+
+# _LT_DECL_SED
+# ------------
+# Check for a fully-functional sed program, that truncates
+# as few characters as possible. Prefer GNU sed if found.
+m4_defun([_LT_DECL_SED],
+[AC_PROG_SED
+test -z "$SED" && SED=sed
+Xsed="$SED -e 1s/^X//"
+_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
+_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
+ [Sed that helps us avoid accidentally triggering echo(1) options like -n])
+])# _LT_DECL_SED
+
+m4_ifndef([AC_PROG_SED], [
+############################################################
+# NOTE: This macro has been submitted for inclusion into #
+# GNU Autoconf as AC_PROG_SED. When it is available in #
+# a released version of Autoconf we should remove this #
+# macro and use it instead. #
+############################################################
+
+m4_defun([AC_PROG_SED],
+[AC_MSG_CHECKING([for a sed that does not truncate output])
+AC_CACHE_VAL(lt_cv_path_SED,
+[# Loop through the user's path and test for sed and gsed.
+# Then use that list of sed's as ones to test for truncation.
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for lt_ac_prog in sed gsed; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
+ lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
+ fi
+ done
+ done
+done
+IFS=$as_save_IFS
+lt_ac_max=0
+lt_ac_count=0
+# Add /usr/xpg4/bin/sed as it is typically found on Solaris
+# along with /bin/sed that truncates output.
+for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
+ test ! -f $lt_ac_sed && continue
+ cat /dev/null > conftest.in
+ lt_ac_count=0
+ echo $ECHO_N "0123456789$ECHO_C" >conftest.in
+ # Check for GNU sed and select it if it is found.
+ if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
+ lt_cv_path_SED=$lt_ac_sed
+ break
+ fi
+ while true; do
+ cat conftest.in conftest.in >conftest.tmp
+ mv conftest.tmp conftest.in
+ cp conftest.in conftest.nl
+ echo >>conftest.nl
+ $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
+ cmp -s conftest.out conftest.nl || break
+ # 10000 chars as input seems more than enough
+ test $lt_ac_count -gt 10 && break
+ lt_ac_count=`expr $lt_ac_count + 1`
+ if test $lt_ac_count -gt $lt_ac_max; then
+ lt_ac_max=$lt_ac_count
+ lt_cv_path_SED=$lt_ac_sed
+ fi
+ done
+done
+])
+SED=$lt_cv_path_SED
+AC_SUBST([SED])
+AC_MSG_RESULT([$SED])
+])#AC_PROG_SED
+])#m4_ifndef
+
+# Old name:
+AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([LT_AC_PROG_SED], [])
+
+
+# _LT_CHECK_SHELL_FEATURES
+# ------------------------
+# Find out whether the shell is Bourne or XSI compatible,
+# or has some other useful features.
+m4_defun([_LT_CHECK_SHELL_FEATURES],
+[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
+# Try some XSI features
+xsi_shell=no
+( _lt_dummy="a/b/c"
+ test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
+ = c,a/b,, \
+ && eval 'test $(( 1 + 1 )) -eq 2 \
+ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
+ && xsi_shell=yes
+AC_MSG_RESULT([$xsi_shell])
+_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
+
+AC_MSG_CHECKING([whether the shell understands "+="])
+lt_shell_append=no
+( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
+ >/dev/null 2>&1 \
+ && lt_shell_append=yes
+AC_MSG_RESULT([$lt_shell_append])
+_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
+
+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
+ lt_unset=unset
+else
+ lt_unset=false
+fi
+_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
+
+# test EBCDIC or ASCII
+case `echo X|tr X '\101'` in
+ A) # ASCII based system
+ # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
+ lt_SP2NL='tr \040 \012'
+ lt_NL2SP='tr \015\012 \040\040'
+ ;;
+ *) # EBCDIC based system
+ lt_SP2NL='tr \100 \n'
+ lt_NL2SP='tr \r\n \100\100'
+ ;;
+esac
+_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
+_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
+])# _LT_CHECK_SHELL_FEATURES
+
+
+# _LT_PROG_XSI_SHELLFNS
+# ---------------------
+# Bourne and XSI compatible variants of some useful shell functions.
+m4_defun([_LT_PROG_XSI_SHELLFNS],
+[case $xsi_shell in
+ yes)
+ cat << \_LT_EOF >> "$cfgfile"
+
+# func_dirname file append nondir_replacement
+# Compute the dirname of FILE. If nonempty, add APPEND to the result,
+# otherwise set result to NONDIR_REPLACEMENT.
+func_dirname ()
+{
+ case ${1} in
+ */*) func_dirname_result="${1%/*}${2}" ;;
+ * ) func_dirname_result="${3}" ;;
+ esac
+}
+
+# func_basename file
+func_basename ()
+{
+ func_basename_result="${1##*/}"
+}
+
+# func_dirname_and_basename file append nondir_replacement
+# perform func_basename and func_dirname in a single function
+# call:
+# dirname: Compute the dirname of FILE. If nonempty,
+# add APPEND to the result, otherwise set result
+# to NONDIR_REPLACEMENT.
+# value returned in "$func_dirname_result"
+# basename: Compute filename of FILE.
+# value retuned in "$func_basename_result"
+# Implementation must be kept synchronized with func_dirname
+# and func_basename. For efficiency, we do not delegate to
+# those functions but instead duplicate the functionality here.
+func_dirname_and_basename ()
+{
+ case ${1} in
+ */*) func_dirname_result="${1%/*}${2}" ;;
+ * ) func_dirname_result="${3}" ;;
+ esac
+ func_basename_result="${1##*/}"
+}
+
+# func_stripname prefix suffix name
+# strip PREFIX and SUFFIX off of NAME.
+# PREFIX and SUFFIX must not contain globbing or regex special
+# characters, hashes, percent signs, but SUFFIX may contain a leading
+# dot (in which case that matches only a dot).
+func_stripname ()
+{
+ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
+ # positional parameters, so assign one to ordinary parameter first.
+ func_stripname_result=${3}
+ func_stripname_result=${func_stripname_result#"${1}"}
+ func_stripname_result=${func_stripname_result%"${2}"}
+}
+
+# func_opt_split
+func_opt_split ()
+{
+ func_opt_split_opt=${1%%=*}
+ func_opt_split_arg=${1#*=}
+}
+
+# func_lo2o object
+func_lo2o ()
+{
+ case ${1} in
+ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
+ *) func_lo2o_result=${1} ;;
+ esac
+}
+
+# func_xform libobj-or-source
+func_xform ()
+{
+ func_xform_result=${1%.*}.lo
+}
+
+# func_arith arithmetic-term...
+func_arith ()
+{
+ func_arith_result=$(( $[*] ))
+}
+
+# func_len string
+# STRING may not start with a hyphen.
+func_len ()
+{
+ func_len_result=${#1}
+}
+
+_LT_EOF
+ ;;
+ *) # Bourne compatible functions.
+ cat << \_LT_EOF >> "$cfgfile"
+
+# func_dirname file append nondir_replacement
+# Compute the dirname of FILE. If nonempty, add APPEND to the result,
+# otherwise set result to NONDIR_REPLACEMENT.
+func_dirname ()
+{
+ # Extract subdirectory from the argument.
+ func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
+ if test "X$func_dirname_result" = "X${1}"; then
+ func_dirname_result="${3}"
+ else
+ func_dirname_result="$func_dirname_result${2}"
+ fi
+}
+
+# func_basename file
+func_basename ()
+{
+ func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
+}
+
+dnl func_dirname_and_basename
+dnl A portable version of this function is already defined in general.m4sh
+dnl so there is no need for it here.
+
+# func_stripname prefix suffix name
+# strip PREFIX and SUFFIX off of NAME.
+# PREFIX and SUFFIX must not contain globbing or regex special
+# characters, hashes, percent signs, but SUFFIX may contain a leading
+# dot (in which case that matches only a dot).
+# func_strip_suffix prefix name
+func_stripname ()
+{
+ case ${2} in
+ .*) func_stripname_result=`$ECHO "X${3}" \
+ | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
+ *) func_stripname_result=`$ECHO "X${3}" \
+ | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
+ esac
+}
+
+# sed scripts:
+my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
+my_sed_long_arg='1s/^-[[^=]]*=//'
+
+# func_opt_split
+func_opt_split ()
+{
+ func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
+ func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
+}
+
+# func_lo2o object
+func_lo2o ()
+{
+ func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
+}
+
+# func_xform libobj-or-source
+func_xform ()
+{
+ func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
+}
+
+# func_arith arithmetic-term...
+func_arith ()
+{
+ func_arith_result=`expr "$[@]"`
+}
+
+# func_len string
+# STRING may not start with a hyphen.
+func_len ()
+{
+ func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
+}
+
+_LT_EOF
+esac
+
+case $lt_shell_append in
+ yes)
+ cat << \_LT_EOF >> "$cfgfile"
+
+# func_append var value
+# Append VALUE to the end of shell variable VAR.
+func_append ()
+{
+ eval "$[1]+=\$[2]"
+}
+_LT_EOF
+ ;;
+ *)
+ cat << \_LT_EOF >> "$cfgfile"
+
+# func_append var value
+# Append VALUE to the end of shell variable VAR.
+func_append ()
+{
+ eval "$[1]=\$$[1]\$[2]"
+}
+
+_LT_EOF
+ ;;
+ esac
+])
--- /dev/null
+# Generated from ltmain.m4sh.
+
+# ltmain.sh (GNU libtool) 2.2.6
+# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
+
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
+# This is free software; see the source for copying conditions. There is NO
+# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+# GNU Libtool is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# As a special exception to the GNU General Public License,
+# if you distribute this file as part of a program or library that
+# is built using GNU Libtool, you may include this file under the
+# same distribution terms that you use for the rest of that program.
+#
+# GNU Libtool is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNU Libtool; see the file COPYING. If not, a copy
+# can be downloaded from http://www.gnu.org/licenses/gpl.html,
+# or obtained by writing to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+# Usage: $progname [OPTION]... [MODE-ARG]...
+#
+# Provide generalized library-building support services.
+#
+# --config show all configuration variables
+# --debug enable verbose shell tracing
+# -n, --dry-run display commands without modifying any files
+# --features display basic configuration information and exit
+# --mode=MODE use operation mode MODE
+# --preserve-dup-deps don't remove duplicate dependency libraries
+# --quiet, --silent don't print informational messages
+# --tag=TAG use configuration variables from tag TAG
+# -v, --verbose print informational messages (default)
+# --version print version information
+# -h, --help print short or long help message
+#
+# MODE must be one of the following:
+#
+# clean remove files from the build directory
+# compile compile a source file into a libtool object
+# execute automatically set library path, then run a program
+# finish complete the installation of libtool libraries
+# install install libraries or executables
+# link create a library or an executable
+# uninstall remove libraries from an installed directory
+#
+# MODE-ARGS vary depending on the MODE.
+# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
+#
+# When reporting a bug, please describe a test case to reproduce it and
+# include the following information:
+#
+# host-triplet: $host
+# shell: $SHELL
+# compiler: $LTCC
+# compiler flags: $LTCFLAGS
+# linker: $LD (gnu? $with_gnu_ld)
+# $progname: (GNU libtool) 2.2.6 Debian-2.2.6a-1ubuntu1
+# automake: $automake_version
+# autoconf: $autoconf_version
+#
+# Report bugs to <bug-libtool@gnu.org>.
+
+PROGRAM=ltmain.sh
+PACKAGE=libtool
+VERSION="2.2.6 Debian-2.2.6a-1ubuntu1"
+TIMESTAMP=""
+package_revision=1.3012
+
+# Be Bourne compatible
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
+ emulate sh
+ NULLCMD=:
+ # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '${1+"$@"}'='"$@"'
+ setopt NO_GLOB_SUBST
+else
+ case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
+fi
+BIN_SH=xpg4; export BIN_SH # for Tru64
+DUALCASE=1; export DUALCASE # for MKS sh
+
+# NLS nuisances: We save the old values to restore during execute mode.
+# Only set LANG and LC_ALL to C if already set.
+# These must not be set unconditionally because not all systems understand
+# e.g. LANG=C (notably SCO).
+lt_user_locale=
+lt_safe_locale=
+for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
+do
+ eval "if test \"\${$lt_var+set}\" = set; then
+ save_$lt_var=\$$lt_var
+ $lt_var=C
+ export $lt_var
+ lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
+ lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
+ fi"
+done
+
+$lt_unset CDPATH
+
+
+
+
+
+: ${CP="cp -f"}
+: ${ECHO="echo"}
+: ${EGREP="/bin/grep -E"}
+: ${FGREP="/bin/grep -F"}
+: ${GREP="/bin/grep"}
+: ${LN_S="ln -s"}
+: ${MAKE="make"}
+: ${MKDIR="mkdir"}
+: ${MV="mv -f"}
+: ${RM="rm -f"}
+: ${SED="/bin/sed"}
+: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
+: ${Xsed="$SED -e 1s/^X//"}
+
+# Global variables:
+EXIT_SUCCESS=0
+EXIT_FAILURE=1
+EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
+EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
+
+exit_status=$EXIT_SUCCESS
+
+# Make sure IFS has a sensible default
+lt_nl='
+'
+IFS=" $lt_nl"
+
+dirname="s,/[^/]*$,,"
+basename="s,^.*/,,"
+
+# func_dirname_and_basename file append nondir_replacement
+# perform func_basename and func_dirname in a single function
+# call:
+# dirname: Compute the dirname of FILE. If nonempty,
+# add APPEND to the result, otherwise set result
+# to NONDIR_REPLACEMENT.
+# value returned in "$func_dirname_result"
+# basename: Compute filename of FILE.
+# value retuned in "$func_basename_result"
+# Implementation must be kept synchronized with func_dirname
+# and func_basename. For efficiency, we do not delegate to
+# those functions but instead duplicate the functionality here.
+func_dirname_and_basename ()
+{
+ # Extract subdirectory from the argument.
+ func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
+ if test "X$func_dirname_result" = "X${1}"; then
+ func_dirname_result="${3}"
+ else
+ func_dirname_result="$func_dirname_result${2}"
+ fi
+ func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
+}
+
+# Generated shell functions inserted here.
+
+# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
+# is ksh but when the shell is invoked as "sh" and the current value of
+# the _XPG environment variable is not equal to 1 (one), the special
+# positional parameter $0, within a function call, is the name of the
+# function.
+progpath="$0"
+
+# The name of this program:
+# In the unlikely event $progname began with a '-', it would play havoc with
+# func_echo (imagine progname=-n), so we prepend ./ in that case:
+func_dirname_and_basename "$progpath"
+progname=$func_basename_result
+case $progname in
+ -*) progname=./$progname ;;
+esac
+
+# Make sure we have an absolute path for reexecution:
+case $progpath in
+ [\\/]*|[A-Za-z]:\\*) ;;
+ *[\\/]*)
+ progdir=$func_dirname_result
+ progdir=`cd "$progdir" && pwd`
+ progpath="$progdir/$progname"
+ ;;
+ *)
+ save_IFS="$IFS"
+ IFS=:
+ for progdir in $PATH; do
+ IFS="$save_IFS"
+ test -x "$progdir/$progname" && break
+ done
+ IFS="$save_IFS"
+ test -n "$progdir" || progdir=`pwd`
+ progpath="$progdir/$progname"
+ ;;
+esac
+
+# Sed substitution that helps us do robust quoting. It backslashifies
+# metacharacters that are still active within double-quoted strings.
+Xsed="${SED}"' -e 1s/^X//'
+sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
+
+# Same as above, but do not quote variable references.
+double_quote_subst='s/\(["`\\]\)/\\\1/g'
+
+# Re-`\' parameter expansions in output of double_quote_subst that were
+# `\'-ed in input to the same. If an odd number of `\' preceded a '$'
+# in input to double_quote_subst, that '$' was protected from expansion.
+# Since each input `\' is now two `\'s, look for any number of runs of
+# four `\'s followed by two `\'s and then a '$'. `\' that '$'.
+bs='\\'
+bs2='\\\\'
+bs4='\\\\\\\\'
+dollar='\$'
+sed_double_backslash="\
+ s/$bs4/&\\
+/g
+ s/^$bs2$dollar/$bs&/
+ s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
+ s/\n//g"
+
+# Standard options:
+opt_dry_run=false
+opt_help=false
+opt_quiet=false
+opt_verbose=false
+opt_warning=:
+
+# func_echo arg...
+# Echo program name prefixed message, along with the current mode
+# name if it has been set yet.
+func_echo ()
+{
+ $ECHO "$progname${mode+: }$mode: $*"
+}
+
+# func_verbose arg...
+# Echo program name prefixed message in verbose mode only.
+func_verbose ()
+{
+ $opt_verbose && func_echo ${1+"$@"}
+
+ # A bug in bash halts the script if the last line of a function
+ # fails when set -e is in force, so we need another command to
+ # work around that:
+ :
+}
+
+# func_error arg...
+# Echo program name prefixed message to standard error.
+func_error ()
+{
+ $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
+}
+
+# func_warning arg...
+# Echo program name prefixed warning message to standard error.
+func_warning ()
+{
+ $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
+
+ # bash bug again:
+ :
+}
+
+# func_fatal_error arg...
+# Echo program name prefixed message to standard error, and exit.
+func_fatal_error ()
+{
+ func_error ${1+"$@"}
+ exit $EXIT_FAILURE
+}
+
+# func_fatal_help arg...
+# Echo program name prefixed message to standard error, followed by
+# a help hint, and exit.
+func_fatal_help ()
+{
+ func_error ${1+"$@"}
+ func_fatal_error "$help"
+}
+help="Try \`$progname --help' for more information." ## default
+
+
+# func_grep expression filename
+# Check whether EXPRESSION matches any line of FILENAME, without output.
+func_grep ()
+{
+ $GREP "$1" "$2" >/dev/null 2>&1
+}
+
+
+# func_mkdir_p directory-path
+# Make sure the entire path to DIRECTORY-PATH is available.
+func_mkdir_p ()
+{
+ my_directory_path="$1"
+ my_dir_list=
+
+ if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
+
+ # Protect directory names starting with `-'
+ case $my_directory_path in
+ -*) my_directory_path="./$my_directory_path" ;;
+ esac
+
+ # While some portion of DIR does not yet exist...
+ while test ! -d "$my_directory_path"; do
+ # ...make a list in topmost first order. Use a colon delimited
+ # list incase some portion of path contains whitespace.
+ my_dir_list="$my_directory_path:$my_dir_list"
+
+ # If the last portion added has no slash in it, the list is done
+ case $my_directory_path in */*) ;; *) break ;; esac
+
+ # ...otherwise throw away the child directory and loop
+ my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
+ done
+ my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
+
+ save_mkdir_p_IFS="$IFS"; IFS=':'
+ for my_dir in $my_dir_list; do
+ IFS="$save_mkdir_p_IFS"
+ # mkdir can fail with a `File exist' error if two processes
+ # try to create one of the directories concurrently. Don't
+ # stop in that case!
+ $MKDIR "$my_dir" 2>/dev/null || :
+ done
+ IFS="$save_mkdir_p_IFS"
+
+ # Bail out if we (or some other process) failed to create a directory.
+ test -d "$my_directory_path" || \
+ func_fatal_error "Failed to create \`$1'"
+ fi
+}
+
+
+# func_mktempdir [string]
+# Make a temporary directory that won't clash with other running
+# libtool processes, and avoids race conditions if possible. If
+# given, STRING is the basename for that directory.
+func_mktempdir ()
+{
+ my_template="${TMPDIR-/tmp}/${1-$progname}"
+
+ if test "$opt_dry_run" = ":"; then
+ # Return a directory name, but don't create it in dry-run mode
+ my_tmpdir="${my_template}-$$"
+ else
+
+ # If mktemp works, use that first and foremost
+ my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
+
+ if test ! -d "$my_tmpdir"; then
+ # Failing that, at least try and use $RANDOM to avoid a race
+ my_tmpdir="${my_template}-${RANDOM-0}$$"
+
+ save_mktempdir_umask=`umask`
+ umask 0077
+ $MKDIR "$my_tmpdir"
+ umask $save_mktempdir_umask
+ fi
+
+ # If we're not in dry-run mode, bomb out on failure
+ test -d "$my_tmpdir" || \
+ func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
+ fi
+
+ $ECHO "X$my_tmpdir" | $Xsed
+}
+
+
+# func_quote_for_eval arg
+# Aesthetically quote ARG to be evaled later.
+# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
+# is double-quoted, suitable for a subsequent eval, whereas
+# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
+# which are still active within double quotes backslashified.
+func_quote_for_eval ()
+{
+ case $1 in
+ *[\\\`\"\$]*)
+ func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
+ *)
+ func_quote_for_eval_unquoted_result="$1" ;;
+ esac
+
+ case $func_quote_for_eval_unquoted_result in
+ # Double-quote args containing shell metacharacters to delay
+ # word splitting, command substitution and and variable
+ # expansion for a subsequent eval.
+ # Many Bourne shells cannot handle close brackets correctly
+ # in scan sets, so we specify it separately.
+ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
+ func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
+ ;;
+ *)
+ func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
+ esac
+}
+
+
+# func_quote_for_expand arg
+# Aesthetically quote ARG to be evaled later; same as above,
+# but do not quote variable references.
+func_quote_for_expand ()
+{
+ case $1 in
+ *[\\\`\"]*)
+ my_arg=`$ECHO "X$1" | $Xsed \
+ -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
+ *)
+ my_arg="$1" ;;
+ esac
+
+ case $my_arg in
+ # Double-quote args containing shell metacharacters to delay
+ # word splitting and command substitution for a subsequent eval.
+ # Many Bourne shells cannot handle close brackets correctly
+ # in scan sets, so we specify it separately.
+ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
+ my_arg="\"$my_arg\""
+ ;;
+ esac
+
+ func_quote_for_expand_result="$my_arg"
+}
+
+
+# func_show_eval cmd [fail_exp]
+# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
+# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
+# is given, then evaluate it.
+func_show_eval ()
+{
+ my_cmd="$1"
+ my_fail_exp="${2-:}"
+
+ ${opt_silent-false} || {
+ func_quote_for_expand "$my_cmd"
+ eval "func_echo $func_quote_for_expand_result"
+ }
+
+ if ${opt_dry_run-false}; then :; else
+ eval "$my_cmd"
+ my_status=$?
+ if test "$my_status" -eq 0; then :; else
+ eval "(exit $my_status); $my_fail_exp"
+ fi
+ fi
+}
+
+
+# func_show_eval_locale cmd [fail_exp]
+# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
+# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
+# is given, then evaluate it. Use the saved locale for evaluation.
+func_show_eval_locale ()
+{
+ my_cmd="$1"
+ my_fail_exp="${2-:}"
+
+ ${opt_silent-false} || {
+ func_quote_for_expand "$my_cmd"
+ eval "func_echo $func_quote_for_expand_result"
+ }
+
+ if ${opt_dry_run-false}; then :; else
+ eval "$lt_user_locale
+ $my_cmd"
+ my_status=$?
+ eval "$lt_safe_locale"
+ if test "$my_status" -eq 0; then :; else
+ eval "(exit $my_status); $my_fail_exp"
+ fi
+ fi
+}
+
+
+
+
+
+# func_version
+# Echo version message to standard output and exit.
+func_version ()
+{
+ $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
+ s/^# //
+ s/^# *$//
+ s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
+ p
+ }' < "$progpath"
+ exit $?
+}
+
+# func_usage
+# Echo short help message to standard output and exit.
+func_usage ()
+{
+ $SED -n '/^# Usage:/,/# -h/ {
+ s/^# //
+ s/^# *$//
+ s/\$progname/'$progname'/
+ p
+ }' < "$progpath"
+ $ECHO
+ $ECHO "run \`$progname --help | more' for full usage"
+ exit $?
+}
+
+# func_help
+# Echo long help message to standard output and exit.
+func_help ()
+{
+ $SED -n '/^# Usage:/,/# Report bugs to/ {
+ s/^# //
+ s/^# *$//
+ s*\$progname*'$progname'*
+ s*\$host*'"$host"'*
+ s*\$SHELL*'"$SHELL"'*
+ s*\$LTCC*'"$LTCC"'*
+ s*\$LTCFLAGS*'"$LTCFLAGS"'*
+ s*\$LD*'"$LD"'*
+ s/\$with_gnu_ld/'"$with_gnu_ld"'/
+ s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
+ s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
+ p
+ }' < "$progpath"
+ exit $?
+}
+
+# func_missing_arg argname
+# Echo program name prefixed message to standard error and set global
+# exit_cmd.
+func_missing_arg ()
+{
+ func_error "missing argument for $1"
+ exit_cmd=exit
+}
+
+exit_cmd=:
+
+
+
+
+
+# Check that we have a working $ECHO.
+if test "X$1" = X--no-reexec; then
+ # Discard the --no-reexec flag, and continue.
+ shift
+elif test "X$1" = X--fallback-echo; then
+ # Avoid inline document here, it may be left over
+ :
+elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
+ # Yippee, $ECHO works!
+ :
+else
+ # Restart under the correct shell, and then maybe $ECHO will work.
+ exec $SHELL "$progpath" --no-reexec ${1+"$@"}
+fi
+
+if test "X$1" = X--fallback-echo; then
+ # used as fallback echo
+ shift
+ cat <<EOF
+$*
+EOF
+ exit $EXIT_SUCCESS
+fi
+
+magic="%%%MAGIC variable%%%"
+magic_exe="%%%MAGIC EXE variable%%%"
+
+# Global variables.
+# $mode is unset
+nonopt=
+execute_dlfiles=
+preserve_args=
+lo2o="s/\\.lo\$/.${objext}/"
+o2lo="s/\\.${objext}\$/.lo/"
+extracted_archives=
+extracted_serial=0
+
+opt_dry_run=false
+opt_duplicate_deps=false
+opt_silent=false
+opt_debug=:
+
+# If this variable is set in any of the actions, the command in it
+# will be execed at the end. This prevents here-documents from being
+# left over by shells.
+exec_cmd=
+
+# func_fatal_configuration arg...
+# Echo program name prefixed message to standard error, followed by
+# a configuration failure hint, and exit.
+func_fatal_configuration ()
+{
+ func_error ${1+"$@"}
+ func_error "See the $PACKAGE documentation for more information."
+ func_fatal_error "Fatal configuration error."
+}
+
+
+# func_config
+# Display the configuration for all the tags in this script.
+func_config ()
+{
+ re_begincf='^# ### BEGIN LIBTOOL'
+ re_endcf='^# ### END LIBTOOL'
+
+ # Default configuration.
+ $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
+
+ # Now print the configurations for the tags.
+ for tagname in $taglist; do
+ $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
+ done
+
+ exit $?
+}
+
+# func_features
+# Display the features supported by this script.
+func_features ()
+{
+ $ECHO "host: $host"
+ if test "$build_libtool_libs" = yes; then
+ $ECHO "enable shared libraries"
+ else
+ $ECHO "disable shared libraries"
+ fi
+ if test "$build_old_libs" = yes; then
+ $ECHO "enable static libraries"
+ else
+ $ECHO "disable static libraries"
+ fi
+
+ exit $?
+}
+
+# func_enable_tag tagname
+# Verify that TAGNAME is valid, and either flag an error and exit, or
+# enable the TAGNAME tag. We also add TAGNAME to the global $taglist
+# variable here.
+func_enable_tag ()
+{
+ # Global variable:
+ tagname="$1"
+
+ re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
+ re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
+ sed_extractcf="/$re_begincf/,/$re_endcf/p"
+
+ # Validate tagname.
+ case $tagname in
+ *[!-_A-Za-z0-9,/]*)
+ func_fatal_error "invalid tag name: $tagname"
+ ;;
+ esac
+
+ # Don't test for the "default" C tag, as we know it's
+ # there but not specially marked.
+ case $tagname in
+ CC) ;;
+ *)
+ if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
+ taglist="$taglist $tagname"
+
+ # Evaluate the configuration. Be careful to quote the path
+ # and the sed script, to avoid splitting on whitespace, but
+ # also don't use non-portable quotes within backquotes within
+ # quotes we have to do it in 2 steps:
+ extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
+ eval "$extractedcf"
+ else
+ func_error "ignoring unknown tag $tagname"
+ fi
+ ;;
+ esac
+}
+
+# Parse options once, thoroughly. This comes as soon as possible in
+# the script to make things like `libtool --version' happen quickly.
+{
+
+ # Shorthand for --mode=foo, only valid as the first argument
+ case $1 in
+ clean|clea|cle|cl)
+ shift; set dummy --mode clean ${1+"$@"}; shift
+ ;;
+ compile|compil|compi|comp|com|co|c)
+ shift; set dummy --mode compile ${1+"$@"}; shift
+ ;;
+ execute|execut|execu|exec|exe|ex|e)
+ shift; set dummy --mode execute ${1+"$@"}; shift
+ ;;
+ finish|finis|fini|fin|fi|f)
+ shift; set dummy --mode finish ${1+"$@"}; shift
+ ;;
+ install|instal|insta|inst|ins|in|i)
+ shift; set dummy --mode install ${1+"$@"}; shift
+ ;;
+ link|lin|li|l)
+ shift; set dummy --mode link ${1+"$@"}; shift
+ ;;
+ uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
+ shift; set dummy --mode uninstall ${1+"$@"}; shift
+ ;;
+ esac
+
+ # Parse non-mode specific arguments:
+ while test "$#" -gt 0; do
+ opt="$1"
+ shift
+
+ case $opt in
+ --config) func_config ;;
+
+ --debug) preserve_args="$preserve_args $opt"
+ func_echo "enabling shell trace mode"
+ opt_debug='set -x'
+ $opt_debug
+ ;;
+
+ -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
+ execute_dlfiles="$execute_dlfiles $1"
+ shift
+ ;;
+
+ --dry-run | -n) opt_dry_run=: ;;
+ --features) func_features ;;
+ --finish) mode="finish" ;;
+
+ --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
+ case $1 in
+ # Valid mode arguments:
+ clean) ;;
+ compile) ;;
+ execute) ;;
+ finish) ;;
+ install) ;;
+ link) ;;
+ relink) ;;
+ uninstall) ;;
+
+ # Catch anything else as an error
+ *) func_error "invalid argument for $opt"
+ exit_cmd=exit
+ break
+ ;;
+ esac
+
+ mode="$1"
+ shift
+ ;;
+
+ --preserve-dup-deps)
+ opt_duplicate_deps=: ;;
+
+ --quiet|--silent) preserve_args="$preserve_args $opt"
+ opt_silent=:
+ ;;
+
+ --verbose| -v) preserve_args="$preserve_args $opt"
+ opt_silent=false
+ ;;
+
+ --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
+ preserve_args="$preserve_args $opt $1"
+ func_enable_tag "$1" # tagname is set here
+ shift
+ ;;
+
+ # Separate optargs to long options:
+ -dlopen=*|--mode=*|--tag=*)
+ func_opt_split "$opt"
+ set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
+ shift
+ ;;
+
+ -\?|-h) func_usage ;;
+ --help) opt_help=: ;;
+ --version) func_version ;;
+
+ -*) func_fatal_help "unrecognized option \`$opt'" ;;
+
+ *) nonopt="$opt"
+ break
+ ;;
+ esac
+ done
+
+
+ case $host in
+ *cygwin* | *mingw* | *pw32* | *cegcc*)
+ # don't eliminate duplications in $postdeps and $predeps
+ opt_duplicate_compiler_generated_deps=:
+ ;;
+ *)
+ opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
+ ;;
+ esac
+
+ # Having warned about all mis-specified options, bail out if
+ # anything was wrong.
+ $exit_cmd $EXIT_FAILURE
+}
+
+# func_check_version_match
+# Ensure that we are using m4 macros, and libtool script from the same
+# release of libtool.
+func_check_version_match ()
+{
+ if test "$package_revision" != "$macro_revision"; then
+ if test "$VERSION" != "$macro_version"; then
+ if test -z "$macro_version"; then
+ cat >&2 <<_LT_EOF
+$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
+$progname: definition of this LT_INIT comes from an older release.
+$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
+$progname: and run autoconf again.
+_LT_EOF
+ else
+ cat >&2 <<_LT_EOF
+$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
+$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
+$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
+$progname: and run autoconf again.
+_LT_EOF
+ fi
+ else
+ cat >&2 <<_LT_EOF
+$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
+$progname: but the definition of this LT_INIT comes from revision $macro_revision.
+$progname: You should recreate aclocal.m4 with macros from revision $package_revision
+$progname: of $PACKAGE $VERSION and run autoconf again.
+_LT_EOF
+ fi
+
+ exit $EXIT_MISMATCH
+ fi
+}
+
+
+## ----------- ##
+## Main. ##
+## ----------- ##
+
+$opt_help || {
+ # Sanity checks first:
+ func_check_version_match
+
+ if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
+ func_fatal_configuration "not configured to build any kind of library"
+ fi
+
+ test -z "$mode" && func_fatal_error "error: you must specify a MODE."
+
+
+ # Darwin sucks
+ eval std_shrext=\"$shrext_cmds\"
+
+
+ # Only execute mode is allowed to have -dlopen flags.
+ if test -n "$execute_dlfiles" && test "$mode" != execute; then
+ func_error "unrecognized option \`-dlopen'"
+ $ECHO "$help" 1>&2
+ exit $EXIT_FAILURE
+ fi
+
+ # Change the help message to a mode-specific one.
+ generic_help="$help"
+ help="Try \`$progname --help --mode=$mode' for more information."
+}
+
+
+# func_lalib_p file
+# True iff FILE is a libtool `.la' library or `.lo' object file.
+# This function is only a basic sanity check; it will hardly flush out
+# determined imposters.
+func_lalib_p ()
+{
+ test -f "$1" &&
+ $SED -e 4q "$1" 2>/dev/null \
+ | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
+}
+
+# func_lalib_unsafe_p file
+# True iff FILE is a libtool `.la' library or `.lo' object file.
+# This function implements the same check as func_lalib_p without
+# resorting to external programs. To this end, it redirects stdin and
+# closes it afterwards, without saving the original file descriptor.
+# As a safety measure, use it only where a negative result would be
+# fatal anyway. Works if `file' does not exist.
+func_lalib_unsafe_p ()
+{
+ lalib_p=no
+ if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
+ for lalib_p_l in 1 2 3 4
+ do
+ read lalib_p_line
+ case "$lalib_p_line" in
+ \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
+ esac
+ done
+ exec 0<&5 5<&-
+ fi
+ test "$lalib_p" = yes
+}
+
+# func_ltwrapper_script_p file
+# True iff FILE is a libtool wrapper script
+# This function is only a basic sanity check; it will hardly flush out
+# determined imposters.
+func_ltwrapper_script_p ()
+{
+ func_lalib_p "$1"
+}
+
+# func_ltwrapper_executable_p file
+# True iff FILE is a libtool wrapper executable
+# This function is only a basic sanity check; it will hardly flush out
+# determined imposters.
+func_ltwrapper_executable_p ()
+{
+ func_ltwrapper_exec_suffix=
+ case $1 in
+ *.exe) ;;
+ *) func_ltwrapper_exec_suffix=.exe ;;
+ esac
+ $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
+}
+
+# func_ltwrapper_scriptname file
+# Assumes file is an ltwrapper_executable
+# uses $file to determine the appropriate filename for a
+# temporary ltwrapper_script.
+func_ltwrapper_scriptname ()
+{
+ func_ltwrapper_scriptname_result=""
+ if func_ltwrapper_executable_p "$1"; then
+ func_dirname_and_basename "$1" "" "."
+ func_stripname '' '.exe' "$func_basename_result"
+ func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
+ fi
+}
+
+# func_ltwrapper_p file
+# True iff FILE is a libtool wrapper script or wrapper executable
+# This function is only a basic sanity check; it will hardly flush out
+# determined imposters.
+func_ltwrapper_p ()
+{
+ func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
+}
+
+
+# func_execute_cmds commands fail_cmd
+# Execute tilde-delimited COMMANDS.
+# If FAIL_CMD is given, eval that upon failure.
+# FAIL_CMD may read-access the current command in variable CMD!
+func_execute_cmds ()
+{
+ $opt_debug
+ save_ifs=$IFS; IFS='~'
+ for cmd in $1; do
+ IFS=$save_ifs
+ eval cmd=\"$cmd\"
+ func_show_eval "$cmd" "${2-:}"
+ done
+ IFS=$save_ifs
+}
+
+
+# func_source file
+# Source FILE, adding directory component if necessary.
+# Note that it is not necessary on cygwin/mingw to append a dot to
+# FILE even if both FILE and FILE.exe exist: automatic-append-.exe
+# behavior happens only for exec(3), not for open(2)! Also, sourcing
+# `FILE.' does not work on cygwin managed mounts.
+func_source ()
+{
+ $opt_debug
+ case $1 in
+ */* | *\\*) . "$1" ;;
+ *) . "./$1" ;;
+ esac
+}
+
+
+# func_infer_tag arg
+# Infer tagged configuration to use if any are available and
+# if one wasn't chosen via the "--tag" command line option.
+# Only attempt this if the compiler in the base compile
+# command doesn't match the default compiler.
+# arg is usually of the form 'gcc ...'
+func_infer_tag ()
+{
+ $opt_debug
+ if test -n "$available_tags" && test -z "$tagname"; then
+ CC_quoted=
+ for arg in $CC; do
+ func_quote_for_eval "$arg"
+ CC_quoted="$CC_quoted $func_quote_for_eval_result"
+ done
+ case $@ in
+ # Blanks in the command may have been stripped by the calling shell,
+ # but not from the CC environment variable when configure was run.
+ " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
+ # Blanks at the start of $base_compile will cause this to fail
+ # if we don't check for them as well.
+ *)
+ for z in $available_tags; do
+ if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
+ # Evaluate the configuration.
+ eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
+ CC_quoted=
+ for arg in $CC; do
+ # Double-quote args containing other shell metacharacters.
+ func_quote_for_eval "$arg"
+ CC_quoted="$CC_quoted $func_quote_for_eval_result"
+ done
+ case "$@ " in
+ " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
+ # The compiler in the base compile command matches
+ # the one in the tagged configuration.
+ # Assume this is the tagged configuration we want.
+ tagname=$z
+ break
+ ;;
+ esac
+ fi
+ done
+ # If $tagname still isn't set, then no tagged configuration
+ # was found and let the user know that the "--tag" command
+ # line option must be used.
+ if test -z "$tagname"; then
+ func_echo "unable to infer tagged configuration"
+ func_fatal_error "specify a tag with \`--tag'"
+# else
+# func_verbose "using $tagname tagged configuration"
+ fi
+ ;;
+ esac
+ fi
+}
+
+
+
+# func_write_libtool_object output_name pic_name nonpic_name
+# Create a libtool object file (analogous to a ".la" file),
+# but don't create it if we're doing a dry run.
+func_write_libtool_object ()
+{
+ write_libobj=${1}
+ if test "$build_libtool_libs" = yes; then
+ write_lobj=\'${2}\'
+ else
+ write_lobj=none
+ fi
+
+ if test "$build_old_libs" = yes; then
+ write_oldobj=\'${3}\'
+ else
+ write_oldobj=none
+ fi
+
+ $opt_dry_run || {
+ cat >${write_libobj}T <<EOF
+# $write_libobj - a libtool object file
+# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# Name of the PIC object.
+pic_object=$write_lobj
+
+# Name of the non-PIC object
+non_pic_object=$write_oldobj
+
+EOF
+ $MV "${write_libobj}T" "${write_libobj}"
+ }
+}
+
+# func_mode_compile arg...
+func_mode_compile ()
+{
+ $opt_debug
+ # Get the compilation command and the source file.
+ base_compile=
+ srcfile="$nonopt" # always keep a non-empty value in "srcfile"
+ suppress_opt=yes
+ suppress_output=
+ arg_mode=normal
+ libobj=
+ later=
+ pie_flag=
+
+ for arg
+ do
+ case $arg_mode in
+ arg )
+ # do not "continue". Instead, add this to base_compile
+ lastarg="$arg"
+ arg_mode=normal
+ ;;
+
+ target )
+ libobj="$arg"
+ arg_mode=normal
+ continue
+ ;;
+
+ normal )
+ # Accept any command-line options.
+ case $arg in
+ -o)
+ test -n "$libobj" && \
+ func_fatal_error "you cannot specify \`-o' more than once"
+ arg_mode=target
+ continue
+ ;;
+
+ -pie | -fpie | -fPIE)
+ pie_flag="$pie_flag $arg"
+ continue
+ ;;
+
+ -shared | -static | -prefer-pic | -prefer-non-pic)
+ later="$later $arg"
+ continue
+ ;;
+
+ -no-suppress)
+ suppress_opt=no
+ continue
+ ;;
+
+ -Xcompiler)
+ arg_mode=arg # the next one goes into the "base_compile" arg list
+ continue # The current "srcfile" will either be retained or
+ ;; # replaced later. I would guess that would be a bug.
+
+ -Wc,*)
+ func_stripname '-Wc,' '' "$arg"
+ args=$func_stripname_result
+ lastarg=
+ save_ifs="$IFS"; IFS=','
+ for arg in $args; do
+ IFS="$save_ifs"
+ func_quote_for_eval "$arg"
+ lastarg="$lastarg $func_quote_for_eval_result"
+ done
+ IFS="$save_ifs"
+ func_stripname ' ' '' "$lastarg"
+ lastarg=$func_stripname_result
+
+ # Add the arguments to base_compile.
+ base_compile="$base_compile $lastarg"
+ continue
+ ;;
+
+ *)
+ # Accept the current argument as the source file.
+ # The previous "srcfile" becomes the current argument.
+ #
+ lastarg="$srcfile"
+ srcfile="$arg"
+ ;;
+ esac # case $arg
+ ;;
+ esac # case $arg_mode
+
+ # Aesthetically quote the previous argument.
+ func_quote_for_eval "$lastarg"
+ base_compile="$base_compile $func_quote_for_eval_result"
+ done # for arg
+
+ case $arg_mode in
+ arg)
+ func_fatal_error "you must specify an argument for -Xcompile"
+ ;;
+ target)
+ func_fatal_error "you must specify a target with \`-o'"
+ ;;
+ *)
+ # Get the name of the library object.
+ test -z "$libobj" && {
+ func_basename "$srcfile"
+ libobj="$func_basename_result"
+ }
+ ;;
+ esac
+
+ # Recognize several different file suffixes.
+ # If the user specifies -o file.o, it is replaced with file.lo
+ case $libobj in
+ *.[cCFSifmso] | \
+ *.ada | *.adb | *.ads | *.asm | \
+ *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
+ *.[fF][09]? | *.for | *.java | *.obj | *.sx)
+ func_xform "$libobj"
+ libobj=$func_xform_result
+ ;;
+ esac
+
+ case $libobj in
+ *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
+ *)
+ func_fatal_error "cannot determine name of library object from \`$libobj'"
+ ;;
+ esac
+
+ func_infer_tag $base_compile
+
+ for arg in $later; do
+ case $arg in
+ -shared)
+ test "$build_libtool_libs" != yes && \
+ func_fatal_configuration "can not build a shared library"
+ build_old_libs=no
+ continue
+ ;;
+
+ -static)
+ build_libtool_libs=no
+ build_old_libs=yes
+ continue
+ ;;
+
+ -prefer-pic)
+ pic_mode=yes
+ continue
+ ;;
+
+ -prefer-non-pic)
+ pic_mode=no
+ continue
+ ;;
+ esac
+ done
+
+ func_quote_for_eval "$libobj"
+ test "X$libobj" != "X$func_quote_for_eval_result" \
+ && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
+ && func_warning "libobj name \`$libobj' may not contain shell special characters."
+ func_dirname_and_basename "$obj" "/" ""
+ objname="$func_basename_result"
+ xdir="$func_dirname_result"
+ lobj=${xdir}$objdir/$objname
+
+ test -z "$base_compile" && \
+ func_fatal_help "you must specify a compilation command"
+
+ # Delete any leftover library objects.
+ if test "$build_old_libs" = yes; then
+ removelist="$obj $lobj $libobj ${libobj}T"
+ else
+ removelist="$lobj $libobj ${libobj}T"
+ fi
+
+ # On Cygwin there's no "real" PIC flag so we must build both object types
+ case $host_os in
+ cygwin* | mingw* | pw32* | os2* | cegcc*)
+ pic_mode=default
+ ;;
+ esac
+ if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
+ # non-PIC code in shared libraries is not supported
+ pic_mode=default
+ fi
+
+ # Calculate the filename of the output object if compiler does
+ # not support -o with -c
+ if test "$compiler_c_o" = no; then
+ output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
+ lockfile="$output_obj.lock"
+ else
+ output_obj=
+ need_locks=no
+ lockfile=
+ fi
+
+ # Lock this critical section if it is needed
+ # We use this script file to make the link, it avoids creating a new file
+ if test "$need_locks" = yes; then
+ until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
+ func_echo "Waiting for $lockfile to be removed"
+ sleep 2
+ done
+ elif test "$need_locks" = warn; then
+ if test -f "$lockfile"; then
+ $ECHO "\
+*** ERROR, $lockfile exists and contains:
+`cat $lockfile 2>/dev/null`
+
+This indicates that another process is trying to use the same
+temporary object file, and libtool could not work around it because
+your compiler does not support \`-c' and \`-o' together. If you
+repeat this compilation, it may succeed, by chance, but you had better
+avoid parallel builds (make -j) in this platform, or get a better
+compiler."
+
+ $opt_dry_run || $RM $removelist
+ exit $EXIT_FAILURE
+ fi
+ removelist="$removelist $output_obj"
+ $ECHO "$srcfile" > "$lockfile"
+ fi
+
+ $opt_dry_run || $RM $removelist
+ removelist="$removelist $lockfile"
+ trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
+
+ if test -n "$fix_srcfile_path"; then
+ eval srcfile=\"$fix_srcfile_path\"
+ fi
+ func_quote_for_eval "$srcfile"
+ qsrcfile=$func_quote_for_eval_result
+
+ # Only build a PIC object if we are building libtool libraries.
+ if test "$build_libtool_libs" = yes; then
+ # Without this assignment, base_compile gets emptied.
+ fbsd_hideous_sh_bug=$base_compile
+
+ if test "$pic_mode" != no; then
+ command="$base_compile $qsrcfile $pic_flag"
+ else
+ # Don't build PIC code
+ command="$base_compile $qsrcfile"
+ fi
+
+ func_mkdir_p "$xdir$objdir"
+
+ if test -z "$output_obj"; then
+ # Place PIC objects in $objdir
+ command="$command -o $lobj"
+ fi
+
+ func_show_eval_locale "$command" \
+ 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
+
+ if test "$need_locks" = warn &&
+ test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
+ $ECHO "\
+*** ERROR, $lockfile contains:
+`cat $lockfile 2>/dev/null`
+
+but it should contain:
+$srcfile
+
+This indicates that another process is trying to use the same
+temporary object file, and libtool could not work around it because
+your compiler does not support \`-c' and \`-o' together. If you
+repeat this compilation, it may succeed, by chance, but you had better
+avoid parallel builds (make -j) in this platform, or get a better
+compiler."
+
+ $opt_dry_run || $RM $removelist
+ exit $EXIT_FAILURE
+ fi
+
+ # Just move the object if needed, then go on to compile the next one
+ if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
+ func_show_eval '$MV "$output_obj" "$lobj"' \
+ 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
+ fi
+
+ # Allow error messages only from the first compilation.
+ if test "$suppress_opt" = yes; then
+ suppress_output=' >/dev/null 2>&1'
+ fi
+ fi
+
+ # Only build a position-dependent object if we build old libraries.
+ if test "$build_old_libs" = yes; then
+ if test "$pic_mode" != yes; then
+ # Don't build PIC code
+ command="$base_compile $qsrcfile$pie_flag"
+ else
+ command="$base_compile $qsrcfile $pic_flag"
+ fi
+ if test "$compiler_c_o" = yes; then
+ command="$command -o $obj"
+ fi
+
+ # Suppress compiler output if we already did a PIC compilation.
+ command="$command$suppress_output"
+ func_show_eval_locale "$command" \
+ '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
+
+ if test "$need_locks" = warn &&
+ test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
+ $ECHO "\
+*** ERROR, $lockfile contains:
+`cat $lockfile 2>/dev/null`
+
+but it should contain:
+$srcfile
+
+This indicates that another process is trying to use the same
+temporary object file, and libtool could not work around it because
+your compiler does not support \`-c' and \`-o' together. If you
+repeat this compilation, it may succeed, by chance, but you had better
+avoid parallel builds (make -j) in this platform, or get a better
+compiler."
+
+ $opt_dry_run || $RM $removelist
+ exit $EXIT_FAILURE
+ fi
+
+ # Just move the object if needed
+ if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
+ func_show_eval '$MV "$output_obj" "$obj"' \
+ 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
+ fi
+ fi
+
+ $opt_dry_run || {
+ func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
+
+ # Unlock the critical section if it was locked
+ if test "$need_locks" != no; then
+ removelist=$lockfile
+ $RM "$lockfile"
+ fi
+ }
+
+ exit $EXIT_SUCCESS
+}
+
+$opt_help || {
+test "$mode" = compile && func_mode_compile ${1+"$@"}
+}
+
+func_mode_help ()
+{
+ # We need to display help for each of the modes.
+ case $mode in
+ "")
+ # Generic help is extracted from the usage comments
+ # at the start of this file.
+ func_help
+ ;;
+
+ clean)
+ $ECHO \
+"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
+
+Remove files from the build directory.
+
+RM is the name of the program to use to delete files associated with each FILE
+(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
+to RM.
+
+If FILE is a libtool library, object or program, all the files associated
+with it are deleted. Otherwise, only FILE itself is deleted using RM."
+ ;;
+
+ compile)
+ $ECHO \
+"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
+
+Compile a source file into a libtool library object.
+
+This mode accepts the following additional options:
+
+ -o OUTPUT-FILE set the output file name to OUTPUT-FILE
+ -no-suppress do not suppress compiler output for multiple passes
+ -prefer-pic try to building PIC objects only
+ -prefer-non-pic try to building non-PIC objects only
+ -shared do not build a \`.o' file suitable for static linking
+ -static only build a \`.o' file suitable for static linking
+
+COMPILE-COMMAND is a command to be used in creating a \`standard' object file
+from the given SOURCEFILE.
+
+The output file name is determined by removing the directory component from
+SOURCEFILE, then substituting the C source code suffix \`.c' with the
+library object suffix, \`.lo'."
+ ;;
+
+ execute)
+ $ECHO \
+"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
+
+Automatically set library path, then run a program.
+
+This mode accepts the following additional options:
+
+ -dlopen FILE add the directory containing FILE to the library path
+
+This mode sets the library path environment variable according to \`-dlopen'
+flags.
+
+If any of the ARGS are libtool executable wrappers, then they are translated
+into their corresponding uninstalled binary, and any of their required library
+directories are added to the library path.
+
+Then, COMMAND is executed, with ARGS as arguments."
+ ;;
+
+ finish)
+ $ECHO \
+"Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
+
+Complete the installation of libtool libraries.
+
+Each LIBDIR is a directory that contains libtool libraries.
+
+The commands that this mode executes may require superuser privileges. Use
+the \`--dry-run' option if you just want to see what would be executed."
+ ;;
+
+ install)
+ $ECHO \
+"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
+
+Install executables or libraries.
+
+INSTALL-COMMAND is the installation command. The first component should be
+either the \`install' or \`cp' program.
+
+The following components of INSTALL-COMMAND are treated specially:
+
+ -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
+
+The rest of the components are interpreted as arguments to that command (only
+BSD-compatible install options are recognized)."
+ ;;
+
+ link)
+ $ECHO \
+"Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
+
+Link object files or libraries together to form another library, or to
+create an executable program.
+
+LINK-COMMAND is a command using the C compiler that you would use to create
+a program from several object files.
+
+The following components of LINK-COMMAND are treated specially:
+
+ -all-static do not do any dynamic linking at all
+ -avoid-version do not add a version suffix if possible
+ -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
+ -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
+ -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
+ -export-symbols SYMFILE
+ try to export only the symbols listed in SYMFILE
+ -export-symbols-regex REGEX
+ try to export only the symbols matching REGEX
+ -LLIBDIR search LIBDIR for required installed libraries
+ -lNAME OUTPUT-FILE requires the installed library libNAME
+ -module build a library that can dlopened
+ -no-fast-install disable the fast-install mode
+ -no-install link a not-installable executable
+ -no-undefined declare that a library does not refer to external symbols
+ -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
+ -objectlist FILE Use a list of object files found in FILE to specify objects
+ -precious-files-regex REGEX
+ don't remove output files matching REGEX
+ -release RELEASE specify package release information
+ -rpath LIBDIR the created library will eventually be installed in LIBDIR
+ -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
+ -shared only do dynamic linking of libtool libraries
+ -shrext SUFFIX override the standard shared library file extension
+ -static do not do any dynamic linking of uninstalled libtool libraries
+ -static-libtool-libs
+ do not do any dynamic linking of libtool libraries
+ -version-info CURRENT[:REVISION[:AGE]]
+ specify library version info [each variable defaults to 0]
+ -weak LIBNAME declare that the target provides the LIBNAME interface
+
+All other options (arguments beginning with \`-') are ignored.
+
+Every other argument is treated as a filename. Files ending in \`.la' are
+treated as uninstalled libtool libraries, other files are standard or library
+object files.
+
+If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
+only library objects (\`.lo' files) may be specified, and \`-rpath' is
+required, except when creating a convenience library.
+
+If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
+using \`ar' and \`ranlib', or on Windows using \`lib'.
+
+If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
+is created, otherwise an executable program is created."
+ ;;
+
+ uninstall)
+ $ECHO \
+"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
+
+Remove libraries from an installation directory.
+
+RM is the name of the program to use to delete files associated with each FILE
+(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
+to RM.
+
+If FILE is a libtool library, all the files associated with it are deleted.
+Otherwise, only FILE itself is deleted using RM."
+ ;;
+
+ *)
+ func_fatal_help "invalid operation mode \`$mode'"
+ ;;
+ esac
+
+ $ECHO
+ $ECHO "Try \`$progname --help' for more information about other modes."
+
+ exit $?
+}
+
+ # Now that we've collected a possible --mode arg, show help if necessary
+ $opt_help && func_mode_help
+
+
+# func_mode_execute arg...
+func_mode_execute ()
+{
+ $opt_debug
+ # The first argument is the command name.
+ cmd="$nonopt"
+ test -z "$cmd" && \
+ func_fatal_help "you must specify a COMMAND"
+
+ # Handle -dlopen flags immediately.
+ for file in $execute_dlfiles; do
+ test -f "$file" \
+ || func_fatal_help "\`$file' is not a file"
+
+ dir=
+ case $file in
+ *.la)
+ # Check to see that this really is a libtool archive.
+ func_lalib_unsafe_p "$file" \
+ || func_fatal_help "\`$lib' is not a valid libtool archive"
+
+ # Read the libtool library.
+ dlname=
+ library_names=
+ func_source "$file"
+
+ # Skip this library if it cannot be dlopened.
+ if test -z "$dlname"; then
+ # Warn if it was a shared library.
+ test -n "$library_names" && \
+ func_warning "\`$file' was not linked with \`-export-dynamic'"
+ continue
+ fi
+
+ func_dirname "$file" "" "."
+ dir="$func_dirname_result"
+
+ if test -f "$dir/$objdir/$dlname"; then
+ dir="$dir/$objdir"
+ else
+ if test ! -f "$dir/$dlname"; then
+ func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
+ fi
+ fi
+ ;;
+
+ *.lo)
+ # Just add the directory containing the .lo file.
+ func_dirname "$file" "" "."
+ dir="$func_dirname_result"
+ ;;
+
+ *)
+ func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
+ continue
+ ;;
+ esac
+
+ # Get the absolute pathname.
+ absdir=`cd "$dir" && pwd`
+ test -n "$absdir" && dir="$absdir"
+
+ # Now add the directory to shlibpath_var.
+ if eval "test -z \"\$$shlibpath_var\""; then
+ eval "$shlibpath_var=\"\$dir\""
+ else
+ eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
+ fi
+ done
+
+ # This variable tells wrapper scripts just to set shlibpath_var
+ # rather than running their programs.
+ libtool_execute_magic="$magic"
+
+ # Check if any of the arguments is a wrapper script.
+ args=
+ for file
+ do
+ case $file in
+ -*) ;;
+ *)
+ # Do a test to see if this is really a libtool program.
+ if func_ltwrapper_script_p "$file"; then
+ func_source "$file"
+ # Transform arg to wrapped name.
+ file="$progdir/$program"
+ elif func_ltwrapper_executable_p "$file"; then
+ func_ltwrapper_scriptname "$file"
+ func_source "$func_ltwrapper_scriptname_result"
+ # Transform arg to wrapped name.
+ file="$progdir/$program"
+ fi
+ ;;
+ esac
+ # Quote arguments (to preserve shell metacharacters).
+ func_quote_for_eval "$file"
+ args="$args $func_quote_for_eval_result"
+ done
+
+ if test "X$opt_dry_run" = Xfalse; then
+ if test -n "$shlibpath_var"; then
+ # Export the shlibpath_var.
+ eval "export $shlibpath_var"
+ fi
+
+ # Restore saved environment variables
+ for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
+ do
+ eval "if test \"\${save_$lt_var+set}\" = set; then
+ $lt_var=\$save_$lt_var; export $lt_var
+ else
+ $lt_unset $lt_var
+ fi"
+ done
+
+ # Now prepare to actually exec the command.
+ exec_cmd="\$cmd$args"
+ else
+ # Display what would be done.
+ if test -n "$shlibpath_var"; then
+ eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
+ $ECHO "export $shlibpath_var"
+ fi
+ $ECHO "$cmd$args"
+ exit $EXIT_SUCCESS
+ fi
+}
+
+test "$mode" = execute && func_mode_execute ${1+"$@"}
+
+
+# func_mode_finish arg...
+func_mode_finish ()
+{
+ $opt_debug
+ libdirs="$nonopt"
+ admincmds=
+
+ if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
+ for dir
+ do
+ libdirs="$libdirs $dir"
+ done
+
+ for libdir in $libdirs; do
+ if test -n "$finish_cmds"; then
+ # Do each command in the finish commands.
+ func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
+'"$cmd"'"'
+ fi
+ if test -n "$finish_eval"; then
+ # Do the single finish_eval.
+ eval cmds=\"$finish_eval\"
+ $opt_dry_run || eval "$cmds" || admincmds="$admincmds
+ $cmds"
+ fi
+ done
+ fi
+
+ # Exit here if they wanted silent mode.
+ $opt_silent && exit $EXIT_SUCCESS
+
+ $ECHO "X----------------------------------------------------------------------" | $Xsed
+ $ECHO "Libraries have been installed in:"
+ for libdir in $libdirs; do
+ $ECHO " $libdir"
+ done
+ $ECHO
+ $ECHO "If you ever happen to want to link against installed libraries"
+ $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
+ $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
+ $ECHO "flag during linking and do at least one of the following:"
+ if test -n "$shlibpath_var"; then
+ $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
+ $ECHO " during execution"
+ fi
+ if test -n "$runpath_var"; then
+ $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
+ $ECHO " during linking"
+ fi
+ if test -n "$hardcode_libdir_flag_spec"; then
+ libdir=LIBDIR
+ eval flag=\"$hardcode_libdir_flag_spec\"
+
+ $ECHO " - use the \`$flag' linker flag"
+ fi
+ if test -n "$admincmds"; then
+ $ECHO " - have your system administrator run these commands:$admincmds"
+ fi
+ if test -f /etc/ld.so.conf; then
+ $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
+ fi
+ $ECHO
+
+ $ECHO "See any operating system documentation about shared libraries for"
+ case $host in
+ solaris2.[6789]|solaris2.1[0-9])
+ $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
+ $ECHO "pages."
+ ;;
+ *)
+ $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
+ ;;
+ esac
+ $ECHO "X----------------------------------------------------------------------" | $Xsed
+ exit $EXIT_SUCCESS
+}
+
+test "$mode" = finish && func_mode_finish ${1+"$@"}
+
+
+# func_mode_install arg...
+func_mode_install ()
+{
+ $opt_debug
+ # There may be an optional sh(1) argument at the beginning of
+ # install_prog (especially on Windows NT).
+ if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
+ # Allow the use of GNU shtool's install command.
+ $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
+ # Aesthetically quote it.
+ func_quote_for_eval "$nonopt"
+ install_prog="$func_quote_for_eval_result "
+ arg=$1
+ shift
+ else
+ install_prog=
+ arg=$nonopt
+ fi
+
+ # The real first argument should be the name of the installation program.
+ # Aesthetically quote it.
+ func_quote_for_eval "$arg"
+ install_prog="$install_prog$func_quote_for_eval_result"
+
+ # We need to accept at least all the BSD install flags.
+ dest=
+ files=
+ opts=
+ prev=
+ install_type=
+ isdir=no
+ stripme=
+ for arg
+ do
+ if test -n "$dest"; then
+ files="$files $dest"
+ dest=$arg
+ continue
+ fi
+
+ case $arg in
+ -d) isdir=yes ;;
+ -f)
+ case " $install_prog " in
+ *[\\\ /]cp\ *) ;;
+ *) prev=$arg ;;
+ esac
+ ;;
+ -g | -m | -o)
+ prev=$arg
+ ;;
+ -s)
+ stripme=" -s"
+ continue
+ ;;
+ -*)
+ ;;
+ *)
+ # If the previous option needed an argument, then skip it.
+ if test -n "$prev"; then
+ prev=
+ else
+ dest=$arg
+ continue
+ fi
+ ;;
+ esac
+
+ # Aesthetically quote the argument.
+ func_quote_for_eval "$arg"
+ install_prog="$install_prog $func_quote_for_eval_result"
+ done
+
+ test -z "$install_prog" && \
+ func_fatal_help "you must specify an install program"
+
+ test -n "$prev" && \
+ func_fatal_help "the \`$prev' option requires an argument"
+
+ if test -z "$files"; then
+ if test -z "$dest"; then
+ func_fatal_help "no file or destination specified"
+ else
+ func_fatal_help "you must specify a destination"
+ fi
+ fi
+
+ # Strip any trailing slash from the destination.
+ func_stripname '' '/' "$dest"
+ dest=$func_stripname_result
+
+ # Check to see that the destination is a directory.
+ test -d "$dest" && isdir=yes
+ if test "$isdir" = yes; then
+ destdir="$dest"
+ destname=
+ else
+ func_dirname_and_basename "$dest" "" "."
+ destdir="$func_dirname_result"
+ destname="$func_basename_result"
+
+ # Not a directory, so check to see that there is only one file specified.
+ set dummy $files; shift
+ test "$#" -gt 1 && \
+ func_fatal_help "\`$dest' is not a directory"
+ fi
+ case $destdir in
+ [\\/]* | [A-Za-z]:[\\/]*) ;;
+ *)
+ for file in $files; do
+ case $file in
+ *.lo) ;;
+ *)
+ func_fatal_help "\`$destdir' must be an absolute directory name"
+ ;;
+ esac
+ done
+ ;;
+ esac
+
+ # This variable tells wrapper scripts just to set variables rather
+ # than running their programs.
+ libtool_install_magic="$magic"
+
+ staticlibs=
+ future_libdirs=
+ current_libdirs=
+ for file in $files; do
+
+ # Do each installation.
+ case $file in
+ *.$libext)
+ # Do the static libraries later.
+ staticlibs="$staticlibs $file"
+ ;;
+
+ *.la)
+ # Check to see that this really is a libtool archive.
+ func_lalib_unsafe_p "$file" \
+ || func_fatal_help "\`$file' is not a valid libtool archive"
+
+ library_names=
+ old_library=
+ relink_command=
+ func_source "$file"
+
+ # Add the libdir to current_libdirs if it is the destination.
+ if test "X$destdir" = "X$libdir"; then
+ case "$current_libdirs " in
+ *" $libdir "*) ;;
+ *) current_libdirs="$current_libdirs $libdir" ;;
+ esac
+ else
+ # Note the libdir as a future libdir.
+ case "$future_libdirs " in
+ *" $libdir "*) ;;
+ *) future_libdirs="$future_libdirs $libdir" ;;
+ esac
+ fi
+
+ func_dirname "$file" "/" ""
+ dir="$func_dirname_result"
+ dir="$dir$objdir"
+
+ if test -n "$relink_command"; then
+ # Determine the prefix the user has applied to our future dir.
+ inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
+
+ # Don't allow the user to place us outside of our expected
+ # location b/c this prevents finding dependent libraries that
+ # are installed to the same prefix.
+ # At present, this check doesn't affect windows .dll's that
+ # are installed into $libdir/../bin (currently, that works fine)
+ # but it's something to keep an eye on.
+ test "$inst_prefix_dir" = "$destdir" && \
+ func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
+
+ if test -n "$inst_prefix_dir"; then
+ # Stick the inst_prefix_dir data into the link command.
+ relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
+ else
+ relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
+ fi
+
+ func_warning "relinking \`$file'"
+ func_show_eval "$relink_command" \
+ 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
+ fi
+
+ # See the names of the shared library.
+ set dummy $library_names; shift
+ if test -n "$1"; then
+ realname="$1"
+ shift
+
+ srcname="$realname"
+ test -n "$relink_command" && srcname="$realname"T
+
+ # Install the shared library and build the symlinks.
+ func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
+ 'exit $?'
+ tstripme="$stripme"
+ case $host_os in
+ cygwin* | mingw* | pw32* | cegcc*)
+ case $realname in
+ *.dll.a)
+ tstripme=""
+ ;;
+ esac
+ ;;
+ esac
+ if test -n "$tstripme" && test -n "$striplib"; then
+ func_show_eval "$striplib $destdir/$realname" 'exit $?'
+ fi
+
+ if test "$#" -gt 0; then
+ # Delete the old symlinks, and create new ones.
+ # Try `ln -sf' first, because the `ln' binary might depend on
+ # the symlink we replace! Solaris /bin/ln does not understand -f,
+ # so we also need to try rm && ln -s.
+ for linkname
+ do
+ test "$linkname" != "$realname" \
+ && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
+ done
+ fi
+
+ # Do each command in the postinstall commands.
+ lib="$destdir/$realname"
+ func_execute_cmds "$postinstall_cmds" 'exit $?'
+ fi
+
+ # Install the pseudo-library for information purposes.
+ func_basename "$file"
+ name="$func_basename_result"
+ instname="$dir/$name"i
+ func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
+
+ # Maybe install the static library, too.
+ test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
+ ;;
+
+ *.lo)
+ # Install (i.e. copy) a libtool object.
+
+ # Figure out destination file name, if it wasn't already specified.
+ if test -n "$destname"; then
+ destfile="$destdir/$destname"
+ else
+ func_basename "$file"
+ destfile="$func_basename_result"
+ destfile="$destdir/$destfile"
+ fi
+
+ # Deduce the name of the destination old-style object file.
+ case $destfile in
+ *.lo)
+ func_lo2o "$destfile"
+ staticdest=$func_lo2o_result
+ ;;
+ *.$objext)
+ staticdest="$destfile"
+ destfile=
+ ;;
+ *)
+ func_fatal_help "cannot copy a libtool object to \`$destfile'"
+ ;;
+ esac
+
+ # Install the libtool object if requested.
+ test -n "$destfile" && \
+ func_show_eval "$install_prog $file $destfile" 'exit $?'
+
+ # Install the old object if enabled.
+ if test "$build_old_libs" = yes; then
+ # Deduce the name of the old-style object file.
+ func_lo2o "$file"
+ staticobj=$func_lo2o_result
+ func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
+ fi
+ exit $EXIT_SUCCESS
+ ;;
+
+ *)
+ # Figure out destination file name, if it wasn't already specified.
+ if test -n "$destname"; then
+ destfile="$destdir/$destname"
+ else
+ func_basename "$file"
+ destfile="$func_basename_result"
+ destfile="$destdir/$destfile"
+ fi
+
+ # If the file is missing, and there is a .exe on the end, strip it
+ # because it is most likely a libtool script we actually want to
+ # install
+ stripped_ext=""
+ case $file in
+ *.exe)
+ if test ! -f "$file"; then
+ func_stripname '' '.exe' "$file"
+ file=$func_stripname_result
+ stripped_ext=".exe"
+ fi
+ ;;
+ esac
+
+ # Do a test to see if this is really a libtool program.
+ case $host in
+ *cygwin* | *mingw*)
+ if func_ltwrapper_executable_p "$file"; then
+ func_ltwrapper_scriptname "$file"
+ wrapper=$func_ltwrapper_scriptname_result
+ else
+ func_stripname '' '.exe' "$file"
+ wrapper=$func_stripname_result
+ fi
+ ;;
+ *)
+ wrapper=$file
+ ;;
+ esac
+ if func_ltwrapper_script_p "$wrapper"; then
+ notinst_deplibs=
+ relink_command=
+
+ func_source "$wrapper"
+
+ # Check the variables that should have been set.
+ test -z "$generated_by_libtool_version" && \
+ func_fatal_error "invalid libtool wrapper script \`$wrapper'"
+
+ finalize=yes
+ for lib in $notinst_deplibs; do
+ # Check to see that each library is installed.
+ libdir=
+ if test -f "$lib"; then
+ func_source "$lib"
+ fi
+ libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
+ if test -n "$libdir" && test ! -f "$libfile"; then
+ func_warning "\`$lib' has not been installed in \`$libdir'"
+ finalize=no
+ fi
+ done
+
+ relink_command=
+ func_source "$wrapper"
+
+ outputname=
+ if test "$fast_install" = no && test -n "$relink_command"; then
+ $opt_dry_run || {
+ if test "$finalize" = yes; then
+ tmpdir=`func_mktempdir`
+ func_basename "$file$stripped_ext"
+ file="$func_basename_result"
+ outputname="$tmpdir/$file"
+ # Replace the output file specification.
+ relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
+
+ $opt_silent || {
+ func_quote_for_expand "$relink_command"
+ eval "func_echo $func_quote_for_expand_result"
+ }
+ if eval "$relink_command"; then :
+ else
+ func_error "error: relink \`$file' with the above command before installing it"
+ $opt_dry_run || ${RM}r "$tmpdir"
+ continue
+ fi
+ file="$outputname"
+ else
+ func_warning "cannot relink \`$file'"
+ fi
+ }
+ else
+ # Install the binary that we compiled earlier.
+ file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
+ fi
+ fi
+
+ # remove .exe since cygwin /usr/bin/install will append another
+ # one anyway
+ case $install_prog,$host in
+ */usr/bin/install*,*cygwin*)
+ case $file:$destfile in
+ *.exe:*.exe)
+ # this is ok
+ ;;
+ *.exe:*)
+ destfile=$destfile.exe
+ ;;
+ *:*.exe)
+ func_stripname '' '.exe' "$destfile"
+ destfile=$func_stripname_result
+ ;;
+ esac
+ ;;
+ esac
+ func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
+ $opt_dry_run || if test -n "$outputname"; then
+ ${RM}r "$tmpdir"
+ fi
+ ;;
+ esac
+ done
+
+ for file in $staticlibs; do
+ func_basename "$file"
+ name="$func_basename_result"
+
+ # Set up the ranlib parameters.
+ oldlib="$destdir/$name"
+
+ func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
+
+ if test -n "$stripme" && test -n "$old_striplib"; then
+ func_show_eval "$old_striplib $oldlib" 'exit $?'
+ fi
+
+ # Do each command in the postinstall commands.
+ func_execute_cmds "$old_postinstall_cmds" 'exit $?'
+ done
+
+ test -n "$future_libdirs" && \
+ func_warning "remember to run \`$progname --finish$future_libdirs'"
+
+ if test -n "$current_libdirs"; then
+ # Maybe just do a dry run.
+ $opt_dry_run && current_libdirs=" -n$current_libdirs"
+ exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
+ else
+ exit $EXIT_SUCCESS
+ fi
+}
+
+test "$mode" = install && func_mode_install ${1+"$@"}
+
+
+# func_generate_dlsyms outputname originator pic_p
+# Extract symbols from dlprefiles and create ${outputname}S.o with
+# a dlpreopen symbol table.
+func_generate_dlsyms ()
+{
+ $opt_debug
+ my_outputname="$1"
+ my_originator="$2"
+ my_pic_p="${3-no}"
+ my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
+ my_dlsyms=
+
+ if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
+ if test -n "$NM" && test -n "$global_symbol_pipe"; then
+ my_dlsyms="${my_outputname}S.c"
+ else
+ func_error "not configured to extract global symbols from dlpreopened files"
+ fi
+ fi
+
+ if test -n "$my_dlsyms"; then
+ case $my_dlsyms in
+ "") ;;
+ *.c)
+ # Discover the nlist of each of the dlfiles.
+ nlist="$output_objdir/${my_outputname}.nm"
+
+ func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
+
+ # Parse the name list into a source file.
+ func_verbose "creating $output_objdir/$my_dlsyms"
+
+ $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
+/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
+/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
+
+#ifdef __cplusplus
+extern \"C\" {
+#endif
+
+/* External symbol declarations for the compiler. */\
+"
+
+ if test "$dlself" = yes; then
+ func_verbose "generating symbol list for \`$output'"
+
+ $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
+
+ # Add our own program objects to the symbol list.
+ progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
+ for progfile in $progfiles; do
+ func_verbose "extracting global C symbols from \`$progfile'"
+ $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
+ done
+
+ if test -n "$exclude_expsyms"; then
+ $opt_dry_run || {
+ eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
+ eval '$MV "$nlist"T "$nlist"'
+ }
+ fi
+
+ if test -n "$export_symbols_regex"; then
+ $opt_dry_run || {
+ eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
+ eval '$MV "$nlist"T "$nlist"'
+ }
+ fi
+
+ # Prepare the list of exported symbols
+ if test -z "$export_symbols"; then
+ export_symbols="$output_objdir/$outputname.exp"
+ $opt_dry_run || {
+ $RM $export_symbols
+ eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
+ case $host in
+ *cygwin* | *mingw* | *cegcc* )
+ eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
+ eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
+ ;;
+ esac
+ }
+ else
+ $opt_dry_run || {
+ eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
+ eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
+ eval '$MV "$nlist"T "$nlist"'
+ case $host in
+ *cygwin | *mingw* | *cegcc* )
+ eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
+ eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
+ ;;
+ esac
+ }
+ fi
+ fi
+
+ for dlprefile in $dlprefiles; do
+ func_verbose "extracting global C symbols from \`$dlprefile'"
+ func_basename "$dlprefile"
+ name="$func_basename_result"
+ $opt_dry_run || {
+ eval '$ECHO ": $name " >> "$nlist"'
+ eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
+ }
+ done
+
+ $opt_dry_run || {
+ # Make sure we have at least an empty file.
+ test -f "$nlist" || : > "$nlist"
+
+ if test -n "$exclude_expsyms"; then
+ $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
+ $MV "$nlist"T "$nlist"
+ fi
+
+ # Try sorting and uniquifying the output.
+ if $GREP -v "^: " < "$nlist" |
+ if sort -k 3 </dev/null >/dev/null 2>&1; then
+ sort -k 3
+ else
+ sort +2
+ fi |
+ uniq > "$nlist"S; then
+ :
+ else
+ $GREP -v "^: " < "$nlist" > "$nlist"S
+ fi
+
+ if test -f "$nlist"S; then
+ eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
+ else
+ $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
+ fi
+
+ $ECHO >> "$output_objdir/$my_dlsyms" "\
+
+/* The mapping between symbol names and symbols. */
+typedef struct {
+ const char *name;
+ void *address;
+} lt_dlsymlist;
+"
+ case $host in
+ *cygwin* | *mingw* | *cegcc* )
+ $ECHO >> "$output_objdir/$my_dlsyms" "\
+/* DATA imports from DLLs on WIN32 con't be const, because
+ runtime relocations are performed -- see ld's documentation
+ on pseudo-relocs. */"
+ lt_dlsym_const= ;;
+ *osf5*)
+ echo >> "$output_objdir/$my_dlsyms" "\
+/* This system does not cope well with relocations in const data */"
+ lt_dlsym_const= ;;
+ *)
+ lt_dlsym_const=const ;;
+ esac
+
+ $ECHO >> "$output_objdir/$my_dlsyms" "\
+extern $lt_dlsym_const lt_dlsymlist
+lt_${my_prefix}_LTX_preloaded_symbols[];
+$lt_dlsym_const lt_dlsymlist
+lt_${my_prefix}_LTX_preloaded_symbols[] =
+{\
+ { \"$my_originator\", (void *) 0 },"
+
+ case $need_lib_prefix in
+ no)
+ eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
+ ;;
+ *)
+ eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
+ ;;
+ esac
+ $ECHO >> "$output_objdir/$my_dlsyms" "\
+ {0, (void *) 0}
+};
+
+/* This works around a problem in FreeBSD linker */
+#ifdef FREEBSD_WORKAROUND
+static const void *lt_preloaded_setup() {
+ return lt_${my_prefix}_LTX_preloaded_symbols;
+}
+#endif
+
+#ifdef __cplusplus
+}
+#endif\
+"
+ } # !$opt_dry_run
+
+ pic_flag_for_symtable=
+ case "$compile_command " in
+ *" -static "*) ;;
+ *)
+ case $host in
+ # compiling the symbol table file with pic_flag works around
+ # a FreeBSD bug that causes programs to crash when -lm is
+ # linked before any other PIC object. But we must not use
+ # pic_flag when linking with -static. The problem exists in
+ # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
+ *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
+ pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
+ *-*-hpux*)
+ pic_flag_for_symtable=" $pic_flag" ;;
+ *)
+ if test "X$my_pic_p" != Xno; then
+ pic_flag_for_symtable=" $pic_flag"
+ fi
+ ;;
+ esac
+ ;;
+ esac
+ symtab_cflags=
+ for arg in $LTCFLAGS; do
+ case $arg in
+ -pie | -fpie | -fPIE) ;;
+ *) symtab_cflags="$symtab_cflags $arg" ;;
+ esac
+ done
+
+ # Now compile the dynamic symbol file.
+ func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
+
+ # Clean up the generated files.
+ func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
+
+ # Transform the symbol file into the correct name.
+ symfileobj="$output_objdir/${my_outputname}S.$objext"
+ case $host in
+ *cygwin* | *mingw* | *cegcc* )
+ if test -f "$output_objdir/$my_outputname.def"; then
+ compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
+ finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
+ else
+ compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
+ finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
+ fi
+ ;;
+ *)
+ compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
+ finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
+ ;;
+ esac
+ ;;
+ *)
+ func_fatal_error "unknown suffix for \`$my_dlsyms'"
+ ;;
+ esac
+ else
+ # We keep going just in case the user didn't refer to
+ # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
+ # really was required.
+
+ # Nullify the symbol file.
+ compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
+ finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
+ fi
+}
+
+# func_win32_libid arg
+# return the library type of file 'arg'
+#
+# Need a lot of goo to handle *both* DLLs and import libs
+# Has to be a shell function in order to 'eat' the argument
+# that is supplied when $file_magic_command is called.
+func_win32_libid ()
+{
+ $opt_debug
+ win32_libid_type="unknown"
+ win32_fileres=`file -L $1 2>/dev/null`
+ case $win32_fileres in
+ *ar\ archive\ import\ library*) # definitely import
+ win32_libid_type="x86 archive import"
+ ;;
+ *ar\ archive*) # could be an import, or static
+ if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
+ $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
+ win32_nmres=`eval $NM -f posix -A $1 |
+ $SED -n -e '
+ 1,100{
+ / I /{
+ s,.*,import,
+ p
+ q
+ }
+ }'`
+ case $win32_nmres in
+ import*) win32_libid_type="x86 archive import";;
+ *) win32_libid_type="x86 archive static";;
+ esac
+ fi
+ ;;
+ *DLL*)
+ win32_libid_type="x86 DLL"
+ ;;
+ *executable*) # but shell scripts are "executable" too...
+ case $win32_fileres in
+ *MS\ Windows\ PE\ Intel*)
+ win32_libid_type="x86 DLL"
+ ;;
+ esac
+ ;;
+ esac
+ $ECHO "$win32_libid_type"
+}
+
+
+
+# func_extract_an_archive dir oldlib
+func_extract_an_archive ()
+{
+ $opt_debug
+ f_ex_an_ar_dir="$1"; shift
+ f_ex_an_ar_oldlib="$1"
+ func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
+ if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
+ :
+ else
+ func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
+ fi
+}
+
+
+# func_extract_archives gentop oldlib ...
+func_extract_archives ()
+{
+ $opt_debug
+ my_gentop="$1"; shift
+ my_oldlibs=${1+"$@"}
+ my_oldobjs=""
+ my_xlib=""
+ my_xabs=""
+ my_xdir=""
+
+ for my_xlib in $my_oldlibs; do
+ # Extract the objects.
+ case $my_xlib in
+ [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
+ *) my_xabs=`pwd`"/$my_xlib" ;;
+ esac
+ func_basename "$my_xlib"
+ my_xlib="$func_basename_result"
+ my_xlib_u=$my_xlib
+ while :; do
+ case " $extracted_archives " in
+ *" $my_xlib_u "*)
+ func_arith $extracted_serial + 1
+ extracted_serial=$func_arith_result
+ my_xlib_u=lt$extracted_serial-$my_xlib ;;
+ *) break ;;
+ esac
+ done
+ extracted_archives="$extracted_archives $my_xlib_u"
+ my_xdir="$my_gentop/$my_xlib_u"
+
+ func_mkdir_p "$my_xdir"
+
+ case $host in
+ *-darwin*)
+ func_verbose "Extracting $my_xabs"
+ # Do not bother doing anything if just a dry run
+ $opt_dry_run || {
+ darwin_orig_dir=`pwd`
+ cd $my_xdir || exit $?
+ darwin_archive=$my_xabs
+ darwin_curdir=`pwd`
+ darwin_base_archive=`basename "$darwin_archive"`
+ darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
+ if test -n "$darwin_arches"; then
+ darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
+ darwin_arch=
+ func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
+ for darwin_arch in $darwin_arches ; do
+ func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
+ $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
+ cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
+ func_extract_an_archive "`pwd`" "${darwin_base_archive}"
+ cd "$darwin_curdir"
+ $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
+ done # $darwin_arches
+ ## Okay now we've a bunch of thin objects, gotta fatten them up :)
+ darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
+ darwin_file=
+ darwin_files=
+ for darwin_file in $darwin_filelist; do
+ darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
+ $LIPO -create -output "$darwin_file" $darwin_files
+ done # $darwin_filelist
+ $RM -rf unfat-$$
+ cd "$darwin_orig_dir"
+ else
+ cd $darwin_orig_dir
+ func_extract_an_archive "$my_xdir" "$my_xabs"
+ fi # $darwin_arches
+ } # !$opt_dry_run
+ ;;
+ *)
+ func_extract_an_archive "$my_xdir" "$my_xabs"
+ ;;
+ esac
+ my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
+ done
+
+ func_extract_archives_result="$my_oldobjs"
+}
+
+
+
+# func_emit_wrapper_part1 [arg=no]
+#
+# Emit the first part of a libtool wrapper script on stdout.
+# For more information, see the description associated with
+# func_emit_wrapper(), below.
+func_emit_wrapper_part1 ()
+{
+ func_emit_wrapper_part1_arg1=no
+ if test -n "$1" ; then
+ func_emit_wrapper_part1_arg1=$1
+ fi
+
+ $ECHO "\
+#! $SHELL
+
+# $output - temporary wrapper script for $objdir/$outputname
+# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
+#
+# The $output program cannot be directly executed until all the libtool
+# libraries that it depends on are installed.
+#
+# This wrapper script should never be moved out of the build directory.
+# If it is, it will not operate correctly.
+
+# Sed substitution that helps us do robust quoting. It backslashifies
+# metacharacters that are still active within double-quoted strings.
+Xsed='${SED} -e 1s/^X//'
+sed_quote_subst='$sed_quote_subst'
+
+# Be Bourne compatible
+if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
+ emulate sh
+ NULLCMD=:
+ # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '\${1+\"\$@\"}'='\"\$@\"'
+ setopt NO_GLOB_SUBST
+else
+ case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
+fi
+BIN_SH=xpg4; export BIN_SH # for Tru64
+DUALCASE=1; export DUALCASE # for MKS sh
+
+# The HP-UX ksh and POSIX shell print the target directory to stdout
+# if CDPATH is set.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+relink_command=\"$relink_command\"
+
+# This environment variable determines our operation mode.
+if test \"\$libtool_install_magic\" = \"$magic\"; then
+ # install mode needs the following variables:
+ generated_by_libtool_version='$macro_version'
+ notinst_deplibs='$notinst_deplibs'
+else
+ # When we are sourced in execute mode, \$file and \$ECHO are already set.
+ if test \"\$libtool_execute_magic\" != \"$magic\"; then
+ ECHO=\"$qecho\"
+ file=\"\$0\"
+ # Make sure echo works.
+ if test \"X\$1\" = X--no-reexec; then
+ # Discard the --no-reexec flag, and continue.
+ shift
+ elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
+ # Yippee, \$ECHO works!
+ :
+ else
+ # Restart under the correct shell, and then maybe \$ECHO will work.
+ exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
+ fi
+ fi\
+"
+ $ECHO "\
+
+ # Find the directory that this script lives in.
+ thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
+ test \"x\$thisdir\" = \"x\$file\" && thisdir=.
+
+ # Follow symbolic links until we get to the real thisdir.
+ file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
+ while test -n \"\$file\"; do
+ destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
+
+ # If there was a directory component, then change thisdir.
+ if test \"x\$destdir\" != \"x\$file\"; then
+ case \"\$destdir\" in
+ [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
+ *) thisdir=\"\$thisdir/\$destdir\" ;;
+ esac
+ fi
+
+ file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
+ file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
+ done
+"
+}
+# end: func_emit_wrapper_part1
+
+# func_emit_wrapper_part2 [arg=no]
+#
+# Emit the second part of a libtool wrapper script on stdout.
+# For more information, see the description associated with
+# func_emit_wrapper(), below.
+func_emit_wrapper_part2 ()
+{
+ func_emit_wrapper_part2_arg1=no
+ if test -n "$1" ; then
+ func_emit_wrapper_part2_arg1=$1
+ fi
+
+ $ECHO "\
+
+ # Usually 'no', except on cygwin/mingw when embedded into
+ # the cwrapper.
+ WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1
+ if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
+ # special case for '.'
+ if test \"\$thisdir\" = \".\"; then
+ thisdir=\`pwd\`
+ fi
+ # remove .libs from thisdir
+ case \"\$thisdir\" in
+ *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
+ $objdir ) thisdir=. ;;
+ esac
+ fi
+
+ # Try to get the absolute directory name.
+ absdir=\`cd \"\$thisdir\" && pwd\`
+ test -n \"\$absdir\" && thisdir=\"\$absdir\"
+"
+
+ if test "$fast_install" = yes; then
+ $ECHO "\
+ program=lt-'$outputname'$exeext
+ progdir=\"\$thisdir/$objdir\"
+
+ if test ! -f \"\$progdir/\$program\" ||
+ { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
+ test \"X\$file\" != \"X\$progdir/\$program\"; }; then
+
+ file=\"\$\$-\$program\"
+
+ if test ! -d \"\$progdir\"; then
+ $MKDIR \"\$progdir\"
+ else
+ $RM \"\$progdir/\$file\"
+ fi"
+
+ $ECHO "\
+
+ # relink executable if necessary
+ if test -n \"\$relink_command\"; then
+ if relink_command_output=\`eval \$relink_command 2>&1\`; then :
+ else
+ $ECHO \"\$relink_command_output\" >&2
+ $RM \"\$progdir/\$file\"
+ exit 1
+ fi
+ fi
+
+ $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
+ { $RM \"\$progdir/\$program\";
+ $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
+ $RM \"\$progdir/\$file\"
+ fi"
+ else
+ $ECHO "\
+ program='$outputname'
+ progdir=\"\$thisdir/$objdir\"
+"
+ fi
+
+ $ECHO "\
+
+ if test -f \"\$progdir/\$program\"; then"
+
+ # Export our shlibpath_var if we have one.
+ if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
+ $ECHO "\
+ # Add our own library path to $shlibpath_var
+ $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
+
+ # Some systems cannot cope with colon-terminated $shlibpath_var
+ # The second colon is a workaround for a bug in BeOS R4 sed
+ $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
+
+ export $shlibpath_var
+"
+ fi
+
+ # fixup the dll searchpath if we need to.
+ if test -n "$dllsearchpath"; then
+ $ECHO "\
+ # Add the dll search path components to the executable PATH
+ PATH=$dllsearchpath:\$PATH
+"
+ fi
+
+ $ECHO "\
+ if test \"\$libtool_execute_magic\" != \"$magic\"; then
+ # Run the actual program with our arguments.
+"
+ case $host in
+ # Backslashes separate directories on plain windows
+ *-*-mingw | *-*-os2* | *-cegcc*)
+ $ECHO "\
+ exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
+"
+ ;;
+
+ *)
+ $ECHO "\
+ exec \"\$progdir/\$program\" \${1+\"\$@\"}
+"
+ ;;
+ esac
+ $ECHO "\
+ \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
+ exit 1
+ fi
+ else
+ # The program doesn't exist.
+ \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
+ \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
+ $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
+ exit 1
+ fi
+fi\
+"
+}
+# end: func_emit_wrapper_part2
+
+
+# func_emit_wrapper [arg=no]
+#
+# Emit a libtool wrapper script on stdout.
+# Don't directly open a file because we may want to
+# incorporate the script contents within a cygwin/mingw
+# wrapper executable. Must ONLY be called from within
+# func_mode_link because it depends on a number of variables
+# set therein.
+#
+# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
+# variable will take. If 'yes', then the emitted script
+# will assume that the directory in which it is stored is
+# the $objdir directory. This is a cygwin/mingw-specific
+# behavior.
+func_emit_wrapper ()
+{
+ func_emit_wrapper_arg1=no
+ if test -n "$1" ; then
+ func_emit_wrapper_arg1=$1
+ fi
+
+ # split this up so that func_emit_cwrapperexe_src
+ # can call each part independently.
+ func_emit_wrapper_part1 "${func_emit_wrapper_arg1}"
+ func_emit_wrapper_part2 "${func_emit_wrapper_arg1}"
+}
+
+
+# func_to_host_path arg
+#
+# Convert paths to host format when used with build tools.
+# Intended for use with "native" mingw (where libtool itself
+# is running under the msys shell), or in the following cross-
+# build environments:
+# $build $host
+# mingw (msys) mingw [e.g. native]
+# cygwin mingw
+# *nix + wine mingw
+# where wine is equipped with the `winepath' executable.
+# In the native mingw case, the (msys) shell automatically
+# converts paths for any non-msys applications it launches,
+# but that facility isn't available from inside the cwrapper.
+# Similar accommodations are necessary for $host mingw and
+# $build cygwin. Calling this function does no harm for other
+# $host/$build combinations not listed above.
+#
+# ARG is the path (on $build) that should be converted to
+# the proper representation for $host. The result is stored
+# in $func_to_host_path_result.
+func_to_host_path ()
+{
+ func_to_host_path_result="$1"
+ if test -n "$1" ; then
+ case $host in
+ *mingw* )
+ lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
+ case $build in
+ *mingw* ) # actually, msys
+ # awkward: cmd appends spaces to result
+ lt_sed_strip_trailing_spaces="s/[ ]*\$//"
+ func_to_host_path_tmp1=`( cmd //c echo "$1" |\
+ $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
+ func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
+ $SED -e "$lt_sed_naive_backslashify"`
+ ;;
+ *cygwin* )
+ func_to_host_path_tmp1=`cygpath -w "$1"`
+ func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
+ $SED -e "$lt_sed_naive_backslashify"`
+ ;;
+ * )
+ # Unfortunately, winepath does not exit with a non-zero
+ # error code, so we are forced to check the contents of
+ # stdout. On the other hand, if the command is not
+ # found, the shell will set an exit code of 127 and print
+ # *an error message* to stdout. So we must check for both
+ # error code of zero AND non-empty stdout, which explains
+ # the odd construction:
+ func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
+ if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
+ func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
+ $SED -e "$lt_sed_naive_backslashify"`
+ else
+ # Allow warning below.
+ func_to_host_path_result=""
+ fi
+ ;;
+ esac
+ if test -z "$func_to_host_path_result" ; then
+ func_error "Could not determine host path corresponding to"
+ func_error " '$1'"
+ func_error "Continuing, but uninstalled executables may not work."
+ # Fallback:
+ func_to_host_path_result="$1"
+ fi
+ ;;
+ esac
+ fi
+}
+# end: func_to_host_path
+
+# func_to_host_pathlist arg
+#
+# Convert pathlists to host format when used with build tools.
+# See func_to_host_path(), above. This function supports the
+# following $build/$host combinations (but does no harm for
+# combinations not listed here):
+# $build $host
+# mingw (msys) mingw [e.g. native]
+# cygwin mingw
+# *nix + wine mingw
+#
+# Path separators are also converted from $build format to
+# $host format. If ARG begins or ends with a path separator
+# character, it is preserved (but converted to $host format)
+# on output.
+#
+# ARG is a pathlist (on $build) that should be converted to
+# the proper representation on $host. The result is stored
+# in $func_to_host_pathlist_result.
+func_to_host_pathlist ()
+{
+ func_to_host_pathlist_result="$1"
+ if test -n "$1" ; then
+ case $host in
+ *mingw* )
+ lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
+ # Remove leading and trailing path separator characters from
+ # ARG. msys behavior is inconsistent here, cygpath turns them
+ # into '.;' and ';.', and winepath ignores them completely.
+ func_to_host_pathlist_tmp2="$1"
+ # Once set for this call, this variable should not be
+ # reassigned. It is used in tha fallback case.
+ func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
+ $SED -e 's|^:*||' -e 's|:*$||'`
+ case $build in
+ *mingw* ) # Actually, msys.
+ # Awkward: cmd appends spaces to result.
+ lt_sed_strip_trailing_spaces="s/[ ]*\$//"
+ func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
+ $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
+ func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
+ $SED -e "$lt_sed_naive_backslashify"`
+ ;;
+ *cygwin* )
+ func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
+ func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
+ $SED -e "$lt_sed_naive_backslashify"`
+ ;;
+ * )
+ # unfortunately, winepath doesn't convert pathlists
+ func_to_host_pathlist_result=""
+ func_to_host_pathlist_oldIFS=$IFS
+ IFS=:
+ for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
+ IFS=$func_to_host_pathlist_oldIFS
+ if test -n "$func_to_host_pathlist_f" ; then
+ func_to_host_path "$func_to_host_pathlist_f"
+ if test -n "$func_to_host_path_result" ; then
+ if test -z "$func_to_host_pathlist_result" ; then
+ func_to_host_pathlist_result="$func_to_host_path_result"
+ else
+ func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
+ fi
+ fi
+ fi
+ IFS=:
+ done
+ IFS=$func_to_host_pathlist_oldIFS
+ ;;
+ esac
+ if test -z "$func_to_host_pathlist_result" ; then
+ func_error "Could not determine the host path(s) corresponding to"
+ func_error " '$1'"
+ func_error "Continuing, but uninstalled executables may not work."
+ # Fallback. This may break if $1 contains DOS-style drive
+ # specifications. The fix is not to complicate the expression
+ # below, but for the user to provide a working wine installation
+ # with winepath so that path translation in the cross-to-mingw
+ # case works properly.
+ lt_replace_pathsep_nix_to_dos="s|:|;|g"
+ func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
+ $SED -e "$lt_replace_pathsep_nix_to_dos"`
+ fi
+ # Now, add the leading and trailing path separators back
+ case "$1" in
+ :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
+ ;;
+ esac
+ case "$1" in
+ *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
+ ;;
+ esac
+ ;;
+ esac
+ fi
+}
+# end: func_to_host_pathlist
+
+# func_emit_cwrapperexe_src
+# emit the source code for a wrapper executable on stdout
+# Must ONLY be called from within func_mode_link because
+# it depends on a number of variable set therein.
+func_emit_cwrapperexe_src ()
+{
+ cat <<EOF
+
+/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
+ Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
+
+ The $output program cannot be directly executed until all the libtool
+ libraries that it depends on are installed.
+
+ This wrapper executable should never be moved out of the build directory.
+ If it is, it will not operate correctly.
+
+ Currently, it simply execs the wrapper *script* "$SHELL $output",
+ but could eventually absorb all of the scripts functionality and
+ exec $objdir/$outputname directly.
+*/
+EOF
+ cat <<"EOF"
+#include <stdio.h>
+#include <stdlib.h>
+#ifdef _MSC_VER
+# include <direct.h>
+# include <process.h>
+# include <io.h>
+# define setmode _setmode
+#else
+# include <unistd.h>
+# include <stdint.h>
+# ifdef __CYGWIN__
+# include <io.h>
+# define HAVE_SETENV
+# ifdef __STRICT_ANSI__
+char *realpath (const char *, char *);
+int putenv (char *);
+int setenv (const char *, const char *, int);
+# endif
+# endif
+#endif
+#include <malloc.h>
+#include <stdarg.h>
+#include <assert.h>
+#include <string.h>
+#include <ctype.h>
+#include <errno.h>
+#include <fcntl.h>
+#include <sys/stat.h>
+
+#if defined(PATH_MAX)
+# define LT_PATHMAX PATH_MAX
+#elif defined(MAXPATHLEN)
+# define LT_PATHMAX MAXPATHLEN
+#else
+# define LT_PATHMAX 1024
+#endif
+
+#ifndef S_IXOTH
+# define S_IXOTH 0
+#endif
+#ifndef S_IXGRP
+# define S_IXGRP 0
+#endif
+
+#ifdef _MSC_VER
+# define S_IXUSR _S_IEXEC
+# define stat _stat
+# ifndef _INTPTR_T_DEFINED
+# define intptr_t int
+# endif
+#endif
+
+#ifndef DIR_SEPARATOR
+# define DIR_SEPARATOR '/'
+# define PATH_SEPARATOR ':'
+#endif
+
+#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
+ defined (__OS2__)
+# define HAVE_DOS_BASED_FILE_SYSTEM
+# define FOPEN_WB "wb"
+# ifndef DIR_SEPARATOR_2
+# define DIR_SEPARATOR_2 '\\'
+# endif
+# ifndef PATH_SEPARATOR_2
+# define PATH_SEPARATOR_2 ';'
+# endif
+#endif
+
+#ifndef DIR_SEPARATOR_2
+# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
+#else /* DIR_SEPARATOR_2 */
+# define IS_DIR_SEPARATOR(ch) \
+ (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
+#endif /* DIR_SEPARATOR_2 */
+
+#ifndef PATH_SEPARATOR_2
+# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
+#else /* PATH_SEPARATOR_2 */
+# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
+#endif /* PATH_SEPARATOR_2 */
+
+#ifdef __CYGWIN__
+# define FOPEN_WB "wb"
+#endif
+
+#ifndef FOPEN_WB
+# define FOPEN_WB "w"
+#endif
+#ifndef _O_BINARY
+# define _O_BINARY 0
+#endif
+
+#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
+#define XFREE(stale) do { \
+ if (stale) { free ((void *) stale); stale = 0; } \
+} while (0)
+
+#undef LTWRAPPER_DEBUGPRINTF
+#if defined DEBUGWRAPPER
+# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
+static void
+ltwrapper_debugprintf (const char *fmt, ...)
+{
+ va_list args;
+ va_start (args, fmt);
+ (void) vfprintf (stderr, fmt, args);
+ va_end (args);
+}
+#else
+# define LTWRAPPER_DEBUGPRINTF(args)
+#endif
+
+const char *program_name = NULL;
+
+void *xmalloc (size_t num);
+char *xstrdup (const char *string);
+const char *base_name (const char *name);
+char *find_executable (const char *wrapper);
+char *chase_symlinks (const char *pathspec);
+int make_executable (const char *path);
+int check_executable (const char *path);
+char *strendzap (char *str, const char *pat);
+void lt_fatal (const char *message, ...);
+void lt_setenv (const char *name, const char *value);
+char *lt_extend_str (const char *orig_value, const char *add, int to_end);
+void lt_opt_process_env_set (const char *arg);
+void lt_opt_process_env_prepend (const char *arg);
+void lt_opt_process_env_append (const char *arg);
+int lt_split_name_value (const char *arg, char** name, char** value);
+void lt_update_exe_path (const char *name, const char *value);
+void lt_update_lib_path (const char *name, const char *value);
+
+static const char *script_text_part1 =
+EOF
+
+ func_emit_wrapper_part1 yes |
+ $SED -e 's/\([\\"]\)/\\\1/g' \
+ -e 's/^/ "/' -e 's/$/\\n"/'
+ echo ";"
+ cat <<EOF
+
+static const char *script_text_part2 =
+EOF
+ func_emit_wrapper_part2 yes |
+ $SED -e 's/\([\\"]\)/\\\1/g' \
+ -e 's/^/ "/' -e 's/$/\\n"/'
+ echo ";"
+
+ cat <<EOF
+const char * MAGIC_EXE = "$magic_exe";
+const char * LIB_PATH_VARNAME = "$shlibpath_var";
+EOF
+
+ if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
+ func_to_host_pathlist "$temp_rpath"
+ cat <<EOF
+const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
+EOF
+ else
+ cat <<"EOF"
+const char * LIB_PATH_VALUE = "";
+EOF
+ fi
+
+ if test -n "$dllsearchpath"; then
+ func_to_host_pathlist "$dllsearchpath:"
+ cat <<EOF
+const char * EXE_PATH_VARNAME = "PATH";
+const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
+EOF
+ else
+ cat <<"EOF"
+const char * EXE_PATH_VARNAME = "";
+const char * EXE_PATH_VALUE = "";
+EOF
+ fi
+
+ if test "$fast_install" = yes; then
+ cat <<EOF
+const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
+EOF
+ else
+ cat <<EOF
+const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
+EOF
+ fi
+
+
+ cat <<"EOF"
+
+#define LTWRAPPER_OPTION_PREFIX "--lt-"
+#define LTWRAPPER_OPTION_PREFIX_LENGTH 5
+
+static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
+static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
+
+static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
+
+static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7;
+static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set";
+ /* argument is putenv-style "foo=bar", value of foo is set to bar */
+
+static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11;
+static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend";
+ /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */
+
+static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10;
+static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append";
+ /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */
+
+int
+main (int argc, char *argv[])
+{
+ char **newargz;
+ int newargc;
+ char *tmp_pathspec;
+ char *actual_cwrapper_path;
+ char *actual_cwrapper_name;
+ char *target_name;
+ char *lt_argv_zero;
+ intptr_t rval = 127;
+
+ int i;
+
+ program_name = (char *) xstrdup (base_name (argv[0]));
+ LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
+ LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
+
+ /* very simple arg parsing; don't want to rely on getopt */
+ for (i = 1; i < argc; i++)
+ {
+ if (strcmp (argv[i], dumpscript_opt) == 0)
+ {
+EOF
+ case "$host" in
+ *mingw* | *cygwin* )
+ # make stdout use "unix" line endings
+ echo " setmode(1,_O_BINARY);"
+ ;;
+ esac
+
+ cat <<"EOF"
+ printf ("%s", script_text_part1);
+ printf ("%s", script_text_part2);
+ return 0;
+ }
+ }
+
+ newargz = XMALLOC (char *, argc + 1);
+ tmp_pathspec = find_executable (argv[0]);
+ if (tmp_pathspec == NULL)
+ lt_fatal ("Couldn't find %s", argv[0]);
+ LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
+ tmp_pathspec));
+
+ actual_cwrapper_path = chase_symlinks (tmp_pathspec);
+ LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
+ actual_cwrapper_path));
+ XFREE (tmp_pathspec);
+
+ actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
+ strendzap (actual_cwrapper_path, actual_cwrapper_name);
+
+ /* wrapper name transforms */
+ strendzap (actual_cwrapper_name, ".exe");
+ tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
+ XFREE (actual_cwrapper_name);
+ actual_cwrapper_name = tmp_pathspec;
+ tmp_pathspec = 0;
+
+ /* target_name transforms -- use actual target program name; might have lt- prefix */
+ target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
+ strendzap (target_name, ".exe");
+ tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
+ XFREE (target_name);
+ target_name = tmp_pathspec;
+ tmp_pathspec = 0;
+
+ LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
+ target_name));
+EOF
+
+ cat <<EOF
+ newargz[0] =
+ XMALLOC (char, (strlen (actual_cwrapper_path) +
+ strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
+ strcpy (newargz[0], actual_cwrapper_path);
+ strcat (newargz[0], "$objdir");
+ strcat (newargz[0], "/");
+EOF
+
+ cat <<"EOF"
+ /* stop here, and copy so we don't have to do this twice */
+ tmp_pathspec = xstrdup (newargz[0]);
+
+ /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
+ strcat (newargz[0], actual_cwrapper_name);
+
+ /* DO want the lt- prefix here if it exists, so use target_name */
+ lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
+ XFREE (tmp_pathspec);
+ tmp_pathspec = NULL;
+EOF
+
+ case $host_os in
+ mingw*)
+ cat <<"EOF"
+ {
+ char* p;
+ while ((p = strchr (newargz[0], '\\')) != NULL)
+ {
+ *p = '/';
+ }
+ while ((p = strchr (lt_argv_zero, '\\')) != NULL)
+ {
+ *p = '/';
+ }
+ }
+EOF
+ ;;
+ esac
+
+ cat <<"EOF"
+ XFREE (target_name);
+ XFREE (actual_cwrapper_path);
+ XFREE (actual_cwrapper_name);
+
+ lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
+ lt_setenv ("DUALCASE", "1"); /* for MSK sh */
+ lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
+ lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
+
+ newargc=0;
+ for (i = 1; i < argc; i++)
+ {
+ if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0)
+ {
+ if (argv[i][env_set_opt_len] == '=')
+ {
+ const char *p = argv[i] + env_set_opt_len + 1;
+ lt_opt_process_env_set (p);
+ }
+ else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc)
+ {
+ lt_opt_process_env_set (argv[++i]); /* don't copy */
+ }
+ else
+ lt_fatal ("%s missing required argument", env_set_opt);
+ continue;
+ }
+ if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0)
+ {
+ if (argv[i][env_prepend_opt_len] == '=')
+ {
+ const char *p = argv[i] + env_prepend_opt_len + 1;
+ lt_opt_process_env_prepend (p);
+ }
+ else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc)
+ {
+ lt_opt_process_env_prepend (argv[++i]); /* don't copy */
+ }
+ else
+ lt_fatal ("%s missing required argument", env_prepend_opt);
+ continue;
+ }
+ if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0)
+ {
+ if (argv[i][env_append_opt_len] == '=')
+ {
+ const char *p = argv[i] + env_append_opt_len + 1;
+ lt_opt_process_env_append (p);
+ }
+ else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc)
+ {
+ lt_opt_process_env_append (argv[++i]); /* don't copy */
+ }
+ else
+ lt_fatal ("%s missing required argument", env_append_opt);
+ continue;
+ }
+ if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
+ {
+ /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
+ namespace, but it is not one of the ones we know about and
+ have already dealt with, above (inluding dump-script), then
+ report an error. Otherwise, targets might begin to believe
+ they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
+ namespace. The first time any user complains about this, we'll
+ need to make LTWRAPPER_OPTION_PREFIX a configure-time option
+ or a configure.ac-settable value.
+ */
+ lt_fatal ("Unrecognized option in %s namespace: '%s'",
+ ltwrapper_option_prefix, argv[i]);
+ }
+ /* otherwise ... */
+ newargz[++newargc] = xstrdup (argv[i]);
+ }
+ newargz[++newargc] = NULL;
+
+ LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
+ for (i = 0; i < newargc; i++)
+ {
+ LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
+ }
+
+EOF
+
+ case $host_os in
+ mingw*)
+ cat <<"EOF"
+ /* execv doesn't actually work on mingw as expected on unix */
+ rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
+ if (rval == -1)
+ {
+ /* failed to start process */
+ LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
+ return 127;
+ }
+ return rval;
+EOF
+ ;;
+ *)
+ cat <<"EOF"
+ execv (lt_argv_zero, newargz);
+ return rval; /* =127, but avoids unused variable warning */
+EOF
+ ;;
+ esac
+
+ cat <<"EOF"
+}
+
+void *
+xmalloc (size_t num)
+{
+ void *p = (void *) malloc (num);
+ if (!p)
+ lt_fatal ("Memory exhausted");
+
+ return p;
+}
+
+char *
+xstrdup (const char *string)
+{
+ return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
+ string) : NULL;
+}
+
+const char *
+base_name (const char *name)
+{
+ const char *base;
+
+#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
+ /* Skip over the disk name in MSDOS pathnames. */
+ if (isalpha ((unsigned char) name[0]) && name[1] == ':')
+ name += 2;
+#endif
+
+ for (base = name; *name; name++)
+ if (IS_DIR_SEPARATOR (*name))
+ base = name + 1;
+ return base;
+}
+
+int
+check_executable (const char *path)
+{
+ struct stat st;
+
+ LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
+ path ? (*path ? path : "EMPTY!") : "NULL!"));
+ if ((!path) || (!*path))
+ return 0;
+
+ if ((stat (path, &st) >= 0)
+ && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
+ return 1;
+ else
+ return 0;
+}
+
+int
+make_executable (const char *path)
+{
+ int rval = 0;
+ struct stat st;
+
+ LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
+ path ? (*path ? path : "EMPTY!") : "NULL!"));
+ if ((!path) || (!*path))
+ return 0;
+
+ if (stat (path, &st) >= 0)
+ {
+ rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
+ }
+ return rval;
+}
+
+/* Searches for the full path of the wrapper. Returns
+ newly allocated full path name if found, NULL otherwise
+ Does not chase symlinks, even on platforms that support them.
+*/
+char *
+find_executable (const char *wrapper)
+{
+ int has_slash = 0;
+ const char *p;
+ const char *p_next;
+ /* static buffer for getcwd */
+ char tmp[LT_PATHMAX + 1];
+ int tmp_len;
+ char *concat_name;
+
+ LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
+ wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
+
+ if ((wrapper == NULL) || (*wrapper == '\0'))
+ return NULL;
+
+ /* Absolute path? */
+#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
+ if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
+ {
+ concat_name = xstrdup (wrapper);
+ if (check_executable (concat_name))
+ return concat_name;
+ XFREE (concat_name);
+ }
+ else
+ {
+#endif
+ if (IS_DIR_SEPARATOR (wrapper[0]))
+ {
+ concat_name = xstrdup (wrapper);
+ if (check_executable (concat_name))
+ return concat_name;
+ XFREE (concat_name);
+ }
+#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
+ }
+#endif
+
+ for (p = wrapper; *p; p++)
+ if (*p == '/')
+ {
+ has_slash = 1;
+ break;
+ }
+ if (!has_slash)
+ {
+ /* no slashes; search PATH */
+ const char *path = getenv ("PATH");
+ if (path != NULL)
+ {
+ for (p = path; *p; p = p_next)
+ {
+ const char *q;
+ size_t p_len;
+ for (q = p; *q; q++)
+ if (IS_PATH_SEPARATOR (*q))
+ break;
+ p_len = q - p;
+ p_next = (*q == '\0' ? q : q + 1);
+ if (p_len == 0)
+ {
+ /* empty path: current directory */
+ if (getcwd (tmp, LT_PATHMAX) == NULL)
+ lt_fatal ("getcwd failed");
+ tmp_len = strlen (tmp);
+ concat_name =
+ XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
+ memcpy (concat_name, tmp, tmp_len);
+ concat_name[tmp_len] = '/';
+ strcpy (concat_name + tmp_len + 1, wrapper);
+ }
+ else
+ {
+ concat_name =
+ XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
+ memcpy (concat_name, p, p_len);
+ concat_name[p_len] = '/';
+ strcpy (concat_name + p_len + 1, wrapper);
+ }
+ if (check_executable (concat_name))
+ return concat_name;
+ XFREE (concat_name);
+ }
+ }
+ /* not found in PATH; assume curdir */
+ }
+ /* Relative path | not found in path: prepend cwd */
+ if (getcwd (tmp, LT_PATHMAX) == NULL)
+ lt_fatal ("getcwd failed");
+ tmp_len = strlen (tmp);
+ concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
+ memcpy (concat_name, tmp, tmp_len);
+ concat_name[tmp_len] = '/';
+ strcpy (concat_name + tmp_len + 1, wrapper);
+
+ if (check_executable (concat_name))
+ return concat_name;
+ XFREE (concat_name);
+ return NULL;
+}
+
+char *
+chase_symlinks (const char *pathspec)
+{
+#ifndef S_ISLNK
+ return xstrdup (pathspec);
+#else
+ char buf[LT_PATHMAX];
+ struct stat s;
+ char *tmp_pathspec = xstrdup (pathspec);
+ char *p;
+ int has_symlinks = 0;
+ while (strlen (tmp_pathspec) && !has_symlinks)
+ {
+ LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
+ tmp_pathspec));
+ if (lstat (tmp_pathspec, &s) == 0)
+ {
+ if (S_ISLNK (s.st_mode) != 0)
+ {
+ has_symlinks = 1;
+ break;
+ }
+
+ /* search backwards for last DIR_SEPARATOR */
+ p = tmp_pathspec + strlen (tmp_pathspec) - 1;
+ while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
+ p--;
+ if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
+ {
+ /* no more DIR_SEPARATORS left */
+ break;
+ }
+ *p = '\0';
+ }
+ else
+ {
+ char *errstr = strerror (errno);
+ lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
+ }
+ }
+ XFREE (tmp_pathspec);
+
+ if (!has_symlinks)
+ {
+ return xstrdup (pathspec);
+ }
+
+ tmp_pathspec = realpath (pathspec, buf);
+ if (tmp_pathspec == 0)
+ {
+ lt_fatal ("Could not follow symlinks for %s", pathspec);
+ }
+ return xstrdup (tmp_pathspec);
+#endif
+}
+
+char *
+strendzap (char *str, const char *pat)
+{
+ size_t len, patlen;
+
+ assert (str != NULL);
+ assert (pat != NULL);
+
+ len = strlen (str);
+ patlen = strlen (pat);
+
+ if (patlen <= len)
+ {
+ str += len - patlen;
+ if (strcmp (str, pat) == 0)
+ *str = '\0';
+ }
+ return str;
+}
+
+static void
+lt_error_core (int exit_status, const char *mode,
+ const char *message, va_list ap)
+{
+ fprintf (stderr, "%s: %s: ", program_name, mode);
+ vfprintf (stderr, message, ap);
+ fprintf (stderr, ".\n");
+
+ if (exit_status >= 0)
+ exit (exit_status);
+}
+
+void
+lt_fatal (const char *message, ...)
+{
+ va_list ap;
+ va_start (ap, message);
+ lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
+ va_end (ap);
+}
+
+void
+lt_setenv (const char *name, const char *value)
+{
+ LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
+ (name ? name : "<NULL>"),
+ (value ? value : "<NULL>")));
+ {
+#ifdef HAVE_SETENV
+ /* always make a copy, for consistency with !HAVE_SETENV */
+ char *str = xstrdup (value);
+ setenv (name, str, 1);
+#else
+ int len = strlen (name) + 1 + strlen (value) + 1;
+ char *str = XMALLOC (char, len);
+ sprintf (str, "%s=%s", name, value);
+ if (putenv (str) != EXIT_SUCCESS)
+ {
+ XFREE (str);
+ }
+#endif
+ }
+}
+
+char *
+lt_extend_str (const char *orig_value, const char *add, int to_end)
+{
+ char *new_value;
+ if (orig_value && *orig_value)
+ {
+ int orig_value_len = strlen (orig_value);
+ int add_len = strlen (add);
+ new_value = XMALLOC (char, add_len + orig_value_len + 1);
+ if (to_end)
+ {
+ strcpy (new_value, orig_value);
+ strcpy (new_value + orig_value_len, add);
+ }
+ else
+ {
+ strcpy (new_value, add);
+ strcpy (new_value + add_len, orig_value);
+ }
+ }
+ else
+ {
+ new_value = xstrdup (add);
+ }
+ return new_value;
+}
+
+int
+lt_split_name_value (const char *arg, char** name, char** value)
+{
+ const char *p;
+ int len;
+ if (!arg || !*arg)
+ return 1;
+
+ p = strchr (arg, (int)'=');
+
+ if (!p)
+ return 1;
+
+ *value = xstrdup (++p);
+
+ len = strlen (arg) - strlen (*value);
+ *name = XMALLOC (char, len);
+ strncpy (*name, arg, len-1);
+ (*name)[len - 1] = '\0';
+
+ return 0;
+}
+
+void
+lt_opt_process_env_set (const char *arg)
+{
+ char *name = NULL;
+ char *value = NULL;
+
+ if (lt_split_name_value (arg, &name, &value) != 0)
+ {
+ XFREE (name);
+ XFREE (value);
+ lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);
+ }
+
+ lt_setenv (name, value);
+ XFREE (name);
+ XFREE (value);
+}
+
+void
+lt_opt_process_env_prepend (const char *arg)
+{
+ char *name = NULL;
+ char *value = NULL;
+ char *new_value = NULL;
+
+ if (lt_split_name_value (arg, &name, &value) != 0)
+ {
+ XFREE (name);
+ XFREE (value);
+ lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);
+ }
+
+ new_value = lt_extend_str (getenv (name), value, 0);
+ lt_setenv (name, new_value);
+ XFREE (new_value);
+ XFREE (name);
+ XFREE (value);
+}
+
+void
+lt_opt_process_env_append (const char *arg)
+{
+ char *name = NULL;
+ char *value = NULL;
+ char *new_value = NULL;
+
+ if (lt_split_name_value (arg, &name, &value) != 0)
+ {
+ XFREE (name);
+ XFREE (value);
+ lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);
+ }
+
+ new_value = lt_extend_str (getenv (name), value, 1);
+ lt_setenv (name, new_value);
+ XFREE (new_value);
+ XFREE (name);
+ XFREE (value);
+}
+
+void
+lt_update_exe_path (const char *name, const char *value)
+{
+ LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
+ (name ? name : "<NULL>"),
+ (value ? value : "<NULL>")));
+
+ if (name && *name && value && *value)
+ {
+ char *new_value = lt_extend_str (getenv (name), value, 0);
+ /* some systems can't cope with a ':'-terminated path #' */
+ int len = strlen (new_value);
+ while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
+ {
+ new_value[len-1] = '\0';
+ }
+ lt_setenv (name, new_value);
+ XFREE (new_value);
+ }
+}
+
+void
+lt_update_lib_path (const char *name, const char *value)
+{
+ LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
+ (name ? name : "<NULL>"),
+ (value ? value : "<NULL>")));
+
+ if (name && *name && value && *value)
+ {
+ char *new_value = lt_extend_str (getenv (name), value, 0);
+ lt_setenv (name, new_value);
+ XFREE (new_value);
+ }
+}
+
+
+EOF
+}
+# end: func_emit_cwrapperexe_src
+
+# func_mode_link arg...
+func_mode_link ()
+{
+ $opt_debug
+ case $host in
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
+ # It is impossible to link a dll without this setting, and
+ # we shouldn't force the makefile maintainer to figure out
+ # which system we are compiling for in order to pass an extra
+ # flag for every libtool invocation.
+ # allow_undefined=no
+
+ # FIXME: Unfortunately, there are problems with the above when trying
+ # to make a dll which has undefined symbols, in which case not
+ # even a static library is built. For now, we need to specify
+ # -no-undefined on the libtool link line when we can be certain
+ # that all symbols are satisfied, otherwise we get a static library.
+ allow_undefined=yes
+ ;;
+ *)
+ allow_undefined=yes
+ ;;
+ esac
+ libtool_args=$nonopt
+ base_compile="$nonopt $@"
+ compile_command=$nonopt
+ finalize_command=$nonopt
+
+ compile_rpath=
+ finalize_rpath=
+ compile_shlibpath=
+ finalize_shlibpath=
+ convenience=
+ old_convenience=
+ deplibs=
+ old_deplibs=
+ compiler_flags=
+ linker_flags=
+ dllsearchpath=
+ lib_search_path=`pwd`
+ inst_prefix_dir=
+ new_inherited_linker_flags=
+
+ avoid_version=no
+ dlfiles=
+ dlprefiles=
+ dlself=no
+ export_dynamic=no
+ export_symbols=
+ export_symbols_regex=
+ generated=
+ libobjs=
+ ltlibs=
+ module=no
+ no_install=no
+ objs=
+ non_pic_objects=
+ precious_files_regex=
+ prefer_static_libs=no
+ preload=no
+ prev=
+ prevarg=
+ release=
+ rpath=
+ xrpath=
+ perm_rpath=
+ temp_rpath=
+ thread_safe=no
+ vinfo=
+ vinfo_number=no
+ weak_libs=
+ single_module="${wl}-single_module"
+ func_infer_tag $base_compile
+
+ # We need to know -static, to get the right output filenames.
+ for arg
+ do
+ case $arg in
+ -shared)
+ test "$build_libtool_libs" != yes && \
+ func_fatal_configuration "can not build a shared library"
+ build_old_libs=no
+ break
+ ;;
+ -all-static | -static | -static-libtool-libs)
+ case $arg in
+ -all-static)
+ if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
+ func_warning "complete static linking is impossible in this configuration"
+ fi
+ if test -n "$link_static_flag"; then
+ dlopen_self=$dlopen_self_static
+ fi
+ prefer_static_libs=yes
+ ;;
+ -static)
+ if test -z "$pic_flag" && test -n "$link_static_flag"; then
+ dlopen_self=$dlopen_self_static
+ fi
+ prefer_static_libs=built
+ ;;
+ -static-libtool-libs)
+ if test -z "$pic_flag" && test -n "$link_static_flag"; then
+ dlopen_self=$dlopen_self_static
+ fi
+ prefer_static_libs=yes
+ ;;
+ esac
+ build_libtool_libs=no
+ build_old_libs=yes
+ break
+ ;;
+ esac
+ done
+
+ # See if our shared archives depend on static archives.
+ test -n "$old_archive_from_new_cmds" && build_old_libs=yes
+
+ # Go through the arguments, transforming them on the way.
+ while test "$#" -gt 0; do
+ arg="$1"
+ shift
+ func_quote_for_eval "$arg"
+ qarg=$func_quote_for_eval_unquoted_result
+ func_append libtool_args " $func_quote_for_eval_result"
+
+ # If the previous option needs an argument, assign it.
+ if test -n "$prev"; then
+ case $prev in
+ output)
+ func_append compile_command " @OUTPUT@"
+ func_append finalize_command " @OUTPUT@"
+ ;;
+ esac
+
+ case $prev in
+ dlfiles|dlprefiles)
+ if test "$preload" = no; then
+ # Add the symbol object into the linking commands.
+ func_append compile_command " @SYMFILE@"
+ func_append finalize_command " @SYMFILE@"
+ preload=yes
+ fi
+ case $arg in
+ *.la | *.lo) ;; # We handle these cases below.
+ force)
+ if test "$dlself" = no; then
+ dlself=needless
+ export_dynamic=yes
+ fi
+ prev=
+ continue
+ ;;
+ self)
+ if test "$prev" = dlprefiles; then
+ dlself=yes
+ elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
+ dlself=yes
+ else
+ dlself=needless
+ export_dynamic=yes
+ fi
+ prev=
+ continue
+ ;;
+ *)
+ if test "$prev" = dlfiles; then
+ dlfiles="$dlfiles $arg"
+ else
+ dlprefiles="$dlprefiles $arg"
+ fi
+ prev=
+ continue
+ ;;
+ esac
+ ;;
+ expsyms)
+ export_symbols="$arg"
+ test -f "$arg" \
+ || func_fatal_error "symbol file \`$arg' does not exist"
+ prev=
+ continue
+ ;;
+ expsyms_regex)
+ export_symbols_regex="$arg"
+ prev=
+ continue
+ ;;
+ framework)
+ case $host in
+ *-*-darwin*)
+ case "$deplibs " in
+ *" $qarg.ltframework "*) ;;
+ *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
+ ;;
+ esac
+ ;;
+ esac
+ prev=
+ continue
+ ;;
+ inst_prefix)
+ inst_prefix_dir="$arg"
+ prev=
+ continue
+ ;;
+ objectlist)
+ if test -f "$arg"; then
+ save_arg=$arg
+ moreargs=
+ for fil in `cat "$save_arg"`
+ do
+# moreargs="$moreargs $fil"
+ arg=$fil
+ # A libtool-controlled object.
+
+ # Check to see that this really is a libtool object.
+ if func_lalib_unsafe_p "$arg"; then
+ pic_object=
+ non_pic_object=
+
+ # Read the .lo file
+ func_source "$arg"
+
+ if test -z "$pic_object" ||
+ test -z "$non_pic_object" ||
+ test "$pic_object" = none &&
+ test "$non_pic_object" = none; then
+ func_fatal_error "cannot find name of object for \`$arg'"
+ fi
+
+ # Extract subdirectory from the argument.
+ func_dirname "$arg" "/" ""
+ xdir="$func_dirname_result"
+
+ if test "$pic_object" != none; then
+ # Prepend the subdirectory the object is found in.
+ pic_object="$xdir$pic_object"
+
+ if test "$prev" = dlfiles; then
+ if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
+ dlfiles="$dlfiles $pic_object"
+ prev=
+ continue
+ else
+ # If libtool objects are unsupported, then we need to preload.
+ prev=dlprefiles
+ fi
+ fi
+
+ # CHECK ME: I think I busted this. -Ossama
+ if test "$prev" = dlprefiles; then
+ # Preload the old-style object.
+ dlprefiles="$dlprefiles $pic_object"
+ prev=
+ fi
+
+ # A PIC object.
+ func_append libobjs " $pic_object"
+ arg="$pic_object"
+ fi
+
+ # Non-PIC object.
+ if test "$non_pic_object" != none; then
+ # Prepend the subdirectory the object is found in.
+ non_pic_object="$xdir$non_pic_object"
+
+ # A standard non-PIC object
+ func_append non_pic_objects " $non_pic_object"
+ if test -z "$pic_object" || test "$pic_object" = none ; then
+ arg="$non_pic_object"
+ fi
+ else
+ # If the PIC object exists, use it instead.
+ # $xdir was prepended to $pic_object above.
+ non_pic_object="$pic_object"
+ func_append non_pic_objects " $non_pic_object"
+ fi
+ else
+ # Only an error if not doing a dry-run.
+ if $opt_dry_run; then
+ # Extract subdirectory from the argument.
+ func_dirname "$arg" "/" ""
+ xdir="$func_dirname_result"
+
+ func_lo2o "$arg"
+ pic_object=$xdir$objdir/$func_lo2o_result
+ non_pic_object=$xdir$func_lo2o_result
+ func_append libobjs " $pic_object"
+ func_append non_pic_objects " $non_pic_object"
+ else
+ func_fatal_error "\`$arg' is not a valid libtool object"
+ fi
+ fi
+ done
+ else
+ func_fatal_error "link input file \`$arg' does not exist"
+ fi
+ arg=$save_arg
+ prev=
+ continue
+ ;;
+ precious_regex)
+ precious_files_regex="$arg"
+ prev=
+ continue
+ ;;
+ release)
+ release="-$arg"
+ prev=
+ continue
+ ;;
+ rpath | xrpath)
+ # We need an absolute path.
+ case $arg in
+ [\\/]* | [A-Za-z]:[\\/]*) ;;
+ *)
+ func_fatal_error "only absolute run-paths are allowed"
+ ;;
+ esac
+ if test "$prev" = rpath; then
+ case "$rpath " in
+ *" $arg "*) ;;
+ *) rpath="$rpath $arg" ;;
+ esac
+ else
+ case "$xrpath " in
+ *" $arg "*) ;;
+ *) xrpath="$xrpath $arg" ;;
+ esac
+ fi
+ prev=
+ continue
+ ;;
+ shrext)
+ shrext_cmds="$arg"
+ prev=
+ continue
+ ;;
+ weak)
+ weak_libs="$weak_libs $arg"
+ prev=
+ continue
+ ;;
+ xcclinker)
+ linker_flags="$linker_flags $qarg"
+ compiler_flags="$compiler_flags $qarg"
+ prev=
+ func_append compile_command " $qarg"
+ func_append finalize_command " $qarg"
+ continue
+ ;;
+ xcompiler)
+ compiler_flags="$compiler_flags $qarg"
+ prev=
+ func_append compile_command " $qarg"
+ func_append finalize_command " $qarg"
+ continue
+ ;;
+ xlinker)
+ linker_flags="$linker_flags $qarg"
+ compiler_flags="$compiler_flags $wl$qarg"
+ prev=
+ func_append compile_command " $wl$qarg"
+ func_append finalize_command " $wl$qarg"
+ continue
+ ;;
+ *)
+ eval "$prev=\"\$arg\""
+ prev=
+ continue
+ ;;
+ esac
+ fi # test -n "$prev"
+
+ prevarg="$arg"
+
+ case $arg in
+ -all-static)
+ if test -n "$link_static_flag"; then
+ # See comment for -static flag below, for more details.
+ func_append compile_command " $link_static_flag"
+ func_append finalize_command " $link_static_flag"
+ fi
+ continue
+ ;;
+
+ -allow-undefined)
+ # FIXME: remove this flag sometime in the future.
+ func_fatal_error "\`-allow-undefined' must not be used because it is the default"
+ ;;
+
+ -avoid-version)
+ avoid_version=yes
+ continue
+ ;;
+
+ -dlopen)
+ prev=dlfiles
+ continue
+ ;;
+
+ -dlpreopen)
+ prev=dlprefiles
+ continue
+ ;;
+
+ -export-dynamic)
+ export_dynamic=yes
+ continue
+ ;;
+
+ -export-symbols | -export-symbols-regex)
+ if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
+ func_fatal_error "more than one -exported-symbols argument is not allowed"
+ fi
+ if test "X$arg" = "X-export-symbols"; then
+ prev=expsyms
+ else
+ prev=expsyms_regex
+ fi
+ continue
+ ;;
+
+ -framework)
+ prev=framework
+ continue
+ ;;
+
+ -inst-prefix-dir)
+ prev=inst_prefix
+ continue
+ ;;
+
+ # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
+ # so, if we see these flags be careful not to treat them like -L
+ -L[A-Z][A-Z]*:*)
+ case $with_gcc/$host in
+ no/*-*-irix* | /*-*-irix*)
+ func_append compile_command " $arg"
+ func_append finalize_command " $arg"
+ ;;
+ esac
+ continue
+ ;;
+
+ -L*)
+ func_stripname '-L' '' "$arg"
+ dir=$func_stripname_result
+ if test -z "$dir"; then
+ if test "$#" -gt 0; then
+ func_fatal_error "require no space between \`-L' and \`$1'"
+ else
+ func_fatal_error "need path for \`-L' option"
+ fi
+ fi
+ # We need an absolute path.
+ case $dir in
+ [\\/]* | [A-Za-z]:[\\/]*) ;;
+ *)
+ absdir=`cd "$dir" && pwd`
+ test -z "$absdir" && \
+ func_fatal_error "cannot determine absolute directory name of \`$dir'"
+ dir="$absdir"
+ ;;
+ esac
+ case "$deplibs " in
+ *" -L$dir "*) ;;
+ *)
+ deplibs="$deplibs -L$dir"
+ lib_search_path="$lib_search_path $dir"
+ ;;
+ esac
+ case $host in
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
+ testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
+ case :$dllsearchpath: in
+ *":$dir:"*) ;;
+ ::) dllsearchpath=$dir;;
+ *) dllsearchpath="$dllsearchpath:$dir";;
+ esac
+ case :$dllsearchpath: in
+ *":$testbindir:"*) ;;
+ ::) dllsearchpath=$testbindir;;
+ *) dllsearchpath="$dllsearchpath:$testbindir";;
+ esac
+ ;;
+ esac
+ continue
+ ;;
+
+ -l*)
+ if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
+ case $host in
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
+ # These systems don't actually have a C or math library (as such)
+ continue
+ ;;
+ *-*-os2*)
+ # These systems don't actually have a C library (as such)
+ test "X$arg" = "X-lc" && continue
+ ;;
+ *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
+ # Do not include libc due to us having libc/libc_r.
+ test "X$arg" = "X-lc" && continue
+ ;;
+ *-*-rhapsody* | *-*-darwin1.[012])
+ # Rhapsody C and math libraries are in the System framework
+ deplibs="$deplibs System.ltframework"
+ continue
+ ;;
+ *-*-sco3.2v5* | *-*-sco5v6*)
+ # Causes problems with __ctype
+ test "X$arg" = "X-lc" && continue
+ ;;
+ *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
+ # Compiler inserts libc in the correct place for threads to work
+ test "X$arg" = "X-lc" && continue
+ ;;
+ esac
+ elif test "X$arg" = "X-lc_r"; then
+ case $host in
+ *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
+ # Do not include libc_r directly, use -pthread flag.
+ continue
+ ;;
+ esac
+ fi
+ deplibs="$deplibs $arg"
+ continue
+ ;;
+
+ -module)
+ module=yes
+ continue
+ ;;
+
+ # Tru64 UNIX uses -model [arg] to determine the layout of C++
+ # classes, name mangling, and exception handling.
+ # Darwin uses the -arch flag to determine output architecture.
+ -model|-arch|-isysroot)
+ compiler_flags="$compiler_flags $arg"
+ func_append compile_command " $arg"
+ func_append finalize_command " $arg"
+ prev=xcompiler
+ continue
+ ;;
+
+ -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
+ compiler_flags="$compiler_flags $arg"
+ func_append compile_command " $arg"
+ func_append finalize_command " $arg"
+ case "$new_inherited_linker_flags " in
+ *" $arg "*) ;;
+ * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
+ esac
+ continue
+ ;;
+
+ -multi_module)
+ single_module="${wl}-multi_module"
+ continue
+ ;;
+
+ -no-fast-install)
+ fast_install=no
+ continue
+ ;;
+
+ -no-install)
+ case $host in
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
+ # The PATH hackery in wrapper scripts is required on Windows
+ # and Darwin in order for the loader to find any dlls it needs.
+ func_warning "\`-no-install' is ignored for $host"
+ func_warning "assuming \`-no-fast-install' instead"
+ fast_install=no
+ ;;
+ *) no_install=yes ;;
+ esac
+ continue
+ ;;
+
+ -no-undefined)
+ allow_undefined=no
+ continue
+ ;;
+
+ -objectlist)
+ prev=objectlist
+ continue
+ ;;
+
+ -o) prev=output ;;
+
+ -precious-files-regex)
+ prev=precious_regex
+ continue
+ ;;
+
+ -release)
+ prev=release
+ continue
+ ;;
+
+ -rpath)
+ prev=rpath
+ continue
+ ;;
+
+ -R)
+ prev=xrpath
+ continue
+ ;;
+
+ -R*)
+ func_stripname '-R' '' "$arg"
+ dir=$func_stripname_result
+ # We need an absolute path.
+ case $dir in
+ [\\/]* | [A-Za-z]:[\\/]*) ;;
+ *)
+ func_fatal_error "only absolute run-paths are allowed"
+ ;;
+ esac
+ case "$xrpath " in
+ *" $dir "*) ;;
+ *) xrpath="$xrpath $dir" ;;
+ esac
+ continue
+ ;;
+
+ -shared)
+ # The effects of -shared are defined in a previous loop.
+ continue
+ ;;
+
+ -shrext)
+ prev=shrext
+ continue
+ ;;
+
+ -static | -static-libtool-libs)
+ # The effects of -static are defined in a previous loop.
+ # We used to do the same as -all-static on platforms that
+ # didn't have a PIC flag, but the assumption that the effects
+ # would be equivalent was wrong. It would break on at least
+ # Digital Unix and AIX.
+ continue
+ ;;
+
+ -thread-safe)
+ thread_safe=yes
+ continue
+ ;;
+
+ -version-info)
+ prev=vinfo
+ continue
+ ;;
+
+ -version-number)
+ prev=vinfo
+ vinfo_number=yes
+ continue
+ ;;
+
+ -weak)
+ prev=weak
+ continue
+ ;;
+
+ -Wc,*)
+ func_stripname '-Wc,' '' "$arg"
+ args=$func_stripname_result
+ arg=
+ save_ifs="$IFS"; IFS=','
+ for flag in $args; do
+ IFS="$save_ifs"
+ func_quote_for_eval "$flag"
+ arg="$arg $wl$func_quote_for_eval_result"
+ compiler_flags="$compiler_flags $func_quote_for_eval_result"
+ done
+ IFS="$save_ifs"
+ func_stripname ' ' '' "$arg"
+ arg=$func_stripname_result
+ ;;
+
+ -Wl,*)
+ func_stripname '-Wl,' '' "$arg"
+ args=$func_stripname_result
+ arg=
+ save_ifs="$IFS"; IFS=','
+ for flag in $args; do
+ IFS="$save_ifs"
+ func_quote_for_eval "$flag"
+ arg="$arg $wl$func_quote_for_eval_result"
+ compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
+ linker_flags="$linker_flags $func_quote_for_eval_result"
+ done
+ IFS="$save_ifs"
+ func_stripname ' ' '' "$arg"
+ arg=$func_stripname_result
+ ;;
+
+ -Xcompiler)
+ prev=xcompiler
+ continue
+ ;;
+
+ -Xlinker)
+ prev=xlinker
+ continue
+ ;;
+
+ -XCClinker)
+ prev=xcclinker
+ continue
+ ;;
+
+ # -msg_* for osf cc
+ -msg_*)
+ func_quote_for_eval "$arg"
+ arg="$func_quote_for_eval_result"
+ ;;
+
+ # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
+ # -r[0-9][0-9]* specifies the processor on the SGI compiler
+ # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
+ # +DA*, +DD* enable 64-bit mode on the HP compiler
+ # -q* pass through compiler args for the IBM compiler
+ # -m*, -t[45]*, -txscale* pass through architecture-specific
+ # compiler args for GCC
+ # -F/path gives path to uninstalled frameworks, gcc on darwin
+ # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
+ # @file GCC response files
+ -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
+ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
+ func_quote_for_eval "$arg"
+ arg="$func_quote_for_eval_result"
+ func_append compile_command " $arg"
+ func_append finalize_command " $arg"
+ compiler_flags="$compiler_flags $arg"
+ continue
+ ;;
+
+ # Some other compiler flag.
+ -* | +*)
+ func_quote_for_eval "$arg"
+ arg="$func_quote_for_eval_result"
+ ;;
+
+ *.$objext)
+ # A standard object.
+ objs="$objs $arg"
+ ;;
+
+ *.lo)
+ # A libtool-controlled object.
+
+ # Check to see that this really is a libtool object.
+ if func_lalib_unsafe_p "$arg"; then
+ pic_object=
+ non_pic_object=
+
+ # Read the .lo file
+ func_source "$arg"
+
+ if test -z "$pic_object" ||
+ test -z "$non_pic_object" ||
+ test "$pic_object" = none &&
+ test "$non_pic_object" = none; then
+ func_fatal_error "cannot find name of object for \`$arg'"
+ fi
+
+ # Extract subdirectory from the argument.
+ func_dirname "$arg" "/" ""
+ xdir="$func_dirname_result"
+
+ if test "$pic_object" != none; then
+ # Prepend the subdirectory the object is found in.
+ pic_object="$xdir$pic_object"
+
+ if test "$prev" = dlfiles; then
+ if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
+ dlfiles="$dlfiles $pic_object"
+ prev=
+ continue
+ else
+ # If libtool objects are unsupported, then we need to preload.
+ prev=dlprefiles
+ fi
+ fi
+
+ # CHECK ME: I think I busted this. -Ossama
+ if test "$prev" = dlprefiles; then
+ # Preload the old-style object.
+ dlprefiles="$dlprefiles $pic_object"
+ prev=
+ fi
+
+ # A PIC object.
+ func_append libobjs " $pic_object"
+ arg="$pic_object"
+ fi
+
+ # Non-PIC object.
+ if test "$non_pic_object" != none; then
+ # Prepend the subdirectory the object is found in.
+ non_pic_object="$xdir$non_pic_object"
+
+ # A standard non-PIC object
+ func_append non_pic_objects " $non_pic_object"
+ if test -z "$pic_object" || test "$pic_object" = none ; then
+ arg="$non_pic_object"
+ fi
+ else
+ # If the PIC object exists, use it instead.
+ # $xdir was prepended to $pic_object above.
+ non_pic_object="$pic_object"
+ func_append non_pic_objects " $non_pic_object"
+ fi
+ else
+ # Only an error if not doing a dry-run.
+ if $opt_dry_run; then
+ # Extract subdirectory from the argument.
+ func_dirname "$arg" "/" ""
+ xdir="$func_dirname_result"
+
+ func_lo2o "$arg"
+ pic_object=$xdir$objdir/$func_lo2o_result
+ non_pic_object=$xdir$func_lo2o_result
+ func_append libobjs " $pic_object"
+ func_append non_pic_objects " $non_pic_object"
+ else
+ func_fatal_error "\`$arg' is not a valid libtool object"
+ fi
+ fi
+ ;;
+
+ *.$libext)
+ # An archive.
+ deplibs="$deplibs $arg"
+ old_deplibs="$old_deplibs $arg"
+ continue
+ ;;
+
+ *.la)
+ # A libtool-controlled library.
+
+ if test "$prev" = dlfiles; then
+ # This library was specified with -dlopen.
+ dlfiles="$dlfiles $arg"
+ prev=
+ elif test "$prev" = dlprefiles; then
+ # The library was specified with -dlpreopen.
+ dlprefiles="$dlprefiles $arg"
+ prev=
+ else
+ deplibs="$deplibs $arg"
+ fi
+ continue
+ ;;
+
+ # Some other compiler argument.
+ *)
+ # Unknown arguments in both finalize_command and compile_command need
+ # to be aesthetically quoted because they are evaled later.
+ func_quote_for_eval "$arg"
+ arg="$func_quote_for_eval_result"
+ ;;
+ esac # arg
+
+ # Now actually substitute the argument into the commands.
+ if test -n "$arg"; then
+ func_append compile_command " $arg"
+ func_append finalize_command " $arg"
+ fi
+ done # argument parsing loop
+
+ test -n "$prev" && \
+ func_fatal_help "the \`$prevarg' option requires an argument"
+
+ if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
+ eval arg=\"$export_dynamic_flag_spec\"
+ func_append compile_command " $arg"
+ func_append finalize_command " $arg"
+ fi
+
+ oldlibs=
+ # calculate the name of the file, without its directory
+ func_basename "$output"
+ outputname="$func_basename_result"
+ libobjs_save="$libobjs"
+
+ if test -n "$shlibpath_var"; then
+ # get the directories listed in $shlibpath_var
+ eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
+ else
+ shlib_search_path=
+ fi
+ eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
+ eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
+
+ func_dirname "$output" "/" ""
+ output_objdir="$func_dirname_result$objdir"
+ # Create the object directory.
+ func_mkdir_p "$output_objdir"
+
+ # Determine the type of output
+ case $output in
+ "")
+ func_fatal_help "you must specify an output file"
+ ;;
+ *.$libext) linkmode=oldlib ;;
+ *.lo | *.$objext) linkmode=obj ;;
+ *.la) linkmode=lib ;;
+ *) linkmode=prog ;; # Anything else should be a program.
+ esac
+
+ specialdeplibs=
+
+ libs=
+ # Find all interdependent deplibs by searching for libraries
+ # that are linked more than once (e.g. -la -lb -la)
+ for deplib in $deplibs; do
+ if $opt_duplicate_deps ; then
+ case "$libs " in
+ *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
+ esac
+ fi
+ libs="$libs $deplib"
+ done
+
+ if test "$linkmode" = lib; then
+ libs="$predeps $libs $compiler_lib_search_path $postdeps"
+
+ # Compute libraries that are listed more than once in $predeps
+ # $postdeps and mark them as special (i.e., whose duplicates are
+ # not to be eliminated).
+ pre_post_deps=
+ if $opt_duplicate_compiler_generated_deps; then
+ for pre_post_dep in $predeps $postdeps; do
+ case "$pre_post_deps " in
+ *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
+ esac
+ pre_post_deps="$pre_post_deps $pre_post_dep"
+ done
+ fi
+ pre_post_deps=
+ fi
+
+ deplibs=
+ newdependency_libs=
+ newlib_search_path=
+ need_relink=no # whether we're linking any uninstalled libtool libraries
+ notinst_deplibs= # not-installed libtool libraries
+ notinst_path= # paths that contain not-installed libtool libraries
+
+ case $linkmode in
+ lib)
+ passes="conv dlpreopen link"
+ for file in $dlfiles $dlprefiles; do
+ case $file in
+ *.la) ;;
+ *)
+ func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
+ ;;
+ esac
+ done
+ ;;
+ prog)
+ compile_deplibs=
+ finalize_deplibs=
+ alldeplibs=no
+ newdlfiles=
+ newdlprefiles=
+ passes="conv scan dlopen dlpreopen link"
+ ;;
+ *) passes="conv"
+ ;;
+ esac
+
+ for pass in $passes; do
+ # The preopen pass in lib mode reverses $deplibs; put it back here
+ # so that -L comes before libs that need it for instance...
+ if test "$linkmode,$pass" = "lib,link"; then
+ ## FIXME: Find the place where the list is rebuilt in the wrong
+ ## order, and fix it there properly
+ tmp_deplibs=
+ for deplib in $deplibs; do
+ tmp_deplibs="$deplib $tmp_deplibs"
+ done
+ deplibs="$tmp_deplibs"
+ fi
+
+ if test "$linkmode,$pass" = "lib,link" ||
+ test "$linkmode,$pass" = "prog,scan"; then
+ libs="$deplibs"
+ deplibs=
+ fi
+ if test "$linkmode" = prog; then
+ case $pass in
+ dlopen) libs="$dlfiles" ;;
+ dlpreopen) libs="$dlprefiles" ;;
+ link)
+ libs="$deplibs %DEPLIBS%"
+ test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
+ ;;
+ esac
+ fi
+ if test "$linkmode,$pass" = "lib,dlpreopen"; then
+ # Collect and forward deplibs of preopened libtool libs
+ for lib in $dlprefiles; do
+ # Ignore non-libtool-libs
+ dependency_libs=
+ case $lib in
+ *.la) func_source "$lib" ;;
+ esac
+
+ # Collect preopened libtool deplibs, except any this library
+ # has declared as weak libs
+ for deplib in $dependency_libs; do
+ deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
+ case " $weak_libs " in
+ *" $deplib_base "*) ;;
+ *) deplibs="$deplibs $deplib" ;;
+ esac
+ done
+ done
+ libs="$dlprefiles"
+ fi
+ if test "$pass" = dlopen; then
+ # Collect dlpreopened libraries
+ save_deplibs="$deplibs"
+ deplibs=
+ fi
+
+ for deplib in $libs; do
+ lib=
+ found=no
+ case $deplib in
+ -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
+ if test "$linkmode,$pass" = "prog,link"; then
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ else
+ compiler_flags="$compiler_flags $deplib"
+ if test "$linkmode" = lib ; then
+ case "$new_inherited_linker_flags " in
+ *" $deplib "*) ;;
+ * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
+ esac
+ fi
+ fi
+ continue
+ ;;
+ -l*)
+ if test "$linkmode" != lib && test "$linkmode" != prog; then
+ func_warning "\`-l' is ignored for archives/objects"
+ continue
+ fi
+ func_stripname '-l' '' "$deplib"
+ name=$func_stripname_result
+ if test "$linkmode" = lib; then
+ searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
+ else
+ searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
+ fi
+ for searchdir in $searchdirs; do
+ for search_ext in .la $std_shrext .so .a; do
+ # Search the libtool library
+ lib="$searchdir/lib${name}${search_ext}"
+ if test -f "$lib"; then
+ if test "$search_ext" = ".la"; then
+ found=yes
+ else
+ found=no
+ fi
+ break 2
+ fi
+ done
+ done
+ if test "$found" != yes; then
+ # deplib doesn't seem to be a libtool library
+ if test "$linkmode,$pass" = "prog,link"; then
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ else
+ deplibs="$deplib $deplibs"
+ test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
+ fi
+ continue
+ else # deplib is a libtool library
+ # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
+ # We need to do some special things here, and not later.
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ case " $predeps $postdeps " in
+ *" $deplib "*)
+ if func_lalib_p "$lib"; then
+ library_names=
+ old_library=
+ func_source "$lib"
+ for l in $old_library $library_names; do
+ ll="$l"
+ done
+ if test "X$ll" = "X$old_library" ; then # only static version available
+ found=no
+ func_dirname "$lib" "" "."
+ ladir="$func_dirname_result"
+ lib=$ladir/$old_library
+ if test "$linkmode,$pass" = "prog,link"; then
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ else
+ deplibs="$deplib $deplibs"
+ test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
+ fi
+ continue
+ fi
+ fi
+ ;;
+ *) ;;
+ esac
+ fi
+ fi
+ ;; # -l
+ *.ltframework)
+ if test "$linkmode,$pass" = "prog,link"; then
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ else
+ deplibs="$deplib $deplibs"
+ if test "$linkmode" = lib ; then
+ case "$new_inherited_linker_flags " in
+ *" $deplib "*) ;;
+ * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
+ esac
+ fi
+ fi
+ continue
+ ;;
+ -L*)
+ case $linkmode in
+ lib)
+ deplibs="$deplib $deplibs"
+ test "$pass" = conv && continue
+ newdependency_libs="$deplib $newdependency_libs"
+ func_stripname '-L' '' "$deplib"
+ newlib_search_path="$newlib_search_path $func_stripname_result"
+ ;;
+ prog)
+ if test "$pass" = conv; then
+ deplibs="$deplib $deplibs"
+ continue
+ fi
+ if test "$pass" = scan; then
+ deplibs="$deplib $deplibs"
+ else
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ fi
+ func_stripname '-L' '' "$deplib"
+ newlib_search_path="$newlib_search_path $func_stripname_result"
+ ;;
+ *)
+ func_warning "\`-L' is ignored for archives/objects"
+ ;;
+ esac # linkmode
+ continue
+ ;; # -L
+ -R*)
+ if test "$pass" = link; then
+ func_stripname '-R' '' "$deplib"
+ dir=$func_stripname_result
+ # Make sure the xrpath contains only unique directories.
+ case "$xrpath " in
+ *" $dir "*) ;;
+ *) xrpath="$xrpath $dir" ;;
+ esac
+ fi
+ deplibs="$deplib $deplibs"
+ continue
+ ;;
+ *.la) lib="$deplib" ;;
+ *.$libext)
+ if test "$pass" = conv; then
+ deplibs="$deplib $deplibs"
+ continue
+ fi
+ case $linkmode in
+ lib)
+ # Linking convenience modules into shared libraries is allowed,
+ # but linking other static libraries is non-portable.
+ case " $dlpreconveniencelibs " in
+ *" $deplib "*) ;;
+ *)
+ valid_a_lib=no
+ case $deplibs_check_method in
+ match_pattern*)
+ set dummy $deplibs_check_method; shift
+ match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
+ if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
+ | $EGREP "$match_pattern_regex" > /dev/null; then
+ valid_a_lib=yes
+ fi
+ ;;
+ pass_all)
+ valid_a_lib=yes
+ ;;
+ esac
+ if test "$valid_a_lib" != yes; then
+ $ECHO
+ $ECHO "*** Warning: Trying to link with static lib archive $deplib."
+ $ECHO "*** I have the capability to make that library automatically link in when"
+ $ECHO "*** you link to this library. But I can only do this if you have a"
+ $ECHO "*** shared version of the library, which you do not appear to have"
+ $ECHO "*** because the file extensions .$libext of this argument makes me believe"
+ $ECHO "*** that it is just a static archive that I should not use here."
+ else
+ $ECHO
+ $ECHO "*** Warning: Linking the shared library $output against the"
+ $ECHO "*** static library $deplib is not portable!"
+ deplibs="$deplib $deplibs"
+ fi
+ ;;
+ esac
+ continue
+ ;;
+ prog)
+ if test "$pass" != link; then
+ deplibs="$deplib $deplibs"
+ else
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ fi
+ continue
+ ;;
+ esac # linkmode
+ ;; # *.$libext
+ *.lo | *.$objext)
+ if test "$pass" = conv; then
+ deplibs="$deplib $deplibs"
+ elif test "$linkmode" = prog; then
+ if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
+ # If there is no dlopen support or we're linking statically,
+ # we need to preload.
+ newdlprefiles="$newdlprefiles $deplib"
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ else
+ newdlfiles="$newdlfiles $deplib"
+ fi
+ fi
+ continue
+ ;;
+ %DEPLIBS%)
+ alldeplibs=yes
+ continue
+ ;;
+ esac # case $deplib
+
+ if test "$found" = yes || test -f "$lib"; then :
+ else
+ func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
+ fi
+
+ # Check to see that this really is a libtool archive.
+ func_lalib_unsafe_p "$lib" \
+ || func_fatal_error "\`$lib' is not a valid libtool archive"
+
+ func_dirname "$lib" "" "."
+ ladir="$func_dirname_result"
+
+ dlname=
+ dlopen=
+ dlpreopen=
+ libdir=
+ library_names=
+ old_library=
+ inherited_linker_flags=
+ # If the library was installed with an old release of libtool,
+ # it will not redefine variables installed, or shouldnotlink
+ installed=yes
+ shouldnotlink=no
+ avoidtemprpath=
+
+
+ # Read the .la file
+ func_source "$lib"
+
+ # Convert "-framework foo" to "foo.ltframework"
+ if test -n "$inherited_linker_flags"; then
+ tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
+ for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
+ case " $new_inherited_linker_flags " in
+ *" $tmp_inherited_linker_flag "*) ;;
+ *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
+ esac
+ done
+ fi
+ dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
+ if test "$linkmode,$pass" = "lib,link" ||
+ test "$linkmode,$pass" = "prog,scan" ||
+ { test "$linkmode" != prog && test "$linkmode" != lib; }; then
+ test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
+ test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
+ fi
+
+ if test "$pass" = conv; then
+ # Only check for convenience libraries
+ deplibs="$lib $deplibs"
+ if test -z "$libdir"; then
+ if test -z "$old_library"; then
+ func_fatal_error "cannot find name of link library for \`$lib'"
+ fi
+ # It is a libtool convenience library, so add in its objects.
+ convenience="$convenience $ladir/$objdir/$old_library"
+ old_convenience="$old_convenience $ladir/$objdir/$old_library"
+ elif test "$linkmode" != prog && test "$linkmode" != lib; then
+ func_fatal_error "\`$lib' is not a convenience library"
+ fi
+ tmp_libs=
+ for deplib in $dependency_libs; do
+ deplibs="$deplib $deplibs"
+ if $opt_duplicate_deps ; then
+ case "$tmp_libs " in
+ *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
+ esac
+ fi
+ tmp_libs="$tmp_libs $deplib"
+ done
+ continue
+ fi # $pass = conv
+
+
+ # Get the name of the library we link against.
+ linklib=
+ for l in $old_library $library_names; do
+ linklib="$l"
+ done
+ if test -z "$linklib"; then
+ func_fatal_error "cannot find name of link library for \`$lib'"
+ fi
+
+ # This library was specified with -dlopen.
+ if test "$pass" = dlopen; then
+ if test -z "$libdir"; then
+ func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
+ fi
+ if test -z "$dlname" ||
+ test "$dlopen_support" != yes ||
+ test "$build_libtool_libs" = no; then
+ # If there is no dlname, no dlopen support or we're linking
+ # statically, we need to preload. We also need to preload any
+ # dependent libraries so libltdl's deplib preloader doesn't
+ # bomb out in the load deplibs phase.
+ dlprefiles="$dlprefiles $lib $dependency_libs"
+ else
+ newdlfiles="$newdlfiles $lib"
+ fi
+ continue
+ fi # $pass = dlopen
+
+ # We need an absolute path.
+ case $ladir in
+ [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
+ *)
+ abs_ladir=`cd "$ladir" && pwd`
+ if test -z "$abs_ladir"; then
+ func_warning "cannot determine absolute directory name of \`$ladir'"
+ func_warning "passing it literally to the linker, although it might fail"
+ abs_ladir="$ladir"
+ fi
+ ;;
+ esac
+ func_basename "$lib"
+ laname="$func_basename_result"
+
+ # Find the relevant object directory and library name.
+ if test "X$installed" = Xyes; then
+ if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
+ func_warning "library \`$lib' was moved."
+ dir="$ladir"
+ absdir="$abs_ladir"
+ libdir="$abs_ladir"
+ else
+ dir="$libdir"
+ absdir="$libdir"
+ fi
+ test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
+ else
+ if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
+ dir="$ladir"
+ absdir="$abs_ladir"
+ # Remove this search path later
+ notinst_path="$notinst_path $abs_ladir"
+ else
+ dir="$ladir/$objdir"
+ absdir="$abs_ladir/$objdir"
+ # Remove this search path later
+ notinst_path="$notinst_path $abs_ladir"
+ fi
+ fi # $installed = yes
+ func_stripname 'lib' '.la' "$laname"
+ name=$func_stripname_result
+
+ # This library was specified with -dlpreopen.
+ if test "$pass" = dlpreopen; then
+ if test -z "$libdir" && test "$linkmode" = prog; then
+ func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
+ fi
+ # Prefer using a static library (so that no silly _DYNAMIC symbols
+ # are required to link).
+ if test -n "$old_library"; then
+ newdlprefiles="$newdlprefiles $dir/$old_library"
+ # Keep a list of preopened convenience libraries to check
+ # that they are being used correctly in the link pass.
+ test -z "$libdir" && \
+ dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
+ # Otherwise, use the dlname, so that lt_dlopen finds it.
+ elif test -n "$dlname"; then
+ newdlprefiles="$newdlprefiles $dir/$dlname"
+ else
+ newdlprefiles="$newdlprefiles $dir/$linklib"
+ fi
+ fi # $pass = dlpreopen
+
+ if test -z "$libdir"; then
+ # Link the convenience library
+ if test "$linkmode" = lib; then
+ deplibs="$dir/$old_library $deplibs"
+ elif test "$linkmode,$pass" = "prog,link"; then
+ compile_deplibs="$dir/$old_library $compile_deplibs"
+ finalize_deplibs="$dir/$old_library $finalize_deplibs"
+ else
+ deplibs="$lib $deplibs" # used for prog,scan pass
+ fi
+ continue
+ fi
+
+
+ if test "$linkmode" = prog && test "$pass" != link; then
+ newlib_search_path="$newlib_search_path $ladir"
+ deplibs="$lib $deplibs"
+
+ linkalldeplibs=no
+ if test "$link_all_deplibs" != no || test -z "$library_names" ||
+ test "$build_libtool_libs" = no; then
+ linkalldeplibs=yes
+ fi
+
+ tmp_libs=
+ for deplib in $dependency_libs; do
+ case $deplib in
+ -L*) func_stripname '-L' '' "$deplib"
+ newlib_search_path="$newlib_search_path $func_stripname_result"
+ ;;
+ esac
+ # Need to link against all dependency_libs?
+ if test "$linkalldeplibs" = yes; then
+ deplibs="$deplib $deplibs"
+ else
+ # Need to hardcode shared library paths
+ # or/and link against static libraries
+ newdependency_libs="$deplib $newdependency_libs"
+ fi
+ if $opt_duplicate_deps ; then
+ case "$tmp_libs " in
+ *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
+ esac
+ fi
+ tmp_libs="$tmp_libs $deplib"
+ done # for deplib
+ continue
+ fi # $linkmode = prog...
+
+ if test "$linkmode,$pass" = "prog,link"; then
+ if test -n "$library_names" &&
+ { { test "$prefer_static_libs" = no ||
+ test "$prefer_static_libs,$installed" = "built,yes"; } ||
+ test -z "$old_library"; }; then
+ # We need to hardcode the library path
+ if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
+ # Make sure the rpath contains only unique directories.
+ case "$temp_rpath:" in
+ *"$absdir:"*) ;;
+ *) temp_rpath="$temp_rpath$absdir:" ;;
+ esac
+ fi
+
+ # Hardcode the library path.
+ # Skip directories that are in the system default run-time
+ # search path.
+ case " $sys_lib_dlsearch_path " in
+ *" $absdir "*) ;;
+ *)
+ case "$compile_rpath " in
+ *" $absdir "*) ;;
+ *) compile_rpath="$compile_rpath $absdir"
+ esac
+ ;;
+ esac
+ case " $sys_lib_dlsearch_path " in
+ *" $libdir "*) ;;
+ *)
+ case "$finalize_rpath " in
+ *" $libdir "*) ;;
+ *) finalize_rpath="$finalize_rpath $libdir"
+ esac
+ ;;
+ esac
+ fi # $linkmode,$pass = prog,link...
+
+ if test "$alldeplibs" = yes &&
+ { test "$deplibs_check_method" = pass_all ||
+ { test "$build_libtool_libs" = yes &&
+ test -n "$library_names"; }; }; then
+ # We only need to search for static libraries
+ continue
+ fi
+ fi
+
+ link_static=no # Whether the deplib will be linked statically
+ use_static_libs=$prefer_static_libs
+ if test "$use_static_libs" = built && test "$installed" = yes; then
+ use_static_libs=no
+ fi
+ if test -n "$library_names" &&
+ { test "$use_static_libs" = no || test -z "$old_library"; }; then
+ case $host in
+ *cygwin* | *mingw* | *cegcc*)
+ # No point in relinking DLLs because paths are not encoded
+ notinst_deplibs="$notinst_deplibs $lib"
+ need_relink=no
+ ;;
+ *)
+ if test "$installed" = no; then
+ notinst_deplibs="$notinst_deplibs $lib"
+ need_relink=yes
+ fi
+ ;;
+ esac
+ # This is a shared library
+
+ # Warn about portability, can't link against -module's on some
+ # systems (darwin). Don't bleat about dlopened modules though!
+ dlopenmodule=""
+ for dlpremoduletest in $dlprefiles; do
+ if test "X$dlpremoduletest" = "X$lib"; then
+ dlopenmodule="$dlpremoduletest"
+ break
+ fi
+ done
+ if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
+ $ECHO
+ if test "$linkmode" = prog; then
+ $ECHO "*** Warning: Linking the executable $output against the loadable module"
+ else
+ $ECHO "*** Warning: Linking the shared library $output against the loadable module"
+ fi
+ $ECHO "*** $linklib is not portable!"
+ fi
+ if test "$linkmode" = lib &&
+ test "$hardcode_into_libs" = yes; then
+ # Hardcode the library path.
+ # Skip directories that are in the system default run-time
+ # search path.
+ case " $sys_lib_dlsearch_path " in
+ *" $absdir "*) ;;
+ *)
+ case "$compile_rpath " in
+ *" $absdir "*) ;;
+ *) compile_rpath="$compile_rpath $absdir"
+ esac
+ ;;
+ esac
+ case " $sys_lib_dlsearch_path " in
+ *" $libdir "*) ;;
+ *)
+ case "$finalize_rpath " in
+ *" $libdir "*) ;;
+ *) finalize_rpath="$finalize_rpath $libdir"
+ esac
+ ;;
+ esac
+ fi
+
+ if test -n "$old_archive_from_expsyms_cmds"; then
+ # figure out the soname
+ set dummy $library_names
+ shift
+ realname="$1"
+ shift
+ libname=`eval "\\$ECHO \"$libname_spec\""`
+ # use dlname if we got it. it's perfectly good, no?
+ if test -n "$dlname"; then
+ soname="$dlname"
+ elif test -n "$soname_spec"; then
+ # bleh windows
+ case $host in
+ *cygwin* | mingw* | *cegcc*)
+ func_arith $current - $age
+ major=$func_arith_result
+ versuffix="-$major"
+ ;;
+ esac
+ eval soname=\"$soname_spec\"
+ else
+ soname="$realname"
+ fi
+
+ # Make a new name for the extract_expsyms_cmds to use
+ soroot="$soname"
+ func_basename "$soroot"
+ soname="$func_basename_result"
+ func_stripname 'lib' '.dll' "$soname"
+ newlib=libimp-$func_stripname_result.a
+
+ # If the library has no export list, then create one now
+ if test -f "$output_objdir/$soname-def"; then :
+ else
+ func_verbose "extracting exported symbol list from \`$soname'"
+ func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
+ fi
+
+ # Create $newlib
+ if test -f "$output_objdir/$newlib"; then :; else
+ func_verbose "generating import library for \`$soname'"
+ func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
+ fi
+ # make sure the library variables are pointing to the new library
+ dir=$output_objdir
+ linklib=$newlib
+ fi # test -n "$old_archive_from_expsyms_cmds"
+
+ if test "$linkmode" = prog || test "$mode" != relink; then
+ add_shlibpath=
+ add_dir=
+ add=
+ lib_linked=yes
+ case $hardcode_action in
+ immediate | unsupported)
+ if test "$hardcode_direct" = no; then
+ add="$dir/$linklib"
+ case $host in
+ *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
+ *-*-sysv4*uw2*) add_dir="-L$dir" ;;
+ *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
+ *-*-unixware7*) add_dir="-L$dir" ;;
+ *-*-darwin* )
+ # if the lib is a (non-dlopened) module then we can not
+ # link against it, someone is ignoring the earlier warnings
+ if /usr/bin/file -L $add 2> /dev/null |
+ $GREP ": [^:]* bundle" >/dev/null ; then
+ if test "X$dlopenmodule" != "X$lib"; then
+ $ECHO "*** Warning: lib $linklib is a module, not a shared library"
+ if test -z "$old_library" ; then
+ $ECHO
+ $ECHO "*** And there doesn't seem to be a static archive available"
+ $ECHO "*** The link will probably fail, sorry"
+ else
+ add="$dir/$old_library"
+ fi
+ elif test -n "$old_library"; then
+ add="$dir/$old_library"
+ fi
+ fi
+ esac
+ elif test "$hardcode_minus_L" = no; then
+ case $host in
+ *-*-sunos*) add_shlibpath="$dir" ;;
+ esac
+ add_dir="-L$dir"
+ add="-l$name"
+ elif test "$hardcode_shlibpath_var" = no; then
+ add_shlibpath="$dir"
+ add="-l$name"
+ else
+ lib_linked=no
+ fi
+ ;;
+ relink)
+ if test "$hardcode_direct" = yes &&
+ test "$hardcode_direct_absolute" = no; then
+ add="$dir/$linklib"
+ elif test "$hardcode_minus_L" = yes; then
+ add_dir="-L$dir"
+ # Try looking first in the location we're being installed to.
+ if test -n "$inst_prefix_dir"; then
+ case $libdir in
+ [\\/]*)
+ add_dir="$add_dir -L$inst_prefix_dir$libdir"
+ ;;
+ esac
+ fi
+ add="-l$name"
+ elif test "$hardcode_shlibpath_var" = yes; then
+ add_shlibpath="$dir"
+ add="-l$name"
+ else
+ lib_linked=no
+ fi
+ ;;
+ *) lib_linked=no ;;
+ esac
+
+ if test "$lib_linked" != yes; then
+ func_fatal_configuration "unsupported hardcode properties"
+ fi
+
+ if test -n "$add_shlibpath"; then
+ case :$compile_shlibpath: in
+ *":$add_shlibpath:"*) ;;
+ *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
+ esac
+ fi
+ if test "$linkmode" = prog; then
+ test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
+ test -n "$add" && compile_deplibs="$add $compile_deplibs"
+ else
+ test -n "$add_dir" && deplibs="$add_dir $deplibs"
+ test -n "$add" && deplibs="$add $deplibs"
+ if test "$hardcode_direct" != yes &&
+ test "$hardcode_minus_L" != yes &&
+ test "$hardcode_shlibpath_var" = yes; then
+ case :$finalize_shlibpath: in
+ *":$libdir:"*) ;;
+ *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
+ esac
+ fi
+ fi
+ fi
+
+ if test "$linkmode" = prog || test "$mode" = relink; then
+ add_shlibpath=
+ add_dir=
+ add=
+ # Finalize command for both is simple: just hardcode it.
+ if test "$hardcode_direct" = yes &&
+ test "$hardcode_direct_absolute" = no; then
+ add="$libdir/$linklib"
+ elif test "$hardcode_minus_L" = yes; then
+ add_dir="-L$libdir"
+ add="-l$name"
+ elif test "$hardcode_shlibpath_var" = yes; then
+ case :$finalize_shlibpath: in
+ *":$libdir:"*) ;;
+ *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
+ esac
+ add="-l$name"
+ elif test "$hardcode_automatic" = yes; then
+ if test -n "$inst_prefix_dir" &&
+ test -f "$inst_prefix_dir$libdir/$linklib" ; then
+ add="$inst_prefix_dir$libdir/$linklib"
+ else
+ add="$libdir/$linklib"
+ fi
+ else
+ # We cannot seem to hardcode it, guess we'll fake it.
+ add_dir="-L$libdir"
+ # Try looking first in the location we're being installed to.
+ if test -n "$inst_prefix_dir"; then
+ case $libdir in
+ [\\/]*)
+ add_dir="$add_dir -L$inst_prefix_dir$libdir"
+ ;;
+ esac
+ fi
+ add="-l$name"
+ fi
+
+ if test "$linkmode" = prog; then
+ test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
+ test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
+ else
+ test -n "$add_dir" && deplibs="$add_dir $deplibs"
+ test -n "$add" && deplibs="$add $deplibs"
+ fi
+ fi
+ elif test "$linkmode" = prog; then
+ # Here we assume that one of hardcode_direct or hardcode_minus_L
+ # is not unsupported. This is valid on all known static and
+ # shared platforms.
+ if test "$hardcode_direct" != unsupported; then
+ test -n "$old_library" && linklib="$old_library"
+ compile_deplibs="$dir/$linklib $compile_deplibs"
+ finalize_deplibs="$dir/$linklib $finalize_deplibs"
+ else
+ compile_deplibs="-l$name -L$dir $compile_deplibs"
+ finalize_deplibs="-l$name -L$dir $finalize_deplibs"
+ fi
+ elif test "$build_libtool_libs" = yes; then
+ # Not a shared library
+ if test "$deplibs_check_method" != pass_all; then
+ # We're trying link a shared library against a static one
+ # but the system doesn't support it.
+
+ # Just print a warning and add the library to dependency_libs so
+ # that the program can be linked against the static library.
+ $ECHO
+ $ECHO "*** Warning: This system can not link to static lib archive $lib."
+ $ECHO "*** I have the capability to make that library automatically link in when"
+ $ECHO "*** you link to this library. But I can only do this if you have a"
+ $ECHO "*** shared version of the library, which you do not appear to have."
+ if test "$module" = yes; then
+ $ECHO "*** But as you try to build a module library, libtool will still create "
+ $ECHO "*** a static module, that should work as long as the dlopening application"
+ $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
+ if test -z "$global_symbol_pipe"; then
+ $ECHO
+ $ECHO "*** However, this would only work if libtool was able to extract symbol"
+ $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
+ $ECHO "*** not find such a program. So, this module is probably useless."
+ $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
+ fi
+ if test "$build_old_libs" = no; then
+ build_libtool_libs=module
+ build_old_libs=yes
+ else
+ build_libtool_libs=no
+ fi
+ fi
+ else
+ deplibs="$dir/$old_library $deplibs"
+ link_static=yes
+ fi
+ fi # link shared/static library?
+
+ if test "$linkmode" = lib; then
+ if test -n "$dependency_libs" &&
+ { test "$hardcode_into_libs" != yes ||
+ test "$build_old_libs" = yes ||
+ test "$link_static" = yes; }; then
+ # Extract -R from dependency_libs
+ temp_deplibs=
+ for libdir in $dependency_libs; do
+ case $libdir in
+ -R*) func_stripname '-R' '' "$libdir"
+ temp_xrpath=$func_stripname_result
+ case " $xrpath " in
+ *" $temp_xrpath "*) ;;
+ *) xrpath="$xrpath $temp_xrpath";;
+ esac;;
+ *) temp_deplibs="$temp_deplibs $libdir";;
+ esac
+ done
+ dependency_libs="$temp_deplibs"
+ fi
+
+ newlib_search_path="$newlib_search_path $absdir"
+ # Link against this library
+ test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
+ # ... and its dependency_libs
+ tmp_libs=
+ for deplib in $dependency_libs; do
+ newdependency_libs="$deplib $newdependency_libs"
+ if $opt_duplicate_deps ; then
+ case "$tmp_libs " in
+ *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
+ esac
+ fi
+ tmp_libs="$tmp_libs $deplib"
+ done
+
+ if test "$link_all_deplibs" != no; then
+ # Add the search paths of all dependency libraries
+ for deplib in $dependency_libs; do
+ case $deplib in
+ -L*) path="$deplib" ;;
+ *.la)
+ func_dirname "$deplib" "" "."
+ dir="$func_dirname_result"
+ # We need an absolute path.
+ case $dir in
+ [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
+ *)
+ absdir=`cd "$dir" && pwd`
+ if test -z "$absdir"; then
+ func_warning "cannot determine absolute directory name of \`$dir'"
+ absdir="$dir"
+ fi
+ ;;
+ esac
+ if $GREP "^installed=no" $deplib > /dev/null; then
+ case $host in
+ *-*-darwin*)
+ depdepl=
+ eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
+ if test -n "$deplibrary_names" ; then
+ for tmp in $deplibrary_names ; do
+ depdepl=$tmp
+ done
+ if test -f "$absdir/$objdir/$depdepl" ; then
+ depdepl="$absdir/$objdir/$depdepl"
+ darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
+ if test -z "$darwin_install_name"; then
+ darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
+ fi
+ compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
+ linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
+ path=
+ fi
+ fi
+ ;;
+ *)
+ path="-L$absdir/$objdir"
+ ;;
+ esac
+ else
+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
+ test -z "$libdir" && \
+ func_fatal_error "\`$deplib' is not a valid libtool archive"
+ test "$absdir" != "$libdir" && \
+ func_warning "\`$deplib' seems to be moved"
+
+ path="-L$absdir"
+ fi
+ ;;
+ esac
+ case " $deplibs " in
+ *" $path "*) ;;
+ *) deplibs="$path $deplibs" ;;
+ esac
+ done
+ fi # link_all_deplibs != no
+ fi # linkmode = lib
+ done # for deplib in $libs
+ if test "$pass" = link; then
+ if test "$linkmode" = "prog"; then
+ compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
+ finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
+ else
+ compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
+ fi
+ fi
+ dependency_libs="$newdependency_libs"
+ if test "$pass" = dlpreopen; then
+ # Link the dlpreopened libraries before other libraries
+ for deplib in $save_deplibs; do
+ deplibs="$deplib $deplibs"
+ done
+ fi
+ if test "$pass" != dlopen; then
+ if test "$pass" != conv; then
+ # Make sure lib_search_path contains only unique directories.
+ lib_search_path=
+ for dir in $newlib_search_path; do
+ case "$lib_search_path " in
+ *" $dir "*) ;;
+ *) lib_search_path="$lib_search_path $dir" ;;
+ esac
+ done
+ newlib_search_path=
+ fi
+
+ if test "$linkmode,$pass" != "prog,link"; then
+ vars="deplibs"
+ else
+ vars="compile_deplibs finalize_deplibs"
+ fi
+ for var in $vars dependency_libs; do
+ # Add libraries to $var in reverse order
+ eval tmp_libs=\"\$$var\"
+ new_libs=
+ for deplib in $tmp_libs; do
+ # FIXME: Pedantically, this is the right thing to do, so
+ # that some nasty dependency loop isn't accidentally
+ # broken:
+ #new_libs="$deplib $new_libs"
+ # Pragmatically, this seems to cause very few problems in
+ # practice:
+ case $deplib in
+ -L*) new_libs="$deplib $new_libs" ;;
+ -R*) ;;
+ *)
+ # And here is the reason: when a library appears more
+ # than once as an explicit dependence of a library, or
+ # is implicitly linked in more than once by the
+ # compiler, it is considered special, and multiple
+ # occurrences thereof are not removed. Compare this
+ # with having the same library being listed as a
+ # dependency of multiple other libraries: in this case,
+ # we know (pedantically, we assume) the library does not
+ # need to be listed more than once, so we keep only the
+ # last copy. This is not always right, but it is rare
+ # enough that we require users that really mean to play
+ # such unportable linking tricks to link the library
+ # using -Wl,-lname, so that libtool does not consider it
+ # for duplicate removal.
+ case " $specialdeplibs " in
+ *" $deplib "*) new_libs="$deplib $new_libs" ;;
+ *)
+ case " $new_libs " in
+ *" $deplib "*) ;;
+ *) new_libs="$deplib $new_libs" ;;
+ esac
+ ;;
+ esac
+ ;;
+ esac
+ done
+ tmp_libs=
+ for deplib in $new_libs; do
+ case $deplib in
+ -L*)
+ case " $tmp_libs " in
+ *" $deplib "*) ;;
+ *) tmp_libs="$tmp_libs $deplib" ;;
+ esac
+ ;;
+ *) tmp_libs="$tmp_libs $deplib" ;;
+ esac
+ done
+ eval $var=\"$tmp_libs\"
+ done # for var
+ fi
+ # Last step: remove runtime libs from dependency_libs
+ # (they stay in deplibs)
+ tmp_libs=
+ for i in $dependency_libs ; do
+ case " $predeps $postdeps $compiler_lib_search_path " in
+ *" $i "*)
+ i=""
+ ;;
+ esac
+ if test -n "$i" ; then
+ tmp_libs="$tmp_libs $i"
+ fi
+ done
+ dependency_libs=$tmp_libs
+ done # for pass
+ if test "$linkmode" = prog; then
+ dlfiles="$newdlfiles"
+ fi
+ if test "$linkmode" = prog || test "$linkmode" = lib; then
+ dlprefiles="$newdlprefiles"
+ fi
+
+ case $linkmode in
+ oldlib)
+ if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
+ func_warning "\`-dlopen' is ignored for archives"
+ fi
+
+ case " $deplibs" in
+ *\ -l* | *\ -L*)
+ func_warning "\`-l' and \`-L' are ignored for archives" ;;
+ esac
+
+ test -n "$rpath" && \
+ func_warning "\`-rpath' is ignored for archives"
+
+ test -n "$xrpath" && \
+ func_warning "\`-R' is ignored for archives"
+
+ test -n "$vinfo" && \
+ func_warning "\`-version-info/-version-number' is ignored for archives"
+
+ test -n "$release" && \
+ func_warning "\`-release' is ignored for archives"
+
+ test -n "$export_symbols$export_symbols_regex" && \
+ func_warning "\`-export-symbols' is ignored for archives"
+
+ # Now set the variables for building old libraries.
+ build_libtool_libs=no
+ oldlibs="$output"
+ objs="$objs$old_deplibs"
+ ;;
+
+ lib)
+ # Make sure we only generate libraries of the form `libNAME.la'.
+ case $outputname in
+ lib*)
+ func_stripname 'lib' '.la' "$outputname"
+ name=$func_stripname_result
+ eval shared_ext=\"$shrext_cmds\"
+ eval libname=\"$libname_spec\"
+ ;;
+ *)
+ test "$module" = no && \
+ func_fatal_help "libtool library \`$output' must begin with \`lib'"
+
+ if test "$need_lib_prefix" != no; then
+ # Add the "lib" prefix for modules if required
+ func_stripname '' '.la' "$outputname"
+ name=$func_stripname_result
+ eval shared_ext=\"$shrext_cmds\"
+ eval libname=\"$libname_spec\"
+ else
+ func_stripname '' '.la' "$outputname"
+ libname=$func_stripname_result
+ fi
+ ;;
+ esac
+
+ if test -n "$objs"; then
+ if test "$deplibs_check_method" != pass_all; then
+ func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
+ else
+ $ECHO
+ $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
+ $ECHO "*** objects $objs is not portable!"
+ libobjs="$libobjs $objs"
+ fi
+ fi
+
+ test "$dlself" != no && \
+ func_warning "\`-dlopen self' is ignored for libtool libraries"
+
+ set dummy $rpath
+ shift
+ test "$#" -gt 1 && \
+ func_warning "ignoring multiple \`-rpath's for a libtool library"
+
+ install_libdir="$1"
+
+ oldlibs=
+ if test -z "$rpath"; then
+ if test "$build_libtool_libs" = yes; then
+ # Building a libtool convenience library.
+ # Some compilers have problems with a `.al' extension so
+ # convenience libraries should have the same extension an
+ # archive normally would.
+ oldlibs="$output_objdir/$libname.$libext $oldlibs"
+ build_libtool_libs=convenience
+ build_old_libs=yes
+ fi
+
+ test -n "$vinfo" && \
+ func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
+
+ test -n "$release" && \
+ func_warning "\`-release' is ignored for convenience libraries"
+ else
+
+ # Parse the version information argument.
+ save_ifs="$IFS"; IFS=':'
+ set dummy $vinfo 0 0 0
+ shift
+ IFS="$save_ifs"
+
+ test -n "$7" && \
+ func_fatal_help "too many parameters to \`-version-info'"
+
+ # convert absolute version numbers to libtool ages
+ # this retains compatibility with .la files and attempts
+ # to make the code below a bit more comprehensible
+
+ case $vinfo_number in
+ yes)
+ number_major="$1"
+ number_minor="$2"
+ number_revision="$3"
+ #
+ # There are really only two kinds -- those that
+ # use the current revision as the major version
+ # and those that subtract age and use age as
+ # a minor version. But, then there is irix
+ # which has an extra 1 added just for fun
+ #
+ case $version_type in
+ darwin|linux|osf|windows|none)
+ func_arith $number_major + $number_minor
+ current=$func_arith_result
+ age="$number_minor"
+ revision="$number_revision"
+ ;;
+ freebsd-aout|freebsd-elf|sunos)
+ current="$number_major"
+ revision="$number_minor"
+ age="0"
+ ;;
+ irix|nonstopux)
+ func_arith $number_major + $number_minor
+ current=$func_arith_result
+ age="$number_minor"
+ revision="$number_minor"
+ lt_irix_increment=no
+ ;;
+ *)
+ func_fatal_configuration "$modename: unknown library version type \`$version_type'"
+ ;;
+ esac
+ ;;
+ no)
+ current="$1"
+ revision="$2"
+ age="$3"
+ ;;
+ esac
+
+ # Check that each of the things are valid numbers.
+ case $current in
+ 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
+ *)
+ func_error "CURRENT \`$current' must be a nonnegative integer"
+ func_fatal_error "\`$vinfo' is not valid version information"
+ ;;
+ esac
+
+ case $revision in
+ 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
+ *)
+ func_error "REVISION \`$revision' must be a nonnegative integer"
+ func_fatal_error "\`$vinfo' is not valid version information"
+ ;;
+ esac
+
+ case $age in
+ 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
+ *)
+ func_error "AGE \`$age' must be a nonnegative integer"
+ func_fatal_error "\`$vinfo' is not valid version information"
+ ;;
+ esac
+
+ if test "$age" -gt "$current"; then
+ func_error "AGE \`$age' is greater than the current interface number \`$current'"
+ func_fatal_error "\`$vinfo' is not valid version information"
+ fi
+
+ # Calculate the version variables.
+ major=
+ versuffix=
+ verstring=
+ case $version_type in
+ none) ;;
+
+ darwin)
+ # Like Linux, but with the current version available in
+ # verstring for coding it into the library header
+ func_arith $current - $age
+ major=.$func_arith_result
+ versuffix="$major.$age.$revision"
+ # Darwin ld doesn't like 0 for these options...
+ func_arith $current + 1
+ minor_current=$func_arith_result
+ xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
+ verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
+ ;;
+
+ freebsd-aout)
+ major=".$current"
+ versuffix=".$current.$revision";
+ ;;
+
+ freebsd-elf)
+ major=".$current"
+ versuffix=".$current"
+ ;;
+
+ irix | nonstopux)
+ if test "X$lt_irix_increment" = "Xno"; then
+ func_arith $current - $age
+ else
+ func_arith $current - $age + 1
+ fi
+ major=$func_arith_result
+
+ case $version_type in
+ nonstopux) verstring_prefix=nonstopux ;;
+ *) verstring_prefix=sgi ;;
+ esac
+ verstring="$verstring_prefix$major.$revision"
+
+ # Add in all the interfaces that we are compatible with.
+ loop=$revision
+ while test "$loop" -ne 0; do
+ func_arith $revision - $loop
+ iface=$func_arith_result
+ func_arith $loop - 1
+ loop=$func_arith_result
+ verstring="$verstring_prefix$major.$iface:$verstring"
+ done
+
+ # Before this point, $major must not contain `.'.
+ major=.$major
+ versuffix="$major.$revision"
+ ;;
+
+ linux)
+ func_arith $current - $age
+ major=.$func_arith_result
+ versuffix="$major.$age.$revision"
+ ;;
+
+ osf)
+ func_arith $current - $age
+ major=.$func_arith_result
+ versuffix=".$current.$age.$revision"
+ verstring="$current.$age.$revision"
+
+ # Add in all the interfaces that we are compatible with.
+ loop=$age
+ while test "$loop" -ne 0; do
+ func_arith $current - $loop
+ iface=$func_arith_result
+ func_arith $loop - 1
+ loop=$func_arith_result
+ verstring="$verstring:${iface}.0"
+ done
+
+ # Make executables depend on our current version.
+ verstring="$verstring:${current}.0"
+ ;;
+
+ qnx)
+ major=".$current"
+ versuffix=".$current"
+ ;;
+
+ sunos)
+ major=".$current"
+ versuffix=".$current.$revision"
+ ;;
+
+ windows)
+ # Use '-' rather than '.', since we only want one
+ # extension on DOS 8.3 filesystems.
+ func_arith $current - $age
+ major=$func_arith_result
+ versuffix="-$major"
+ ;;
+
+ *)
+ func_fatal_configuration "unknown library version type \`$version_type'"
+ ;;
+ esac
+
+ # Clear the version info if we defaulted, and they specified a release.
+ if test -z "$vinfo" && test -n "$release"; then
+ major=
+ case $version_type in
+ darwin)
+ # we can't check for "0.0" in archive_cmds due to quoting
+ # problems, so we reset it completely
+ verstring=
+ ;;
+ *)
+ verstring="0.0"
+ ;;
+ esac
+ if test "$need_version" = no; then
+ versuffix=
+ else
+ versuffix=".0.0"
+ fi
+ fi
+
+ # Remove version info from name if versioning should be avoided
+ if test "$avoid_version" = yes && test "$need_version" = no; then
+ major=
+ versuffix=
+ verstring=""
+ fi
+
+ # Check to see if the archive will have undefined symbols.
+ if test "$allow_undefined" = yes; then
+ if test "$allow_undefined_flag" = unsupported; then
+ func_warning "undefined symbols not allowed in $host shared libraries"
+ build_libtool_libs=no
+ build_old_libs=yes
+ fi
+ else
+ # Don't allow undefined symbols.
+ allow_undefined_flag="$no_undefined_flag"
+ fi
+
+ fi
+
+ func_generate_dlsyms "$libname" "$libname" "yes"
+ libobjs="$libobjs $symfileobj"
+ test "X$libobjs" = "X " && libobjs=
+
+ if test "$mode" != relink; then
+ # Remove our outputs, but don't remove object files since they
+ # may have been created when compiling PIC objects.
+ removelist=
+ tempremovelist=`$ECHO "$output_objdir/*"`
+ for p in $tempremovelist; do
+ case $p in
+ *.$objext | *.gcno)
+ ;;
+ $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
+ if test "X$precious_files_regex" != "X"; then
+ if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
+ then
+ continue
+ fi
+ fi
+ removelist="$removelist $p"
+ ;;
+ *) ;;
+ esac
+ done
+ test -n "$removelist" && \
+ func_show_eval "${RM}r \$removelist"
+ fi
+
+ # Now set the variables for building old libraries.
+ if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
+ oldlibs="$oldlibs $output_objdir/$libname.$libext"
+
+ # Transform .lo files to .o files.
+ oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
+ fi
+
+ # Eliminate all temporary directories.
+ #for path in $notinst_path; do
+ # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
+ # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
+ # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
+ #done
+
+ if test -n "$xrpath"; then
+ # If the user specified any rpath flags, then add them.
+ temp_xrpath=
+ for libdir in $xrpath; do
+ temp_xrpath="$temp_xrpath -R$libdir"
+ case "$finalize_rpath " in
+ *" $libdir "*) ;;
+ *) finalize_rpath="$finalize_rpath $libdir" ;;
+ esac
+ done
+ if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
+ dependency_libs="$temp_xrpath $dependency_libs"
+ fi
+ fi
+
+ # Make sure dlfiles contains only unique files that won't be dlpreopened
+ old_dlfiles="$dlfiles"
+ dlfiles=
+ for lib in $old_dlfiles; do
+ case " $dlprefiles $dlfiles " in
+ *" $lib "*) ;;
+ *) dlfiles="$dlfiles $lib" ;;
+ esac
+ done
+
+ # Make sure dlprefiles contains only unique files
+ old_dlprefiles="$dlprefiles"
+ dlprefiles=
+ for lib in $old_dlprefiles; do
+ case "$dlprefiles " in
+ *" $lib "*) ;;
+ *) dlprefiles="$dlprefiles $lib" ;;
+ esac
+ done
+
+ if test "$build_libtool_libs" = yes; then
+ if test -n "$rpath"; then
+ case $host in
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
+ # these systems don't actually have a c library (as such)!
+ ;;
+ *-*-rhapsody* | *-*-darwin1.[012])
+ # Rhapsody C library is in the System framework
+ deplibs="$deplibs System.ltframework"
+ ;;
+ *-*-netbsd*)
+ # Don't link with libc until the a.out ld.so is fixed.
+ ;;
+ *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
+ # Do not include libc due to us having libc/libc_r.
+ ;;
+ *-*-sco3.2v5* | *-*-sco5v6*)
+ # Causes problems with __ctype
+ ;;
+ *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
+ # Compiler inserts libc in the correct place for threads to work
+ ;;
+ *)
+ # Add libc to deplibs on all other systems if necessary.
+ if test "$build_libtool_need_lc" = "yes"; then
+ deplibs="$deplibs -lc"
+ fi
+ ;;
+ esac
+ fi
+
+ # Transform deplibs into only deplibs that can be linked in shared.
+ name_save=$name
+ libname_save=$libname
+ release_save=$release
+ versuffix_save=$versuffix
+ major_save=$major
+ # I'm not sure if I'm treating the release correctly. I think
+ # release should show up in the -l (ie -lgmp5) so we don't want to
+ # add it in twice. Is that correct?
+ release=""
+ versuffix=""
+ major=""
+ newdeplibs=
+ droppeddeps=no
+ case $deplibs_check_method in
+ pass_all)
+ # Don't check for shared/static. Everything works.
+ # This might be a little naive. We might want to check
+ # whether the library exists or not. But this is on
+ # osf3 & osf4 and I'm not really sure... Just
+ # implementing what was already the behavior.
+ newdeplibs=$deplibs
+ ;;
+ test_compile)
+ # This code stresses the "libraries are programs" paradigm to its
+ # limits. Maybe even breaks it. We compile a program, linking it
+ # against the deplibs as a proxy for the library. Then we can check
+ # whether they linked in statically or dynamically with ldd.
+ $opt_dry_run || $RM conftest.c
+ cat > conftest.c <<EOF
+ int main() { return 0; }
+EOF
+ $opt_dry_run || $RM conftest
+ if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
+ ldd_output=`ldd conftest`
+ for i in $deplibs; do
+ case $i in
+ -l*)
+ func_stripname -l '' "$i"
+ name=$func_stripname_result
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ case " $predeps $postdeps " in
+ *" $i "*)
+ newdeplibs="$newdeplibs $i"
+ i=""
+ ;;
+ esac
+ fi
+ if test -n "$i" ; then
+ libname=`eval "\\$ECHO \"$libname_spec\""`
+ deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
+ set dummy $deplib_matches; shift
+ deplib_match=$1
+ if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
+ newdeplibs="$newdeplibs $i"
+ else
+ droppeddeps=yes
+ $ECHO
+ $ECHO "*** Warning: dynamic linker does not accept needed library $i."
+ $ECHO "*** I have the capability to make that library automatically link in when"
+ $ECHO "*** you link to this library. But I can only do this if you have a"
+ $ECHO "*** shared version of the library, which I believe you do not have"
+ $ECHO "*** because a test_compile did reveal that the linker did not use it for"
+ $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
+ fi
+ fi
+ ;;
+ *)
+ newdeplibs="$newdeplibs $i"
+ ;;
+ esac
+ done
+ else
+ # Error occurred in the first compile. Let's try to salvage
+ # the situation: Compile a separate program for each library.
+ for i in $deplibs; do
+ case $i in
+ -l*)
+ func_stripname -l '' "$i"
+ name=$func_stripname_result
+ $opt_dry_run || $RM conftest
+ if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
+ ldd_output=`ldd conftest`
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ case " $predeps $postdeps " in
+ *" $i "*)
+ newdeplibs="$newdeplibs $i"
+ i=""
+ ;;
+ esac
+ fi
+ if test -n "$i" ; then
+ libname=`eval "\\$ECHO \"$libname_spec\""`
+ deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
+ set dummy $deplib_matches; shift
+ deplib_match=$1
+ if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
+ newdeplibs="$newdeplibs $i"
+ else
+ droppeddeps=yes
+ $ECHO
+ $ECHO "*** Warning: dynamic linker does not accept needed library $i."
+ $ECHO "*** I have the capability to make that library automatically link in when"
+ $ECHO "*** you link to this library. But I can only do this if you have a"
+ $ECHO "*** shared version of the library, which you do not appear to have"
+ $ECHO "*** because a test_compile did reveal that the linker did not use this one"
+ $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
+ fi
+ fi
+ else
+ droppeddeps=yes
+ $ECHO
+ $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
+ $ECHO "*** make it link in! You will probably need to install it or some"
+ $ECHO "*** library that it depends on before this library will be fully"
+ $ECHO "*** functional. Installing it before continuing would be even better."
+ fi
+ ;;
+ *)
+ newdeplibs="$newdeplibs $i"
+ ;;
+ esac
+ done
+ fi
+ ;;
+ file_magic*)
+ set dummy $deplibs_check_method; shift
+ file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
+ for a_deplib in $deplibs; do
+ case $a_deplib in
+ -l*)
+ func_stripname -l '' "$a_deplib"
+ name=$func_stripname_result
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ case " $predeps $postdeps " in
+ *" $a_deplib "*)
+ newdeplibs="$newdeplibs $a_deplib"
+ a_deplib=""
+ ;;
+ esac
+ fi
+ if test -n "$a_deplib" ; then
+ libname=`eval "\\$ECHO \"$libname_spec\""`
+ for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
+ potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
+ for potent_lib in $potential_libs; do
+ # Follow soft links.
+ if ls -lLd "$potent_lib" 2>/dev/null |
+ $GREP " -> " >/dev/null; then
+ continue
+ fi
+ # The statement above tries to avoid entering an
+ # endless loop below, in case of cyclic links.
+ # We might still enter an endless loop, since a link
+ # loop can be closed while we follow links,
+ # but so what?
+ potlib="$potent_lib"
+ while test -h "$potlib" 2>/dev/null; do
+ potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
+ case $potliblink in
+ [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
+ *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
+ esac
+ done
+ if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
+ $SED -e 10q |
+ $EGREP "$file_magic_regex" > /dev/null; then
+ newdeplibs="$newdeplibs $a_deplib"
+ a_deplib=""
+ break 2
+ fi
+ done
+ done
+ fi
+ if test -n "$a_deplib" ; then
+ droppeddeps=yes
+ $ECHO
+ $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
+ $ECHO "*** I have the capability to make that library automatically link in when"
+ $ECHO "*** you link to this library. But I can only do this if you have a"
+ $ECHO "*** shared version of the library, which you do not appear to have"
+ $ECHO "*** because I did check the linker path looking for a file starting"
+ if test -z "$potlib" ; then
+ $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
+ else
+ $ECHO "*** with $libname and none of the candidates passed a file format test"
+ $ECHO "*** using a file magic. Last file checked: $potlib"
+ fi
+ fi
+ ;;
+ *)
+ # Add a -L argument.
+ newdeplibs="$newdeplibs $a_deplib"
+ ;;
+ esac
+ done # Gone through all deplibs.
+ ;;
+ match_pattern*)
+ set dummy $deplibs_check_method; shift
+ match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
+ for a_deplib in $deplibs; do
+ case $a_deplib in
+ -l*)
+ func_stripname -l '' "$a_deplib"
+ name=$func_stripname_result
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ case " $predeps $postdeps " in
+ *" $a_deplib "*)
+ newdeplibs="$newdeplibs $a_deplib"
+ a_deplib=""
+ ;;
+ esac
+ fi
+ if test -n "$a_deplib" ; then
+ libname=`eval "\\$ECHO \"$libname_spec\""`
+ for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
+ potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
+ for potent_lib in $potential_libs; do
+ potlib="$potent_lib" # see symlink-check above in file_magic test
+ if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
+ $EGREP "$match_pattern_regex" > /dev/null; then
+ newdeplibs="$newdeplibs $a_deplib"
+ a_deplib=""
+ break 2
+ fi
+ done
+ done
+ fi
+ if test -n "$a_deplib" ; then
+ droppeddeps=yes
+ $ECHO
+ $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
+ $ECHO "*** I have the capability to make that library automatically link in when"
+ $ECHO "*** you link to this library. But I can only do this if you have a"
+ $ECHO "*** shared version of the library, which you do not appear to have"
+ $ECHO "*** because I did check the linker path looking for a file starting"
+ if test -z "$potlib" ; then
+ $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
+ else
+ $ECHO "*** with $libname and none of the candidates passed a file format test"
+ $ECHO "*** using a regex pattern. Last file checked: $potlib"
+ fi
+ fi
+ ;;
+ *)
+ # Add a -L argument.
+ newdeplibs="$newdeplibs $a_deplib"
+ ;;
+ esac
+ done # Gone through all deplibs.
+ ;;
+ none | unknown | *)
+ newdeplibs=""
+ tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
+ -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ for i in $predeps $postdeps ; do
+ # can't use Xsed below, because $i might contain '/'
+ tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
+ done
+ fi
+ if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
+ $GREP . >/dev/null; then
+ $ECHO
+ if test "X$deplibs_check_method" = "Xnone"; then
+ $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
+ else
+ $ECHO "*** Warning: inter-library dependencies are not known to be supported."
+ fi
+ $ECHO "*** All declared inter-library dependencies are being dropped."
+ droppeddeps=yes
+ fi
+ ;;
+ esac
+ versuffix=$versuffix_save
+ major=$major_save
+ release=$release_save
+ libname=$libname_save
+ name=$name_save
+
+ case $host in
+ *-*-rhapsody* | *-*-darwin1.[012])
+ # On Rhapsody replace the C library with the System framework
+ newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
+ ;;
+ esac
+
+ if test "$droppeddeps" = yes; then
+ if test "$module" = yes; then
+ $ECHO
+ $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
+ $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
+ $ECHO "*** a static module, that should work as long as the dlopening"
+ $ECHO "*** application is linked with the -dlopen flag."
+ if test -z "$global_symbol_pipe"; then
+ $ECHO
+ $ECHO "*** However, this would only work if libtool was able to extract symbol"
+ $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
+ $ECHO "*** not find such a program. So, this module is probably useless."
+ $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
+ fi
+ if test "$build_old_libs" = no; then
+ oldlibs="$output_objdir/$libname.$libext"
+ build_libtool_libs=module
+ build_old_libs=yes
+ else
+ build_libtool_libs=no
+ fi
+ else
+ $ECHO "*** The inter-library dependencies that have been dropped here will be"
+ $ECHO "*** automatically added whenever a program is linked with this library"
+ $ECHO "*** or is declared to -dlopen it."
+
+ if test "$allow_undefined" = no; then
+ $ECHO
+ $ECHO "*** Since this library must not contain undefined symbols,"
+ $ECHO "*** because either the platform does not support them or"
+ $ECHO "*** it was explicitly requested with -no-undefined,"
+ $ECHO "*** libtool will only create a static version of it."
+ if test "$build_old_libs" = no; then
+ oldlibs="$output_objdir/$libname.$libext"
+ build_libtool_libs=module
+ build_old_libs=yes
+ else
+ build_libtool_libs=no
+ fi
+ fi
+ fi
+ fi
+ # Done checking deplibs!
+ deplibs=$newdeplibs
+ fi
+ # Time to change all our "foo.ltframework" stuff back to "-framework foo"
+ case $host in
+ *-*-darwin*)
+ newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
+ new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
+ deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
+ ;;
+ esac
+
+ # move library search paths that coincide with paths to not yet
+ # installed libraries to the beginning of the library search list
+ new_libs=
+ for path in $notinst_path; do
+ case " $new_libs " in
+ *" -L$path/$objdir "*) ;;
+ *)
+ case " $deplibs " in
+ *" -L$path/$objdir "*)
+ new_libs="$new_libs -L$path/$objdir" ;;
+ esac
+ ;;
+ esac
+ done
+ for deplib in $deplibs; do
+ case $deplib in
+ -L*)
+ case " $new_libs " in
+ *" $deplib "*) ;;
+ *) new_libs="$new_libs $deplib" ;;
+ esac
+ ;;
+ *) new_libs="$new_libs $deplib" ;;
+ esac
+ done
+ deplibs="$new_libs"
+
+ # All the library-specific variables (install_libdir is set above).
+ library_names=
+ old_library=
+ dlname=
+
+ # Test again, we may have decided not to build it any more
+ if test "$build_libtool_libs" = yes; then
+ if test "$hardcode_into_libs" = yes; then
+ # Hardcode the library paths
+ hardcode_libdirs=
+ dep_rpath=
+ rpath="$finalize_rpath"
+ test "$mode" != relink && rpath="$compile_rpath$rpath"
+ for libdir in $rpath; do
+ if test -n "$hardcode_libdir_flag_spec"; then
+ if test -n "$hardcode_libdir_separator"; then
+ if test -z "$hardcode_libdirs"; then
+ hardcode_libdirs="$libdir"
+ else
+ # Just accumulate the unique libdirs.
+ case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
+ *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
+ ;;
+ *)
+ hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
+ ;;
+ esac
+ fi
+ else
+ eval flag=\"$hardcode_libdir_flag_spec\"
+ dep_rpath="$dep_rpath $flag"
+ fi
+ elif test -n "$runpath_var"; then
+ case "$perm_rpath " in
+ *" $libdir "*) ;;
+ *) perm_rpath="$perm_rpath $libdir" ;;
+ esac
+ fi
+ done
+ # Substitute the hardcoded libdirs into the rpath.
+ if test -n "$hardcode_libdir_separator" &&
+ test -n "$hardcode_libdirs"; then
+ libdir="$hardcode_libdirs"
+ if test -n "$hardcode_libdir_flag_spec_ld"; then
+ eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
+ else
+ eval dep_rpath=\"$hardcode_libdir_flag_spec\"
+ fi
+ fi
+ if test -n "$runpath_var" && test -n "$perm_rpath"; then
+ # We should set the runpath_var.
+ rpath=
+ for dir in $perm_rpath; do
+ rpath="$rpath$dir:"
+ done
+ eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
+ fi
+ test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
+ fi
+
+ shlibpath="$finalize_shlibpath"
+ test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
+ if test -n "$shlibpath"; then
+ eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
+ fi
+
+ # Get the real and link names of the library.
+ eval shared_ext=\"$shrext_cmds\"
+ eval library_names=\"$library_names_spec\"
+ set dummy $library_names
+ shift
+ realname="$1"
+ shift
+
+ if test -n "$soname_spec"; then
+ eval soname=\"$soname_spec\"
+ else
+ soname="$realname"
+ fi
+ if test -z "$dlname"; then
+ dlname=$soname
+ fi
+
+ lib="$output_objdir/$realname"
+ linknames=
+ for link
+ do
+ linknames="$linknames $link"
+ done
+
+ # Use standard objects if they are pic
+ test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
+ test "X$libobjs" = "X " && libobjs=
+
+ delfiles=
+ if test -n "$export_symbols" && test -n "$include_expsyms"; then
+ $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
+ export_symbols="$output_objdir/$libname.uexp"
+ delfiles="$delfiles $export_symbols"
+ fi
+
+ orig_export_symbols=
+ case $host_os in
+ cygwin* | mingw* | cegcc*)
+ if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
+ # exporting using user supplied symfile
+ if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
+ # and it's NOT already a .def file. Must figure out
+ # which of the given symbols are data symbols and tag
+ # them as such. So, trigger use of export_symbols_cmds.
+ # export_symbols gets reassigned inside the "prepare
+ # the list of exported symbols" if statement, so the
+ # include_expsyms logic still works.
+ orig_export_symbols="$export_symbols"
+ export_symbols=
+ always_export_symbols=yes
+ fi
+ fi
+ ;;
+ esac
+
+ # Prepare the list of exported symbols
+ if test -z "$export_symbols"; then
+ if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
+ func_verbose "generating symbol list for \`$libname.la'"
+ export_symbols="$output_objdir/$libname.exp"
+ $opt_dry_run || $RM $export_symbols
+ cmds=$export_symbols_cmds
+ save_ifs="$IFS"; IFS='~'
+ for cmd in $cmds; do
+ IFS="$save_ifs"
+ eval cmd=\"$cmd\"
+ func_len " $cmd"
+ len=$func_len_result
+ if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
+ func_show_eval "$cmd" 'exit $?'
+ skipped_export=false
+ else
+ # The command line is too long to execute in one step.
+ func_verbose "using reloadable object file for export list..."
+ skipped_export=:
+ # Break out early, otherwise skipped_export may be
+ # set to false by a later but shorter cmd.
+ break
+ fi
+ done
+ IFS="$save_ifs"
+ if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
+ func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
+ func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
+ fi
+ fi
+ fi
+
+ if test -n "$export_symbols" && test -n "$include_expsyms"; then
+ tmp_export_symbols="$export_symbols"
+ test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
+ $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
+ fi
+
+ if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
+ # The given exports_symbols file has to be filtered, so filter it.
+ func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
+ # FIXME: $output_objdir/$libname.filter potentially contains lots of
+ # 's' commands which not all seds can handle. GNU sed should be fine
+ # though. Also, the filter scales superlinearly with the number of
+ # global variables. join(1) would be nice here, but unfortunately
+ # isn't a blessed tool.
+ $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
+ delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
+ export_symbols=$output_objdir/$libname.def
+ $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
+ fi
+
+ tmp_deplibs=
+ for test_deplib in $deplibs; do
+ case " $convenience " in
+ *" $test_deplib "*) ;;
+ *)
+ tmp_deplibs="$tmp_deplibs $test_deplib"
+ ;;
+ esac
+ done
+ deplibs="$tmp_deplibs"
+
+ if test -n "$convenience"; then
+ if test -n "$whole_archive_flag_spec" &&
+ test "$compiler_needs_object" = yes &&
+ test -z "$libobjs"; then
+ # extract the archives, so we have objects to list.
+ # TODO: could optimize this to just extract one archive.
+ whole_archive_flag_spec=
+ fi
+ if test -n "$whole_archive_flag_spec"; then
+ save_libobjs=$libobjs
+ eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
+ test "X$libobjs" = "X " && libobjs=
+ else
+ gentop="$output_objdir/${outputname}x"
+ generated="$generated $gentop"
+
+ func_extract_archives $gentop $convenience
+ libobjs="$libobjs $func_extract_archives_result"
+ test "X$libobjs" = "X " && libobjs=
+ fi
+ fi
+
+ if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
+ eval flag=\"$thread_safe_flag_spec\"
+ linker_flags="$linker_flags $flag"
+ fi
+
+ # Make a backup of the uninstalled library when relinking
+ if test "$mode" = relink; then
+ $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
+ fi
+
+ # Do each of the archive commands.
+ if test "$module" = yes && test -n "$module_cmds" ; then
+ if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
+ eval test_cmds=\"$module_expsym_cmds\"
+ cmds=$module_expsym_cmds
+ else
+ eval test_cmds=\"$module_cmds\"
+ cmds=$module_cmds
+ fi
+ else
+ if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
+ eval test_cmds=\"$archive_expsym_cmds\"
+ cmds=$archive_expsym_cmds
+ else
+ eval test_cmds=\"$archive_cmds\"
+ cmds=$archive_cmds
+ fi
+ fi
+
+ if test "X$skipped_export" != "X:" &&
+ func_len " $test_cmds" &&
+ len=$func_len_result &&
+ test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
+ :
+ else
+ # The command line is too long to link in one step, link piecewise
+ # or, if using GNU ld and skipped_export is not :, use a linker
+ # script.
+
+ # Save the value of $output and $libobjs because we want to
+ # use them later. If we have whole_archive_flag_spec, we
+ # want to use save_libobjs as it was before
+ # whole_archive_flag_spec was expanded, because we can't
+ # assume the linker understands whole_archive_flag_spec.
+ # This may have to be revisited, in case too many
+ # convenience libraries get linked in and end up exceeding
+ # the spec.
+ if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
+ save_libobjs=$libobjs
+ fi
+ save_output=$output
+ output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
+
+ # Clear the reloadable object creation command queue and
+ # initialize k to one.
+ test_cmds=
+ concat_cmds=
+ objlist=
+ last_robj=
+ k=1
+
+ if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
+ output=${output_objdir}/${output_la}.lnkscript
+ func_verbose "creating GNU ld script: $output"
+ $ECHO 'INPUT (' > $output
+ for obj in $save_libobjs
+ do
+ $ECHO "$obj" >> $output
+ done
+ $ECHO ')' >> $output
+ delfiles="$delfiles $output"
+ elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
+ output=${output_objdir}/${output_la}.lnk
+ func_verbose "creating linker input file list: $output"
+ : > $output
+ set x $save_libobjs
+ shift
+ firstobj=
+ if test "$compiler_needs_object" = yes; then
+ firstobj="$1 "
+ shift
+ fi
+ for obj
+ do
+ $ECHO "$obj" >> $output
+ done
+ delfiles="$delfiles $output"
+ output=$firstobj\"$file_list_spec$output\"
+ else
+ if test -n "$save_libobjs"; then
+ func_verbose "creating reloadable object files..."
+ output=$output_objdir/$output_la-${k}.$objext
+ eval test_cmds=\"$reload_cmds\"
+ func_len " $test_cmds"
+ len0=$func_len_result
+ len=$len0
+
+ # Loop over the list of objects to be linked.
+ for obj in $save_libobjs
+ do
+ func_len " $obj"
+ func_arith $len + $func_len_result
+ len=$func_arith_result
+ if test "X$objlist" = X ||
+ test "$len" -lt "$max_cmd_len"; then
+ func_append objlist " $obj"
+ else
+ # The command $test_cmds is almost too long, add a
+ # command to the queue.
+ if test "$k" -eq 1 ; then
+ # The first file doesn't have a previous command to add.
+ eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
+ else
+ # All subsequent reloadable object files will link in
+ # the last one created.
+ eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
+ fi
+ last_robj=$output_objdir/$output_la-${k}.$objext
+ func_arith $k + 1
+ k=$func_arith_result
+ output=$output_objdir/$output_la-${k}.$objext
+ objlist=$obj
+ func_len " $last_robj"
+ func_arith $len0 + $func_len_result
+ len=$func_arith_result
+ fi
+ done
+ # Handle the remaining objects by creating one last
+ # reloadable object file. All subsequent reloadable object
+ # files will link in the last one created.
+ test -z "$concat_cmds" || concat_cmds=$concat_cmds~
+ eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
+ if test -n "$last_robj"; then
+ eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
+ fi
+ delfiles="$delfiles $output"
+
+ else
+ output=
+ fi
+
+ if ${skipped_export-false}; then
+ func_verbose "generating symbol list for \`$libname.la'"
+ export_symbols="$output_objdir/$libname.exp"
+ $opt_dry_run || $RM $export_symbols
+ libobjs=$output
+ # Append the command to create the export file.
+ test -z "$concat_cmds" || concat_cmds=$concat_cmds~
+ eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
+ if test -n "$last_robj"; then
+ eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
+ fi
+ fi
+
+ test -n "$save_libobjs" &&
+ func_verbose "creating a temporary reloadable object file: $output"
+
+ # Loop through the commands generated above and execute them.
+ save_ifs="$IFS"; IFS='~'
+ for cmd in $concat_cmds; do
+ IFS="$save_ifs"
+ $opt_silent || {
+ func_quote_for_expand "$cmd"
+ eval "func_echo $func_quote_for_expand_result"
+ }
+ $opt_dry_run || eval "$cmd" || {
+ lt_exit=$?
+
+ # Restore the uninstalled library and exit
+ if test "$mode" = relink; then
+ ( cd "$output_objdir" && \
+ $RM "${realname}T" && \
+ $MV "${realname}U" "$realname" )
+ fi
+
+ exit $lt_exit
+ }
+ done
+ IFS="$save_ifs"
+
+ if test -n "$export_symbols_regex" && ${skipped_export-false}; then
+ func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
+ func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
+ fi
+ fi
+
+ if ${skipped_export-false}; then
+ if test -n "$export_symbols" && test -n "$include_expsyms"; then
+ tmp_export_symbols="$export_symbols"
+ test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
+ $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
+ fi
+
+ if test -n "$orig_export_symbols"; then
+ # The given exports_symbols file has to be filtered, so filter it.
+ func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
+ # FIXME: $output_objdir/$libname.filter potentially contains lots of
+ # 's' commands which not all seds can handle. GNU sed should be fine
+ # though. Also, the filter scales superlinearly with the number of
+ # global variables. join(1) would be nice here, but unfortunately
+ # isn't a blessed tool.
+ $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
+ delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
+ export_symbols=$output_objdir/$libname.def
+ $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
+ fi
+ fi
+
+ libobjs=$output
+ # Restore the value of output.
+ output=$save_output
+
+ if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
+ eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
+ test "X$libobjs" = "X " && libobjs=
+ fi
+ # Expand the library linking commands again to reset the
+ # value of $libobjs for piecewise linking.
+
+ # Do each of the archive commands.
+ if test "$module" = yes && test -n "$module_cmds" ; then
+ if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
+ cmds=$module_expsym_cmds
+ else
+ cmds=$module_cmds
+ fi
+ else
+ if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
+ cmds=$archive_expsym_cmds
+ else
+ cmds=$archive_cmds
+ fi
+ fi
+ fi
+
+ if test -n "$delfiles"; then
+ # Append the command to remove temporary files to $cmds.
+ eval cmds=\"\$cmds~\$RM $delfiles\"
+ fi
+
+ # Add any objects from preloaded convenience libraries
+ if test -n "$dlprefiles"; then
+ gentop="$output_objdir/${outputname}x"
+ generated="$generated $gentop"
+
+ func_extract_archives $gentop $dlprefiles
+ libobjs="$libobjs $func_extract_archives_result"
+ test "X$libobjs" = "X " && libobjs=
+ fi
+
+ save_ifs="$IFS"; IFS='~'
+ for cmd in $cmds; do
+ IFS="$save_ifs"
+ eval cmd=\"$cmd\"
+ $opt_silent || {
+ func_quote_for_expand "$cmd"
+ eval "func_echo $func_quote_for_expand_result"
+ }
+ $opt_dry_run || eval "$cmd" || {
+ lt_exit=$?
+
+ # Restore the uninstalled library and exit
+ if test "$mode" = relink; then
+ ( cd "$output_objdir" && \
+ $RM "${realname}T" && \
+ $MV "${realname}U" "$realname" )
+ fi
+
+ exit $lt_exit
+ }
+ done
+ IFS="$save_ifs"
+
+ # Restore the uninstalled library and exit
+ if test "$mode" = relink; then
+ $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
+
+ if test -n "$convenience"; then
+ if test -z "$whole_archive_flag_spec"; then
+ func_show_eval '${RM}r "$gentop"'
+ fi
+ fi
+
+ exit $EXIT_SUCCESS
+ fi
+
+ # Create links to the real library.
+ for linkname in $linknames; do
+ if test "$realname" != "$linkname"; then
+ func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
+ fi
+ done
+
+ # If -module or -export-dynamic was specified, set the dlname.
+ if test "$module" = yes || test "$export_dynamic" = yes; then
+ # On all known operating systems, these are identical.
+ dlname="$soname"
+ fi
+ fi
+ ;;
+
+ obj)
+ if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
+ func_warning "\`-dlopen' is ignored for objects"
+ fi
+
+ case " $deplibs" in
+ *\ -l* | *\ -L*)
+ func_warning "\`-l' and \`-L' are ignored for objects" ;;
+ esac
+
+ test -n "$rpath" && \
+ func_warning "\`-rpath' is ignored for objects"
+
+ test -n "$xrpath" && \
+ func_warning "\`-R' is ignored for objects"
+
+ test -n "$vinfo" && \
+ func_warning "\`-version-info' is ignored for objects"
+
+ test -n "$release" && \
+ func_warning "\`-release' is ignored for objects"
+
+ case $output in
+ *.lo)
+ test -n "$objs$old_deplibs" && \
+ func_fatal_error "cannot build library object \`$output' from non-libtool objects"
+
+ libobj=$output
+ func_lo2o "$libobj"
+ obj=$func_lo2o_result
+ ;;
+ *)
+ libobj=
+ obj="$output"
+ ;;
+ esac
+
+ # Delete the old objects.
+ $opt_dry_run || $RM $obj $libobj
+
+ # Objects from convenience libraries. This assumes
+ # single-version convenience libraries. Whenever we create
+ # different ones for PIC/non-PIC, this we'll have to duplicate
+ # the extraction.
+ reload_conv_objs=
+ gentop=
+ # reload_cmds runs $LD directly, so let us get rid of
+ # -Wl from whole_archive_flag_spec and hope we can get by with
+ # turning comma into space..
+ wl=
+
+ if test -n "$convenience"; then
+ if test -n "$whole_archive_flag_spec"; then
+ eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
+ reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
+ else
+ gentop="$output_objdir/${obj}x"
+ generated="$generated $gentop"
+
+ func_extract_archives $gentop $convenience
+ reload_conv_objs="$reload_objs $func_extract_archives_result"
+ fi
+ fi
+
+ # Create the old-style object.
+ reload_objs="$objs$old_deplibs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
+
+ output="$obj"
+ func_execute_cmds "$reload_cmds" 'exit $?'
+
+ # Exit if we aren't doing a library object file.
+ if test -z "$libobj"; then
+ if test -n "$gentop"; then
+ func_show_eval '${RM}r "$gentop"'
+ fi
+
+ exit $EXIT_SUCCESS
+ fi
+
+ if test "$build_libtool_libs" != yes; then
+ if test -n "$gentop"; then
+ func_show_eval '${RM}r "$gentop"'
+ fi
+
+ # Create an invalid libtool object if no PIC, so that we don't
+ # accidentally link it into a program.
+ # $show "echo timestamp > $libobj"
+ # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
+ exit $EXIT_SUCCESS
+ fi
+
+ if test -n "$pic_flag" || test "$pic_mode" != default; then
+ # Only do commands if we really have different PIC objects.
+ reload_objs="$libobjs $reload_conv_objs"
+ output="$libobj"
+ func_execute_cmds "$reload_cmds" 'exit $?'
+ fi
+
+ if test -n "$gentop"; then
+ func_show_eval '${RM}r "$gentop"'
+ fi
+
+ exit $EXIT_SUCCESS
+ ;;
+
+ prog)
+ case $host in
+ *cygwin*) func_stripname '' '.exe' "$output"
+ output=$func_stripname_result.exe;;
+ esac
+ test -n "$vinfo" && \
+ func_warning "\`-version-info' is ignored for programs"
+
+ test -n "$release" && \
+ func_warning "\`-release' is ignored for programs"
+
+ test "$preload" = yes \
+ && test "$dlopen_support" = unknown \
+ && test "$dlopen_self" = unknown \
+ && test "$dlopen_self_static" = unknown && \
+ func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
+
+ case $host in
+ *-*-rhapsody* | *-*-darwin1.[012])
+ # On Rhapsody replace the C library is the System framework
+ compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
+ finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
+ ;;
+ esac
+
+ case $host in
+ *-*-darwin*)
+ # Don't allow lazy linking, it breaks C++ global constructors
+ # But is supposedly fixed on 10.4 or later (yay!).
+ if test "$tagname" = CXX ; then
+ case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
+ 10.[0123])
+ compile_command="$compile_command ${wl}-bind_at_load"
+ finalize_command="$finalize_command ${wl}-bind_at_load"
+ ;;
+ esac
+ fi
+ # Time to change all our "foo.ltframework" stuff back to "-framework foo"
+ compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
+ finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
+ ;;
+ esac
+
+
+ # move library search paths that coincide with paths to not yet
+ # installed libraries to the beginning of the library search list
+ new_libs=
+ for path in $notinst_path; do
+ case " $new_libs " in
+ *" -L$path/$objdir "*) ;;
+ *)
+ case " $compile_deplibs " in
+ *" -L$path/$objdir "*)
+ new_libs="$new_libs -L$path/$objdir" ;;
+ esac
+ ;;
+ esac
+ done
+ for deplib in $compile_deplibs; do
+ case $deplib in
+ -L*)
+ case " $new_libs " in
+ *" $deplib "*) ;;
+ *) new_libs="$new_libs $deplib" ;;
+ esac
+ ;;
+ *) new_libs="$new_libs $deplib" ;;
+ esac
+ done
+ compile_deplibs="$new_libs"
+
+
+ compile_command="$compile_command $compile_deplibs"
+ finalize_command="$finalize_command $finalize_deplibs"
+
+ if test -n "$rpath$xrpath"; then
+ # If the user specified any rpath flags, then add them.
+ for libdir in $rpath $xrpath; do
+ # This is the magic to use -rpath.
+ case "$finalize_rpath " in
+ *" $libdir "*) ;;
+ *) finalize_rpath="$finalize_rpath $libdir" ;;
+ esac
+ done
+ fi
+
+ # Now hardcode the library paths
+ rpath=
+ hardcode_libdirs=
+ for libdir in $compile_rpath $finalize_rpath; do
+ if test -n "$hardcode_libdir_flag_spec"; then
+ if test -n "$hardcode_libdir_separator"; then
+ if test -z "$hardcode_libdirs"; then
+ hardcode_libdirs="$libdir"
+ else
+ # Just accumulate the unique libdirs.
+ case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
+ *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
+ ;;
+ *)
+ hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
+ ;;
+ esac
+ fi
+ else
+ eval flag=\"$hardcode_libdir_flag_spec\"
+ rpath="$rpath $flag"
+ fi
+ elif test -n "$runpath_var"; then
+ case "$perm_rpath " in
+ *" $libdir "*) ;;
+ *) perm_rpath="$perm_rpath $libdir" ;;
+ esac
+ fi
+ case $host in
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
+ testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
+ case :$dllsearchpath: in
+ *":$libdir:"*) ;;
+ ::) dllsearchpath=$libdir;;
+ *) dllsearchpath="$dllsearchpath:$libdir";;
+ esac
+ case :$dllsearchpath: in
+ *":$testbindir:"*) ;;
+ ::) dllsearchpath=$testbindir;;
+ *) dllsearchpath="$dllsearchpath:$testbindir";;
+ esac
+ ;;
+ esac
+ done
+ # Substitute the hardcoded libdirs into the rpath.
+ if test -n "$hardcode_libdir_separator" &&
+ test -n "$hardcode_libdirs"; then
+ libdir="$hardcode_libdirs"
+ eval rpath=\" $hardcode_libdir_flag_spec\"
+ fi
+ compile_rpath="$rpath"
+
+ rpath=
+ hardcode_libdirs=
+ for libdir in $finalize_rpath; do
+ if test -n "$hardcode_libdir_flag_spec"; then
+ if test -n "$hardcode_libdir_separator"; then
+ if test -z "$hardcode_libdirs"; then
+ hardcode_libdirs="$libdir"
+ else
+ # Just accumulate the unique libdirs.
+ case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
+ *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
+ ;;
+ *)
+ hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
+ ;;
+ esac
+ fi
+ else
+ eval flag=\"$hardcode_libdir_flag_spec\"
+ rpath="$rpath $flag"
+ fi
+ elif test -n "$runpath_var"; then
+ case "$finalize_perm_rpath " in
+ *" $libdir "*) ;;
+ *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
+ esac
+ fi
+ done
+ # Substitute the hardcoded libdirs into the rpath.
+ if test -n "$hardcode_libdir_separator" &&
+ test -n "$hardcode_libdirs"; then
+ libdir="$hardcode_libdirs"
+ eval rpath=\" $hardcode_libdir_flag_spec\"
+ fi
+ finalize_rpath="$rpath"
+
+ if test -n "$libobjs" && test "$build_old_libs" = yes; then
+ # Transform all the library objects into standard objects.
+ compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
+ finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
+ fi
+
+ func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
+
+ # template prelinking step
+ if test -n "$prelink_cmds"; then
+ func_execute_cmds "$prelink_cmds" 'exit $?'
+ fi
+
+ wrappers_required=yes
+ case $host in
+ *cygwin* | *mingw* )
+ if test "$build_libtool_libs" != yes; then
+ wrappers_required=no
+ fi
+ ;;
+ *cegcc)
+ # Disable wrappers for cegcc, we are cross compiling anyway.
+ wrappers_required=no
+ ;;
+ *)
+ if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
+ wrappers_required=no
+ fi
+ ;;
+ esac
+ if test "$wrappers_required" = no; then
+ # Replace the output file specification.
+ compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
+ link_command="$compile_command$compile_rpath"
+
+ # We have no uninstalled library dependencies, so finalize right now.
+ exit_status=0
+ func_show_eval "$link_command" 'exit_status=$?'
+
+ # Delete the generated files.
+ if test -f "$output_objdir/${outputname}S.${objext}"; then
+ func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
+ fi
+
+ exit $exit_status
+ fi
+
+ if test -n "$compile_shlibpath$finalize_shlibpath"; then
+ compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
+ fi
+ if test -n "$finalize_shlibpath"; then
+ finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
+ fi
+
+ compile_var=
+ finalize_var=
+ if test -n "$runpath_var"; then
+ if test -n "$perm_rpath"; then
+ # We should set the runpath_var.
+ rpath=
+ for dir in $perm_rpath; do
+ rpath="$rpath$dir:"
+ done
+ compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
+ fi
+ if test -n "$finalize_perm_rpath"; then
+ # We should set the runpath_var.
+ rpath=
+ for dir in $finalize_perm_rpath; do
+ rpath="$rpath$dir:"
+ done
+ finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
+ fi
+ fi
+
+ if test "$no_install" = yes; then
+ # We don't need to create a wrapper script.
+ link_command="$compile_var$compile_command$compile_rpath"
+ # Replace the output file specification.
+ link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
+ # Delete the old output file.
+ $opt_dry_run || $RM $output
+ # Link the executable and exit
+ func_show_eval "$link_command" 'exit $?'
+ exit $EXIT_SUCCESS
+ fi
+
+ if test "$hardcode_action" = relink; then
+ # Fast installation is not supported
+ link_command="$compile_var$compile_command$compile_rpath"
+ relink_command="$finalize_var$finalize_command$finalize_rpath"
+
+ func_warning "this platform does not like uninstalled shared libraries"
+ func_warning "\`$output' will be relinked during installation"
+ else
+ if test "$fast_install" != no; then
+ link_command="$finalize_var$compile_command$finalize_rpath"
+ if test "$fast_install" = yes; then
+ relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
+ else
+ # fast_install is set to needless
+ relink_command=
+ fi
+ else
+ link_command="$compile_var$compile_command$compile_rpath"
+ relink_command="$finalize_var$finalize_command$finalize_rpath"
+ fi
+ fi
+
+ # Replace the output file specification.
+ link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
+
+ # Delete the old output files.
+ $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
+
+ func_show_eval "$link_command" 'exit $?'
+
+ # Now create the wrapper script.
+ func_verbose "creating $output"
+
+ # Quote the relink command for shipping.
+ if test -n "$relink_command"; then
+ # Preserve any variables that may affect compiler behavior
+ for var in $variables_saved_for_relink; do
+ if eval test -z \"\${$var+set}\"; then
+ relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
+ elif eval var_value=\$$var; test -z "$var_value"; then
+ relink_command="$var=; export $var; $relink_command"
+ else
+ func_quote_for_eval "$var_value"
+ relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
+ fi
+ done
+ relink_command="(cd `pwd`; $relink_command)"
+ relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
+ fi
+
+ # Quote $ECHO for shipping.
+ if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
+ case $progpath in
+ [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
+ *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
+ esac
+ qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
+ else
+ qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
+ fi
+
+ # Only actually do things if not in dry run mode.
+ $opt_dry_run || {
+ # win32 will think the script is a binary if it has
+ # a .exe suffix, so we strip it off here.
+ case $output in
+ *.exe) func_stripname '' '.exe' "$output"
+ output=$func_stripname_result ;;
+ esac
+ # test for cygwin because mv fails w/o .exe extensions
+ case $host in
+ *cygwin*)
+ exeext=.exe
+ func_stripname '' '.exe' "$outputname"
+ outputname=$func_stripname_result ;;
+ *) exeext= ;;
+ esac
+ case $host in
+ *cygwin* | *mingw* )
+ func_dirname_and_basename "$output" "" "."
+ output_name=$func_basename_result
+ output_path=$func_dirname_result
+ cwrappersource="$output_path/$objdir/lt-$output_name.c"
+ cwrapper="$output_path/$output_name.exe"
+ $RM $cwrappersource $cwrapper
+ trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
+
+ func_emit_cwrapperexe_src > $cwrappersource
+
+ # The wrapper executable is built using the $host compiler,
+ # because it contains $host paths and files. If cross-
+ # compiling, it, like the target executable, must be
+ # executed on the $host or under an emulation environment.
+ $opt_dry_run || {
+ $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
+ $STRIP $cwrapper
+ }
+
+ # Now, create the wrapper script for func_source use:
+ func_ltwrapper_scriptname $cwrapper
+ $RM $func_ltwrapper_scriptname_result
+ trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
+ $opt_dry_run || {
+ # note: this script will not be executed, so do not chmod.
+ if test "x$build" = "x$host" ; then
+ $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
+ else
+ func_emit_wrapper no > $func_ltwrapper_scriptname_result
+ fi
+ }
+ ;;
+ * )
+ $RM $output
+ trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
+
+ func_emit_wrapper no > $output
+ chmod +x $output
+ ;;
+ esac
+ }
+ exit $EXIT_SUCCESS
+ ;;
+ esac
+
+ # See if we need to build an old-fashioned archive.
+ for oldlib in $oldlibs; do
+
+ if test "$build_libtool_libs" = convenience; then
+ oldobjs="$libobjs_save $symfileobj"
+ addlibs="$convenience"
+ build_libtool_libs=no
+ else
+ if test "$build_libtool_libs" = module; then
+ oldobjs="$libobjs_save"
+ build_libtool_libs=no
+ else
+ oldobjs="$old_deplibs $non_pic_objects"
+ if test "$preload" = yes && test -f "$symfileobj"; then
+ oldobjs="$oldobjs $symfileobj"
+ fi
+ fi
+ addlibs="$old_convenience"
+ fi
+
+ if test -n "$addlibs"; then
+ gentop="$output_objdir/${outputname}x"
+ generated="$generated $gentop"
+
+ func_extract_archives $gentop $addlibs
+ oldobjs="$oldobjs $func_extract_archives_result"
+ fi
+
+ # Do each command in the archive commands.
+ if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
+ cmds=$old_archive_from_new_cmds
+ else
+
+ # Add any objects from preloaded convenience libraries
+ if test -n "$dlprefiles"; then
+ gentop="$output_objdir/${outputname}x"
+ generated="$generated $gentop"
+
+ func_extract_archives $gentop $dlprefiles
+ oldobjs="$oldobjs $func_extract_archives_result"
+ fi
+
+ # POSIX demands no paths to be encoded in archives. We have
+ # to avoid creating archives with duplicate basenames if we
+ # might have to extract them afterwards, e.g., when creating a
+ # static archive out of a convenience library, or when linking
+ # the entirety of a libtool archive into another (currently
+ # not supported by libtool).
+ if (for obj in $oldobjs
+ do
+ func_basename "$obj"
+ $ECHO "$func_basename_result"
+ done | sort | sort -uc >/dev/null 2>&1); then
+ :
+ else
+ $ECHO "copying selected object files to avoid basename conflicts..."
+ gentop="$output_objdir/${outputname}x"
+ generated="$generated $gentop"
+ func_mkdir_p "$gentop"
+ save_oldobjs=$oldobjs
+ oldobjs=
+ counter=1
+ for obj in $save_oldobjs
+ do
+ func_basename "$obj"
+ objbase="$func_basename_result"
+ case " $oldobjs " in
+ " ") oldobjs=$obj ;;
+ *[\ /]"$objbase "*)
+ while :; do
+ # Make sure we don't pick an alternate name that also
+ # overlaps.
+ newobj=lt$counter-$objbase
+ func_arith $counter + 1
+ counter=$func_arith_result
+ case " $oldobjs " in
+ *[\ /]"$newobj "*) ;;
+ *) if test ! -f "$gentop/$newobj"; then break; fi ;;
+ esac
+ done
+ func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
+ oldobjs="$oldobjs $gentop/$newobj"
+ ;;
+ *) oldobjs="$oldobjs $obj" ;;
+ esac
+ done
+ fi
+ eval cmds=\"$old_archive_cmds\"
+
+ func_len " $cmds"
+ len=$func_len_result
+ if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
+ cmds=$old_archive_cmds
+ else
+ # the command line is too long to link in one step, link in parts
+ func_verbose "using piecewise archive linking..."
+ save_RANLIB=$RANLIB
+ RANLIB=:
+ objlist=
+ concat_cmds=
+ save_oldobjs=$oldobjs
+ oldobjs=
+ # Is there a better way of finding the last object in the list?
+ for obj in $save_oldobjs
+ do
+ last_oldobj=$obj
+ done
+ eval test_cmds=\"$old_archive_cmds\"
+ func_len " $test_cmds"
+ len0=$func_len_result
+ len=$len0
+ for obj in $save_oldobjs
+ do
+ func_len " $obj"
+ func_arith $len + $func_len_result
+ len=$func_arith_result
+ func_append objlist " $obj"
+ if test "$len" -lt "$max_cmd_len"; then
+ :
+ else
+ # the above command should be used before it gets too long
+ oldobjs=$objlist
+ if test "$obj" = "$last_oldobj" ; then
+ RANLIB=$save_RANLIB
+ fi
+ test -z "$concat_cmds" || concat_cmds=$concat_cmds~
+ eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
+ objlist=
+ len=$len0
+ fi
+ done
+ RANLIB=$save_RANLIB
+ oldobjs=$objlist
+ if test "X$oldobjs" = "X" ; then
+ eval cmds=\"\$concat_cmds\"
+ else
+ eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
+ fi
+ fi
+ fi
+ func_execute_cmds "$cmds" 'exit $?'
+ done
+
+ test -n "$generated" && \
+ func_show_eval "${RM}r$generated"
+
+ # Now create the libtool archive.
+ case $output in
+ *.la)
+ old_library=
+ test "$build_old_libs" = yes && old_library="$libname.$libext"
+ func_verbose "creating $output"
+
+ # Preserve any variables that may affect compiler behavior
+ for var in $variables_saved_for_relink; do
+ if eval test -z \"\${$var+set}\"; then
+ relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
+ elif eval var_value=\$$var; test -z "$var_value"; then
+ relink_command="$var=; export $var; $relink_command"
+ else
+ func_quote_for_eval "$var_value"
+ relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
+ fi
+ done
+ # Quote the link command for shipping.
+ relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
+ relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
+ if test "$hardcode_automatic" = yes ; then
+ relink_command=
+ fi
+
+ # Only create the output if not a dry run.
+ $opt_dry_run || {
+ for installed in no yes; do
+ if test "$installed" = yes; then
+ if test -z "$install_libdir"; then
+ break
+ fi
+ output="$output_objdir/$outputname"i
+ # Replace all uninstalled libtool libraries with the installed ones
+ newdependency_libs=
+ for deplib in $dependency_libs; do
+ case $deplib in
+ *.la)
+ func_basename "$deplib"
+ name="$func_basename_result"
+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
+ test -z "$libdir" && \
+ func_fatal_error "\`$deplib' is not a valid libtool archive"
+ newdependency_libs="$newdependency_libs $libdir/$name"
+ ;;
+ *) newdependency_libs="$newdependency_libs $deplib" ;;
+ esac
+ done
+ dependency_libs="$newdependency_libs"
+ newdlfiles=
+
+ for lib in $dlfiles; do
+ case $lib in
+ *.la)
+ func_basename "$lib"
+ name="$func_basename_result"
+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
+ test -z "$libdir" && \
+ func_fatal_error "\`$lib' is not a valid libtool archive"
+ newdlfiles="$newdlfiles $libdir/$name"
+ ;;
+ *) newdlfiles="$newdlfiles $lib" ;;
+ esac
+ done
+ dlfiles="$newdlfiles"
+ newdlprefiles=
+ for lib in $dlprefiles; do
+ case $lib in
+ *.la)
+ # Only pass preopened files to the pseudo-archive (for
+ # eventual linking with the app. that links it) if we
+ # didn't already link the preopened objects directly into
+ # the library:
+ func_basename "$lib"
+ name="$func_basename_result"
+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
+ test -z "$libdir" && \
+ func_fatal_error "\`$lib' is not a valid libtool archive"
+ newdlprefiles="$newdlprefiles $libdir/$name"
+ ;;
+ esac
+ done
+ dlprefiles="$newdlprefiles"
+ else
+ newdlfiles=
+ for lib in $dlfiles; do
+ case $lib in
+ [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
+ *) abs=`pwd`"/$lib" ;;
+ esac
+ newdlfiles="$newdlfiles $abs"
+ done
+ dlfiles="$newdlfiles"
+ newdlprefiles=
+ for lib in $dlprefiles; do
+ case $lib in
+ [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
+ *) abs=`pwd`"/$lib" ;;
+ esac
+ newdlprefiles="$newdlprefiles $abs"
+ done
+ dlprefiles="$newdlprefiles"
+ fi
+ $RM $output
+ # place dlname in correct position for cygwin
+ tdlname=$dlname
+ case $host,$output,$installed,$module,$dlname in
+ *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
+ esac
+ $ECHO > $output "\
+# $outputname - a libtool library file
+# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# The name that we can dlopen(3).
+dlname='$tdlname'
+
+# Names of this library.
+library_names='$library_names'
+
+# The name of the static archive.
+old_library='$old_library'
+
+# Linker flags that can not go in dependency_libs.
+inherited_linker_flags='$new_inherited_linker_flags'
+
+# Libraries that this one depends upon.
+dependency_libs='$dependency_libs'
+
+# Names of additional weak libraries provided by this library
+weak_library_names='$weak_libs'
+
+# Version information for $libname.
+current=$current
+age=$age
+revision=$revision
+
+# Is this an already installed library?
+installed=$installed
+
+# Should we warn about portability when linking against -modules?
+shouldnotlink=$module
+
+# Files to dlopen/dlpreopen
+dlopen='$dlfiles'
+dlpreopen='$dlprefiles'
+
+# Directory that this library needs to be installed in:
+libdir='$install_libdir'"
+ if test "$installed" = no && test "$need_relink" = yes; then
+ $ECHO >> $output "\
+relink_command=\"$relink_command\""
+ fi
+ done
+ }
+
+ # Do a symbolic link so that the libtool archive can be found in
+ # LD_LIBRARY_PATH before the program is installed.
+ func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
+ ;;
+ esac
+ exit $EXIT_SUCCESS
+}
+
+{ test "$mode" = link || test "$mode" = relink; } &&
+ func_mode_link ${1+"$@"}
+
+
+# func_mode_uninstall arg...
+func_mode_uninstall ()
+{
+ $opt_debug
+ RM="$nonopt"
+ files=
+ rmforce=
+ exit_status=0
+
+ # This variable tells wrapper scripts just to set variables rather
+ # than running their programs.
+ libtool_install_magic="$magic"
+
+ for arg
+ do
+ case $arg in
+ -f) RM="$RM $arg"; rmforce=yes ;;
+ -*) RM="$RM $arg" ;;
+ *) files="$files $arg" ;;
+ esac
+ done
+
+ test -z "$RM" && \
+ func_fatal_help "you must specify an RM program"
+
+ rmdirs=
+
+ origobjdir="$objdir"
+ for file in $files; do
+ func_dirname "$file" "" "."
+ dir="$func_dirname_result"
+ if test "X$dir" = X.; then
+ objdir="$origobjdir"
+ else
+ objdir="$dir/$origobjdir"
+ fi
+ func_basename "$file"
+ name="$func_basename_result"
+ test "$mode" = uninstall && objdir="$dir"
+
+ # Remember objdir for removal later, being careful to avoid duplicates
+ if test "$mode" = clean; then
+ case " $rmdirs " in
+ *" $objdir "*) ;;
+ *) rmdirs="$rmdirs $objdir" ;;
+ esac
+ fi
+
+ # Don't error if the file doesn't exist and rm -f was used.
+ if { test -L "$file"; } >/dev/null 2>&1 ||
+ { test -h "$file"; } >/dev/null 2>&1 ||
+ test -f "$file"; then
+ :
+ elif test -d "$file"; then
+ exit_status=1
+ continue
+ elif test "$rmforce" = yes; then
+ continue
+ fi
+
+ rmfiles="$file"
+
+ case $name in
+ *.la)
+ # Possibly a libtool archive, so verify it.
+ if func_lalib_p "$file"; then
+ func_source $dir/$name
+
+ # Delete the libtool libraries and symlinks.
+ for n in $library_names; do
+ rmfiles="$rmfiles $objdir/$n"
+ done
+ test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
+
+ case "$mode" in
+ clean)
+ case " $library_names " in
+ # " " in the beginning catches empty $dlname
+ *" $dlname "*) ;;
+ *) rmfiles="$rmfiles $objdir/$dlname" ;;
+ esac
+ test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
+ ;;
+ uninstall)
+ if test -n "$library_names"; then
+ # Do each command in the postuninstall commands.
+ func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
+ fi
+
+ if test -n "$old_library"; then
+ # Do each command in the old_postuninstall commands.
+ func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
+ fi
+ # FIXME: should reinstall the best remaining shared library.
+ ;;
+ esac
+ fi
+ ;;
+
+ *.lo)
+ # Possibly a libtool object, so verify it.
+ if func_lalib_p "$file"; then
+
+ # Read the .lo file
+ func_source $dir/$name
+
+ # Add PIC object to the list of files to remove.
+ if test -n "$pic_object" &&
+ test "$pic_object" != none; then
+ rmfiles="$rmfiles $dir/$pic_object"
+ fi
+
+ # Add non-PIC object to the list of files to remove.
+ if test -n "$non_pic_object" &&
+ test "$non_pic_object" != none; then
+ rmfiles="$rmfiles $dir/$non_pic_object"
+ fi
+ fi
+ ;;
+
+ *)
+ if test "$mode" = clean ; then
+ noexename=$name
+ case $file in
+ *.exe)
+ func_stripname '' '.exe' "$file"
+ file=$func_stripname_result
+ func_stripname '' '.exe' "$name"
+ noexename=$func_stripname_result
+ # $file with .exe has already been added to rmfiles,
+ # add $file without .exe
+ rmfiles="$rmfiles $file"
+ ;;
+ esac
+ # Do a test to see if this is a libtool program.
+ if func_ltwrapper_p "$file"; then
+ if func_ltwrapper_executable_p "$file"; then
+ func_ltwrapper_scriptname "$file"
+ relink_command=
+ func_source $func_ltwrapper_scriptname_result
+ rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
+ else
+ relink_command=
+ func_source $dir/$noexename
+ fi
+
+ # note $name still contains .exe if it was in $file originally
+ # as does the version of $file that was added into $rmfiles
+ rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
+ if test "$fast_install" = yes && test -n "$relink_command"; then
+ rmfiles="$rmfiles $objdir/lt-$name"
+ fi
+ if test "X$noexename" != "X$name" ; then
+ rmfiles="$rmfiles $objdir/lt-${noexename}.c"
+ fi
+ fi
+ fi
+ ;;
+ esac
+ func_show_eval "$RM $rmfiles" 'exit_status=1'
+ done
+ objdir="$origobjdir"
+
+ # Try to remove the ${objdir}s in the directories where we deleted files
+ for dir in $rmdirs; do
+ if test -d "$dir"; then
+ func_show_eval "rmdir $dir >/dev/null 2>&1"
+ fi
+ done
+
+ exit $exit_status
+}
+
+{ test "$mode" = uninstall || test "$mode" = clean; } &&
+ func_mode_uninstall ${1+"$@"}
+
+test -z "$mode" && {
+ help="$generic_help"
+ func_fatal_help "you must specify a MODE"
+}
+
+test -z "$exec_cmd" && \
+ func_fatal_help "invalid operation mode \`$mode'"
+
+if test -n "$exec_cmd"; then
+ eval exec "$exec_cmd"
+ exit $EXIT_FAILURE
+fi
+
+exit $exit_status
+
+
+# The TAGs below are defined such that we never get into a situation
+# in which we disable both kinds of libraries. Given conflicting
+# choices, we go for a static library, that is the most portable,
+# since we can't tell whether shared libraries were disabled because
+# the user asked for that or because the platform doesn't support
+# them. This is particularly important on AIX, because we don't
+# support having both static and shared libraries enabled at the same
+# time on that platform, so we default to a shared-only configuration.
+# If a disable-shared tag is given, we'll fallback to a static-only
+# configuration. But we'll never go from static-only to shared-only.
+
+# ### BEGIN LIBTOOL TAG CONFIG: disable-shared
+build_libtool_libs=no
+build_old_libs=yes
+# ### END LIBTOOL TAG CONFIG: disable-shared
+
+# ### BEGIN LIBTOOL TAG CONFIG: disable-static
+build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
+# ### END LIBTOOL TAG CONFIG: disable-static
+
+# Local Variables:
+# mode:shell-script
+# sh-indentation:2
+# End:
+# vi:sw=2
+
--- /dev/null
+#! /bin/sh
+# Guess values for system-dependent variables and create Makefiles.
+# Generated by GNU Autoconf 2.64.
+#
+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
+# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
+# Foundation, Inc.
+#
+# This configure script is free software; the Free Software Foundation
+# gives unlimited permission to copy, distribute and modify it.
+## -------------------- ##
+## M4sh Initialization. ##
+## -------------------- ##
+
+# Be more Bourne compatible
+DUALCASE=1; export DUALCASE # for MKS sh
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
+ emulate sh
+ NULLCMD=:
+ # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '${1+"$@"}'='"$@"'
+ setopt NO_GLOB_SUBST
+else
+ case `(set -o) 2>/dev/null` in #(
+ *posix*) :
+ set -o posix ;; #(
+ *) :
+ ;;
+esac
+fi
+
+
+as_nl='
+'
+export as_nl
+# Printing a long string crashes Solaris 7 /usr/bin/printf.
+as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
+# Prefer a ksh shell builtin over an external printf program on Solaris,
+# but without wasting forks for bash or zsh.
+if test -z "$BASH_VERSION$ZSH_VERSION" \
+ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
+ as_echo='print -r --'
+ as_echo_n='print -rn --'
+elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
+ as_echo='printf %s\n'
+ as_echo_n='printf %s'
+else
+ if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
+ as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
+ as_echo_n='/usr/ucb/echo -n'
+ else
+ as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
+ as_echo_n_body='eval
+ arg=$1;
+ case $arg in #(
+ *"$as_nl"*)
+ expr "X$arg" : "X\\(.*\\)$as_nl";
+ arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
+ esac;
+ expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
+ '
+ export as_echo_n_body
+ as_echo_n='sh -c $as_echo_n_body as_echo'
+ fi
+ export as_echo_body
+ as_echo='sh -c $as_echo_body as_echo'
+fi
+
+# The user is always right.
+if test "${PATH_SEPARATOR+set}" != set; then
+ PATH_SEPARATOR=:
+ (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
+ (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
+ PATH_SEPARATOR=';'
+ }
+fi
+
+
+# IFS
+# We need space, tab and new line, in precisely that order. Quoting is
+# there to prevent editors from complaining about space-tab.
+# (If _AS_PATH_WALK were called with IFS unset, it would disable word
+# splitting by setting IFS to empty value.)
+IFS=" "" $as_nl"
+
+# Find who we are. Look in the path if we contain no directory separator.
+case $0 in #((
+ *[\\/]* ) as_myself=$0 ;;
+ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
+ done
+IFS=$as_save_IFS
+
+ ;;
+esac
+# We did not find ourselves, most probably we were run as `sh COMMAND'
+# in which case we are not to be found in the path.
+if test "x$as_myself" = x; then
+ as_myself=$0
+fi
+if test ! -f "$as_myself"; then
+ $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
+ exit 1
+fi
+
+# Unset variables that we do not need and which cause bugs (e.g. in
+# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
+# suppresses any "Segmentation fault" message there. '((' could
+# trigger a bug in pdksh 5.2.14.
+for as_var in BASH_ENV ENV MAIL MAILPATH
+do eval test x\${$as_var+set} = xset \
+ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
+done
+PS1='$ '
+PS2='> '
+PS4='+ '
+
+# NLS nuisances.
+LC_ALL=C
+export LC_ALL
+LANGUAGE=C
+export LANGUAGE
+
+# CDPATH.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+if test "x$CONFIG_SHELL" = x; then
+ as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
+ emulate sh
+ NULLCMD=:
+ # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '\${1+\"\$@\"}'='\"\$@\"'
+ setopt NO_GLOB_SUBST
+else
+ case \`(set -o) 2>/dev/null\` in #(
+ *posix*) :
+ set -o posix ;; #(
+ *) :
+ ;;
+esac
+fi
+"
+ as_required="as_fn_return () { (exit \$1); }
+as_fn_success () { as_fn_return 0; }
+as_fn_failure () { as_fn_return 1; }
+as_fn_ret_success () { return 0; }
+as_fn_ret_failure () { return 1; }
+
+exitcode=0
+as_fn_success || { exitcode=1; echo as_fn_success failed.; }
+as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
+as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
+as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
+if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
+
+else
+ exitcode=1; echo positional parameters were not saved.
+fi
+test x\$exitcode = x0 || exit 1"
+ as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
+ as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
+ eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
+ test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
+test \$(( 1 + 1 )) = 2 || exit 1"
+ if (eval "$as_required") 2>/dev/null; then :
+ as_have_required=yes
+else
+ as_have_required=no
+fi
+ if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
+
+else
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+as_found=false
+for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ as_found=:
+ case $as_dir in #(
+ /*)
+ for as_base in sh bash ksh sh5; do
+ # Try only shells that exist, to save several forks.
+ as_shell=$as_dir/$as_base
+ if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
+ { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
+ CONFIG_SHELL=$as_shell as_have_required=yes
+ if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
+ break 2
+fi
+fi
+ done;;
+ esac
+ as_found=false
+done
+$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
+ { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
+ CONFIG_SHELL=$SHELL as_have_required=yes
+fi; }
+IFS=$as_save_IFS
+
+
+ if test "x$CONFIG_SHELL" != x; then :
+ # We cannot yet assume a decent shell, so we have to provide a
+ # neutralization value for shells without unset; and this also
+ # works around shells that cannot unset nonexistent variables.
+ BASH_ENV=/dev/null
+ ENV=/dev/null
+ (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
+ export CONFIG_SHELL
+ exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
+fi
+
+ if test x$as_have_required = xno; then :
+ $as_echo "$0: This script requires a shell more modern than all"
+ $as_echo "$0: the shells that I found on your system."
+ if test x${ZSH_VERSION+set} = xset ; then
+ $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
+ $as_echo "$0: be upgraded to zsh 4.3.4 or later."
+ else
+ $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
+$0: including any error possibly output before this
+$0: message. Then install a modern shell, or manually run
+$0: the script under such a shell if you do have one."
+ fi
+ exit 1
+fi
+fi
+fi
+SHELL=${CONFIG_SHELL-/bin/sh}
+export SHELL
+# Unset more variables known to interfere with behavior of common tools.
+CLICOLOR_FORCE= GREP_OPTIONS=
+unset CLICOLOR_FORCE GREP_OPTIONS
+
+## --------------------- ##
+## M4sh Shell Functions. ##
+## --------------------- ##
+# as_fn_unset VAR
+# ---------------
+# Portably unset VAR.
+as_fn_unset ()
+{
+ { eval $1=; unset $1;}
+}
+as_unset=as_fn_unset
+
+# as_fn_set_status STATUS
+# -----------------------
+# Set $? to STATUS, without forking.
+as_fn_set_status ()
+{
+ return $1
+} # as_fn_set_status
+
+# as_fn_exit STATUS
+# -----------------
+# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
+as_fn_exit ()
+{
+ set +e
+ as_fn_set_status $1
+ exit $1
+} # as_fn_exit
+
+# as_fn_mkdir_p
+# -------------
+# Create "$as_dir" as a directory, including parents if necessary.
+as_fn_mkdir_p ()
+{
+
+ case $as_dir in #(
+ -*) as_dir=./$as_dir;;
+ esac
+ test -d "$as_dir" || eval $as_mkdir_p || {
+ as_dirs=
+ while :; do
+ case $as_dir in #(
+ *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
+ *) as_qdir=$as_dir;;
+ esac
+ as_dirs="'$as_qdir' $as_dirs"
+ as_dir=`$as_dirname -- "$as_dir" ||
+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$as_dir" : 'X\(//\)[^/]' \| \
+ X"$as_dir" : 'X\(//\)$' \| \
+ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$as_dir" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ test -d "$as_dir" && break
+ done
+ test -z "$as_dirs" || eval "mkdir $as_dirs"
+ } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
+
+
+} # as_fn_mkdir_p
+# as_fn_append VAR VALUE
+# ----------------------
+# Append the text in VALUE to the end of the definition contained in VAR. Take
+# advantage of any shell optimizations that allow amortized linear growth over
+# repeated appends, instead of the typical quadratic growth present in naive
+# implementations.
+if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
+ eval 'as_fn_append ()
+ {
+ eval $1+=\$2
+ }'
+else
+ as_fn_append ()
+ {
+ eval $1=\$$1\$2
+ }
+fi # as_fn_append
+
+# as_fn_arith ARG...
+# ------------------
+# Perform arithmetic evaluation on the ARGs, and store the result in the
+# global $as_val. Take advantage of shells that can avoid forks. The arguments
+# must be portable across $(()) and expr.
+if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
+ eval 'as_fn_arith ()
+ {
+ as_val=$(( $* ))
+ }'
+else
+ as_fn_arith ()
+ {
+ as_val=`expr "$@" || test $? -eq 1`
+ }
+fi # as_fn_arith
+
+
+# as_fn_error ERROR [LINENO LOG_FD]
+# ---------------------------------
+# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
+# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
+# script with status $?, using 1 if that was 0.
+as_fn_error ()
+{
+ as_status=$?; test $as_status -eq 0 && as_status=1
+ if test "$3"; then
+ as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
+ fi
+ $as_echo "$as_me: error: $1" >&2
+ as_fn_exit $as_status
+} # as_fn_error
+
+if expr a : '\(a\)' >/dev/null 2>&1 &&
+ test "X`expr 00001 : '.*\(...\)'`" = X001; then
+ as_expr=expr
+else
+ as_expr=false
+fi
+
+if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
+ as_basename=basename
+else
+ as_basename=false
+fi
+
+if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
+ as_dirname=dirname
+else
+ as_dirname=false
+fi
+
+as_me=`$as_basename -- "$0" ||
+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
+ X"$0" : 'X\(//\)$' \| \
+ X"$0" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X/"$0" |
+ sed '/^.*\/\([^/][^/]*\)\/*$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+
+# Avoid depending upon Character Ranges.
+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
+as_cr_digits='0123456789'
+as_cr_alnum=$as_cr_Letters$as_cr_digits
+
+
+ as_lineno_1=$LINENO as_lineno_1a=$LINENO
+ as_lineno_2=$LINENO as_lineno_2a=$LINENO
+ eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
+ test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
+ # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
+ sed -n '
+ p
+ /[$]LINENO/=
+ ' <$as_myself |
+ sed '
+ s/[$]LINENO.*/&-/
+ t lineno
+ b
+ :lineno
+ N
+ :loop
+ s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
+ t loop
+ s/-\n.*//
+ ' >$as_me.lineno &&
+ chmod +x "$as_me.lineno" ||
+ { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
+
+ # Don't try to exec as it changes $[0], causing all sort of problems
+ # (the dirname of $[0] is not the place where we might find the
+ # original and so on. Autoconf is especially sensitive to this).
+ . "./$as_me.lineno"
+ # Exit status is that of the last command.
+ exit
+}
+
+ECHO_C= ECHO_N= ECHO_T=
+case `echo -n x` in #(((((
+-n*)
+ case `echo 'xy\c'` in
+ *c*) ECHO_T=' ';; # ECHO_T is single tab character.
+ xy) ECHO_C='\c';;
+ *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
+ ECHO_T=' ';;
+ esac;;
+*)
+ ECHO_N='-n';;
+esac
+
+rm -f conf$$ conf$$.exe conf$$.file
+if test -d conf$$.dir; then
+ rm -f conf$$.dir/conf$$.file
+else
+ rm -f conf$$.dir
+ mkdir conf$$.dir 2>/dev/null
+fi
+if (echo >conf$$.file) 2>/dev/null; then
+ if ln -s conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s='ln -s'
+ # ... but there are two gotchas:
+ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
+ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
+ # In both cases, we have to default to `cp -p'.
+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
+ as_ln_s='cp -p'
+ elif ln conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s=ln
+ else
+ as_ln_s='cp -p'
+ fi
+else
+ as_ln_s='cp -p'
+fi
+rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
+rmdir conf$$.dir 2>/dev/null
+
+if mkdir -p . 2>/dev/null; then
+ as_mkdir_p='mkdir -p "$as_dir"'
+else
+ test -d ./-p && rmdir ./-p
+ as_mkdir_p=false
+fi
+
+if test -x / >/dev/null 2>&1; then
+ as_test_x='test -x'
+else
+ if ls -dL / >/dev/null 2>&1; then
+ as_ls_L_option=L
+ else
+ as_ls_L_option=
+ fi
+ as_test_x='
+ eval sh -c '\''
+ if test -d "$1"; then
+ test -d "$1/.";
+ else
+ case $1 in #(
+ -*)set "./$1";;
+ esac;
+ case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
+ ???[sx]*):;;*)false;;esac;fi
+ '\'' sh
+ '
+fi
+as_executable_p=$as_test_x
+
+# Sed expression to map a string onto a valid CPP name.
+as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
+
+# Sed expression to map a string onto a valid variable name.
+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
+
+
+exec 7<&0 </dev/null 6>&1
+
+# Name of the host.
+# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
+# so uname gets run too.
+ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
+
+#
+# Initializations.
+#
+ac_default_prefix=/usr/local
+ac_clean_files=
+ac_config_libobj_dir=.
+LIBOBJS=
+cross_compiling=no
+subdirs=
+MFLAGS=
+MAKEFLAGS=
+
+# Identity of this package.
+PACKAGE_NAME=
+PACKAGE_TARNAME=
+PACKAGE_VERSION=
+PACKAGE_STRING=
+PACKAGE_BUGREPORT=
+PACKAGE_URL=
+
+ac_unique_file="mod_security2.c"
+# Factoring default headers for most tests.
+ac_includes_default="\
+#include <stdio.h>
+#ifdef HAVE_SYS_TYPES_H
+# include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_STAT_H
+# include <sys/stat.h>
+#endif
+#ifdef STDC_HEADERS
+# include <stdlib.h>
+# include <stddef.h>
+#else
+# ifdef HAVE_STDLIB_H
+# include <stdlib.h>
+# endif
+#endif
+#ifdef HAVE_STRING_H
+# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+# include <memory.h>
+# endif
+# include <string.h>
+#endif
+#ifdef HAVE_STRINGS_H
+# include <strings.h>
+#endif
+#ifdef HAVE_INTTYPES_H
+# include <inttypes.h>
+#endif
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif"
+
+ac_subst_vars='LTLIBOBJS
+CURL_USES_GNUTLS
+CURL_CFLAGS
+CURL_LIBS
+LUA_CFLAGS
+LUA_LIBS
+LIBXML2_CFLAGS
+LIBXML2_LIBS
+APU_LINK_LD
+APU_LDFLAGS
+APU_CFLAGS
+APU_LIBS
+APR_LINK_LD
+APR_LDFLAGS
+APR_CFLAGS
+APR_LIBS
+PCRE_CFLAGS
+PCRE_LIBS
+APXS_HTTPD
+APXS_LIBEXECDIR
+APXS_PROGNAME
+APXS_SBINDIR
+APXS_BINDIR
+APXS_LIBDIR
+APXS_CC
+APXS_LIBTOOL
+APXS_CFLAGS
+APXS_LIBS
+APXS_LDFLAGS
+MODSEC_APXS_EXTRA_CFLAGS
+APXS_EXTRA_CFLAGS
+APXS_INCLUDES
+APXS_INCLUDEDIR
+APXS_WRAPPER
+APXS
+MODSEC_EXTRA_CFLAGS
+EXTRA_CFLAGS
+MSC_REGRESSION_DOCROOT_DIR
+MSC_REGRESSION_LOGS_DIR
+MSC_REGRESSION_CONF_DIR
+MSC_REGRESSION_SERVERROOT_DIR
+MSC_REGRESSION_DIR
+MSC_TEST_DIR
+MSC_PKGBASE_DIR
+MSC_BASE_DIR
+LIBOBJS
+EGREP
+ENV_CMD
+PERL
+GREP
+RANLIB
+SET_MAKE
+LN_S
+INSTALL_DATA
+INSTALL_SCRIPT
+INSTALL_PROGRAM
+CPP
+OBJEXT
+EXEEXT
+ac_ct_CC
+CPPFLAGS
+LDFLAGS
+CFLAGS
+CC
+AWK
+target_alias
+host_alias
+build_alias
+LIBS
+ECHO_T
+ECHO_N
+ECHO_C
+DEFS
+mandir
+localedir
+libdir
+psdir
+pdfdir
+dvidir
+htmldir
+infodir
+docdir
+oldincludedir
+includedir
+localstatedir
+sharedstatedir
+sysconfdir
+datadir
+datarootdir
+libexecdir
+sbindir
+bindir
+program_transform_name
+prefix
+exec_prefix
+PACKAGE_URL
+PACKAGE_BUGREPORT
+PACKAGE_STRING
+PACKAGE_VERSION
+PACKAGE_TARNAME
+PACKAGE_NAME
+PATH_SEPARATOR
+SHELL'
+ac_subst_files=''
+ac_user_opts='
+enable_option_checking
+enable_errors
+enable_verbose_output
+enable_strict_compile
+enable_debug_conf
+enable_debug_cache
+enable_debug_acmp
+enable_debug_mem
+enable_performance_measurement
+enable_modsec_api
+with_apxs
+with_pcre
+with_apr
+with_apu
+with_libxml
+with_lua
+with_curl
+'
+ ac_precious_vars='build_alias
+host_alias
+target_alias
+CC
+CFLAGS
+LDFLAGS
+LIBS
+CPPFLAGS
+CPP'
+
+
+# Initialize some variables set by options.
+ac_init_help=
+ac_init_version=false
+ac_unrecognized_opts=
+ac_unrecognized_sep=
+# The variables have the same names as the options, with
+# dashes changed to underlines.
+cache_file=/dev/null
+exec_prefix=NONE
+no_create=
+no_recursion=
+prefix=NONE
+program_prefix=NONE
+program_suffix=NONE
+program_transform_name=s,x,x,
+silent=
+site=
+srcdir=
+verbose=
+x_includes=NONE
+x_libraries=NONE
+
+# Installation directory options.
+# These are left unexpanded so users can "make install exec_prefix=/foo"
+# and all the variables that are supposed to be based on exec_prefix
+# by default will actually change.
+# Use braces instead of parens because sh, perl, etc. also accept them.
+# (The list follows the same order as the GNU Coding Standards.)
+bindir='${exec_prefix}/bin'
+sbindir='${exec_prefix}/sbin'
+libexecdir='${exec_prefix}/libexec'
+datarootdir='${prefix}/share'
+datadir='${datarootdir}'
+sysconfdir='${prefix}/etc'
+sharedstatedir='${prefix}/com'
+localstatedir='${prefix}/var'
+includedir='${prefix}/include'
+oldincludedir='/usr/include'
+docdir='${datarootdir}/doc/${PACKAGE}'
+infodir='${datarootdir}/info'
+htmldir='${docdir}'
+dvidir='${docdir}'
+pdfdir='${docdir}'
+psdir='${docdir}'
+libdir='${exec_prefix}/lib'
+localedir='${datarootdir}/locale'
+mandir='${datarootdir}/man'
+
+ac_prev=
+ac_dashdash=
+for ac_option
+do
+ # If the previous option needs an argument, assign it.
+ if test -n "$ac_prev"; then
+ eval $ac_prev=\$ac_option
+ ac_prev=
+ continue
+ fi
+
+ case $ac_option in
+ *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
+ *) ac_optarg=yes ;;
+ esac
+
+ # Accept the important Cygnus configure options, so we can diagnose typos.
+
+ case $ac_dashdash$ac_option in
+ --)
+ ac_dashdash=yes ;;
+
+ -bindir | --bindir | --bindi | --bind | --bin | --bi)
+ ac_prev=bindir ;;
+ -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
+ bindir=$ac_optarg ;;
+
+ -build | --build | --buil | --bui | --bu)
+ ac_prev=build_alias ;;
+ -build=* | --build=* | --buil=* | --bui=* | --bu=*)
+ build_alias=$ac_optarg ;;
+
+ -cache-file | --cache-file | --cache-fil | --cache-fi \
+ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
+ ac_prev=cache_file ;;
+ -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
+ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
+ cache_file=$ac_optarg ;;
+
+ --config-cache | -C)
+ cache_file=config.cache ;;
+
+ -datadir | --datadir | --datadi | --datad)
+ ac_prev=datadir ;;
+ -datadir=* | --datadir=* | --datadi=* | --datad=*)
+ datadir=$ac_optarg ;;
+
+ -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
+ | --dataroo | --dataro | --datar)
+ ac_prev=datarootdir ;;
+ -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
+ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
+ datarootdir=$ac_optarg ;;
+
+ -disable-* | --disable-*)
+ ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
+ as_fn_error "invalid feature name: $ac_useropt"
+ ac_useropt_orig=$ac_useropt
+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
+ case $ac_user_opts in
+ *"
+"enable_$ac_useropt"
+"*) ;;
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
+ ac_unrecognized_sep=', ';;
+ esac
+ eval enable_$ac_useropt=no ;;
+
+ -docdir | --docdir | --docdi | --doc | --do)
+ ac_prev=docdir ;;
+ -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
+ docdir=$ac_optarg ;;
+
+ -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
+ ac_prev=dvidir ;;
+ -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
+ dvidir=$ac_optarg ;;
+
+ -enable-* | --enable-*)
+ ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
+ as_fn_error "invalid feature name: $ac_useropt"
+ ac_useropt_orig=$ac_useropt
+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
+ case $ac_user_opts in
+ *"
+"enable_$ac_useropt"
+"*) ;;
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
+ ac_unrecognized_sep=', ';;
+ esac
+ eval enable_$ac_useropt=\$ac_optarg ;;
+
+ -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
+ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
+ | --exec | --exe | --ex)
+ ac_prev=exec_prefix ;;
+ -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
+ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
+ | --exec=* | --exe=* | --ex=*)
+ exec_prefix=$ac_optarg ;;
+
+ -gas | --gas | --ga | --g)
+ # Obsolete; use --with-gas.
+ with_gas=yes ;;
+
+ -help | --help | --hel | --he | -h)
+ ac_init_help=long ;;
+ -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
+ ac_init_help=recursive ;;
+ -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
+ ac_init_help=short ;;
+
+ -host | --host | --hos | --ho)
+ ac_prev=host_alias ;;
+ -host=* | --host=* | --hos=* | --ho=*)
+ host_alias=$ac_optarg ;;
+
+ -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
+ ac_prev=htmldir ;;
+ -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
+ | --ht=*)
+ htmldir=$ac_optarg ;;
+
+ -includedir | --includedir | --includedi | --included | --include \
+ | --includ | --inclu | --incl | --inc)
+ ac_prev=includedir ;;
+ -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
+ | --includ=* | --inclu=* | --incl=* | --inc=*)
+ includedir=$ac_optarg ;;
+
+ -infodir | --infodir | --infodi | --infod | --info | --inf)
+ ac_prev=infodir ;;
+ -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
+ infodir=$ac_optarg ;;
+
+ -libdir | --libdir | --libdi | --libd)
+ ac_prev=libdir ;;
+ -libdir=* | --libdir=* | --libdi=* | --libd=*)
+ libdir=$ac_optarg ;;
+
+ -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
+ | --libexe | --libex | --libe)
+ ac_prev=libexecdir ;;
+ -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
+ | --libexe=* | --libex=* | --libe=*)
+ libexecdir=$ac_optarg ;;
+
+ -localedir | --localedir | --localedi | --localed | --locale)
+ ac_prev=localedir ;;
+ -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
+ localedir=$ac_optarg ;;
+
+ -localstatedir | --localstatedir | --localstatedi | --localstated \
+ | --localstate | --localstat | --localsta | --localst | --locals)
+ ac_prev=localstatedir ;;
+ -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
+ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
+ localstatedir=$ac_optarg ;;
+
+ -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
+ ac_prev=mandir ;;
+ -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
+ mandir=$ac_optarg ;;
+
+ -nfp | --nfp | --nf)
+ # Obsolete; use --without-fp.
+ with_fp=no ;;
+
+ -no-create | --no-create | --no-creat | --no-crea | --no-cre \
+ | --no-cr | --no-c | -n)
+ no_create=yes ;;
+
+ -no-recursion | --no-recursion | --no-recursio | --no-recursi \
+ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
+ no_recursion=yes ;;
+
+ -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
+ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
+ | --oldin | --oldi | --old | --ol | --o)
+ ac_prev=oldincludedir ;;
+ -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
+ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
+ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
+ oldincludedir=$ac_optarg ;;
+
+ -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
+ ac_prev=prefix ;;
+ -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
+ prefix=$ac_optarg ;;
+
+ -program-prefix | --program-prefix | --program-prefi | --program-pref \
+ | --program-pre | --program-pr | --program-p)
+ ac_prev=program_prefix ;;
+ -program-prefix=* | --program-prefix=* | --program-prefi=* \
+ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
+ program_prefix=$ac_optarg ;;
+
+ -program-suffix | --program-suffix | --program-suffi | --program-suff \
+ | --program-suf | --program-su | --program-s)
+ ac_prev=program_suffix ;;
+ -program-suffix=* | --program-suffix=* | --program-suffi=* \
+ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
+ program_suffix=$ac_optarg ;;
+
+ -program-transform-name | --program-transform-name \
+ | --program-transform-nam | --program-transform-na \
+ | --program-transform-n | --program-transform- \
+ | --program-transform | --program-transfor \
+ | --program-transfo | --program-transf \
+ | --program-trans | --program-tran \
+ | --progr-tra | --program-tr | --program-t)
+ ac_prev=program_transform_name ;;
+ -program-transform-name=* | --program-transform-name=* \
+ | --program-transform-nam=* | --program-transform-na=* \
+ | --program-transform-n=* | --program-transform-=* \
+ | --program-transform=* | --program-transfor=* \
+ | --program-transfo=* | --program-transf=* \
+ | --program-trans=* | --program-tran=* \
+ | --progr-tra=* | --program-tr=* | --program-t=*)
+ program_transform_name=$ac_optarg ;;
+
+ -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
+ ac_prev=pdfdir ;;
+ -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
+ pdfdir=$ac_optarg ;;
+
+ -psdir | --psdir | --psdi | --psd | --ps)
+ ac_prev=psdir ;;
+ -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
+ psdir=$ac_optarg ;;
+
+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+ | -silent | --silent | --silen | --sile | --sil)
+ silent=yes ;;
+
+ -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
+ ac_prev=sbindir ;;
+ -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
+ | --sbi=* | --sb=*)
+ sbindir=$ac_optarg ;;
+
+ -sharedstatedir | --sharedstatedir | --sharedstatedi \
+ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
+ | --sharedst | --shareds | --shared | --share | --shar \
+ | --sha | --sh)
+ ac_prev=sharedstatedir ;;
+ -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
+ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
+ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
+ | --sha=* | --sh=*)
+ sharedstatedir=$ac_optarg ;;
+
+ -site | --site | --sit)
+ ac_prev=site ;;
+ -site=* | --site=* | --sit=*)
+ site=$ac_optarg ;;
+
+ -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
+ ac_prev=srcdir ;;
+ -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
+ srcdir=$ac_optarg ;;
+
+ -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
+ | --syscon | --sysco | --sysc | --sys | --sy)
+ ac_prev=sysconfdir ;;
+ -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
+ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
+ sysconfdir=$ac_optarg ;;
+
+ -target | --target | --targe | --targ | --tar | --ta | --t)
+ ac_prev=target_alias ;;
+ -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
+ target_alias=$ac_optarg ;;
+
+ -v | -verbose | --verbose | --verbos | --verbo | --verb)
+ verbose=yes ;;
+
+ -version | --version | --versio | --versi | --vers | -V)
+ ac_init_version=: ;;
+
+ -with-* | --with-*)
+ ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
+ as_fn_error "invalid package name: $ac_useropt"
+ ac_useropt_orig=$ac_useropt
+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
+ case $ac_user_opts in
+ *"
+"with_$ac_useropt"
+"*) ;;
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
+ ac_unrecognized_sep=', ';;
+ esac
+ eval with_$ac_useropt=\$ac_optarg ;;
+
+ -without-* | --without-*)
+ ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
+ as_fn_error "invalid package name: $ac_useropt"
+ ac_useropt_orig=$ac_useropt
+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
+ case $ac_user_opts in
+ *"
+"with_$ac_useropt"
+"*) ;;
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
+ ac_unrecognized_sep=', ';;
+ esac
+ eval with_$ac_useropt=no ;;
+
+ --x)
+ # Obsolete; use --with-x.
+ with_x=yes ;;
+
+ -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
+ | --x-incl | --x-inc | --x-in | --x-i)
+ ac_prev=x_includes ;;
+ -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
+ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
+ x_includes=$ac_optarg ;;
+
+ -x-libraries | --x-libraries | --x-librarie | --x-librari \
+ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
+ ac_prev=x_libraries ;;
+ -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
+ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
+ x_libraries=$ac_optarg ;;
+
+ -*) as_fn_error "unrecognized option: \`$ac_option'
+Try \`$0 --help' for more information."
+ ;;
+
+ *=*)
+ ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
+ # Reject names that are not valid shell variable names.
+ case $ac_envvar in #(
+ '' | [0-9]* | *[!_$as_cr_alnum]* )
+ as_fn_error "invalid variable name: \`$ac_envvar'" ;;
+ esac
+ eval $ac_envvar=\$ac_optarg
+ export $ac_envvar ;;
+
+ *)
+ # FIXME: should be removed in autoconf 3.0.
+ $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
+ expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
+ $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
+ : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
+ ;;
+
+ esac
+done
+
+if test -n "$ac_prev"; then
+ ac_option=--`echo $ac_prev | sed 's/_/-/g'`
+ as_fn_error "missing argument to $ac_option"
+fi
+
+if test -n "$ac_unrecognized_opts"; then
+ case $enable_option_checking in
+ no) ;;
+ fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
+ *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
+ esac
+fi
+
+# Check all directory arguments for consistency.
+for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
+ datadir sysconfdir sharedstatedir localstatedir includedir \
+ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
+ libdir localedir mandir
+do
+ eval ac_val=\$$ac_var
+ # Remove trailing slashes.
+ case $ac_val in
+ */ )
+ ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
+ eval $ac_var=\$ac_val;;
+ esac
+ # Be sure to have absolute directory names.
+ case $ac_val in
+ [\\/$]* | ?:[\\/]* ) continue;;
+ NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
+ esac
+ as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
+done
+
+# There might be people who depend on the old broken behavior: `$host'
+# used to hold the argument of --host etc.
+# FIXME: To remove some day.
+build=$build_alias
+host=$host_alias
+target=$target_alias
+
+# FIXME: To remove some day.
+if test "x$host_alias" != x; then
+ if test "x$build_alias" = x; then
+ cross_compiling=maybe
+ $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
+ If a cross compiler is detected then cross compile mode will be used." >&2
+ elif test "x$build_alias" != "x$host_alias"; then
+ cross_compiling=yes
+ fi
+fi
+
+ac_tool_prefix=
+test -n "$host_alias" && ac_tool_prefix=$host_alias-
+
+test "$silent" = yes && exec 6>/dev/null
+
+
+ac_pwd=`pwd` && test -n "$ac_pwd" &&
+ac_ls_di=`ls -di .` &&
+ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
+ as_fn_error "working directory cannot be determined"
+test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
+ as_fn_error "pwd does not report name of working directory"
+
+
+# Find the source files, if location was not specified.
+if test -z "$srcdir"; then
+ ac_srcdir_defaulted=yes
+ # Try the directory containing this script, then the parent directory.
+ ac_confdir=`$as_dirname -- "$as_myself" ||
+$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$as_myself" : 'X\(//\)[^/]' \| \
+ X"$as_myself" : 'X\(//\)$' \| \
+ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$as_myself" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ srcdir=$ac_confdir
+ if test ! -r "$srcdir/$ac_unique_file"; then
+ srcdir=..
+ fi
+else
+ ac_srcdir_defaulted=no
+fi
+if test ! -r "$srcdir/$ac_unique_file"; then
+ test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
+ as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
+fi
+ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
+ac_abs_confdir=`(
+ cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
+ pwd)`
+# When building in place, set srcdir=.
+if test "$ac_abs_confdir" = "$ac_pwd"; then
+ srcdir=.
+fi
+# Remove unnecessary trailing slashes from srcdir.
+# Double slashes in file names in object file debugging info
+# mess up M-x gdb in Emacs.
+case $srcdir in
+*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
+esac
+for ac_var in $ac_precious_vars; do
+ eval ac_env_${ac_var}_set=\${${ac_var}+set}
+ eval ac_env_${ac_var}_value=\$${ac_var}
+ eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
+ eval ac_cv_env_${ac_var}_value=\$${ac_var}
+done
+
+#
+# Report the --help message.
+#
+if test "$ac_init_help" = "long"; then
+ # Omit some internal or obsolete options to make the list less imposing.
+ # This message is too long to be a string in the A/UX 3.1 sh.
+ cat <<_ACEOF
+\`configure' configures this package to adapt to many kinds of systems.
+
+Usage: $0 [OPTION]... [VAR=VALUE]...
+
+To assign environment variables (e.g., CC, CFLAGS...), specify them as
+VAR=VALUE. See below for descriptions of some of the useful variables.
+
+Defaults for the options are specified in brackets.
+
+Configuration:
+ -h, --help display this help and exit
+ --help=short display options specific to this package
+ --help=recursive display the short help of all the included packages
+ -V, --version display version information and exit
+ -q, --quiet, --silent do not print \`checking...' messages
+ --cache-file=FILE cache test results in FILE [disabled]
+ -C, --config-cache alias for \`--cache-file=config.cache'
+ -n, --no-create do not create output files
+ --srcdir=DIR find the sources in DIR [configure dir or \`..']
+
+Installation directories:
+ --prefix=PREFIX install architecture-independent files in PREFIX
+ [$ac_default_prefix]
+ --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
+ [PREFIX]
+
+By default, \`make install' will install all the files in
+\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
+an installation prefix other than \`$ac_default_prefix' using \`--prefix',
+for instance \`--prefix=\$HOME'.
+
+For better control, use the options below.
+
+Fine tuning of the installation directories:
+ --bindir=DIR user executables [EPREFIX/bin]
+ --sbindir=DIR system admin executables [EPREFIX/sbin]
+ --libexecdir=DIR program executables [EPREFIX/libexec]
+ --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
+ --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
+ --localstatedir=DIR modifiable single-machine data [PREFIX/var]
+ --libdir=DIR object code libraries [EPREFIX/lib]
+ --includedir=DIR C header files [PREFIX/include]
+ --oldincludedir=DIR C header files for non-gcc [/usr/include]
+ --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
+ --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
+ --infodir=DIR info documentation [DATAROOTDIR/info]
+ --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
+ --mandir=DIR man documentation [DATAROOTDIR/man]
+ --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
+ --htmldir=DIR html documentation [DOCDIR]
+ --dvidir=DIR dvi documentation [DOCDIR]
+ --pdfdir=DIR pdf documentation [DOCDIR]
+ --psdir=DIR ps documentation [DOCDIR]
+_ACEOF
+
+ cat <<\_ACEOF
+_ACEOF
+fi
+
+if test -n "$ac_init_help"; then
+
+ cat <<\_ACEOF
+
+Optional Features:
+ --disable-option-checking ignore unrecognized --enable/--with options
+ --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
+ --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
+ --disable-errors Disable errors during configure.
+ --enable-verbose-output Enable more verbose configure output.
+ --enable-strict-compile Enable strict compilation (warnings are errors).
+ --enable-debug-conf Enable debug during configuration.
+ --enable-debug-cache Enable debug for transformation caching.
+ --enable-debug-acmp Enable debugging acmp code.
+ --enable-debug-mem Enable debug during configuration.
+ --enable-performance-measurement
+ Enable performance-measurement stats.
+ --disable-modsec-api Disable the API; compiling against some older Apache
+ versions require this.
+
+Optional Packages:
+ --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
+ --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
+ --with-apxs=FILE FILE is the path to apxs; defaults to "apxs".
+ --with-pcre=PATH Path to pcre prefix or config script
+ --with-apr=PATH Path to apr prefix or config script
+ --with-apu=PATH Path to apu prefix or config script
+ --with-libxml=PATH Path to libxml2 prefix or config script
+ --with-lua=PATH Path to lua prefix or config script
+ --with-curl=PATH Path to curl prefix or config script
+
+Some influential environment variables:
+ CC C compiler command
+ CFLAGS C compiler flags
+ LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
+ nonstandard directory <lib dir>
+ LIBS libraries to pass to the linker, e.g. -l<library>
+ CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
+ you have headers in a nonstandard directory <include dir>
+ CPP C preprocessor
+
+Use these variables to override the choices made by `configure' or to help
+it to find libraries and programs with nonstandard names/locations.
+
+Report bugs to the package provider.
+_ACEOF
+ac_status=$?
+fi
+
+if test "$ac_init_help" = "recursive"; then
+ # If there are subdirs, report their specific --help.
+ for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
+ test -d "$ac_dir" ||
+ { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
+ continue
+ ac_builddir=.
+
+case "$ac_dir" in
+.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
+*)
+ ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
+ # A ".." for each directory in $ac_dir_suffix.
+ ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
+ case $ac_top_builddir_sub in
+ "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
+ *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
+ esac ;;
+esac
+ac_abs_top_builddir=$ac_pwd
+ac_abs_builddir=$ac_pwd$ac_dir_suffix
+# for backward compatibility:
+ac_top_builddir=$ac_top_build_prefix
+
+case $srcdir in
+ .) # We are building in place.
+ ac_srcdir=.
+ ac_top_srcdir=$ac_top_builddir_sub
+ ac_abs_top_srcdir=$ac_pwd ;;
+ [\\/]* | ?:[\\/]* ) # Absolute name.
+ ac_srcdir=$srcdir$ac_dir_suffix;
+ ac_top_srcdir=$srcdir
+ ac_abs_top_srcdir=$srcdir ;;
+ *) # Relative name.
+ ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
+ ac_top_srcdir=$ac_top_build_prefix$srcdir
+ ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
+esac
+ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
+
+ cd "$ac_dir" || { ac_status=$?; continue; }
+ # Check for guested configure.
+ if test -f "$ac_srcdir/configure.gnu"; then
+ echo &&
+ $SHELL "$ac_srcdir/configure.gnu" --help=recursive
+ elif test -f "$ac_srcdir/configure"; then
+ echo &&
+ $SHELL "$ac_srcdir/configure" --help=recursive
+ else
+ $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
+ fi || ac_status=$?
+ cd "$ac_pwd" || { ac_status=$?; break; }
+ done
+fi
+
+test -n "$ac_init_help" && exit $ac_status
+if $ac_init_version; then
+ cat <<\_ACEOF
+configure
+generated by GNU Autoconf 2.64
+
+Copyright (C) 2009 Free Software Foundation, Inc.
+This configure script is free software; the Free Software Foundation
+gives unlimited permission to copy, distribute and modify it.
+_ACEOF
+ exit
+fi
+
+## ------------------------ ##
+## Autoconf initialization. ##
+## ------------------------ ##
+
+# ac_fn_c_try_compile LINENO
+# --------------------------
+# Try to compile conftest.$ac_ext, and return whether this succeeded.
+ac_fn_c_try_compile ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ rm -f conftest.$ac_objext
+ if { { ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_compile") 2>conftest.err
+ ac_status=$?
+ if test -s conftest.err; then
+ grep -v '^ *+' conftest.err >conftest.er1
+ cat conftest.er1 >&5
+ mv -f conftest.er1 conftest.err
+ fi
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then :
+ ac_retval=0
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_retval=1
+fi
+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
+ return $ac_retval
+
+} # ac_fn_c_try_compile
+
+# ac_fn_c_try_cpp LINENO
+# ----------------------
+# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
+ac_fn_c_try_cpp ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ if { { ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
+ ac_status=$?
+ if test -s conftest.err; then
+ grep -v '^ *+' conftest.err >conftest.er1
+ cat conftest.er1 >&5
+ mv -f conftest.er1 conftest.err
+ fi
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then :
+ ac_retval=0
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_retval=1
+fi
+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
+ return $ac_retval
+
+} # ac_fn_c_try_cpp
+
+# ac_fn_c_try_run LINENO
+# ----------------------
+# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
+# that executables *can* be run.
+ac_fn_c_try_run ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ if { { ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
+ { { case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; }; then :
+ ac_retval=0
+else
+ $as_echo "$as_me: program exited with status $ac_status" >&5
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_retval=$ac_status
+fi
+ rm -rf conftest.dSYM conftest_ipa8_conftest.oo
+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
+ return $ac_retval
+
+} # ac_fn_c_try_run
+
+# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
+# -------------------------------------------------------
+# Tests whether HEADER exists, giving a warning if it cannot be compiled using
+# the include files in INCLUDES and setting the cache variable VAR
+# accordingly.
+ac_fn_c_check_header_mongrel ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
+$as_echo_n "checking for $2... " >&6; }
+if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
+ $as_echo_n "(cached) " >&6
+fi
+eval ac_res=\$$3
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+else
+ # Is the header compilable?
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
+$as_echo_n "checking $2 usability... " >&6; }
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+#include <$2>
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_header_compiler=yes
+else
+ ac_header_compiler=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
+$as_echo "$ac_header_compiler" >&6; }
+
+# Is the header present?
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
+$as_echo_n "checking $2 presence... " >&6; }
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <$2>
+_ACEOF
+if ac_fn_c_try_cpp "$LINENO"; then :
+ ac_header_preproc=yes
+else
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
+$as_echo "$ac_header_preproc" >&6; }
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
+ yes:no: )
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
+$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
+$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
+ ;;
+ no:yes:* )
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
+$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
+$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
+$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
+$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
+$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
+ ;;
+esac
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
+$as_echo_n "checking for $2... " >&6; }
+if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
+ $as_echo_n "(cached) " >&6
+else
+ eval "$3=\$ac_header_compiler"
+fi
+eval ac_res=\$$3
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+fi
+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
+
+} # ac_fn_c_check_header_mongrel
+
+# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
+# -------------------------------------------------------
+# Tests whether HEADER exists and can be compiled using the include files in
+# INCLUDES, setting the cache variable VAR accordingly.
+ac_fn_c_check_header_compile ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
+$as_echo_n "checking for $2... " >&6; }
+if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+#include <$2>
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ eval "$3=yes"
+else
+ eval "$3=no"
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+eval ac_res=\$$3
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
+
+} # ac_fn_c_check_header_compile
+
+# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
+# -------------------------------------------
+# Tests whether TYPE exists after having included INCLUDES, setting cache
+# variable VAR accordingly.
+ac_fn_c_check_type ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
+$as_echo_n "checking for $2... " >&6; }
+if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
+ $as_echo_n "(cached) " >&6
+else
+ eval "$3=no"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+int
+main ()
+{
+if (sizeof ($2))
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+int
+main ()
+{
+if (sizeof (($2)))
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+
+else
+ eval "$3=yes"
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+eval ac_res=\$$3
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
+
+} # ac_fn_c_check_type
+
+# ac_fn_c_find_uintX_t LINENO BITS VAR
+# ------------------------------------
+# Finds an unsigned integer type with width BITS, setting cache variable VAR
+# accordingly.
+ac_fn_c_find_uintX_t ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
+$as_echo_n "checking for uint$2_t... " >&6; }
+if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
+ $as_echo_n "(cached) " >&6
+else
+ eval "$3=no"
+ for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
+ 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
+test_array [0] = 0
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ case $ac_type in #(
+ uint$2_t) :
+ eval "$3=yes" ;; #(
+ *) :
+ eval "$3=\$ac_type" ;;
+esac
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ eval as_val=\$$3
+ if test "x$as_val" = x""no; then :
+
+else
+ break
+fi
+ done
+fi
+eval ac_res=\$$3
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
+
+} # ac_fn_c_find_uintX_t
+
+# ac_fn_c_try_link LINENO
+# -----------------------
+# Try to link conftest.$ac_ext, and return whether this succeeded.
+ac_fn_c_try_link ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ rm -f conftest.$ac_objext conftest$ac_exeext
+ if { { ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_link") 2>conftest.err
+ ac_status=$?
+ if test -s conftest.err; then
+ grep -v '^ *+' conftest.err >conftest.er1
+ cat conftest.er1 >&5
+ mv -f conftest.er1 conftest.err
+ fi
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then :
+ ac_retval=0
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_retval=1
+fi
+ # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
+ # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
+ # interfere with the next link command; also delete a directory that is
+ # left behind by Apple's compiler. We do this before executing the actions.
+ rm -rf conftest.dSYM conftest_ipa8_conftest.oo
+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
+ return $ac_retval
+
+} # ac_fn_c_try_link
+
+# ac_fn_c_check_func LINENO FUNC VAR
+# ----------------------------------
+# Tests whether FUNC exists, setting the cache variable VAR accordingly
+ac_fn_c_check_func ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
+$as_echo_n "checking for $2... " >&6; }
+if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define $2 innocuous_$2
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $2 (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef $2
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char $2 ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined __stub_$2 || defined __stub___$2
+choke me
+#endif
+
+int
+main ()
+{
+return $2 ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ eval "$3=yes"
+else
+ eval "$3=no"
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+eval ac_res=\$$3
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
+
+} # ac_fn_c_check_func
+cat >config.log <<_ACEOF
+This file contains any messages produced by compilers while
+running configure, to aid debugging if configure makes a mistake.
+
+It was created by $as_me, which was
+generated by GNU Autoconf 2.64. Invocation command line was
+
+ $ $0 $@
+
+_ACEOF
+exec 5>>config.log
+{
+cat <<_ASUNAME
+## --------- ##
+## Platform. ##
+## --------- ##
+
+hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
+uname -m = `(uname -m) 2>/dev/null || echo unknown`
+uname -r = `(uname -r) 2>/dev/null || echo unknown`
+uname -s = `(uname -s) 2>/dev/null || echo unknown`
+uname -v = `(uname -v) 2>/dev/null || echo unknown`
+
+/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
+/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
+
+/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
+/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
+/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
+/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
+/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
+/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
+
+_ASUNAME
+
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ $as_echo "PATH: $as_dir"
+ done
+IFS=$as_save_IFS
+
+} >&5
+
+cat >&5 <<_ACEOF
+
+
+## ----------- ##
+## Core tests. ##
+## ----------- ##
+
+_ACEOF
+
+
+# Keep a trace of the command line.
+# Strip out --no-create and --no-recursion so they do not pile up.
+# Strip out --silent because we don't want to record it for future runs.
+# Also quote any args containing shell meta-characters.
+# Make two passes to allow for proper duplicate-argument suppression.
+ac_configure_args=
+ac_configure_args0=
+ac_configure_args1=
+ac_must_keep_next=false
+for ac_pass in 1 2
+do
+ for ac_arg
+ do
+ case $ac_arg in
+ -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+ | -silent | --silent | --silen | --sile | --sil)
+ continue ;;
+ *\'*)
+ ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
+ esac
+ case $ac_pass in
+ 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
+ 2)
+ as_fn_append ac_configure_args1 " '$ac_arg'"
+ if test $ac_must_keep_next = true; then
+ ac_must_keep_next=false # Got value, back to normal.
+ else
+ case $ac_arg in
+ *=* | --config-cache | -C | -disable-* | --disable-* \
+ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
+ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
+ | -with-* | --with-* | -without-* | --without-* | --x)
+ case "$ac_configure_args0 " in
+ "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
+ esac
+ ;;
+ -* ) ac_must_keep_next=true ;;
+ esac
+ fi
+ as_fn_append ac_configure_args " '$ac_arg'"
+ ;;
+ esac
+ done
+done
+{ ac_configure_args0=; unset ac_configure_args0;}
+{ ac_configure_args1=; unset ac_configure_args1;}
+
+# When interrupted or exit'd, cleanup temporary files, and complete
+# config.log. We remove comments because anyway the quotes in there
+# would cause problems or look ugly.
+# WARNING: Use '\'' to represent an apostrophe within the trap.
+# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
+trap 'exit_status=$?
+ # Save into config.log some information that might help in debugging.
+ {
+ echo
+
+ cat <<\_ASBOX
+## ---------------- ##
+## Cache variables. ##
+## ---------------- ##
+_ASBOX
+ echo
+ # The following way of writing the cache mishandles newlines in values,
+(
+ for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
+ eval ac_val=\$$ac_var
+ case $ac_val in #(
+ *${as_nl}*)
+ case $ac_var in #(
+ *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
+$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
+ esac
+ case $ac_var in #(
+ _ | IFS | as_nl) ;; #(
+ BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
+ *) { eval $ac_var=; unset $ac_var;} ;;
+ esac ;;
+ esac
+ done
+ (set) 2>&1 |
+ case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
+ *${as_nl}ac_space=\ *)
+ sed -n \
+ "s/'\''/'\''\\\\'\'''\''/g;
+ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
+ ;; #(
+ *)
+ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
+ ;;
+ esac |
+ sort
+)
+ echo
+
+ cat <<\_ASBOX
+## ----------------- ##
+## Output variables. ##
+## ----------------- ##
+_ASBOX
+ echo
+ for ac_var in $ac_subst_vars
+ do
+ eval ac_val=\$$ac_var
+ case $ac_val in
+ *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
+ esac
+ $as_echo "$ac_var='\''$ac_val'\''"
+ done | sort
+ echo
+
+ if test -n "$ac_subst_files"; then
+ cat <<\_ASBOX
+## ------------------- ##
+## File substitutions. ##
+## ------------------- ##
+_ASBOX
+ echo
+ for ac_var in $ac_subst_files
+ do
+ eval ac_val=\$$ac_var
+ case $ac_val in
+ *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
+ esac
+ $as_echo "$ac_var='\''$ac_val'\''"
+ done | sort
+ echo
+ fi
+
+ if test -s confdefs.h; then
+ cat <<\_ASBOX
+## ----------- ##
+## confdefs.h. ##
+## ----------- ##
+_ASBOX
+ echo
+ cat confdefs.h
+ echo
+ fi
+ test "$ac_signal" != 0 &&
+ $as_echo "$as_me: caught signal $ac_signal"
+ $as_echo "$as_me: exit $exit_status"
+ } >&5
+ rm -f core *.core core.conftest.* &&
+ rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
+ exit $exit_status
+' 0
+for ac_signal in 1 2 13 15; do
+ trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
+done
+ac_signal=0
+
+# confdefs.h avoids OS command line length limits that DEFS can exceed.
+rm -f -r conftest* confdefs.h
+
+$as_echo "/* confdefs.h */" > confdefs.h
+
+# Predefined preprocessor variables.
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_NAME "$PACKAGE_NAME"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_VERSION "$PACKAGE_VERSION"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_STRING "$PACKAGE_STRING"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_URL "$PACKAGE_URL"
+_ACEOF
+
+
+# Let the site file select an alternate cache file if it wants to.
+# Prefer an explicitly selected file to automatically selected ones.
+ac_site_file1=NONE
+ac_site_file2=NONE
+if test -n "$CONFIG_SITE"; then
+ ac_site_file1=$CONFIG_SITE
+elif test "x$prefix" != xNONE; then
+ ac_site_file1=$prefix/share/config.site
+ ac_site_file2=$prefix/etc/config.site
+else
+ ac_site_file1=$ac_default_prefix/share/config.site
+ ac_site_file2=$ac_default_prefix/etc/config.site
+fi
+for ac_site_file in "$ac_site_file1" "$ac_site_file2"
+do
+ test "x$ac_site_file" = xNONE && continue
+ if test -r "$ac_site_file"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
+$as_echo "$as_me: loading site script $ac_site_file" >&6;}
+ sed 's/^/| /' "$ac_site_file" >&5
+ . "$ac_site_file"
+ fi
+done
+
+if test -r "$cache_file"; then
+ # Some versions of bash will fail to source /dev/null (special
+ # files actually), so we avoid doing that.
+ if test -f "$cache_file"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
+$as_echo "$as_me: loading cache $cache_file" >&6;}
+ case $cache_file in
+ [\\/]* | ?:[\\/]* ) . "$cache_file";;
+ *) . "./$cache_file";;
+ esac
+ fi
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
+$as_echo "$as_me: creating cache $cache_file" >&6;}
+ >$cache_file
+fi
+
+# Check that the precious variables saved in the cache have kept the same
+# value.
+ac_cache_corrupted=false
+for ac_var in $ac_precious_vars; do
+ eval ac_old_set=\$ac_cv_env_${ac_var}_set
+ eval ac_new_set=\$ac_env_${ac_var}_set
+ eval ac_old_val=\$ac_cv_env_${ac_var}_value
+ eval ac_new_val=\$ac_env_${ac_var}_value
+ case $ac_old_set,$ac_new_set in
+ set,)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
+$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
+ ac_cache_corrupted=: ;;
+ ,set)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
+$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
+ ac_cache_corrupted=: ;;
+ ,);;
+ *)
+ if test "x$ac_old_val" != "x$ac_new_val"; then
+ # differences in whitespace do not lead to failure.
+ ac_old_val_w=`echo x $ac_old_val`
+ ac_new_val_w=`echo x $ac_new_val`
+ if test "$ac_old_val_w" != "$ac_new_val_w"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
+$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
+ ac_cache_corrupted=:
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
+$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
+ eval $ac_var=\$ac_old_val
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
+$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
+$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
+ fi;;
+ esac
+ # Pass precious variables to config.status.
+ if test "$ac_new_set" = set; then
+ case $ac_new_val in
+ *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
+ *) ac_arg=$ac_var=$ac_new_val ;;
+ esac
+ case " $ac_configure_args " in
+ *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
+ *) as_fn_append ac_configure_args " '$ac_arg'" ;;
+ esac
+ fi
+done
+if $ac_cache_corrupted; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
+$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
+ as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
+fi
+## -------------------- ##
+## Main body of script. ##
+## -------------------- ##
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+
+ac_config_headers="$ac_config_headers mod_security2_config.h"
+
+ac_aux_dir=
+for ac_dir in build "$srcdir"/build; do
+ for ac_t in install-sh install.sh shtool; do
+ if test -f "$ac_dir/$ac_t"; then
+ ac_aux_dir=$ac_dir
+ ac_install_sh="$ac_aux_dir/$ac_t -c"
+ break 2
+ fi
+ done
+done
+if test -z "$ac_aux_dir"; then
+ as_fn_error "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
+fi
+
+# These three variables are undocumented and unsupported,
+# and are intended to be withdrawn in a future Autoconf release.
+# They can cause serious problems if a builder's source tree is in a directory
+# whose full name contains unusual characters.
+ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
+ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
+ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
+
+
+
+# Checks for programs.
+for ac_prog in gawk mawk nawk awk
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_AWK+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$AWK"; then
+ ac_cv_prog_AWK="$AWK" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_AWK="$ac_prog"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+AWK=$ac_cv_prog_AWK
+if test -n "$AWK"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
+$as_echo "$AWK" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$AWK" && break
+done
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
+set dummy ${ac_tool_prefix}gcc; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_CC+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_CC="${ac_tool_prefix}gcc"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
+$as_echo "$CC" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_CC"; then
+ ac_ct_CC=$CC
+ # Extract the first word of "gcc", so it can be a program name with args.
+set dummy gcc; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_CC"; then
+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_CC="gcc"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
+$as_echo "$ac_ct_CC" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_CC" = x; then
+ CC=""
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ CC=$ac_ct_CC
+ fi
+else
+ CC="$ac_cv_prog_CC"
+fi
+
+if test -z "$CC"; then
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
+set dummy ${ac_tool_prefix}cc; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_CC+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_CC="${ac_tool_prefix}cc"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
+$as_echo "$CC" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ fi
+fi
+if test -z "$CC"; then
+ # Extract the first word of "cc", so it can be a program name with args.
+set dummy cc; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_CC+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+ ac_prog_rejected=no
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
+ ac_prog_rejected=yes
+ continue
+ fi
+ ac_cv_prog_CC="cc"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+if test $ac_prog_rejected = yes; then
+ # We found a bogon in the path, so make sure we never use it.
+ set dummy $ac_cv_prog_CC
+ shift
+ if test $# != 0; then
+ # We chose a different compiler from the bogus one.
+ # However, it has the same basename, so the bogon will be chosen
+ # first if we set CC to just the basename; use the full file name.
+ shift
+ ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
+ fi
+fi
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
+$as_echo "$CC" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$CC"; then
+ if test -n "$ac_tool_prefix"; then
+ for ac_prog in cl.exe
+ do
+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_CC+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
+$as_echo "$CC" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$CC" && break
+ done
+fi
+if test -z "$CC"; then
+ ac_ct_CC=$CC
+ for ac_prog in cl.exe
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_CC"; then
+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_CC="$ac_prog"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
+$as_echo "$ac_ct_CC" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$ac_ct_CC" && break
+done
+
+ if test "x$ac_ct_CC" = x; then
+ CC=""
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ CC=$ac_ct_CC
+ fi
+fi
+
+fi
+
+
+test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error "no acceptable C compiler found in \$PATH
+See \`config.log' for more details." "$LINENO" 5; }
+
+# Provide some information about the compiler.
+$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
+set X $ac_compile
+ac_compiler=$2
+for ac_option in --version -v -V -qversion; do
+ { { ac_try="$ac_compiler $ac_option >&5"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_compiler $ac_option >&5") 2>conftest.err
+ ac_status=$?
+ if test -s conftest.err; then
+ sed '10a\
+... rest of stderr output deleted ...
+ 10q' conftest.err >conftest.er1
+ cat conftest.er1 >&5
+ rm -f conftest.er1 conftest.err
+ fi
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+done
+
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <stdio.h>
+int
+main ()
+{
+FILE *f = fopen ("conftest.out", "w");
+ return ferror (f) || fclose (f) != 0;
+
+ ;
+ return 0;
+}
+_ACEOF
+ac_clean_files_save=$ac_clean_files
+ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
+# Try to create an executable without -o first, disregard a.out.
+# It will help us diagnose broken compilers, and finding out an intuition
+# of exeext.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
+$as_echo_n "checking for C compiler default output file name... " >&6; }
+ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
+
+# The possible output files:
+ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
+
+ac_rmfiles=
+for ac_file in $ac_files
+do
+ case $ac_file in
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
+ * ) ac_rmfiles="$ac_rmfiles $ac_file";;
+ esac
+done
+rm -f $ac_rmfiles
+
+if { { ac_try="$ac_link_default"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_link_default") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then :
+ # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
+# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
+# in a Makefile. We should not override ac_cv_exeext if it was cached,
+# so that the user can short-circuit this test for compilers unknown to
+# Autoconf.
+for ac_file in $ac_files ''
+do
+ test -f "$ac_file" || continue
+ case $ac_file in
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
+ ;;
+ [ab].out )
+ # We found the default executable, but exeext='' is most
+ # certainly right.
+ break;;
+ *.* )
+ if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
+ then :; else
+ ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
+ fi
+ # We set ac_cv_exeext here because the later test for it is not
+ # safe: cross compilers may not add the suffix if given an `-o'
+ # argument, so we may need to know it at that point already.
+ # Even if this section looks crufty: it has the advantage of
+ # actually working.
+ break;;
+ * )
+ break;;
+ esac
+done
+test "$ac_cv_exeext" = no && ac_cv_exeext=
+
+else
+ ac_file=''
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
+$as_echo "$ac_file" >&6; }
+if test -z "$ac_file"; then :
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+{ as_fn_set_status 77
+as_fn_error "C compiler cannot create executables
+See \`config.log' for more details." "$LINENO" 5; }; }
+fi
+ac_exeext=$ac_cv_exeext
+
+# Check that the compiler produces executables we can run. If not, either
+# the compiler is broken, or we cross compile.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
+$as_echo_n "checking whether the C compiler works... " >&6; }
+# If not cross compiling, check that we can run a simple program.
+if test "$cross_compiling" != yes; then
+ if { ac_try='./$ac_file'
+ { { case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; }; then
+ cross_compiling=no
+ else
+ if test "$cross_compiling" = maybe; then
+ cross_compiling=yes
+ else
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error "cannot run C compiled programs.
+If you meant to cross compile, use \`--host'.
+See \`config.log' for more details." "$LINENO" 5; }
+ fi
+ fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
+ac_clean_files=$ac_clean_files_save
+# Check that the compiler produces executables we can run. If not, either
+# the compiler is broken, or we cross compile.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
+$as_echo_n "checking whether we are cross compiling... " >&6; }
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
+$as_echo "$cross_compiling" >&6; }
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
+$as_echo_n "checking for suffix of executables... " >&6; }
+if { { ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then :
+ # If both `conftest.exe' and `conftest' are `present' (well, observable)
+# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
+# work properly (i.e., refer to `conftest.exe'), while it won't with
+# `rm'.
+for ac_file in conftest.exe conftest conftest.*; do
+ test -f "$ac_file" || continue
+ case $ac_file in
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
+ *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
+ break;;
+ * ) break;;
+ esac
+done
+else
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error "cannot compute suffix of executables: cannot compile and link
+See \`config.log' for more details." "$LINENO" 5; }
+fi
+rm -f conftest$ac_cv_exeext
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
+$as_echo "$ac_cv_exeext" >&6; }
+
+rm -f conftest.$ac_ext
+EXEEXT=$ac_cv_exeext
+ac_exeext=$EXEEXT
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
+$as_echo_n "checking for suffix of object files... " >&6; }
+if test "${ac_cv_objext+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.o conftest.obj
+if { { ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_compile") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then :
+ for ac_file in conftest.o conftest.obj conftest.*; do
+ test -f "$ac_file" || continue;
+ case $ac_file in
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
+ *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
+ break;;
+ esac
+done
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error "cannot compute suffix of object files: cannot compile
+See \`config.log' for more details." "$LINENO" 5; }
+fi
+rm -f conftest.$ac_cv_objext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
+$as_echo "$ac_cv_objext" >&6; }
+OBJEXT=$ac_cv_objext
+ac_objext=$OBJEXT
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
+$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
+if test "${ac_cv_c_compiler_gnu+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+#ifndef __GNUC__
+ choke me
+#endif
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_compiler_gnu=yes
+else
+ ac_compiler_gnu=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ac_cv_c_compiler_gnu=$ac_compiler_gnu
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
+$as_echo "$ac_cv_c_compiler_gnu" >&6; }
+if test $ac_compiler_gnu = yes; then
+ GCC=yes
+else
+ GCC=
+fi
+ac_test_CFLAGS=${CFLAGS+set}
+ac_save_CFLAGS=$CFLAGS
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
+$as_echo_n "checking whether $CC accepts -g... " >&6; }
+if test "${ac_cv_prog_cc_g+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_save_c_werror_flag=$ac_c_werror_flag
+ ac_c_werror_flag=yes
+ ac_cv_prog_cc_g=no
+ CFLAGS="-g"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_prog_cc_g=yes
+else
+ CFLAGS=""
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+
+else
+ ac_c_werror_flag=$ac_save_c_werror_flag
+ CFLAGS="-g"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_prog_cc_g=yes
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ ac_c_werror_flag=$ac_save_c_werror_flag
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
+$as_echo "$ac_cv_prog_cc_g" >&6; }
+if test "$ac_test_CFLAGS" = set; then
+ CFLAGS=$ac_save_CFLAGS
+elif test $ac_cv_prog_cc_g = yes; then
+ if test "$GCC" = yes; then
+ CFLAGS="-g -O2"
+ else
+ CFLAGS="-g"
+ fi
+else
+ if test "$GCC" = yes; then
+ CFLAGS="-O2"
+ else
+ CFLAGS=
+ fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
+$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
+if test "${ac_cv_prog_cc_c89+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_cv_prog_cc_c89=no
+ac_save_CC=$CC
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <stdarg.h>
+#include <stdio.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
+struct buf { int x; };
+FILE * (*rcsopen) (struct buf *, struct stat *, int);
+static char *e (p, i)
+ char **p;
+ int i;
+{
+ return p[i];
+}
+static char *f (char * (*g) (char **, int), char **p, ...)
+{
+ char *s;
+ va_list v;
+ va_start (v,p);
+ s = g (p, va_arg (v,int));
+ va_end (v);
+ return s;
+}
+
+/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
+ function prototypes and stuff, but not '\xHH' hex character constants.
+ These don't provoke an error unfortunately, instead are silently treated
+ as 'x'. The following induces an error, until -std is added to get
+ proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
+ array size at least. It's necessary to write '\x00'==0 to get something
+ that's true only with -std. */
+int osf4_cc_array ['\x00' == 0 ? 1 : -1];
+
+/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
+ inside strings and character constants. */
+#define FOO(x) 'x'
+int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
+
+int test (int i, double x);
+struct s1 {int (*f) (int a);};
+struct s2 {int (*f) (double a);};
+int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
+int argc;
+char **argv;
+int
+main ()
+{
+return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
+ ;
+ return 0;
+}
+_ACEOF
+for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
+ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
+do
+ CC="$ac_save_CC $ac_arg"
+ if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_prog_cc_c89=$ac_arg
+fi
+rm -f core conftest.err conftest.$ac_objext
+ test "x$ac_cv_prog_cc_c89" != "xno" && break
+done
+rm -f conftest.$ac_ext
+CC=$ac_save_CC
+
+fi
+# AC_CACHE_VAL
+case "x$ac_cv_prog_cc_c89" in
+ x)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
+$as_echo "none needed" >&6; } ;;
+ xno)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
+$as_echo "unsupported" >&6; } ;;
+ *)
+ CC="$CC $ac_cv_prog_cc_c89"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
+$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
+esac
+if test "x$ac_cv_prog_cc_c89" != xno; then :
+
+fi
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
+$as_echo_n "checking how to run the C preprocessor... " >&6; }
+# On Suns, sometimes $CPP names a directory.
+if test -n "$CPP" && test -d "$CPP"; then
+ CPP=
+fi
+if test -z "$CPP"; then
+ if test "${ac_cv_prog_CPP+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ # Double quotes because CPP needs to be expanded
+ for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
+ do
+ ac_preproc_ok=false
+for ac_c_preproc_warn_flag in '' yes
+do
+ # Use a header file that comes with gcc, so configuring glibc
+ # with a fresh cross-compiler works.
+ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ # <limits.h> exists even on freestanding compilers.
+ # On the NeXT, cc -E runs the code through the compiler's parser,
+ # not just through cpp. "Syntax error" is here to catch this case.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+ Syntax error
+_ACEOF
+if ac_fn_c_try_cpp "$LINENO"; then :
+
+else
+ # Broken: fails on valid input.
+continue
+fi
+rm -f conftest.err conftest.$ac_ext
+
+ # OK, works on sane cases. Now check whether nonexistent headers
+ # can be detected and how.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <ac_nonexistent.h>
+_ACEOF
+if ac_fn_c_try_cpp "$LINENO"; then :
+ # Broken: success on invalid input.
+continue
+else
+ # Passes both tests.
+ac_preproc_ok=:
+break
+fi
+rm -f conftest.err conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.err conftest.$ac_ext
+if $ac_preproc_ok; then :
+ break
+fi
+
+ done
+ ac_cv_prog_CPP=$CPP
+
+fi
+ CPP=$ac_cv_prog_CPP
+else
+ ac_cv_prog_CPP=$CPP
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
+$as_echo "$CPP" >&6; }
+ac_preproc_ok=false
+for ac_c_preproc_warn_flag in '' yes
+do
+ # Use a header file that comes with gcc, so configuring glibc
+ # with a fresh cross-compiler works.
+ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ # <limits.h> exists even on freestanding compilers.
+ # On the NeXT, cc -E runs the code through the compiler's parser,
+ # not just through cpp. "Syntax error" is here to catch this case.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+ Syntax error
+_ACEOF
+if ac_fn_c_try_cpp "$LINENO"; then :
+
+else
+ # Broken: fails on valid input.
+continue
+fi
+rm -f conftest.err conftest.$ac_ext
+
+ # OK, works on sane cases. Now check whether nonexistent headers
+ # can be detected and how.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <ac_nonexistent.h>
+_ACEOF
+if ac_fn_c_try_cpp "$LINENO"; then :
+ # Broken: success on invalid input.
+continue
+else
+ # Passes both tests.
+ac_preproc_ok=:
+break
+fi
+rm -f conftest.err conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.err conftest.$ac_ext
+if $ac_preproc_ok; then :
+
+else
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error "C preprocessor \"$CPP\" fails sanity check
+See \`config.log' for more details." "$LINENO" 5; }
+fi
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+# Find a good install program. We prefer a C program (faster),
+# so one script is as good as another. But avoid the broken or
+# incompatible versions:
+# SysV /etc/install, /usr/sbin/install
+# SunOS /usr/etc/install
+# IRIX /sbin/install
+# AIX /bin/install
+# AmigaOS /C/install, which installs bootblocks on floppy discs
+# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
+# AFS /usr/afsws/bin/install, which mishandles nonexistent args
+# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
+# OS/2's system install, which has a completely different semantic
+# ./install, which can be erroneously created by make from ./install.sh.
+# Reject install programs that cannot install multiple files.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
+$as_echo_n "checking for a BSD-compatible install... " >&6; }
+if test -z "$INSTALL"; then
+if test "${ac_cv_path_install+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ # Account for people who put trailing slashes in PATH elements.
+case $as_dir/ in #((
+ ./ | .// | /[cC]/* | \
+ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
+ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
+ /usr/ucb/* ) ;;
+ *)
+ # OSF1 and SCO ODT 3.0 have their own names for install.
+ # Don't use installbsd from OSF since it installs stuff as root
+ # by default.
+ for ac_prog in ginstall scoinst install; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
+ if test $ac_prog = install &&
+ grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
+ # AIX install. It has an incompatible calling convention.
+ :
+ elif test $ac_prog = install &&
+ grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
+ # program-specific install script used by HP pwplus--don't use.
+ :
+ else
+ rm -rf conftest.one conftest.two conftest.dir
+ echo one > conftest.one
+ echo two > conftest.two
+ mkdir conftest.dir
+ if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
+ test -s conftest.one && test -s conftest.two &&
+ test -s conftest.dir/conftest.one &&
+ test -s conftest.dir/conftest.two
+ then
+ ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
+ break 3
+ fi
+ fi
+ fi
+ done
+ done
+ ;;
+esac
+
+ done
+IFS=$as_save_IFS
+
+rm -rf conftest.one conftest.two conftest.dir
+
+fi
+ if test "${ac_cv_path_install+set}" = set; then
+ INSTALL=$ac_cv_path_install
+ else
+ # As a last resort, use the slow shell script. Don't cache a
+ # value for INSTALL within a source directory, because that will
+ # break other packages using the cache if that directory is
+ # removed, or if the value is a relative name.
+ INSTALL=$ac_install_sh
+ fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
+$as_echo "$INSTALL" >&6; }
+
+# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
+# It thinks the first close brace ends the variable substitution.
+test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
+
+test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
+
+test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
+$as_echo_n "checking whether ln -s works... " >&6; }
+LN_S=$as_ln_s
+if test "$LN_S" = "ln -s"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
+$as_echo "no, using $LN_S" >&6; }
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
+$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
+set x ${MAKE-make}
+ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
+if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.make <<\_ACEOF
+SHELL = /bin/sh
+all:
+ @echo '@@@%%%=$(MAKE)=@@@%%%'
+_ACEOF
+# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
+case `${MAKE-make} -f conftest.make 2>/dev/null` in
+ *@@@%%%=?*=@@@%%%*)
+ eval ac_cv_prog_make_${ac_make}_set=yes;;
+ *)
+ eval ac_cv_prog_make_${ac_make}_set=no;;
+esac
+rm -f conftest.make
+fi
+if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ SET_MAKE=
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ SET_MAKE="MAKE=${MAKE-make}"
+fi
+
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
+set dummy ${ac_tool_prefix}ranlib; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_RANLIB+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$RANLIB"; then
+ ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+RANLIB=$ac_cv_prog_RANLIB
+if test -n "$RANLIB"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
+$as_echo "$RANLIB" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_RANLIB"; then
+ ac_ct_RANLIB=$RANLIB
+ # Extract the first word of "ranlib", so it can be a program name with args.
+set dummy ranlib; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_RANLIB"; then
+ ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_RANLIB="ranlib"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
+if test -n "$ac_ct_RANLIB"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
+$as_echo "$ac_ct_RANLIB" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_RANLIB" = x; then
+ RANLIB=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ RANLIB=$ac_ct_RANLIB
+ fi
+else
+ RANLIB="$ac_cv_prog_RANLIB"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
+$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
+if test "${ac_cv_path_GREP+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -z "$GREP"; then
+ ac_path_GREP_found=false
+ # Loop through the user's path and test for each of PROGNAME-LIST
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_prog in grep ggrep; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
+ { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
+# Check for GNU ac_path_GREP and select it if it is found.
+ # Check for GNU $ac_path_GREP
+case `"$ac_path_GREP" --version 2>&1` in
+*GNU*)
+ ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
+*)
+ ac_count=0
+ $as_echo_n 0123456789 >"conftest.in"
+ while :
+ do
+ cat "conftest.in" "conftest.in" >"conftest.tmp"
+ mv "conftest.tmp" "conftest.in"
+ cp "conftest.in" "conftest.nl"
+ $as_echo 'GREP' >> "conftest.nl"
+ "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
+ as_fn_arith $ac_count + 1 && ac_count=$as_val
+ if test $ac_count -gt ${ac_path_GREP_max-0}; then
+ # Best one so far, save it but keep looking for a better one
+ ac_cv_path_GREP="$ac_path_GREP"
+ ac_path_GREP_max=$ac_count
+ fi
+ # 10*(2^10) chars as input seems more than enough
+ test $ac_count -gt 10 && break
+ done
+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
+esac
+
+ $ac_path_GREP_found && break 3
+ done
+ done
+ done
+IFS=$as_save_IFS
+ if test -z "$ac_cv_path_GREP"; then
+ as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
+ fi
+else
+ ac_cv_path_GREP=$GREP
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
+$as_echo "$ac_cv_path_GREP" >&6; }
+ GREP="$ac_cv_path_GREP"
+
+
+for ac_prog in perl perl5
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_path_PERL+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $PERL in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+ ;;
+esac
+fi
+PERL=$ac_cv_path_PERL
+if test -n "$PERL"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
+$as_echo "$PERL" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$PERL" && break
+done
+
+for ac_prog in env printenv
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_path_ENV_CMD+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $ENV_CMD in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_ENV_CMD="$ENV_CMD" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_path_ENV_CMD="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+ ;;
+esac
+fi
+ENV_CMD=$ac_cv_path_ENV_CMD
+if test -n "$ENV_CMD"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENV_CMD" >&5
+$as_echo "$ENV_CMD" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$ENV_CMD" && break
+done
+
+
+# Checks for header files.
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
+$as_echo_n "checking for egrep... " >&6; }
+if test "${ac_cv_path_EGREP+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
+ then ac_cv_path_EGREP="$GREP -E"
+ else
+ if test -z "$EGREP"; then
+ ac_path_EGREP_found=false
+ # Loop through the user's path and test for each of PROGNAME-LIST
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_prog in egrep; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
+ { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
+# Check for GNU ac_path_EGREP and select it if it is found.
+ # Check for GNU $ac_path_EGREP
+case `"$ac_path_EGREP" --version 2>&1` in
+*GNU*)
+ ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
+*)
+ ac_count=0
+ $as_echo_n 0123456789 >"conftest.in"
+ while :
+ do
+ cat "conftest.in" "conftest.in" >"conftest.tmp"
+ mv "conftest.tmp" "conftest.in"
+ cp "conftest.in" "conftest.nl"
+ $as_echo 'EGREP' >> "conftest.nl"
+ "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
+ as_fn_arith $ac_count + 1 && ac_count=$as_val
+ if test $ac_count -gt ${ac_path_EGREP_max-0}; then
+ # Best one so far, save it but keep looking for a better one
+ ac_cv_path_EGREP="$ac_path_EGREP"
+ ac_path_EGREP_max=$ac_count
+ fi
+ # 10*(2^10) chars as input seems more than enough
+ test $ac_count -gt 10 && break
+ done
+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
+esac
+
+ $ac_path_EGREP_found && break 3
+ done
+ done
+ done
+IFS=$as_save_IFS
+ if test -z "$ac_cv_path_EGREP"; then
+ as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
+ fi
+else
+ ac_cv_path_EGREP=$EGREP
+fi
+
+ fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
+$as_echo "$ac_cv_path_EGREP" >&6; }
+ EGREP="$ac_cv_path_EGREP"
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
+$as_echo_n "checking for ANSI C header files... " >&6; }
+if test "${ac_cv_header_stdc+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <stdlib.h>
+#include <stdarg.h>
+#include <string.h>
+#include <float.h>
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_header_stdc=yes
+else
+ ac_cv_header_stdc=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+
+if test $ac_cv_header_stdc = yes; then
+ # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <string.h>
+
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ $EGREP "memchr" >/dev/null 2>&1; then :
+
+else
+ ac_cv_header_stdc=no
+fi
+rm -f conftest*
+
+fi
+
+if test $ac_cv_header_stdc = yes; then
+ # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <stdlib.h>
+
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ $EGREP "free" >/dev/null 2>&1; then :
+
+else
+ ac_cv_header_stdc=no
+fi
+rm -f conftest*
+
+fi
+
+if test $ac_cv_header_stdc = yes; then
+ # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
+ if test "$cross_compiling" = yes; then :
+ :
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <ctype.h>
+#include <stdlib.h>
+#if ((' ' & 0x0FF) == 0x020)
+# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
+# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
+#else
+# define ISLOWER(c) \
+ (('a' <= (c) && (c) <= 'i') \
+ || ('j' <= (c) && (c) <= 'r') \
+ || ('s' <= (c) && (c) <= 'z'))
+# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
+#endif
+
+#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
+int
+main ()
+{
+ int i;
+ for (i = 0; i < 256; i++)
+ if (XOR (islower (i), ISLOWER (i))
+ || toupper (i) != TOUPPER (i))
+ return 2;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_run "$LINENO"; then :
+
+else
+ ac_cv_header_stdc=no
+fi
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+ conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+
+fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
+$as_echo "$ac_cv_header_stdc" >&6; }
+if test $ac_cv_header_stdc = yes; then
+
+$as_echo "#define STDC_HEADERS 1" >>confdefs.h
+
+fi
+
+# On IRIX 5.3, sys/types and inttypes.h are conflicting.
+for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
+ inttypes.h stdint.h unistd.h
+do :
+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
+"
+eval as_val=\$$as_ac_Header
+ if test "x$as_val" = x""yes; then :
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+
+for ac_header in fcntl.h limits.h stdlib.h string.h unistd.h sys/types.h sys/stat.h
+do :
+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
+eval as_val=\$$as_ac_Header
+ if test "x$as_val" = x""yes; then :
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+
+# Checks for typedefs, structures, and compiler characteristics.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
+$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
+if test "${ac_cv_c_const+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+/* FIXME: Include the comments suggested by Paul. */
+#ifndef __cplusplus
+ /* Ultrix mips cc rejects this. */
+ typedef int charset[2];
+ const charset cs;
+ /* SunOS 4.1.1 cc rejects this. */
+ char const *const *pcpcc;
+ char **ppc;
+ /* NEC SVR4.0.2 mips cc rejects this. */
+ struct point {int x, y;};
+ static struct point const zero = {0,0};
+ /* AIX XL C 1.02.0.0 rejects this.
+ It does not let you subtract one const X* pointer from another in
+ an arm of an if-expression whose if-part is not a constant
+ expression */
+ const char *g = "string";
+ pcpcc = &g + (g ? g-g : 0);
+ /* HPUX 7.0 cc rejects these. */
+ ++pcpcc;
+ ppc = (char**) pcpcc;
+ pcpcc = (char const *const *) ppc;
+ { /* SCO 3.2v4 cc rejects this. */
+ char *t;
+ char const *s = 0 ? (char *) 0 : (char const *) 0;
+
+ *t++ = 0;
+ if (s) return 0;
+ }
+ { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
+ int x[] = {25, 17};
+ const int *foo = &x[0];
+ ++foo;
+ }
+ { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
+ typedef const int *iptr;
+ iptr p = 0;
+ ++p;
+ }
+ { /* AIX XL C 1.02.0.0 rejects this saying
+ "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
+ struct s { int j; const int *ap[3]; };
+ struct s *b; b->j = 5;
+ }
+ { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
+ const int foo = 10;
+ if (!foo) return 0;
+ }
+ return !cs[0] && !zero.x;
+#endif
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_c_const=yes
+else
+ ac_cv_c_const=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
+$as_echo "$ac_cv_c_const" >&6; }
+if test $ac_cv_c_const = no; then
+
+$as_echo "#define const /**/" >>confdefs.h
+
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
+$as_echo_n "checking for inline... " >&6; }
+if test "${ac_cv_c_inline+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_cv_c_inline=no
+for ac_kw in inline __inline__ __inline; do
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#ifndef __cplusplus
+typedef int foo_t;
+static $ac_kw foo_t static_foo () {return 0; }
+$ac_kw foo_t foo () {return 0; }
+#endif
+
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_c_inline=$ac_kw
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ test "$ac_cv_c_inline" != no && break
+done
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
+$as_echo "$ac_cv_c_inline" >&6; }
+
+case $ac_cv_c_inline in
+ inline | yes) ;;
+ *)
+ case $ac_cv_c_inline in
+ no) ac_val=;;
+ *) ac_val=$ac_cv_c_inline;;
+ esac
+ cat >>confdefs.h <<_ACEOF
+#ifndef __cplusplus
+#define inline $ac_val
+#endif
+_ACEOF
+ ;;
+esac
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
+$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
+if test "${ac_cv_c_restrict+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_cv_c_restrict=no
+ # The order here caters to the fact that C++ does not require restrict.
+ for ac_kw in __restrict __restrict__ _Restrict restrict; do
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+typedef int * int_ptr;
+ int foo (int_ptr $ac_kw ip) {
+ return ip[0];
+ }
+int
+main ()
+{
+int s[1];
+ int * $ac_kw t = s;
+ t[0] = 0;
+ return foo(t)
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_c_restrict=$ac_kw
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ test "$ac_cv_c_restrict" != no && break
+ done
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
+$as_echo "$ac_cv_c_restrict" >&6; }
+
+ case $ac_cv_c_restrict in
+ restrict) ;;
+ no) $as_echo "#define restrict /**/" >>confdefs.h
+ ;;
+ *) cat >>confdefs.h <<_ACEOF
+#define restrict $ac_cv_c_restrict
+_ACEOF
+ ;;
+ esac
+
+ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
+if test "x$ac_cv_type_pid_t" = x""yes; then :
+
+else
+
+cat >>confdefs.h <<_ACEOF
+#define pid_t int
+_ACEOF
+
+fi
+
+ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
+if test "x$ac_cv_type_size_t" = x""yes; then :
+
+else
+
+cat >>confdefs.h <<_ACEOF
+#define size_t unsigned int
+_ACEOF
+
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
+$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
+if test "${ac_cv_struct_tm+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <sys/types.h>
+#include <time.h>
+
+int
+main ()
+{
+struct tm tm;
+ int *p = &tm.tm_sec;
+ return !p;
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_struct_tm=time.h
+else
+ ac_cv_struct_tm=sys/time.h
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
+$as_echo "$ac_cv_struct_tm" >&6; }
+if test $ac_cv_struct_tm = sys/time.h; then
+
+$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
+
+fi
+
+ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
+case $ac_cv_c_uint8_t in #(
+ no|yes) ;; #(
+ *)
+
+$as_echo "#define _UINT8_T 1" >>confdefs.h
+
+
+cat >>confdefs.h <<_ACEOF
+#define uint8_t $ac_cv_c_uint8_t
+_ACEOF
+;;
+ esac
+
+
+# Checks for library functions.
+for ac_header in stdlib.h
+do :
+ ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
+if test "x$ac_cv_header_stdlib_h" = x""yes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_STDLIB_H 1
+_ACEOF
+
+fi
+
+done
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
+$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
+if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test "$cross_compiling" = yes; then :
+ ac_cv_func_malloc_0_nonnull=no
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#if defined STDC_HEADERS || defined HAVE_STDLIB_H
+# include <stdlib.h>
+#else
+char *malloc ();
+#endif
+
+int
+main ()
+{
+return ! malloc (0);
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_run "$LINENO"; then :
+ ac_cv_func_malloc_0_nonnull=yes
+else
+ ac_cv_func_malloc_0_nonnull=no
+fi
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+ conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
+$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
+if test $ac_cv_func_malloc_0_nonnull = yes; then :
+
+$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
+
+else
+ $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
+
+ case " $LIBOBJS " in
+ *" malloc.$ac_objext "* ) ;;
+ *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
+ ;;
+esac
+
+
+$as_echo "#define malloc rpl_malloc" >>confdefs.h
+
+fi
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
+$as_echo_n "checking for working memcmp... " >&6; }
+if test "${ac_cv_func_memcmp_working+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test "$cross_compiling" = yes; then :
+ ac_cv_func_memcmp_working=no
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+
+ /* Some versions of memcmp are not 8-bit clean. */
+ char c0 = '\100', c1 = '\200', c2 = '\201';
+ if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
+ return 1;
+
+ /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
+ or more and with at least one buffer not starting on a 4-byte boundary.
+ William Lewis provided this test program. */
+ {
+ char foo[21];
+ char bar[21];
+ int i;
+ for (i = 0; i < 4; i++)
+ {
+ char *a = foo + i;
+ char *b = bar + i;
+ strcpy (a, "--------01111111");
+ strcpy (b, "--------10000000");
+ if (memcmp (a, b, 16) >= 0)
+ return 1;
+ }
+ return 0;
+ }
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_run "$LINENO"; then :
+ ac_cv_func_memcmp_working=yes
+else
+ ac_cv_func_memcmp_working=no
+fi
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+ conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
+$as_echo "$ac_cv_func_memcmp_working" >&6; }
+test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
+ *" memcmp.$ac_objext "* ) ;;
+ *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
+ ;;
+esac
+
+
+for ac_func in atexit getcwd memmove memset strcasecmp strchr strdup strerror strncasecmp strrchr strstr strtol
+do :
+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
+eval as_val=\$$as_ac_var
+ if test "x$as_val" = x""yes; then :
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+done
+
+
+# Some directories
+MSC_BASE_DIR=`pwd`
+MSC_PKGBASE_DIR="$MSC_BASE_DIR/.."
+MSC_TEST_DIR="$MSC_BASE_DIR/t"
+MSC_REGRESSION_DIR="$MSC_TEST_DIR/regression"
+MSC_REGRESSION_SERVERROOT_DIR="$MSC_REGRESSION_DIR/server_root"
+MSC_REGRESSION_CONF_DIR="$MSC_REGRESSION_SERVERROOT_DIR/conf"
+MSC_REGRESSION_LOGS_DIR="$MSC_REGRESSION_SERVERROOT_DIR/logs"
+MSC_REGRESSION_DOCROOT_DIR="$MSC_REGRESSION_SERVERROOT_DIR/htdocs"
+
+
+
+
+
+
+
+
+
+
+### Configure Options
+
+# Ignore configure errors
+# Check whether --enable-errors was given.
+if test "${enable_errors+set}" = set; then :
+ enableval=$enable_errors;
+ if test "$enableval" != "no"; then
+ report_errors=1
+ else
+ report_errors=0
+ fi
+
+else
+
+ report_errors=1
+
+fi
+
+
+# Verbose output
+# Check whether --enable-verbose-output was given.
+if test "${enable_verbose_output+set}" = set; then :
+ enableval=$enable_verbose_output;
+ if test "$enableval" != "no"; then
+ verbose_output=1
+ else
+ verbose_output=0
+ fi
+
+else
+
+ verbose_output=0
+
+fi
+
+
+# Strict Compile
+# Check whether --enable-strict-compile was given.
+if test "${enable_strict_compile+set}" = set; then :
+ enableval=$enable_strict_compile;
+ if test "$enableval" != "no"; then
+ strict_compile="-std=c99 -Wstrict-overflow=1 -Wextra -Wno-missing-field-initializers -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-unused-parameter -Wformat -Wformat-security -Werror -fstack-protector -D_FORTIFY_SOURCE=2"
+ else
+ strict_compile=
+ fi
+
+else
+
+ strict_compile=
+
+fi
+
+
+# DEBUG_CONF
+# Check whether --enable-debug-conf was given.
+if test "${enable_debug_conf+set}" = set; then :
+ enableval=$enable_debug_conf;
+ if test "$enableval" != "no"; then
+ debug_conf="-DDEBUG_CONF"
+ else
+ debug_conf=
+ fi
+
+else
+
+ debug_conf=
+
+fi
+
+
+# CACHE_DEBUG
+# Check whether --enable-debug-cache was given.
+if test "${enable_debug_cache+set}" = set; then :
+ enableval=$enable_debug_cache;
+ if test "$enableval" != "no"; then
+ debug_cache="-DCACHE_DEBUG"
+ else
+ debug_cache=
+ fi
+
+else
+
+ debug_cache=
+
+fi
+
+
+# DEBUG_ACMP
+# Check whether --enable-debug-acmp was given.
+if test "${enable_debug_acmp+set}" = set; then :
+ enableval=$enable_debug_acmp;
+ if test "$enableval" != "no"; then
+ debug_acmp="-DDEBUG_ACMP"
+ else
+ debug_acmp=
+ fi
+
+else
+
+ debug_acmp=
+
+fi
+
+
+# DEBUG_MEM
+# Check whether --enable-debug-mem was given.
+if test "${enable_debug_mem+set}" = set; then :
+ enableval=$enable_debug_mem;
+ if test "$enableval" != "no"; then
+ debug_mem="-DDEBUG_MEM"
+ else
+ debug_mem=
+ fi
+
+else
+
+ debug_mem=
+
+fi
+
+
+# PERFORMANCE_MEASUREMENT
+# Check whether --enable-performance-measurement was given.
+if test "${enable_performance_measurement+set}" = set; then :
+ enableval=$enable_performance_measurement;
+ if test "$enableval" != "no"; then
+ perf_meas="-DPERFORMANCE_MEASUREMENT"
+ else
+ perf_meas=
+ fi
+
+else
+
+ perf_meas=
+
+fi
+
+
+# NO_MODSEC_API
+# Check whether --enable-modsec-api was given.
+if test "${enable_modsec_api+set}" = set; then :
+ enableval=$enable_modsec_api;
+ if test "$enableval" != "yes"; then
+ modsec_api="-DNO_MODSEC_API"
+ else
+ modsec_api=
+ fi
+
+else
+
+ modsec_api=
+
+fi
+
+
+# Find apxs
+{ $as_echo "$as_me:${as_lineno-$LINENO}: looking for Apache module support via DSO through APXS" >&5
+$as_echo "$as_me: looking for Apache module support via DSO through APXS" >&6;}
+
+# Check whether --with-apxs was given.
+if test "${with_apxs+set}" = set; then :
+ withval=$with_apxs;
+ if test "$withval" = "yes"; then
+ APXS=apxs
+ else
+ APXS="$withval"
+ fi
+
+fi
+
+
+if test -z "$APXS"; then
+ for i in /usr/local/apache22/bin \
+ /usr/local/apache2/bin \
+ /usr/local/apache/bin \
+ /usr/local/sbin \
+ /usr/local/bin \
+ /usr/sbin \
+ /usr/bin;
+ do
+ if test -f "$i/apxs2"; then
+ APXS="$i/apxs2"
+ break
+ elif test -f "$i/apxs"; then
+ APXS="$i/apxs"
+ break
+ fi
+ done
+fi
+
+# arbitrarily picking the same version subversion looks for, don't know how
+# accurate this really is, but at least it'll force us to have apache2...
+HTTPD_WANTED_MMN=20020903
+
+if test -n "$APXS" -a "$APXS" != "no" -a -x "$APXS" ; then
+ APXS_INCLUDE="`$APXS -q INCLUDEDIR`"
+ if test -r $APXS_INCLUDE/httpd.h; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: found apxs at $APXS" >&5
+$as_echo "$as_me: found apxs at $APXS" >&6;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking httpd version" >&5
+$as_echo "$as_me: checking httpd version" >&6;}
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#include "$APXS_INCLUDE/ap_mmn.h"
+#if AP_MODULE_MAGIC_AT_LEAST($HTTPD_WANTED_MMN,0)
+VERSION_OK
+#endif
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ $EGREP "VERSION_OK" >/dev/null 2>&1; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: httpd is recent enough" >&5
+$as_echo "$as_me: httpd is recent enough" >&6;}
+else
+
+ if test "$report_errors" -eq 1; then
+ { as_fn_set_status mmn must be at least $HTTPD_WANTED_MMN
+as_fn_error "apache is too old" "$LINENO" 5; }
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: apache is too old" >&5
+$as_echo "$as_me: apache is too old" >&mmn must be at least $HTTPD_WANTED_MMN;}
+ fi
+
+fi
+rm -f conftest*
+
+ fi
+ APXS_INCLUDEDIR="`$APXS -q INCLUDEDIR`"
+ if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apxs INCLUDEDIR: $APXS_INCLUDEDIR" >&5
+$as_echo "$as_me: apxs INCLUDEDIR: $APXS_INCLUDEDIR" >&6;}; fi
+ # Make sure the include dir is used
+ if test -n "$APXS_INCLUDEDIR"; then
+ APXS_INCLUDES="-I${APXS_INCLUDEDIR} `$APXS -q INCLUDES` `$APXS -q EXTRA_INCLUDES`"
+ else
+ APXS_INCLUDES="`$APXS -q INCLUDES` `$APXS -q EXTRA_INCLUDES`"
+ fi
+ if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apxs INCLUDES: $APXS_INCLUDES" >&5
+$as_echo "$as_me: apxs INCLUDES: $APXS_INCLUDES" >&6;}; fi
+ APXS_CFLAGS="`$APXS -q CFLAGS` `$APXS -q EXTRA_CFLAGS`"
+ if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apxs CFLAGS: $APXS_CFLAGS" >&5
+$as_echo "$as_me: apxs CFLAGS: $APXS_CFLAGS" >&6;}; fi
+ APXS_LDFLAGS="`$APXS -q LDFLAGS` `$APXS -q EXTRA_LDFLAGS`"
+ if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apxs LDFLAGS: $APXS_LDFLAGS" >&5
+$as_echo "$as_me: apxs LDFLAGS: $APXS_LDFLAGS" >&6;}; fi
+ APXS_LIBDIR="`$APXS -q LIBDIR`"
+ if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apxs LIBDIR: $APXS_LIBDIR" >&5
+$as_echo "$as_me: apxs LIBDIR: $APXS_LIBDIR" >&6;}; fi
+ # Make sure the lib dir is used
+ if test -n "$APXS_LIBDIR"; then
+ APXS_LIBS="-L{$APXS_LIBDIR} `$APXS -q LIBS` `$APXS -q EXTRA_LIBS`"
+ else
+ APXS_LIBS="`$APXS -q LIBS` `$APXS -q EXTRA_LIBS`"
+ fi
+ if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apxs LIBS: $APXS_LIBS" >&5
+$as_echo "$as_me: apxs LIBS: $APXS_LIBS" >&6;}; fi
+ APXS_LIBTOOL="`$APXS -q LIBTOOL`"
+ if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apxs LIBTOOL: $APXS_LIBTOOL" >&5
+$as_echo "$as_me: apxs LIBTOOL: $APXS_LIBTOOL" >&6;}; fi
+ APXS_CC="`$APXS -q CC`"
+ if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apxs CC: $APXS_CC" >&5
+$as_echo "$as_me: apxs CC: $APXS_CC" >&6;}; fi
+ APXS_BINDIR="`$APXS -q BINDIR`"
+ if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apxs BINDIR: $APXS_BINDIR" >&5
+$as_echo "$as_me: apxs BINDIR: $APXS_BINDIR" >&6;}; fi
+ APXS_SBINDIR="`$APXS -q SBINDIR`"
+ if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apxs SBINDIR: $APXS_SBINDIR" >&5
+$as_echo "$as_me: apxs SBINDIR: $APXS_SBINDIR" >&6;}; fi
+ APXS_PROGNAME="`$APXS -q PROGNAME`"
+ if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apxs PROGNAME: $APXS_PROGNAME" >&5
+$as_echo "$as_me: apxs PROGNAME: $APXS_PROGNAME" >&6;}; fi
+ APXS_LIBEXECDIR="`$APXS -q LIBEXECDIR`"
+ if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apxs LIBEXECDIR: $APXS_LIBEXECDIR" >&5
+$as_echo "$as_me: apxs LIBEXECDIR: $APXS_LIBEXECDIR" >&6;}; fi
+ if test "$APXS_SBINDIR" = "/"; then
+ APXS_HTTPD="$APXS_SBINDIR/$APXS_PROGNAME"
+ else
+ APXS_HTTPD="$APXS_SBINDIR/$APXS_PROGNAME"
+ fi
+ if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apxs HTTPD: $APXS_HTTPD" >&5
+$as_echo "$as_me: apxs HTTPD: $APXS_HTTPD" >&6;}; fi
+else
+ if test "$report_errors" -eq 1; then
+ as_fn_error "couldn't find APXS" "$LINENO" 5
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: couldn't find APXS" >&5
+$as_echo "$as_me: couldn't find APXS" >&6;}
+ fi
+fi
+
+# Include M4 macros
+
+PCRE_CONFIG=""
+PCRE_CFLAGS=""
+PCRE_LIBS=""
+
+
+
+
+APR_CONFIG=""
+APR_CFLAGS=""
+APR_LDFLAGS=""
+APR_LIBS=""
+APR_LINK_LD=""
+
+
+
+
+APU_CONFIG=""
+APU_CFLAGS=""
+APU_LDFLAGS=""
+APU_LIBS=""
+APU_LINK_LD=""
+
+
+
+
+LIBXML2_CONFIG=""
+LIBXML2_CFLAGS=""
+LIBXML2_LIBS=""
+
+
+
+
+LUA_CONFIG=""
+LUA_CFLAGS=""
+LUA_LIBS=""
+LUA_CONFIG=pkg-config
+LUA_PKGNAMES="lua5.1 lua-5.1 lua_5.1 lua-51 lua_51 lua51 lua5 lua"
+LUA_SONAMES="so la sl dll dylib"
+
+
+
+
+CURL_CONFIG=""
+CURL_CFLAGS=""
+CURL_LIBS=""
+CURL_MIN_VERSION="7.15.1"
+
+
+
+
+
+### Build *EXTRA_CFLAGS vars
+
+# Allow overriding EXTRA_CFLAGS
+if $ENV_CMD | $GREP "^EXTRA_CFLAGS" > /dev/null 2>&1; then
+ if test -z "$debug_mem"; then
+ EXTRA_CFLAGS="$EXTRA_CFLAGS $strict_compile"
+ fi
+else
+ if test -n "$debug_mem"; then
+ EXTRA_CFLAGS="-O0 -g -Wall"
+ else
+ EXTRA_CFLAGS="-O2 -g -Wall $strict_compile"
+ fi
+fi
+MODSEC_EXTRA_CFLAGS="$debug_conf $debug_cache $debug_acmp $debug_mem $perf_meas $modsec_api"
+
+APXS_WRAPPER=build/apxs-wrapper
+APXS_EXTRA_CFLAGS=""
+for f in $EXTRA_CFLAGS; do
+ APXS_EXTRA_CFLAGS="$APXS_EXTRA_CFLAGS -Wc,$f"
+done;
+MODSEC_APXS_EXTRA_CFLAGS=""
+for f in $MODSEC_EXTRA_CFLAGS; do
+ MODSEC_APXS_EXTRA_CFLAGS="$MODSEC_APXS_EXTRA_CFLAGS -Wc,$f"
+done;
+
+### Substitute the vars
+
+save_CPPFLAGS=$CPPFLAGS
+CPPFLAGS="$APXS_INCLUDES $CPPFLAGS"
+save_LDFLAGS=$LDFLAGS
+LDFLAGS="$APXS_LDFLAGS $LDFLAGS"
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# Check whether --with-pcre was given.
+if test "${with_pcre+set}" = set; then :
+ withval=$with_pcre; test_paths="${with_pcre}"
+else
+ test_paths="/usr/local/libpcre /usr/local/pcre /usr/local /opt/libpcre /opt/pcre /opt /usr"
+fi
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcre config script" >&5
+$as_echo_n "checking for libpcre config script... " >&6; }
+
+if test -z "${with_pcre}"; then
+ test_paths="/usr/local/pcre /usr/local /usr"
+else
+ test_paths="${with_pcre}"
+fi
+
+for x in ${test_paths}; do
+ if test ! -d "$x" -a -e "$x"; then
+ PCRE_CONFIG=$x
+ pcre_path="no"
+ break
+ fi
+
+ for PCRE_CONFIG in pcre-config; do
+ if test -e "${x}/bin/${PCRE_CONFIG}"; then
+ pcre_path="${x}/bin"
+ break
+ elif test -e "${x}/${PCRE_CONFIG}"; then
+ pcre_path="${x}"
+ break
+ else
+ pcre_path=""
+ fi
+ done
+ if test -n "$pcre_path"; then
+ break
+ fi
+done
+ CFLAGS=$save_CFLAGS
+ LDFLAGS=$save_LDFLAGS
+
+if test -n "${pcre_path}"; then
+ if test "${pcre_path}" != "no"; then
+ PCRE_CONFIG="${pcre_path}/${PCRE_CONFIG}"
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PCRE_CONFIG}" >&5
+$as_echo "${PCRE_CONFIG}" >&6; }
+ PCRE_CFLAGS="`${PCRE_CONFIG} --cflags`"
+ if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: pcre CFLAGS: $PCRE_CFLAGS" >&5
+$as_echo "$as_me: pcre CFLAGS: $PCRE_CFLAGS" >&6;}; fi
+ PCRE_LIBS="`${PCRE_CONFIG} --libs`"
+ if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: pcre LIBS: $PCRE_LIBS" >&5
+$as_echo "$as_me: pcre LIBS: $PCRE_LIBS" >&6;}; fi
+ CFLAGS=$save_CFLAGS
+ LDFLAGS=$save_LDFLAGS
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+
+
+if test -z "${PCRE_LIBS}"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: *** pcre library not found." >&5
+$as_echo "$as_me: *** pcre library not found." >&6;}
+ as_fn_error "pcre library is required" "$LINENO" 5
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: using '${PCRE_LIBS}' for pcre Library" >&5
+$as_echo "$as_me: using '${PCRE_LIBS}' for pcre Library" >&6;}
+
+fi
+
+
+
+# Check whether --with-apr was given.
+if test "${with_apr+set}" = set; then :
+ withval=$with_apr; test_paths="${with_apr}"
+else
+ test_paths="/usr/local/libapr /usr/local/apr /usr/local /opt/libapr /opt/apr /opt /usr"
+fi
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libapr config script" >&5
+$as_echo_n "checking for libapr config script... " >&6; }
+
+for x in ${test_paths}; do
+ if test ! -d "$x" -a -e "$x"; then
+ APR_CONFIG=$x
+ apr_path=no
+ break
+ fi
+
+ for APR_CONFIG in apr-1-mt-config apr-1-config apr-config-1 apr-mt-config-1 apr-mt-config apr-config; do
+ if test -e "${x}/bin/${APR_CONFIG}"; then
+ apr_path="${x}/bin"
+ break
+ elif test -e "${x}/${APR_CONFIG}"; then
+ apr_path="${x}"
+ break
+ else
+ apr_path=""
+ fi
+ done
+ if test -n "$apr_path"; then
+ break
+ fi
+done
+
+if test -n "${apr_path}"; then
+ if test "${apr_path}" != "no"; then
+ APR_CONFIG="${apr_path}/${APR_CONFIG}"
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${APR_CONFIG}" >&5
+$as_echo "${APR_CONFIG}" >&6; }
+ APR_CFLAGS="`${APR_CONFIG} --includes --cppflags --cflags`"
+ if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apr CFLAGS: $APR_CFLAGS" >&5
+$as_echo "$as_me: apr CFLAGS: $APR_CFLAGS" >&6;}; fi
+ APR_LDFLAGS="`${APR_CONFIG} --ldflags`"
+ if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apr LDFLAGS: $APR_LDFLAGS" >&5
+$as_echo "$as_me: apr LDFLAGS: $APR_LDFLAGS" >&6;}; fi
+ APR_LIBS="`${APR_CONFIG} --libs`"
+ if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apr LIBS: $APR_LIBS" >&5
+$as_echo "$as_me: apr LIBS: $APR_LIBS" >&6;}; fi
+ APR_LINK_LD="`${APR_CONFIG} --link-ld`"
+ if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apr LINK_LD: $APR_LINK_LD" >&5
+$as_echo "$as_me: apr LINK_LD: $APR_LINK_LD" >&6;}; fi
+ CFLAGS=$save_CFLAGS
+ LDFLAGS=$save_LDFLAGS
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+
+
+
+
+if test -z "${APR_LIBS}"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: *** apr library not found." >&5
+$as_echo "$as_me: *** apr library not found." >&6;}
+ as_fn_error "apr library is required" "$LINENO" 5
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: using '${APR_LIBS}' for apr Library" >&5
+$as_echo "$as_me: using '${APR_LIBS}' for apr Library" >&6;}
+
+fi
+
+
+
+# Check whether --with-apu was given.
+if test "${with_apu+set}" = set; then :
+ withval=$with_apu; test_paths="${with_apu}"
+else
+ test_paths="/usr/local/libapr-util /usr/local/apr-util /usr/local/libapu /usr/local/apu /usr/local /opt/libapr-util /opt/apr-util /opt/libapu /opt/apu /opt /usr"
+fi
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libapu config script" >&5
+$as_echo_n "checking for libapu config script... " >&6; }
+
+for x in ${test_paths}; do
+ if test ! -d "$x" -a -e "$x"; then
+ APU_CONFIG=$x
+ apu_path="no"
+ break
+ fi
+
+ for APU_CONFIG in apu-1-mt-config apu-1-config apu-config-1 apu-mt-config-1 apu-mt-config apu-config; do
+ if test -e "${x}/bin/${APU_CONFIG}"; then
+ apu_path="${x}/bin"
+ break
+ elif test -e "${x}/${APU_CONFIG}"; then
+ apu_path="${x}"
+ break
+ else
+ apu_path=""
+ fi
+ done
+ if test -n "$apu_path"; then
+ break
+ fi
+done
+
+if test -n "${apu_path}"; then
+ if test "${apu_path}" != "no"; then
+ APU_CONFIG="${apu_path}/${APU_CONFIG}"
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${APU_CONFIG}" >&5
+$as_echo "${APU_CONFIG}" >&6; }
+ APU_CFLAGS="`${APU_CONFIG} --includes`"
+ if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apu CFLAGS: $APU_CFLAGS" >&5
+$as_echo "$as_me: apu CFLAGS: $APU_CFLAGS" >&6;}; fi
+ APU_LDFLAGS="`${APU_CONFIG} --ldflags`"
+ if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apu LDFLAGS: $APU_LDFLAGS" >&5
+$as_echo "$as_me: apu LDFLAGS: $APU_LDFLAGS" >&6;}; fi
+ APU_LIBS="`${APU_CONFIG} --libs`"
+ if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apu LIBS: $APU_LIBS" >&5
+$as_echo "$as_me: apu LIBS: $APU_LIBS" >&6;}; fi
+ APU_LINK_LD="`${APU_CONFIG} --link-ld`"
+ if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apu LINK_LD: $APU_LINK_LD" >&5
+$as_echo "$as_me: apu LINK_LD: $APU_LINK_LD" >&6;}; fi
+ CFLAGS=$save_CFLAGS
+ LDFLAGS=$save_LDFLAGS
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+
+
+
+
+if test -z "${APU_LIBS}"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: *** apu library not found." >&5
+$as_echo "$as_me: *** apu library not found." >&6;}
+ as_fn_error "apu library is required" "$LINENO" 5
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: using '${APU_LIBS}' for apu Library" >&5
+$as_echo "$as_me: using '${APU_LIBS}' for apu Library" >&6;}
+
+fi
+
+
+
+# Check whether --with-libxml was given.
+if test "${with_libxml+set}" = set; then :
+ withval=$with_libxml; test_paths="${with_libxml}"
+else
+ test_paths="/usr/local/libxml2 /usr/local/xml2 /usr/local/xml /usr/local /opt/libxml2 /opt/libxml /opt/xml2 /opt/xml /opt /usr"
+fi
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2 config script" >&5
+$as_echo_n "checking for libxml2 config script... " >&6; }
+
+for x in ${test_paths}; do
+ if test ! -d "$x" -a -e "$x"; then
+ LIBXML2_CONFIG=$x
+ libxml2_path="no"
+ break
+ fi
+
+ for LIBXML2_CONFIG in xml2-config xml-2-config xml-config; do
+ if test -e "${x}/bin/${LIBXML2_CONFIG}"; then
+ libxml2_path="${x}/bin"
+ break
+ elif test -e "${x}/${LIBXML2_CONFIG}"; then
+ libxml2_path="${x}"
+ break
+ else
+ libxml2_path=""
+ fi
+ done
+ if test -n "$libxml2_path"; then
+ break
+ fi
+done
+ CFLAGS=$save_CFLAGS
+ LDFLAGS=$save_LDFLAGS
+
+if test -n "${libxml2_path}"; then
+ if test "${libxml2_path}" != "no"; then
+ LIBXML2_CONFIG="${libxml2_path}/${LIBXML2_CONFIG}"
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LIBXML2_CONFIG}" >&5
+$as_echo "${LIBXML2_CONFIG}" >&6; }
+ LIBXML2_CFLAGS="`${LIBXML2_CONFIG} --cflags`"
+ if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: xml CFLAGS: $LIBXML2_CFLAGS" >&5
+$as_echo "$as_me: xml CFLAGS: $LIBXML2_CFLAGS" >&6;}; fi
+ LIBXML2_LIBS="`${LIBXML2_CONFIG} --libs`"
+ if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: xml LIBS: $LIBXML2_LIBS" >&5
+$as_echo "$as_me: xml LIBS: $LIBXML2_LIBS" >&6;}; fi
+ CFLAGS=$save_CFLAGS
+ LDFLAGS=$save_LDFLAGS
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+
+
+if test -z "${LIBXML2_LIBS}"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: *** xml library not found." >&5
+$as_echo "$as_me: *** xml library not found." >&6;}
+ as_fn_error "libxml2 is required" "$LINENO" 5
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: using '${LIBXML2_LIBS}' for libxml2" >&5
+$as_echo "$as_me: using '${LIBXML2_LIBS}' for libxml2" >&6;}
+
+fi
+
+
+
+# Check whether --with-lua was given.
+if test "${with_lua+set}" = set; then :
+ withval=$with_lua; test_paths="${with_lua}"
+else
+ test_paths="/usr/local/liblua /usr/local/lua /usr/local /opt/liblua /opt/lua /opt /usr";
+fi
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua config script" >&5
+$as_echo_n "checking for liblua config script... " >&6; }
+
+for x in ${test_paths}; do
+ if test ! -d "$x" -a -e "$x"; then
+ LUA_CONFIG=$x
+ break
+ fi
+
+ for y in $LUA_CONFIG; do
+ if test -e "${x}/bin/${y}"; then
+ LUA_CONFIG="${x}/bin/${y}"
+ lua_config="${LUA_CONFIG}"
+ break
+ elif test -e "${x}/${y}"; then
+ LUA_CONFIG="${x}/${y}"
+ lua_config="${LUA_CONFIG}"
+ break
+ fi
+ done
+ if test -n "${lua_config}"; then
+ break
+ fi
+done
+
+if test -n "${LUA_CONFIG}"; then
+ LUA_PKGNAME=""
+ for x in ${LUA_PKGNAMES}; do
+ if ${LUA_CONFIG} --exists ${x}; then
+ LUA_PKGNAME="$x"
+ break
+ fi
+ done
+fi
+
+if test -n "${LUA_PKGNAME}"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LUA_CONFIG}" >&5
+$as_echo "${LUA_CONFIG}" >&6; }
+ LUA_CFLAGS="`${LUA_CONFIG} ${LUA_PKGNAME} --cflags`"
+ if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: lua CFLAGS: $LUA_CFLAGS" >&5
+$as_echo "$as_me: lua CFLAGS: $LUA_CFLAGS" >&6;}; fi
+ LUA_LIBS="`${LUA_CONFIG} ${LUA_PKGNAME} --libs`"
+ if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: lua LIBS: $LUA_LIBS" >&5
+$as_echo "$as_me: lua LIBS: $LUA_LIBS" >&6;}; fi
+ CFLAGS=$save_CFLAGS
+ LDFLAGS=$save_LDFLAGS
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua install" >&5
+$as_echo_n "checking for lua install... " >&6; }
+ for x in ${test_paths}; do
+ for y in ${LUA_SONAMES}; do
+ if test -e "${x}/liblua5.1.${y}"; then
+ lua_lib_path="${x}"
+ lua_lib_name="lua5.1"
+ break
+ elif test -e "${x}/lib/liblua5.1.${y}"; then
+ lua_lib_path="${x}/lib"
+ lua_lib_name="lua5.1"
+ break
+ elif test -e "${x}/lib64/liblua5.1.${y}"; then
+ lua_lib_path="${x}/lib64"
+ lua_lib_name="lua5.1"
+ break
+ elif test -e "${x}/lib32/liblua5.1.${y}"; then
+ lua_lib_path="${x}/lib32"
+ lua_lib_name="lua5.1"
+ break
+ elif test -e "${x}/liblua51.${y}"; then
+ lua_lib_path="${x}"
+ lua_lib_name="lua51"
+ break
+ elif test -e "${x}/lib/liblua51.${y}"; then
+ lua_lib_path="${x}/lib"
+ lua_lib_name="lua51"
+ break
+ elif test -e "${x}/lib64/liblua51.${y}"; then
+ lua_lib_path="${x}/lib64"
+ lua_lib_name="lua51"
+ break
+ elif test -e "${x}/lib32/liblua51.${y}"; then
+ lua_lib_path="${x}/lib32"
+ lua_lib_name="lua51"
+ break
+ elif test -e "${x}/liblua.${y}"; then
+ lua_lib_path="${x}"
+ lua_lib_name="lua"
+ break
+ elif test -e "${x}/lib/liblua.${y}"; then
+ lua_lib_path="${x}/lib"
+ lua_lib_name="lua"
+ break
+ elif test -e "${x}/lib64/liblua.${y}"; then
+ lua_lib_path="${x}/lib64"
+ lua_lib_name="lua"
+ break
+ elif test -e "${x}/lib32/liblua.${y}"; then
+ lua_lib_path="${x}/lib32"
+ lua_lib_name="lua"
+ break
+ else
+ lua_lib_path=""
+ lua_lib_name=""
+ fi
+ done
+ if test -n "$lua_lib_path"; then
+ break
+ fi
+ done
+ for x in ${test_paths}; do
+ if test -e "${x}/include/lua.h"; then
+ lua_inc_path="${x}/include"
+ break
+ elif test -e "${x}/lua.h"; then
+ lua_inc_path="${x}"
+ break
+ fi
+
+ for lua_pkg_name in ${lua_lib_name} ${LUA_PKGNAMES}; do
+ if test -e "${x}/include/${lua_pkg_name}/lua.h"; then
+ lua_inc_path="${x}/include"
+ break
+ elif test -e "${x}/${lua_pkg_name}/lua.h"; then
+ lua_inc_path="${x}"
+ break
+ else
+ lua_inc_path=""
+ fi
+ done
+ if test -n "$lua_inc_path"; then
+ break
+ fi
+ done
+ if test -n "${lua_lib_path}" -a -n "${lua_inc_path}"; then
+ LUA_CONFIG=""
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lua_lib_path} ${lua_inc_path}" >&5
+$as_echo "${lua_lib_path} ${lua_inc_path}" >&6; }
+ LUA_CFLAGS="-I${lua_inc_path}"
+ LUA_LIBS="-L${lua_lib_path} -l${lua_lib_name}"
+ CFLAGS=$save_CFLAGS
+ LDFLAGS=$save_LDFLAGS
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ fi
+fi
+
+if test -n "${LUA_LIBS}"; then
+ LUA_CFLAGS="-DWITH_LUA ${LUA_CFLAGS}"
+fi
+
+
+
+
+if test "${with_path}" != "no"; then
+ if test -z "${LUA_LIBS}"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: optional lua library not found" >&5
+$as_echo "$as_me: optional lua library not found" >&6;}
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: using '${LUA_LIBS}' for lua Library" >&5
+$as_echo "$as_me: using '${LUA_LIBS}' for lua Library" >&6;}
+
+ fi
+fi
+
+
+
+# Check whether --with-curl was given.
+if test "${with_curl+set}" = set; then :
+ withval=$with_curl; test_paths="${with_curl}"
+else
+ test_paths="/usr/local/libcurl /usr/local/curl /usr/local /opt/libcurl /opt/curl /opt /usr"
+fi
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl config script" >&5
+$as_echo_n "checking for libcurl config script... " >&6; }
+
+for x in ${test_paths}; do
+ if test ! -d "$x" -a -e "$x"; then
+ CURL_CONFIG=$x
+ curl_path="no"
+ break
+ fi
+
+ for CURL_CONFIG in curl-config; do
+ if test -e "${x}/bin/${CURL_CONFIG}"; then
+ curl_path="${x}/bin"
+ break
+ elif test -e "${x}/${CURL_CONFIG}"; then
+ curl_path="${x}"
+ break
+ else
+ curl_path=""
+ fi
+ done
+ if test -n "$curl_path"; then
+ break
+ fi
+done
+
+if test -n "${curl_path}"; then
+ if test "${curl_path}" != "no"; then
+ CURL_CONFIG="${curl_path}/${CURL_CONFIG}"
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CURL_CONFIG}" >&5
+$as_echo "${CURL_CONFIG}" >&6; }
+ CURL_CFLAGS="`${CURL_CONFIG} --cflags`"
+ if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: curl CFLAGS: $CURL_CFLAGS" >&5
+$as_echo "$as_me: curl CFLAGS: $CURL_CFLAGS" >&6;}; fi
+ CURL_LIBS="`${CURL_CONFIG} --libs`"
+ if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: curl LIBS: $CURL_LIBS" >&5
+$as_echo "$as_me: curl LIBS: $CURL_LIBS" >&6;}; fi
+ CURL_VERSION=`${CURL_CONFIG} --version | sed 's/^[^0-9][^[:space:]][^[:space:]]*[[:space:]]*//'`
+ if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: curl VERSION: $CURL_VERSION" >&5
+$as_echo "$as_me: curl VERSION: $CURL_VERSION" >&6;}; fi
+ CFLAGS=$save_CFLAGS
+ LDFLAGS=$save_LDFLAGS
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libcurl is at least v${CURL_MIN_VERSION}" >&5
+$as_echo_n "checking if libcurl is at least v${CURL_MIN_VERSION}... " >&6; }
+ curl_min_ver=`echo ${CURL_MIN_VERSION} | awk -F. '{print (\$ 1 * 1000000) + (\$ 2 * 1000) + \$ 3}'`
+ curl_ver=`echo ${CURL_VERSION} | awk -F. '{print (\$ 1 * 1000000) + (\$ 2 * 1000) + \$ 3}'`
+ if test "$curl_min_ver" -le "$curl_ver"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: NOTE: curl library may be too old: $CURL_VERSION" >&5
+$as_echo "$as_me: NOTE: curl library may be too old: $CURL_VERSION" >&6;}
+ fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libcurl is linked with gnutls" >&5
+$as_echo_n "checking if libcurl is linked with gnutls... " >&6; }
+ curl_uses_gnutls=`echo ${CURL_LIBS} | grep gnutls | wc -l`
+ if test "$curl_uses_gnutls" -ne 0; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: NOTE: curl linked with gnutls may be buggy, openssl recommended" >&5
+$as_echo "$as_me: NOTE: curl linked with gnutls may be buggy, openssl recommended" >&6;}
+ CURL_USES_GNUTLS=yes
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ CURL_USES_GNUTLS=no
+ fi
+
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+
+
+
+if test -z "${CURL_LIBS}"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: *** curl library not found." >&5
+$as_echo "$as_me: *** curl library not found." >&6;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: NOTE: curl library is only required for building mlogc" >&5
+$as_echo "$as_me: NOTE: curl library is only required for building mlogc" >&6;}
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: using '${CURL_LIBS}' for curl Library" >&5
+$as_echo "$as_me: using '${CURL_LIBS}' for curl Library" >&6;}
+
+fi
+
+
+ac_config_files="$ac_config_files Makefile"
+
+ac_config_files="$ac_config_files build/apxs-wrapper"
+
+if test -e "$PERL"; then
+ ac_config_files="$ac_config_files mlogc-src/mlogc-batch-load.pl"
+
+ ac_config_files="$ac_config_files t/run-unit-tests.pl"
+
+ ac_config_files="$ac_config_files t/run-regression-tests.pl"
+
+ ac_config_files="$ac_config_files t/gen_rx-pm.pl"
+
+ ac_config_files="$ac_config_files t/csv_rx-pm.pl"
+
+ ac_config_files="$ac_config_files t/regression/server_root/conf/httpd.conf"
+
+
+ # Perl based tools
+ ac_config_files="$ac_config_files ../tools/rules-updater.pl"
+
+fi
+if test -e "mlogc-src/Makefile.in"; then
+ ac_config_files="$ac_config_files mlogc-src/Makefile"
+
+fi
+
+cat >confcache <<\_ACEOF
+# This file is a shell script that caches the results of configure
+# tests run on this system so they can be shared between configure
+# scripts and configure runs, see configure's option --config-cache.
+# It is not useful on other systems. If it contains results you don't
+# want to keep, you may remove or edit it.
+#
+# config.status only pays attention to the cache file if you give it
+# the --recheck option to rerun configure.
+#
+# `ac_cv_env_foo' variables (set or unset) will be overridden when
+# loading this file, other *unset* `ac_cv_foo' will be assigned the
+# following values.
+
+_ACEOF
+
+# The following way of writing the cache mishandles newlines in values,
+# but we know of no workaround that is simple, portable, and efficient.
+# So, we kill variables containing newlines.
+# Ultrix sh set writes to stderr and can't be redirected directly,
+# and sets the high bit in the cache file unless we assign to the vars.
+(
+ for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
+ eval ac_val=\$$ac_var
+ case $ac_val in #(
+ *${as_nl}*)
+ case $ac_var in #(
+ *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
+$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
+ esac
+ case $ac_var in #(
+ _ | IFS | as_nl) ;; #(
+ BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
+ *) { eval $ac_var=; unset $ac_var;} ;;
+ esac ;;
+ esac
+ done
+
+ (set) 2>&1 |
+ case $as_nl`(ac_space=' '; set) 2>&1` in #(
+ *${as_nl}ac_space=\ *)
+ # `set' does not quote correctly, so add quotes: double-quote
+ # substitution turns \\\\ into \\, and sed turns \\ into \.
+ sed -n \
+ "s/'/'\\\\''/g;
+ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
+ ;; #(
+ *)
+ # `set' quotes correctly as required by POSIX, so do not add quotes.
+ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
+ ;;
+ esac |
+ sort
+) |
+ sed '
+ /^ac_cv_env_/b end
+ t clear
+ :clear
+ s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
+ t end
+ s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
+ :end' >>confcache
+if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
+ if test -w "$cache_file"; then
+ test "x$cache_file" != "x/dev/null" &&
+ { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
+$as_echo "$as_me: updating cache $cache_file" >&6;}
+ cat confcache >$cache_file
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
+$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
+ fi
+fi
+rm -f confcache
+
+test "x$prefix" = xNONE && prefix=$ac_default_prefix
+# Let make expand exec_prefix.
+test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
+
+DEFS=-DHAVE_CONFIG_H
+
+ac_libobjs=
+ac_ltlibobjs=
+for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
+ # 1. Remove the extension, and $U if already installed.
+ ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
+ ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
+ # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
+ # will be set to the directory where LIBOBJS objects are built.
+ as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
+ as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
+done
+LIBOBJS=$ac_libobjs
+
+LTLIBOBJS=$ac_ltlibobjs
+
+
+
+: ${CONFIG_STATUS=./config.status}
+ac_write_fail=0
+ac_clean_files_save=$ac_clean_files
+ac_clean_files="$ac_clean_files $CONFIG_STATUS"
+{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
+$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
+as_write_fail=0
+cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
+#! $SHELL
+# Generated by $as_me.
+# Run this file to recreate the current configuration.
+# Compiler output produced by configure, useful for debugging
+# configure, is in config.log if it exists.
+
+debug=false
+ac_cs_recheck=false
+ac_cs_silent=false
+
+SHELL=\${CONFIG_SHELL-$SHELL}
+export SHELL
+_ASEOF
+cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
+## -------------------- ##
+## M4sh Initialization. ##
+## -------------------- ##
+
+# Be more Bourne compatible
+DUALCASE=1; export DUALCASE # for MKS sh
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
+ emulate sh
+ NULLCMD=:
+ # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '${1+"$@"}'='"$@"'
+ setopt NO_GLOB_SUBST
+else
+ case `(set -o) 2>/dev/null` in #(
+ *posix*) :
+ set -o posix ;; #(
+ *) :
+ ;;
+esac
+fi
+
+
+as_nl='
+'
+export as_nl
+# Printing a long string crashes Solaris 7 /usr/bin/printf.
+as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
+# Prefer a ksh shell builtin over an external printf program on Solaris,
+# but without wasting forks for bash or zsh.
+if test -z "$BASH_VERSION$ZSH_VERSION" \
+ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
+ as_echo='print -r --'
+ as_echo_n='print -rn --'
+elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
+ as_echo='printf %s\n'
+ as_echo_n='printf %s'
+else
+ if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
+ as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
+ as_echo_n='/usr/ucb/echo -n'
+ else
+ as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
+ as_echo_n_body='eval
+ arg=$1;
+ case $arg in #(
+ *"$as_nl"*)
+ expr "X$arg" : "X\\(.*\\)$as_nl";
+ arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
+ esac;
+ expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
+ '
+ export as_echo_n_body
+ as_echo_n='sh -c $as_echo_n_body as_echo'
+ fi
+ export as_echo_body
+ as_echo='sh -c $as_echo_body as_echo'
+fi
+
+# The user is always right.
+if test "${PATH_SEPARATOR+set}" != set; then
+ PATH_SEPARATOR=:
+ (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
+ (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
+ PATH_SEPARATOR=';'
+ }
+fi
+
+
+# IFS
+# We need space, tab and new line, in precisely that order. Quoting is
+# there to prevent editors from complaining about space-tab.
+# (If _AS_PATH_WALK were called with IFS unset, it would disable word
+# splitting by setting IFS to empty value.)
+IFS=" "" $as_nl"
+
+# Find who we are. Look in the path if we contain no directory separator.
+case $0 in #((
+ *[\\/]* ) as_myself=$0 ;;
+ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
+ done
+IFS=$as_save_IFS
+
+ ;;
+esac
+# We did not find ourselves, most probably we were run as `sh COMMAND'
+# in which case we are not to be found in the path.
+if test "x$as_myself" = x; then
+ as_myself=$0
+fi
+if test ! -f "$as_myself"; then
+ $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
+ exit 1
+fi
+
+# Unset variables that we do not need and which cause bugs (e.g. in
+# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
+# suppresses any "Segmentation fault" message there. '((' could
+# trigger a bug in pdksh 5.2.14.
+for as_var in BASH_ENV ENV MAIL MAILPATH
+do eval test x\${$as_var+set} = xset \
+ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
+done
+PS1='$ '
+PS2='> '
+PS4='+ '
+
+# NLS nuisances.
+LC_ALL=C
+export LC_ALL
+LANGUAGE=C
+export LANGUAGE
+
+# CDPATH.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+
+# as_fn_error ERROR [LINENO LOG_FD]
+# ---------------------------------
+# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
+# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
+# script with status $?, using 1 if that was 0.
+as_fn_error ()
+{
+ as_status=$?; test $as_status -eq 0 && as_status=1
+ if test "$3"; then
+ as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
+ fi
+ $as_echo "$as_me: error: $1" >&2
+ as_fn_exit $as_status
+} # as_fn_error
+
+
+# as_fn_set_status STATUS
+# -----------------------
+# Set $? to STATUS, without forking.
+as_fn_set_status ()
+{
+ return $1
+} # as_fn_set_status
+
+# as_fn_exit STATUS
+# -----------------
+# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
+as_fn_exit ()
+{
+ set +e
+ as_fn_set_status $1
+ exit $1
+} # as_fn_exit
+
+# as_fn_unset VAR
+# ---------------
+# Portably unset VAR.
+as_fn_unset ()
+{
+ { eval $1=; unset $1;}
+}
+as_unset=as_fn_unset
+# as_fn_append VAR VALUE
+# ----------------------
+# Append the text in VALUE to the end of the definition contained in VAR. Take
+# advantage of any shell optimizations that allow amortized linear growth over
+# repeated appends, instead of the typical quadratic growth present in naive
+# implementations.
+if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
+ eval 'as_fn_append ()
+ {
+ eval $1+=\$2
+ }'
+else
+ as_fn_append ()
+ {
+ eval $1=\$$1\$2
+ }
+fi # as_fn_append
+
+# as_fn_arith ARG...
+# ------------------
+# Perform arithmetic evaluation on the ARGs, and store the result in the
+# global $as_val. Take advantage of shells that can avoid forks. The arguments
+# must be portable across $(()) and expr.
+if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
+ eval 'as_fn_arith ()
+ {
+ as_val=$(( $* ))
+ }'
+else
+ as_fn_arith ()
+ {
+ as_val=`expr "$@" || test $? -eq 1`
+ }
+fi # as_fn_arith
+
+
+if expr a : '\(a\)' >/dev/null 2>&1 &&
+ test "X`expr 00001 : '.*\(...\)'`" = X001; then
+ as_expr=expr
+else
+ as_expr=false
+fi
+
+if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
+ as_basename=basename
+else
+ as_basename=false
+fi
+
+if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
+ as_dirname=dirname
+else
+ as_dirname=false
+fi
+
+as_me=`$as_basename -- "$0" ||
+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
+ X"$0" : 'X\(//\)$' \| \
+ X"$0" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X/"$0" |
+ sed '/^.*\/\([^/][^/]*\)\/*$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+
+# Avoid depending upon Character Ranges.
+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
+as_cr_digits='0123456789'
+as_cr_alnum=$as_cr_Letters$as_cr_digits
+
+ECHO_C= ECHO_N= ECHO_T=
+case `echo -n x` in #(((((
+-n*)
+ case `echo 'xy\c'` in
+ *c*) ECHO_T=' ';; # ECHO_T is single tab character.
+ xy) ECHO_C='\c';;
+ *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
+ ECHO_T=' ';;
+ esac;;
+*)
+ ECHO_N='-n';;
+esac
+
+rm -f conf$$ conf$$.exe conf$$.file
+if test -d conf$$.dir; then
+ rm -f conf$$.dir/conf$$.file
+else
+ rm -f conf$$.dir
+ mkdir conf$$.dir 2>/dev/null
+fi
+if (echo >conf$$.file) 2>/dev/null; then
+ if ln -s conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s='ln -s'
+ # ... but there are two gotchas:
+ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
+ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
+ # In both cases, we have to default to `cp -p'.
+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
+ as_ln_s='cp -p'
+ elif ln conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s=ln
+ else
+ as_ln_s='cp -p'
+ fi
+else
+ as_ln_s='cp -p'
+fi
+rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
+rmdir conf$$.dir 2>/dev/null
+
+
+# as_fn_mkdir_p
+# -------------
+# Create "$as_dir" as a directory, including parents if necessary.
+as_fn_mkdir_p ()
+{
+
+ case $as_dir in #(
+ -*) as_dir=./$as_dir;;
+ esac
+ test -d "$as_dir" || eval $as_mkdir_p || {
+ as_dirs=
+ while :; do
+ case $as_dir in #(
+ *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
+ *) as_qdir=$as_dir;;
+ esac
+ as_dirs="'$as_qdir' $as_dirs"
+ as_dir=`$as_dirname -- "$as_dir" ||
+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$as_dir" : 'X\(//\)[^/]' \| \
+ X"$as_dir" : 'X\(//\)$' \| \
+ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$as_dir" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ test -d "$as_dir" && break
+ done
+ test -z "$as_dirs" || eval "mkdir $as_dirs"
+ } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
+
+
+} # as_fn_mkdir_p
+if mkdir -p . 2>/dev/null; then
+ as_mkdir_p='mkdir -p "$as_dir"'
+else
+ test -d ./-p && rmdir ./-p
+ as_mkdir_p=false
+fi
+
+if test -x / >/dev/null 2>&1; then
+ as_test_x='test -x'
+else
+ if ls -dL / >/dev/null 2>&1; then
+ as_ls_L_option=L
+ else
+ as_ls_L_option=
+ fi
+ as_test_x='
+ eval sh -c '\''
+ if test -d "$1"; then
+ test -d "$1/.";
+ else
+ case $1 in #(
+ -*)set "./$1";;
+ esac;
+ case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
+ ???[sx]*):;;*)false;;esac;fi
+ '\'' sh
+ '
+fi
+as_executable_p=$as_test_x
+
+# Sed expression to map a string onto a valid CPP name.
+as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
+
+# Sed expression to map a string onto a valid variable name.
+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
+
+
+exec 6>&1
+## ----------------------------------- ##
+## Main body of $CONFIG_STATUS script. ##
+## ----------------------------------- ##
+_ASEOF
+test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+# Save the log message, to keep $0 and so on meaningful, and to
+# report actual input values of CONFIG_FILES etc. instead of their
+# values after options handling.
+ac_log="
+This file was extended by $as_me, which was
+generated by GNU Autoconf 2.64. Invocation command line was
+
+ CONFIG_FILES = $CONFIG_FILES
+ CONFIG_HEADERS = $CONFIG_HEADERS
+ CONFIG_LINKS = $CONFIG_LINKS
+ CONFIG_COMMANDS = $CONFIG_COMMANDS
+ $ $0 $@
+
+on `(hostname || uname -n) 2>/dev/null | sed 1q`
+"
+
+_ACEOF
+
+case $ac_config_files in *"
+"*) set x $ac_config_files; shift; ac_config_files=$*;;
+esac
+
+case $ac_config_headers in *"
+"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
+esac
+
+
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+# Files that config.status was made for.
+config_files="$ac_config_files"
+config_headers="$ac_config_headers"
+
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+ac_cs_usage="\
+\`$as_me' instantiates files and other configuration actions
+from templates according to the current configuration. Unless the files
+and actions are specified as TAGs, all are instantiated by default.
+
+Usage: $0 [OPTION]... [TAG]...
+
+ -h, --help print this help, then exit
+ -V, --version print version number and configuration settings, then exit
+ -q, --quiet, --silent
+ do not print progress messages
+ -d, --debug don't remove temporary files
+ --recheck update $as_me by reconfiguring in the same conditions
+ --file=FILE[:TEMPLATE]
+ instantiate the configuration file FILE
+ --header=FILE[:TEMPLATE]
+ instantiate the configuration header FILE
+
+Configuration files:
+$config_files
+
+Configuration headers:
+$config_headers
+
+Report bugs to the package provider."
+
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+ac_cs_version="\\
+config.status
+configured by $0, generated by GNU Autoconf 2.64,
+ with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
+
+Copyright (C) 2009 Free Software Foundation, Inc.
+This config.status script is free software; the Free Software Foundation
+gives unlimited permission to copy, distribute and modify it."
+
+ac_pwd='$ac_pwd'
+srcdir='$srcdir'
+INSTALL='$INSTALL'
+AWK='$AWK'
+test -n "\$AWK" || AWK=awk
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+# The default lists apply if the user does not specify any file.
+ac_need_defaults=:
+while test $# != 0
+do
+ case $1 in
+ --*=*)
+ ac_option=`expr "X$1" : 'X\([^=]*\)='`
+ ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
+ ac_shift=:
+ ;;
+ *)
+ ac_option=$1
+ ac_optarg=$2
+ ac_shift=shift
+ ;;
+ esac
+
+ case $ac_option in
+ # Handling of the options.
+ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
+ ac_cs_recheck=: ;;
+ --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
+ $as_echo "$ac_cs_version"; exit ;;
+ --debug | --debu | --deb | --de | --d | -d )
+ debug=: ;;
+ --file | --fil | --fi | --f )
+ $ac_shift
+ case $ac_optarg in
+ *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
+ esac
+ as_fn_append CONFIG_FILES " '$ac_optarg'"
+ ac_need_defaults=false;;
+ --header | --heade | --head | --hea )
+ $ac_shift
+ case $ac_optarg in
+ *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
+ esac
+ as_fn_append CONFIG_HEADERS " '$ac_optarg'"
+ ac_need_defaults=false;;
+ --he | --h)
+ # Conflict between --help and --header
+ as_fn_error "ambiguous option: \`$1'
+Try \`$0 --help' for more information.";;
+ --help | --hel | -h )
+ $as_echo "$ac_cs_usage"; exit ;;
+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+ | -silent | --silent | --silen | --sile | --sil | --si | --s)
+ ac_cs_silent=: ;;
+
+ # This is an error.
+ -*) as_fn_error "unrecognized option: \`$1'
+Try \`$0 --help' for more information." ;;
+
+ *) as_fn_append ac_config_targets " $1"
+ ac_need_defaults=false ;;
+
+ esac
+ shift
+done
+
+ac_configure_extra_args=
+
+if $ac_cs_silent; then
+ exec 6>/dev/null
+ ac_configure_extra_args="$ac_configure_extra_args --silent"
+fi
+
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+if \$ac_cs_recheck; then
+ set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
+ shift
+ \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
+ CONFIG_SHELL='$SHELL'
+ export CONFIG_SHELL
+ exec "\$@"
+fi
+
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+exec 5>>config.log
+{
+ echo
+ sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
+## Running $as_me. ##
+_ASBOX
+ $as_echo "$ac_log"
+} >&5
+
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+
+# Handling of arguments.
+for ac_config_target in $ac_config_targets
+do
+ case $ac_config_target in
+ "mod_security2_config.h") CONFIG_HEADERS="$CONFIG_HEADERS mod_security2_config.h" ;;
+ "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
+ "build/apxs-wrapper") CONFIG_FILES="$CONFIG_FILES build/apxs-wrapper" ;;
+ "mlogc-src/mlogc-batch-load.pl") CONFIG_FILES="$CONFIG_FILES mlogc-src/mlogc-batch-load.pl" ;;
+ "t/run-unit-tests.pl") CONFIG_FILES="$CONFIG_FILES t/run-unit-tests.pl" ;;
+ "t/run-regression-tests.pl") CONFIG_FILES="$CONFIG_FILES t/run-regression-tests.pl" ;;
+ "t/gen_rx-pm.pl") CONFIG_FILES="$CONFIG_FILES t/gen_rx-pm.pl" ;;
+ "t/csv_rx-pm.pl") CONFIG_FILES="$CONFIG_FILES t/csv_rx-pm.pl" ;;
+ "t/regression/server_root/conf/httpd.conf") CONFIG_FILES="$CONFIG_FILES t/regression/server_root/conf/httpd.conf" ;;
+ "../tools/rules-updater.pl") CONFIG_FILES="$CONFIG_FILES ../tools/rules-updater.pl" ;;
+ "mlogc-src/Makefile") CONFIG_FILES="$CONFIG_FILES mlogc-src/Makefile" ;;
+
+ *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
+ esac
+done
+
+
+# If the user did not use the arguments to specify the items to instantiate,
+# then the envvar interface is used. Set only those that are not.
+# We use the long form for the default assignment because of an extremely
+# bizarre bug on SunOS 4.1.3.
+if $ac_need_defaults; then
+ test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
+ test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
+fi
+
+# Have a temporary directory for convenience. Make it in the build tree
+# simply because there is no reason against having it here, and in addition,
+# creating and moving files from /tmp can sometimes cause problems.
+# Hook for its removal unless debugging.
+# Note that there is a small window in which the directory will not be cleaned:
+# after its creation but before its name has been assigned to `$tmp'.
+$debug ||
+{
+ tmp=
+ trap 'exit_status=$?
+ { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
+' 0
+ trap 'as_fn_exit 1' 1 2 13 15
+}
+# Create a (secure) tmp directory for tmp files.
+
+{
+ tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
+ test -n "$tmp" && test -d "$tmp"
+} ||
+{
+ tmp=./conf$$-$RANDOM
+ (umask 077 && mkdir "$tmp")
+} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
+
+# Set up the scripts for CONFIG_FILES section.
+# No need to generate them if there are no CONFIG_FILES.
+# This happens for instance with `./config.status config.h'.
+if test -n "$CONFIG_FILES"; then
+
+
+ac_cr=`echo X | tr X '\015'`
+# On cygwin, bash can eat \r inside `` if the user requested igncr.
+# But we know of no other shell where ac_cr would be empty at this
+# point, so we can use a bashism as a fallback.
+if test "x$ac_cr" = x; then
+ eval ac_cr=\$\'\\r\'
+fi
+ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
+if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
+ ac_cs_awk_cr='\r'
+else
+ ac_cs_awk_cr=$ac_cr
+fi
+
+echo 'BEGIN {' >"$tmp/subs1.awk" &&
+_ACEOF
+
+
+{
+ echo "cat >conf$$subs.awk <<_ACEOF" &&
+ echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
+ echo "_ACEOF"
+} >conf$$subs.sh ||
+ as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
+ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
+ac_delim='%!_!# '
+for ac_last_try in false false false false false :; do
+ . ./conf$$subs.sh ||
+ as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
+
+ ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
+ if test $ac_delim_n = $ac_delim_num; then
+ break
+ elif $ac_last_try; then
+ as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
+ else
+ ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
+ fi
+done
+rm -f conf$$subs.sh
+
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
+_ACEOF
+sed -n '
+h
+s/^/S["/; s/!.*/"]=/
+p
+g
+s/^[^!]*!//
+:repl
+t repl
+s/'"$ac_delim"'$//
+t delim
+:nl
+h
+s/\(.\{148\}\).*/\1/
+t more1
+s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
+p
+n
+b repl
+:more1
+s/["\\]/\\&/g; s/^/"/; s/$/"\\/
+p
+g
+s/.\{148\}//
+t nl
+:delim
+h
+s/\(.\{148\}\).*/\1/
+t more2
+s/["\\]/\\&/g; s/^/"/; s/$/"/
+p
+b
+:more2
+s/["\\]/\\&/g; s/^/"/; s/$/"\\/
+p
+g
+s/.\{148\}//
+t delim
+' <conf$$subs.awk | sed '
+/^[^""]/{
+ N
+ s/\n//
+}
+' >>$CONFIG_STATUS || ac_write_fail=1
+rm -f conf$$subs.awk
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+_ACAWK
+cat >>"\$tmp/subs1.awk" <<_ACAWK &&
+ for (key in S) S_is_set[key] = 1
+ FS = "\a"
+
+}
+{
+ line = $ 0
+ nfields = split(line, field, "@")
+ substed = 0
+ len = length(field[1])
+ for (i = 2; i < nfields; i++) {
+ key = field[i]
+ keylen = length(key)
+ if (S_is_set[key]) {
+ value = S[key]
+ line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
+ len += length(value) + length(field[++i])
+ substed = 1
+ } else
+ len += 1 + keylen
+ }
+
+ print line
+}
+
+_ACAWK
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
+ sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
+else
+ cat
+fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
+ || as_fn_error "could not setup config files machinery" "$LINENO" 5
+_ACEOF
+
+# VPATH may cause trouble with some makes, so we remove $(srcdir),
+# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
+# trailing colons and then remove the whole line if VPATH becomes empty
+# (actually we leave an empty line to preserve line numbers).
+if test "x$srcdir" = x.; then
+ ac_vpsub='/^[ ]*VPATH[ ]*=/{
+s/:*\$(srcdir):*/:/
+s/:*\${srcdir}:*/:/
+s/:*@srcdir@:*/:/
+s/^\([^=]*=[ ]*\):*/\1/
+s/:*$//
+s/^[^=]*=[ ]*$//
+}'
+fi
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+fi # test -n "$CONFIG_FILES"
+
+# Set up the scripts for CONFIG_HEADERS section.
+# No need to generate them if there are no CONFIG_HEADERS.
+# This happens for instance with `./config.status Makefile'.
+if test -n "$CONFIG_HEADERS"; then
+cat >"$tmp/defines.awk" <<\_ACAWK ||
+BEGIN {
+_ACEOF
+
+# Transform confdefs.h into an awk script `defines.awk', embedded as
+# here-document in config.status, that substitutes the proper values into
+# config.h.in to produce config.h.
+
+# Create a delimiter string that does not exist in confdefs.h, to ease
+# handling of long lines.
+ac_delim='%!_!# '
+for ac_last_try in false false :; do
+ ac_t=`sed -n "/$ac_delim/p" confdefs.h`
+ if test -z "$ac_t"; then
+ break
+ elif $ac_last_try; then
+ as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
+ else
+ ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
+ fi
+done
+
+# For the awk script, D is an array of macro values keyed by name,
+# likewise P contains macro parameters if any. Preserve backslash
+# newline sequences.
+
+ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
+sed -n '
+s/.\{148\}/&'"$ac_delim"'/g
+t rset
+:rset
+s/^[ ]*#[ ]*define[ ][ ]*/ /
+t def
+d
+:def
+s/\\$//
+t bsnl
+s/["\\]/\\&/g
+s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
+D["\1"]=" \3"/p
+s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
+d
+:bsnl
+s/["\\]/\\&/g
+s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
+D["\1"]=" \3\\\\\\n"\\/p
+t cont
+s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
+t cont
+d
+:cont
+n
+s/.\{148\}/&'"$ac_delim"'/g
+t clear
+:clear
+s/\\$//
+t bsnlc
+s/["\\]/\\&/g; s/^/"/; s/$/"/p
+d
+:bsnlc
+s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
+b cont
+' <confdefs.h | sed '
+s/'"$ac_delim"'/"\\\
+"/g' >>$CONFIG_STATUS || ac_write_fail=1
+
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+ for (key in D) D_is_set[key] = 1
+ FS = "\a"
+}
+/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
+ line = \$ 0
+ split(line, arg, " ")
+ if (arg[1] == "#") {
+ defundef = arg[2]
+ mac1 = arg[3]
+ } else {
+ defundef = substr(arg[1], 2)
+ mac1 = arg[2]
+ }
+ split(mac1, mac2, "(") #)
+ macro = mac2[1]
+ prefix = substr(line, 1, index(line, defundef) - 1)
+ if (D_is_set[macro]) {
+ # Preserve the white space surrounding the "#".
+ print prefix "define", macro P[macro] D[macro]
+ next
+ } else {
+ # Replace #undef with comments. This is necessary, for example,
+ # in the case of _POSIX_SOURCE, which is predefined and required
+ # on some systems where configure will not decide to define it.
+ if (defundef == "undef") {
+ print "/*", prefix defundef, macro, "*/"
+ next
+ }
+ }
+}
+{ print }
+_ACAWK
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+ as_fn_error "could not setup config headers machinery" "$LINENO" 5
+fi # test -n "$CONFIG_HEADERS"
+
+
+eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
+shift
+for ac_tag
+do
+ case $ac_tag in
+ :[FHLC]) ac_mode=$ac_tag; continue;;
+ esac
+ case $ac_mode$ac_tag in
+ :[FHL]*:*);;
+ :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
+ :[FH]-) ac_tag=-:-;;
+ :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
+ esac
+ ac_save_IFS=$IFS
+ IFS=:
+ set x $ac_tag
+ IFS=$ac_save_IFS
+ shift
+ ac_file=$1
+ shift
+
+ case $ac_mode in
+ :L) ac_source=$1;;
+ :[FH])
+ ac_file_inputs=
+ for ac_f
+ do
+ case $ac_f in
+ -) ac_f="$tmp/stdin";;
+ *) # Look for the file first in the build tree, then in the source tree
+ # (if the path is not absolute). The absolute path cannot be DOS-style,
+ # because $ac_f cannot contain `:'.
+ test -f "$ac_f" ||
+ case $ac_f in
+ [\\/$]*) false;;
+ *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
+ esac ||
+ as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
+ esac
+ case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
+ as_fn_append ac_file_inputs " '$ac_f'"
+ done
+
+ # Let's still pretend it is `configure' which instantiates (i.e., don't
+ # use $as_me), people would be surprised to read:
+ # /* config.h. Generated by config.status. */
+ configure_input='Generated from '`
+ $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
+ `' by configure.'
+ if test x"$ac_file" != x-; then
+ configure_input="$ac_file. $configure_input"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
+$as_echo "$as_me: creating $ac_file" >&6;}
+ fi
+ # Neutralize special characters interpreted by sed in replacement strings.
+ case $configure_input in #(
+ *\&* | *\|* | *\\* )
+ ac_sed_conf_input=`$as_echo "$configure_input" |
+ sed 's/[\\\\&|]/\\\\&/g'`;; #(
+ *) ac_sed_conf_input=$configure_input;;
+ esac
+
+ case $ac_tag in
+ *:-:* | *:-) cat >"$tmp/stdin" \
+ || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
+ esac
+ ;;
+ esac
+
+ ac_dir=`$as_dirname -- "$ac_file" ||
+$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$ac_file" : 'X\(//\)[^/]' \| \
+ X"$ac_file" : 'X\(//\)$' \| \
+ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$ac_file" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ as_dir="$ac_dir"; as_fn_mkdir_p
+ ac_builddir=.
+
+case "$ac_dir" in
+.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
+*)
+ ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
+ # A ".." for each directory in $ac_dir_suffix.
+ ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
+ case $ac_top_builddir_sub in
+ "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
+ *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
+ esac ;;
+esac
+ac_abs_top_builddir=$ac_pwd
+ac_abs_builddir=$ac_pwd$ac_dir_suffix
+# for backward compatibility:
+ac_top_builddir=$ac_top_build_prefix
+
+case $srcdir in
+ .) # We are building in place.
+ ac_srcdir=.
+ ac_top_srcdir=$ac_top_builddir_sub
+ ac_abs_top_srcdir=$ac_pwd ;;
+ [\\/]* | ?:[\\/]* ) # Absolute name.
+ ac_srcdir=$srcdir$ac_dir_suffix;
+ ac_top_srcdir=$srcdir
+ ac_abs_top_srcdir=$srcdir ;;
+ *) # Relative name.
+ ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
+ ac_top_srcdir=$ac_top_build_prefix$srcdir
+ ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
+esac
+ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
+
+
+ case $ac_mode in
+ :F)
+ #
+ # CONFIG_FILE
+ #
+
+ case $INSTALL in
+ [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
+ *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
+ esac
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+# If the template does not know about datarootdir, expand it.
+# FIXME: This hack should be removed a few years after 2.60.
+ac_datarootdir_hack=; ac_datarootdir_seen=
+ac_sed_dataroot='
+/datarootdir/ {
+ p
+ q
+}
+/@datadir@/p
+/@docdir@/p
+/@infodir@/p
+/@localedir@/p
+/@mandir@/p'
+case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
+*datarootdir*) ac_datarootdir_seen=yes;;
+*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
+$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+ ac_datarootdir_hack='
+ s&@datadir@&$datadir&g
+ s&@docdir@&$docdir&g
+ s&@infodir@&$infodir&g
+ s&@localedir@&$localedir&g
+ s&@mandir@&$mandir&g
+ s&\\\${datarootdir}&$datarootdir&g' ;;
+esac
+_ACEOF
+
+# Neutralize VPATH when `$srcdir' = `.'.
+# Shell code in configure.ac might set extrasub.
+# FIXME: do we really want to maintain this feature?
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+ac_sed_extra="$ac_vpsub
+$extrasub
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+:t
+/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
+s|@configure_input@|$ac_sed_conf_input|;t t
+s&@top_builddir@&$ac_top_builddir_sub&;t t
+s&@top_build_prefix@&$ac_top_build_prefix&;t t
+s&@srcdir@&$ac_srcdir&;t t
+s&@abs_srcdir@&$ac_abs_srcdir&;t t
+s&@top_srcdir@&$ac_top_srcdir&;t t
+s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
+s&@builddir@&$ac_builddir&;t t
+s&@abs_builddir@&$ac_abs_builddir&;t t
+s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
+s&@INSTALL@&$ac_INSTALL&;t t
+$ac_datarootdir_hack
+"
+eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
+ || as_fn_error "could not create $ac_file" "$LINENO" 5
+
+test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
+ { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
+ { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
+which seems to be undefined. Please make sure it is defined." >&5
+$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
+which seems to be undefined. Please make sure it is defined." >&2;}
+
+ rm -f "$tmp/stdin"
+ case $ac_file in
+ -) cat "$tmp/out" && rm -f "$tmp/out";;
+ *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
+ esac \
+ || as_fn_error "could not create $ac_file" "$LINENO" 5
+ ;;
+ :H)
+ #
+ # CONFIG_HEADER
+ #
+ if test x"$ac_file" != x-; then
+ {
+ $as_echo "/* $configure_input */" \
+ && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
+ } >"$tmp/config.h" \
+ || as_fn_error "could not create $ac_file" "$LINENO" 5
+ if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
+$as_echo "$as_me: $ac_file is unchanged" >&6;}
+ else
+ rm -f "$ac_file"
+ mv "$tmp/config.h" "$ac_file" \
+ || as_fn_error "could not create $ac_file" "$LINENO" 5
+ fi
+ else
+ $as_echo "/* $configure_input */" \
+ && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
+ || as_fn_error "could not create -" "$LINENO" 5
+ fi
+ ;;
+
+
+ esac
+
+
+ case $ac_file$ac_mode in
+ "build/apxs-wrapper":F) chmod +x build/apxs-wrapper ;;
+ "mlogc-src/mlogc-batch-load.pl":F) chmod +x mlogc-src/mlogc-batch-load.pl ;;
+ "t/run-unit-tests.pl":F) chmod +x t/run-unit-tests.pl ;;
+ "t/run-regression-tests.pl":F) chmod +x t/run-regression-tests.pl ;;
+ "t/gen_rx-pm.pl":F) chmod +x t/gen_rx-pm.pl ;;
+ "t/csv_rx-pm.pl":F) chmod +x t/csv_rx-pm.pl ;;
+ "../tools/rules-updater.pl":F) chmod +x ../tools/rules-updater.pl ;;
+
+ esac
+done # for ac_tag
+
+
+as_fn_exit 0
+_ACEOF
+ac_clean_files=$ac_clean_files_save
+
+test $ac_write_fail = 0 ||
+ as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
+
+
+# configure is writing to config.log, and then calls config.status.
+# config.status does its own redirection, appending to config.log.
+# Unfortunately, on DOS this fails, as config.log is still kept open
+# by configure, so config.status won't be able to write to it; its
+# output is simply discarded. So we exec the FD to /dev/null,
+# effectively closing config.log, so it can be properly (re)opened and
+# appended to by config.status. When coming back to configure, we
+# need to make the FD available again.
+if test "$no_create" != yes; then
+ ac_cs_success=:
+ ac_config_status_args=
+ test "$silent" = yes &&
+ ac_config_status_args="$ac_config_status_args --quiet"
+ exec 5>/dev/null
+ $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
+ exec 5>>config.log
+ # Use ||, not &&, to avoid exiting from the if with $? = 1, which
+ # would make configure fail if this is the last instruction.
+ $ac_cs_success || as_fn_exit $?
+fi
+if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
+$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
+fi
+
--- /dev/null
+dnl
+dnl Autoconf configuration for ModSecurity
+dnl
+dnl Use ./buildconf to produce a configure script
+dnl
+
+AC_PREREQ(2.63)
+
+AC_INIT
+dnl AC_INIT(ModSecurity, 2.5, mod-security-users@lists.sourceforge.net, modsecurity-apache)
+AC_CONFIG_SRCDIR([mod_security2.c])
+AC_CONFIG_HEADER([mod_security2_config.h])
+AC_CONFIG_AUX_DIR([build])
+
+# Checks for programs.
+AC_PROG_AWK
+AC_PROG_CC
+AC_PROG_CPP
+AC_PROG_INSTALL
+AC_PROG_LN_S
+AC_PROG_MAKE_SET
+AC_PROG_RANLIB
+AC_PROG_GREP
+AC_PATH_PROGS(PERL, [perl perl5], )
+AC_PATH_PROGS(ENV_CMD, [env printenv], )
+
+# Checks for header files.
+AC_HEADER_STDC
+AC_CHECK_HEADERS([fcntl.h limits.h stdlib.h string.h unistd.h sys/types.h sys/stat.h])
+
+# Checks for typedefs, structures, and compiler characteristics.
+AC_C_CONST
+AC_C_INLINE
+AC_C_RESTRICT
+AC_TYPE_PID_T
+AC_TYPE_SIZE_T
+AC_STRUCT_TM
+AC_TYPE_UINT8_T
+
+# Checks for library functions.
+AC_FUNC_MALLOC
+AC_FUNC_MEMCMP
+AC_CHECK_FUNCS([atexit getcwd memmove memset strcasecmp strchr strdup strerror strncasecmp strrchr strstr strtol])
+
+# Some directories
+MSC_BASE_DIR=`pwd`
+MSC_PKGBASE_DIR="$MSC_BASE_DIR/.."
+MSC_TEST_DIR="$MSC_BASE_DIR/t"
+MSC_REGRESSION_DIR="$MSC_TEST_DIR/regression"
+MSC_REGRESSION_SERVERROOT_DIR="$MSC_REGRESSION_DIR/server_root"
+MSC_REGRESSION_CONF_DIR="$MSC_REGRESSION_SERVERROOT_DIR/conf"
+MSC_REGRESSION_LOGS_DIR="$MSC_REGRESSION_SERVERROOT_DIR/logs"
+MSC_REGRESSION_DOCROOT_DIR="$MSC_REGRESSION_SERVERROOT_DIR/htdocs"
+
+AC_SUBST(MSC_BASE_DIR)
+AC_SUBST(MSC_PKGBASE_DIR)
+AC_SUBST(MSC_TEST_DIR)
+AC_SUBST(MSC_REGRESSION_DIR)
+AC_SUBST(MSC_REGRESSION_SERVERROOT_DIR)
+AC_SUBST(MSC_REGRESSION_CONF_DIR)
+AC_SUBST(MSC_REGRESSION_LOGS_DIR)
+AC_SUBST(MSC_REGRESSION_DOCROOT_DIR)
+
+### Configure Options
+
+# Ignore configure errors
+AC_ARG_ENABLE(errors,
+ AS_HELP_STRING([--disable-errors],
+ [Disable errors during configure.]),
+[
+ if test "$enableval" != "no"; then
+ report_errors=1
+ else
+ report_errors=0
+ fi
+],
+[
+ report_errors=1
+])
+
+# Verbose output
+AC_ARG_ENABLE(verbose-output,
+ AS_HELP_STRING([--enable-verbose-output],
+ [Enable more verbose configure output.]),
+[
+ if test "$enableval" != "no"; then
+ verbose_output=1
+ else
+ verbose_output=0
+ fi
+],
+[
+ verbose_output=0
+])
+
+# Strict Compile
+AC_ARG_ENABLE(strict-compile,
+ AS_HELP_STRING([--enable-strict-compile],
+ [Enable strict compilation (warnings are errors).]),
+[
+ if test "$enableval" != "no"; then
+ strict_compile="-std=c99 -Wstrict-overflow=1 -Wextra -Wno-missing-field-initializers -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-unused-parameter -Wformat -Wformat-security -Werror -fstack-protector -D_FORTIFY_SOURCE=2"
+ else
+ strict_compile=
+ fi
+],
+[
+ strict_compile=
+])
+
+# DEBUG_CONF
+AC_ARG_ENABLE(debug-conf,
+ AS_HELP_STRING([--enable-debug-conf],
+ [Enable debug during configuration.]),
+[
+ if test "$enableval" != "no"; then
+ debug_conf="-DDEBUG_CONF"
+ else
+ debug_conf=
+ fi
+],
+[
+ debug_conf=
+])
+
+# CACHE_DEBUG
+AC_ARG_ENABLE(debug-cache,
+ AS_HELP_STRING([--enable-debug-cache],
+ [Enable debug for transformation caching.]),
+[
+ if test "$enableval" != "no"; then
+ debug_cache="-DCACHE_DEBUG"
+ else
+ debug_cache=
+ fi
+],
+[
+ debug_cache=
+])
+
+# DEBUG_ACMP
+AC_ARG_ENABLE(debug-acmp,
+ AS_HELP_STRING([--enable-debug-acmp],
+ [Enable debugging acmp code.]),
+[
+ if test "$enableval" != "no"; then
+ debug_acmp="-DDEBUG_ACMP"
+ else
+ debug_acmp=
+ fi
+],
+[
+ debug_acmp=
+])
+
+# DEBUG_MEM
+AC_ARG_ENABLE(debug-mem,
+ AS_HELP_STRING([--enable-debug-mem],
+ [Enable debug during configuration.]),
+[
+ if test "$enableval" != "no"; then
+ debug_mem="-DDEBUG_MEM"
+ else
+ debug_mem=
+ fi
+],
+[
+ debug_mem=
+])
+
+# PERFORMANCE_MEASUREMENT
+AC_ARG_ENABLE(performance-measurement,
+ AS_HELP_STRING([--enable-performance-measurement],
+ [Enable performance-measurement stats.]),
+[
+ if test "$enableval" != "no"; then
+ perf_meas="-DPERFORMANCE_MEASUREMENT"
+ else
+ perf_meas=
+ fi
+],
+[
+ perf_meas=
+])
+
+# NO_MODSEC_API
+AC_ARG_ENABLE(modsec-api,
+ AS_HELP_STRING([--disable-modsec-api],
+ [Disable the API; compiling against some older Apache versions require this.]),
+[
+ if test "$enableval" != "yes"; then
+ modsec_api="-DNO_MODSEC_API"
+ else
+ modsec_api=
+ fi
+],
+[
+ modsec_api=
+])
+
+# Find apxs
+AC_MSG_NOTICE(looking for Apache module support via DSO through APXS)
+AC_ARG_WITH(apxs,
+ [AS_HELP_STRING([[--with-apxs=FILE]],
+ [FILE is the path to apxs; defaults to "apxs".])],
+[
+ if test "$withval" = "yes"; then
+ APXS=apxs
+ else
+ APXS="$withval"
+ fi
+])
+
+if test -z "$APXS"; then
+ for i in /usr/local/apache22/bin \
+ /usr/local/apache2/bin \
+ /usr/local/apache/bin \
+ /usr/local/sbin \
+ /usr/local/bin \
+ /usr/sbin \
+ /usr/bin;
+ do
+ if test -f "$i/apxs2"; then
+ APXS="$i/apxs2"
+ break
+ elif test -f "$i/apxs"; then
+ APXS="$i/apxs"
+ break
+ fi
+ done
+fi
+
+# arbitrarily picking the same version subversion looks for, don't know how
+# accurate this really is, but at least it'll force us to have apache2...
+HTTPD_WANTED_MMN=20020903
+
+if test -n "$APXS" -a "$APXS" != "no" -a -x "$APXS" ; then
+ APXS_INCLUDE="`$APXS -q INCLUDEDIR`"
+ if test -r $APXS_INCLUDE/httpd.h; then
+ AC_MSG_NOTICE(found apxs at $APXS)
+ AC_MSG_NOTICE(checking httpd version)
+ AC_EGREP_CPP(VERSION_OK,
+ [
+#include "$APXS_INCLUDE/ap_mmn.h"
+#if AP_MODULE_MAGIC_AT_LEAST($HTTPD_WANTED_MMN,0)
+VERSION_OK
+#endif],
+ [AC_MSG_NOTICE(httpd is recent enough)],
+ [
+ if test "$report_errors" -eq 1; then
+ AC_MSG_ERROR(apache is too old, mmn must be at least $HTTPD_WANTED_MMN)
+ else
+ AC_MSG_NOTICE(apache is too old, mmn must be at least $HTTPD_WANTED_MMN)
+ fi
+ ])
+ fi
+ APXS_INCLUDEDIR="`$APXS -q INCLUDEDIR`"
+ if test "$verbose_output" -eq 1; then AC_MSG_NOTICE(apxs INCLUDEDIR: $APXS_INCLUDEDIR); fi
+ # Make sure the include dir is used
+ if test -n "$APXS_INCLUDEDIR"; then
+ APXS_INCLUDES="-I${APXS_INCLUDEDIR} `$APXS -q INCLUDES` `$APXS -q EXTRA_INCLUDES`"
+ else
+ APXS_INCLUDES="`$APXS -q INCLUDES` `$APXS -q EXTRA_INCLUDES`"
+ fi
+ if test "$verbose_output" -eq 1; then AC_MSG_NOTICE(apxs INCLUDES: $APXS_INCLUDES); fi
+ APXS_CFLAGS="`$APXS -q CFLAGS` `$APXS -q EXTRA_CFLAGS`"
+ if test "$verbose_output" -eq 1; then AC_MSG_NOTICE(apxs CFLAGS: $APXS_CFLAGS); fi
+ APXS_LDFLAGS="`$APXS -q LDFLAGS` `$APXS -q EXTRA_LDFLAGS`"
+ if test "$verbose_output" -eq 1; then AC_MSG_NOTICE(apxs LDFLAGS: $APXS_LDFLAGS); fi
+ APXS_LIBDIR="`$APXS -q LIBDIR`"
+ if test "$verbose_output" -eq 1; then AC_MSG_NOTICE(apxs LIBDIR: $APXS_LIBDIR); fi
+ # Make sure the lib dir is used
+ if test -n "$APXS_LIBDIR"; then
+ APXS_LIBS="-L{$APXS_LIBDIR} `$APXS -q LIBS` `$APXS -q EXTRA_LIBS`"
+ else
+ APXS_LIBS="`$APXS -q LIBS` `$APXS -q EXTRA_LIBS`"
+ fi
+ if test "$verbose_output" -eq 1; then AC_MSG_NOTICE(apxs LIBS: $APXS_LIBS); fi
+ APXS_LIBTOOL="`$APXS -q LIBTOOL`"
+ if test "$verbose_output" -eq 1; then AC_MSG_NOTICE(apxs LIBTOOL: $APXS_LIBTOOL); fi
+ APXS_CC="`$APXS -q CC`"
+ if test "$verbose_output" -eq 1; then AC_MSG_NOTICE(apxs CC: $APXS_CC); fi
+ APXS_BINDIR="`$APXS -q BINDIR`"
+ if test "$verbose_output" -eq 1; then AC_MSG_NOTICE(apxs BINDIR: $APXS_BINDIR); fi
+ APXS_SBINDIR="`$APXS -q SBINDIR`"
+ if test "$verbose_output" -eq 1; then AC_MSG_NOTICE(apxs SBINDIR: $APXS_SBINDIR); fi
+ APXS_PROGNAME="`$APXS -q PROGNAME`"
+ if test "$verbose_output" -eq 1; then AC_MSG_NOTICE(apxs PROGNAME: $APXS_PROGNAME); fi
+ APXS_LIBEXECDIR="`$APXS -q LIBEXECDIR`"
+ if test "$verbose_output" -eq 1; then AC_MSG_NOTICE(apxs LIBEXECDIR: $APXS_LIBEXECDIR); fi
+ if test "$APXS_SBINDIR" = "/"; then
+ APXS_HTTPD="$APXS_SBINDIR/$APXS_PROGNAME"
+ else
+ APXS_HTTPD="$APXS_SBINDIR/$APXS_PROGNAME"
+ fi
+ if test "$verbose_output" -eq 1; then AC_MSG_NOTICE(apxs HTTPD: $APXS_HTTPD); fi
+else
+ if test "$report_errors" -eq 1; then
+ AC_MSG_ERROR(couldn't find APXS)
+ else
+ AC_MSG_NOTICE(couldn't find APXS)
+ fi
+fi
+
+# Include M4 macros
+sinclude(build/find_pcre.m4)
+sinclude(build/find_apr.m4)
+sinclude(build/find_apu.m4)
+sinclude(build/find_xml.m4)
+sinclude(build/find_lua.m4)
+sinclude(build/find_curl.m4)
+
+
+### Build *EXTRA_CFLAGS vars
+
+# Allow overriding EXTRA_CFLAGS
+if $ENV_CMD | $GREP "^EXTRA_CFLAGS" > /dev/null 2>&1; then
+ if test -z "$debug_mem"; then
+ EXTRA_CFLAGS="$EXTRA_CFLAGS $strict_compile"
+ fi
+else
+ if test -n "$debug_mem"; then
+ EXTRA_CFLAGS="-O0 -g -Wall"
+ else
+ EXTRA_CFLAGS="-O2 -g -Wall $strict_compile"
+ fi
+fi
+MODSEC_EXTRA_CFLAGS="$debug_conf $debug_cache $debug_acmp $debug_mem $perf_meas $modsec_api"
+
+APXS_WRAPPER=build/apxs-wrapper
+APXS_EXTRA_CFLAGS=""
+for f in $EXTRA_CFLAGS; do
+ APXS_EXTRA_CFLAGS="$APXS_EXTRA_CFLAGS -Wc,$f"
+done;
+MODSEC_APXS_EXTRA_CFLAGS=""
+for f in $MODSEC_EXTRA_CFLAGS; do
+ MODSEC_APXS_EXTRA_CFLAGS="$MODSEC_APXS_EXTRA_CFLAGS -Wc,$f"
+done;
+
+### Substitute the vars
+
+save_CPPFLAGS=$CPPFLAGS
+CPPFLAGS="$APXS_INCLUDES $CPPFLAGS"
+save_LDFLAGS=$LDFLAGS
+LDFLAGS="$APXS_LDFLAGS $LDFLAGS"
+
+AC_SUBST(EXTRA_CFLAGS)
+AC_SUBST(MODSEC_EXTRA_CFLAGS)
+AC_SUBST(APXS)
+AC_SUBST(APXS_WRAPPER)
+AC_SUBST(APXS_INCLUDEDIR)
+AC_SUBST(APXS_INCLUDES)
+AC_SUBST(APXS_EXTRA_CFLAGS)
+AC_SUBST(MODSEC_APXS_EXTRA_CFLAGS)
+AC_SUBST(APXS_LDFLAGS)
+AC_SUBST(APXS_LIBS)
+AC_SUBST(APXS_CFLAGS)
+AC_SUBST(APXS_LIBTOOL)
+AC_SUBST(APXS_CC)
+AC_SUBST(APXS_LIBDIR)
+AC_SUBST(APXS_BINDIR)
+AC_SUBST(APXS_SBINDIR)
+AC_SUBST(APXS_PROGNAME)
+AC_SUBST(APXS_LIBEXECDIR)
+AC_SUBST(APXS_HTTPD)
+
+CHECK_PCRE()
+CHECK_APR()
+CHECK_APU()
+CHECK_LIBXML2()
+CHECK_LUA()
+CHECK_CURL()
+
+AC_CONFIG_FILES([Makefile])
+AC_CONFIG_FILES([build/apxs-wrapper], [chmod +x build/apxs-wrapper])
+if test -e "$PERL"; then
+ AC_CONFIG_FILES([mlogc-src/mlogc-batch-load.pl], [chmod +x mlogc-src/mlogc-batch-load.pl])
+ AC_CONFIG_FILES([t/run-unit-tests.pl], [chmod +x t/run-unit-tests.pl])
+ AC_CONFIG_FILES([t/run-regression-tests.pl], [chmod +x t/run-regression-tests.pl])
+ AC_CONFIG_FILES([t/gen_rx-pm.pl], [chmod +x t/gen_rx-pm.pl])
+ AC_CONFIG_FILES([t/csv_rx-pm.pl], [chmod +x t/csv_rx-pm.pl])
+ AC_CONFIG_FILES([t/regression/server_root/conf/httpd.conf])
+
+ # Perl based tools
+ AC_CONFIG_FILES([../tools/rules-updater.pl], [chmod +x ../tools/rules-updater.pl])
+fi
+if test -e "mlogc-src/Makefile.in"; then
+ AC_CONFIG_FILES([mlogc-src/Makefile])
+fi
+
+AC_OUTPUT
--- /dev/null
+ModSecurity Audit Log Collector (mlogc)
+
+Mlogc is used to connect a ModSecurity sensor to the central
+audit log repository.
+
+To Install:
+===========
+
+ 1) Copy the mlogc executable to an appropriate location.
+
+ A good location might be /usr/local/bin, /opt/mlogc/bin, etc.
+
+ 2) Create sensor in the central audit log repository. Note the
+ username and the password (SENSOR_USERNAME, SENSOR_PASSWORD).
+ Also note the IP address central repository listens on
+ (CONSOLE_IP_ADDRESS).
+
+ 3) Configure the ModSecurity sensor to use mlogc
+
+ # Use ReleventOnly auditing
+ SecAuditEngine RelevantOnly
+
+ # Must use concurrent logging
+ SecAuditLogType Concurrent
+
+ # Send all audit log parts
+ SecAuditLogParts ABIDEFGHZ
+
+ # Use the same /CollectorRoot/LogStorageDir as in mlogc.conf
+ SecAuditLogStorageDir /var/log/mlogc/data
+
+ # Pipe audit log to mlogc with your configuration
+ SecAuditLog "|/usr/local/bin/mlogc /etc/mlogc.conf"
+
+ 4) Using the mlogc-default.conf as a template, configure the logger.
+
+ Typically these are the only directives that will need to be modified
+ to conform to your site:
+
+ # Points to the root of the installation. All relative
+ # paths configured in this file will be resolved with the
+ # help of this path (LogStorageDir, TransactionLog, etc.)
+ #
+ # Typically, this will be the parent directory that is configured
+ # in ModSecurity for the SecAuditLogStorageDirectory. So, if
+ # your SecAuditLogStorageDirectory is set to /var/log/mlogc/data,
+ # then set this to /var/log/mlogc.
+ CollectorRoot "/var/log/mlogc"
+
+ # ModSecurity Console receiving URI. You can change the host
+ # and the port parts but leave everything else as is.
+ ConsoleURI https://CONSOLE_IP_ADDRESS:8886/rpc/auditLogReceiver
+
+ # Sensor credentials
+ SensorUsername "SENSOR_USERNAME"
+ SensorPassword "SENSOR_PASSWORD"
+
+ # Base directory where the audit logs are stored. This can be specified
+ # as a path relative to the CollectorRoot, or a full path. It should
+ # resolve to the same path as ModSecurity's SecAuditLogStorageDirectory.
+ LogStorageDir "data"
+
+ See the mlogc-default.conf configuration file for details on other
+ configuration directives.
+
+ 5) Restart the ModSecurity sensor.
+
+ From now on every audit log generated will go to the repository. Make
+ sure you create an alert. Transactions without alerts will be recorded
+ but not displayed on the home page.
+
+ To troubleshoot, generate alerts and observe file "mlogc-error.log".
+
+ If mlogc fails to connect to the server it will pause for a period
+ of time (60 seconds by default) before it will try again.
+
--- /dev/null
+# Generated Makefile for ModSecurity Log Collector (mlogc)
+
+CC = @CC@
+EXTRA_CFLAGS = @EXTRA_CFLAGS@
+
+srcdir = .
+modsecsrcdir = $(srcdir)/..
+srclibdir = $(srcdir)/srclib
+
+MLOGC_VERSION = `grep '^\#define *VERSION ' mlogc.c | sed 's/.*VERSION *"\([^"]*\)"/\1/'`
+
+APR_FLAGS = @APR_CFLAGS@
+APR_LIBS = @APR_LINK_LD@ @APR_LIBS@
+
+CURL_FLAGS = @CURL_CFLAGS@
+CURL_LIBS = @CURL_LIBS@
+
+PCRE_FLAGS = @PCRE_CFLAGS@
+PCRE_LIBS = @PCRE_LIBS@
+
+APR_S_FLAGS = `$(srclibdir)/install/apr/bin/apr-1-config --includes --cppflags --cflags`
+APR_S_LIBS = `$(srclibdir)/install/apr/bin/apr-1-config --link-ld`
+
+CURL_S_FLAGS = `$(srclibdir)/install/curl/bin/curl-config --cflags`
+CURL_S_LIBS = `$(srclibdir)/install/curl/bin/curl-config --libs`
+
+PCRE_S_FLAGS = `$(srclibdir)/install/pcre/bin/pcre-config --cflags`
+PCRE_S_LIBS = `$(srclibdir)/install/pcre/bin/pcre-config --libs`
+
+all: mlogc
+
+mlogc: mlogc.c
+ @echo; \
+ echo "Building dynamically linked mlogc..."; \
+ $(CC) $(CFLAGS) -o mlogc mlogc.c \
+ -I$(modsecsrcdir) \
+ $(APR_FLAGS) $(CURL_FLAGS) $(PCRE_FLAGS) \
+ $(APR_LIBS) $(CURL_LIBS) $(PCRE_LIBS); \
+ chmod 755 mlogc; \
+ echo; \
+ echo "Build finished. Please follow the INSTALL instructions to complete the install."; \
+ echo
+
+.archives-ok:
+ @if [ -n "$(MLOGC_NOVERIFY)" -a "$(MLOGC_NOVERIFY)" = "1" ]; then \
+ touch .archives-ok; \
+ else \
+ $(srclibdir)/archives.sh && touch .archives-ok; \
+ fi
+
+.support-libs-ok:
+ $(srclibdir)/build.sh && touch .support-libs-ok
+
+archives: .archives-ok
+
+support-libs: .support-libs-ok
+
+clean-build:
+ @rm -rf $(srclibdir)/build
+
+clean-install:
+ @rm -rf $(srclibdir)/install
+
+clean-mlogc:
+ @rm -rf core mlogc *~ *.o *.so *.lo *.la *.slo
+
+distclean: clean
+
+clean: clean-build clean-install clean-mlogc
+
--- /dev/null
+###########################################################################\r
+### You Will need to modify the following variables for your system\r
+###########################################################################\r
+###########################################################################\r
+\r
+# Path to Apache httpd installation\r
+BASE = C:\Apache2\r
+\r
+# Paths to required libraries\r
+PCRE = C:\work\pcre-7.0-lib\r
+CURL = C:\work\libcurl-7.19.3-win32-ssl-msvc\r
+\r
+# Linking libraries\r
+LIBS = $(BASE)\lib\libapr-1.lib \\r
+ $(BASE)\lib\libaprutil-1.lib \\r
+ $(PCRE)\lib\pcre.lib \\r
+ $(CURL)\lib\Release\curllib.lib \\r
+ wsock32.lib\r
+\r
+###########################################################################\r
+###########################################################################\r
+\r
+CC = cL\r
+\r
+MT = mt\r
+\r
+DEFS = /nologo /O2 /W3 -DWIN32 -DWINNT -Dinline=APR_INLINE -D_CONSOLE\r
+\r
+EXE = mlogc.exe\r
+\r
+INCLUDES = -I. -I.. \\r
+ -I$(PCRE)\include -I$(PCRE) \\r
+ -I$(CURL)\include -I$(CURL) \\r
+ -I$(BASE)\include \r
+\r
+CFLAGS= -MT $(INCLUDES) $(DEFS)\r
+\r
+LDFLAGS = \r
+\r
+OBJS = mlogc.obj\r
+\r
+all: $(EXE)\r
+\r
+.c.obj:\r
+ $(CC) $(CFLAGS) -c $< -Fo$@\r
+\r
+.cpp.obj:\r
+ $(CC) $(CFLAGS) -c $< -Fo$@\r
+\r
+$(EXE): $(OBJS)\r
+ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBS) /link /NODEFAULTLIB:MSVCRT.lib /subsystem:console\r
+\r
+install: $(EXE)\r
+ copy $(EXE) $(BASE)\bin\r
+\r
+clean:\r
+ del $(OBJS) $(EXE) *.dll *.lib *.pdb *.idb *.ilk *.exp *.res *.rc *.bin *.manifest\r
--- /dev/null
+#!@PERL@
+#
+# ModSecurity for Apache 2.x, http://www.modsecurity.org/
+# Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
+#
+# This product is released under the terms of the General Public Licence,
+# version 2 (GPLv2). Please refer to the file LICENSE (included with this
+# distribution) which contains the complete text of the licence.
+#
+# There are special exceptions to the terms and conditions of the GPL
+# as it is applied to this software. View the full text of the exception in
+# file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
+# distribution.
+#
+# If any of the files related to licensing are missing or if you have any
+# other questions related to licensing please contact Breach Security, Inc.
+# directly using the email address support@breach.com.
+#
+
+use strict;
+use File::Find qw(find);
+use File::Spec::Functions qw(catfile);
+use Sys::Hostname qw(hostname);
+use Digest::MD5 qw(md5_hex);
+
+my $ROOTDIR = $ARGV[0] || '';
+my $MLOGC = $ARGV[1] || '';
+my $MLOGCCONF = $ARGV[2] || '';
+my @AUDIT = ();
+
+if ($ROOTDIR eq '' or ! -e $MLOGC or ! -e $MLOGCCONF) {
+ printf STDERR "\nUsage: $0 <rootdir> </path/to/mlogc> <mlogc_config>\n\n";
+ exit 1;
+}
+
+open(MLOGC, "|$MLOGC -f $MLOGCCONF") or die "ERROR: could not open '$MLOGC' - $!\n";
+
+find(
+ {
+ wanted => sub {
+ my($fn,$dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size);
+
+ (($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size) = stat($_)) &&
+ -f _ &&
+ /^\d{8}-\d+-\w{24}$/s
+ && (($fn = $File::Find::name) =~ s/^\Q$ROOTDIR\E//)
+ && push(@AUDIT, [$fn, $size]);
+ },
+ follow => 1,
+ },
+ $ROOTDIR
+);
+
+for my $audit (@AUDIT) {
+ my $fn = $audit->[0];
+ my $line = "";
+ my $err = 0;
+ my $ln = 0;
+ my $sln = 0;
+ my $sect = "";
+ my $data = "";
+ my %data = (
+ hostname => hostname(),
+ remote_addr => "-",
+ remote_user => "-",
+ local_user => "-",
+ logtime => "-",
+ request => "-",
+ response_status => "-",
+ bytes_sent => "-",
+ referer => "-",
+ user_agent => "-",
+ uniqueid => "-",
+ sessionid => "-",
+ audit_file => $fn,
+ extra => "0",
+ audit_size => $audit->[1],
+ md5 => "-",
+ );
+
+ ### Parse the audit file in an attempt to recreate the original log line
+ open (AUDIT, "<".catfile($ROOTDIR,$fn)) or $err = 1;
+ if ($err == 1) {
+ print STDERR "ERROR: could not open '$fn' - $!\n";
+ next;
+ }
+
+ while($line = <AUDIT>) {
+ $data .= $line;
+ chop $line;
+ $ln++;
+ $sln++;
+ if ($line =~ m%^--[0-9A-Fa-f]{8}-([A-Z])--$%) {
+ $sect = $1;
+ $sln = 0;
+ next;
+ };
+ if ($sect eq 'A') {
+ if ($line =~ m%^(\[[-\d/: a-zA-Z]{27}\]) (\S+) (\S+) (\d+) (\S+) (\d+)%) {
+ $data{logtime} = $1;
+ $data{uniqueid} = $2;
+ $data{remote_addr} = $3;
+ }
+ next;
+ }
+ elsif ($sect eq 'B') {
+ if ($sln == 1) {
+ $data{request} = $line;
+ }
+ elsif ($line =~ m%^User=Agent: (.*)%i) {
+ $data{user_agent} = $1;
+ }
+ elsif ($line =~ m%^Referer: (.*)%i) {
+ $data{referer} = $1;
+ }
+ next;
+ }
+ elsif ($sect eq 'F') {
+ if ($sln == 1 and $line =~ m%^\S+ (\d{3})\D?.*%) {
+ $data{response_status} = $1;
+ }
+ elsif ($line =~ m%^Content-Length: (\d+)%i) {
+ $data{bytes_sent} = $1;
+ }
+ next;
+ }
+ }
+ $data{md5} = md5_hex($data);
+
+ printf MLOGC (
+ "%s %s %s %s %s \"%s\" %s %s \"%s\" \"%s\" %s \"%s\" %s %s %s md5:%s\n",
+ $data{hostname},
+ $data{remote_addr},
+ $data{remote_user},
+ $data{local_user},
+ $data{logtime},
+ $data{request},
+ $data{response_status},
+ $data{bytes_sent},
+ $data{referer},
+ $data{user_agent},
+ $data{uniqueid},
+ $data{sessionid},
+ $data{audit_file},
+ $data{extra},
+ $data{audit_size},
+ $data{md5},
+ );
+
+}
+
--- /dev/null
+##########################################################################
+# Required configuration
+# At a minimum, the items in this section will need to be adjusted to
+# fit your environment. The remaining options are optional.
+##########################################################################
+
+# Points to the root of the installation. All relative
+# paths will be resolved with the help of this path.
+CollectorRoot "/var/log/mlogc"
+
+# ModSecurity Console receiving URI. You can change the host
+# and the port parts but leave everything else as is.
+ConsoleURI "https://CONSOLE_IP_ADDRESS:8888/rpc/auditLogReceiver"
+
+# Sensor credentials
+SensorUsername "SENSOR_USERNAME"
+SensorPassword "SENSOR_PASSWORD"
+
+# Base directory where the audit logs are stored. This can be specified
+# as a path relative to the CollectorRoot, or a full path.
+LogStorageDir "data"
+
+# Transaction log will contain the information on all log collector
+# activities that happen between checkpoints. The transaction log
+# is used to recover data in case of a crash (or if Apache kills
+# the process).
+TransactionLog "mlogc-transaction.log"
+
+# The file where the pending audit log entry data is kept. This file
+# is updated on every checkpoint.
+QueuePath "mlogc-queue.log"
+
+# The location of the error log.
+ErrorLog "mlogc-error.log"
+
+# The location of the lock file.
+LockFile "mlogc.lck"
+
+# Keep audit log entries after sending? (0=false 1=true)
+# NOTE: This is required to be set in SecAuditLog mlogc config if you
+# are going to use a secondary console via SecAuditLog2.
+KeepEntries 0
+
+
+##########################################################################
+# Optional configuration
+##########################################################################
+
+# The error log level controls how much detail there
+# will be in the error log. The levels are as follows:
+# 0 - NONE
+# 1 - ERROR
+# 2 - WARNING
+# 3 - NOTICE
+# 4 - DEBUG
+# 5 - DEBUG2
+#
+ErrorLogLevel 3
+
+# How many concurrent connections to the server
+# are we allowed to open at the same time? Log collector uses
+# multiple connections in order to speed up audit log transfer.
+# This is especially needed when the communication takes place
+# over a slow link (e.g. not over a LAN).
+MaxConnections 10
+
+# How many requests a worker will process before recycling itself.
+# This is to help prevent problems due to any memory leaks that may
+# exists. If this is set to 0, then no maximum is imposed. The default
+# is 1000 requests per worker (the number of workers is controlled by the
+# MaxConnections limit).
+MaxWorkerRequests 1000
+
+# The time each connection will sit idle before being reused,
+# in milliseconds. Increase if you don't want ModSecurity Console
+# to be hit with too many log collector requests.
+TransactionDelay 50
+
+# The time to wait before initialization on startup in milliseconds.
+# Increase if mlogc is starting faster then termination when the
+# sensor is reloaded.
+StartupDelay 5000
+
+# How often is the pending audit log entry data going to be written
+# to a file. The default is 15 seconds.
+CheckpointInterval 15
+
+# If the server fails all threads will back down until the
+# problem is sorted. The management thread will periodically
+# launch a thread to test the server. The default is to test
+# once in 60 seconds.
+ServerErrorTimeout 60
+
+# The following two parameters are not used yet, but
+# reserved for future expansion.
+# KeepAlive 150
+# KeepAliveTimeout 300
+
--- /dev/null
+/*
+ * ModSecurity for Apache 2.x, http://www.modsecurity.org/
+ * Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
+ *
+ * This product is released under the terms of the General Public Licence,
+ * version 2 (GPLv2). Please refer to the file LICENSE (included with this
+ * distribution) which contains the complete text of the licence.
+ *
+ * There are special exceptions to the terms and conditions of the GPL
+ * as it is applied to this software. View the full text of the exception in
+ * file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
+ * distribution.
+ *
+ * If any of the files related to licensing are missing or if you have any
+ * other questions related to licensing please contact Breach Security, Inc.
+ * directly using the email address support@breach.com.
+ *
+ */
+
+#include <apr.h>
+#include <apr_errno.h>
+#include <apr_general.h>
+#include <apr_file_io.h>
+#include <apr_file_info.h>
+#include <apr_hash.h>
+#include <apr_lib.h>
+#include <apr_strings.h>
+#include <apr_signal.h>
+#include <apr_thread_proc.h>
+#include <apr_global_mutex.h>
+#include <apr_getopt.h>
+#include <apr_version.h>
+#if APR_HAVE_UNISTD_H
+#include <unistd.h> /* for getpid() */
+#endif
+#include <pcre.h>
+#include <curl/curl.h>
+#include <fcntl.h>
+#include <sys/stat.h>
+#include <sys/types.h>
+
+#include "msc_release.h"
+
+static void logc_shutdown(int rc);
+static void create_new_worker(int lock);
+static void error_log(int level, void *thread, const char *text, ...) PRINTF_ATTRIBUTE(3,4);
+
+
+/* -- Constants -- */
+
+/* Error log levels. */
+#define LOG_ERROR 1
+#define LOG_WARNING 2
+#define LOG_NOTICE 3
+#define LOG_DEBUG 4
+#define LOG_DEBUG2 5
+
+/* The management thread will wake up every five seconds. */
+#define MANAGER_SLEEP 5000000
+#define MANAGER_SUBSLEEP 10000
+
+/* Hack to allow multiple mlogc with single delete */
+#define KEEP_ENTRIES_REMOVE_HACK 2600
+#define KEEP_ENTRIES_REMOVE_TIME 0l
+#ifdef TEST_HACK
+#define TEST_WITH_RAND_SLEEP(n) \
+do { \
+ int sec = rand()/(RAND_MAX/n); \
+ error_log(LOG_DEBUG2, NULL, "TEST_HACK: Sleeping for %ds", sec); \
+ apr_sleep(apr_time_from_sec(sec)); \
+} while(0)
+#else
+#define TEST_WITH_RAND_SLEEP(n)
+#endif
+
+#define CAPTUREVECTORSIZE 60
+#define PIPE_BUF_SIZE 65536
+#define MEMALLOC_ERROR_MSG "Memory allocation failed!"
+#define VERSION MODSEC_VERSION
+
+#define CMDLINE_OPTS "fvh"
+
+#define TXIN 0
+#define TXOUT 1
+
+#define STATUSBUF_SIZE 256
+
+#define ISHEXCHAR(X) (((X >= '0')&&(X <= '9')) || ((X >= 'a')&&(X <= 'f')) || ((X >= 'A')&&(X <= 'F')))
+
+/* -- Regex Patterns -- */
+
+/**
+ * This regular expression is used to parse the entire
+ * log line we receive from Apache. The REQUEST_LINE is
+ * treated as a single parameter to allow for invalid
+ * requests.
+ */
+const char logline_pattern[] =
+ "^(\\S+)"
+ "\\ (\\S+)\\ (\\S+)\\ (\\S+)"
+ "\\ \\[([^:]+):(\\d+:\\d+:\\d+)\\ ([^\\]]+)\\]"
+ "\\ \"(.*)\""
+ "\\ (\\d+)\\ (\\S+)"
+ "\\ \"(.*)\"\\ \"(.*)\""
+ "\\ (\\S+)\\ \"(.*)\""
+ "\\ /?(\\S+)\\ (\\d+)\\ (\\d+)"
+ "\\ (\\S+)"
+ "(.*)$";
+
+
+/**
+ * This regular expression can be used to parse
+ * a REQUEST_LINE field into method, URI, and
+ * protocol.
+ */
+const char requestline_pattern[] =
+ "(\\S+)\\ (.*?)\\ (\\S+)";
+
+
+/* -- Structures -- */
+
+typedef struct {
+ unsigned long int id;
+ const char *line;
+ apr_size_t line_size;
+} entry_t;
+
+
+/* -- Global variables -- */
+
+pid_t logc_pid = 0;
+const char *conffile = NULL;
+const char *lockfile = NULL;
+int have_read_data = 0;
+int checkpoint_interval = 60;
+apr_time_t checkpoint_time_last = 0;
+const char *collector_root = NULL;
+apr_table_t *conf = NULL;
+const char *console_uri = NULL;
+apr_array_header_t *curl_handles = NULL;
+int current_workers = 0;
+int management_thread_active = 0;
+unsigned long int entry_counter = 1;
+const char *error_log_path = NULL;
+apr_file_t *error_log_fd = NULL;
+int error_log_level = 2;
+apr_hash_t *in_progress = NULL;
+int keep_alive = 150; /* Not used yet. */
+int keep_alive_timeout = 300; /* Not used yet. */
+int keep_entries = 0;
+const char *log_repository = NULL;
+void *logline_regex = NULL;
+int max_connections = 10;
+int max_worker_requests = 1000;
+apr_global_mutex_t *gmutex = NULL;
+apr_thread_mutex_t *mutex = NULL;
+apr_pool_t *pool = NULL;
+apr_pool_t *thread_pool = NULL;
+apr_pool_t *recv_pool = NULL;
+apr_array_header_t *queue = NULL;
+const char *queue_path = NULL;
+/* apr_time_t queue_time = 0; */
+void *requestline_regex = NULL;
+int running = 0;
+const char *sensor_password = NULL;
+const char *sensor_username = NULL;
+int server_error = 0;
+apr_time_t server_error_last_check_time = 0;
+int server_error_timeout = 60;
+int startup_delay = 100;
+int transaction_delay = 100;
+const char *transaction_log_path = NULL;
+apr_file_t *transaction_log_fd = NULL;
+
+
+/* -- Commandline opts -- */
+int opt_force = 0;
+
+
+/* -- Code -- */
+
+static char *_log_escape(apr_pool_t *mp, const char *input, apr_size_t input_len)
+{
+ static const char c2x_table[] = "0123456789abcdef";
+ unsigned char *d = NULL;
+ char *ret = NULL;
+ unsigned long int i;
+
+ if (input == NULL) return NULL;
+
+ ret = apr_palloc(mp, input_len * 4 + 1);
+ if (ret == NULL) return NULL;
+ d = (unsigned char *)ret;
+
+ i = 0;
+ while(i < input_len) {
+ switch(input[i]) {
+ case '"' :
+ *d++ = '\\';
+ *d++ = '"';
+ break;
+ case '\b' :
+ *d++ = '\\';
+ *d++ = 'b';
+ break;
+ case '\n' :
+ *d++ = '\\';
+ *d++ = 'n';
+ break;
+ case '\r' :
+ *d++ = '\\';
+ *d++ = 'r';
+ break;
+ case '\t' :
+ *d++ = '\\';
+ *d++ = 't';
+ break;
+ case '\v' :
+ *d++ = '\\';
+ *d++ = 'v';
+ break;
+ case '\\' :
+ *d++ = '\\';
+ *d++ = '\\';
+ break;
+ default :
+ if ((input[i] <= 0x1f)||(input[i] >= 0x7f)) {
+ *d++ = '\\';
+ *d++ = 'x';
+ *d++ = c2x_table[input[i] >> 4];
+ *d++ = c2x_table[input[i] & 0x0f];
+ } else {
+ *d++ = input[i];
+ }
+ break;
+ }
+
+ i++;
+ }
+
+ *d = 0;
+
+ return ret;
+}
+
+/**
+ * Converts a byte given as its hexadecimal representation
+ * into a proper byte. Handles uppercase and lowercase letters
+ * but does not check for overflows.
+ */
+static unsigned char x2c(unsigned char *what) {
+ register unsigned char digit;
+
+ digit = (what[0] >= 'A' ? ((what[0] & 0xdf) - 'A') + 10 : (what[0] - '0'));
+ digit *= 16;
+ digit += (what[1] >= 'A' ? ((what[1] & 0xdf) - 'A') + 10 : (what[1] - '0'));
+
+ return digit;
+}
+
+/**
+ * URL Decodes a string in-place
+ */
+static int urldecode_inplace(unsigned char *input, apr_size_t input_len) {
+ unsigned char *d = (unsigned char *)input;
+ apr_size_t i;
+
+ if (input == NULL) return 0;
+
+ i = 0;
+ while (i < input_len) {
+ if (input[i] == '%') {
+ /* Character is a percent sign. */
+
+ /* Are there enough bytes available? */
+ if (i + 2 < input_len) {
+ char c1 = input[i + 1];
+ char c2 = input[i + 2];
+
+ if (ISHEXCHAR(c1) && ISHEXCHAR(c2)) {
+ /* Valid encoding - decode it. */
+ *d++ = x2c(&input[i + 1]);
+ i += 3;
+ } else {
+ /* Not a valid encoding, skip this % */
+ *d++ = input[i++];
+ }
+ } else {
+ /* Not enough bytes available, copy the raw bytes. */
+ *d++ = input[i++];
+ }
+ } else {
+ /* Character is not a percent sign. */
+ if (input[i] == '+') {
+ *d++ = ' ';
+ } else {
+ *d++ = input[i];
+ }
+ i++;
+ }
+ }
+
+ *d = '\0';
+
+ return 1;
+}
+
+/**
+ * Detect a relative path and merge it with the collector root
+ * path. Leave absolute paths as they are.
+ */
+static const char *file_path(const char *path)
+{
+ char *newpath = NULL;
+ apr_status_t rc;
+
+ if (path == NULL) return NULL;
+
+ rc = apr_filepath_merge(&newpath, collector_root, path, APR_FILEPATH_TRUENAME, pool);
+ if ((newpath != NULL) && (rc == APR_SUCCESS || APR_STATUS_IS_EPATHWILD(rc)
+ || APR_STATUS_IS_ENOENT(rc) || APR_STATUS_IS_ENOTDIR(rc)))
+ {
+ return newpath;
+ }
+ else {
+ return NULL;
+ }
+}
+
+
+/**
+ * Returns the current datetime as a string.
+ */
+static char *current_logtime(char *dest, int dlen)
+{
+ apr_time_exp_t t;
+ apr_size_t len;
+
+ apr_time_exp_lt(&t, apr_time_now());
+ apr_strftime(dest, &len, dlen, "%a %b %d %H:%M:%S %Y", &t);
+
+ return dest;
+}
+
+
+/**
+ * Logs error to the error log (if available) or
+ * to the stderr.
+ */
+static void error_log(int level, void *thread, const char *text, ...)
+{
+ char msg1[4096] = "";
+ char msg2[4096] = "";
+ char datetime[100];
+ va_list ap;
+
+ if (level > error_log_level) return;
+
+ va_start(ap, text);
+
+ apr_vsnprintf(msg1, sizeof(msg1), text, ap);
+ apr_snprintf(msg2, sizeof(msg2), "[%s] [%d] [%" APR_PID_T_FMT "/%pp] %s\n", current_logtime(datetime, sizeof(datetime)), level, logc_pid, (thread ? thread : 0), msg1);
+
+ if (error_log_fd != NULL) {
+ apr_size_t nbytes_written;
+ apr_size_t nbytes = strlen(msg2);
+ apr_file_write_full(error_log_fd, msg2, nbytes, &nbytes_written);
+ }
+ else {
+ fprintf(stderr, "%s", msg2);
+ }
+
+ va_end(ap);
+}
+
+
+/**
+ * Adds one entry to the internal queue. It will (optionally) start
+ * a new thread to handle it.
+ */
+static void add_entry(const char *data, int start_worker)
+{
+ entry_t *entry = NULL;
+
+ entry = (entry_t *)malloc(sizeof(entry_t));
+ entry->id = 0;
+ entry->line = strdup(data);
+ entry->line_size = strlen(entry->line);
+
+ error_log(LOG_DEBUG, NULL, "Queue locking thread mutex.");
+ if (APR_STATUS_IS_EBUSY(apr_thread_mutex_trylock(mutex))) {
+ error_log(LOG_DEBUG, NULL, "Queue waiting on thread mutex.");
+ apr_thread_mutex_lock(mutex);
+ }
+
+ /* Assign unique ID to this log entry. */
+ entry->id = entry_counter++;
+
+ /* Add the new audit log entry to the queue. */
+ *(entry_t **)apr_array_push(queue) = entry;
+
+ /* Create a new worker if we can, but not if there is a known problem with the server. */
+ if ((start_worker != 0)&&(current_workers < max_connections)&&(server_error == 0)) {
+ create_new_worker(0);
+ }
+
+ error_log(LOG_DEBUG, NULL, "Queue unlocking thread mutex.");
+ apr_thread_mutex_unlock(mutex);
+}
+
+
+/**
+ * Read the queue entries.
+ */
+static int read_queue_entries(apr_file_t *fd, apr_time_t *queue_time)
+{
+ char linebuf[4100];
+ int line_count = -1;
+
+ for(;;) {
+ apr_status_t rc = apr_file_gets(linebuf, 4096, fd);
+ char *p;
+
+ if (rc == APR_EOF) break;
+ if (rc != APR_SUCCESS) {
+ error_log(LOG_ERROR, NULL, "Error reading from the queue file.");
+ logc_shutdown(1);
+ }
+
+ if (line_count < 0) {
+ /* First line contains the queue time. */
+ *queue_time = (apr_time_t)apr_atoi64(linebuf);
+ line_count = 0;
+ continue;
+ }
+
+ p = &linebuf[0];
+
+ /* Remove the \n from the end of the line. */
+ while(*p != '\0') {
+ if (*p == '\n') {
+ *p = '\0';
+ break;
+ }
+ p++;
+ }
+
+ if (linebuf[0] == '#') { /* Ignore comments. */
+ continue;
+ }
+
+ add_entry((const char *)&linebuf, 0);
+
+ line_count++;
+ }
+
+ apr_file_close(fd);
+
+ return line_count;
+}
+
+
+/**
+ * Initialise the transaction log. This code should be
+ * executed only once at startup.
+ */
+static void transaction_log_init(void)
+{
+ /* ENH: These big enough? */
+ char new_queue_path[256];
+ char old_queue_path[256];
+ apr_file_t *queue_fd = NULL;
+ apr_time_t queue_time;
+
+ apr_snprintf(new_queue_path, sizeof(new_queue_path), "%s.new", queue_path);
+ apr_snprintf(old_queue_path, sizeof(old_queue_path), "%s.old", queue_path);
+
+ /* Put a lock in place to ensure exclusivity. */
+ error_log(LOG_DEBUG, NULL, "Transaction initialization locking global mutex.");
+ if (APR_STATUS_IS_EBUSY(apr_global_mutex_trylock(gmutex))) {
+ error_log(LOG_DEBUG, NULL, "Transaction initialization waiting on global mutex.");
+ apr_global_mutex_lock(gmutex);
+ }
+
+ error_log(LOG_DEBUG, NULL, "Transaction initialization started.");
+
+ /* Delete .new file if there is one. */
+ apr_file_remove(new_queue_path, pool);
+
+ /* Read in the data from the queue. */
+ if (apr_file_open(&queue_fd, queue_path, APR_READ | APR_FILE_NOCLEANUP,
+ 0, pool) == APR_SUCCESS)
+ {
+ int line_count = read_queue_entries(queue_fd, &queue_time);
+
+ apr_file_close(queue_fd);
+
+ if (line_count > 0) {
+ error_log(LOG_NOTICE, NULL, "Loaded %d entries from the queue file.", line_count);
+ }
+ }
+ /* Try the old queue file. */
+ else if (apr_file_open(&queue_fd, old_queue_path, APR_READ | APR_FILE_NOCLEANUP,
+ 0, pool) == APR_SUCCESS)
+ {
+ int line_count = read_queue_entries(queue_fd, &queue_time);
+ apr_file_close(queue_fd);
+ error_log(LOG_NOTICE, NULL, "Loaded %d entries from the OLD queue file.", line_count);
+ apr_file_rename(old_queue_path, queue_path, pool);
+ }
+ else {
+ error_log(LOG_NOTICE, NULL, "Queue file not found. New one will be created.");
+ }
+
+ /* Delete the old queue file. */
+ apr_file_remove(old_queue_path, pool);
+
+ checkpoint_time_last = apr_time_now();
+
+ /* Start fresh with the transaction log. Do note that
+ * we do not truncate the transaction log on purpose. Apache
+ * will start copies of piped logging binaries during configuration
+ * testing. Truncating would erase the log of a currently running
+ * instance.
+ */
+ if (apr_file_open(&transaction_log_fd, transaction_log_path, APR_WRITE | APR_CREATE
+ | APR_APPEND | APR_XTHREAD, APR_OS_DEFAULT, pool) != APR_SUCCESS)
+ {
+ error_log(LOG_ERROR, NULL, "Failed to open the transaction log: %s\n", transaction_log_path);
+ error_log(LOG_DEBUG, NULL, "Transaction initialization unlocking global mutex.");
+ apr_global_mutex_unlock(gmutex);
+ logc_shutdown(1);
+ }
+
+ error_log(LOG_DEBUG, NULL, "Transaction initialization completed.");
+
+ /* Unlock */
+ error_log(LOG_DEBUG, NULL, "Transaction initialization unlocking global mutex.");
+ apr_global_mutex_unlock(gmutex);
+}
+
+
+/**
+ * Log entry event (incoming or outgoing) to the transaction log.
+ */
+static void transaction_log(int direction, const char *entry)
+{
+ apr_size_t nbytes, nbytes_written;
+ char msg[8196] = "";
+
+ apr_snprintf(msg, sizeof(msg), "%u %s: %s\n", (unsigned int)apr_time_sec(apr_time_now()),
+ (direction == TXIN ? "IN" : "OUT"), entry);
+ nbytes = strlen(msg);
+ apr_file_write_full(transaction_log_fd, msg, nbytes, &nbytes_written);
+}
+
+
+/**
+ * Executes a checkpoint, which causes the current queue to be
+ * written to a file and the transaction log to be truncated.
+ */
+static void transaction_checkpoint(void)
+{
+ /* ENH: These big enough? */
+ char new_queue_path[256];
+ char old_queue_path[256];
+ apr_file_t *queue_fd = NULL;
+ apr_hash_index_t *hi = NULL;
+ char msg[256];
+ int i;
+ apr_pool_t *cpool;
+
+ apr_snprintf(new_queue_path, sizeof(new_queue_path), "%s.new", queue_path);
+ apr_snprintf(old_queue_path, sizeof(old_queue_path), "%s.old", queue_path);
+ apr_snprintf(msg, sizeof(msg), "%u\n", (unsigned int)apr_time_sec(apr_time_now()));
+
+ if (! have_read_data) {
+ error_log(LOG_DEBUG, NULL, "Checkpoint not required.");
+ return;
+ }
+
+ /* Put a lock in place to ensure exclusivity. */
+ error_log(LOG_DEBUG, NULL, "Checkpoint locking global mutex.");
+ if (APR_STATUS_IS_EBUSY(apr_global_mutex_trylock(gmutex))) {
+ error_log(LOG_DEBUG, NULL, "Checkpoint waiting on global mutex.");
+ apr_global_mutex_lock(gmutex);
+ }
+
+ error_log(LOG_DEBUG, NULL, "Checkpoint started.");
+
+ apr_pool_create(&cpool, NULL);
+
+ /* Dump active entries into a new queue file. */
+ if (apr_file_open(&queue_fd, new_queue_path, APR_WRITE | APR_CREATE
+ | APR_EXCL | APR_TRUNCATE | APR_FILE_NOCLEANUP, APR_OS_DEFAULT, cpool) != APR_SUCCESS)
+ {
+ error_log(LOG_ERROR, NULL, "Failed to create file: %s", new_queue_path);
+ error_log(LOG_DEBUG, NULL, "Checkpoint unlocking global mutex.");
+ apr_pool_destroy(cpool);
+ apr_global_mutex_unlock(gmutex);
+ return;
+ }
+
+ /* Write the time first. */
+ apr_file_write_full(queue_fd, msg, strlen(msg), NULL);
+
+ /* Dump the entries sitting in the queue first. */
+ for (i = 0; i < queue->nelts; i++) {
+ entry_t *entry = ((entry_t **)queue->elts)[i];
+ apr_file_write_full(queue_fd, entry->line, entry->line_size, NULL);
+ apr_file_write_full(queue_fd, &"\n", 1, NULL);
+ }
+ error_log(LOG_DEBUG2, NULL, "Checkpoint wrote %d queued entries to new queue.", i);
+
+ /* Then dump the ones that are currently being processed. */
+ i = 0;
+ for (hi = apr_hash_first(NULL, in_progress); hi != NULL; hi = apr_hash_next(hi)) {
+ void *e;
+ entry_t *entry = NULL;
+
+ i++;
+ apr_hash_this(hi, NULL, NULL, &e);
+ entry = e; /* quiet type-punned warning */
+ apr_file_write_full(queue_fd, entry->line, entry->line_size, NULL);
+ apr_file_write_full(queue_fd, &"\n", 1, NULL);
+ }
+ error_log(LOG_DEBUG2, NULL, "Checkpoint wrote %d additional entries to new queue.", i);
+
+ apr_file_close(queue_fd);
+
+ /* Switch the files and truncate the transaction log file. */
+ apr_file_remove(old_queue_path, cpool);
+ apr_file_rename(queue_path, old_queue_path, cpool);
+ apr_file_rename(new_queue_path, queue_path, cpool);
+ apr_file_remove(old_queue_path, cpool);
+ apr_file_trunc(transaction_log_fd, 0);
+
+ error_log(LOG_DEBUG, NULL, "Checkpoint completed.");
+
+ apr_pool_destroy(cpool);
+
+ /* Unlock and exit. */
+ error_log(LOG_DEBUG, NULL, "Checkpoint unlocking global mutex.");
+ apr_global_mutex_unlock(gmutex);
+}
+
+
+/**
+ * Parse one confguration line and add it to the
+ * configuration table.
+ */
+static void parse_configuration_line(const char *line, int line_count)
+{
+ char *start = NULL, *command = NULL;
+ char *p = NULL;
+
+ /* Remove the trailing newline character. */
+ p = (char *)line;
+ while(*p != '\0') p++;
+ if ((p > start)&&(*(p - 1) == '\n')) *(p - 1) = '\0';
+
+ p = (char *)line;
+ /* Ignore whitespace at the beginning of the line. */
+ while(apr_isspace(*p)) p++;
+
+ /* Ignore empty lines and comments. */
+ if ((*p == '\0')||(*p == '#')) return;
+
+ start = p;
+ while(!apr_isspace(*p)&&(*p != '\0')) p++;
+
+ command = apr_pstrmemdup(pool, start, p - start);
+
+ while(apr_isspace(*p)) p++;
+
+ /* Remove whitespace at the end. */
+ start = p;
+ while(*p != '\0') p++;
+ if (p > start) {
+ p--;
+ while(apr_isspace(*p)) {
+ *p-- = '\0';
+ }
+ }
+
+ /* Remove quotes, but only if we have matching */
+ if ((*start == '"') && (p > start) && (*p == '"')) {
+ start++;
+ *p-- = '\0';
+ }
+
+ /* Take the last directive */
+ /* ENH: Error on dup directives? */
+ apr_table_set(conf, command, start);
+}
+
+
+/**
+ * Reads configuration from a file.
+ */
+static void read_configuration(void)
+{
+ char linebuf[4096];
+ apr_status_t rc;
+ apr_file_t *fd;
+ int line_count;
+
+ conf = apr_table_make(pool, 32);
+ if (conf == NULL) {
+ error_log(LOG_ERROR, NULL, MEMALLOC_ERROR_MSG);
+ logc_shutdown(1);
+ }
+
+ rc = apr_file_open(&fd, conffile, APR_READ | APR_FILE_NOCLEANUP, 0, pool);
+ if (rc != APR_SUCCESS) {
+ error_log(LOG_ERROR, NULL, "Unable to open configuration file: %s", conffile);
+ logc_shutdown(1);
+ }
+
+ line_count = 0;
+ for(;;) {
+ rc = apr_file_gets(linebuf, 4096, fd);
+ if (rc == APR_EOF) return;
+ if (rc != APR_SUCCESS) {
+ error_log(LOG_ERROR, NULL, "Error reading from the configuration file.");
+ logc_shutdown(1);
+ }
+
+ line_count++;
+ parse_configuration_line(linebuf, line_count);
+ }
+
+ apr_file_close(fd);
+}
+
+
+/**
+ * Initialize the configuration.
+ */
+static void init_configuration(void)
+{
+ char errstr[1024];
+ apr_status_t rc = 0;
+ const char *s = NULL;
+
+ /* Other values may be based off the collector root. */
+ s = apr_table_get(conf, "CollectorRoot");
+ if (s != NULL) {
+ collector_root = s;
+ }
+
+ /* Error Log */
+ s = apr_table_get(conf, "ErrorLog");
+ if (s != NULL) {
+ error_log_path = file_path(s);
+ }
+
+ s = apr_table_get(conf, "ErrorLogLevel");
+ if (s != NULL) {
+ error_log_level = atoi(s);
+ }
+
+ if ((rc = apr_file_open(&error_log_fd, error_log_path, APR_WRITE | APR_CREATE | APR_APPEND,
+ APR_OS_DEFAULT, pool)) != APR_SUCCESS)
+ {
+ error_log(LOG_ERROR, NULL, "Failed to open the error log %s: %s\n",
+ error_log_path, apr_strerror(rc, errstr, 1024));
+ logc_shutdown(1);
+ }
+
+ error_log(LOG_NOTICE, NULL, "Configuring ModSecurity Audit Log Collector %s.", VERSION);
+
+ /* Startup Delay */
+ s = apr_table_get(conf, "StartupDelay");
+ if (s != NULL) {
+ startup_delay = atoi(s);
+ }
+
+ if ( startup_delay > 0 ) {
+ error_log(LOG_NOTICE, NULL, "Delaying execution for %dms.", startup_delay);
+ apr_sleep(startup_delay * 1000);
+ error_log(LOG_DEBUG, NULL, "Continuing execution after %dms delay.", startup_delay);
+ }
+
+ /* Remaining Configuration */
+
+ error_log(LOG_DEBUG2, NULL, "CollectorRoot=%s", collector_root);
+ error_log(LOG_DEBUG2, NULL, "ErrorLog=%s", error_log_path);
+ error_log(LOG_DEBUG2, NULL, "ErrorLogLevel=%d", error_log_level);
+ error_log(LOG_DEBUG2, NULL, "StartupDelay=%d", startup_delay);
+
+ s = apr_table_get(conf, "CheckpointInterval");
+ if (s != NULL) {
+ checkpoint_interval = atoi(s);
+ error_log(LOG_DEBUG2, NULL, "CheckpointInterval=%d", checkpoint_interval);
+ }
+
+ s = apr_table_get(conf, "QueuePath");
+ if (s != NULL) {
+ queue_path = file_path(s);
+ error_log(LOG_DEBUG2, NULL, "QueuePath=%s", queue_path);
+ }
+ else {
+ error_log(LOG_ERROR, NULL, "QueuePath not defined in the configuration file.");
+ logc_shutdown(1);
+ }
+
+ s = apr_table_get(conf, "LockFile");
+ if (s != NULL) {
+ lockfile = file_path(s);
+ error_log(LOG_DEBUG2, NULL, "LockFile=%s", lockfile);
+ }
+
+ s = apr_table_get(conf, "ServerErrorTimeout");
+ if (s != NULL) {
+ server_error_timeout = atoi(s);
+ error_log(LOG_DEBUG2, NULL, "ServerErrorTimeout=%d", server_error_timeout);
+ }
+
+ s = apr_table_get(conf, "TransactionDelay");
+ if (s != NULL) {
+ transaction_delay = atoi(s);
+ error_log(LOG_DEBUG2, NULL, "TransactionDelay=%d", transaction_delay);
+ }
+
+ s = apr_table_get(conf, "TransactionLog");
+ if (s != NULL) {
+ transaction_log_path = file_path(s);
+ error_log(LOG_DEBUG2, NULL, "TransactionLog=%s", transaction_log_path);
+ }
+
+ s = apr_table_get(conf, "MaxConnections");
+ if (s != NULL) {
+ int v = atoi(s);
+ if (v >= 0) max_connections = v;
+ error_log(LOG_DEBUG2, NULL, "MaxConnections=%d", max_connections);
+ }
+
+ s = apr_table_get(conf, "MaxWorkerRequests");
+ if (s != NULL) {
+ int v = atoi(s);
+ if (v >= 0) max_worker_requests = v;
+ error_log(LOG_DEBUG2, NULL, "MaxWorkerRequests=%d", max_worker_requests);
+ }
+
+ s = apr_table_get(conf, "KeepAlive");
+ if (s != NULL) {
+ int v = atoi(s);
+ if (v >= 0) keep_alive = v;
+ error_log(LOG_DEBUG2, NULL, "KeepAlive=%d", keep_alive);
+ }
+
+ s = apr_table_get(conf, "KeepAliveTimeout");
+ if (s != NULL) {
+ int v = atoi(s);
+ if (v >= 0) keep_alive_timeout = v;
+ error_log(LOG_DEBUG2, NULL, "KeepAliveTimeout=%d", keep_alive_timeout);
+ }
+
+ s = apr_table_get(conf, "LogStorageDir");
+ if (s != NULL) {
+ log_repository = file_path(s);
+ error_log(LOG_DEBUG2, NULL, "LogStorageDir=%s", log_repository);
+ }
+ else {
+ error_log(LOG_ERROR, NULL, "Missing mandatory parameter LogStorageDir.\n");
+ logc_shutdown(1);
+ }
+
+ s = apr_table_get(conf, "ConsoleURI");
+ if (s != NULL) {
+ console_uri = s;
+ error_log(LOG_DEBUG2, NULL, "ConsoleURI=%s", console_uri);
+ }
+ else {
+ error_log(LOG_ERROR, NULL, "Missing mandatory parameter ConsoleURI.\n");
+ logc_shutdown(1);
+ }
+
+ s = apr_table_get(conf, "SensorUsername");
+ if (s != NULL) {
+ sensor_username = s;
+ error_log(LOG_DEBUG2, NULL, "SensorUsername=%s", sensor_username);
+ }
+ else {
+ error_log(LOG_ERROR, NULL, "Missing mandatory parameter SensorUsername.\n");
+ logc_shutdown(1);
+ }
+
+ s = apr_table_get(conf, "SensorPassword");
+ if (s != NULL) {
+ sensor_password = s;
+ error_log(LOG_DEBUG2, NULL, "SensorPassword=%s", sensor_password);
+ }
+ else {
+ error_log(LOG_ERROR, NULL, "Missing mandatory parameter SensorPassword.\n");
+ logc_shutdown(1);
+ }
+
+ s = apr_table_get(conf, "KeepEntries");
+ if (s != NULL) {
+ keep_entries = atoi(s);
+ }
+ else {
+ keep_entries = 0;
+ }
+ error_log(LOG_DEBUG2, NULL, "KeepEntries=%d", keep_entries);
+}
+
+
+/**
+ * Clean-up resources before process shutdown.
+ */
+static void logc_cleanup(void)
+{
+ curl_global_cleanup();
+}
+
+
+/**
+ * Shutdown the logger.
+ */
+static void logc_shutdown(int rc)
+{
+ /* Tell the threads to shut down. */
+ running = 0;
+
+ error_log(LOG_DEBUG, NULL, "Shutting down");
+
+ /* Wait for the management thread to stop */
+ /* ENH: Need a fixed timeout if this never happens */
+ while(management_thread_active != 0) {
+ apr_sleep(10 * 1000);
+ }
+
+ if (rc == 0) {
+ error_log(LOG_NOTICE, NULL, "ModSecurity Audit Log Collector %s terminating normally.", VERSION);
+ }
+ else {
+ error_log(LOG_NOTICE, NULL, "ModSecurity Audit Log Collector %s terminating with error %d", VERSION, rc);
+ }
+
+ if (error_log_fd != NULL) {
+ apr_file_flush(error_log_fd);
+ }
+
+ exit(rc);
+}
+
+
+/**
+ * Handle signals.
+ */
+static int handle_signals(int signum)
+{
+ switch (signum) {
+ case SIGINT:
+ error_log(LOG_NOTICE, NULL, "Caught SIGINT, shutting down.");
+ logc_shutdown(0);
+ case SIGTERM:
+ error_log(LOG_NOTICE, NULL, "Caught SIGTERM, shutting down.");
+ logc_shutdown(0);
+#ifndef WIN32
+ case SIGHUP:
+ error_log(LOG_NOTICE, NULL, "Caught SIGHUP, ignored.");
+ /* ENH: reload config? */
+ return 0;
+ case SIGALRM:
+ error_log(LOG_DEBUG, NULL, "Caught SIGALRM, ignored.");
+ return 0;
+ case SIGTSTP:
+ error_log(LOG_DEBUG, NULL, "Caught SIGTSTP, ignored.");
+ return 0;
+#endif /* WIN32 */
+ }
+#ifndef WIN32
+ error_log(LOG_NOTICE, NULL, "Caught unexpected signal %d: %s", signum, apr_signal_description_get(signum));
+#else
+ error_log(LOG_NOTICE, NULL, "Caught unexpected signal %d", signum);
+#endif /* WIN32 */
+ logc_shutdown(1);
+
+ return 0; /* should never reach */
+}
+
+
+/**
+ * This function is invoked by Curl to read the response
+ * body. Since we don't care about the response body the function
+ * pretends it is retrieving data where it isn't.
+ */
+size_t curl_writefunction(void *ptr, size_t size, size_t nmemb, void *stream)
+{
+ unsigned char *data = (unsigned char *)ptr;
+ unsigned char *status = (unsigned char *)stream;
+
+ /* Grab the status line text from the first line of output */
+ if ((status[0] == 0) && (status[1] == 1)) {
+ apr_size_t i, j;
+ int ismsg = 0;
+
+ status[1] = 0; /* reset hidden init flag */
+
+ for (i = 0, j = 0; i < STATUSBUF_SIZE; i++) {
+ /* We found a line ending so we are done */
+ if ( data[i] == '\r' ) {
+ break;
+ }
+ /* Skip to after the first space (where msg is) */
+ if (ismsg < 3) {
+ if ((ismsg == 1) && !isspace(data[i])) {
+ ismsg++;
+ }
+ else if (isspace(data[i])) {
+ ismsg++;
+ }
+ continue;
+ }
+
+ /* Copy data (msg) from data to status */
+ status[j++] = data[i];
+ }
+ status[j] = '\0';
+ urldecode_inplace(status, j);
+ }
+
+ /* do nothing */
+ return (size * nmemb);
+}
+
+
+/**
+ * This function is invoked by Curl whenever it has something
+ * to say. We forward its messages to the error log at level
+ * DEBUG.
+ */
+int curl_debugfunction(CURL *curl, curl_infotype infotype, char *data, size_t datalen, void *ourdata)
+{
+ apr_size_t i, effectivelen;
+ apr_thread_t *thread = (apr_thread_t *)ourdata;
+
+ if (error_log_level < LOG_DEBUG) return 0;
+
+ effectivelen = datalen;
+ for(i = 0; i < datalen; i++) {
+ if ((data[i] == 0x0a)||(data[i] == 0x0d)) {
+ effectivelen = i;
+ break;
+ }
+ }
+
+ if (error_log_level >= LOG_DEBUG) {
+ if (infotype == CURLINFO_TEXT) {
+ error_log(LOG_DEBUG, thread, "CURL: %s", _log_escape(apr_thread_pool_get(thread), data, effectivelen));
+ }
+ }
+ if (error_log_level >= LOG_DEBUG2) {
+ if (infotype == CURLINFO_HEADER_IN) {
+ error_log(LOG_DEBUG2, thread, "CURL: HEADER_IN %s", _log_escape(apr_thread_pool_get(thread), data, effectivelen));
+ }
+ else if (infotype == CURLINFO_HEADER_OUT) {
+ error_log(LOG_DEBUG2, thread, "CURL: HEADER_OUT %s", _log_escape(apr_thread_pool_get(thread), data, effectivelen));
+ }
+ else if (infotype == CURLINFO_DATA_IN) {
+ error_log(LOG_DEBUG2, thread, "CURL: DATA_IN %s", _log_escape(apr_thread_pool_get(thread), data, effectivelen));
+ }
+ else if (infotype == CURLINFO_DATA_OUT) {
+ error_log(LOG_DEBUG2, thread, "CURL: DATA_OUT %s", _log_escape(apr_thread_pool_get(thread), data, effectivelen));
+ }
+ }
+
+ return 0;
+}
+
+
+/**
+ * Initialise the necessary resources and structures.
+ */
+static void logc_init(void)
+{
+ char errstr[1024];
+ apr_status_t rc = 0;
+ const char *errptr = NULL;
+ int i, erroffset;
+
+ queue = apr_array_make(pool, 64, sizeof(entry_t *));
+ if (queue == NULL) {
+ error_log(LOG_ERROR, NULL, MEMALLOC_ERROR_MSG);
+ logc_shutdown(1);
+ }
+
+ in_progress = apr_hash_make(pool);
+ if (in_progress == NULL) {
+ error_log(LOG_ERROR, NULL, MEMALLOC_ERROR_MSG);
+ logc_shutdown(1);
+ }
+
+ if ((rc = apr_global_mutex_create(&gmutex, lockfile, APR_LOCK_DEFAULT, pool)) != APR_SUCCESS) {
+ error_log(LOG_ERROR, NULL, "Failed to create global mutex: %s",
+ apr_strerror(rc, errstr, 1024));
+ logc_shutdown(1);
+ }
+
+ if ((rc = apr_thread_mutex_create(&mutex, APR_THREAD_MUTEX_UNNESTED, pool)) != APR_SUCCESS) {
+ error_log(LOG_ERROR, NULL, "Failed to create thread mutex: %s",
+ apr_strerror(rc, errstr, 1024));
+ logc_shutdown(1);
+ }
+
+ entry_counter = 1;
+
+ curl_handles = apr_array_make(pool, max_connections, sizeof(CURL *));
+ if (curl_handles == NULL) {
+ error_log(LOG_ERROR, NULL, MEMALLOC_ERROR_MSG);
+ logc_shutdown(1);
+ }
+
+ /* Initialise a number of Curl handles. */
+ for(i = 0; i < max_connections; i++) {
+ CURL *curl = NULL;
+
+ /* Create cURL handle. */
+ curl = curl_easy_init();
+
+ /* Pre-configure the handle. */
+ curl_easy_setopt(curl, CURLOPT_UPLOAD, TRUE);
+ curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, (char *)NULL);
+ curl_easy_setopt(curl, CURLOPT_URL, console_uri);
+ curl_easy_setopt(curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
+ curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, FALSE);
+ curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0);
+ /* SSLv3 works better overall as some servers have issues with TLS */
+ curl_easy_setopt(curl, CURLOPT_SSLVERSION, CURL_SSLVERSION_SSLv3);
+ curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 15);
+ curl_easy_setopt(curl, CURLOPT_NOSIGNAL, TRUE);
+ curl_easy_setopt(curl, CURLOPT_HEADER, TRUE);
+
+ curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, curl_writefunction);
+
+ *(CURL **)apr_array_push(curl_handles) = curl;
+ }
+
+ logline_regex = pcre_compile(logline_pattern, PCRE_CASELESS, &errptr, &erroffset, NULL);
+ if (logline_regex == NULL) {
+ error_log(LOG_ERROR, NULL, "Failed to compile pattern: %s\n", logline_pattern);
+ logc_shutdown(1);
+ }
+
+ requestline_regex = pcre_compile(requestline_pattern, PCRE_CASELESS, &errptr, &erroffset, NULL);
+ if (requestline_regex == NULL) {
+ error_log(LOG_ERROR, NULL, "Failed to compile pattern: %s\n", requestline_pattern);
+ logc_shutdown(1);
+ }
+}
+
+
+/**
+ * HACK: To allow two mlogcs running against a single dataset we use the
+ * mtime as a flag for deletion.
+ *
+ * 1) Check file date.
+ * 2) If it is KEEP_ENTRIES_REMOVE_TIME, then remove the file.
+ * 3) Otherwise set the date and let the other mlogc remove it.
+ */
+static void keep_entries_hack(apr_pool_t *mp, apr_thread_t *thread, const char *fn)
+{
+ apr_file_t *f = NULL;
+ apr_finfo_t finfo;
+ char errstr[1024];
+ apr_status_t rc;
+
+ /* Opening for write as required for exclusive lock */
+ if ((rc = apr_file_open(&f, fn, APR_READ|APR_WRITE|APR_APPEND, APR_OS_DEFAULT, mp)) != APR_SUCCESS) {
+ error_log(LOG_ERROR, thread, "Could not open \"%s\": %s", fn, apr_strerror(rc, errstr, 1024));
+ return;
+ }
+
+ if ((rc = apr_file_lock(f, APR_FLOCK_EXCLUSIVE|APR_FLOCK_NONBLOCK)) != APR_SUCCESS) {
+ error_log(LOG_DEBUG2, thread, "Waiting for lock on \"%s\": %s", fn, apr_strerror(rc, errstr, 1024));
+ if ((rc = apr_file_lock(f, APR_FLOCK_EXCLUSIVE)) != APR_SUCCESS) {
+ error_log(LOG_ERROR, thread, "Could not lock \"%s\": %s", fn, apr_strerror(rc, errstr, 1024));
+ apr_file_close(f);
+ return;
+ }
+ }
+ error_log(LOG_DEBUG2, thread, "Locked: %s", fn);
+
+ /* For testing only */
+ TEST_WITH_RAND_SLEEP(2);
+
+ if ((rc = apr_stat(&finfo, fn, APR_FINFO_MIN, mp)) != APR_SUCCESS) {
+ error_log(LOG_ERROR, thread, "Could not stat \"%s\": %s", fn, apr_strerror(rc, errstr, 1024));
+ error_log(LOG_DEBUG2, thread, "Unlocked: %s", fn);
+ apr_file_close(f);
+ return;
+ }
+
+ if (error_log_level >= LOG_DEBUG) {
+ error_log(LOG_DEBUG, thread, "STAT \"%s\" {uid=%d; gid=%d; size=%" APR_OFF_T_FMT "; csize=%" APR_OFF_T_FMT "; atime=%" APR_TIME_T_FMT "; ctime=%" APR_TIME_T_FMT "; mtime=%" APR_TIME_T_FMT "}", fn, finfo.user, finfo.group, finfo.size, finfo.csize, finfo.atime, finfo.ctime, finfo.mtime);
+ }
+
+ if (finfo.mtime != KEEP_ENTRIES_REMOVE_TIME) {
+ error_log(LOG_DEBUG2, thread, "Set mtime: %s", fn);
+ if ((rc = apr_file_mtime_set(fn, (apr_time_t)KEEP_ENTRIES_REMOVE_TIME, mp)) != APR_SUCCESS) {
+ error_log(LOG_ERROR, thread, "Could not set mtime on \"%s\": %s", fn, apr_strerror(rc, errstr, 1024));
+ }
+ error_log(LOG_DEBUG2, thread, "Unlocked: %s", fn);
+ apr_file_close(f);
+ return;
+ }
+
+
+ error_log(LOG_DEBUG, thread, "Removing: %s", fn);
+ error_log(LOG_DEBUG2, thread, "Unlocked: %s", fn);
+ apr_file_close(f);
+ apr_file_remove(fn, mp);
+}
+
+
+/**
+ * Worker thread. Works in a loop, fetching jobs from the queue,
+ * until the queue is empty or it is otherwise told to quit.
+ */
+static void * APR_THREAD_FUNC thread_worker(apr_thread_t *thread, void *data)
+{
+ unsigned int loop_count = 0;
+ CURL *curl = (CURL *)data;
+ entry_t **entryptr = NULL;
+ entry_t *entry = NULL;
+ apr_status_t rc;
+ apr_finfo_t finfo;
+ int capturevector[CAPTUREVECTORSIZE];
+ int take_new = 1;
+ apr_pool_t *tpool;
+ struct curl_slist *headerlist = NULL;
+ char curl_error_buffer[CURL_ERROR_SIZE] = "";
+ int num_requests = 0;
+
+ /* There is no need to do the sleep if this was an invalid entry
+ * as the sleep is just to protect flooding the console server
+ * with rapid requests. With an invalid entry we never hit the
+ * server, so we should not delay processing the next event.
+ */
+ int nodelay = 0;
+
+
+ error_log(LOG_DEBUG, thread, "Worker thread starting.");
+
+ /* Each worker uses its own pool to manage memory. To avoid
+ * memory leaks the pool is cleared after each processed
+ * entry.
+ */
+ apr_pool_create(&tpool, thread_pool);
+
+ /* Process jobs in a queue until there are no more jobs to process. */
+ for(;;) {
+ nodelay = 0;
+
+ /* Do we need to shut down? */
+ if (running == 0) {
+ error_log(LOG_DEBUG, thread, "We were told to shut down.");
+ goto THREAD_SHUTDOWN;
+ }
+
+ /* Is there a problem with the server? We need
+ * to shut down if there is. Except that we don't
+ * want to shut down if we were launched to investigate
+ * if the server came back online (loop_count will be
+ * zero in that case).
+ */
+ if ((server_error == 1)&&(loop_count != 0)) {
+ error_log(LOG_DEBUG, thread, "Shutting down due to server error.");
+ goto THREAD_SHUTDOWN;
+ }
+
+ loop_count++;
+
+ /* Get a new entry, but only if we need one. */
+ if (take_new) {
+ error_log(LOG_DEBUG, thread, "Worker fetch locking thread mutex.");
+ if (APR_STATUS_IS_EBUSY(apr_thread_mutex_trylock(mutex))) {
+ error_log(LOG_DEBUG, thread, "Worker fetch waiting on thread mutex.");
+ apr_thread_mutex_lock(mutex);
+ }
+
+ error_log(LOG_DEBUG, thread, "Worker fetch started.");
+
+ /* Deal with the previous entry. */
+ if (entry != NULL) {
+ error_log(LOG_DEBUG, thread, "Removing previous entry from storage.");
+ transaction_log(TXOUT, entry->line);
+
+ /* Remove previous entry from storage. */
+ apr_hash_set(in_progress, &entry->id, sizeof(entry->id), NULL);
+
+ /* Release the memory it used to occupy. */
+ free((void *)entry->line);
+ free(entry);
+ entry = NULL;
+ }
+
+ error_log(LOG_DEBUG, thread, "Getting one entry from the queue.");
+
+ /* Get one entry. */
+ entryptr = (entry_t **)apr_array_pop(queue);
+ if (entryptr == NULL) {
+ error_log(LOG_DEBUG, thread, "Worker fetch unlocking thread mutex.");
+ apr_thread_mutex_unlock(mutex);
+ error_log(LOG_DEBUG, thread, "No more work for this thread, exiting.");
+
+ goto THREAD_SHUTDOWN;
+ }
+
+ entry = *entryptr;
+ apr_hash_set(in_progress, &entry->id, sizeof(entry->id), entry);
+
+ error_log(LOG_DEBUG, thread, "Worker fetch completed.");
+
+ error_log(LOG_DEBUG, thread, "Worker fetch unlocking thread mutex.");
+ apr_thread_mutex_unlock(mutex);
+ }
+
+ /* Send one entry. */
+
+ error_log(LOG_DEBUG, thread, "Processing entry.");
+ take_new = 0;
+
+ /* Keep track of requests processed if we need to */
+ if (max_worker_requests > 0) {
+ num_requests++;
+ }
+
+ rc = pcre_exec(logline_regex, NULL, entry->line, entry->line_size, 0, 0,
+ capturevector, CAPTUREVECTORSIZE);
+ if (rc == PCRE_ERROR_NOMATCH) { /* No match. */
+ error_log(LOG_WARNING, thread, "Invalid entry (failed to match regex): %s", _log_escape(tpool, entry->line, entry->line_size));
+ take_new = 1;
+ nodelay = 1;
+ }
+ else if (rc < 0) { /* Error condition. */
+ error_log(LOG_WARNING, thread, "Invalid entry (PCRE error %d): %s", rc, _log_escape(tpool, entry->line, entry->line_size));
+ take_new = 1;
+ nodelay = 1;
+ }
+ else { /* We have a match. */
+ char *uniqueid = NULL;
+ char *auditlogentry = NULL;
+ char *hash = NULL;
+ char *summary = NULL;
+ char *credentials = NULL;
+
+ error_log(LOG_DEBUG, thread, "Regular expression matched.");
+
+ /* For testing only */
+ TEST_WITH_RAND_SLEEP(2);
+
+ uniqueid = apr_psprintf(tpool, "%.*s",
+ (capturevector[2*13+1] - capturevector[2*13]), (entry->line + capturevector[2*13]));
+ auditlogentry = apr_psprintf(tpool, "%s/%.*s", log_repository,
+ (capturevector[2*15+1] - capturevector[2*15]), (entry->line + capturevector[2*15]));
+ hash = apr_psprintf(tpool, "X-Content-Hash: %.*s",
+ (capturevector[2*18+1] - capturevector[2*15]), (entry->line + capturevector[2*18]));
+ summary = apr_psprintf(tpool, "X-ForensicLog-Summary: %s", entry->line);
+ credentials = apr_psprintf(tpool, "%s:%s", sensor_username, sensor_password);
+
+ rc = apr_stat(&finfo, auditlogentry, APR_FINFO_SIZE, tpool);
+ if (rc == APR_SUCCESS) {
+ FILE *hd_src;
+ char response_buf[STATUSBUF_SIZE];
+ CURLcode res;
+
+ if (error_log_level >= LOG_DEBUG) {
+ error_log(LOG_DEBUG, thread, "STAT \"%s\" {uid=%d; gid=%d; size=%" APR_OFF_T_FMT "; csize=%" APR_OFF_T_FMT "; atime=%" APR_TIME_T_FMT "; ctime=%" APR_TIME_T_FMT "; mtime=%" APR_TIME_T_FMT "}", auditlogentry, finfo.user, finfo.group, finfo.size, finfo.csize, finfo.atime, finfo.ctime, finfo.mtime);
+ }
+
+ /* Initialize the respone buffer with a hidden value */
+ response_buf[0] = 0;
+ response_buf[1] = 1;
+
+ if (finfo.size == 0) {
+ error_log(LOG_WARNING, thread, "File found (%" APR_SIZE_T_FMT " bytes), skipping.", finfo.size);
+ take_new = 1;
+ nodelay = 1;
+ goto THREAD_CLEANUP;
+ }
+ else {
+ error_log(LOG_DEBUG, thread, "File found (%" APR_SIZE_T_FMT " bytes), activating cURL.", finfo.size);
+ }
+
+
+ curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);
+ curl_easy_setopt(curl, CURLOPT_DEBUGFUNCTION, curl_debugfunction);
+ curl_easy_setopt(curl, CURLOPT_DEBUGDATA, thread);
+ curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, curl_error_buffer);
+ curl_easy_setopt(curl, CURLOPT_USERPWD, credentials);
+ curl_easy_setopt(curl, CURLOPT_WRITEDATA, (char *)response_buf);
+
+ headerlist = curl_slist_append(headerlist, "Expect:");
+ headerlist = curl_slist_append(headerlist, hash);
+ headerlist = curl_slist_append(headerlist, summary);
+ curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headerlist);
+
+ hd_src = fopen(auditlogentry, "rb");
+ if (hd_src == NULL) {
+ error_log(LOG_WARNING, thread, "Invalid entry (failed to open file for reading): %s", auditlogentry);
+ take_new = 1;
+ nodelay = 1;
+ goto THREAD_CLEANUP;
+ }
+
+ curl_easy_setopt(curl, CURLOPT_READDATA, hd_src);
+ curl_easy_setopt(curl, CURLOPT_INFILESIZE_LARGE, finfo.size);
+#if 0
+ mandatory on win32?
+ curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback);
+#endif
+
+ res = curl_easy_perform(curl);
+
+ fclose(hd_src);
+
+ if (res == 0) {
+ long response_code = 0;
+
+ res = curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &response_code);
+ error_log(LOG_DEBUG, thread, "Request returned with status \"%ld %s\": %s", response_code, response_buf, uniqueid);
+
+
+ if (response_code == 0) {
+ /* Assume problem with connection */
+ error_log(LOG_WARNING, thread, "Flagging server as errored after failure to retrieve response code for entry %s (cURL code %d): Possible SSL negotiation error",
+ uniqueid, res);
+ apr_sleep(1000 * 1000);
+ take_new = 0;
+ server_error = 1;
+ server_error_last_check_time = apr_time_now();
+ }
+ else if (res != 0) {
+ error_log(LOG_WARNING, thread, "Flagging server as errored after failure to retrieve response code for entry %s (cURL code %d): %s",
+ uniqueid, res, curl_error_buffer);
+ apr_sleep(1000 * 1000);
+ take_new = 0;
+ server_error = 1;
+ server_error_last_check_time = apr_time_now();
+ }
+ else {
+ if (response_code == 200) {
+ double total_time, upload_size;
+
+ if (server_error == 1) {
+ error_log(LOG_NOTICE, thread, "Clearing the server error flag after successful entry submission: %s", uniqueid);
+ }
+ server_error = 0;
+ server_error_last_check_time = 0;
+
+ curl_easy_getinfo(curl, CURLINFO_TOTAL_TIME, &total_time);
+ curl_easy_getinfo(curl, CURLINFO_SIZE_UPLOAD, &upload_size);
+
+ if (!keep_entries) {
+ error_log(LOG_DEBUG, thread, "Removing: %s", auditlogentry);
+ apr_file_remove(auditlogentry, tpool);
+ }
+ else if (keep_entries == KEEP_ENTRIES_REMOVE_HACK) {
+ keep_entries_hack(tpool, thread, auditlogentry);
+ }
+
+ error_log(LOG_NOTICE, thread, "Entry completed (%.3f seconds, %.0f bytes): %s",
+ total_time, upload_size,
+ uniqueid);
+ take_new = 1;
+ }
+ else if (response_code == 409) {
+ /* Assume problem with audit log entry. */
+ error_log(LOG_WARNING, thread, "Failed to submit entry with \"409 %s\": %s",
+ response_buf, uniqueid);
+ take_new = 1;
+ }
+ else {
+ /* Assume problem with server. */
+ error_log(LOG_WARNING, thread, "Flagging server as errored after failure to submit entry %s with HTTP response code %ld: %s",
+ uniqueid, response_code, response_buf);
+ server_error = 1;
+ server_error_last_check_time = apr_time_now();
+ take_new = 0;
+ }
+ }
+ }
+ else { /* Something isn't right. */
+ error_log(LOG_WARNING, thread, "Flagging server as errored after failure to submit entry %s (cURL code %d): %s", uniqueid, res, curl_error_buffer);
+ server_error = 1;
+ server_error_last_check_time = apr_time_now();
+ take_new = 0;
+
+ }
+ }
+ else {
+ error_log(LOG_WARNING, thread, "Invalid entry (file not found %d): %s", rc, auditlogentry);
+ take_new = 1;
+ nodelay = 1;
+ }
+
+ /* If we are tracking num_requests, then shutdown if we are
+ * over our threshold.
+ */
+ if (num_requests && (num_requests >= max_worker_requests)) {
+ error_log(LOG_NOTICE, thread, "Reached max requests (%d) for this worker, exiting.", max_worker_requests);
+
+ goto THREAD_SHUTDOWN;
+ }
+ }
+
+ THREAD_CLEANUP:
+
+ /* Sleep if we sent data to the server so we do not flood */
+ /* ENH: Need to sleep for 1ms in a loop checking for shutdown */
+ if ((nodelay == 0) && (transaction_delay > 0)) {
+ error_log(LOG_DEBUG, thread, "Sleeping for %d msec.", transaction_delay);
+ apr_sleep(transaction_delay * 1000);
+ }
+
+ if (headerlist != NULL) {
+ curl_slist_free_all(headerlist);
+ headerlist = NULL;
+ }
+
+ apr_pool_clear(tpool);
+
+ error_log(LOG_DEBUG, thread, "Worker processing completed.");
+ }
+
+ THREAD_SHUTDOWN:
+
+ error_log(LOG_DEBUG, thread, "Worker shutdown locking thread mutex.");
+ if (APR_STATUS_IS_EBUSY(apr_thread_mutex_trylock(mutex))) {
+ error_log(LOG_DEBUG, thread, "Worker shutdown waiting on thread mutex.");
+ apr_thread_mutex_lock(mutex);
+ }
+
+ /* Deal with the previous entry, if any. */
+ if (entry != NULL) {
+ apr_hash_set(in_progress, &entry->id, sizeof(entry->id), NULL);
+
+ if (take_new == 0) { /* Not done. */
+ *(entry_t **)apr_array_push(queue) = entry;
+ }
+ else {
+ transaction_log(TXOUT, entry->line);
+ free((void *)entry->line);
+ free(entry);
+ }
+
+ entry = NULL;
+ }
+
+ /* Return curl handle to the pool for reuse. */
+ *(CURL **)apr_array_push(curl_handles) = curl;
+
+ /* No more work, exit. */
+ current_workers--;
+
+ error_log(LOG_DEBUG, thread, "Worker shutdown unlocking thread mutex.");
+ apr_thread_mutex_unlock(mutex);
+
+ apr_pool_destroy(tpool);
+
+ error_log(LOG_DEBUG, thread, "Worker thread completed.");
+
+ apr_thread_exit(thread, 0);
+
+ return NULL;
+}
+
+
+/**
+ * Creates one new worker, giving it one of the available
+ * Curl handles to work with.
+ */
+static void create_new_worker(int lock)
+{
+ apr_thread_t *thread = NULL;
+ CURL **curlptr = NULL;
+
+ if (lock) {
+ error_log(LOG_DEBUG, NULL, "Worker creation locking thread mutex.");
+ if (APR_STATUS_IS_EBUSY(apr_thread_mutex_trylock(mutex))) {
+ error_log(LOG_DEBUG, NULL, "Worker creation waiting on thread mutex.");
+ apr_thread_mutex_lock(mutex);
+ }
+ }
+
+ error_log(LOG_DEBUG, NULL, "Worker creation started.");
+
+ /* A sanity check: this part executes under lock and
+ * we want to make *sure* we don't create more threads
+ * than we are allowed.
+ */
+ if (current_workers >= max_connections) {
+ if (lock) {
+ error_log(LOG_DEBUG, NULL, "Worker creation unlocking thread mutex.");
+ apr_thread_mutex_unlock(mutex);
+ }
+ return;
+ }
+
+ /* Cleanup thread pool when idle */
+ if (current_workers <= 0) {
+ if (thread_pool != NULL) {
+ error_log(LOG_DEBUG, NULL, "Destroying thread_pool.");
+ apr_pool_destroy(thread_pool);
+ thread_pool = NULL;
+ }
+ error_log(LOG_DEBUG, NULL, "Creating thread_pool.");
+ apr_pool_create(&thread_pool, NULL);
+ }
+
+ curlptr = (CURL **)apr_array_pop(curl_handles);
+ if (curlptr != NULL) {
+ apr_threadattr_t *thread_attrs;
+ apr_status_t rc;
+
+ apr_threadattr_create(&thread_attrs, thread_pool);
+ apr_threadattr_detach_set(thread_attrs, 1);
+ apr_threadattr_stacksize_set(thread_attrs, 1024);
+
+ rc = apr_thread_create(&thread, thread_attrs, thread_worker, *curlptr, thread_pool);
+ if (rc != APR_SUCCESS) {
+ if (lock) {
+ error_log(LOG_DEBUG, NULL, "Worker creation unlocking thread mutex.");
+ apr_thread_mutex_unlock(mutex);
+ }
+ error_log(LOG_ERROR, NULL, "Failed to create new worker thread: %d", rc);
+ logc_shutdown(1);
+ }
+
+ current_workers++;
+ }
+ else {
+ if (lock) {
+ error_log(LOG_DEBUG, NULL, "Worker creation unlocking thread mutex.");
+ apr_thread_mutex_unlock(mutex);
+ }
+ error_log(LOG_ERROR, NULL, "No more cURL handles (Internal Error).");
+ logc_shutdown(1);
+ }
+
+ error_log(LOG_DEBUG, NULL, "Worker creation completed: %pp", thread);
+
+ if (lock) {
+ error_log(LOG_DEBUG, NULL, "Worker creation unlocking thread mutex.");
+ apr_thread_mutex_unlock(mutex);
+ }
+}
+
+
+/**
+ * This function implements the management thread.
+ */
+static void * APR_THREAD_FUNC thread_manager(apr_thread_t *thread, void *data)
+{
+ apr_time_t last = 0;
+ apr_time_t now = 0;
+
+ error_log(LOG_DEBUG, thread, "Management thread: Starting.");
+
+ for(;;) {
+ now = apr_time_now();
+
+ /* Should we stop running? */
+ if (running == 0) {
+ /* We need to be last */
+ error_log(LOG_DEBUG, thread, "Management thread: Waiting for worker threads to finish.");
+ while(current_workers > 0) {
+ apr_sleep(10 * 1000);
+ }
+
+ if (have_read_data) {
+ error_log(LOG_NOTICE, thread, "Running final transaction checkpoint.");
+ transaction_checkpoint();
+ }
+
+ error_log(LOG_DEBUG, thread, "Management thread: Exiting.");
+ management_thread_active = 0;
+ apr_thread_exit(thread, 0);
+ }
+
+ /* Sleep for a while, but wake up often to check running status */
+ if ((last > 0) && ((now - last) < MANAGER_SLEEP)) {
+ apr_sleep(MANAGER_SUBSLEEP);
+ continue;
+ }
+ last = now;
+
+ error_log(LOG_DEBUG2, thread, "Management thread: Processing");
+
+ /* When the server is flagged errored we need to
+ * create a worker thread from time to time to
+ * investigate.
+ */
+ if (server_error) {
+ if ((current_workers == 0)&&
+ (apr_time_sec(now - server_error_last_check_time) > server_error_timeout))
+ {
+ server_error_last_check_time = now;
+ error_log(LOG_DEBUG, thread, "Management thread: Creating worker thread to investigate server.");
+ create_new_worker(1);
+ }
+ }
+ else {
+ if ((current_workers < max_connections)&&(queue->nelts > current_workers)) {
+ error_log(LOG_DEBUG, thread, "Management thread: Creating worker thread to catch up with the queue.");
+ create_new_worker(1);
+ }
+ }
+
+ /* Initiate a transaction log checkpoint if enough time passed since the last one. */
+ if (apr_time_sec(now - checkpoint_time_last) > checkpoint_interval) {
+ error_log(LOG_DEBUG, thread, "Management thread: Initiating a checkpoint"
+ " (previous was %" APR_TIME_T_FMT " seconds ago).", apr_time_sec(now - checkpoint_time_last));
+ checkpoint_time_last = now;
+ transaction_checkpoint();
+ }
+ else {
+ error_log(LOG_DEBUG2, thread, "Management thread: Last checkpoint was %" APR_TIME_T_FMT " seconds ago.",
+ apr_time_sec(now - checkpoint_time_last));
+ }
+ }
+
+ return NULL;
+}
+
+#ifndef WIN32
+/**
+ * Thread to handle all signals
+ */
+static void * APR_THREAD_FUNC thread_signals(apr_thread_t *thread, void *data)
+{
+ apr_status_t rc;
+
+ error_log(LOG_DEBUG, thread, "Signal thread: Starting.");
+ rc = apr_signal_thread(handle_signals);
+ if (rc != APR_SUCCESS) {
+ error_log(LOG_DEBUG, thread, "Signal thread: Error %d", rc);
+ logc_shutdown(1);
+ }
+
+ return NULL;
+}
+#endif /* WIN32 */
+
+/**
+ * The main loop where we receive log entries from
+ * Apache and add them to the queue, sometimes creating
+ * new worker threads to handle them.
+ */
+static void receive_loop(void) {
+ apr_file_t *fd_stdin;
+ apr_size_t nbytes = PIPE_BUF_SIZE;
+ char *buf = apr_palloc(pool, PIPE_BUF_SIZE + 1);
+ char errstr[1024];
+ apr_size_t evnt = 0; /* Index in buf to first event char */
+ apr_size_t curr = 0; /* Index in buf to current processing char */
+ apr_size_t next = 0; /* Index in buf to next unused char */
+ int done = 0;
+ int drop_next = 0;
+ int buffered_events = 0;
+ int count = 0;
+ apr_pool_t *tmp_pool;
+
+ /* Open stdin. */
+ if (apr_file_open_stdin(&fd_stdin, pool) != APR_SUCCESS) {
+ error_log(LOG_ERROR, NULL, "Unable to open stdin for reading");
+ logc_shutdown(1);
+ }
+
+ /* Always want this NUL terminated */
+ buf[PIPE_BUF_SIZE] = '\0';
+
+ apr_pool_create(&tmp_pool, NULL);
+
+ /* Loop forever receiving entries from stdin. */
+ while(!done || (curr < next)) {
+ apr_status_t rc;
+
+ if (error_log_level >= LOG_DEBUG2) {
+ error_log(LOG_DEBUG2, NULL, "Internal state: [evnt \"%" APR_SIZE_T_FMT "\"][curr \"%" APR_SIZE_T_FMT "\"][next \"%" APR_SIZE_T_FMT "\"][nbytes \"%" APR_SIZE_T_FMT "\"]", evnt, curr, next, nbytes);
+ }
+
+ /* If we are not done and have the space, read more */
+ if (!done && (nbytes > 0)) {
+ buffered_events = 0;
+ nbytes = PIPE_BUF_SIZE - next;
+ rc = apr_file_read(fd_stdin, (buf + next), &nbytes);
+ if (rc != APR_SUCCESS) {
+ if (have_read_data) {
+ error_log(LOG_NOTICE, NULL, "No more data to read, emptying buffer: %s", apr_strerror(rc, errstr, 1024));
+ }
+ done = 1;
+ }
+ else {
+ have_read_data = 1;
+ if (error_log_level == LOG_DEBUG) {
+ error_log(LOG_DEBUG, NULL, "Read %" APR_SIZE_T_FMT " bytes from pipe", nbytes);
+ }
+ else {
+ error_log(LOG_DEBUG2, NULL, "Read %" APR_SIZE_T_FMT " bytes from pipe: `%s'", nbytes, _log_escape(tmp_pool, (buf + next), nbytes));
+ }
+ }
+
+ next += nbytes;
+ }
+
+ /**
+ * Each chunk of data we receive can contain one or more lines for
+ * which we need to find the EOL marker and then queue the event
+ * up to that. So, find/queue as many lines in the buffer as we
+ * can. Any remaining data will get shifted back to the beginning
+ * of the buffer and the buffer size for the next read adjusted.
+ */
+ while(curr < next) {
+ /* Look for EOL so we can parse the event */
+ while((curr < next) && (buf[curr] != 0x0a)) {
+ curr++;
+ }
+ if (buf[curr] == 0x0a) {
+ buf[curr] = '\0';
+
+ /* We may have to drop this one if it previously failed */
+ if (drop_next) {
+ error_log(LOG_ERROR, NULL, "Dropping remaining portion of failed event: `%s'", _log_escape(tmp_pool, (buf + evnt), (curr - evnt)));
+ drop_next = 0;
+ }
+ else {
+ transaction_log(TXIN, buf + evnt);
+ error_log(LOG_DEBUG2, NULL, "Received audit log entry (count %lu queue %d workers %d): %s",
+ entry_counter, queue->nelts, current_workers, _log_escape(tmp_pool, (buf + evnt), strlen(buf + evnt)));
+ add_entry(buf + evnt, 1);
+ buffered_events++;
+ }
+
+ /* Advance indexes to next event in buf */
+ evnt = curr = curr + 1;
+ }
+ else {
+ error_log(LOG_DEBUG2, NULL, "Event buffer contains partial event: `%s'", _log_escape(tmp_pool, (buf + evnt), (next - evnt)));
+ break;
+ }
+ }
+
+
+ if (buffered_events > 0) {
+ error_log(LOG_DEBUG, NULL, "Processed %d entries from buffer.", buffered_events);
+
+ /* Move the unused portion of the buffer to the beginning */
+ next -= evnt;
+ curr -= evnt;
+ memmove(buf, (buf + evnt), next);
+
+ error_log(LOG_DEBUG2, NULL, "Shifted buffer back %" APR_SIZE_T_FMT " and offset %" APR_SIZE_T_FMT " bytes for next read: `%s'", evnt, next, _log_escape(tmp_pool, buf, next));
+
+ evnt = 0;
+ }
+ else if (next == PIPE_BUF_SIZE) {
+ /**
+ * There is a chance we could fill the buffer, but not have finished
+ * reading the event (no EOL yet), so we need to say so and drop
+ * all data until we find the end of the event that is too large.
+ */
+
+ if (drop_next) {
+ error_log(LOG_ERROR, NULL, "Event continuation too large, dropping it as well: `%s'", _log_escape(tmp_pool, buf, PIPE_BUF_SIZE));
+ }
+ else {
+ error_log(LOG_ERROR, NULL, "Event too large, dropping event: `%s'", _log_escape(tmp_pool, buf, PIPE_BUF_SIZE));
+ }
+
+ /* Rewind buf and mark that we need to drop up to the next event */
+ evnt = curr = next = 0;
+ drop_next = 1;
+ }
+
+ nbytes = PIPE_BUF_SIZE - next;
+
+ if (count++ > 1000) {
+ count = 0;
+ error_log(LOG_DEBUG, NULL, "Recycling tmp_pool.");
+ apr_pool_destroy(tmp_pool);
+ apr_pool_create(&tmp_pool, NULL);
+ }
+ else {
+ apr_pool_clear(tmp_pool);
+ }
+ }
+
+ /* Wait for queue to empty if specified */
+ if ((server_error == 0) && (opt_force != 0) && (queue->nelts > 0)) {
+ error_log(LOG_NOTICE, NULL, "Waiting for queue to empty (%d active).", queue->nelts);
+ while ((server_error == 0) && (opt_force != 0) && (queue->nelts > 0)) {
+ apr_sleep(10 * 1000);
+ }
+ if (queue->nelts > 0) {
+ error_log(LOG_ERROR, NULL, "Could not empty queue (%d active).", queue->nelts);
+ }
+ }
+}
+
+
+/**
+ * Creates the management thread.
+ */
+static void start_management_thread(void)
+{
+ apr_thread_t *thread = NULL;
+ apr_threadattr_t *thread_attrs;
+ apr_status_t rc;
+
+ apr_threadattr_create(&thread_attrs, pool);
+ apr_threadattr_detach_set(thread_attrs, 1);
+ apr_threadattr_stacksize_set(thread_attrs, 1024);
+
+ management_thread_active = 1;
+
+ rc = apr_thread_create(&thread, thread_attrs, thread_manager, NULL, pool);
+ if (rc != APR_SUCCESS) {
+ error_log(LOG_ERROR, NULL, "Failed to create new management thread: %d", rc);
+ management_thread_active = 0;
+ logc_shutdown(1);
+ }
+}
+#ifndef WIN32
+/**
+ * Creates a thread to handle all signals
+ */
+static void start_signal_thread(void)
+{
+ apr_thread_t *thread = NULL;
+ apr_threadattr_t *thread_attrs;
+ apr_status_t rc;
+
+ apr_threadattr_create(&thread_attrs, pool);
+ apr_threadattr_detach_set(thread_attrs, 1);
+ apr_threadattr_stacksize_set(thread_attrs, 1024);
+
+ rc = apr_thread_create(&thread, thread_attrs, thread_signals, NULL, pool);
+ if (rc != APR_SUCCESS) {
+ error_log(LOG_ERROR, NULL, "Failed to create new signal thread: %d", rc);
+ logc_shutdown(1);
+ }
+}
+#endif /* WIN32 */
+
+/**
+ * Usage text.
+ */
+static void usage(void) {
+ fprintf(stderr, "ModSecurity Log Collector (mlogc) v%s\n", VERSION);
+ fprintf(stderr, " Usage: mlogc [options] /path/to/the/mlogc.conf\n");
+ fprintf(stderr, "\n");
+ fprintf(stderr, " Options:\n");
+ fprintf(stderr, " -f Force depletion of queue on exit\n");
+ fprintf(stderr, " -v Version information\n");
+ fprintf(stderr, " -h This help\n\n");
+}
+
+/**
+ * Version text.
+ */
+static void version(void) {
+ fprintf(stderr, "ModSecurity Log Collector (mlogc) v%s\n", VERSION);
+ fprintf(stderr, " APR: compiled=\"%s\"; loaded=\"%s\"\n", APR_VERSION_STRING, apr_version_string());
+ fprintf(stderr, " PCRE: compiled=\"%d.%d\"; loaded=\"%s\"\n", PCRE_MAJOR, PCRE_MINOR, pcre_version());
+ fprintf(stderr, " cURL: compiled=\"%s\"; loaded=\"%s\"\n", LIBCURL_VERSION, curl_version());
+ fprintf(stderr, "\n");
+}
+
+/**
+ * This is the main entry point.
+ */
+int main(int argc, const char * const argv[]) {
+ apr_getopt_t *opt;
+ apr_status_t rc;
+
+ apr_app_initialize(&argc, &argv, NULL);
+ atexit(apr_terminate);
+
+ curl_global_init(CURL_GLOBAL_ALL);
+ atexit(logc_cleanup);
+
+ logc_pid = getpid();
+ apr_pool_create(&pool, NULL);
+ apr_pool_create(&recv_pool, NULL);
+
+#ifndef WIN32
+ apr_setup_signal_thread();
+#else
+ apr_signal(SIGINT, handle_signals);
+ apr_signal(SIGTERM, handle_signals);
+#endif /* WIN32 */
+
+ if (argc < 2) {
+ usage();
+ logc_shutdown(1);
+ }
+
+ /* Commandline opts */
+ rc = apr_getopt_init(&opt, pool, argc, argv);
+ if (rc != APR_SUCCESS) {
+ usage();
+ logc_shutdown(1);
+ }
+
+ do {
+ char ch;
+ const char *val;
+ rc = apr_getopt(opt, CMDLINE_OPTS, &ch, &val);
+ switch (rc) {
+ case APR_SUCCESS:
+ switch (ch) {
+ case 'f':
+ opt_force = 1;
+ break;
+ case 'v':
+ version();
+ logc_shutdown(0);
+ case 'h':
+ usage();
+ logc_shutdown(0);
+ }
+ break;
+ case APR_BADCH:
+ case APR_BADARG:
+ usage();
+ logc_shutdown(1);
+ }
+ } while (rc != APR_EOF);
+
+ /* Conf file is last */
+ conffile = argv[argc - 1];
+
+ read_configuration();
+ init_configuration();
+
+ logc_init();
+ transaction_log_init();
+
+ running = 1;
+ server_error = 0;
+
+ start_management_thread();
+#ifndef WIN32
+ start_signal_thread();
+#endif /* WIN32 */
+
+ /* Process stdin until EOF */
+ receive_loop();
+
+ logc_shutdown(0);
+
+ return 0;
+}
--- /dev/null
+/*
+ * ModSecurity for Apache 2.x, http://www.modsecurity.org/
+ * Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
+ *
+ * This product is released under the terms of the General Public Licence,
+ * version 2 (GPLv2). Please refer to the file LICENSE (included with this
+ * distribution) which contains the complete text of the licence.
+ *
+ * There are special exceptions to the terms and conditions of the GPL
+ * as it is applied to this software. View the full text of the exception in
+ * file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
+ * distribution.
+ *
+ * If any of the files related to licensing are missing or if you have any
+ * other questions related to licensing please contact Breach Security, Inc.
+ * directly using the email address support@breach.com.
+ *
+ */
+#include <limits.h>
+
+#include "http_core.h"
+#include "http_request.h"
+
+#include "modsecurity.h"
+#include "apache2.h"
+#include "http_main.h"
+#include "pdf_protect.h"
+
+#include "msc_logging.h"
+#include "msc_util.h"
+
+
+/* ModSecurity structure */
+
+msc_engine DSOLOCAL *modsecurity = NULL;
+
+/* Global module variables; these are used for the Apache-specific functionality */
+
+char DSOLOCAL *chroot_dir = NULL;
+
+unsigned int DSOLOCAL chroot_completed = 0;
+
+char DSOLOCAL *new_server_signature = NULL;
+
+char DSOLOCAL *real_server_signature = NULL;
+
+char DSOLOCAL *guardianlog_name = NULL;
+
+apr_file_t DSOLOCAL *guardianlog_fd = NULL;
+
+char DSOLOCAL *guardianlog_condition = NULL;
+
+
+/* -- Miscellaneous functions -- */
+
+/**
+ * Intercepts transaction, using the method specified
+ * in the structure itself. MUST return an HTTP status code,
+ * which will be used to terminate the transaction.
+ */
+int perform_interception(modsec_rec *msr) {
+ msre_actionset *actionset = NULL;
+ const char *message = NULL;
+ const char *phase_text = "";
+ int status = DECLINED;
+ int log_level = 1;
+
+ /* Sanity checks first. */
+
+ if (msr->was_intercepted == 0) {
+ msr_log(msr, 1, "Internal Error: Asked to intercept request but was_intercepted is zero");
+ return DECLINED;
+ }
+
+ if (msr->phase > 4) {
+ msr_log(msr, 1, "Internal Error: Asked to intercept request in phase %d.", msr->phase);
+ msr->was_intercepted = 0;
+ return DECLINED;
+ }
+
+ /* OK, we're good to go. */
+
+ actionset = msr->intercept_actionset;
+ phase_text = apr_psprintf(msr->mp, " (phase %d)", msr->phase);
+
+ /* By default we log at level 1 but we switch to 4
+ * if a nolog action was used or this is not the initial request
+ * to hide the message.
+ */
+ log_level = (actionset->log != 1) ? 4 : 1;
+
+ /* Pause the request first (if configured and the initial request). */
+ if (actionset->intercept_pause) {
+ msr_log(msr, (log_level > 3 ? log_level : log_level + 1), "Pausing transaction for "
+ "%d msec.", actionset->intercept_pause);
+ /* apr_sleep accepts microseconds */
+ apr_sleep((apr_interval_time_t)(actionset->intercept_pause * 1000));
+ }
+
+ /* Determine how to respond and prepare the log message. */
+ switch(actionset->intercept_action) {
+ case ACTION_DENY :
+ if (actionset->intercept_status != 0) {
+ status = actionset->intercept_status;
+ message = apr_psprintf(msr->mp, "Access denied with code %d%s.",
+ status, phase_text);
+ } else {
+ log_level = 1;
+ status = HTTP_INTERNAL_SERVER_ERROR;
+ message = apr_psprintf(msr->mp, "Access denied with code 500%s "
+ "(Internal Error: Invalid status code requested %d).",
+ phase_text, actionset->intercept_status);
+ }
+ break;
+
+ case ACTION_PROXY :
+ if (msr->phase < 3) {
+ if (ap_find_linked_module("mod_proxy.c") == NULL) {
+ log_level = 1;
+ status = HTTP_INTERNAL_SERVER_ERROR;
+ message = apr_psprintf(msr->mp, "Access denied with code 500%s "
+ "(Configuration Error: Proxy action to %s requested but mod_proxy not found).",
+ phase_text,
+ log_escape_nq(msr->mp, actionset->intercept_uri));
+ } else {
+ msr->r->filename = apr_psprintf(msr->mp, "proxy:%s", actionset->intercept_uri);
+ msr->r->proxyreq = PROXYREQ_REVERSE;
+ msr->r->handler = "proxy-server";
+ status = OK;
+ message = apr_psprintf(msr->mp, "Access denied using proxy to%s %s.",
+ phase_text,
+ log_escape_nq(msr->mp, actionset->intercept_uri));
+ }
+ } else {
+ log_level = 1;
+ status = HTTP_INTERNAL_SERVER_ERROR;
+ message = apr_psprintf(msr->mp, "Access denied with code 500%s "
+ "(Configuration Error: Proxy action requested but it does not work in output phases).",
+ phase_text);
+ }
+ break;
+
+ case ACTION_DROP :
+ /* ENH This does not seem to work on Windows. Is there a
+ * better way to drop a connection anyway?
+ */
+ #ifndef WIN32
+ {
+ extern module core_module;
+ apr_socket_t *csd = ap_get_module_config(msr->r->connection->conn_config,
+ &core_module);
+
+ if (csd) {
+ if (apr_socket_close(csd) == APR_SUCCESS) {
+ status = HTTP_FORBIDDEN;
+ message = apr_psprintf(msr->mp, "Access denied with connection close%s.",
+ phase_text);
+ } else {
+ log_level = 1;
+ status = HTTP_INTERNAL_SERVER_ERROR;
+ message = apr_psprintf(msr->mp, "Access denied with code 500%s "
+ "(Error: Connection drop requested but failed to close the "
+ " socket).",
+ phase_text);
+ }
+ } else {
+ log_level = 1;
+ status = HTTP_INTERNAL_SERVER_ERROR;
+ message = apr_psprintf(msr->mp, "Access denied with code 500%s "
+ "(Error: Connection drop requested but socket not found.",
+ phase_text);
+ }
+ }
+ #else
+ log_level = 1;
+ status = HTTP_INTERNAL_SERVER_ERROR;
+ message = apr_psprintf(msr->mp, "Access denied with code 500%s "
+ "(Error: Connection drop not implemented on this platform).",
+ phase_text);
+ #endif
+ break;
+
+ case ACTION_REDIRECT :
+ apr_table_setn(msr->r->headers_out, "Location", actionset->intercept_uri);
+ if ((actionset->intercept_status == 301)||(actionset->intercept_status == 302)
+ ||(actionset->intercept_status == 303)||(actionset->intercept_status == 307))
+ {
+ status = actionset->intercept_status;
+ } else {
+ status = HTTP_MOVED_TEMPORARILY;
+ }
+ message = apr_psprintf(msr->mp, "Access denied with redirection to %s using "
+ "status %d%s.",
+ log_escape_nq(msr->mp, actionset->intercept_uri), status,
+ phase_text);
+ break;
+
+ case ACTION_ALLOW :
+ status = DECLINED;
+ message = apr_psprintf(msr->mp, "Access allowed%s.", phase_text);
+ msr->was_intercepted = 0;
+ msr->allow_scope = ACTION_ALLOW;
+ break;
+
+ case ACTION_ALLOW_PHASE :
+ status = DECLINED;
+ message = apr_psprintf(msr->mp, "Access to phase allowed%s.", phase_text);
+ msr->was_intercepted = 0;
+ msr->allow_scope = ACTION_ALLOW_PHASE;
+ break;
+
+ case ACTION_ALLOW_REQUEST :
+ status = DECLINED;
+ message = apr_psprintf(msr->mp, "Access to request allowed%s.", phase_text);
+ msr->was_intercepted = 0;
+ msr->allow_scope = ACTION_ALLOW_REQUEST;
+ break;
+
+ default :
+ log_level = 1;
+ status = HTTP_INTERNAL_SERVER_ERROR;
+ message = apr_psprintf(msr->mp, "Access denied with code 500%s "
+ "(Internal Error: invalid interception action %d).",
+ phase_text, actionset->intercept_action);
+ break;
+ }
+
+ /* Log the message now. */
+ msc_alert(msr, log_level, actionset, message, msr->intercept_message);
+
+ return status;
+}
+
+/**
+ * Retrieves a previously stored transaction context by
+ * looking at the main request, and the previous requests.
+ */
+static modsec_rec *retrieve_tx_context(request_rec *r) {
+ modsec_rec *msr = NULL;
+ request_rec *rx = NULL;
+
+ /* Look in the current request first. */
+ msr = (modsec_rec *)apr_table_get(r->notes, NOTE_MSR);
+ if (msr != NULL) {
+ msr->r = r;
+ return msr;
+ }
+
+ /* If this is a subrequest then look in the main request. */
+ if (r->main != NULL) {
+ msr = (modsec_rec *)apr_table_get(r->main->notes, NOTE_MSR);
+ if (msr != NULL) {
+ msr->r = r;
+ return msr;
+ }
+ }
+
+ /* If the request was redirected then look in the previous requests. */
+ rx = r->prev;
+ while(rx != NULL) {
+ msr = (modsec_rec *)apr_table_get(rx->notes, NOTE_MSR);
+ if (msr != NULL) {
+ msr->r = r;
+ return msr;
+ }
+ rx = rx->prev;
+ }
+
+ return NULL;
+}
+
+/**
+ * Stores transaction context where it can be found in subsequent
+ * phases, redirections, or subrequests.
+ */
+static void store_tx_context(modsec_rec *msr, request_rec *r) {
+ apr_table_setn(r->notes, NOTE_MSR, (void *)msr);
+}
+
+/**
+ * Creates a new transaction context.
+ */
+static modsec_rec *create_tx_context(request_rec *r) {
+ apr_allocator_t *allocator = NULL;
+ modsec_rec *msr = NULL;
+
+ msr = (modsec_rec *)apr_pcalloc(r->pool, sizeof(modsec_rec));
+ if (msr == NULL) return NULL;
+
+ apr_allocator_create(&allocator);
+ apr_allocator_max_free_set(allocator, 1024);
+ apr_pool_create_ex(&msr->mp, r->pool, NULL, allocator);
+ if (msr->mp == NULL) return NULL;
+ apr_allocator_owner_set(allocator, msr->mp);
+
+ msr->modsecurity = modsecurity;
+ msr->r = r;
+ msr->r_early = r;
+ msr->request_time = r->request_time;
+ msr->dcfg1 = (directory_config *)ap_get_module_config(r->per_dir_config,
+ &security2_module);
+
+ /**
+ * Create a special user configuration. This is where
+ * explicit instructions will be stored. This will be used
+ * to override the default settings (and to override the
+ * configuration in the second phase, dcfg2, with the user
+ * setting executed in the first phase.
+ */
+ msr->usercfg = create_directory_config(msr->mp, NULL);
+ if (msr->usercfg == NULL) return NULL;
+
+ /* Create a transaction context and populate
+ * it using the directory config we just
+ * got from Apache.
+ */
+ msr->txcfg = create_directory_config(msr->mp, NULL);
+ if (msr->txcfg == NULL) return NULL;
+
+ if (msr->dcfg1 != NULL) {
+ msr->txcfg = merge_directory_configs(msr->mp, msr->txcfg, msr->dcfg1);
+ if (msr->txcfg == NULL) return NULL;
+ }
+ init_directory_config(msr->txcfg);
+
+ msr->txid = get_env_var(r, "UNIQUE_ID");
+ if (msr->txid == NULL) {
+ ap_log_error(APLOG_MARK, APLOG_ERR | APLOG_NOERRNO, 0, r->server,
+ "ModSecurity: ModSecurity requires mod_unique_id to be installed.");
+ return NULL;
+ }
+
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Initialising transaction (txid %s).", msr->txid);
+ }
+
+ /* Populate tx fields */
+ msr->error_messages = apr_array_make(msr->mp, 5, sizeof(error_message *));
+ msr->alerts = apr_array_make(msr->mp, 5, sizeof(char *));
+
+ msr->server_software = real_server_signature;
+ msr->local_addr = r->connection->local_ip;
+ msr->local_port = r->connection->local_addr->port;
+
+ msr->remote_addr = r->connection->remote_ip;
+ msr->remote_port = r->connection->remote_addr->port;
+
+ msr->request_line = r->the_request;
+ msr->request_uri = r->uri;
+ msr->request_method = r->method;
+ msr->query_string = r->args;
+ msr->request_protocol = r->protocol;
+ msr->request_headers = apr_table_copy(msr->mp, r->headers_in);
+ msr->hostname = ap_get_server_name(r);
+
+ msr->msc_rule_mptmp = NULL;
+
+ /* Invoke the engine to continue with initialisation */
+ if (modsecurity_tx_init(msr) < 0) {
+ msr_log(msr, 1, "Failed to initialise transaction (txid %s).", msr->txid);
+ return NULL;
+ }
+
+ store_tx_context(msr, r);
+
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Transaction context created (dcfg %pp).", msr->dcfg1);
+ }
+
+ return msr;
+}
+
+
+/* -- Hooks -- */
+
+/*
+ * Change the signature of the server if change was requested in
+ * configuration. We do this by locating the signature in server
+ * memory and writing over it.
+ */
+static apr_status_t change_server_signature(server_rec *s) {
+ char *server_version = NULL;
+
+ if (new_server_signature == NULL) return 0;
+
+ server_version = (char *)apache_get_server_version();
+
+ if (server_version == NULL) {
+ ap_log_error(APLOG_MARK, APLOG_ERR | APLOG_NOERRNO, 0, s,
+ "SecServerSignature: Apache returned null as signature.");
+ return -1;
+ }
+
+ if (strlen(server_version) >= strlen(new_server_signature)) {
+ strcpy(server_version, new_server_signature);
+ }
+ else {
+ ap_log_error(APLOG_MARK, APLOG_ERR | APLOG_NOERRNO, 0, s,
+ "SecServerSignature: original signature too short. Please set "
+ "ServerTokens to Full.");
+ return -1;
+ }
+
+ /* Check that it really changed. This assumes that what we got was
+ * not a copy and this could change in future versions of Apache.
+ */
+ server_version = (char *)apache_get_server_version();
+ if ((server_version == NULL) || (strcmp(server_version, new_server_signature) != 0)) {
+ ap_log_error(APLOG_MARK, APLOG_ERR | APLOG_NOERRNO, 0, s, "SecServerSignature: Failed to change server signature to \"%s\".", new_server_signature);
+ return 0;
+ }
+ else {
+ ap_log_error(APLOG_MARK, APLOG_DEBUG | APLOG_NOERRNO, 0, s, "SecServerSignature: Changed server signature to \"%s\".", server_version);
+ }
+
+ return 1;
+}
+
+/**
+ * Executed at the end of server lifetime to cleanup the allocated resources.
+ */
+static apr_status_t module_cleanup(void *data) {
+ modsecurity_shutdown(modsecurity);
+ return APR_SUCCESS;
+}
+
+/**
+ * Pre-configuration initialisation hook.
+ */
+static int hook_pre_config(apr_pool_t *mp, apr_pool_t *mp_log, apr_pool_t *mp_temp) {
+ /* Initialise ModSecurity engine */
+ modsecurity = modsecurity_create(mp, MODSEC_ONLINE);
+ if (modsecurity == NULL) {
+ ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, NULL,
+ "ModSecurity: Failed to initialise engine.");
+ return HTTP_INTERNAL_SERVER_ERROR;
+ }
+
+ return OK;
+}
+
+/**
+ * Main (post-configuration) module initialisation.
+ */
+static int hook_post_config(apr_pool_t *mp, apr_pool_t *mp_log, apr_pool_t *mp_temp, server_rec *s) {
+ void *init_flag = NULL;
+ int first_time = 0;
+
+ /* ENH Figure out a way to validate config before we start
+ * - skipafter: need to make sure we found all of our targets
+ */
+
+ /* Figure out if we are here for the first time */
+ apr_pool_userdata_get(&init_flag, "modsecurity-init-flag", s->process->pool);
+ if (init_flag == NULL) {
+ first_time = 1;
+ apr_pool_userdata_set((const void *)1, "modsecurity-init-flag",
+ apr_pool_cleanup_null, s->process->pool);
+ } else {
+ modsecurity_init(modsecurity, mp);
+ }
+
+ /* Store the original server signature */
+ real_server_signature = apr_pstrdup(mp, apache_get_server_version());
+
+ /* Make some space in the server signature for later */
+ if (new_server_signature != NULL) {
+ ap_add_version_component(mp, new_server_signature);
+ change_server_signature(s);
+ }
+
+ #if (!(defined(WIN32) || defined(NETWARE)))
+
+ /* Internal chroot functionality */
+
+ if (chroot_dir != NULL) {
+
+ /* ENH Is it safe to simply return with an error, instead
+ * of using exit()?
+ */
+
+ if (first_time == 0) {
+ ap_log_error(APLOG_MARK, APLOG_NOTICE | APLOG_NOERRNO, 0, s,
+ "ModSecurity: chroot checkpoint #2 (pid=%ld ppid=%ld)", (long)getpid(), (long)getppid());
+
+ if (chdir(chroot_dir) < 0) {
+ ap_log_error(APLOG_MARK, APLOG_ERR | APLOG_NOERRNO, 0, s,
+ "ModSecurity: chroot failed, unable to chdir to %s, errno=%d (%s)",
+ chroot_dir, errno, strerror(errno));
+ exit(1);
+ }
+
+ if (chroot(chroot_dir) < 0) {
+ ap_log_error(APLOG_MARK, APLOG_ERR | APLOG_NOERRNO, 0, s,
+ "ModSecurity: chroot failed, path=%s, errno=%d(%s)",
+ chroot_dir, errno, strerror(errno));
+ exit(1);
+ }
+
+ if (chdir("/") < 0) {
+ ap_log_error(APLOG_MARK, APLOG_ERR | APLOG_NOERRNO, 0, s,
+ "ModSecurity: chdoot failed, unable to chdir to /, errno=%d (%s)",
+ errno, strerror(errno));
+ exit(1);
+ }
+
+ chroot_completed = 1;
+
+ ap_log_error(APLOG_MARK, APLOG_NOTICE | APLOG_NOERRNO, 0, s,
+ "ModSecurity: chroot successful, path=%s", chroot_dir);
+ } else {
+ ap_log_error(APLOG_MARK, APLOG_NOTICE | APLOG_NOERRNO, 0, s,
+ "ModSecurity: chroot checkpoint #1 (pid=%ld ppid=%ld)", (long)getpid(), (long)getppid());
+ }
+ }
+ #endif
+
+ /* Schedule main cleanup for later, when the main pool is destroyed. */
+ apr_pool_cleanup_register(mp, (void *)s, module_cleanup, apr_pool_cleanup_null);
+
+ /* Log our presence to the error log. */
+ if (first_time) {
+ ap_log_error(APLOG_MARK, APLOG_NOTICE | APLOG_NOERRNO, 0, s,
+ "%s configured.", MODSEC_MODULE_NAME_FULL);
+
+ /* If we've changed the server signature make note of the original. */
+ if (new_server_signature != NULL) {
+ ap_log_error(APLOG_MARK, APLOG_NOTICE | APLOG_NOERRNO, 0, s,
+ "Original server signature: %s", real_server_signature);
+ }
+ }
+
+ srand((unsigned int)(time(NULL) * getpid()));
+
+ return OK;
+}
+
+/**
+ * Initialisation performed for every new child process.
+ */
+static void hook_child_init(apr_pool_t *mp, server_rec *s) {
+ modsecurity_child_init(modsecurity);
+}
+
+/**
+ * Initial request processing, executed immediatelly after
+ * Apache receives the request headers.
+ */
+static int hook_request_early(request_rec *r) {
+ modsec_rec *msr = NULL;
+ int rc;
+
+ /* This function needs to run only once per transaction
+ * (i.e. subrequests and redirects are excluded).
+ */
+ if ((r->main != NULL)||(r->prev != NULL)) {
+ return DECLINED;
+ }
+
+ /* Initialise transaction context and
+ * create the initial configuration.
+ */
+ msr = create_tx_context(r);
+ if (msr == NULL) return DECLINED;
+
+ /* Are we allowed to continue? */
+ if (msr->txcfg->is_enabled == MODSEC_DISABLED) {
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Processing disabled, skipping (hook request_early).");
+ }
+ return DECLINED;
+ }
+
+ /* Process phase REQUEST_HEADERS */
+ rc = DECLINED;
+ if (modsecurity_process_phase(msr, PHASE_REQUEST_HEADERS) > 0) {
+ rc = perform_interception(msr);
+ }
+
+ if ( (msr->txcfg->is_enabled != MODSEC_DISABLED)
+ && (msr->txcfg->reqbody_access == 1)
+ && (rc == DECLINED))
+ {
+ /* Check request body limit (non-chunked requests only). */
+ if (msr->request_content_length > msr->txcfg->reqbody_limit) {
+ msr_log(msr, 1, "Request body (Content-Length) is larger than the "
+ "configured limit (%ld).", msr->txcfg->reqbody_limit);
+ return HTTP_REQUEST_ENTITY_TOO_LARGE;
+ }
+ }
+
+ return rc;
+}
+
+/**
+ * Invoked as the first hook in the handler chain, this function
+ * executes the second phase of ModSecurity request processing.
+ */
+static int hook_request_late(request_rec *r) {
+ char *my_error_msg = NULL;
+ modsec_rec *msr = NULL;
+ int rc;
+
+ /* This function needs to run only once per transaction
+ * (i.e. subrequests and redirects are excluded).
+ */
+ if ((r->main != NULL)||(r->prev != NULL)) {
+ return DECLINED;
+ }
+
+ /* Find the transaction context and make sure
+ * we are supposed to proceed.
+ */
+ msr = retrieve_tx_context(r);
+ if (msr == NULL) {
+ /* If we can't find the context that probably means it's
+ * a subrequest that was not initiated from the outside.
+ */
+ return DECLINED;
+ }
+
+ /* Has this phase been completed already? */
+ if (msr->phase_request_body_complete) {
+ msr_log(msr, 1, "Internal Error: Attempted to process the request body more than once.");
+ return DECLINED;
+ }
+ msr->phase_request_body_complete = 1;
+
+ msr->remote_user = r->user;
+
+ /* Get the second configuration context. */
+ msr->dcfg2 = (directory_config *)ap_get_module_config(r->per_dir_config,
+ &security2_module);
+
+ /* Create a transaction context. */
+ msr->txcfg = create_directory_config(msr->mp, NULL);
+ if (msr->txcfg == NULL) return DECLINED;
+ if (msr->dcfg2 != NULL) {
+ msr->txcfg = merge_directory_configs(msr->mp, msr->txcfg, msr->dcfg2);
+ if (msr->txcfg == NULL) return DECLINED;
+ }
+
+ /* Update with the explicit user settings. */
+ msr->txcfg = merge_directory_configs(msr->mp, msr->txcfg, msr->usercfg);
+
+ init_directory_config(msr->txcfg);
+
+ /* Perform the PDF tests now. */
+ rc = pdfp_check(msr);
+ if (rc > 0) {
+ /* The PDF protection module has decided it needs to
+ * redirect the current transaction. So we let it do that.
+ */
+ return rc;
+ }
+
+ if (msr->txcfg->is_enabled == 0) {
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Processing disabled, skipping (hook request_late).");
+ }
+ return DECLINED;
+ }
+
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Second phase starting (dcfg %pp).", msr->dcfg2);
+ }
+
+ /* Figure out whether or not to extract multipart files. */
+ if ((msr->txcfg->upload_keep_files != KEEP_FILES_OFF) /* user might want to keep them */
+ || (msr->txcfg->upload_validates_files)) /* user might want to validate them */
+ {
+ msr->upload_extract_files = 1;
+ msr->upload_remove_files = 1;
+ }
+
+ rc = read_request_body(msr, &my_error_msg);
+ if (rc < 0) {
+ switch(rc) {
+ case -1 :
+ if (my_error_msg != NULL) {
+ msr_log(msr, 1, "%s", my_error_msg);
+ }
+ return HTTP_INTERNAL_SERVER_ERROR;
+ break;
+ case -4 : /* Timeout. */
+ if (my_error_msg != NULL) {
+ msr_log(msr, 4, "%s", my_error_msg);
+ }
+ r->connection->keepalive = AP_CONN_CLOSE;
+ return HTTP_REQUEST_TIME_OUT;
+ break;
+ case -5 : /* Request body limit reached. */
+ if (my_error_msg != NULL) {
+ msr_log(msr, 1, "%s", my_error_msg);
+ }
+ r->connection->keepalive = AP_CONN_CLOSE;
+ return HTTP_REQUEST_ENTITY_TOO_LARGE;
+ break;
+ default :
+ /* allow through */
+ break;
+ }
+
+ msr->msc_reqbody_error = 1;
+ msr->msc_reqbody_error_msg = my_error_msg;
+ }
+
+ /* Update the request headers. They might have changed after
+ * the body was read (trailers).
+ */
+ /* NOTE We still need to keep a copy of the original headers
+ * to log in the audit log.
+ */
+ msr->request_headers = apr_table_copy(msr->mp, r->headers_in);
+
+ /* Process phase REQUEST_BODY */
+ record_time_checkpoint(msr, 1);
+
+ rc = DECLINED;
+ if (modsecurity_process_phase(msr, PHASE_REQUEST_BODY) > 0) {
+ rc = perform_interception(msr);
+ }
+
+ record_time_checkpoint(msr, 2);
+
+ return rc;
+}
+
+/**
+ * Invoked every time Apache has something to write to the error log.
+ */
+static void hook_error_log(const char *file, int line, int level, apr_status_t status,
+ const server_rec *s, const request_rec *r, apr_pool_t *mp, const char *fmt)
+{
+ modsec_rec *msr = NULL;
+ error_message *em = NULL;
+
+ if (r == NULL) return;
+ msr = retrieve_tx_context((request_rec *)r);
+
+ /* Create a context for requests we never had the chance to process */
+ if ((msr == NULL)
+ && ((level & APLOG_LEVELMASK) < APLOG_DEBUG)
+ && apr_table_get(r->subprocess_env, "UNIQUE_ID"))
+ {
+ msr = create_tx_context((request_rec *)r);
+ if (msr->txcfg->debuglog_level >= 9) {
+ if (msr == NULL) {
+ msr_log(msr, 9, "Failed to create context after request failure.");
+ }
+ else {
+ msr_log(msr, 9, "Context created after request failure.");
+ }
+ }
+ }
+
+ if (msr == NULL) return;
+
+ /* Store the error message for later */
+ em = (error_message *)apr_pcalloc(msr->mp, sizeof(error_message));
+ if (em == NULL) return;
+
+ if (file != NULL) em->file = apr_pstrdup(msr->mp, file);
+ em->line = line;
+ em->level = level;
+ em->status = status;
+ if (fmt != NULL) em->message = apr_pstrdup(msr->mp, fmt);
+
+ /* Remove \n from the end of the message */
+ if (em->message != NULL) {
+ char *p = (char *)em->message;
+ while(*p != '\0') {
+ if ((*(p + 1) == '\0')&&(*p == '\n')) {
+ *p = '\0';
+ break;
+ }
+ p++;
+ }
+ }
+
+ *(const error_message **)apr_array_push(msr->error_messages) = em;
+}
+
+/**
+ * Guardian logger is used to interface to the external
+ * script for web server protection - httpd_guardian.
+ */
+static void sec_guardian_logger(request_rec *r, request_rec *origr, modsec_rec *msr) {
+ char *str1, *str2, *text;
+ char *modsec_message = "-";
+ int modsec_rating = 0; /* not used yet */
+ apr_size_t nbytes, nbytes_written;
+ apr_time_t duration = (apr_time_now() - origr->request_time);
+ int limit, was_limited;
+
+ /* bail out if we do not have where to write */
+ if ((guardianlog_name == NULL)||(guardianlog_fd == NULL)) return;
+
+ /* process the condition, if we have one */
+ if (guardianlog_condition != NULL) {
+ if (*guardianlog_condition == '!') {
+ if (apr_table_get(r->subprocess_env, guardianlog_condition + 1) != NULL) {
+ return;
+ }
+ }
+ else {
+ if (apr_table_get(r->subprocess_env, guardianlog_condition) == NULL) {
+ return;
+ }
+ }
+ }
+
+ /*
+ * Log format is as follows:
+ *
+ * %V %h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-agent}i" %{UNIQUE_ID}e
+ * "SESSION_ID" %T %D "MODSEC_MESSAGE" MODSEC_RATING
+ *
+ * The fields SESSION_ID, MODSEC_MESSAGE, and MODSEC_RATING are not used at the moment.
+ */
+
+ str2 = apr_psprintf(msr->mp, "%" APR_TIME_T_FMT " %" APR_TIME_T_FMT " \"%s\" %d",
+ duration, apr_time_sec(duration), log_escape(msr->mp, modsec_message), modsec_rating);
+ if (str2 == NULL) return;
+
+ /* We do not want the index line to be longer than 3980 bytes. */
+ limit = 3980;
+ was_limited = 0;
+
+ /* If we are logging to a pipe we need to observe and
+ * obey the pipe atomic write limit - PIPE_BUF. For
+ * more details see the discussion in sec_guardian_logger,
+ * above.
+ */
+ if (msr->txcfg->auditlog_name[0] == '|') {
+ if (PIPE_BUF < limit) {
+ limit = PIPE_BUF;
+ }
+ }
+
+ limit = limit - strlen(str2) - 5;
+ if (limit <= 0) {
+ msr_log(msr, 1, "Audit Log: Atomic PIPE write buffer too small: %d", PIPE_BUF);
+ return;
+ }
+
+ str1 = construct_log_vcombinedus_limited(msr, limit, &was_limited);
+ if (str1 == NULL) return;
+
+ if (was_limited == 0) {
+ text = apr_psprintf(msr->mp, "%s %s \n", str1, str2);
+ } else {
+ text = apr_psprintf(msr->mp, "%s %s L\n", str1, str2);
+ }
+ if (text == NULL) return;
+
+ nbytes = strlen(text);
+ apr_file_write_full(guardianlog_fd, text, nbytes, &nbytes_written);
+}
+
+/**
+ * Invoked at the end of each transaction.
+ */
+static int hook_log_transaction(request_rec *r) {
+ const apr_array_header_t *arr = NULL;
+ request_rec *origr = NULL;
+ modsec_rec *msr = NULL;
+
+ msr = retrieve_tx_context(r);
+ if (msr == NULL) {
+ return DECLINED;
+ }
+
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Initialising logging.");
+ }
+
+ /* Find the first (origr) and the last (r) request */
+ origr = r;
+ while(origr->prev) {
+ origr = origr->prev;
+ }
+ while(r->next) {
+ r = r->next;
+ }
+
+ /* At this point r is the last request in the
+ * chain. However, we now need to detect a case when
+ * a bad ErrorDocument was used and back out of it. That's
+ * how Apache does it internally. Except where Apache knows
+ * exactly what is happening we will have to rely on the missing
+ * headers in the final request to detect this condition.
+ */
+ arr = apr_table_elts(r->headers_out);
+ while ((arr->nelts == 0)&&(r->prev != NULL)) {
+ r = r->prev;
+ arr = apr_table_elts(r->headers_out);
+ }
+
+ msr->r = r;
+ msr->response_status = r->status;
+ msr->status_line = ((r->status_line != NULL)
+ ? r->status_line : ap_get_status_line(r->status));
+ msr->response_protocol = get_response_protocol(origr);
+ msr->response_headers = apr_table_copy(msr->mp, r->headers_out);
+ if (!r->assbackwards) msr->response_headers_sent = 1;
+ msr->bytes_sent = r->bytes_sent;
+ msr->local_user = r->user;
+ msr->remote_user = r->connection->remote_logname;
+
+ /* -- Guardian -- */
+
+ sec_guardian_logger(r, origr, msr);
+
+ /* Invoke the engine to do the rest of the work now. */
+ modsecurity_process_phase(msr, PHASE_LOGGING);
+
+ return DECLINED;
+}
+
+/**
+ * Invoked right before request processing begins. This is
+ * when we need to decide if we want to hook into the output
+ * filter chain.
+ */
+static void hook_insert_filter(request_rec *r) {
+ modsec_rec *msr = NULL;
+
+ /* Find the transaction context first. */
+ msr = retrieve_tx_context(r);
+ if (msr == NULL) return;
+
+ /* Add the input filter, but only if we need it to run. */
+ if (msr->if_status == IF_STATUS_WANTS_TO_RUN) {
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Hook insert_filter: Adding input forwarding filter %s(r %pp).",
+ (((r->main != NULL)||(r->prev != NULL)) ? "for subrequest " : ""), r);
+ }
+
+ ap_add_input_filter("MODSECURITY_IN", msr, r, r->connection);
+ }
+
+ /* The output filters only need to be added only once per transaction
+ * (i.e. subrequests and redirects are excluded).
+ */
+ if ((r->main != NULL)||(r->prev != NULL)) {
+ return;
+ }
+
+ /* We always add the PDF XSS protection filter. */
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Hook insert_filter: Adding PDF XSS protection output filter (r %pp).", r);
+ }
+
+ ap_add_output_filter("PDFP_OUT", msr, r, r->connection);
+
+ /* Only proceed to add the second filter if the engine is enabled. */
+ if (msr->txcfg->is_enabled == 0) {
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Hook insert_filter: Processing disabled, skipping.");
+ }
+
+ return;
+ }
+
+ /* We always add the output filter because that's where we need to
+ * initiate our 3rd and 4th processing phases from. The filter is
+ * smart enough not to buffer the data if it is not supposed to.
+ */
+ if (msr->of_status != OF_STATUS_COMPLETE) {
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Hook insert_filter: Adding output filter (r %pp).", r);
+ }
+
+ ap_add_output_filter("MODSECURITY_OUT", msr, r, r->connection);
+ }
+}
+
+// TODO: Holding off on this for now (needs more testing)
+#if 0
+/**
+ * Invoked whenever Apache starts processing an error. A chance
+ * to insert ourselves into the output filter chain.
+ */
+static void hook_insert_error_filter(request_rec *r) {
+ modsec_rec *msr = NULL;
+
+ /* Find the transaction context and make sure we are
+ * supposed to proceed.
+ */
+ msr = retrieve_tx_context(r);
+ if (msr == NULL) return;
+
+ /* Do not run if not enabled. */
+ if (msr->txcfg->is_enabled == 0) {
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Hook insert_error_filter: Processing disabled, skipping.");
+ }
+ return;
+ }
+
+ /* Do not run if the output filter already completed. This will
+ * happen if we intercept in phase 4.
+ */
+ if (msr->of_status != OF_STATUS_COMPLETE) {
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Hook insert_error_filter: Adding output filter (r %pp).", r);
+ }
+
+ /* Make a note that the output we will be receiving is a
+ * result of error processing.
+ */
+ msr->of_is_error = 1;
+
+ ap_add_output_filter("MODSECURITY_OUT", msr, r, r->connection);
+ } else {
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Hook insert_error_filter: Output buffering already complete.");
+ }
+ }
+}
+#endif
+
+#if (!defined(NO_MODSEC_API))
+/**
+ * This function is exported for other Apache modules to
+ * register new transformation functions.
+ */
+static void modsec_register_tfn(const char *name, void *fn) {
+ if (modsecurity != NULL) {
+ msre_engine_tfn_register(modsecurity->msre, name, (fn_tfn_execute_t)fn);
+ }
+}
+
+/**
+ * This function is exported for other Apache modules to
+ * register new operators.
+ */
+static void modsec_register_operator(const char *name, void *fn_init, void *fn_exec) {
+ if (modsecurity != NULL) {
+ msre_engine_op_register(modsecurity->msre, name, (fn_op_param_init_t)fn_init, (fn_op_execute_t)fn_exec);
+ }
+}
+
+/**
+ * This function is exported for other Apache modules to
+ * register new variables.
+ */
+static void modsec_register_variable(const char *name, unsigned int type,
+ unsigned int argc_min, unsigned int argc_max,
+ void *fn_validate, void *fn_generate,
+ unsigned int is_cacheable, unsigned int availability) {
+ if (modsecurity != NULL) {
+ msre_engine_variable_register(modsecurity->msre, name, type, argc_min, argc_max, (fn_var_validate_t)fn_validate, (fn_var_generate_t)fn_generate, is_cacheable, availability);
+ }
+ else {
+ fprintf(stderr,"modsecurity is NULL\n");
+ }
+}
+#endif
+
+/**
+ * Registers module hooks with Apache.
+ */
+static void register_hooks(apr_pool_t *mp) {
+ static const char *postconfig_beforeme_list[] = {
+ "mod_unique_id.c",
+ "mod_ssl.c",
+ NULL
+ };
+ static const char *postconfig_afterme_list[] = {
+ "mod_fcgid.c",
+ "mod_cgid.c",
+ NULL
+ };
+ static const char *postread_beforeme_list[] = {
+ "mod_rpaf.c",
+ "mod_rpaf-2.0.c",
+ "mod_extract_forwarded2.c",
+ "mod_custom_header.c",
+ "mod_breach_realip.c",
+ "mod_breach_trans.c",
+ "mod_unique_id.c",
+ NULL
+ };
+ static const char *postread_afterme_list[] = {
+ "mod_log_forensic.c",
+ NULL
+ };
+
+ /* Add the MODSEC_a.b define */
+ *(char **)apr_array_push(ap_server_config_defines) = apr_psprintf(mp, "MODSEC_%s.%s", MODSEC_VERSION_MAJOR, MODSEC_VERSION_MINOR);
+
+#if (!defined(NO_MODSEC_API))
+ /* Export optional functions. */
+ APR_REGISTER_OPTIONAL_FN(modsec_register_tfn);
+ APR_REGISTER_OPTIONAL_FN(modsec_register_operator);
+ APR_REGISTER_OPTIONAL_FN(modsec_register_variable);
+#endif
+
+ /* Main hooks */
+ ap_hook_pre_config(hook_pre_config, NULL, NULL, APR_HOOK_FIRST);
+ ap_hook_post_config(hook_post_config, postconfig_beforeme_list,
+ postconfig_afterme_list, APR_HOOK_REALLY_LAST);
+ ap_hook_child_init(hook_child_init, NULL, NULL, APR_HOOK_MIDDLE);
+
+ /* Our own hook to handle RPC transactions (not used at the moment).
+ * // ap_hook_handler(hook_handler, NULL, NULL, APR_HOOK_MIDDLE);
+ */
+
+ /* Transaction processing hooks */
+ ap_hook_post_read_request(hook_request_early,
+ postread_beforeme_list, postread_afterme_list, APR_HOOK_REALLY_FIRST);
+
+ ap_hook_fixups(hook_request_late, NULL, NULL, APR_HOOK_REALLY_FIRST);
+
+ /* Logging */
+ ap_hook_error_log(hook_error_log, NULL, NULL, APR_HOOK_MIDDLE);
+ ap_hook_log_transaction(hook_log_transaction, NULL, NULL, APR_HOOK_MIDDLE);
+
+ /* Filter hooks */
+ ap_hook_insert_filter(hook_insert_filter, NULL, NULL, APR_HOOK_FIRST);
+#if 0
+ ap_hook_insert_error_filter(hook_insert_error_filter, NULL, NULL, APR_HOOK_FIRST);
+#endif
+
+ ap_register_input_filter("MODSECURITY_IN", input_filter,
+ NULL, AP_FTYPE_CONTENT_SET);
+
+ /* Ensure that the output filter runs before other modules so that
+ * we get a request that has a better chance of not being modified:
+ *
+ * Currently:
+ * mod_expires = -2
+ * mod_cache = -1
+ * mod_deflate = -1
+ * mod_headers = 0
+ */
+ ap_register_output_filter("MODSECURITY_OUT", output_filter,
+ NULL, AP_FTYPE_CONTENT_SET - 3);
+
+ ap_register_output_filter("PDFP_OUT", pdfp_output_filter,
+ NULL, AP_FTYPE_CONTENT_SET);
+}
+
+/* Defined in apache2_config.c */
+extern const command_rec module_directives[];
+
+/* Module entry points */
+module AP_MODULE_DECLARE_DATA security2_module = {
+ STANDARD20_MODULE_STUFF,
+ create_directory_config,
+ merge_directory_configs,
+ NULL, /* create_server_config */
+ NULL, /* merge_server_configs */
+ module_directives,
+ register_hooks
+};
--- /dev/null
+/* mod_security2_config.h.in. Generated from configure.in by autoheader. */
+
+/* Define to 1 if you have the `atexit' function. */
+#undef HAVE_ATEXIT
+
+/* Define to 1 if you have the <fcntl.h> header file. */
+#undef HAVE_FCNTL_H
+
+/* Define to 1 if you have the `getcwd' function. */
+#undef HAVE_GETCWD
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#undef HAVE_INTTYPES_H
+
+/* Define to 1 if you have the <limits.h> header file. */
+#undef HAVE_LIMITS_H
+
+/* Define to 1 if your system has a GNU libc compatible `malloc' function, and
+ to 0 otherwise. */
+#undef HAVE_MALLOC
+
+/* Define to 1 if you have the `memmove' function. */
+#undef HAVE_MEMMOVE
+
+/* Define to 1 if you have the <memory.h> header file. */
+#undef HAVE_MEMORY_H
+
+/* Define to 1 if you have the `memset' function. */
+#undef HAVE_MEMSET
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#undef HAVE_STDINT_H
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#undef HAVE_STDLIB_H
+
+/* Define to 1 if you have the `strcasecmp' function. */
+#undef HAVE_STRCASECMP
+
+/* Define to 1 if you have the `strchr' function. */
+#undef HAVE_STRCHR
+
+/* Define to 1 if you have the `strdup' function. */
+#undef HAVE_STRDUP
+
+/* Define to 1 if you have the `strerror' function. */
+#undef HAVE_STRERROR
+
+/* Define to 1 if you have the <strings.h> header file. */
+#undef HAVE_STRINGS_H
+
+/* Define to 1 if you have the <string.h> header file. */
+#undef HAVE_STRING_H
+
+/* Define to 1 if you have the `strncasecmp' function. */
+#undef HAVE_STRNCASECMP
+
+/* Define to 1 if you have the `strrchr' function. */
+#undef HAVE_STRRCHR
+
+/* Define to 1 if you have the `strstr' function. */
+#undef HAVE_STRSTR
+
+/* Define to 1 if you have the `strtol' function. */
+#undef HAVE_STRTOL
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#undef HAVE_SYS_STAT_H
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#undef HAVE_SYS_TYPES_H
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#undef HAVE_UNISTD_H
+
+/* Define to the address where bug reports for this package should be sent. */
+#undef PACKAGE_BUGREPORT
+
+/* Define to the full name of this package. */
+#undef PACKAGE_NAME
+
+/* Define to the full name and version of this package. */
+#undef PACKAGE_STRING
+
+/* Define to the one symbol short name of this package. */
+#undef PACKAGE_TARNAME
+
+/* Define to the home page for this package. */
+#undef PACKAGE_URL
+
+/* Define to the version of this package. */
+#undef PACKAGE_VERSION
+
+/* Define to 1 if you have the ANSI C header files. */
+#undef STDC_HEADERS
+
+/* Define to 1 if your <sys/time.h> declares `struct tm'. */
+#undef TM_IN_SYS_TIME
+
+/* Define for Solaris 2.5.1 so the uint8_t typedef from <sys/synch.h>,
+ <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
+ #define below would cause a syntax error. */
+#undef _UINT8_T
+
+/* Define to empty if `const' does not conform to ANSI C. */
+#undef const
+
+/* Define to `__inline__' or `__inline' if that's what the C compiler
+ calls it, or to nothing if 'inline' is not supported under any name. */
+#ifndef __cplusplus
+#undef inline
+#endif
+
+/* Define to rpl_malloc if the replacement function should be used. */
+#undef malloc
+
+/* Define to `int' if <sys/types.h> does not define. */
+#undef pid_t
+
+/* Define to the equivalent of the C99 'restrict' keyword, or to
+ nothing if this is not supported. Do not define if restrict is
+ supported directly. */
+#undef restrict
+/* Work around a bug in Sun C++: it does not support _Restrict or
+ __restrict__, even though the corresponding Sun C compiler ends up with
+ "#define restrict _Restrict" or "#define restrict __restrict__" in the
+ previous line. Perhaps some future version of Sun C++ will work with
+ restrict; if so, hopefully it defines __RESTRICT like Sun C does. */
+#if defined __SUNPRO_CC && !defined __RESTRICT
+# define _Restrict
+# define __restrict__
+#endif
+
+/* Define to `unsigned int' if <sys/types.h> does not define. */
+#undef size_t
+
+/* Define to the type of an unsigned integer type of width exactly 8 bits if
+ such a type exists and the standard includes do not define it. */
+#undef uint8_t
--- /dev/null
+/* This file is left empty for building on Windows. */\r
--- /dev/null
+/*
+ * ModSecurity for Apache 2.x, http://www.modsecurity.org/
+ * Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
+ *
+ * This product is released under the terms of the General Public Licence,
+ * version 2 (GPLv2). Please refer to the file LICENSE (included with this
+ * distribution) which contains the complete text of the licence.
+ *
+ * There are special exceptions to the terms and conditions of the GPL
+ * as it is applied to this software. View the full text of the exception in
+ * file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
+ * distribution.
+ *
+ * If any of the files related to licensing are missing or if you have any
+ * other questions related to licensing please contact Breach Security, Inc.
+ * directly using the email address support@breach.com.
+ *
+ */
+#include <stdlib.h>
+
+#include "apr_global_mutex.h"
+
+#include "modsecurity.h"
+#include "msc_parsers.h"
+#include "msc_util.h"
+#include "msc_xml.h"
+
+/**
+ * Format an alert message.
+ */
+const char * msc_alert_message(modsec_rec *msr, msre_actionset *actionset, const char *action_message,
+ const char *rule_message)
+{
+ const char *message = NULL;
+
+ if (rule_message == NULL) rule_message = "Unknown error.";
+
+ if (action_message == NULL) {
+ message = apr_psprintf(msr->mp, "%s%s",
+ rule_message, msre_format_metadata(msr, actionset));
+ }
+ else {
+ message = apr_psprintf(msr->mp, "%s %s%s", action_message,
+ rule_message, msre_format_metadata(msr, actionset));
+ }
+
+ return message;
+}
+
+/**
+ * Log an alert message to the log, adding the rule metadata at the end.
+ */
+void msc_alert(modsec_rec *msr, int level, msre_actionset *actionset, const char *action_message,
+ const char *rule_message)
+{
+ const char *message = msc_alert_message(msr, actionset, action_message, rule_message);
+
+ msr_log(msr, level, "%s", message);
+}
+
+#if 0
+/**
+ * Return phase name associated with the given phase number.
+ */
+static const char *phase_name(int phase) {
+ switch(phase) {
+ case 1 :
+ return "REQUEST_HEADERS";
+ break;
+ case 2 :
+ return "REQUEST_BODY";
+ break;
+ case 3 :
+ return "RESPONSE_HEADERS";
+ break;
+ case 4 :
+ return "RESPONSE_BODY";
+ break;
+ case 5 :
+ return "LOGGING";
+ break;
+ }
+ return "INVALID";
+}
+#endif
+
+/**
+ * Creates and initialises a ModSecurity engine instance.
+ */
+msc_engine *modsecurity_create(apr_pool_t *mp, int processing_mode) {
+ msc_engine *msce = NULL;
+
+ msce = apr_pcalloc(mp, sizeof(msc_engine));
+ if (msce == NULL) return NULL;
+
+ msce->mp = mp;
+ msce->processing_mode = processing_mode;
+
+ msce->msre = msre_engine_create(msce->mp);
+ if (msce->msre == NULL) return NULL;
+ msre_engine_register_default_variables(msce->msre);
+ msre_engine_register_default_operators(msce->msre);
+ msre_engine_register_default_tfns(msce->msre);
+ msre_engine_register_default_actions(msce->msre);
+
+ return msce;
+}
+
+/**
+ * Initialise the modsecurity engine. This function must be invoked
+ * after configuration processing is complete as Apache needs to know the
+ * username it is running as.
+ */
+int modsecurity_init(msc_engine *msce, apr_pool_t *mp) {
+ apr_status_t rc;
+
+ /* Serial audit log mutext */
+ rc = apr_global_mutex_create(&msce->auditlog_lock, NULL, APR_LOCK_DEFAULT, mp);
+ if (rc != APR_SUCCESS) {
+ //ap_log_error(APLOG_MARK, APLOG_ERR, rv, s, "mod_security: Could not create modsec_auditlog_lock");
+ //return HTTP_INTERNAL_SERVER_ERROR;
+ return -1;
+ }
+
+ #ifdef __SET_MUTEX_PERMS
+ rc = unixd_set_global_mutex_perms(msce->auditlog_lock);
+ if (rc != APR_SUCCESS) {
+ // ap_log_error(APLOG_MARK, APLOG_ERR, rc, s, "mod_security: Could not set permissions on modsec_auditlog_lock; check User and Group directives");
+ // return HTTP_INTERNAL_SERVER_ERROR;
+ return -1;
+ }
+ #endif
+
+ return 1;
+}
+
+/**
+ * Performs per-child (new process) initialisation.
+ */
+void modsecurity_child_init(msc_engine *msce) {
+ /* Need to call this once per process before any other XML calls. */
+ xmlInitParser();
+
+ if (msce->auditlog_lock != NULL) {
+ apr_status_t rc = apr_global_mutex_child_init(&msce->auditlog_lock, NULL, msce->mp);
+ if (rc != APR_SUCCESS) {
+ // ap_log_error(APLOG_MARK, APLOG_ERR, rs, s, "Failed to child-init auditlog mutex");
+ }
+ }
+}
+
+/**
+ * Releases resources held by engine instance.
+ */
+void modsecurity_shutdown(msc_engine *msce) {
+ if (msce == NULL) return;
+}
+
+/**
+ *
+ */
+static apr_status_t modsecurity_tx_cleanup(void *data) {
+ modsec_rec *msr = (modsec_rec *)data;
+ const apr_array_header_t *arr;
+ apr_table_entry_t *te;
+ int collect_garbage = 0;
+ int i;
+ char *my_error_msg = NULL;
+
+ if (msr == NULL) return APR_SUCCESS;
+
+ if (rand() < RAND_MAX/100) {
+ collect_garbage = 1;
+ }
+
+ /* Collections, store & remove stale. */
+ arr = apr_table_elts(msr->collections);
+ te = (apr_table_entry_t *)arr->elts;
+ for (i = 0; i < arr->nelts; i++) {
+ apr_table_t *col = (apr_table_t *)te[i].val;
+
+ /* Only store those collections that changed. */
+ if (apr_table_get(msr->collections_dirty, te[i].key)) {
+ collection_store(msr, col);
+ }
+
+ if (collect_garbage) {
+ collections_remove_stale(msr, te[i].key);
+ }
+ }
+
+ /* Multipart processor cleanup. */
+ if (msr->mpd != NULL) multipart_cleanup(msr);
+
+ /* XML processor cleanup. */
+ if (msr->xml != NULL) xml_cleanup(msr);
+
+ // TODO: Why do we ignore return code here?
+ modsecurity_request_body_clear(msr, &my_error_msg);
+ if (my_error_msg != NULL) {
+ msr_log(msr, 1, "%s", my_error_msg);
+ }
+
+ return APR_SUCCESS;
+}
+
+/**
+ *
+ */
+apr_status_t modsecurity_tx_init(modsec_rec *msr) {
+ const char *s = NULL;
+ const apr_array_header_t *arr;
+ apr_table_entry_t *te;
+ int i;
+
+ /* Register TX cleanup */
+ apr_pool_cleanup_register(msr->mp, msr, modsecurity_tx_cleanup, apr_pool_cleanup_null);
+
+ /* Initialise C-L */
+ msr->request_content_length = -1;
+ s = apr_table_get(msr->request_headers, "Content-Length");
+ if (s != NULL) {
+ msr->request_content_length = strtol(s, NULL, 10);
+ }
+
+ /* Figure out whether this request has a body */
+ msr->reqbody_chunked = 0;
+ msr->reqbody_should_exist = 0;
+ if (msr->request_content_length == -1) {
+ /* There's no C-L, but is chunked encoding used? */
+ char *transfer_encoding = (char *)apr_table_get(msr->request_headers, "Transfer-Encoding");
+ if ((transfer_encoding != NULL)&&(strstr(transfer_encoding, "chunked") != NULL)) {
+ msr->reqbody_should_exist = 1;
+ msr->reqbody_chunked = 1;
+ }
+ } else {
+ /* C-L found */
+ msr->reqbody_should_exist = 1;
+ }
+
+ /* Initialise C-T */
+ msr->request_content_type = NULL;
+ s = apr_table_get(msr->request_headers, "Content-Type");
+ if (s != NULL) msr->request_content_type = s;
+
+ /* Decide what to do with the request body. */
+ if ((msr->request_content_type != NULL)
+ && (strncasecmp(msr->request_content_type, "application/x-www-form-urlencoded", 33) == 0))
+ {
+ /* Always place POST requests with
+ * "application/x-www-form-urlencoded" payloads in memory.
+ */
+ msr->msc_reqbody_storage = MSC_REQBODY_MEMORY;
+ msr->msc_reqbody_spilltodisk = 0;
+ msr->msc_reqbody_processor = "URLENCODED";
+ } else {
+ /* If the C-L is known and there's more data than
+ * our limit go to disk straight away.
+ */
+ if ((msr->request_content_length != -1)
+ && (msr->request_content_length > msr->txcfg->reqbody_inmemory_limit))
+ {
+ msr->msc_reqbody_storage = MSC_REQBODY_DISK;
+ }
+
+ /* In all other cases, try using the memory first
+ * but switch over to disk for larger bodies.
+ */
+ msr->msc_reqbody_storage = MSC_REQBODY_MEMORY;
+ msr->msc_reqbody_spilltodisk = 1;
+
+ if (msr->request_content_type != NULL) {
+ if (strncasecmp(msr->request_content_type, "multipart/form-data", 19) == 0) {
+ msr->msc_reqbody_processor = "MULTIPART";
+ }
+ }
+ }
+
+ /* Check if we are forcing buffering, then use memory only. */
+ if (msr->txcfg->reqbody_buffering != REQUEST_BODY_FORCEBUF_OFF) {
+ msr->msc_reqbody_storage = MSC_REQBODY_MEMORY;
+ msr->msc_reqbody_spilltodisk = 0;
+ }
+
+ /* Initialise arguments */
+ msr->arguments = apr_table_make(msr->mp, 32);
+ if (msr->arguments == NULL) return -1;
+ if (msr->query_string != NULL) {
+ int invalid_count = 0;
+
+ if (parse_arguments(msr, msr->query_string, strlen(msr->query_string),
+ msr->txcfg->argument_separator, "QUERY_STRING", msr->arguments,
+ &invalid_count) < 0)
+ {
+ msr_log(msr, 1, "Initialisation: Error occurred while parsing QUERY_STRING arguments.");
+ return -1;
+ }
+ }
+
+ msr->arguments_to_sanitise = apr_table_make(msr->mp, 16);
+ if (msr->arguments_to_sanitise == NULL) return -1;
+ msr->request_headers_to_sanitise = apr_table_make(msr->mp, 16);
+ if (msr->request_headers_to_sanitise == NULL) return -1;
+ msr->response_headers_to_sanitise = apr_table_make(msr->mp, 16);
+ if (msr->response_headers_to_sanitise == NULL) return -1;
+
+ /* Initialise cookies */
+ msr->request_cookies = apr_table_make(msr->mp, 16);
+ if (msr->request_cookies == NULL) return -1;
+
+ /* Locate the cookie headers and parse them */
+ arr = apr_table_elts(msr->request_headers);
+ te = (apr_table_entry_t *)arr->elts;
+ for (i = 0; i < arr->nelts; i++) {
+ if (strcasecmp(te[i].key, "Cookie") == 0) {
+ if (msr->txcfg->cookie_format == COOKIES_V0) {
+ parse_cookies_v0(msr, te[i].val, msr->request_cookies);
+ } else {
+ parse_cookies_v1(msr, te[i].val, msr->request_cookies);
+ }
+ }
+ }
+
+ /* Collections. */
+ msr->tx_vars = apr_table_make(msr->mp, 32);
+ if (msr->tx_vars == NULL) return -1;
+
+ msr->geo_vars = apr_table_make(msr->mp, 8);
+ if (msr->geo_vars == NULL) return -1;
+
+ msr->collections_original = apr_table_make(msr->mp, 8);
+ if (msr->collections_original == NULL) return -1;
+ msr->collections = apr_table_make(msr->mp, 8);
+ if (msr->collections == NULL) return -1;
+ msr->collections_dirty = apr_table_make(msr->mp, 8);
+ if (msr->collections_dirty == NULL) return -1;
+
+ /* Other */
+ msr->tcache = NULL;
+ msr->tcache_items = 0;
+
+ msr->matched_rules = apr_array_make(msr->mp, 16, sizeof(void *));
+ if (msr->matched_rules == NULL) return -1;
+
+ msr->matched_var = (msc_string *)apr_pcalloc(msr->mp, sizeof(msc_string));
+ if (msr->matched_var == NULL) return -1;
+
+ msr->highest_severity = 255; /* high, invalid value */
+
+ msr->removed_rules = apr_array_make(msr->mp, 16, sizeof(char *));
+ if (msr->removed_rules == NULL) return -1;
+
+ return 1;
+}
+
+/**
+ *
+ */
+static int is_response_status_relevant(modsec_rec *msr, int status) {
+ char *my_error_msg = NULL;
+ apr_status_t rc;
+ char buf[32];
+
+ /* ENH: Setting is_relevant here will cause an audit even if noauditlog
+ * was set for the last rule that matched. Is this what we want?
+ */
+
+ if ((msr->txcfg->auditlog_relevant_regex == NULL)
+ ||(msr->txcfg->auditlog_relevant_regex == NOT_SET_P))
+ {
+ return 0;
+ }
+
+ apr_snprintf(buf, sizeof(buf), "%d", status);
+
+ rc = msc_regexec(msr->txcfg->auditlog_relevant_regex, buf, strlen(buf), &my_error_msg);
+ if (rc >= 0) return 1;
+ if (rc == PCRE_ERROR_NOMATCH) return 0;
+
+ msr_log(msr, 1, "Regex processing failed (rc %d): %s", rc, my_error_msg);
+ return 0;
+}
+
+/**
+ *
+ */
+static apr_status_t modsecurity_process_phase_request_headers(modsec_rec *msr) {
+ msr_log(msr, 4, "Starting phase REQUEST_HEADERS.");
+
+ if (msr->txcfg->ruleset != NULL) {
+ return msre_ruleset_process_phase(msr->txcfg->ruleset, msr);
+ }
+
+ return 0;
+}
+
+/**
+ *
+ */
+static apr_status_t modsecurity_process_phase_request_body(modsec_rec *msr) {
+ if ((msr->allow_scope == ACTION_ALLOW_REQUEST)||(msr->allow_scope == ACTION_ALLOW)) {
+ msr_log(msr, 4, "Skipping phase REQUEST_BODY (allow used).");
+ return 0;
+ } else {
+ msr_log(msr, 4, "Starting phase REQUEST_BODY.");
+ }
+
+ if (msr->txcfg->ruleset != NULL) {
+ return msre_ruleset_process_phase(msr->txcfg->ruleset, msr);
+ }
+
+ return 0;
+}
+
+/**
+ *
+ */
+static apr_status_t modsecurity_process_phase_response_headers(modsec_rec *msr) {
+ if (msr->allow_scope == ACTION_ALLOW) {
+ msr_log(msr, 4, "Skipping phase RESPONSE_HEADERS (allow used).");
+ return 0;
+ } else {
+ msr_log(msr, 4, "Starting phase RESPONSE_HEADERS.");
+ }
+
+ if (msr->txcfg->ruleset != NULL) {
+ return msre_ruleset_process_phase(msr->txcfg->ruleset, msr);
+ }
+
+ return 0;
+}
+
+/**
+ *
+ */
+static apr_status_t modsecurity_process_phase_response_body(modsec_rec *msr) {
+ if (msr->allow_scope == ACTION_ALLOW) {
+ msr_log(msr, 4, "Skipping phase RESPONSE_BODY (allow used).");
+ return 0;
+ } else {
+ msr_log(msr, 4, "Starting phase RESPONSE_BODY.");
+ }
+
+ if (msr->txcfg->ruleset != NULL) {
+ return msre_ruleset_process_phase(msr->txcfg->ruleset, msr);
+ }
+
+ return 0;
+}
+
+/**
+ *
+ */
+static apr_status_t modsecurity_process_phase_logging(modsec_rec *msr) {
+ msr_log(msr, 4, "Starting phase LOGGING.");
+
+ if (msr->txcfg->ruleset != NULL) {
+ msre_ruleset_process_phase(msr->txcfg->ruleset, msr);
+ }
+
+ /* Is this request relevant for logging purposes? */
+ if (msr->is_relevant == 0) {
+ /* Check the status */
+ msr->is_relevant += is_response_status_relevant(msr, msr->r->status);
+
+ /* If we processed two requests and statuses are different then
+ * check the other status too.
+ */
+ if (msr->r_early->status != msr->r->status) {
+ msr->is_relevant += is_response_status_relevant(msr, msr->r_early->status);
+ }
+ }
+
+ /* Figure out if we want to keep the files (if there are any, of course). */
+ if ((msr->txcfg->upload_keep_files == KEEP_FILES_ON)
+ || ((msr->txcfg->upload_keep_files == KEEP_FILES_RELEVANT_ONLY)&&(msr->is_relevant)))
+ {
+ msr->upload_remove_files = 0;
+ } else {
+ msr->upload_remove_files = 1;
+ }
+
+ /* Are we configured for audit logging? */
+ switch(msr->txcfg->auditlog_flag) {
+ case AUDITLOG_OFF :
+ msr_log(msr, 4, "Audit log: Not configured to run for this request.");
+ return DECLINED;
+ break;
+
+ case AUDITLOG_RELEVANT :
+ if (msr->is_relevant == 0) {
+ msr_log(msr, 4, "Audit log: Ignoring a non-relevant request.");
+ return DECLINED;
+ }
+ break;
+
+ case AUDITLOG_ON :
+ /* All right, do nothing */
+ break;
+
+ default :
+ msr_log(msr, 1, "Internal error: Could not determine if auditing is needed, so forcing auditing.");
+ break;
+ }
+
+ /* Invoke the Audit logger */
+ msr_log(msr, 4, "Audit log: Logging this transaction.");
+
+ sec_audit_logger(msr);
+
+ return 0;
+}
+
+/**
+ * Processes one transaction phase. The phase number does not
+ * need to be explicitly provided since it's already available
+ * in the modsec_rec structure.
+ */
+apr_status_t modsecurity_process_phase(modsec_rec *msr, unsigned int phase) {
+ /* Check if we should run. */
+ if ((msr->was_intercepted)&&(phase != PHASE_LOGGING)) {
+ msr_log(msr, 4, "Skipping phase %d as request was already intercepted.", phase);
+ return 0;
+ }
+
+ /* Do not process the same phase twice. */
+ if (msr->phase >= phase) {
+ msr_log(msr, 4, "Skipping phase %d because it was previously run (at %d now).",
+ phase, msr->phase);
+ return 0;
+ }
+
+ msr->phase = phase;
+
+ /* Clear out the transformation cache at the start of each phase */
+ if (msr->txcfg->cache_trans == MODSEC_CACHE_ENABLED) {
+ if (msr->tcache) {
+ apr_hash_index_t *hi;
+ void *dummy;
+ apr_table_t *tab;
+ const void *key;
+ apr_ssize_t klen;
+ #ifdef CACHE_DEBUG
+ apr_pool_t *mp = msr->msc_rule_mptmp;
+ const apr_array_header_t *ctarr;
+ const apr_table_entry_t *ctelts;
+ msre_cache_rec *rec;
+ int cn = 0;
+ int ri;
+ #else
+ apr_pool_t *mp = msr->mp;
+ #endif
+
+ for (hi = apr_hash_first(mp, msr->tcache); hi; hi = apr_hash_next(hi)) {
+ apr_hash_this(hi, &key, &klen, &dummy);
+ tab = (apr_table_t *)dummy;
+
+ if (tab == NULL) continue;
+
+ #ifdef CACHE_DEBUG
+ /* Dump the cache out as we clear */
+ ctarr = apr_table_elts(tab);
+ ctelts = (const apr_table_entry_t*)ctarr->elts;
+ for (ri = 0; ri < ctarr->nelts; ri++) {
+ cn++;
+ rec = (msre_cache_rec *)ctelts[ri].val;
+ if (rec->changed) {
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "CACHE: %5d) hits=%d key=%pp %x;%s=\"%s\" (%pp - %pp)", cn, rec->hits, key, rec->num, rec->path, log_escape_nq_ex(mp, rec->val, rec->val_len), rec->val, rec->val + rec->val_len);
+ }
+ }
+ else {
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "CACHE: %5d) hits=%d key=%pp %x;%s=<no change>", cn, rec->hits, key, rec->num, rec->path);
+ }
+ }
+ }
+ #endif
+
+ apr_table_clear(tab);
+ apr_hash_set(msr->tcache, key, klen, NULL);
+ }
+
+ msr_log(msr, 9, "Cleared transformation cache for phase %d", msr->phase);
+ }
+
+ msr->tcache_items = 0;
+ msr->tcache = apr_hash_make(msr->mp);
+ if (msr->tcache == NULL) return -1;
+ }
+
+ switch(phase) {
+ case 1 :
+ return modsecurity_process_phase_request_headers(msr);
+ case 2 :
+ return modsecurity_process_phase_request_body(msr);
+ case 3 :
+ return modsecurity_process_phase_response_headers(msr);
+ case 4 :
+ return modsecurity_process_phase_response_body(msr);
+ case 5 :
+ return modsecurity_process_phase_logging(msr);
+ default :
+ msr_log(msr, 1, "Invalid processing phase: %d", msr->phase);
+ break;
+ }
+
+ return -1;
+}
--- /dev/null
+/*
+ * ModSecurity for Apache 2.x, http://www.modsecurity.org/
+ * Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
+ *
+ * This product is released under the terms of the General Public Licence,
+ * version 2 (GPLv2). Please refer to the file LICENSE (included with this
+ * distribution) which contains the complete text of the licence.
+ *
+ * There are special exceptions to the terms and conditions of the GPL
+ * as it is applied to this software. View the full text of the exception in
+ * file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
+ * distribution.
+ *
+ * If any of the files related to licensing are missing or if you have any
+ * other questions related to licensing please contact Breach Security, Inc.
+ * directly using the email address support@breach.com.
+ *
+ */
+#ifndef _MODSECURITY_H_
+#define _MODSECURITY_H_
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <limits.h>
+
+typedef struct rule_exception rule_exception;
+typedef struct modsec_rec modsec_rec;
+typedef struct directory_config directory_config;
+typedef struct error_message error_message;
+typedef struct msc_engine msc_engine;
+typedef struct msc_data_chunk msc_data_chunk;
+typedef struct msc_arg msc_arg;
+typedef struct msc_string msc_string;
+
+#include "msc_release.h"
+#include "msc_logging.h"
+#include "msc_multipart.h"
+#include "msc_pcre.h"
+#include "msc_util.h"
+#include "msc_xml.h"
+#include "msc_geo.h"
+#include "re.h"
+
+#include "ap_config.h"
+#include "apr_md5.h"
+#include "apr_strings.h"
+#include "apr_hash.h"
+#include "httpd.h"
+#include "http_config.h"
+#include "http_log.h"
+#include "http_protocol.h"
+
+#define PHASE_REQUEST_HEADERS 1
+#define PHASE_REQUEST_BODY 2
+#define PHASE_RESPONSE_HEADERS 3
+#define PHASE_RESPONSE_BODY 4
+#define PHASE_LOGGING 5
+#define PHASE_FIRST PHASE_REQUEST_HEADERS
+#define PHASE_LAST PHASE_LOGGING
+
+#define NOT_SET -1l
+#define NOT_SET_P ((void *)-1l)
+
+#define CREATEMODE ( APR_UREAD | APR_UWRITE | APR_GREAD )
+#define CREATEMODE_DIR ( APR_UREAD | APR_UWRITE | APR_UEXECUTE | APR_GREAD | APR_GEXECUTE )
+
+#if defined(NETWARE)
+#define CREATEMODE_UNISTD ( S_IREAD | S_IWRITE )
+#elif defined(WIN32)
+#define CREATEMODE_UNISTD ( _S_IREAD | _S_IWRITE )
+#else
+#define CREATEMODE_UNISTD ( S_IRUSR | S_IWUSR | S_IRGRP )
+#endif
+
+#if !defined(O_BINARY)
+#define O_BINARY (0)
+#endif
+
+#ifndef PIPE_BUF
+#define PIPE_BUF (512)
+#endif
+
+#define REQUEST_BODY_HARD_LIMIT 1073741824L
+#define REQUEST_BODY_DEFAULT_INMEMORY_LIMIT 131072
+#define REQUEST_BODY_DEFAULT_LIMIT 134217728
+#define REQUEST_BODY_NO_FILES_DEFAULT_LIMIT 1048576
+#define RESPONSE_BODY_DEFAULT_LIMIT 524288
+#define RESPONSE_BODY_HARD_LIMIT 1073741824L
+
+#define RESPONSE_BODY_LIMIT_ACTION_REJECT 0
+#define RESPONSE_BODY_LIMIT_ACTION_PARTIAL 1
+
+#define REQUEST_BODY_FORCEBUF_OFF 0
+#define REQUEST_BODY_FORCEBUF_ON 1
+
+#define SECACTION_TARGETS "REQUEST_URI"
+#define SECACTION_ARGS "@unconditionalMatch"
+
+#define SECMARKER_TARGETS "REQUEST_URI"
+#define SECMARKER_ARGS "@noMatch"
+#define SECMARKER_BASE_ACTIONS "t:none,pass,id:"
+
+#if !defined(OS2) && !defined(WIN32) && !defined(BEOS) && !defined(NETWARE)
+#include "unixd.h"
+#define __SET_MUTEX_PERMS
+#endif
+
+#define COOKIES_V0 0
+#define COOKIES_V1 1
+
+#ifdef WIN32
+#include <direct.h>
+#else
+#include <sys/types.h>
+#include <unistd.h>
+#endif
+
+#define NOTE_MSR "modsecurity-tx-context"
+
+#define FATAL_ERROR "ModSecurity: Fatal error (memory allocation or unexpected internal error)!"
+
+extern DSOLOCAL char *new_server_signature;
+extern DSOLOCAL char *real_server_signature;
+extern DSOLOCAL char *chroot_dir;
+
+extern module AP_MODULE_DECLARE_DATA security2_module;
+
+extern DSOLOCAL const command_rec module_directives[];
+
+#define RESBODY_STATUS_NOT_READ 0 /* we were not configured to read the body */
+#define RESBODY_STATUS_ERROR 1 /* error occured while we were reading the body */
+#define RESBODY_STATUS_PARTIAL 2 /* partial body content available in the brigade */
+#define RESBODY_STATUS_READ_BRIGADE 3 /* body was read but not flattened */
+#define RESBODY_STATUS_READ 4 /* body was read and flattened */
+
+#define IF_STATUS_NONE 0
+#define IF_STATUS_WANTS_TO_RUN 1
+#define IF_STATUS_COMPLETE 2
+
+#define OF_STATUS_NOT_STARTED 0
+#define OF_STATUS_IN_PROGRESS 1
+#define OF_STATUS_COMPLETE 2
+
+#define MSC_REQBODY_NONE 0
+#define MSC_REQBODY_MEMORY 1
+#define MSC_REQBODY_DISK 2
+
+#define ACTION_NONE 0
+#define ACTION_DENY 1
+#define ACTION_REDIRECT 2
+#define ACTION_PROXY 3
+#define ACTION_DROP 4
+#define ACTION_ALLOW 5
+#define ACTION_ALLOW_REQUEST 6
+#define ACTION_ALLOW_PHASE 7
+
+#define MODSEC_DISABLED 0
+#define MODSEC_DETECTION_ONLY 1
+#define MODSEC_ENABLED 2
+
+#define MODSEC_CACHE_DISABLED 0
+#define MODSEC_CACHE_ENABLED 1
+
+#define MODSEC_OFFLINE 0
+#define MODSEC_ONLINE 1
+
+#define REGEX_CAPTURE_BUFLEN 1024
+
+#define KEEP_FILES_OFF 0
+#define KEEP_FILES_ON 1
+#define KEEP_FILES_RELEVANT_ONLY 2
+
+#define RULE_EXCEPTION_IMPORT_ID 1
+#define RULE_EXCEPTION_IMPORT_MSG 2
+#define RULE_EXCEPTION_REMOVE_ID 3
+#define RULE_EXCEPTION_REMOVE_MSG 4
+
+#define NBSP 160
+
+struct rule_exception {
+ int type;
+ const char *param;
+ void *param_data;
+};
+
+struct modsec_rec {
+ apr_pool_t *mp;
+ msc_engine *modsecurity;
+
+ request_rec *r_early;
+ request_rec *r;
+ directory_config *dcfg1;
+ directory_config *dcfg2;
+ directory_config *usercfg;
+ directory_config *txcfg;
+
+ unsigned int reqbody_should_exist;
+ unsigned int reqbody_chunked;
+
+ unsigned int phase;
+ unsigned int phase_request_headers_complete;
+ unsigned int phase_request_body_complete;
+
+ apr_bucket_brigade *if_brigade;
+ unsigned int if_status;
+ unsigned int if_started_forwarding;
+
+ apr_size_t reqbody_length;
+
+ apr_bucket_brigade *of_brigade;
+ unsigned int of_status;
+ unsigned int of_done_reading;
+ unsigned int of_skipping;
+ unsigned int of_partial;
+ unsigned int of_is_error;
+
+ unsigned int resbody_status;
+ apr_size_t resbody_length;
+ char *resbody_data;
+ unsigned int resbody_contains_html;
+
+ apr_array_header_t *error_messages;
+ apr_array_header_t *alerts;
+
+ const char *txid;
+ const char *sessionid;
+ const char *userid;
+
+ const char *server_software;
+ const char *local_addr;
+ unsigned int local_port;
+ const char *local_user;
+
+ /* client */
+
+ const char *remote_addr;
+ unsigned int remote_port;
+ const char *remote_user;
+
+ /* request */
+
+ const char *request_line;
+ const char *request_method;
+ const char *request_uri;
+ const char *query_string;
+ const char *request_protocol;
+
+ const char *hostname;
+
+ apr_table_t *request_headers;
+
+ apr_off_t request_content_length;
+ const char *request_content_type;
+
+ apr_table_t *arguments;
+ apr_table_t *arguments_to_sanitise;
+ apr_table_t *request_headers_to_sanitise;
+ apr_table_t *response_headers_to_sanitise;
+ apr_table_t *request_cookies;
+
+ unsigned int is_relevant;
+
+ apr_table_t *tx_vars;
+
+ /* ENH: refactor to allow arbitrary var tables */
+ apr_table_t *geo_vars;
+
+ /* response */
+ unsigned int response_status;
+ const char *status_line;
+ const char *response_protocol;
+ apr_table_t *response_headers;
+ unsigned int response_headers_sent;
+ apr_off_t bytes_sent;
+
+ /* modsecurity request body processing stuff */
+
+ unsigned int msc_reqbody_storage; /* on disk or in memory */
+ unsigned int msc_reqbody_spilltodisk;
+ unsigned int msc_reqbody_read;
+
+ apr_pool_t *msc_reqbody_mp; /* this is where chunks are allocated from */
+ apr_array_header_t *msc_reqbody_chunks; /* data chunks when stored in memory */
+ unsigned int msc_reqbody_length; /* the amount of data received */
+ int msc_reqbody_chunk_position; /* used when retrieving the body */
+ unsigned int msc_reqbody_chunk_offset; /* offset of the chunk currently in use */
+ msc_data_chunk *msc_reqbody_chunk_current; /* current chunk */
+ char *msc_reqbody_buffer;
+
+ const char *msc_reqbody_filename; /* when stored on disk */
+ int msc_reqbody_fd;
+ msc_data_chunk *msc_reqbody_disk_chunk;
+
+ const char *msc_reqbody_processor;
+ int msc_reqbody_error;
+ const char *msc_reqbody_error_msg;
+
+ apr_size_t msc_reqbody_no_files_length;
+
+ multipart_data *mpd; /* MULTIPART processor data structure */
+
+ xml_data *xml; /* XML processor data structure */
+
+ /* audit logging */
+ char *new_auditlog_boundary;
+ char *new_auditlog_filename;
+ apr_file_t *new_auditlog_fd;
+ unsigned int new_auditlog_size;
+ apr_md5_ctx_t new_auditlog_md5ctx;
+
+ unsigned int was_intercepted;
+ unsigned int rule_was_intercepted;
+ unsigned int intercept_phase;
+ msre_actionset *intercept_actionset;
+ const char *intercept_message;
+
+ /* performance measurement */
+ apr_time_t request_time;
+ apr_time_t time_checkpoint_1;
+ apr_time_t time_checkpoint_2;
+ apr_time_t time_checkpoint_3;
+
+ apr_array_header_t *matched_rules;
+ msc_string *matched_var;
+ int highest_severity;
+
+ /* upload */
+ int upload_extract_files;
+ int upload_remove_files;
+
+ /* other */
+ apr_table_t *collections_original;
+ apr_table_t *collections;
+ apr_table_t *collections_dirty;
+
+ /* rule processing temp pool */
+ apr_pool_t *msc_rule_mptmp;
+
+ /* content injection */
+ const char *content_prepend;
+ apr_off_t content_prepend_len;
+ const char *content_append;
+ apr_off_t content_append_len;
+
+ /* data cache */
+ apr_hash_t *tcache;
+ apr_size_t tcache_items;
+
+ /* removed rules */
+ apr_array_header_t *removed_rules;
+
+ /* When "allow" is executed the variable below is
+ * updated to contain the scope of the allow action. Set
+ * at 0 by default, it will have ACTION_ALLOW if we are
+ * to allow phases 1-4 and ACTION_ALLOW_REQUEST if we
+ * are to allow phases 1-2 only.
+ */
+ unsigned int allow_scope;
+};
+
+struct directory_config {
+ apr_pool_t *mp;
+
+ msre_ruleset *ruleset;
+
+ int is_enabled;
+ int reqbody_access;
+ int reqbody_buffering;
+ long int reqbody_inmemory_limit;
+ long int reqbody_limit;
+ long int reqbody_no_files_limit;
+ int resbody_access;
+
+ long int of_limit;
+ apr_table_t *of_mime_types;
+ int of_mime_types_cleared;
+ int of_limit_action;
+
+ const char *debuglog_name;
+ int debuglog_level;
+ apr_file_t *debuglog_fd;
+
+ int cookie_format;
+ int argument_separator;
+
+ int rule_inheritance;
+ apr_array_header_t *rule_exceptions;
+
+
+ /* -- Audit log -- */
+
+ /* Whether audit log should be enabled in the context or not */
+ int auditlog_flag;
+
+ /* AUDITLOG_SERIAL (single file) or AUDITLOG_CONCURRENT (multiple files) */
+ int auditlog_type;
+
+ /* Mode for audit log directories and files */
+ apr_fileperms_t auditlog_dirperms;
+ apr_fileperms_t auditlog_fileperms;
+
+ /* The name of the audit log file (for the old type), or the
+ * name of the index file (for the new audit log type)
+ */
+ char *auditlog_name;
+ /* The name of the secondary index file */
+ char *auditlog2_name;
+
+ /* The file descriptors for the files above */
+ apr_file_t *auditlog_fd;
+ apr_file_t *auditlog2_fd;
+
+ /* For the new-style audit log only, the path where
+ * audit log entries will be stored
+ */
+ char *auditlog_storage_dir;
+
+ /* A list of parts to include in the new-style audit log
+ * entry. By default, it contains 'ABCFHZ'. Have a look at
+ * the AUDITLOG_PART_* constants above to decipher the
+ * meaning.
+ */
+ char *auditlog_parts;
+
+ /* A regular expression that determines if a response
+ * status is treated as relevant.
+ */
+ msc_regex_t *auditlog_relevant_regex;
+
+ /* Upload */
+ const char *tmp_dir;
+ const char *upload_dir;
+ int upload_keep_files;
+ int upload_validates_files;
+ int upload_filemode; /* int only so NOT_SET works */
+
+ /* Used only in the configuration phase. */
+ msre_rule *tmp_chain_starter;
+ msre_actionset *tmp_default_actionset;
+ apr_table_t *tmp_rule_placeholders;
+
+ /* Misc */
+ const char *data_dir;
+ const char *webappid;
+
+ /* Content injection. */
+ int content_injection_enabled;
+
+ /* PDF XSS Protection. */
+ int pdfp_enabled;
+ const char *pdfp_secret;
+ int pdfp_timeout;
+ const char *pdfp_token_name;
+ int pdfp_only_get;
+ int pdfp_method;
+
+ /* Geo Lookup */
+ geo_db *geo;
+
+ /* Cache */
+ int cache_trans;
+ int cache_trans_incremental;
+ apr_size_t cache_trans_min;
+ apr_size_t cache_trans_max;
+ apr_size_t cache_trans_maxitems;
+
+ /* Array to hold signatures of components, which will
+ * appear in the ModSecurity signature in the audit log.
+ */
+ apr_array_header_t *component_signatures;
+
+ /* Request character encoding. */
+ const char *request_encoding;
+};
+
+struct error_message {
+ const char *file;
+ int line;
+ int level;
+ apr_status_t status;
+ const char *message;
+};
+
+struct msc_engine {
+ apr_pool_t *mp;
+ apr_global_mutex_t *auditlog_lock;
+ msre_engine *msre;
+ unsigned int processing_mode;
+};
+
+struct msc_data_chunk {
+ char *data;
+ apr_size_t length;
+ unsigned int is_permanent;
+};
+
+struct msc_arg {
+ const char *name;
+ unsigned int name_len;
+ unsigned int name_origin_offset;
+ unsigned int name_origin_len;
+ const char *value;
+ unsigned int value_len;
+ unsigned int value_origin_offset;
+ unsigned int value_origin_len;
+ const char *origin;
+};
+
+struct msc_string {
+ char *name;
+ unsigned int name_len;
+ char *value;
+ unsigned int value_len;
+};
+
+
+/* Engine functions */
+
+msc_engine DSOLOCAL *modsecurity_create(apr_pool_t *mp, int processing_mode);
+
+int DSOLOCAL modsecurity_init(msc_engine *msce, apr_pool_t *mp);
+
+void DSOLOCAL modsecurity_child_init(msc_engine *msce);
+
+void DSOLOCAL modsecurity_shutdown(msc_engine *msce);
+
+apr_status_t DSOLOCAL modsecurity_tx_init(modsec_rec *msr);
+
+apr_status_t DSOLOCAL modsecurity_process_phase(modsec_rec *msr, unsigned int phase);
+
+
+/* Request body functions */
+
+apr_status_t DSOLOCAL modsecurity_request_body_start(modsec_rec *msr, char **error_msg);
+
+apr_status_t DSOLOCAL modsecurity_request_body_store(modsec_rec *msr,
+ const char *data, apr_size_t length, char **error_msg);
+
+apr_status_t DSOLOCAL modsecurity_request_body_end(modsec_rec *msr, char **error_msg);
+
+apr_status_t DSOLOCAL modsecurity_request_body_retrieve_start(modsec_rec *msr, char **error_msg);
+
+apr_status_t DSOLOCAL modsecurity_request_body_retrieve_end(modsec_rec *msr);
+
+/* Retrieves up to nbytes bytes of the request body. Returns 1 on
+ * success, 0 when there is no more data, or -1 on error. On return
+ * nbytes will contain the number of bytes stored in the buffer.
+ */
+apr_status_t DSOLOCAL modsecurity_request_body_retrieve(modsec_rec *msr, msc_data_chunk **chunk,
+ long int nbytes, char **error_msg);
+
+void DSOLOCAL msc_add(modsec_rec *msr, int level, msre_actionset *actionset,
+ const char *action_message, const char *rule_message);
+
+const char DSOLOCAL *msc_alert_message(modsec_rec *msr, msre_actionset *actionset, const char *action_message,
+ const char *rule_message);
+
+void DSOLOCAL msc_alert(modsec_rec *msr, int level, msre_actionset *actionset, const char *action_message,
+ const char *rule_message);
+
+apr_status_t DSOLOCAL modsecurity_request_body_clear(modsec_rec *msr, char **error_msg);
+
+#endif
--- /dev/null
+MOD_SECURITY2 = mod_security2 apache2_config apache2_io apache2_util \
+ re re_operators re_actions re_tfns re_variables \
+ msc_logging msc_xml msc_multipart modsecurity msc_parsers msc_util msc_pcre \
+ persist_dbm msc_reqbody pdf_protect msc_geo acmp msc_lua
+
+H = re.h modsecurity.h msc_logging.h msc_multipart.h msc_parsers.h \
+ msc_pcre.h msc_util.h msc_xml.h persist_dbm.h apache2.h pdf_protect.h \
+ msc_geo.h acmp.h utf8tables.h msc_lua.h
+
+${MOD_SECURITY2:=.slo}: ${H}
+${MOD_SECURITY2:=.lo}: ${H}
+${MOD_SECURITY2:=.o}: ${H}
+
+mod_security2.la: ${MOD_SECURITY2:=.slo}
+ $(SH_LINK) -rpath $(libexecdir) -module -avoid-version ${MOD_SECURITY2:=.lo}
+
+DISTCLEAN_TARGETS = modules.mk
+
+shared = mod_security2.la
--- /dev/null
+/*
+ * ModSecurity for Apache 2.x, http://www.modsecurity.org/
+ * Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
+ *
+ * This product is released under the terms of the General Public Licence,
+ * version 2 (GPLv2). Please refer to the file LICENSE (included with this
+ * distribution) which contains the complete text of the licence.
+ *
+ * There are special exceptions to the terms and conditions of the GPL
+ * as it is applied to this software. View the full text of the exception in
+ * file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
+ * distribution.
+ *
+ * If any of the files related to licensing are missing or if you have any
+ * other questions related to licensing please contact Breach Security, Inc.
+ * directly using the email address support@breach.com.
+ *
+ */
+#include "msc_geo.h"
+
+
+/* -- Lookup Tables -- */
+
+static const char *geo_country_code[GEO_COUNTRY_LAST + 1] = {
+ "--",
+ "AP","EU","AD","AE","AF","AG","AI","AL","AM","AN",
+ "AO","AQ","AR","AS","AT","AU","AW","AZ","BA","BB",
+ "BD","BE","BF","BG","BH","BI","BJ","BM","BN","BO",
+ "BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD",
+ "CF","CG","CH","CI","CK","CL","CM","CN","CO","CR",
+ "CU","CV","CX","CY","CZ","DE","DJ","DK","DM","DO",
+ "DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ",
+ "FK","FM","FO","FR","FX","GA","GB","GD","GE","GF",
+ "GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT",
+ "GU","GW","GY","HK","HM","HN","HR","HT","HU","ID",
+ "IE","IL","IN","IO","IQ","IR","IS","IT","JM","JO",
+ "JP","KE","KG","KH","KI","KM","KN","KP","KR","KW",
+ "KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT",
+ "LU","LV","LY","MA","MC","MD","MG","MH","MK","ML",
+ "MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV",
+ "MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI",
+ "NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF",
+ "PG","PH","PK","PL","PM","PN","PR","PS","PT","PW",
+ "PY","QA","RE","RO","RU","RW","SA","SB","SC","SD",
+ "SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO",
+ "SR","ST","SV","SY","SZ","TC","TD","TF","TG","TH",
+ "TJ","TK","TM","TN","TO","TL","TR","TT","TV","TW",
+ "TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE",
+ "VG","VI","VN","VU","WF","WS","YE","YT","RS","ZA",
+ "ZM","ME","ZW","A1","A2","O1","AX","GG","IM","JE"
+};
+
+static const char *geo_country_code3[GEO_COUNTRY_LAST + 1] = {
+ "--",
+ "AP","EU","AND","ARE","AFG","ATG","AIA","ALB","ARM","ANT",
+ "AGO","AQ","ARG","ASM","AUT","AUS","ABW","AZE","BIH","BRB",
+ "BGD","BEL","BFA","BGR","BHR","BDI","BEN","BMU","BRN","BOL",
+ "BRA","BHS","BTN","BV","BWA","BLR","BLZ","CAN","CC","COD",
+ "CAF","COG","CHE","CIV","COK","CHL","CMR","CHN","COL","CRI",
+ "CUB","CPV","CX","CYP","CZE","DEU","DJI","DNK","DMA","DOM",
+ "DZA","ECU","EST","EGY","ESH","ERI","ESP","ETH","FIN","FJI",
+ "FLK","FSM","FRO","FRA","FX","GAB","GBR","GRD","GEO","GUF",
+ "GHA","GIB","GRL","GMB","GIN","GLP","GNQ","GRC","GS","GTM",
+ "GUM","GNB","GUY","HKG","HM","HND","HRV","HTI","HUN","IDN",
+ "IRL","ISR","IND","IO","IRQ","IRN","ISL","ITA","JAM","JOR",
+ "JPN","KEN","KGZ","KHM","KIR","COM","KNA","PRK","KOR","KWT",
+ "CYM","KAZ","LAO","LBN","LCA","LIE","LKA","LBR","LSO","LTU",
+ "LUX","LVA","LBY","MAR","MCO","MDA","MDG","MHL","MKD","MLI",
+ "MMR","MNG","MAC","MNP","MTQ","MRT","MSR","MLT","MUS","MDV",
+ "MWI","MEX","MYS","MOZ","NAM","NCL","NER","NFK","NGA","NIC",
+ "NLD","NOR","NPL","NRU","NIU","NZL","OMN","PAN","PER","PYF",
+ "PNG","PHL","PAK","POL","SPM","PCN","PRI","PSE","PRT","PLW",
+ "PRY","QAT","REU","ROU","RUS","RWA","SAU","SLB","SYC","SDN",
+ "SWE","SGP","SHN","SVN","SJM","SVK","SLE","SMR","SEN","SOM",
+ "SUR","STP","SLV","SYR","SWZ","TCA","TCD","TF","TGO","THA",
+ "TJK","TKL","TKM","TUN","TON","TLS","TUR","TTO","TUV","TWN",
+ "TZA","UKR","UGA","UM","USA","URY","UZB","VAT","VCT","VEN",
+ "VGB","VIR","VNM","VUT","WLF","WSM","YEM","YT","SRB","ZAF",
+ "ZMB","MNE","ZWE","A1","A2","O1","ALA","GGY","IMN","JEY"
+};
+
+static const char *geo_country_name[GEO_COUNTRY_LAST + 1] = {
+ "N/A",
+ "Asia/Pacific Region","Europe","Andorra","United Arab Emirates","Afghanistan","Antigua and Barbuda","Anguilla","Albania","Armenia","Netherlands Antilles",
+ "Angola","Antarctica","Argentina","American Samoa","Austria","Australia","Aruba","Azerbaijan","Bosnia and Herzegovina","Barbados",
+ "Bangladesh","Belgium","Burkina Faso","Bulgaria","Bahrain","Burundi","Benin","Bermuda","Brunei Darussalam","Bolivia",
+ "Brazil","Bahamas","Bhutan","Bouvet Island","Botswana","Belarus","Belize","Canada","Cocos (Keeling) Islands","Congo, The Democratic Republic of the",
+ "Central African Republic","Congo","Switzerland","Cote D'Ivoire","Cook Islands","Chile","Cameroon","China","Colombia","Costa Rica",
+ "Cuba","Cape Verde","Christmas Island","Cyprus","Czech Republic","Germany","Djibouti","Denmark","Dominica","Dominican Republic",
+ "Algeria","Ecuador","Estonia","Egypt","Western Sahara","Eritrea","Spain","Ethiopia","Finland","Fiji",
+ "Falkland Islands (Malvinas)","Micronesia, Federated States of","Faroe Islands","France","France, Metropolitan","Gabon","United Kingdom","Grenada","Georgia","French Guiana",
+ "Ghana","Gibraltar","Greenland","Gambia","Guinea","Guadeloupe","Equatorial Guinea","Greece","South Georgia and the South Sandwich Islands","Guatemala",
+ "Guam","Guinea-Bissau","Guyana","Hong Kong","Heard Island and McDonald Islands","Honduras","Croatia","Haiti","Hungary","Indonesia",
+ "Ireland","Israel","India","British Indian Ocean Territory","Iraq","Iran, Islamic Republic of","Iceland","Italy","Jamaica","Jordan",
+ "Japan","Kenya","Kyrgyzstan","Cambodia","Kiribati","Comoros","Saint Kitts and Nevis","Korea, Democratic People's Republic of","Korea, Republic of","Kuwait",
+ "Cayman Islands","Kazakhstan","Lao People's Democratic Republic","Lebanon","Saint Lucia","Liechtenstein","Sri Lanka","Liberia","Lesotho","Lithuania",
+ "Luxembourg","Latvia","Libyan Arab Jamahiriya","Morocco","Monaco","Moldova, Republic of","Madagascar","Marshall Islands","Macedonia","Mali",
+ "Myanmar","Mongolia","Macau","Northern Mariana Islands","Martinique","Mauritania","Montserrat","Malta","Mauritius","Maldives",
+ "Malawi","Mexico","Malaysia","Mozambique","Namibia","New Caledonia","Niger","Norfolk Island","Nigeria","Nicaragua",
+ "Netherlands","Norway","Nepal","Nauru","Niue","New Zealand","Oman","Panama","Peru","French Polynesia",
+ "Papua New Guinea","Philippines","Pakistan","Poland","Saint Pierre and Miquelon","Pitcairn Islands","Puerto Rico","Palestinian Territory","Portugal","Palau",
+ "Paraguay","Qatar","Reunion","Romania","Russian Federation","Rwanda","Saudi Arabia","Solomon Islands","Seychelles","Sudan",
+ "Sweden","Singapore","Saint Helena","Slovenia","Svalbard and Jan Mayen","Slovakia","Sierra Leone","San Marino","Senegal","Somalia","Suriname",
+ "Sao Tome and Principe","El Salvador","Syrian Arab Republic","Swaziland","Turks and Caicos Islands","Chad","French Southern Territories","Togo","Thailand",
+ "Tajikistan","Tokelau","Turkmenistan","Tunisia","Tonga","Timor-Leste","Turkey","Trinidad and Tobago","Tuvalu","Taiwan",
+ "Tanzania, United Republic of","Ukraine","Uganda","United States Minor Outlying Islands","United States","Uruguay","Uzbekistan","Holy See (Vatican City State)","Saint Vincent and the Grenadines","Venezuela",
+ "Virgin Islands, British","Virgin Islands, U.S.","Vietnam","Vanuatu","Wallis and Futuna","Samoa","Yemen","Mayotte","Serbia","South Africa",
+ "Zambia","Montenegro","Zimbabwe","Anonymous Proxy","Satellite Provider","Other","Aland Islands","Guernsey","Isle of Man","Jersey"
+};
+
+static const char *geo_country_continent[GEO_COUNTRY_LAST + 1] = {
+ "--",
+ "AS","EU","EU","AS","AS","SA","SA","EU","AS","SA",
+ "AF","AN","SA","OC","EU","OC","SA","AS","EU","SA",
+ "AS","EU","AF","EU","AS","AF","AF","SA","AS","SA",
+ "SA","SA","AS","AF","AF","EU","SA","NA","AS","AF",
+ "AF","AF","EU","AF","OC","SA","AF","AS","SA","SA",
+ "SA","AF","AS","AS","EU","EU","AF","EU","SA","SA",
+ "AF","SA","EU","AF","AF","AF","EU","AF","EU","OC",
+ "SA","OC","EU","EU","EU","AF","EU","SA","AS","SA",
+ "AF","EU","SA","AF","AF","SA","AF","EU","SA","SA",
+ "OC","AF","SA","AS","AF","SA","EU","SA","EU","AS",
+ "EU","AS","AS","AS","AS","AS","EU","EU","SA","AS",
+ "AS","AF","AS","AS","OC","AF","SA","AS","AS","AS",
+ "SA","AS","AS","AS","SA","EU","AS","AF","AF","EU",
+ "EU","EU","AF","AF","EU","EU","AF","OC","EU","AF",
+ "AS","AS","AS","OC","SA","AF","SA","EU","AF","AS",
+ "AF","NA","AS","AF","AF","OC","AF","OC","AF","SA",
+ "EU","EU","AS","OC","OC","OC","AS","SA","SA","OC",
+ "OC","AS","AS","EU","SA","OC","SA","AS","EU","OC",
+ "SA","AS","AF","EU","AS","AF","AS","OC","AF","AF",
+ "EU","AS","AF","EU","EU","EU","AF","EU","AF","AF",
+ "SA","AF","SA","AS","AF","SA","AF","AF","AF","AS",
+ "AS","OC","AS","AF","OC","AS","AS","SA","OC","AS",
+ "AF","EU","AF","OC","NA","SA","AS","EU","SA","SA",
+ "SA","SA","AS","OC","OC","OC","AS","AF","EU","AF",
+ "AF","EU","AF","--","--","--","EU","EU","EU","EU"
+};
+
+
+static int db_open(directory_config *dcfg, char **error_msg)
+{
+ char errstr[1024];
+ apr_pool_t *mp = dcfg->mp;
+ geo_db *geo = dcfg->geo;
+ apr_status_t rc;
+ apr_size_t nbytes;
+ apr_off_t offset;
+ unsigned char buf[3];
+ int i, j;
+
+ #ifdef DEBUG_CONF
+ fprintf(stderr, "GEO: Initializing geo DB \"%s\".\n", geo->dbfn);
+ #endif
+
+ if ((rc = apr_file_open(&geo->db, geo->dbfn, APR_READ, APR_OS_DEFAULT, mp)) != APR_SUCCESS) {
+ *error_msg = apr_psprintf(mp, "Could not open geo database \"%s\": %s", geo->dbfn, apr_strerror(rc, errstr, 1024));
+ return 0;
+ }
+
+ offset = -3;
+ apr_file_seek(geo->db, APR_END, &offset);
+ /* TODO check offset */
+
+ /* Defaults */
+ geo->dbtype = GEO_COUNTRY_DATABASE;
+ geo->ctry_offset = GEO_COUNTRY_OFFSET;
+
+ for (i = 0; i < GEO_STRUCT_INFO_MAX_SIZE; i++) {
+ memset(buf, 0, 3);
+ rc = apr_file_read_full(geo->db, &buf, 3, &nbytes);
+ #ifdef DEBUG_CONF
+ fprintf(stderr, "GEO: read 0x%02x%02x%02x\n", buf[0], buf[1], buf[2]);
+ #endif
+ if ((rc != APR_SUCCESS) || (nbytes != 3)) {
+ *error_msg = apr_psprintf(mp, "Could not read from geo database \"%s\" (%" APR_SIZE_T_FMT "/3 bytes read): %s", geo->dbfn, nbytes, apr_strerror(rc, errstr, 1024));
+ return -1;
+ }
+ if ((buf[0] == 0xff) && (buf[1] == 0xff) && (buf[2] == 0xff)) {
+ #ifdef DEBUG_CONF
+ fprintf(stderr, "GEO: Found DB info marker at offset 0x%08x\n", (unsigned int)offset);
+ #endif
+ memset(buf, 0, 3);
+ rc = apr_file_read_full(geo->db, &buf, 1, &nbytes);
+ /* TODO: check rc */
+ geo->dbtype = (int)buf[0];
+
+ /* Backwards compat */
+ if (geo->dbtype >= 106) {
+ geo->dbtype -= 105;
+ }
+ #ifdef DEBUG_CONF
+ fprintf(stderr, "GEO: DB type %d\n", geo->dbtype);
+ #endif
+
+ /* If a cities DB, then get country offset */
+ if ((geo->dbtype == GEO_CITY_DATABASE_0) || (geo->dbtype == GEO_CITY_DATABASE_1)) {
+ memset(buf, 0, 3);
+ rc = apr_file_read_full(geo->db, &buf, 3, &nbytes);
+ if ((rc != APR_SUCCESS) || (nbytes != 3)) {
+ *error_msg = apr_psprintf(mp, "Could not read geo database \"%s\" country offset (%" APR_SIZE_T_FMT "/3 bytes read): %s", geo->dbfn, nbytes, apr_strerror(rc, errstr, 1024));
+ return -1;
+ }
+ #ifdef DEBUG_CONF
+ fprintf(stderr, "GEO: read 0x%02x%02x%02x\n", buf[0], buf[1], buf[2]);
+ #endif
+ geo->ctry_offset = 0;
+ for (j = 0; j < 3; j++) {
+ geo->ctry_offset += (buf[j] << (j * 8));
+ }
+ }
+
+ #ifdef DEBUG_CONF
+ fprintf(stderr, "GEO: Country offset 0x%08x\n", geo->ctry_offset);
+ #endif
+
+ return 1;
+ }
+ /* Backup a byte from where we started */
+ offset = -4;
+ apr_file_seek(geo->db, APR_CUR, &offset);
+ #ifdef DEBUG_CONF
+ fprintf(stderr, "GEO: DB offset 0x%08x\n", (unsigned int)offset);
+ #endif
+ }
+
+ if (geo->dbtype != GEO_COUNTRY_DATABASE) {
+ *error_msg = apr_psprintf(mp, "Unknown database format");
+ return 0;
+ }
+
+ #ifdef DEBUG_CONF
+ fprintf(stderr, "GEO: DB type %d\n", geo->dbtype);
+ #endif
+
+ return 1;
+}
+
+static int field_length(const char *field, int maxlen)
+{
+ int i;
+
+ if (field == NULL) {
+ return 0;
+ }
+
+ for (i = 0; i < maxlen; i++) {
+ if (field[i] == '\0') {
+ break;
+ }
+ }
+
+ return i;
+}
+
+/**
+ * Initialise Geo data structure
+ */
+int geo_init(directory_config *dcfg, const char *dbfn, char **error_msg)
+{
+ *error_msg = NULL;
+
+ if ((dcfg->geo == NULL) || (dcfg->geo == NOT_SET_P)) {
+ dcfg->geo = apr_pcalloc(dcfg->mp, sizeof(geo_db));
+ }
+
+ dcfg->geo->db = NULL;
+ dcfg->geo->dbfn = apr_pstrdup(dcfg->mp, dbfn);
+ dcfg->geo->dbtype = 0;
+ dcfg->geo->ctry_offset = 0;
+
+ return db_open(dcfg, error_msg);
+}
+
+/**
+ * Perform geographical lookup on target.
+ */
+int geo_lookup(modsec_rec *msr, geo_rec *georec, const char *target, char **error_msg)
+{
+ apr_sockaddr_t *addr;
+ long ipnum = 0;
+ char *targetip = NULL;
+ geo_db *geo = msr->txcfg->geo;
+ char errstr[1024];
+ unsigned char buf[2* GEO_MAX_RECORD_LEN];
+ const int reclen = 3; /* Algorithm needs changed if this changes */
+ apr_size_t nbytes;
+ unsigned int rec_val = 0;
+ apr_off_t seekto = 0;
+ int rc;
+ int country = 0;
+ int level;
+ double dtmp;
+ int itmp;
+
+ *error_msg = NULL;
+
+ /* init */
+ georec->country_code = geo_country_code[0];
+ georec->country_code3 = geo_country_code3[0];
+ georec->country_name = geo_country_name[0];
+ georec->country_continent = geo_country_continent[0];
+ georec->region = "";
+ georec->city = "";
+ georec->postal_code = "";
+ georec->latitude = 0;
+ georec->longitude = 0;
+ georec->dma_code = 0;
+ georec->area_code = 0;
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "GEO: Looking up \"%s\".", log_escape(msr->mp, target));
+ }
+
+ /* NOTE: This only works with ipv4 */
+ if ((rc = apr_sockaddr_info_get(&addr, target, APR_INET, 0, 0, msr->mp)) != APR_SUCCESS) {
+
+ *error_msg = apr_psprintf(msr->mp, "Geo lookup for \"%s\" failed: %s", log_escape(msr->mp, target), apr_strerror(rc, errstr, 1024));
+ msr_log(msr, 4, "%s", *error_msg);
+ return 0;
+ }
+ if ((rc = apr_sockaddr_ip_get(&targetip, addr)) != APR_SUCCESS) {
+ *error_msg = apr_psprintf(msr->mp, "Geo lookup for \"%s\" failed: %s", log_escape(msr->mp, target), apr_strerror(rc, errstr, 1024));
+ msr_log(msr, 4, "%s", *error_msg);
+ return 0;
+ };
+
+ /* Why is this in host byte order? */
+ ipnum = ntohl(addr->sa.sin.sin_addr.s_addr);
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "GEO: Using address \"%s\" (0x%08lx).", targetip, ipnum);
+ }
+
+ for (level = 31; level >= 0; level--) {
+ /* Read the record */
+ seekto = 2 * reclen * rec_val;
+ apr_file_seek(geo->db, APR_SET, &seekto);
+ /* TODO: check rc */
+ rc = apr_file_read_full(geo->db, &buf, (2 * reclen), &nbytes);
+
+ /* NOTE: This is hard-coded for size 3 records */
+ /* Left */
+ if ((ipnum & (1 << level)) == 0) {
+ rec_val = buf[0] +
+ (buf[1] << 8) +
+ (buf[2] << 16);
+ }
+ /* Right */
+ else {
+ rec_val = buf[3] +
+ (buf[4] << 8) +
+ (buf[5] << 16);
+ }
+
+ /* If we are past the country offset, then we are done */
+ if (rec_val >= geo->ctry_offset) {
+ break;
+ }
+ }
+
+ if (geo->dbtype == GEO_COUNTRY_DATABASE) {
+ country = rec_val;
+ country -= geo->ctry_offset;
+ if ((country <= 0) || (country > GEO_COUNTRY_LAST)) {
+ *error_msg = apr_psprintf(msr->mp, "No geo data for \"%s\" (country %d).", log_escape(msr->mp, target), country);
+ msr_log(msr, 4, "%s", *error_msg);
+ return 0;
+ }
+
+ /* Country */
+ georec->country_code = geo_country_code[country];
+ georec->country_code3 = geo_country_code3[country];
+ georec->country_name = geo_country_name[country];
+ georec->country_continent = geo_country_continent[country];
+ }
+ else {
+ int field_len = 0;
+ int rec_offset = 0;
+ int remaining = GEO_CITY_RECORD_LEN;
+ unsigned char cbuf[GEO_CITY_RECORD_LEN];
+
+ seekto = rec_val + (2 * reclen - 1) * geo->ctry_offset;
+ apr_file_seek(geo->db, APR_SET, &seekto);
+ /* TODO: check rc */
+ rc = apr_file_read_full(geo->db, &cbuf, sizeof(cbuf), &nbytes);
+
+ country = cbuf[0];
+ if ((country <= 0) || (country > GEO_COUNTRY_LAST)) {
+ *error_msg = apr_psprintf(msr->mp, "No geo data for \"%s\" (country %d).", log_escape(msr->mp, target), country);
+ msr_log(msr, 4, "%s", *error_msg);
+ return 0;
+ }
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "GEO: rec=\"%s\"", log_escape_raw(msr->mp, cbuf, sizeof(cbuf)));
+ }
+
+ /* Country */
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "GEO: country=\"%.*s\"", (1*4), log_escape_raw(msr->mp, cbuf, sizeof(cbuf)));
+ }
+ georec->country_code = geo_country_code[country];
+ georec->country_code3 = geo_country_code3[country];
+ georec->country_name = geo_country_name[country];
+ georec->country_continent = geo_country_continent[country];
+ rec_offset++;
+ remaining -= rec_offset;
+
+ /* Region */
+ field_len = field_length((const char *)cbuf+rec_offset, remaining);
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "GEO: region=\"%.*s\"", ((field_len+1)*4), log_escape_raw(msr->mp, cbuf, sizeof(cbuf))+(rec_offset*4));
+ }
+ georec->region = apr_pstrmemdup(msr->mp, (const char *)cbuf+rec_offset, (remaining));
+ rec_offset += field_len + 1;
+ remaining -= field_len + 1;
+
+ /* City */
+ field_len = field_length((const char *)cbuf+rec_offset, remaining);
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "GEO: city=\"%.*s\"", ((field_len+1)*4), log_escape_raw(msr->mp, cbuf, sizeof(cbuf))+(rec_offset*4));
+ }
+ georec->city = apr_pstrmemdup(msr->mp, (const char *)cbuf+rec_offset, (remaining));
+ rec_offset += field_len + 1;
+ remaining -= field_len + 1;
+
+ /* Postal Code */
+ field_len = field_length((const char *)cbuf+rec_offset, remaining);
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "GEO: postal_code=\"%.*s\"", ((field_len+1)*4), log_escape_raw(msr->mp, cbuf, sizeof(cbuf))+(rec_offset*4));
+ }
+ georec->postal_code = apr_pstrmemdup(msr->mp, (const char *)cbuf+rec_offset, (remaining));
+ rec_offset += field_len + 1;
+ remaining -= field_len + 1;
+
+ /* Latitude */
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "GEO: latitude=\"%.*s\"", (3*4), log_escape_raw(msr->mp, cbuf, sizeof(cbuf))+(rec_offset*4));
+ }
+ dtmp = cbuf[rec_offset] +
+ (cbuf[rec_offset+1] << 8) +
+ (cbuf[rec_offset+2] << 16);
+ georec->latitude = dtmp/10000 - 180;
+ rec_offset += 3;
+ remaining -= 3;
+
+
+ /* Longitude */
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "GEO: longitude=\"%.*s\"", (3*4), log_escape_raw(msr->mp, cbuf, sizeof(cbuf))+(rec_offset*4));
+ }
+ dtmp = cbuf[rec_offset] +
+ (cbuf[rec_offset+1] << 8) +
+ (cbuf[rec_offset+2] << 16);
+ georec->longitude = dtmp/10000 - 180;
+ rec_offset += 3;
+ remaining -= 3;
+
+ /* dma/area codes are in city rev1 and US only */
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "GEO: dma/area=\"%.*s\"", (3*4), log_escape_raw(msr->mp, cbuf, sizeof(cbuf))+(rec_offset*4));
+ }
+ if (geo->dbtype == GEO_CITY_DATABASE_1
+ && georec->country_code[0] == 'U'
+ && georec->country_code[1] == 'S')
+ {
+ /* DMA Code */
+ itmp = cbuf[rec_offset] +
+ (cbuf[rec_offset+1] << 8) +
+ (cbuf[rec_offset+2] << 16);
+ georec->dma_code = itmp / 1000;
+ georec->area_code = itmp % 1000;
+ rec_offset += 6;
+ remaining -= 6;
+ }
+
+ }
+
+ *error_msg = apr_psprintf(msr->mp, "Geo lookup for \"%s\" succeeded.", log_escape(msr->mp, target));
+ return 1;
+}
+
+/**
+ * Frees the resources used for Geo lookups
+ */
+apr_status_t geo_cleanup(modsec_rec *msr)
+{
+ return APR_SUCCESS;
+}
+
+
--- /dev/null
+/*
+ * ModSecurity for Apache 2.x, http://www.modsecurity.org/
+ * Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
+ *
+ * This product is released under the terms of the General Public Licence,
+ * version 2 (GPLv2). Please refer to the file LICENSE (included with this
+ * distribution) which contains the complete text of the licence.
+ *
+ * There are special exceptions to the terms and conditions of the GPL
+ * as it is applied to this software. View the full text of the exception in
+ * file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
+ * distribution.
+ *
+ * If any of the files related to licensing are missing or if you have any
+ * other questions related to licensing please contact Breach Security, Inc.
+ * directly using the email address support@breach.com.
+ *
+ */
+#ifndef _MSC_GEO_H_
+#define _MSC_GEO_H_
+
+#define GEO_STRUCT_INFO_MAX_SIZE 20
+#define GEO_DB_INFO_MAX_SIZE 100
+#define GEO_COUNTRY_OFFSET 0xffff00
+#define GEO_MAX_RECORD_LEN 4
+#define GEO_COUNTRY_UNKNOWN "Unknown"
+#define GEO_CITY_UNKNOWN "Unknown"
+#define GEO_CITY_RECORD_LEN 50
+#define GEO_COUNTRY_DATABASE 1
+#define GEO_CITY_DATABASE_0 6
+#define GEO_CITY_DATABASE_1 2
+#define GEO_COUNTRY_LAST 250
+
+
+typedef struct geo_rec geo_rec;
+typedef struct geo_db geo_db;
+
+#include <apr_file_io.h>
+#include "modsecurity.h"
+
+/* Structures */
+
+struct geo_rec {
+ const char *country_code;
+ const char *country_code3;
+ const char *country_name;
+ const char *country_continent;
+ const char *region;
+ const char *city;
+ const char *postal_code;
+ float latitude;
+ float longitude;
+ int dma_code;
+ int area_code;
+};
+
+struct geo_db {
+ apr_file_t *db;
+ const char *dbfn;
+ int dbtype;
+ unsigned int ctry_offset;
+};
+
+/* Functions */
+
+int DSOLOCAL geo_init(directory_config *dcfg, const char *dbfn, char **error_msg);
+
+int DSOLOCAL geo_lookup(modsec_rec *msr, geo_rec *rec, const char *target, char **error_msg);
+
+apr_status_t DSOLOCAL geo_cleanup(modsec_rec *msr);
+
+#endif
--- /dev/null
+/*
+ * ModSecurity for Apache 2.x, http://www.modsecurity.org/
+ * Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
+ *
+ * This product is released under the terms of the General Public Licence,
+ * version 2 (GPLv2). Please refer to the file LICENSE (included with this
+ * distribution) which contains the complete text of the licence.
+ *
+ * There are special exceptions to the terms and conditions of the GPL
+ * as it is applied to this software. View the full text of the exception in
+ * file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
+ * distribution.
+ *
+ * If any of the files related to licensing are missing or if you have any
+ * other questions related to licensing please contact Breach Security, Inc.
+ * directly using the email address support@breach.com.
+ *
+ */
+#include <sys/stat.h>
+
+#include "mod_security2_config.h"
+#include "re.h"
+#include "msc_logging.h"
+#include "httpd.h"
+#include "apr_strings.h"
+#include "apr_global_mutex.h"
+#include "msc_util.h"
+
+
+/**
+ * Write the supplied data to the audit log (if the FD is ready), update
+ * the size counters, update the hash context.
+ */
+static int sec_auditlog_write(modsec_rec *msr, const char *data, unsigned int len) {
+ apr_size_t nbytes_written, nbytes = len;
+ apr_status_t rc;
+
+ /* Do nothing if there's no data. */
+ if (data == NULL) return -1;
+
+ /* Update size counters and the hash calculation. We always do this,
+ * even in cases where write fails. That will make it easier to detect
+ * problems with partial writes.
+ */
+ msr->new_auditlog_size += len;
+ apr_md5_update(&msr->new_auditlog_md5ctx, data, len);
+
+ /* Do not write if we do not have a file descriptor. */
+ if (msr->new_auditlog_fd == NULL) return -1;
+
+ /* Write data to file. */
+ rc = apr_file_write_full(msr->new_auditlog_fd, data, nbytes, &nbytes_written);
+ if (rc != APR_SUCCESS) {
+ msr_log(msr, 1, "Audit log: Failed writing (requested %" APR_SIZE_T_FMT
+ " bytes, written %" APR_SIZE_T_FMT ")", nbytes, nbytes_written);
+
+ /* Set to NULL to prevent more than one error message on
+ * out-of-disk-space events and to prevent further attempts
+ * to write to the same file in this request.
+ *
+ * Note that, as we opened the file through the pool mechanism of
+ * the APR, we do not need to close the file here. It will be closed
+ * automatically at the end of the request.
+ */
+ msr->new_auditlog_fd = NULL;
+
+ return -1;
+ }
+
+ return 1;
+}
+
+/**
+ * Construct a log line in the vcombinedus format (see below).
+ */
+char *construct_log_vcombinedus(modsec_rec *msr) {
+ const char *local_user, *remote_user;
+ const char *referer, *user_agent, *uniqueid;
+ const char *sessionid;
+
+ /* remote log name */
+ if (msr->remote_user == NULL) remote_user = "-";
+ else remote_user = msr->remote_user;
+
+ /* authenticated user */
+ if (msr->local_user == NULL) local_user = "-";
+ else local_user = msr->local_user;
+
+ /* unique id */
+ uniqueid = msr->txid;
+ if (uniqueid == NULL) uniqueid = "-";
+
+ /* referer */
+ referer = "-";
+ /* Logging Referer is a waste of space.
+ referer = (char *)apr_table_get(msr->request_headers, "Referer");
+ if (referer == NULL) referer = "-";
+ */
+
+ /* user agent */
+ user_agent = "-";
+ /* Logging User-Agent is a waste of space too.
+ user_agent = (char *)apr_table_get(msr->request_headers, "User-Agent");
+ if (user_agent == NULL) user_agent = "-";
+ */
+
+ /* sessionid */
+ sessionid = (msr->sessionid == NULL ? "-" : msr->sessionid);
+
+ return apr_psprintf(msr->mp, "%s %s %s %s [%s] \"%s\" %u %" APR_OFF_T_FMT " \"%s\" \"%s\" %s \"%s\"",
+ log_escape_nq(msr->mp, msr->hostname), msr->remote_addr, log_escape_nq(msr->mp, remote_user),
+ log_escape_nq(msr->mp, local_user), current_logtime(msr->mp),
+ ((msr->request_line == NULL) ? "" : log_escape(msr->mp, msr->request_line)),
+ msr->response_status, msr->bytes_sent, log_escape(msr->mp, referer),
+ log_escape(msr->mp, user_agent), log_escape(msr->mp, uniqueid), sessionid);
+}
+
+/**
+ * Constructs a log line in vcombined log format trying to truncate
+ * some of the fields to make the log line shorter than _limit bytes.
+ */
+char *construct_log_vcombinedus_limited(modsec_rec *msr, int _limit, int *was_limited) {
+ char *hostname;
+ char *local_user, *remote_user;
+ char *referer, *user_agent, *uniqueid;
+ const char *sessionid;
+ char *the_request, *bytes_sent;
+ int limit = _limit;
+
+ /* hostname */
+ hostname = (msr->hostname == NULL ? "-" : log_escape_nq(msr->mp, msr->hostname));
+
+ /* remote log name */
+ if (msr->remote_user == NULL) remote_user = "-";
+ else remote_user = log_escape_nq(msr->mp, msr->remote_user);
+
+ /* authenticated user */
+ if (msr->local_user == NULL) local_user = "-";
+ else local_user = log_escape_nq(msr->mp, msr->local_user);
+
+ /* unique id */
+ if (msr->txid == NULL) uniqueid = "-";
+ else uniqueid = log_escape(msr->mp, msr->txid);
+
+ /* referer */
+ referer = "-";
+ /*
+ referer = (char *)apr_table_get(msr->request_headers, "Referer");
+ if (referer == NULL) referer = "-";
+ else referer = log_escape(msr->mp, referer);
+ */
+
+ /* user agent */
+ user_agent = "-";
+ /*
+ user_agent = (char *)apr_table_get(msr->request_headers, "User-Agent");
+ if (user_agent == NULL) user_agent = "-";
+ else user_agent = log_escape(msr->mp, user_agent);
+ */
+
+ /* sessionid */
+ sessionid = (msr->sessionid == NULL) ? "-" : log_escape(msr->mp, msr->sessionid);
+
+ the_request = (msr->request_line == NULL) ? "" : log_escape(msr->mp, msr->request_line);
+
+ bytes_sent = apr_psprintf(msr->mp, "%" APR_OFF_T_FMT, msr->bytes_sent);
+
+ /* first take away the size of the
+ * information we must log
+ */
+ limit -= 22; /* spaces and double quotes */
+ limit -= strlen(hostname); /* server name or IP */
+ limit -= strlen(msr->remote_addr); /* remote IP */
+ limit -= 28; /* current_logtime */
+ limit -= 3; /* status */
+ limit -= strlen(bytes_sent); /* bytes sent */
+ limit -= strlen(uniqueid); /* unique id */
+ limit -= strlen(sessionid); /* session id */
+
+ if (limit <= 0) {
+ msr_log(msr, 1, "GuardianLog: Atomic pipe write size too small: %d", PIPE_BUF);
+ return NULL;
+ }
+
+ /* we hope to be able to squeeze everything in */
+ if (limit < (int)(strlen(remote_user) + strlen(local_user) + strlen(referer)
+ + strlen(user_agent) + strlen(the_request)))
+ {
+ /* Boo hoo hoo, there's not enough space available. */
+ *was_limited = 1;
+
+ /* Let's see if we can reduce the size of something. This
+ * is a very crude approach but it seems to work for our
+ * needs.
+ */
+ if (strlen(remote_user) > 32) {
+ msr_log(msr, 9, "GuardianLog: Reduced remote_user to 32.");
+ remote_user[32] = '\0';
+ }
+ limit -= strlen(remote_user);
+
+ if (strlen(local_user) > 32) {
+ msr_log(msr, 9, "GuardianLog: Reduced local_user to 32.");
+ local_user[32] = '\0';
+ }
+ limit -= strlen(local_user);
+
+ if (strlen(referer) > 64) {
+ msr_log(msr, 9, "GuardianLog: Reduced referer to 64.");
+ referer[64] = '\0';
+ }
+ limit -= strlen(referer);
+
+ if (strlen(user_agent) > 64) {
+ msr_log(msr, 9, "GuardianLog: Reduced user_agent to 64.");
+ user_agent[64] = '\0';
+ }
+ limit -= strlen(user_agent);
+
+ if (limit <= 0) {
+ msr_log(msr, 1, "GuardianLog: Atomic pipe write size too small: %d.", PIPE_BUF);
+ return NULL;
+ }
+
+ /* use what's left for the request line */
+ if ((int)strlen(the_request) > limit) {
+ the_request[limit] = '\0';
+ msr_log(msr, 9, "GuardianLog: Reduced the_request to %d bytes.", limit);
+ }
+ } else {
+ /* Yay! We have enough space! */
+ *was_limited = 0;
+ }
+
+ return apr_psprintf(msr->mp, "%s %s %s %s [%s] \"%s\" %u %s \"%s\" \"%s\" %s \"%s\"",
+ hostname, msr->remote_addr, remote_user,
+ local_user, current_logtime(msr->mp), the_request,
+ msr->response_status, bytes_sent, referer, user_agent,
+ uniqueid, sessionid
+ );
+}
+
+/**
+ * Checks if the provided string is a valid audit log parts specification.
+ */
+int is_valid_parts_specification(char *p) {
+ char c, *t = p;
+
+ while((c = *(t++)) != '\0') {
+ if ((c != AUDITLOG_PART_ENDMARKER)&&((c < AUDITLOG_PART_FIRST)||(c > AUDITLOG_PART_LAST))) {
+ return 0;
+ }
+ }
+
+ return 1;
+}
+
+/**
+ * Constructs a filename that will be used to store an
+ * audit log entry.
+ */
+static char *construct_auditlog_filename(apr_pool_t *mp, const char *uniqueid) {
+ apr_time_exp_t t;
+ char tstr[300];
+ apr_size_t len;
+
+ apr_time_exp_lt(&t, apr_time_now());
+
+ apr_strftime(tstr, &len, 299, "/%Y%m%d/%Y%m%d-%H%M/%Y%m%d-%H%M%S", &t);
+ return apr_psprintf(mp, "%s-%s", tstr, uniqueid);
+}
+
+/**
+ * Creates a random 8-character string that
+ * consists of hexadecimal numbers, to be used
+ * as an audit log boundary.
+ */
+static char *create_auditlog_boundary(request_rec *r) {
+ unsigned long data = rand();
+ /* Do note that I tried using apr_generate_random_bytes but it turned
+ * out to be terribly slow for some reason. Needs further investigation.
+ */
+ return bytes2hex(r->pool, (void *)&data, 4);
+}
+
+/**
+ * Sanitises the request line by removing the parameters
+ * that have been marked as sensitive.
+ */
+static void sanitise_request_line(modsec_rec *msr) {
+ const apr_array_header_t *tarr;
+ const apr_table_entry_t *telts;
+ int i;
+ char *qspos;
+
+ /* Locate the query string. */
+ qspos = strstr(msr->request_line, "?");
+ if (qspos == NULL) return;
+ qspos++;
+
+ /* Loop through the list of sensitive parameters. */
+ tarr = apr_table_elts(msr->arguments_to_sanitise);
+ telts = (const apr_table_entry_t*)tarr->elts;
+ for (i = 0; i < tarr->nelts; i++) {
+ msc_arg *arg = (msc_arg *)telts[i].val;
+ /* Only look at the parameters that appeared in the query string. */
+ if (strcmp(arg->origin, "QUERY_STRING") == 0) {
+ char *p;
+ int j;
+
+ /* Go to the beginning of the parameter. */
+ p = qspos;
+ j = arg->value_origin_offset;
+ while((*p != '\0')&&(j--)) p++;
+ if (*p == '\0') {
+ msr_log(msr, 1, "Unable to sanitise variable \"%s\" at offset %u of QUERY_STRING"
+ "because the request line is too short.",
+ log_escape_ex(msr->mp, arg->name, arg->name_len),
+ arg->value_origin_offset);
+ continue;
+ }
+
+ /* Write over the value. */
+ j = arg->value_origin_len;
+ while((*p != '\0')&&(j--)) {
+ *p++ = '*';
+ }
+ if (*p == '\0') {
+ msr_log(msr, 1, "Unable to sanitise variable \"%s\" at offset %u (size %d) "
+ "of QUERY_STRING because the request line is too short.",
+ log_escape_ex(msr->mp, arg->name, arg->name_len),
+ arg->value_origin_offset, arg->value_origin_len);
+ continue;
+ }
+ }
+ }
+}
+
+/**
+ * Output the Producer header.
+ */
+static void sec_auditlog_write_producer_header(modsec_rec *msr) {
+ char **signatures = NULL;
+ char *text = NULL;
+ int i;
+
+ /* Try to write everything in one go. */
+ if (msr->txcfg->component_signatures->nelts == 0) {
+ text = apr_psprintf(msr->mp, "Producer: %s.\n", MODSEC_MODULE_NAME_FULL);
+ sec_auditlog_write(msr, text, strlen(text));
+
+ return;
+ }
+
+ /* Start with the ModSecurity signature. */
+ text = apr_psprintf(msr->mp, "Producer: %s", MODSEC_MODULE_NAME_FULL);
+ sec_auditlog_write(msr, text, strlen(text));
+
+
+ /* Then loop through the components and output individual signatures. */
+ signatures = (char **)msr->txcfg->component_signatures->elts;
+ for(i = 0; i < msr->txcfg->component_signatures->nelts; i++) {
+ text = apr_psprintf(msr->mp, "; %s", (char *)signatures[i]);
+ sec_auditlog_write(msr, text, strlen(text));
+ }
+
+ sec_auditlog_write(msr, ".\n", 2);
+}
+
+/**
+ * Produce an audit log entry.
+ */
+void sec_audit_logger(modsec_rec *msr) {
+ const apr_array_header_t *arr = NULL;
+ apr_table_entry_t *te = NULL;
+ char *str1 = NULL, *str2 = NULL, *text = NULL;
+ const msre_rule *rule = NULL;
+ apr_size_t nbytes, nbytes_written;
+ unsigned char md5hash[APR_MD5_DIGESTSIZE];
+ int was_limited = 0;
+ int wrote_response_body = 0;
+ char *entry_filename, *entry_basename;
+ apr_status_t rc;
+ int i, limit;
+
+ /* the boundary is used by both audit log types */
+ msr->new_auditlog_boundary = create_auditlog_boundary(msr->r);
+
+ /* Return silently if we don't have a request line. This
+ * means we will not be logging request timeouts.
+ */
+ if (msr->request_line == NULL) {
+ msr_log(msr, 4, "Audit log: Skipping request whose request_line is null.");
+ return;
+ }
+
+ /* Also return silently if we don't have a file descriptor. */
+ if (msr->txcfg->auditlog_fd == NULL) {
+ msr_log(msr, 4, "Audit log: Skipping request since there is nowhere to write to.");
+ return;
+ }
+
+ if (msr->txcfg->auditlog_type != AUDITLOG_CONCURRENT) {
+ /* Serial logging - we already have an open file
+ * descriptor to write to.
+ */
+ msr->new_auditlog_fd = msr->txcfg->auditlog_fd;
+ } else {
+ /* Concurrent logging - we need to create a brand
+ * new file for this request.
+ */
+ apr_md5_init(&msr->new_auditlog_md5ctx);
+
+ msr->new_auditlog_filename = construct_auditlog_filename(msr->mp, msr->txid);
+ if (msr->new_auditlog_filename == NULL) return;
+
+ /* The audit log storage directory should be explicitly
+ * defined. But if it isn't try to write to the same
+ * directory where the index file is placed. Of course,
+ * it is *very* bad practice to allow the Apache user
+ * to write to the same directory where a root user is
+ * writing to but it's not us that's causing the problem
+ * and there isn't anything we can do about that.
+ *
+ * ENH Actually there is something we can do! We will make
+ * SecAuditStorageDir mandatory, ask the user to explicitly
+ * define the storage location *and* refuse to work if the
+ * index and the storage location are in the same folder.
+ */
+ if (msr->txcfg->auditlog_storage_dir == NULL) {
+ entry_filename = file_dirname(msr->mp, msr->txcfg->auditlog_name);
+ }
+ else {
+ entry_filename = msr->txcfg->auditlog_storage_dir;
+ }
+ if (entry_filename == NULL) return;
+
+ entry_filename = apr_psprintf(msr->mp, "%s%s", entry_filename, msr->new_auditlog_filename);
+ if (entry_filename == NULL) return;
+ entry_basename = file_dirname(msr->mp, entry_filename);
+ if (entry_basename == NULL) return;
+
+ /* IMP1 Surely it would be more efficient to check the folders for
+ * the audit log repository base path in the configuration phase, to reduce
+ * the work we do on every request. Also, since our path depends on time,
+ * we could cache the time we last checked and don't check if we know
+ * the folder is there.
+ */
+ rc = apr_dir_make_recursive(entry_basename, msr->txcfg->auditlog_dirperms, msr->mp);
+ if (rc != APR_SUCCESS) {
+ msr_log(msr, 1, "Audit log: Failed to create subdirectories: %s (%s)",
+ entry_basename, get_apr_error(msr->mp, rc));
+ return;
+ }
+
+ rc = apr_file_open(&msr->new_auditlog_fd, entry_filename,
+ APR_WRITE | APR_TRUNCATE | APR_CREATE | APR_BINARY | APR_FILE_NOCLEANUP,
+ msr->txcfg->auditlog_fileperms, msr->mp);
+ if (rc != APR_SUCCESS) {
+ msr_log(msr, 1, "Audit log: Failed to create file: %s (%s)",
+ entry_filename, get_apr_error(msr->mp, rc));
+ return;
+ }
+ }
+
+ /* Lock the mutex, but only if we are using serial format. */
+ if (msr->txcfg->auditlog_type != AUDITLOG_CONCURRENT) {
+ rc = apr_global_mutex_lock(msr->modsecurity->auditlog_lock);
+ if (rc != APR_SUCCESS) {
+ msr_log(msr, 1, "Audit log: Failed to lock global mutex: %s",
+ get_apr_error(msr->mp, rc));
+ }
+ }
+
+ /* AUDITLOG_PART_HEADER */
+
+ text = apr_psprintf(msr->mp, "--%s-%c--\n", msr->new_auditlog_boundary, AUDITLOG_PART_HEADER);
+ sec_auditlog_write(msr, text, strlen(text));
+
+ /* Format: time transaction_id remote_addr remote_port local_addr local_port */
+
+ text = apr_psprintf(msr->mp, "[%s] %s %s %u %s %u",
+ current_logtime(msr->mp), msr->txid, msr->remote_addr, msr->remote_port,
+ msr->local_addr, msr->local_port);
+ sec_auditlog_write(msr, text, strlen(text));
+
+
+ /* AUDITLOG_PART_REQUEST_HEADERS */
+
+ if (strchr(msr->txcfg->auditlog_parts, AUDITLOG_PART_REQUEST_HEADERS) != NULL) {
+ text = apr_psprintf(msr->mp, "\n--%s-%c--\n", msr->new_auditlog_boundary, AUDITLOG_PART_REQUEST_HEADERS);
+ sec_auditlog_write(msr, text, strlen(text));
+
+ sanitise_request_line(msr);
+
+ sec_auditlog_write(msr, msr->request_line, strlen(msr->request_line));
+ sec_auditlog_write(msr, "\n", 1);
+
+ arr = apr_table_elts(msr->request_headers);
+ te = (apr_table_entry_t *)arr->elts;
+ for (i = 0; i < arr->nelts; i++) {
+ text = apr_psprintf(msr->mp, "%s: %s\n", te[i].key, te[i].val);
+ /* Do we need to sanitise this request header? */
+ if (apr_table_get(msr->request_headers_to_sanitise, te[i].key) != NULL) {
+ /* Yes, sanitise it. */
+ memset(text + strlen(te[i].key) + 2, '*', strlen(te[i].val));
+ }
+ sec_auditlog_write(msr, text, strlen(text));
+ }
+ }
+
+ /* AUDITLOG_PART_REQUEST_BODY */
+
+ /* Output this part of it was explicitly requested (C) or if it was the faked
+ * request body that was requested (I) but we have no reason to fake it (it's
+ * already in the correct format).
+ */
+ if ( (strchr(msr->txcfg->auditlog_parts, AUDITLOG_PART_REQUEST_BODY) != NULL)
+ || ( (strchr(msr->txcfg->auditlog_parts, AUDITLOG_PART_FAKE_REQUEST_BODY) != NULL)
+ && (msr->mpd == NULL) ) )
+ {
+ if (msr->msc_reqbody_read) {
+ const apr_array_header_t *tarr;
+ const apr_table_entry_t *telts;
+ apr_array_header_t *sorted_args;
+ unsigned int offset = 0, last_offset = 0;
+ msc_arg *nextarg = NULL;
+ int sanitise = 0; /* IMP1 Use constants for "sanitise" values. */
+ char *my_error_msg = NULL;
+
+ sorted_args = apr_array_make(msr->mp, 25, sizeof(const msc_arg *));
+
+ /* First we need to sort the arguments that need to be
+ * sanitised in descending order (we are using a stack structure
+ * to store then so the order will be ascending when we start
+ * popping them out). This is because we will
+ * be reading the request body sequentially and must
+ * sanitise it as we go.
+ */
+
+ for(;;) {
+ nextarg = NULL;
+
+ /* Find the next largest offset (excluding
+ * the ones we've used up already).
+ */
+ tarr = apr_table_elts(msr->arguments_to_sanitise);
+ telts = (const apr_table_entry_t*)tarr->elts;
+ for(i = 0; i < tarr->nelts; i++) {
+ msc_arg *arg = (msc_arg *)telts[i].val;
+ if (strcmp(arg->origin, "BODY") != 0) continue;
+
+ if (last_offset == 0) { /* The first time we're here. */
+ if (arg->value_origin_offset > offset) {
+ offset = arg->value_origin_offset;
+ nextarg = arg;
+ }
+ } else { /* Not the first time. */
+ if ((arg->value_origin_offset > offset)
+ &&(arg->value_origin_offset < last_offset))
+ {
+ offset = arg->value_origin_offset;
+ nextarg = arg;
+ }
+ }
+ }
+
+ /* If we don't have the next argument that means
+ * we're done here.
+ */
+ if (nextarg == NULL) break;
+
+ sanitise = 2; /* Means time to pop the next argument out. */
+ last_offset = offset;
+ offset = 0;
+ { /* IMP1 Fix this ugly bit here. */
+ msc_arg **x = apr_array_push(sorted_args);
+ *x = nextarg;
+ }
+ }
+
+ /* Now start retrieving the body chunk by chunk and
+ * sanitise data in pieces.
+ */
+
+ rc = modsecurity_request_body_retrieve_start(msr, &my_error_msg);
+ if (rc < 0) {
+ msr_log(msr, 1, "Audit log: %s", my_error_msg);
+ } else {
+ msc_data_chunk *chunk = NULL;
+ unsigned int chunk_offset = 0;
+ unsigned int sanitise_offset = 0;
+ unsigned int sanitise_length = 0;
+
+ text = apr_psprintf(msr->mp, "\n--%s-%c--\n", msr->new_auditlog_boundary, AUDITLOG_PART_REQUEST_BODY);
+ sec_auditlog_write(msr, text, strlen(text));
+
+ for(;;) {
+ rc = modsecurity_request_body_retrieve(msr, &chunk, -1, &my_error_msg);
+ if (chunk != NULL) {
+ /* Anything greater than 1 means we have more data to sanitise. */
+ while (sanitise > 1) {
+ msc_arg **arg = NULL;
+
+ if (sanitise == 2) {
+ /* Get the next argument from the stack. */
+ arg = (msc_arg **)apr_array_pop(sorted_args);
+ if (arg == NULL) sanitise = 0; /* We're done sanitising. */
+ else {
+ /* Continue with sanitation to process the
+ * retrieved argument.
+ */
+ sanitise = 1;
+ sanitise_offset = (*arg)->value_origin_offset;
+ sanitise_length = (*arg)->value_origin_len;
+ }
+ }
+
+ if (sanitise) {
+ /* Check if the data we want to sanitise is
+ * stored in the current chunk.
+ */
+ if (chunk_offset + chunk->length > sanitise_offset) {
+ unsigned int soff; /* data offset within chunk */
+ unsigned int len; /* amount in this chunk to sanitise */
+
+ soff = sanitise_offset - chunk_offset;
+
+ if (soff + sanitise_length <= chunk->length) {
+ /* The entire argument resides in the current chunk. */
+ len = sanitise_length;
+ sanitise = 2; /* Get another parameter to sanitise. */
+ } else {
+ /* Some work to do here but we'll need to seek
+ * another chunk.
+ */
+ len = chunk->length - soff;
+ sanitise_offset += len;
+ sanitise_length -= len;
+ sanitise = 1; /* It's OK to go to the next chunk. */
+ }
+
+ /* Yes, we actually write over the original data.
+ * We shouldn't be needing it any more.
+ */
+ if (soff + len <= chunk->length) { /* double check */
+ memset((char *)chunk->data + soff, '*', len);
+ }
+ }
+ }
+ }
+
+ /* Write the sanitised chunk to the log
+ * and advance to the next chunk. */
+ sec_auditlog_write(msr, chunk->data, chunk->length);
+ chunk_offset += chunk->length;
+ }
+
+ if (rc <= 0) {
+ break;
+ }
+ }
+
+ if (rc < 0) {
+ msr_log(msr, 1, "Audit log: %s", my_error_msg);
+ }
+
+ modsecurity_request_body_retrieve_end(msr);
+ }
+ }
+ }
+
+ /* AUDITLOG_PART_FAKE_REQUEST_BODY */
+
+ if (strchr(msr->txcfg->auditlog_parts, AUDITLOG_PART_FAKE_REQUEST_BODY) != NULL) {
+ if ((msr->msc_reqbody_read)&&(msr->mpd != NULL)) {
+ char *buffer = NULL;
+
+ buffer = multipart_reconstruct_urlencoded_body_sanitise(msr);
+ if (buffer == NULL) {
+ msr_log(msr, 1, "Audit log: Failed to reconstruct request body.");
+ } else {
+ text = apr_psprintf(msr->mp, "\n--%s-%c--\n", msr->new_auditlog_boundary, AUDITLOG_PART_FAKE_REQUEST_BODY);
+ sec_auditlog_write(msr, text, strlen(text));
+ sec_auditlog_write(msr, buffer, strlen(buffer));
+ }
+ }
+ }
+
+ /* AUDITLOG_PART_A_RESPONSE_HEADERS */
+
+ if (strchr(msr->txcfg->auditlog_parts, AUDITLOG_PART_A_RESPONSE_HEADERS) != NULL) {
+ text = apr_psprintf(msr->mp, "\n--%s-%c--\n", msr->new_auditlog_boundary, AUDITLOG_PART_A_RESPONSE_HEADERS);
+ sec_auditlog_write(msr, text, strlen(text));
+
+ /* There are no response headers (or the status line) in HTTP 0.9 */
+ if (msr->response_headers_sent) {
+ if (msr->status_line != NULL) {
+ text = apr_psprintf(msr->mp, "%s %s\n", msr->response_protocol,
+ msr->status_line);
+ } else {
+ text = apr_psprintf(msr->mp, "%s %u\n", msr->response_protocol,
+ msr->response_status);
+ }
+ sec_auditlog_write(msr, text, strlen(text));
+
+ /* Output headers */
+
+ arr = apr_table_elts(msr->response_headers);
+ te = (apr_table_entry_t *)arr->elts;
+ for (i = 0; i < arr->nelts; i++) {
+ text = apr_psprintf(msr->mp, "%s: %s\n", te[i].key, te[i].val);
+ /* Do we need to sanitise this response header? */
+ if (apr_table_get(msr->response_headers_to_sanitise, te[i].key) != NULL) {
+ /* Yes, sanitise it. */
+ memset(text + strlen(te[i].key) + 2, '*', strlen(te[i].val));
+ }
+ sec_auditlog_write(msr, text, strlen(text));
+ }
+ }
+ }
+
+ /* AUDITLOG_PART_RESPONSE_BODY */
+
+ if (strchr(msr->txcfg->auditlog_parts, AUDITLOG_PART_RESPONSE_BODY) != NULL) {
+ if (msr->resbody_data != NULL) {
+ text = apr_psprintf(msr->mp, "\n--%s-%c--\n", msr->new_auditlog_boundary, AUDITLOG_PART_RESPONSE_BODY);
+ sec_auditlog_write(msr, text, strlen(text));
+ sec_auditlog_write(msr, msr->resbody_data, msr->resbody_length);
+ wrote_response_body = 1;
+ }
+ }
+
+ /* AUDITLOG_PART_TRAILER */
+
+ if (strchr(msr->txcfg->auditlog_parts, AUDITLOG_PART_TRAILER) != NULL) {
+ apr_time_t now = apr_time_now();
+
+ text = apr_psprintf(msr->mp, "\n--%s-%c--\n", msr->new_auditlog_boundary, AUDITLOG_PART_TRAILER);
+ sec_auditlog_write(msr, text, strlen(text));
+
+ /* Messages */
+ for(i = 0; i < msr->alerts->nelts; i++) {
+ text = apr_psprintf(msr->mp, "Message: %s\n", ((char **)msr->alerts->elts)[i]);
+ sec_auditlog_write(msr, text, strlen(text));
+ }
+
+ /* Apache error messages */
+ for(i = 0; i < msr->error_messages->nelts; i++) {
+ error_message *em = (((error_message**)msr->error_messages->elts)[i]);
+ text = apr_psprintf(msr->mp, "Apache-Error: %s\n",
+ format_error_log_message(msr->mp, em));
+ sec_auditlog_write(msr, text, strlen(text));
+ }
+
+ /* Action */
+ if (msr->was_intercepted) {
+ text = apr_psprintf(msr->mp, "Action: Intercepted (phase %d)\n", msr->intercept_phase);
+ sec_auditlog_write(msr, text, strlen(text));
+ }
+
+ /* Apache-Handler */
+ if (msr->r->handler != NULL) {
+ text = apr_psprintf(msr->mp, "Apache-Handler: %s\n", msr->r->handler);
+ sec_auditlog_write(msr, text, strlen(text));
+ }
+
+ /* Processing times */
+ if (msr->time_checkpoint_1 == 0) {
+ text = apr_psprintf(msr->mp, "Stopwatch: %" APR_TIME_T_FMT " %" APR_TIME_T_FMT
+ " (- - -)\n", (msr->request_time), (now - msr->request_time));
+ } else {
+ char sw_str2[101] = "-";
+ char sw_str3[101] = "-";
+
+ if (msr->time_checkpoint_2 != 0) {
+ apr_snprintf(sw_str2, sizeof(sw_str2), "%" APR_TIME_T_FMT,
+ (msr->time_checkpoint_2 - msr->request_time));
+ }
+
+ if (msr->time_checkpoint_3 != 0) {
+ apr_snprintf(sw_str3, sizeof(sw_str3), "%" APR_TIME_T_FMT,
+ (msr->time_checkpoint_3 - msr->request_time));
+ }
+
+ text = apr_psprintf(msr->mp, "Stopwatch: %" APR_TIME_T_FMT
+ " %" APR_TIME_T_FMT " (%" APR_TIME_T_FMT
+ "%s %s %s)\n",
+ (msr->request_time), (now - msr->request_time),
+ (msr->time_checkpoint_1 - msr->request_time),
+ ((msr->msc_reqbody_read == 0) ? "" : "*"),
+ sw_str2, sw_str3
+ );
+ }
+
+ sec_auditlog_write(msr, text, strlen(text));
+
+ /* Our response body does not contain chunks */
+ /* ENH Only write this when the output was chunked. */
+ /* ENH Add info when request body was decompressed, dechunked too. */
+ if (wrote_response_body) {
+ text = apr_psprintf(msr->mp, "Response-Body-Transformed: Dechunked\n");
+ sec_auditlog_write(msr, text, strlen(text));
+ }
+
+ sec_auditlog_write_producer_header(msr);
+
+ /* Server */
+ if (msr->server_software != NULL) {
+ text = apr_psprintf(msr->mp, "Server: %s\n", msr->server_software);
+ sec_auditlog_write(msr, text, strlen(text));
+ }
+
+ /* Sanitised arguments */
+ {
+ const apr_array_header_t *tarr;
+ const apr_table_entry_t *telts;
+
+ tarr = apr_table_elts(msr->arguments_to_sanitise);
+ telts = (const apr_table_entry_t*)tarr->elts;
+
+ if (tarr->nelts > 0) {
+ text = apr_psprintf(msr->mp, "Sanitised-Args: ");
+ sec_auditlog_write(msr, text, strlen(text));
+ }
+
+ for(i = 0; i < tarr->nelts; i++) {
+ msc_arg *arg = (msc_arg *)telts[i].val;
+ text = apr_psprintf(msr->mp, "%s\"%s\"%s", ((i == 0) ? "" : ", "),
+ log_escape(msr->mp, arg->name), ((i == (tarr->nelts - 1)) ? ".\n" : ""));
+ sec_auditlog_write(msr, text, strlen(text));
+ }
+ }
+
+ /* Sanitised request headers */
+ {
+ const apr_array_header_t *tarr;
+ const apr_table_entry_t *telts;
+
+ tarr = apr_table_elts(msr->request_headers_to_sanitise);
+ telts = (const apr_table_entry_t*)tarr->elts;
+
+ if (tarr->nelts > 0) {
+ text = apr_psprintf(msr->mp, "Sanitised-Request-Headers: ");
+ sec_auditlog_write(msr, text, strlen(text));
+ }
+
+ for(i = 0; i < tarr->nelts; i++) {
+ text = apr_psprintf(msr->mp, "%s\"%s\"%s", ((i == 0) ? "" : ", "),
+ log_escape(msr->mp, telts[i].key), ((i == (tarr->nelts - 1)) ? ".\n" : ""));
+ sec_auditlog_write(msr, text, strlen(text));
+ }
+ }
+
+ /* Sanitised response headers */
+ {
+ const apr_array_header_t *tarr;
+ const apr_table_entry_t *telts;
+
+ tarr = apr_table_elts(msr->response_headers_to_sanitise);
+ telts = (const apr_table_entry_t*)tarr->elts;
+
+ if (tarr->nelts > 0) {
+ text = apr_psprintf(msr->mp, "Sanitised-Response-Headers: ");
+ sec_auditlog_write(msr, text, strlen(text));
+ }
+
+ for(i = 0; i < tarr->nelts; i++) {
+ text = apr_psprintf(msr->mp, "%s\"%s\"%s", ((i == 0) ? "" : ", "),
+ log_escape(msr->mp, telts[i].key), ((i == (tarr->nelts - 1)) ? ".\n" : ""));
+ sec_auditlog_write(msr, text, strlen(text));
+ }
+ }
+
+ /* Web application info. */
+ if ( ((msr->txcfg->webappid != NULL)&&(strcmp(msr->txcfg->webappid, "default") != 0))
+ || (msr->sessionid != NULL) || (msr->userid != NULL))
+ {
+ text = apr_psprintf(msr->mp, "WebApp-Info: \"%s\" \"%s\" \"%s\"\n",
+ msr->txcfg->webappid == NULL ? "-" : log_escape(msr->mp, msr->txcfg->webappid),
+ msr->sessionid == NULL ? "-" : log_escape(msr->mp, msr->sessionid),
+ msr->userid == NULL ? "-" : log_escape(msr->mp, msr->userid));
+ sec_auditlog_write(msr, text, strlen(text));
+ }
+ }
+
+ /* AUDITLOG_PART_UPLOADS */
+ /* ENH: Implement */
+
+
+ /* AUDITLOG_PART_MATCHEDRULES */
+
+ if (strchr(msr->txcfg->auditlog_parts, AUDITLOG_PART_MATCHEDRULES) != NULL) {
+ text = apr_psprintf(msr->mp, "\n--%s-%c--\n", msr->new_auditlog_boundary, AUDITLOG_PART_MATCHEDRULES);
+ sec_auditlog_write(msr, text, strlen(text));
+
+ /* Matched Rules */
+ for(i = 0; i < msr->matched_rules->nelts; i++) {
+ rule = ((msre_rule **)msr->matched_rules->elts)[i];
+ text = apr_psprintf(msr->mp, "%s\n", rule->unparsed);
+ sec_auditlog_write(msr, text, strlen(text));
+ }
+ }
+
+
+ /* AUDITLOG_PART_ENDMARKER */
+
+ text = apr_psprintf(msr->mp, "\n--%s-%c--\n", msr->new_auditlog_boundary, AUDITLOG_PART_ENDMARKER);
+ sec_auditlog_write(msr, text, strlen(text));
+
+ /* Return here if we were writing to a serial log
+ * as it does not need an index file.
+ */
+ if (msr->txcfg->auditlog_type != AUDITLOG_CONCURRENT) {
+ sec_auditlog_write(msr, "\n", 1);
+
+ /* Unlock the mutex we used to serialise access to the audit log file. */
+ rc = apr_global_mutex_unlock(msr->modsecurity->auditlog_lock);
+ if (rc != APR_SUCCESS) {
+ msr_log(msr, 1, "Audit log: Failed to unlock global mutex: %s",
+ get_apr_error(msr->mp, rc));
+ }
+
+ return;
+ }
+
+ /* From here on only concurrent-style processing. */
+
+ apr_file_close(msr->new_auditlog_fd);
+
+ /* Write an entry to the index file */
+
+ /* Calculate hash of the entry. */
+ apr_md5_final(md5hash, &msr->new_auditlog_md5ctx);
+
+ str2 = apr_psprintf(msr->mp, "%s %d %d md5:%s", msr->new_auditlog_filename, 0,
+ msr->new_auditlog_size, bytes2hex(msr->mp, md5hash, 16));
+ if (str2 == NULL) return;
+
+ /* We do not want the index line to be longer than 3980 bytes. */
+ limit = 3980;
+ was_limited = 0;
+
+ /* If we are logging to a pipe we need to observe and
+ * obey the pipe atomic write limit - PIPE_BUF. For
+ * more details see the discussion in sec_guardian_logger code.
+ */
+ if (msr->txcfg->auditlog_name[0] == '|') {
+ if (PIPE_BUF < limit) {
+ limit = PIPE_BUF;
+ }
+ }
+
+ limit = limit - strlen(str2) - 5;
+ if (limit <= 0) {
+ msr_log(msr, 1, "Audit Log: Atomic PIPE write buffer too small: %d", PIPE_BUF);
+ return;
+ }
+
+ str1 = construct_log_vcombinedus_limited(msr, limit, &was_limited);
+ if (str1 == NULL) return;
+
+ if (was_limited == 0) {
+ text = apr_psprintf(msr->mp, "%s %s \n", str1, str2);
+ } else {
+ text = apr_psprintf(msr->mp, "%s %s L\n", str1, str2);
+ }
+ if (text == NULL) return;
+
+ nbytes = strlen(text);
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Audit Log: Writing %" APR_SIZE_T_FMT " bytes to primary concurrent index", nbytes);
+ }
+ apr_file_write_full(msr->txcfg->auditlog_fd, text, nbytes, &nbytes_written);
+
+ /* Write to the secondary audit log if we have one */
+ if (msr->txcfg->auditlog2_fd != NULL) {
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Audit Log: Writing %" APR_SIZE_T_FMT " bytes to secondary concurrent index", nbytes);
+ }
+ apr_file_write_full(msr->txcfg->auditlog2_fd, text, nbytes, &nbytes_written);
+ }
+}
--- /dev/null
+/*
+ * ModSecurity for Apache 2.x, http://www.modsecurity.org/
+ * Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
+ *
+ * This product is released under the terms of the General Public Licence,
+ * version 2 (GPLv2). Please refer to the file LICENSE (included with this
+ * distribution) which contains the complete text of the licence.
+ *
+ * There are special exceptions to the terms and conditions of the GPL
+ * as it is applied to this software. View the full text of the exception in
+ * file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
+ * distribution.
+ *
+ * If any of the files related to licensing are missing or if you have any
+ * other questions related to licensing please contact Breach Security, Inc.
+ * directly using the email address support@breach.com.
+ *
+ */
+#ifndef _MSC_LOGGING_H_
+#define _MSC_LOGGING_H_
+
+#define AUDITLOG_OFF 0
+#define AUDITLOG_ON 1
+#define AUDITLOG_RELEVANT 2
+
+#define AUDITLOG_SERIAL 0
+#define AUDITLOG_CONCURRENT 1
+
+#define AUDITLOG_PART_FIRST 'A'
+#define AUDITLOG_PART_HEADER 'A'
+#define AUDITLOG_PART_REQUEST_HEADERS 'B'
+#define AUDITLOG_PART_REQUEST_BODY 'C'
+#define AUDITLOG_PART_RESPONSE_HEADERS 'D'
+#define AUDITLOG_PART_RESPONSE_BODY 'E'
+#define AUDITLOG_PART_A_RESPONSE_HEADERS 'F'
+#define AUDITLOG_PART_A_RESPONSE_BODY 'G'
+#define AUDITLOG_PART_TRAILER 'H'
+#define AUDITLOG_PART_FAKE_REQUEST_BODY 'I'
+#define AUDITLOG_PART_UPLOADS 'J'
+#define AUDITLOG_PART_MATCHEDRULES 'K'
+#define AUDITLOG_PART_LAST 'K'
+#define AUDITLOG_PART_ENDMARKER 'Z'
+
+#include "modsecurity.h"
+
+int DSOLOCAL is_valid_parts_specification(char *p);
+
+char DSOLOCAL *construct_log_vcombinedus(modsec_rec *msr);
+
+char DSOLOCAL *construct_log_vcombinedus_limited(modsec_rec *msr, int _limit, int *was_limited);
+
+void DSOLOCAL sec_audit_logger(modsec_rec *msr);
+
+#endif
--- /dev/null
+/*
+ * ModSecurity for Apache 2.x, http://www.modsecurity.org/
+ * Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
+ *
+ * This product is released under the terms of the General Public Licence,
+ * version 2 (GPLv2). Please refer to the file LICENSE (included with this
+ * distribution) which contains the complete text of the licence.
+ *
+ * There are special exceptions to the terms and conditions of the GPL
+ * as it is applied to this software. View the full text of the exception in
+ * file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
+ * distribution.
+ *
+ * If any of the files related to licensing are missing or if you have any
+ * other questions related to licensing please contact Breach Security, Inc.
+ * directly using the email address support@breach.com.
+ *
+ */
+#if defined(WITH_LUA)
+
+#include "msc_lua.h"
+
+#include "apr_strings.h"
+
+typedef struct {
+ apr_array_header_t *parts;
+ apr_pool_t *pool;
+} msc_lua_dumpw_t;
+
+typedef struct {
+ msc_script *script;
+ int index;
+} msc_lua_dumpr_t;
+
+/**
+ *
+ */
+static const char* dump_reader(lua_State* L, void* user_data, size_t* size) {
+ msc_lua_dumpr_t *dumpr = (msc_lua_dumpr_t *)user_data;
+ msc_script_part *part;
+
+ /* Do we have more chunks to return? */
+ if (dumpr->index == dumpr->script->parts->nelts) {
+ return NULL;
+ }
+
+ /* Get one chunk. */
+ part = ((msc_script_part **)dumpr->script->parts->elts)[dumpr->index];
+ *size = part->len;
+
+ dumpr->index++;
+
+ return part->data;
+}
+
+/**
+ *
+ */
+static int dump_writer(lua_State *L, const void* data, size_t len, void* user_data) {
+ msc_lua_dumpw_t *dump = (msc_lua_dumpw_t *)user_data;
+ msc_script_part *part;
+ void *part_data;
+
+ /* Allocate new part, copy the data into it. */
+ part_data = apr_palloc(dump->pool, len);
+ memcpy(part_data, data, len);
+ part = apr_palloc(dump->pool, sizeof(msc_script_part));
+ part->data = part_data;
+ part->len = len;
+
+ /* Then add it to the list of parsts. */
+ *(const msc_script_part **)apr_array_push(dump->parts) = part;
+
+ return 0;
+}
+
+/**
+ *
+ */
+static int lua_restore(lua_State *L, msc_script *script) {
+ msc_lua_dumpr_t dumpr;
+
+ dumpr.script = script;
+ dumpr.index = 0;
+
+ return lua_load(L, dump_reader, &dumpr, script->name);
+}
+
+/**
+ *
+ */
+char *lua_compile(msc_script **script, const char *filename, apr_pool_t *pool) {
+ lua_State *L = NULL;
+ msc_lua_dumpw_t dump;
+
+ /* Initialise state. */
+ L = lua_open();
+ luaL_openlibs(L);
+
+ /* Find script. */
+ if (luaL_loadfile(L, filename)) {
+ return apr_psprintf(pool, "ModSecurity: Failed to compile script %s: %s",
+ filename, lua_tostring(L, -1));
+ }
+
+ /* Dump the script into binary form. */
+ dump.pool = pool;
+ dump.parts = apr_array_make(pool, 128, sizeof(msc_script_part *));
+
+ lua_dump(L, dump_writer, &dump);
+
+ (*script) = apr_pcalloc(pool, sizeof(msc_script));
+ (*script)->name = filename;
+ (*script)->parts = dump.parts;
+
+ /* Destroy state. */
+ lua_close(L);
+
+ return NULL;
+}
+
+/**
+ *
+ */
+static int l_log(lua_State *L) {
+ modsec_rec *msr = NULL;
+ const char *text;
+ int level;
+
+ /* Retrieve parameters. */
+ level = luaL_checknumber(L, 1);
+ text = luaL_checkstring(L, 2);
+
+ /* Retrieve msr. */
+ lua_getglobal(L, "__msr");
+ msr = (modsec_rec *)lua_topointer(L, -1);
+
+ /* Log message. */
+ if (msr != NULL) {
+ msr_log(msr, level, "%s", text);
+ }
+
+ return 0;
+}
+
+/**
+ *
+ */
+static apr_array_header_t *resolve_tfns(lua_State *L, int idx, modsec_rec *msr, apr_pool_t *mp) {
+ apr_array_header_t *tfn_arr = NULL;
+ msre_tfn_metadata *tfn = NULL;
+ char *name = NULL;
+
+ tfn_arr = apr_array_make(mp, 25, sizeof(msre_tfn_metadata *));
+ if (tfn_arr == NULL) return NULL;
+
+ /* ENH: Why is this userdata and not none/nil when parameter not given? */
+ if (lua_isuserdata(L, idx) || lua_isnoneornil(L, idx)) { /* No second parameter */
+ return tfn_arr;
+ } else if (lua_istable(L, idx)) { /* Is the second parameter an array? */
+ int i, n = lua_objlen(L, idx);
+
+ for(i = 1; i <= n; i++) {
+ lua_rawgeti(L, idx, i);
+ name = (char *)luaL_checkstring(L, -1);
+
+ /* A "none" means start over */
+ if (strcmp("none", name) == 0) {
+ tfn_arr->nelts = 0;
+ continue;
+ }
+
+ tfn = msre_engine_tfn_resolve(msr->modsecurity->msre, name);
+ if (tfn == NULL) {
+ msr_log(msr, 1, "SecRuleScript: Invalid transformation function: %s", name);
+ } else {
+ *(msre_tfn_metadata **)apr_array_push(tfn_arr) = tfn;
+ }
+ }
+ } else if (lua_isstring(L, idx)) { /* The second parameter may be a simple string? */
+ name = (char *)luaL_checkstring(L, idx);
+
+ /* A "none" means start over */
+ if (strcmp("none", name) == 0) {
+ tfn_arr->nelts = 0;
+ }
+ else {
+ tfn = msre_engine_tfn_resolve(msr->modsecurity->msre, name);
+ if (tfn == NULL) {
+ msr_log(msr, 1, "SecRuleScript: Invalid transformation function: %s", name);
+ } else {
+ *(msre_tfn_metadata **)apr_array_push(tfn_arr) = tfn;
+ }
+ }
+ } else {
+ msr_log(msr, 1, "SecRuleScript: Transformation parameter must be a transformation name or array of transformation names, but found \"%s\" (type %d).", lua_typename(L, idx), lua_type(L, idx));
+ return NULL;
+ }
+
+ return tfn_arr;
+}
+
+/**
+ *
+ */
+static int l_getvar(lua_State *L) {
+ char *varname = NULL, *param = NULL;
+ modsec_rec *msr = NULL;
+ msre_rule *rule = NULL;
+ char *my_error_msg = NULL;
+ char *p1 = NULL;
+ apr_array_header_t *tfn_arr = NULL;
+ msre_var *vx = NULL;
+ msre_var *var;
+
+ /* Retrieve parameters. */
+ p1 = (char *)luaL_checkstring(L, 1);
+
+ /* Retrieve msr. */
+ lua_getglobal(L, "__msr");
+ msr = (modsec_rec *)lua_topointer(L, -1);
+
+ /* Retrieve rule. */
+ lua_getglobal(L, "__rule");
+ rule = (msre_rule *)lua_topointer(L, -1);
+
+ /* Extract the variable name and its parameter from the script. */
+ varname = apr_pstrdup(msr->msc_rule_mptmp, p1);
+ param = strchr(varname, '.');
+ if (param != NULL) {
+ *param = '\0';
+ param++;
+ }
+
+ /* Resolve variable. */
+ var = msre_create_var_ex(msr->msc_rule_mptmp, msr->modsecurity->msre,
+ varname, param, msr, &my_error_msg);
+
+ if (var == NULL) {
+ msr_log(msr, 1, "%s", my_error_msg);
+
+ lua_pushnil(L);
+
+ return 0;
+ }
+
+ /* Resolve transformation functions. */
+ tfn_arr = resolve_tfns(L, 2, msr, msr->msc_rule_mptmp);
+
+ /* Generate variable. */
+ vx = generate_single_var(msr, var, tfn_arr, rule, msr->msc_rule_mptmp);
+ if (vx == NULL) {
+ lua_pushnil(L);
+
+ return 0;
+ }
+
+ /* Return variable value. */
+ lua_pushlstring(L, vx->value, vx->value_len);
+
+ return 1;
+}
+
+/**
+ *
+ */
+static int l_getvars(lua_State *L) {
+ const apr_array_header_t *tarr;
+ const apr_table_entry_t *telts;
+ apr_table_t *vartable = NULL;
+ apr_array_header_t *tfn_arr = NULL;
+ char *varname = NULL, *param = NULL;
+ modsec_rec *msr = NULL;
+ msre_rule *rule = NULL;
+ msre_var *vartemplate = NULL;
+ char *my_error_msg = NULL;
+ char *p1 = NULL;
+ int i;
+
+ /* Retrieve parameters. */
+ p1 = (char *)luaL_checkstring(L, 1);
+
+ /* Retrieve msr. */
+ lua_getglobal(L, "__msr");
+ msr = (modsec_rec *)lua_topointer(L, -1);
+
+ /* Retrieve rule. */
+ lua_getglobal(L, "__rule");
+ rule = (msre_rule *)lua_topointer(L, -1);
+
+ /* Extract the variable name and its parameter from the script. */
+ varname = apr_pstrdup(msr->msc_rule_mptmp, p1);
+ param = strchr(varname, '.');
+ if (param != NULL) {
+ *param = '\0';
+ param++;
+ }
+
+ /* Resolve transformation functions. */
+ tfn_arr = resolve_tfns(L, 2, msr, msr->msc_rule_mptmp);
+
+ lua_newtable(L);
+
+ /* Resolve variable. */
+ vartemplate = msre_create_var_ex(msr->msc_rule_mptmp, msr->modsecurity->msre,
+ varname, param, msr, &my_error_msg);
+
+ if (vartemplate == NULL) {
+ msr_log(msr, 1, "%s", my_error_msg);
+
+ /* Returning empty table. */
+ return 1;
+ }
+
+ vartable = generate_multi_var(msr, vartemplate, tfn_arr, rule, msr->msc_rule_mptmp);
+
+ tarr = apr_table_elts(vartable);
+ telts = (const apr_table_entry_t*)tarr->elts;
+ for (i = 0; i < tarr->nelts; i++) {
+ msre_var *var = (msre_var *)telts[i].val;
+
+ lua_pushnumber(L, i + 1); /* Index is not zero-based. */
+
+ lua_newtable(L); /* Per-parameter table. */
+
+ lua_pushstring(L, "name");
+ lua_pushlstring(L, var->name, strlen(var->name));
+ lua_settable(L, -3);
+
+ lua_pushstring(L, "value");
+ lua_pushlstring(L, var->value, var->value_len);
+ lua_settable(L, -3);
+
+ lua_settable(L, -3); /* Push one parameter into the results table. */
+ }
+
+ return 1;
+}
+
+static const struct luaL_Reg mylib[] = {
+ { "log", l_log },
+ { "getvar", l_getvar },
+ { "getvars", l_getvars },
+ { NULL, NULL }
+};
+
+/**
+ *
+ */
+int lua_execute(msc_script *script, char *param, modsec_rec *msr, msre_rule *rule, char **error_msg) {
+ apr_time_t time_before;
+ lua_State *L = NULL;
+ int rc;
+
+ if (error_msg == NULL) return -1;
+ *error_msg = NULL;
+
+ if (msr->txcfg->debuglog_level >= 8) {
+ msr_log(msr, 8, "Lua: Executing script: %s", script->name);
+ }
+
+ time_before = apr_time_now();
+
+ /* Create new state. */
+ L = lua_open();
+
+ luaL_openlibs(L);
+
+ /* Associate msr with the state. */
+ lua_pushlightuserdata(L, (void *)msr);
+ lua_setglobal(L, "__msr");
+
+ /* Associate rule with the state. */
+ if (rule != NULL) {
+ lua_pushlightuserdata(L, (void *)rule);
+ lua_setglobal(L, "__rule");
+ }
+
+ /* Register functions. */
+ luaL_register(L, "m", mylib);
+
+ rc = lua_restore(L, script);
+ if (rc) {
+ *error_msg = apr_psprintf(msr->mp, "Lua: Failed to restore script with %i.", rc);
+ return -1;
+ }
+
+ /* Execute the chunk so that the functions are defined. */
+ lua_pcall(L, 0, 0, 0);
+
+ /* Execute main() */
+ lua_getglobal(L, "main");
+
+ /* Put the parameter on the stack. */
+ if (param != NULL) {
+ lua_pushlstring(L, param, strlen(param));
+ }
+
+ if (lua_pcall(L, ((param != NULL) ? 1 : 0), 1, 0)) {
+ *error_msg = apr_psprintf(msr->mp, "Lua: Script execution failed: %s", lua_tostring(L, -1));
+ return -1;
+ }
+
+ /* Get the response from the script. */
+ *error_msg = (char *)lua_tostring(L, -1);
+ if (*error_msg != NULL) {
+ *error_msg = apr_pstrdup(msr->mp, *error_msg);
+ }
+
+ /* Destroy state. */
+ lua_pop(L, 1);
+ lua_close(L);
+
+ /* Returns status code to caller. */
+ if (msr->txcfg->debuglog_level >= 8) {
+ msr_log(msr, 8, "Lua: Script completed in %" APR_TIME_T_FMT " usec, returning: %s.",
+ (apr_time_now() - time_before), *error_msg);
+ }
+
+ return ((*error_msg != NULL) ? RULE_MATCH : RULE_NO_MATCH);
+}
+
+#endif /* WITH_LUA */
--- /dev/null
+/*
+ * ModSecurity for Apache 2.x, http://www.modsecurity.org/
+ * Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
+ *
+ * This product is released under the terms of the General Public Licence,
+ * version 2 (GPLv2). Please refer to the file LICENSE (included with this
+ * distribution) which contains the complete text of the licence.
+ *
+ * There are special exceptions to the terms and conditions of the GPL
+ * as it is applied to this software. View the full text of the exception in
+ * file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
+ * distribution.
+ *
+ * If any of the files related to licensing are missing or if you have any
+ * other questions related to licensing please contact Breach Security, Inc.
+ * directly using the email address support@breach.com.
+ *
+ */
+#if defined(WITH_LUA)
+
+#ifndef _MSC_LUA_H_
+#define _MSC_LUA_H_
+
+typedef struct msc_script msc_script;
+typedef struct msc_script_part msc_script_part;
+
+#include <lua.h>
+#include <lauxlib.h>
+#include <lualib.h>
+
+#include "apr_general.h"
+#include "apr_tables.h"
+#include "modsecurity.h"
+
+struct msc_script {
+ const char *name;
+ apr_array_header_t *parts;
+};
+
+struct msc_script_part {
+ const void *data;
+ size_t len;
+};
+
+char DSOLOCAL *lua_compile(msc_script **script, const char *filename, apr_pool_t *pool);
+
+int DSOLOCAL lua_execute(msc_script *script, char *param, modsec_rec *msr, msre_rule *rule, char **error_msg);
+
+#endif
+
+#endif /* WITH_LUA */
--- /dev/null
+/*
+ * ModSecurity for Apache 2.x, http://www.modsecurity.org/
+ * Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
+ *
+ * This product is released under the terms of the General Public Licence,
+ * version 2 (GPLv2). Please refer to the file LICENSE (included with this
+ * distribution) which contains the complete text of the licence.
+ *
+ * There are special exceptions to the terms and conditions of the GPL
+ * as it is applied to this software. View the full text of the exception in
+ * file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
+ * distribution.
+ *
+ * If any of the files related to licensing are missing or if you have any
+ * other questions related to licensing please contact Breach Security, Inc.
+ * directly using the email address support@breach.com.
+ *
+ */
+#include <ctype.h>
+#include <sys/stat.h>
+
+#include "mod_security2_config.h"
+#include "msc_multipart.h"
+#include "msc_util.h"
+#include "msc_parsers.h"
+
+
+#if 0
+static char *multipart_construct_filename(modsec_rec *msr) {
+ char c, *p, *q = msr->mpd->mpp->filename;
+ char *filename;
+
+ /* find the last backward slash and consider the
+ * filename to be only what's right from it
+ */
+ p = strrchr(q, '\\');
+ if (p != NULL) q = p + 1;
+
+ /* do the same for the forward slash */
+ p = strrchr(q, '/');
+ if (p != NULL) q = p + 1;
+
+ /* allow letters, digits and dots, replace
+ * everything else with underscores
+ */
+ p = filename = apr_pstrdup(msr->mp, q);
+ while((c = *p) != 0) {
+ if (!( isalnum(c) || (c == '.') )) *p = '_';
+ p++;
+ }
+
+ return filename;
+}
+#endif
+
+/**
+ *
+ */
+static int multipart_parse_content_disposition(modsec_rec *msr, char *c_d_value) {
+ char *p = NULL, *t = NULL;
+
+ /* accept only what we understand */
+ if (strncmp(c_d_value, "form-data", 9) != 0) {
+ return -1;
+ }
+
+ /* see if there are any other parts to parse */
+
+ p = c_d_value + 9;
+ while((*p == '\t') || (*p == ' ')) p++;
+ if (*p == '\0') return 1; /* this is OK */
+
+ if (*p != ';') return -2;
+ p++;
+
+ /* parse the appended parts */
+
+ while(*p != '\0') {
+ char *name = NULL, *value = NULL, *start = NULL;
+
+ /* go over the whitespace */
+ while((*p == '\t') || (*p == ' ')) p++;
+ if (*p == '\0') return -3;
+
+ start = p;
+ while((*p != '\0') && (*p != '=') && (*p != '\t') && (*p != ' ')) p++;
+ if (*p == '\0') return -4;
+
+ name = apr_pstrmemdup(msr->mp, start, (p - start));
+
+ while((*p == '\t') || (*p == ' ')) p++;
+ if (*p == '\0') return -5;
+
+ if (*p != '=') return -13;
+ p++;
+
+ while((*p == '\t') || (*p == ' ')) p++;
+ if (*p == '\0') return -6;
+
+ /* Accept both quotes as some backends will accept them, but
+ * technically "'" is invalid and so flag_invalid_quoting is
+ * set so the user can deal with it in the rules if they so wish.
+ */
+ if ((*p == '"') || (*p == '\'')) {
+ /* quoted */
+ char quote = *p;
+
+ if (quote == '\'') {
+ msr->mpd->flag_invalid_quoting = 1;
+ }
+
+ p++;
+ if (*p == '\0') return -7;
+
+ start = p;
+ value = apr_pstrdup(msr->mp, p);
+ t = value;
+
+ while(*p != '\0') {
+ if (*p == '\\') {
+ if (*(p + 1) == '\0') {
+ /* improper escaping */
+ return -8;
+ }
+ /* only quote and \ can be escaped */
+ if ((*(p + 1) == quote) || (*(p + 1) == '\\')) {
+ p++;
+ }
+ else {
+ /* improper escaping */
+
+ /* We allow for now because IE sends
+ * improperly escaped content and there's
+ * nothing we can do about it.
+ *
+ * return -9;
+ */
+ }
+ }
+ else if (*p == quote) {
+ *t = '\0';
+ break;
+ }
+
+ *(t++) = *(p++);
+ }
+ if (*p == '\0') return -10;
+
+ p++; /* go over the quote at the end */
+
+ } else {
+ /* not quoted */
+
+ start = p;
+ while((*p != '\0') && (is_token_char(*p))) p++;
+ value = apr_pstrmemdup(msr->mp, start, (p - start));
+ }
+
+ /* evaluate part */
+
+ if (strcmp(name, "name") == 0) {
+ if (msr->mpd->mpp->name != NULL) {
+ msr_log(msr, 4, "Multipart: Warning: Duplicate Content-Disposition name: %s",
+ log_escape_nq(msr->mp, value));
+ return -14;
+ }
+ msr->mpd->mpp->name = value;
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Multipart: Content-Disposition name: %s",
+ log_escape_nq(msr->mp, value));
+ }
+ }
+ else
+ if (strcmp(name, "filename") == 0) {
+ if (msr->mpd->mpp->filename != NULL) {
+ msr_log(msr, 4, "Multipart: Warning: Duplicate Content-Disposition filename: %s",
+ log_escape_nq(msr->mp, value));
+ return -15;
+ }
+ msr->mpd->mpp->filename = value;
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Multipart: Content-Disposition filename: %s",
+ log_escape_nq(msr->mp, value));
+ }
+ }
+ else return -11;
+
+ if (*p != '\0') {
+ while((*p == '\t') || (*p == ' ')) p++;
+ /* the next character must be a zero or a semi-colon */
+ if (*p == '\0') return 1; /* this is OK */
+ if (*p != ';') return -12;
+ p++; /* move over the semi-colon */
+ }
+
+ /* loop will stop when (*p == '\0') */
+ }
+
+ return 1;
+}
+
+/**
+ *
+ */
+static int multipart_process_part_header(modsec_rec *msr, char **error_msg) {
+ int i, len, rc;
+
+ if (error_msg == NULL) return -1;
+ *error_msg = NULL;
+
+ /* Check for nul bytes. */
+ len = MULTIPART_BUF_SIZE - msr->mpd->bufleft;
+ for(i = 0; i < len; i++) {
+ if (msr->mpd->buf[i] == '\0') {
+ *error_msg = apr_psprintf(msr->mp, "Multipart: Nul byte in part headers.");
+ return -1;
+ }
+ }
+
+ /* The buffer is data so increase the data length counter. */
+ msr->msc_reqbody_no_files_length += (MULTIPART_BUF_SIZE - msr->mpd->bufleft);
+
+ if (len > 1) {
+ if (msr->mpd->buf[len - 2] == '\r') {
+ msr->mpd->flag_crlf_line = 1;
+ } else {
+ msr->mpd->flag_lf_line = 1;
+ }
+ } else {
+ msr->mpd->flag_lf_line = 1;
+ }
+
+ /* Is this an empty line? */
+ if ( ((msr->mpd->buf[0] == '\r')
+ &&(msr->mpd->buf[1] == '\n')
+ &&(msr->mpd->buf[2] == '\0') )
+ || ((msr->mpd->buf[0] == '\n')
+ &&(msr->mpd->buf[1] == '\0') ) )
+ { /* Empty line. */
+ char *header_value = NULL;
+
+ header_value = (char *)apr_table_get(msr->mpd->mpp->headers, "Content-Disposition");
+ if (header_value == NULL) {
+ *error_msg = apr_psprintf(msr->mp, "Multipart: Part missing Content-Disposition header.");
+ return -1;
+ }
+
+ rc = multipart_parse_content_disposition(msr, header_value);
+ if (rc < 0) {
+ *error_msg = apr_psprintf(msr->mp, "Multipart: Invalid Content-Disposition header (%d): %s.",
+ rc, log_escape_nq(msr->mp, header_value));
+ return -1;
+ }
+
+ if (msr->mpd->mpp->name == NULL) {
+ *error_msg = apr_psprintf(msr->mp, "Multipart: Content-Disposition header missing name field.");
+ return -1;
+ }
+
+ if (msr->mpd->mpp->filename != NULL) {
+ /* Some parsers use crude methods to extract the name and filename
+ * values from the C-D header. We need to check for the case where they
+ * didn't understand C-D but we did.
+ */
+ if (strstr(header_value, "filename=") == NULL) {
+ *error_msg = apr_psprintf(msr->mp, "Multipart: Invalid Content-Disposition header (filename).");
+ return -1;
+ }
+
+ msr->mpd->mpp->type = MULTIPART_FILE;
+ } else {
+ msr->mpd->mpp->type = MULTIPART_FORMDATA;
+ }
+
+ msr->mpd->mpp_state = 1;
+ msr->mpd->mpp->last_header_name = NULL;
+ } else {
+ /* Header line. */
+
+ if ((msr->mpd->buf[0] == '\t') || (msr->mpd->buf[0] == ' ')) {
+ char *header_value, *new_value, *data;
+
+ /* header folding, add data to the header we are building */
+ msr->mpd->flag_header_folding = 1;
+
+ if (msr->mpd->mpp->last_header_name == NULL) {
+ /* we are not building a header at this moment */
+ *error_msg = apr_psprintf(msr->mp, "Multipart: Invalid part header (folding error).");
+ return -1;
+ }
+
+ /* locate the beginning of data */
+ data = msr->mpd->buf;
+ while((*data == '\t') || (*data == ' ')) data++;
+
+ new_value = apr_pstrdup(msr->mp, data);
+ remove_lf_crlf_inplace(new_value);
+
+ /* update the header value in the table */
+ header_value = (char *)apr_table_get(msr->mpd->mpp->headers, msr->mpd->mpp->last_header_name);
+ new_value = apr_pstrcat(msr->mp, header_value, " ", new_value, NULL);
+ apr_table_set(msr->mpd->mpp->headers, msr->mpd->mpp->last_header_name, new_value);
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Multipart: Continued folder header \"%s\" with \"%s\"",
+ log_escape(msr->mp, msr->mpd->mpp->last_header_name),
+ log_escape(msr->mp, data));
+ }
+
+ if (strlen(new_value) > MULTIPART_BUF_SIZE) {
+ *error_msg = apr_psprintf(msr->mp, "Multipart: Part header too long.");
+ return -1;
+ }
+ } else {
+ char *header_name, *header_value, *data;
+
+ /* new header */
+
+ data = msr->mpd->buf;
+ while((*data != ':') && (*data != '\0')) data++;
+ if (*data == '\0') {
+ *error_msg = apr_psprintf(msr->mp, "Multipart: Invalid part header (colon missing): %s.",
+ log_escape_nq(msr->mp, msr->mpd->buf));
+ return -1;
+ }
+
+ /* extract header name */
+ header_name = apr_pstrmemdup(msr->mp, msr->mpd->buf, (data - msr->mpd->buf));
+ if (data == msr->mpd->buf) {
+ *error_msg = apr_psprintf(msr->mp, "Multipart: Invalid part header (header name missing).");
+
+ return -1;
+ }
+
+ /* extract the value value */
+ data++;
+ while((*data == '\t') || (*data == ' ')) data++;
+ header_value = apr_pstrdup(msr->mp, data);
+ remove_lf_crlf_inplace(header_value);
+
+ /* error if the name already exists */
+ if (apr_table_get(msr->mpd->mpp->headers, header_name) != NULL) {
+ *error_msg = apr_psprintf(msr->mp, "Multipart: Duplicate part header: %s.",
+ log_escape_nq(msr->mp, header_name));
+ return -1;
+ }
+
+ apr_table_setn(msr->mpd->mpp->headers, header_name, header_value);
+ msr->mpd->mpp->last_header_name = header_name;
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Multipart: Added part header \"%s\" \"%s\"",
+ log_escape(msr->mp, header_name),
+ log_escape(msr->mp, header_value));
+ }
+ }
+ }
+
+ return 1;
+}
+
+/**
+ *
+ */
+static int multipart_process_part_data(modsec_rec *msr, char **error_msg) {
+ char *p = msr->mpd->buf + (MULTIPART_BUF_SIZE - msr->mpd->bufleft);
+ char localreserve[2] = { '\0', '\0' }; /* initialized to quiet warning */
+ int bytes_reserved = 0;
+
+ if (error_msg == NULL) return -1;
+ *error_msg = NULL;
+
+ /* Preserve some bytes for later. */
+ if ( ((MULTIPART_BUF_SIZE - msr->mpd->bufleft) >= 1)
+ && (*(p - 1) == '\n') )
+ {
+ if ( ((MULTIPART_BUF_SIZE - msr->mpd->bufleft) >= 2)
+ && (*(p - 2) == '\r') )
+ {
+ /* Two bytes. */
+ bytes_reserved = 2;
+ localreserve[0] = *(p - 2);
+ localreserve[1] = *(p - 1);
+ msr->mpd->bufleft += 2;
+ *(p - 2) = 0;
+ } else {
+ /* Only one byte. */
+ bytes_reserved = 1;
+ localreserve[0] = *(p - 1);
+ localreserve[1] = 0;
+ msr->mpd->bufleft += 1;
+ *(p - 1) = 0;
+ }
+ }
+
+ /* add data to the part we are building */
+ if (msr->mpd->mpp->type == MULTIPART_FILE) {
+
+ /* remember where we started */
+ if (msr->mpd->mpp->length == 0) {
+ msr->mpd->mpp->offset = msr->mpd->buf_offset;
+ }
+
+ /* only store individual files on disk if we are going
+ * to keep them or if we need to have them approved later
+ */
+ if (msr->upload_extract_files) {
+ /* first create a temporary file if we don't have it already */
+ if (msr->mpd->mpp->tmp_file_fd == 0) {
+ /* construct temporary file name */
+ msr->mpd->mpp->tmp_file_name = apr_psprintf(msr->mp, "%s/%s-%s-file-XXXXXX",
+ msr->txcfg->tmp_dir, current_filetime(msr->mp), msr->txid);
+ msr->mpd->mpp->tmp_file_fd = msc_mkstemp_ex(msr->mpd->mpp->tmp_file_name, msr->txcfg->upload_filemode);
+
+ /* do we have an opened file? */
+ if (msr->mpd->mpp->tmp_file_fd < 0) {
+ *error_msg = apr_psprintf(msr->mp, "Multipart: Failed to create file: %s",
+ log_escape_nq(msr->mp, msr->mpd->mpp->tmp_file_name));
+ return -1;
+ }
+
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Multipart: Created temporary file: %s",
+ log_escape_nq(msr->mp, msr->mpd->mpp->tmp_file_name));
+ }
+ }
+
+ /* write the reserve first */
+ if (msr->mpd->reserve[0] != 0) {
+ if (write(msr->mpd->mpp->tmp_file_fd, &msr->mpd->reserve[1], msr->mpd->reserve[0]) != msr->mpd->reserve[0]) {
+ *error_msg = apr_psprintf(msr->mp, "Multipart: writing to \"%s\" failed",
+ log_escape(msr->mp, msr->mpd->mpp->tmp_file_name));
+ return -1;
+ }
+
+ msr->mpd->mpp->tmp_file_size += msr->mpd->reserve[0];
+ msr->mpd->mpp->length += msr->mpd->reserve[0];
+ }
+
+ /* write data to the file */
+ if (write(msr->mpd->mpp->tmp_file_fd, msr->mpd->buf, MULTIPART_BUF_SIZE - msr->mpd->bufleft)
+ != (MULTIPART_BUF_SIZE - msr->mpd->bufleft))
+ {
+ *error_msg = apr_psprintf(msr->mp, "Multipart: writing to \"%s\" failed",
+ log_escape(msr->mp, msr->mpd->mpp->tmp_file_name));
+ return -1;
+ }
+
+ msr->mpd->mpp->tmp_file_size += (MULTIPART_BUF_SIZE - msr->mpd->bufleft);
+ msr->mpd->mpp->length += (MULTIPART_BUF_SIZE - msr->mpd->bufleft);
+ } else {
+ /* just keep track of the file size */
+ msr->mpd->mpp->tmp_file_size += (MULTIPART_BUF_SIZE - msr->mpd->bufleft) + msr->mpd->reserve[0];
+ msr->mpd->mpp->length += (MULTIPART_BUF_SIZE - msr->mpd->bufleft) + msr->mpd->reserve[0];
+ }
+ }
+ else if (msr->mpd->mpp->type == MULTIPART_FORMDATA) {
+ value_part_t *value_part = apr_pcalloc(msr->mp, sizeof(value_part_t));
+
+ /* The buffer contains data so increase the data length counter. */
+ msr->msc_reqbody_no_files_length += (MULTIPART_BUF_SIZE - msr->mpd->bufleft) + msr->mpd->reserve[0];
+
+ /* add this part to the list of parts */
+
+ /* remember where we started */
+ if (msr->mpd->mpp->length == 0) {
+ msr->mpd->mpp->offset = msr->mpd->buf_offset;
+ }
+
+ if (msr->mpd->reserve[0] != 0) {
+ value_part->data = apr_palloc(msr->mp, (MULTIPART_BUF_SIZE - msr->mpd->bufleft) + msr->mpd->reserve[0]);
+ memcpy(value_part->data, &(msr->mpd->reserve[1]), msr->mpd->reserve[0]);
+ memcpy(value_part->data + msr->mpd->reserve[0], msr->mpd->buf, (MULTIPART_BUF_SIZE - msr->mpd->bufleft));
+
+ value_part->length = (MULTIPART_BUF_SIZE - msr->mpd->bufleft) + msr->mpd->reserve[0];
+ msr->mpd->mpp->length += value_part->length;
+ } else {
+ value_part->length = (MULTIPART_BUF_SIZE - msr->mpd->bufleft);
+ value_part->data = apr_pstrmemdup(msr->mp, msr->mpd->buf, value_part->length);
+ msr->mpd->mpp->length += value_part->length;
+ }
+
+ *(value_part_t **)apr_array_push(msr->mpd->mpp->value_parts) = value_part;
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Multipart: Added data to variable: %s",
+ log_escape_nq_ex(msr->mp, value_part->data, value_part->length));
+ }
+ }
+ else {
+ *error_msg = apr_psprintf(msr->mp, "Multipart: unknown part type %d", msr->mpd->mpp->type);
+ return -1;
+ }
+
+ /* store the reserved bytes to the multipart
+ * context so that they don't get lost
+ */
+ if (bytes_reserved) {
+ msr->mpd->reserve[0] = bytes_reserved;
+ msr->mpd->reserve[1] = localreserve[0];
+ msr->mpd->reserve[2] = localreserve[1];
+ msr->mpd->buf_offset += bytes_reserved;
+ }
+ else {
+ msr->mpd->buf_offset -= msr->mpd->reserve[0];
+ msr->mpd->reserve[0] = 0;
+ }
+
+ return 1;
+}
+
+/**
+ *
+ */
+static char *multipart_combine_value_parts(modsec_rec *msr, apr_array_header_t *value_parts) {
+ value_part_t **parts = NULL;
+ char *rval = apr_palloc(msr->mp, msr->mpd->mpp->length + 1);
+ unsigned long int offset;
+ int i;
+
+ if (rval == NULL) return NULL;
+
+ offset = 0;
+ parts = (value_part_t **)value_parts->elts;
+ for(i = 0; i < value_parts->nelts; i++) {
+ if (offset + parts[i]->length <= msr->mpd->mpp->length) {
+ memcpy(rval + offset, parts[i]->data, parts[i]->length);
+ offset += parts[i]->length;
+ }
+ }
+ rval[offset] = '\0';
+
+ return rval;
+}
+
+/**
+ *
+ */
+static int multipart_process_boundary(modsec_rec *msr, int last_part, char **error_log) {
+ /* if there was a part being built finish it */
+ if (msr->mpd->mpp != NULL) {
+ /* close the temp file */
+ if ((msr->mpd->mpp->type == MULTIPART_FILE)
+ &&(msr->mpd->mpp->tmp_file_name != NULL)
+ &&(msr->mpd->mpp->tmp_file_fd != 0))
+ {
+ close(msr->mpd->mpp->tmp_file_fd);
+ }
+
+ if (msr->mpd->mpp->type != MULTIPART_FILE) {
+ /* now construct a single string out of the parts */
+ msr->mpd->mpp->value = multipart_combine_value_parts(msr, msr->mpd->mpp->value_parts);
+ if (msr->mpd->mpp->value == NULL) return -1;
+ }
+
+ if (msr->mpd->mpp->name) {
+ /* add the part to the list of parts */
+ *(multipart_part **)apr_array_push(msr->mpd->parts) = msr->mpd->mpp;
+ if (msr->mpd->mpp->type == MULTIPART_FILE) {
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Multipart: Added file part %pp to the list: name \"%s\" "
+ "file name \"%s\" (offset %u, length %u)",
+ msr->mpd->mpp, log_escape(msr->mp, msr->mpd->mpp->name),
+ log_escape(msr->mp, msr->mpd->mpp->filename),
+ msr->mpd->mpp->offset, msr->mpd->mpp->length);
+ }
+ }
+ else {
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Multipart: Added part %pp to the list: name \"%s\" "
+ "(offset %u, length %u)", msr->mpd->mpp, log_escape(msr->mp, msr->mpd->mpp->name),
+ msr->mpd->mpp->offset, msr->mpd->mpp->length);
+ }
+ }
+ }
+ else {
+ msr_log(msr, 3, "Multipart: Skipping invalid part %pp (part name missing): "
+ "(offset %u, length %u)", msr->mpd->mpp,
+ msr->mpd->mpp->offset, msr->mpd->mpp->length);
+ }
+
+ msr->mpd->mpp = NULL;
+ }
+
+ if (last_part == 0) {
+ /* start building a new part */
+ msr->mpd->mpp = (multipart_part *)apr_pcalloc(msr->mp, sizeof(multipart_part));
+ if (msr->mpd->mpp == NULL) return -1;
+ msr->mpd->mpp->type = MULTIPART_FORMDATA;
+ msr->mpd->mpp_state = 0;
+
+ msr->mpd->mpp->headers = apr_table_make(msr->mp, 10);
+ if (msr->mpd->mpp->headers == NULL) return -1;
+ msr->mpd->mpp->last_header_name = NULL;
+
+ msr->mpd->reserve[0] = 0;
+ msr->mpd->reserve[1] = 0;
+ msr->mpd->reserve[2] = 0;
+ msr->mpd->reserve[3] = 0;
+
+ msr->mpd->mpp->value_parts = apr_array_make(msr->mp, 10, sizeof(value_part_t *));
+ }
+
+ return 1;
+}
+
+static int multipart_boundary_characters_valid(char *boundary) {
+ unsigned char *p = (unsigned char *)boundary;
+ unsigned char c;
+
+ if (p == NULL) return -1;
+
+ while((c = *p) != '\0') {
+ /* Control characters and space not allowed. */
+ if (c < 32) {
+ return 0;
+ }
+
+ /* Non-ASCII characters not allowed. */
+ if (c > 126) {
+ return 0;
+ }
+
+ switch(c) {
+ /* Special characters not allowed. */
+ case '(' :
+ case ')' :
+ case '<' :
+ case '>' :
+ case '@' :
+ case ',' :
+ case ';' :
+ case ':' :
+ case '\\' :
+ case '"' :
+ case '/' :
+ case '[' :
+ case ']' :
+ case '?' :
+ case '=' :
+ return 0;
+ break;
+
+ default :
+ /* Do nothing. */
+ break;
+ }
+
+ p++;
+ }
+
+ return 1;
+}
+
+static int multipart_count_boundary_params(apr_pool_t *mp, const char *header_value) {
+ char *duplicate = NULL;
+ char *s = NULL;
+ int count = 0;
+
+ if (header_value == NULL) return -1;
+ duplicate = apr_pstrdup(mp, header_value);
+ if (duplicate == NULL) return -1;
+
+ /* Performing a case-insensitive search. */
+ strtolower_inplace((unsigned char *)duplicate);
+
+ s = duplicate;
+ while((s = strstr(s, "boundary")) != NULL) {
+ s += 8;
+
+ if (strchr(s, '=') != NULL) {
+ count++;
+ }
+ }
+
+ return count;
+}
+
+/**
+ *
+ */
+int multipart_init(modsec_rec *msr, char **error_msg) {
+ if (error_msg == NULL) return -1;
+ *error_msg = NULL;
+
+ msr->mpd = (multipart_data *)apr_pcalloc(msr->mp, sizeof(multipart_data));
+ if (msr->mpd == NULL) return -1;
+
+ msr->mpd->parts = apr_array_make(msr->mp, 10, sizeof(multipart_part *));
+ msr->mpd->bufleft = MULTIPART_BUF_SIZE;
+ msr->mpd->bufptr = msr->mpd->buf;
+ msr->mpd->buf_contains_line = 1;
+ msr->mpd->mpp = NULL;
+
+ if (msr->request_content_type == NULL) {
+ msr->mpd->flag_error = 1;
+ *error_msg = apr_psprintf(msr->mp, "Multipart: Content-Type header not available.");
+ return -1;
+ }
+
+ if (strlen(msr->request_content_type) > 1024) {
+ msr->mpd->flag_error = 1;
+ *error_msg = apr_psprintf(msr->mp, "Multipart: Invalid boundary in C-T (length).");
+ return -1;
+ }
+
+ if (strncasecmp(msr->request_content_type, "multipart/form-data", 19) != 0) {
+ msr->mpd->flag_error = 1;
+ *error_msg = apr_psprintf(msr->mp, "Multipart: Invalid MIME type.");
+ return -1;
+ }
+
+ /* Count how many times the word "boundary" appears in the C-T header. */
+ if (multipart_count_boundary_params(msr->mp, msr->request_content_type) > 1) {
+ msr->mpd->flag_error = 1;
+ *error_msg = apr_psprintf(msr->mp, "Multipart: Multiple boundary parameters in C-T.");
+ return -1;
+ }
+
+ msr->mpd->boundary = strstr(msr->request_content_type, "boundary");
+ if (msr->mpd->boundary != NULL) {
+ char *p = NULL;
+ char *b = NULL;
+ int seen_semicolon = 0;
+ int len = 0;
+
+ /* Check for extra characters before the boundary. */
+ for (p = (char *)(msr->request_content_type + 19); p < msr->mpd->boundary; p++) {
+ if (!isspace(*p)) {
+ if ((seen_semicolon == 0) && (*p == ';')) {
+ seen_semicolon = 1; /* It is OK to have one semicolon. */
+ } else {
+ msr->mpd->flag_error = 1;
+ *error_msg = apr_psprintf(msr->mp, "Multipart: Invalid boundary in C-T (malformed).");
+ return -1;
+ }
+ }
+ }
+
+ /* Have we seen the semicolon in the header? */
+ if (seen_semicolon == 0) {
+ msr->mpd->flag_missing_semicolon = 1;
+ }
+
+ b = strchr(msr->mpd->boundary + 8, '=');
+ if (b == NULL) {
+ msr->mpd->flag_error = 1;
+ *error_msg = apr_psprintf(msr->mp, "Multipart: Invalid boundary in C-T (malformed).");
+ return -1;
+ }
+
+ /* Check parameter name ends well. */
+ if (b != (msr->mpd->boundary + 8)) {
+ /* Check all characters between the end of the boundary
+ * and the = character.
+ */
+ for (p = msr->mpd->boundary + 8; p < b; p++) {
+ if (isspace(*p)) {
+ /* Flag for whitespace after parameter name. */
+ msr->mpd->flag_boundary_whitespace = 1;
+ } else {
+ msr->mpd->flag_error = 1;
+ *error_msg = apr_psprintf(msr->mp, "Multipart: Invalid boundary in C-T (parameter name).");
+ return -1;
+ }
+ }
+ }
+
+ b++; /* Go over the = character. */
+ len = strlen(b);
+
+ /* Flag for whitespace before parameter value. */
+ if (isspace(*b)) {
+ msr->mpd->flag_boundary_whitespace = 1;
+ }
+
+ /* Is the boundary quoted? */
+ if ((len >= 2) && (*b == '"') && (*(b + len - 1) == '"')) {
+ /* Quoted. */
+ msr->mpd->boundary = apr_pstrndup(msr->mp, b + 1, len - 2);
+ if (msr->mpd->boundary == NULL) return -1;
+ msr->mpd->flag_boundary_quoted = 1;
+ } else {
+ /* Not quoted. */
+
+ /* Test for partial quoting. */
+ if ( (*b == '"')
+ || ((len >= 2) && (*(b + len - 1) == '"')) )
+ {
+ msr->mpd->flag_error = 1;
+ *error_msg = apr_psprintf(msr->mp, "Multipart: Invalid boundary in C-T (quote).");
+ return -1;
+ }
+
+ msr->mpd->boundary = apr_pstrdup(msr->mp, b);
+ if (msr->mpd->boundary == NULL) return -1;
+ msr->mpd->flag_boundary_quoted = 0;
+ }
+
+ /* Case-insensitive test for the string "boundary" in the boundary. */
+ if (multipart_count_boundary_params(msr->mp, msr->mpd->boundary) != 0) {
+ msr->mpd->flag_error = 1;
+ *error_msg = apr_psprintf(msr->mp, "Multipart: Invalid boundary in C-T (content).");
+ return -1;
+ }
+
+ /* Validate the characters used in the boundary. */
+ if (multipart_boundary_characters_valid(msr->mpd->boundary) != 1) {
+ msr->mpd->flag_error = 1;
+ *error_msg = apr_psprintf(msr->mp, "Multipart: Invalid boundary in C-T (characters).");
+ return -1;
+ }
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Multipart: Boundary%s: %s",
+ (msr->mpd->flag_boundary_quoted ? " (quoted)" : ""),
+ log_escape_nq(msr->mp, msr->mpd->boundary));
+ }
+
+ if (strlen(msr->mpd->boundary) == 0) {
+ msr->mpd->flag_error = 1;
+ *error_msg = apr_psprintf(msr->mp, "Multipart: Invalid boundary in C-T (empty).");
+ return -1;
+ }
+ }
+ else { /* Could not find boundary in the C-T header. */
+ msr->mpd->flag_error = 1;
+
+ /* Test for case-insensitive boundary. Allowed by the RFC but highly unusual. */
+ if (multipart_count_boundary_params(msr->mp, msr->request_content_type) > 0) {
+ *error_msg = apr_psprintf(msr->mp, "Multipart: Invalid boundary in C-T (case sensitivity).");
+ return -1;
+ }
+
+ *error_msg = apr_psprintf(msr->mp, "Multipart: Boundary not found in C-T.");
+ return -1;
+ }
+
+ return 1;
+}
+
+/**
+ * Finalise multipart processing. This method is invoked at the end, when it
+ * is clear that there is no more data to be processed.
+ */
+int multipart_complete(modsec_rec *msr, char **error_msg) {
+ if (msr->mpd == NULL) return 1;
+
+ if (msr->txcfg->debuglog_level >= 4) {
+ if (msr->mpd->flag_data_before) {
+ msr_log(msr, 4, "Multipart: Warning: seen data before first boundary.");
+ }
+
+ if (msr->mpd->flag_data_after) {
+ msr_log(msr, 4, "Multipart: Warning: seen data after last boundary.");
+ }
+
+ if (msr->mpd->flag_boundary_quoted) {
+ msr_log(msr, 4, "Multipart: Warning: boundary was quoted.");
+ }
+
+ if (msr->mpd->flag_boundary_whitespace) {
+ msr_log(msr, 4, "Multipart: Warning: boundary whitespace in C-T header.");
+ }
+
+ if (msr->mpd->flag_header_folding) {
+ msr_log(msr, 4, "Multipart: Warning: header folding used.");
+ }
+
+ if (msr->mpd->flag_crlf_line && msr->mpd->flag_lf_line) {
+ msr_log(msr, 4, "Multipart: Warning: mixed line endings used (CRLF/LF).");
+ }
+ else if (msr->mpd->flag_lf_line) {
+ msr_log(msr, 4, "Multipart: Warning: incorrect line endings used (LF).");
+ }
+
+ if (msr->mpd->flag_missing_semicolon) {
+ msr_log(msr, 4, "Multipart: Warning: missing semicolon in C-T header.");
+ }
+ }
+
+ if ((msr->mpd->seen_data != 0) && (msr->mpd->is_complete == 0)) {
+ if (msr->mpd->boundary_count > 0) {
+ /* Check if we have the final boundary (that we haven't
+ * processed yet) in the buffer.
+ */
+ if (msr->mpd->buf_contains_line) {
+ if ( ((unsigned int)(MULTIPART_BUF_SIZE - msr->mpd->bufleft) == (4 + strlen(msr->mpd->boundary)))
+ && (*(msr->mpd->buf) == '-')
+ && (*(msr->mpd->buf + 1) == '-')
+ && (strncmp(msr->mpd->buf + 2, msr->mpd->boundary, strlen(msr->mpd->boundary)) == 0)
+ && (*(msr->mpd->buf + 2 + strlen(msr->mpd->boundary)) == '-')
+ && (*(msr->mpd->buf + 2 + strlen(msr->mpd->boundary) + 1) == '-') )
+ {
+ /* Looks like the final boundary - process it. */
+ if (multipart_process_boundary(msr, 1 /* final */, error_msg) < 0) {
+ msr->mpd->flag_error = 1;
+ return -1;
+ }
+
+ /* The payload is complete after all. */
+ msr->mpd->is_complete = 1;
+ }
+ }
+
+ if (msr->mpd->is_complete == 0) {
+ *error_msg = apr_psprintf(msr->mp, "Multipart: Final boundary missing.");
+ return -1;
+ }
+ } else {
+ *error_msg = apr_psprintf(msr->mp, "Multipart: No boundaries found in payload.");
+ return -1;
+ }
+ }
+
+ return 1;
+}
+
+/**
+ *
+ */
+int multipart_process_chunk(modsec_rec *msr, const char *buf,
+ unsigned int size, char **error_msg)
+{
+ char *inptr = (char *)buf;
+ unsigned int inleft = size;
+
+ if (error_msg == NULL) return -1;
+ *error_msg = NULL;
+
+ if (size == 0) return 1;
+
+ msr->mpd->seen_data = 1;
+
+ if (msr->mpd->is_complete) {
+ msr->mpd->flag_data_before = 1;
+
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Multipart: Ignoring data after last boundary (received %u bytes)", size);
+ }
+
+ return 1;
+ }
+
+ if (msr->mpd->bufleft == 0) {
+ msr->mpd->flag_error = 1;
+ *error_msg = apr_psprintf(msr->mp,
+ "Multipart: Internal error in process_chunk: no space left in the buffer");
+ return -1;
+ }
+
+ /* here we loop through the available data, one byte at a time */
+ while(inleft > 0) {
+ char c = *inptr;
+ int process_buffer = 0;
+
+ if ((c == '\r') && (msr->mpd->bufleft == 1)) {
+ /* we don't want to take \r as the last byte in the buffer */
+ process_buffer = 1;
+ } else {
+ inptr++;
+ inleft = inleft - 1;
+
+ *(msr->mpd->bufptr) = c;
+ msr->mpd->bufptr++;
+ msr->mpd->bufleft--;
+ }
+
+ /* until we either reach the end of the line
+ * or the end of our internal buffer
+ */
+ if ((c == '\n') || (msr->mpd->bufleft == 0) || (process_buffer)) {
+ int processed_as_boundary = 0;
+
+ *(msr->mpd->bufptr) = 0;
+
+ /* Do we have something that looks like a boundary? */
+ if ( msr->mpd->buf_contains_line
+ && (strlen(msr->mpd->buf) > 3)
+ && (*(msr->mpd->buf) == '-')
+ && (*(msr->mpd->buf + 1) == '-') )
+ {
+ /* Does it match our boundary? */
+ if ( (strlen(msr->mpd->buf) >= strlen(msr->mpd->boundary) + 2)
+ && (strncmp(msr->mpd->buf + 2, msr->mpd->boundary, strlen(msr->mpd->boundary)) == 0) )
+ {
+ char *boundary_end = msr->mpd->buf + 2 + strlen(msr->mpd->boundary);
+ int is_final = 0;
+
+ /* Is this the final boundary? */
+ if ((*boundary_end == '-') && (*(boundary_end + 1)== '-')) {
+ is_final = 1;
+ boundary_end += 2;
+
+ if (msr->mpd->is_complete != 0) {
+ msr->mpd->flag_error = 1;
+ *error_msg = apr_psprintf(msr->mp,
+ "Multipart: Invalid boundary (final duplicate).");
+ return -1;
+ }
+ }
+
+ /* Allow for CRLF and LF line endings. */
+ if ( ( (*boundary_end == '\r')
+ && (*(boundary_end + 1) == '\n')
+ && (*(boundary_end + 2) == '\0') )
+ || ( (*boundary_end == '\n')
+ && (*(boundary_end + 1) == '\0') ) )
+ {
+ if (*boundary_end == '\n') {
+ msr->mpd->flag_lf_line = 1;
+ } else {
+ msr->mpd->flag_crlf_line = 1;
+ }
+
+ if (multipart_process_boundary(msr, (is_final ? 1 : 0), error_msg) < 0) {
+ msr->mpd->flag_error = 1;
+ return -1;
+ }
+
+ if (is_final) {
+ msr->mpd->is_complete = 1;
+ }
+
+ processed_as_boundary = 1;
+ msr->mpd->boundary_count++;
+ }
+ else {
+ /* error */
+ msr->mpd->flag_error = 1;
+ *error_msg = apr_psprintf(msr->mp,
+ "Multipart: Invalid boundary: %s",
+ log_escape_nq(msr->mp, msr->mpd->buf));
+ return -1;
+ }
+ } else { /* It looks like a boundary but we couldn't match it. */
+ char *p = NULL;
+
+ /* Check if an attempt to use quotes around the boundary was made. */
+ if ( (msr->mpd->flag_boundary_quoted)
+ && (strlen(msr->mpd->buf) >= strlen(msr->mpd->boundary) + 3)
+ && (*(msr->mpd->buf + 2) == '"')
+ && (strncmp(msr->mpd->buf + 3, msr->mpd->boundary, strlen(msr->mpd->boundary)) == 0)
+ ) {
+ msr->mpd->flag_error = 1;
+ *error_msg = apr_psprintf(msr->mp, "Multipart: Invalid boundary (quotes).");
+ return -1;
+ }
+
+ /* Check the beginning of the boundary for whitespace. */
+ p = msr->mpd->buf + 2;
+ while(isspace(*p)) {
+ p++;
+ }
+
+ if ( (p != msr->mpd->buf + 2)
+ && (strncmp(p, msr->mpd->boundary, strlen(msr->mpd->boundary)) == 0)
+ ) {
+ /* Found whitespace in front of a boundary. */
+ msr->mpd->flag_error = 1;
+ *error_msg = apr_psprintf(msr->mp, "Multipart: Invalid boundary (whitespace).");
+ return -1;
+ }
+
+ msr->mpd->flag_unmatched_boundary = 1;
+ }
+ } else { /* We do not think the buffer contains a boundary. */
+ /* Look into the buffer to see if there's anything
+ * there that resembles a boundary.
+ */
+ if (msr->mpd->buf_contains_line) {
+ int i, len = (MULTIPART_BUF_SIZE - msr->mpd->bufleft);
+ char *p = msr->mpd->buf;
+
+ for(i = 0; i < len; i++) {
+ if ((p[i] == '-') && (i + 1 < len) && (p[i + 1] == '-'))
+ {
+ if (strncmp(p + i + 2, msr->mpd->boundary, strlen(msr->mpd->boundary)) == 0) {
+ msr->mpd->flag_unmatched_boundary = 1;
+ break;
+ }
+ }
+ }
+ }
+ }
+
+ /* Process as data if it was not a boundary. */
+ if (processed_as_boundary == 0) {
+ if (msr->mpd->mpp == NULL) {
+ msr->mpd->flag_data_before = 1;
+
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Multipart: Ignoring data before first boundary.");
+ }
+ } else {
+ if (msr->mpd->mpp_state == 0) {
+ if ((msr->mpd->bufleft == 0) || (process_buffer)) {
+ /* part header lines must be shorter than
+ * MULTIPART_BUF_SIZE bytes
+ */
+ msr->mpd->flag_error = 1;
+ *error_msg = apr_psprintf(msr->mp,
+ "Multipart: Part header line over %d bytes long",
+ MULTIPART_BUF_SIZE);
+ return -1;
+ }
+
+ if (multipart_process_part_header(msr, error_msg) < 0) {
+ msr->mpd->flag_error = 1;
+ return -1;
+ }
+ } else {
+ if (multipart_process_part_data(msr, error_msg) < 0) {
+ msr->mpd->flag_error = 1;
+ return -1;
+ }
+ }
+ }
+ }
+
+ /* Update the offset of the data we are about
+ * to process. This is to allow us to know the
+ * offsets of individual files and variables.
+ */
+ msr->mpd->buf_offset += (MULTIPART_BUF_SIZE - msr->mpd->bufleft);
+
+ /* reset the pointer to the beginning of the buffer
+ * and continue to accept input data
+ */
+ msr->mpd->bufptr = msr->mpd->buf;
+ msr->mpd->bufleft = MULTIPART_BUF_SIZE;
+ msr->mpd->buf_contains_line = (c == 0x0a) ? 1 : 0;
+ }
+
+ if ((msr->mpd->is_complete) && (inleft != 0)) {
+ msr->mpd->flag_data_after = 1;
+
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Multipart: Ignoring data after last boundary (%u bytes left)", inleft);
+ }
+
+ return 1;
+ }
+ }
+
+ return 1;
+}
+
+/**
+ *
+ */
+apr_status_t multipart_cleanup(modsec_rec *msr) {
+ int keep_files = 0;
+
+ if (msr->mpd == NULL) return -1;
+
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Multipart: Cleanup started (remove files %d).", msr->upload_remove_files);
+ }
+
+ if (msr->upload_remove_files == 0) {
+ if (msr->txcfg->upload_dir == NULL) {
+ msr_log(msr, 1, "Input filter: SecUploadDir is undefined, unable to store "
+ "multipart files.");
+ } else {
+ keep_files = 1;
+ }
+ }
+
+ /* Loop through the list of parts
+ * and delete the temporary files, but only if
+ * file storage was not requested, or if storage
+ * of relevant files was requested and this isn't
+ * such a request.
+ */
+ if (keep_files == 0) {
+ multipart_part **parts;
+ int i;
+
+ parts = (multipart_part **)msr->mpd->parts->elts;
+ for(i = 0; i < msr->mpd->parts->nelts; i++) {
+ if (parts[i]->type == MULTIPART_FILE) {
+ if (parts[i]->tmp_file_name != NULL) {
+ /* make sure it is closed first */
+ if (parts[i]->tmp_file_fd > 0) {
+ close(parts[i]->tmp_file_fd);
+ parts[i]->tmp_file_fd = -1;
+ }
+
+ if (unlink(parts[i]->tmp_file_name) < 0) {
+ msr_log(msr, 1, "Multipart: Failed to delete file (part) \"%s\" because %d(%s)",
+ log_escape(msr->mp, parts[i]->tmp_file_name), errno, strerror(errno));
+ } else {
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Multipart: Deleted file (part) \"%s\"",
+ log_escape(msr->mp, parts[i]->tmp_file_name));
+ }
+ }
+ }
+ }
+ }
+ } else {
+ /* delete empty files, move the others to the upload dir */
+ multipart_part **parts;
+ int i;
+
+ parts = (multipart_part **)msr->mpd->parts->elts;
+ for(i = 0; i < msr->mpd->parts->nelts; i++) {
+ if ( (parts[i]->type == MULTIPART_FILE)
+ && (parts[i]->tmp_file_size == 0))
+ {
+ /* Delete empty file. */
+ if (parts[i]->tmp_file_name != NULL) {
+ /* make sure it is closed first */
+ if (parts[i]->tmp_file_fd > 0) {
+ close(parts[i]->tmp_file_fd);
+ parts[i]->tmp_file_fd = -1;
+ }
+
+ if (unlink(parts[i]->tmp_file_name) < 0) {
+ msr_log(msr, 1, "Multipart: Failed to delete empty file (part) \"%s\" because %d(%s)",
+ log_escape(msr->mp, parts[i]->tmp_file_name), errno, strerror(errno));
+ } else {
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Multipart: Deleted empty file (part) \"%s\"",
+ log_escape(msr->mp, parts[i]->tmp_file_name));
+ }
+ }
+ }
+ } else {
+ /* Move file to the upload dir. */
+ if (parts[i]->tmp_file_name != NULL) {
+ const char *new_filename = NULL;
+ const char *new_basename = NULL;
+
+ /* make sure it is closed first */
+ if (parts[i]->tmp_file_fd > 0) {
+ close(parts[i]->tmp_file_fd);
+ parts[i]->tmp_file_fd = -1;
+ }
+
+ new_basename = file_basename(msr->mp, parts[i]->tmp_file_name);
+ if (new_basename == NULL) return -1;
+ new_filename = apr_psprintf(msr->mp, "%s/%s", msr->txcfg->upload_dir,
+ new_basename);
+ if (new_filename == NULL) return -1;
+
+ if (apr_file_rename(parts[i]->tmp_file_name, new_filename,
+ msr->msc_reqbody_mp) != APR_SUCCESS)
+ {
+ msr_log(msr, 1, "Input filter: Failed to rename file from \"%s\" to \"%s\".",
+ log_escape(msr->mp, parts[i]->tmp_file_name),
+ log_escape(msr->mp, new_filename));
+ return -1;
+ } else {
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Input filter: Moved file from \"%s\" to \"%s\".",
+ log_escape(msr->mp, parts[i]->tmp_file_name),
+ log_escape(msr->mp, new_filename));
+ }
+ }
+ }
+ }
+ }
+ }
+
+ return 1;
+}
+
+/**
+ *
+ */
+int multipart_get_arguments(modsec_rec *msr, char *origin, apr_table_t *arguments) {
+ multipart_part **parts;
+ int i;
+
+ parts = (multipart_part **)msr->mpd->parts->elts;
+ for(i = 0; i < msr->mpd->parts->nelts; i++) {
+ if (parts[i]->type == MULTIPART_FORMDATA) {
+ msc_arg *arg = (msc_arg *)apr_pcalloc(msr->mp, sizeof(msc_arg));
+ if (arg == NULL) return -1;
+
+ arg->name = parts[i]->name;
+ arg->name_len = strlen(parts[i]->name);
+ arg->value = parts[i]->value;
+ arg->value_len = parts[i]->length;
+ arg->value_origin_offset = parts[i]->offset;
+ arg->value_origin_len = parts[i]->length;
+ arg->origin = origin;
+
+ add_argument(msr, arguments, arg);
+ }
+ }
+
+ return 1;
+}
+
+/**
+ *
+ */
+char *multipart_reconstruct_urlencoded_body_sanitise(modsec_rec *msr) {
+ multipart_part **parts;
+ char *body;
+ unsigned int body_len;
+ int i;
+
+ if (msr->mpd == NULL) return NULL;
+
+ /* calculate the size of the buffer */
+ body_len = 1;
+ parts = (multipart_part **)msr->mpd->parts->elts;
+ for(i = 0; i < msr->mpd->parts->nelts; i++) {
+ if (parts[i]->type == MULTIPART_FORMDATA) {
+ body_len += 4;
+ body_len += strlen(parts[i]->name) * 3;
+ body_len += strlen(parts[i]->value) * 3;
+ }
+ }
+
+ /* allocate the buffer */
+ body = apr_palloc(msr->mp, body_len + 1);
+ if ((body == NULL) || (body_len + 1 == 0)) return NULL;
+ *body = 0;
+
+ parts = (multipart_part **)msr->mpd->parts->elts;
+ for(i = 0; i < msr->mpd->parts->nelts; i++) {
+ if (parts[i]->type == MULTIPART_FORMDATA) {
+ if (*body != 0) {
+ strncat(body, "&", body_len - strlen(body));
+ }
+ strnurlencat(body, parts[i]->name, body_len - strlen(body));
+ strncat(body, "=", body_len - strlen(body));
+
+ /* Sanitise the variable. Since we are only doing this for
+ * the logging we will actually write over the data we keep
+ * in the memory.
+ */
+ if (msr->phase >= PHASE_LOGGING) {
+ if (apr_table_get(msr->arguments_to_sanitise, parts[i]->name) != NULL) {
+ memset(parts[i]->value, '*', strlen(parts[i]->value));
+ }
+ }
+ strnurlencat(body, parts[i]->value, body_len - strlen(body));
+ }
+ }
+
+ return body;
+}
--- /dev/null
+/*
+ * ModSecurity for Apache 2.x, http://www.modsecurity.org/
+ * Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
+ *
+ * This product is released under the terms of the General Public Licence,
+ * version 2 (GPLv2). Please refer to the file LICENSE (included with this
+ * distribution) which contains the complete text of the licence.
+ *
+ * There are special exceptions to the terms and conditions of the GPL
+ * as it is applied to this software. View the full text of the exception in
+ * file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
+ * distribution.
+ *
+ * If any of the files related to licensing are missing or if you have any
+ * other questions related to licensing please contact Breach Security, Inc.
+ * directly using the email address support@breach.com.
+ *
+ */
+#ifndef _MSC_MULTIPART_H_
+#define _MSC_MULTIPART_H_
+
+#define MULTIPART_BUF_SIZE 4096
+
+#define MULTIPART_FORMDATA 1
+#define MULTIPART_FILE 2
+
+typedef struct multipart_part multipart_part;
+typedef struct multipart_data multipart_data;
+
+#include "apr_general.h"
+#include "apr_tables.h"
+#include "modsecurity.h"
+
+typedef struct value_part_t value_part_t;
+struct value_part_t {
+ char *data;
+ long int length;
+};
+
+struct multipart_part {
+ /* part type, can be MULTIPART_FORMDATA or MULTIPART_FILE */
+ int type;
+ /* the name */
+ char *name;
+
+ /* variables only, variable value */
+ char *value;
+ apr_array_header_t *value_parts;
+
+ /* files only, the content type (where available) */
+ char *content_type;
+
+ /* files only, the name of the temporary file holding data */
+ char *tmp_file_name;
+ int tmp_file_fd;
+ unsigned int tmp_file_size;
+ /* files only, filename as supplied by the browser */
+ char *filename;
+
+ char *last_header_name;
+ apr_table_t *headers;
+
+ unsigned int offset;
+ unsigned int length;
+};
+
+struct multipart_data {
+ /* this array keeps parts */
+ apr_array_header_t *parts;
+
+ /* mime boundary used to detect when
+ * parts end and begin
+ */
+ char *boundary;
+ int boundary_count;
+
+ /* internal buffer and other variables
+ * used while parsing
+ */
+ char buf[MULTIPART_BUF_SIZE + 2];
+ int buf_contains_line;
+ char *bufptr;
+ int bufleft;
+
+ unsigned int buf_offset;
+
+ /* pointer that keeps track of a part while
+ * it is being built
+ */
+ multipart_part *mpp;
+
+
+ /* part parsing state; 0 means we are reading
+ * headers, 1 means we are collecting data
+ */
+ int mpp_state;
+
+ /* because of the way this parsing algorithm
+ * works we hold back the last two bytes of
+ * each data chunk so that we can discard it
+ * later if the next data chunk proves to be
+ * a boundary; the first byte is an indicator
+ * 0 - no content, 1 - two data bytes available
+ */
+ char reserve[4];
+
+ int seen_data;
+ int is_complete;
+
+ int flag_error;
+ int flag_data_before;
+ int flag_data_after;
+ int flag_header_folding;
+ int flag_boundary_quoted;
+ int flag_lf_line;
+ int flag_crlf_line;
+ int flag_unmatched_boundary;
+ int flag_boundary_whitespace;
+ int flag_missing_semicolon;
+ int flag_invalid_quoting;
+};
+
+
+/* Functions */
+
+int DSOLOCAL multipart_init(modsec_rec *msr, char **error_msg);
+
+int DSOLOCAL multipart_complete(modsec_rec *msr, char **error_msg);
+
+int DSOLOCAL multipart_process_chunk(modsec_rec *msr, const char *buf,
+ unsigned int size, char **error_msg);
+
+apr_status_t DSOLOCAL multipart_cleanup(modsec_rec *msr);
+
+int DSOLOCAL multipart_get_arguments(modsec_rec *msr, char *origin, apr_table_t *arguments);
+
+char DSOLOCAL *multipart_reconstruct_urlencoded_body_sanitise(modsec_rec *msr);
+
+#endif
--- /dev/null
+/*
+ * ModSecurity for Apache 2.x, http://www.modsecurity.org/
+ * Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
+ *
+ * This product is released under the terms of the General Public Licence,
+ * version 2 (GPLv2). Please refer to the file LICENSE (included with this
+ * distribution) which contains the complete text of the licence.
+ *
+ * There are special exceptions to the terms and conditions of the GPL
+ * as it is applied to this software. View the full text of the exception in
+ * file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
+ * distribution.
+ *
+ * If any of the files related to licensing are missing or if you have any
+ * other questions related to licensing please contact Breach Security, Inc.
+ * directly using the email address support@breach.com.
+ *
+ */
+#include "msc_parsers.h"
+#include <ctype.h>
+
+/**
+ *
+ */
+int parse_cookies_v0(modsec_rec *msr, char *_cookie_header, apr_table_t *cookies) {
+ char *attr_name = NULL, *attr_value = NULL;
+ char *cookie_header;
+ char *saveptr = NULL;
+ int cookie_count = 0;
+ char *p = NULL;
+
+ if (_cookie_header == NULL) {
+ msr_log(msr, 1, "Cookie parser: Received null for argument.");
+ return -1;
+ }
+
+ cookie_header = strdup(_cookie_header);
+ if (cookie_header == NULL) return -1;
+
+ p = apr_strtok(cookie_header, ";", &saveptr);
+ while(p != NULL) {
+ attr_name = NULL;
+ attr_value = NULL;
+
+ /* ignore whitespace at the beginning of cookie name */
+ while(isspace(*p)) p++;
+ attr_name = p;
+
+ attr_value = strstr(p, "=");
+ if (attr_value != NULL) {
+ /* terminate cookie name */
+ *attr_value = 0;
+ /* move over to the beginning of the value */
+ attr_value++;
+ }
+
+ /* we ignore cookies with empty names */
+ if ((attr_name != NULL)&&(strlen(attr_name) != 0)) {
+ if (attr_value != NULL) {
+ if (msr->txcfg->debuglog_level >= 5) {
+ msr_log(msr, 5, "Adding request cookie: name \"%s\", value \"%s\"",
+ log_escape(msr->mp, attr_name), log_escape(msr->mp, attr_value));
+ }
+
+ apr_table_add(cookies, attr_name, attr_value);
+ } else {
+ if (msr->txcfg->debuglog_level >= 5) {
+ msr_log(msr, 5, "Adding request cookie: name \"%s\", value empty",
+ log_escape(msr->mp, attr_name));
+ }
+
+ apr_table_add(cookies, attr_name, "");
+ }
+
+ cookie_count++;
+ }
+
+ p = apr_strtok(NULL, ";", &saveptr);
+ }
+
+ free(cookie_header);
+ return cookie_count;
+}
+
+/**
+ *
+ */
+int parse_cookies_v1(modsec_rec *msr, char *_cookie_header, apr_table_t *cookies) {
+ char *attr_name = NULL, *attr_value = NULL, *p = NULL;
+ char *prev_attr_name = NULL;
+ char *cookie_header = NULL;
+ int cookie_count = 0;
+
+ if (_cookie_header == NULL) return -1;
+ cookie_header = strdup(_cookie_header);
+ if (cookie_header == NULL) return -1;
+
+ p = cookie_header;
+ while(*p != 0) {
+ attr_name = NULL;
+ attr_value = NULL;
+
+ /* attribute name */
+
+ /* remove space from the beginning */
+ while((isspace(*p))&&(*p != 0)) p++;
+ attr_name = p;
+ while((*p != 0)&&(*p != '=')&&(*p != ';')&&(*p != ',')) p++;
+
+ /* if we've reached the end of string */
+ if (*p == 0) goto add_cookie;
+
+ /* if there is no cookie value supplied */
+ if ((*p == ';')||(*p == ',')) {
+ *p++ = 0; /* terminate the name */
+ goto add_cookie;
+ }
+
+ /* terminate the attribute name,
+ * writing over the = character
+ */
+ *p++ = 0;
+
+ /* attribute value */
+
+ /* skip over the whitespace at the beginning */
+ while((isspace(*p))&&(*p != 0)) p++;
+
+ /* no value supplied */
+ if (*p == 0) goto add_cookie;
+
+ if (*p == '"') {
+ if (*++p == 0) goto add_cookie;
+ attr_value = p;
+ while((*p != 0)&&(*p != '"')) p++;
+ if (*p != 0) *p++ = 0;
+ else {
+ /* Do nothing about this. */
+ }
+ } else {
+ attr_value = p;
+ while((*p != 0)&&(*p != ',')&&(*p != ';')) p++;
+ if (*p != 0) *p++ = 0;
+
+ /* remove the whitespace from the end of cookie value */
+ if (attr_value != NULL) {
+ char *t = attr_value;
+ int i = 0;
+
+ while(*t != 0) {
+ t++;
+ i++;
+ }
+
+ while((i-- > 0)&&(isspace(*(--t)))) *t = 0;
+ }
+ }
+
+ add_cookie:
+
+ /* remove the whitespace from the end of cookie name */
+ if (attr_name != NULL) {
+ char *t = attr_name;
+ int i = 0;
+
+ while(*t != 0) {
+ t++;
+ i++;
+ }
+
+ while((i-- > 0)&&(isspace(*(--t)))) *t = 0;
+ }
+
+ /* add the cookie to the list now */
+ if ((attr_name != NULL)&&(strlen(attr_name) != 0)) {
+
+ /* handle special attribute names */
+ if (attr_name[0] == '$') {
+ if (prev_attr_name != NULL) {
+ /* cookie keyword, we change the name we use
+ * so they can have a unique name in the cookie table
+ */
+ attr_name = apr_psprintf(msr->mp, "$%s_%s", prev_attr_name, attr_name + 1);
+ }
+ }
+
+ if (attr_value != NULL) {
+ if (msr->txcfg->debuglog_level >= 5) {
+ msr_log(msr, 5, "Adding request cookie: name \"%s\", value \"%s\"",
+ log_escape(msr->mp, attr_name), log_escape(msr->mp, attr_value));
+ }
+
+ apr_table_add(cookies, attr_name, attr_value);
+ } else {
+ if (msr->txcfg->debuglog_level >= 5) {
+ msr_log(msr, 5, "Adding request cookie: name \"%s\", value empty",
+ log_escape(msr->mp, attr_name));
+ }
+
+ apr_table_add(cookies, attr_name, "");
+ }
+
+ cookie_count++;
+
+ /* only keep the cookie names for later */
+ if (attr_name[0] != '$') prev_attr_name = attr_name;
+ }
+
+ /* at this point the *p is either 0 (in which case we exit), or
+ * right after the current cookie ended - we need to look for
+ * the next cookie
+ */
+ while( (*p != 0)&&( (*p == ',')||(*p == ';')||(isspace(*p)) ) ) p++;
+ }
+
+ return cookie_count;
+}
+
+/**
+ *
+ */
+int parse_arguments(modsec_rec *msr, const char *s, apr_size_t inputlength,
+ int argument_separator, const char *origin,
+ apr_table_t *arguments, int *invalid_count)
+{
+ msc_arg *arg;
+ apr_size_t i, j;
+ char *value = NULL;
+ char *buf;
+ int status;
+ int changed;
+
+ if (s == NULL) return -1;
+ if (inputlength == 0) return 1;
+
+ /* Check that adding one will not overflow */
+ if (inputlength + 1 <= 0) return -1;
+
+ buf = (char *)malloc(inputlength + 1);
+ if (buf == NULL) return -1;
+
+ arg = (msc_arg *)apr_pcalloc(msr->mp, sizeof(msc_arg));
+ arg->origin = origin;
+
+ i = 0;
+ j = 0;
+ status = 0;
+ *invalid_count = 0;
+ while (i < inputlength) {
+ if (status == 0) {
+ /* parameter name */
+ arg->name_origin_offset = i;
+ while ((s[i] != '=') && (s[i] != argument_separator) && (i < inputlength)) {
+ buf[j] = s[i];
+ j++;
+ i++;
+ }
+ buf[j++] = '\0';
+ arg->name_origin_len = i - arg->name_origin_offset;
+ } else {
+ /* parameter value */
+ arg->value_origin_offset = i;
+ while ((s[i] != argument_separator) && (i < inputlength)) {
+ buf[j] = s[i];
+ j++;
+ i++;
+ }
+ buf[j++] = '\0';
+ arg->value_origin_len = i - arg->value_origin_offset;
+ }
+
+ if (status == 0) {
+ arg->name_len = urldecode_nonstrict_inplace_ex((unsigned char *)buf, arg->name_origin_len, invalid_count, &changed);
+ arg->name = apr_pstrmemdup(msr->mp, buf, arg->name_len);
+
+ if (s[i] == argument_separator) {
+ /* Empty parameter */
+ arg->value_len = 0;
+ arg->value = "";
+
+ add_argument(msr, arguments, arg);
+
+ arg = (msc_arg *)apr_pcalloc(msr->mp, sizeof(msc_arg));
+ arg->origin = origin;
+
+ status = 0; /* unchanged */
+ j = 0;
+ } else {
+ status = 1;
+ value = &buf[j];
+ }
+ }
+ else {
+ arg->value_len = urldecode_nonstrict_inplace_ex((unsigned char *)value, arg->value_origin_len, invalid_count, &changed);
+ arg->value = apr_pstrmemdup(msr->mp, value, arg->value_len);
+
+ add_argument(msr, arguments, arg);
+
+ arg = (msc_arg *)apr_pcalloc(msr->mp, sizeof(msc_arg));
+ arg->origin = origin;
+
+ status = 0;
+ j = 0;
+ }
+
+ i++; /* skip over the separator */
+ }
+
+ /* the last parameter was empty */
+ if (status == 1) {
+ arg->value_len = 0;
+ arg->value = "";
+
+ add_argument(msr, arguments, arg);
+ }
+
+ free(buf);
+
+ return 1;
+}
+
+/**
+ *
+ */
+void add_argument(modsec_rec *msr, apr_table_t *arguments, msc_arg *arg) {
+ if (msr->txcfg->debuglog_level >= 5) {
+ msr_log(msr, 5, "Adding request argument (%s): name \"%s\", value \"%s\"",
+ arg->origin, log_escape_ex(msr->mp, arg->name, arg->name_len),
+ log_escape_ex(msr->mp, arg->value, arg->value_len));
+ }
+
+ apr_table_addn(arguments, log_escape_nq_ex(msr->mp, arg->name, arg->name_len), (void *)arg);
+}
+
--- /dev/null
+/*
+ * ModSecurity for Apache 2.x, http://www.modsecurity.org/
+ * Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
+ *
+ * This product is released under the terms of the General Public Licence,
+ * version 2 (GPLv2). Please refer to the file LICENSE (included with this
+ * distribution) which contains the complete text of the licence.
+ *
+ * There are special exceptions to the terms and conditions of the GPL
+ * as it is applied to this software. View the full text of the exception in
+ * file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
+ * distribution.
+ *
+ * If any of the files related to licensing are missing or if you have any
+ * other questions related to licensing please contact Breach Security, Inc.
+ * directly using the email address support@breach.com.
+ *
+ */
+#ifndef _MSC_PARSERS_H_
+#define _MSC_PARSERS_H_
+
+#include "modsecurity.h"
+
+int DSOLOCAL parse_cookies_v0(modsec_rec *msr, char *_cookie_header, apr_table_t *cookies);
+
+int DSOLOCAL parse_cookies_v1(modsec_rec *msr, char *_cookie_header, apr_table_t *cookies);
+
+int DSOLOCAL parse_arguments(modsec_rec *msr, const char *s, apr_size_t inputlength,
+ int argument_separator, const char *origin, apr_table_t *arguments, int *invalid_count);
+
+void DSOLOCAL add_argument(modsec_rec *msr, apr_table_t *arguments, msc_arg *arg);
+
+#endif
--- /dev/null
+/*
+ * ModSecurity for Apache 2.x, http://www.modsecurity.org/
+ * Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
+ *
+ * This product is released under the terms of the General Public Licence,
+ * version 2 (GPLv2). Please refer to the file LICENSE (included with this
+ * distribution) which contains the complete text of the licence.
+ *
+ * There are special exceptions to the terms and conditions of the GPL
+ * as it is applied to this software. View the full text of the exception in
+ * file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
+ * distribution.
+ *
+ * If any of the files related to licensing are missing or if you have any
+ * other questions related to licensing please contact Breach Security, Inc.
+ * directly using the email address support@breach.com.
+ *
+ */
+#include "msc_pcre.h"
+#include "apr_strings.h"
+
+/**
+ * Releases the resources used by a single regular expression pattern.
+ */
+apr_status_t msc_pcre_cleanup(msc_regex_t *regex) {
+ if (regex != NULL) {
+ if (regex->pe != NULL) {
+ free(regex->pe);
+ regex->pe = NULL;
+ }
+ if (regex->re != NULL) {
+ free(regex->re);
+ regex->re = NULL;
+ }
+ }
+
+ return APR_SUCCESS;
+}
+
+/**
+ * Compiles the provided regular expression pattern. The last two
+ * parameters are optional, but if they are provided and an error
+ * occurs they will contain the error message and the offset in
+ * the pattern where the offending part of the pattern begins.
+ */
+void *msc_pregcomp(apr_pool_t *pool, const char *pattern, int options,
+ const char **_errptr, int *_erroffset)
+{
+ const char *errptr = NULL;
+ int erroffset;
+ msc_regex_t *regex;
+
+ regex = apr_pcalloc(pool, sizeof(msc_regex_t));
+ if (regex == NULL) return NULL;
+ regex->pattern = pattern;
+
+ if ((_errptr == NULL)||(_erroffset == NULL)) {
+ regex->re = pcre_compile(pattern, options, &errptr, &erroffset, NULL);
+ } else {
+ regex->re = pcre_compile(pattern, options, _errptr, _erroffset, NULL);
+ }
+ if (regex->re == NULL) return NULL;
+
+ #ifdef WITH_PCRE_STUDY
+ regex->pe = pcre_study(regex->re, 0, &errptr);
+ #endif
+
+ apr_pool_cleanup_register(pool, (void *)regex,
+ (apr_status_t (*)(void *))msc_pcre_cleanup, apr_pool_cleanup_null);
+
+ return regex;
+}
+
+/**
+ * Executes regular expression with extended options.
+ * Returns PCRE_ERROR_NOMATCH when there is no match, error code < -1
+ * on errors, and a value > 0 when there is a match.
+ */
+int msc_regexec_ex(msc_regex_t *regex, const char *s, unsigned int slen,
+ int startoffset, int options, int *ovector, int ovecsize, char **error_msg)
+{
+ if (error_msg == NULL) return -1000; /* To differentiate from PCRE as it already uses -1. */
+ *error_msg = NULL;
+
+ return pcre_exec(regex->re, regex->pe, s, slen, startoffset, options, ovector, ovecsize);
+}
+
+/**
+ * Executes regular expression, capturing subexpressions in the given
+ * vector. Returns PCRE_ERROR_NOMATCH when there is no match, error code < -1
+ * on errors, and a value > 0 when there is a match.
+ */
+int msc_regexec_capture(msc_regex_t *regex, const char *s, unsigned int slen,
+ int *ovector, int ovecsize, char **error_msg)
+{
+ if (error_msg == NULL) return -1000; /* To differentiate from PCRE as it already uses -1. */
+ *error_msg = NULL;
+
+ return msc_regexec_ex(regex, s, slen, 0, 0, ovector, ovecsize, error_msg);
+}
+
+/**
+ * Executes regular expression but ignores any of the subexpression
+ * captures. See above for the return codes.
+ */
+int msc_regexec(msc_regex_t *regex, const char *s, unsigned int slen,
+ char **error_msg)
+{
+ if (error_msg == NULL) return -1000; /* To differentiate from PCRE as it already uses -1. */
+ *error_msg = NULL;
+
+ return msc_regexec_ex(regex, s, slen, 0, 0, NULL, 0, error_msg);
+}
+
+/**
+ * Gets info on a compiled regex.
+ */
+int msc_fullinfo(msc_regex_t *regex, int what, void *where)
+{
+ return pcre_fullinfo(regex->re, regex->pe, what, where);
+}
--- /dev/null
+/*
+ * ModSecurity for Apache 2.x, http://www.modsecurity.org/
+ * Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
+ *
+ * This product is released under the terms of the General Public Licence,
+ * version 2 (GPLv2). Please refer to the file LICENSE (included with this
+ * distribution) which contains the complete text of the licence.
+ *
+ * There are special exceptions to the terms and conditions of the GPL
+ * as it is applied to this software. View the full text of the exception in
+ * file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
+ * distribution.
+ *
+ * If any of the files related to licensing are missing or if you have any
+ * other questions related to licensing please contact Breach Security, Inc.
+ * directly using the email address support@breach.com.
+ *
+ */
+#ifndef _MSC_PCRE_H_
+#define _MSC_PCRE_H_
+
+typedef struct msc_regex_t msc_regex_t;
+
+#include "pcre.h"
+#include "apr_general.h"
+#include "modsecurity.h"
+
+struct msc_regex_t {
+ void *re;
+ void *pe;
+ const char *pattern;
+};
+
+apr_status_t DSOLOCAL msc_pcre_cleanup(msc_regex_t *regex);
+
+void DSOLOCAL *msc_pregcomp(apr_pool_t *pool, const char *pattern, int options,
+ const char **_errptr, int *_erroffset);
+
+int DSOLOCAL msc_regexec_ex(msc_regex_t *regex, const char *s, unsigned int slen,
+ int startoffset, int options, int *ovector, int ovecsize, char **error_msg);
+
+int DSOLOCAL msc_regexec_capture(msc_regex_t *regex, const char *s,
+ unsigned int slen, int *ovector, int ovecsize, char **error_msg);
+
+int DSOLOCAL msc_regexec(msc_regex_t *regex, const char *s, unsigned int slen,
+ char **error_msg);
+
+int DSOLOCAL msc_fullinfo(msc_regex_t *regex, int what, void *where);
+
+#endif
--- /dev/null
+/*
+ * ModSecurity for Apache 2.x, http://www.modsecurity.org/
+ * Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
+ *
+ * This product is released under the terms of the General Public Licence,
+ * version 2 (GPLv2). Please refer to the file LICENSE (included with this
+ * distribution) which contains the complete text of the licence.
+ *
+ * There are special exceptions to the terms and conditions of the GPL
+ * as it is applied to this software. View the full text of the exception in
+ * file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
+ * distribution.
+ *
+ * If any of the files related to licensing are missing or if you have any
+ * other questions related to licensing please contact Breach Security, Inc.
+ * directly using the email address support@breach.com.
+ *
+ */
+
+#include "msc_release.h"
+
+modsec_build_type_rec modsec_build_type[] = {
+ { "-dev", 1 }, /* Development build */
+ { "-rc", 3 }, /* Release Candidate build */
+ { "", 9 }, /* Production build */
+ { "-breach", 9 }, /* Breach build */
+ { "-trunk", 9 }, /* Trunk build */
+ { NULL, -1 } /* terminator */
+};
+
+int get_modsec_build_type(const char *name)
+{
+ int i;
+
+ for (i = 0; modsec_build_type[i].name != NULL; i++) {
+ if (strcmp(((name == NULL) ? MODSEC_VERSION_TYPE : name), modsec_build_type[i].name) == 0) {
+ return modsec_build_type[i].val;
+ }
+ }
+
+ return 9; /* so no warning */
+}
--- /dev/null
+/*
+ * ModSecurity for Apache 2.x, http://www.modsecurity.org/
+ * Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
+ *
+ * This product is released under the terms of the General Public Licence,
+ * version 2 (GPLv2). Please refer to the file LICENSE (included with this
+ * distribution) which contains the complete text of the licence.
+ *
+ * There are special exceptions to the terms and conditions of the GPL
+ * as it is applied to this software. View the full text of the exception in
+ * file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
+ * distribution.
+ *
+ * If any of the files related to licensing are missing or if you have any
+ * other questions related to licensing please contact Breach Security, Inc.
+ * directly using the email address support@breach.com.
+ *
+ */
+#ifndef _MSC_RELEASE_H_
+#define _MSC_RELEASE_H_
+
+#include <stdlib.h>
+#include <string.h>
+
+/* ENH: Clean this mess up by detecting this is possible */
+#if !(defined(_AIX) || defined(WIN32) || defined(CYGWIN) || defined(NETWARE) || defined(SOLARIS2) || defined(OSF1))
+#define DSOLOCAL __attribute__((visibility("hidden")))
+#else
+#define DSOLOCAL
+#endif
+
+#if defined(DEBUG_MEM)
+/* Nothing Yet */
+#endif
+
+/* For GNU C, tell the compiler to check printf like formatters */
+#if (defined(__GNUC__) && !defined(SOLARIS2))
+#define PRINTF_ATTRIBUTE(a,b) __attribute__((format (printf, a, b)))
+#else
+#define PRINTF_ATTRIBUTE(a,b)
+#endif
+
+typedef struct modsec_build_type_rec {
+ const char * name;
+ int val;
+} modsec_build_type_rec;
+extern DSOLOCAL modsec_build_type_rec modsec_build_type[];
+
+#define MODSEC_VERSION_MAJOR "2"
+#define MODSEC_VERSION_MINOR "5"
+#define MODSEC_VERSION_MAINT "11"
+#define MODSEC_VERSION_TYPE ""
+#define MODSEC_VERSION_RELEASE ""
+
+#define MODSEC_VERSION_SUFFIX MODSEC_VERSION_TYPE MODSEC_VERSION_RELEASE
+
+#define MODSEC_VERSION \
+ MODSEC_VERSION_MAJOR "." MODSEC_VERSION_MINOR "." MODSEC_VERSION_MAINT \
+ MODSEC_VERSION_SUFFIX
+
+/* Apache Module Defines */
+#define MODSEC_MODULE_NAME "ModSecurity for Apache"
+#define MODSEC_MODULE_VERSION MODSEC_VERSION
+#define MODSEC_MODULE_NAME_FULL MODSEC_MODULE_NAME "/" MODSEC_MODULE_VERSION " (http://www.modsecurity.org/)"
+
+int DSOLOCAL get_modsec_build_type(const char *name);
+
+#endif /* _MSC_RELEASE_H_ */
--- /dev/null
+/*
+ * ModSecurity for Apache 2.x, http://www.modsecurity.org/
+ * Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
+ *
+ * This product is released under the terms of the General Public Licence,
+ * version 2 (GPLv2). Please refer to the file LICENSE (included with this
+ * distribution) which contains the complete text of the licence.
+ *
+ * There are special exceptions to the terms and conditions of the GPL
+ * as it is applied to this software. View the full text of the exception in
+ * file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
+ * distribution.
+ *
+ * If any of the files related to licensing are missing or if you have any
+ * other questions related to licensing please contact Breach Security, Inc.
+ * directly using the email address support@breach.com.
+ *
+ */
+#include "modsecurity.h"
+#include "msc_parsers.h"
+
+#define CHUNK_CAPACITY 8192
+
+/**
+ * Prepare to accept the request body (part 2).
+ */
+static apr_status_t modsecurity_request_body_start_init(modsec_rec *msr, char **error_msg) {
+ *error_msg = NULL;
+
+ if(msr->msc_reqbody_storage == MSC_REQBODY_MEMORY) {
+ /* Prepare to store request body in memory. */
+
+ msr->msc_reqbody_chunks = apr_array_make(msr->msc_reqbody_mp,
+ 32, sizeof(msc_data_chunk *));
+ if (msr->msc_reqbody_chunks == NULL) {
+ *error_msg = apr_pstrdup(msr->mp, "Input filter: Failed to prepare in-memory storage.");
+ return -1;
+ }
+ } else {
+ /* Prepare to store request body on disk. */
+
+ msr->msc_reqbody_filename = apr_psprintf(msr->mp, "%s/%s-%s-request_body-XXXXXX",
+ msr->txcfg->tmp_dir, current_filetime(msr->mp), msr->txid);
+ if (msr->msc_reqbody_filename == NULL) {
+ *error_msg = apr_pstrdup(msr->mp, "Input filter: Failed to generate an on-disk filename.");
+ return -1;
+ }
+
+ msr->msc_reqbody_fd = msc_mkstemp((char *)msr->msc_reqbody_filename);
+ if (msr->msc_reqbody_fd < 0) {
+ *error_msg = apr_psprintf(msr->mp, "Input filter: Failed to create temporary file: %s",
+ msr->msc_reqbody_filename);
+ return -1;
+ }
+
+ msr_log(msr, 4, "Input filter: Created temporary file to store request body: %s",
+ msr->msc_reqbody_filename);
+ }
+
+ return 1;
+}
+
+/**
+ * Prepare to accept the request body (part 1).
+ */
+apr_status_t modsecurity_request_body_start(modsec_rec *msr, char **error_msg) {
+ *error_msg = NULL;
+ msr->msc_reqbody_length = 0;
+
+ /* Create a separate memory pool that will be used
+ * to allocate structures from (not data, which is allocated
+ * via malloc).
+ */
+ apr_pool_create(&msr->msc_reqbody_mp, NULL);
+
+ /* Initialise request body processors, if any. */
+
+ if (msr->msc_reqbody_processor != NULL) {
+ char *my_error_msg = NULL;
+
+ if (strcmp(msr->msc_reqbody_processor, "MULTIPART") == 0) {
+ if (multipart_init(msr, &my_error_msg) < 0) {
+ *error_msg = apr_psprintf(msr->mp, "Multipart parsing error (init): %s", my_error_msg);
+ msr->msc_reqbody_error = 1;
+ msr->msc_reqbody_error_msg = my_error_msg;
+ msr_log(msr, 2, "%s", *error_msg);
+ }
+ }
+ else
+ if (strcmp(msr->msc_reqbody_processor, "XML") == 0) {
+ if (xml_init(msr, &my_error_msg) < 0) {
+ *error_msg = apr_psprintf(msr->mp, "XML parsing error (init): %s", my_error_msg);
+ msr->msc_reqbody_error = 1;
+ msr->msc_reqbody_error_msg = my_error_msg;
+ msr_log(msr, 2, "%s", *error_msg);
+ }
+ }
+ else
+ if (strcmp(msr->msc_reqbody_processor, "URLENCODED") == 0) {
+ /* Do nothing, URLENCODED processor does not support streaming yet. */
+ }
+ else {
+ *error_msg = apr_psprintf(msr->mp, "Unknown request body processor: %s",
+ msr->msc_reqbody_processor);
+ return -1;
+ }
+ }
+
+ return modsecurity_request_body_start_init(msr, error_msg);
+}
+
+/**
+ * Stores a chunk of request body data to disk.
+ */
+static apr_status_t modsecurity_request_body_store_disk(modsec_rec *msr,
+ const char *data, apr_size_t length, char **error_msg)
+{
+ apr_size_t i;
+
+ *error_msg = NULL;
+
+ i = write(msr->msc_reqbody_fd, data, length);
+ if (i != length) {
+ *error_msg = apr_psprintf(msr->mp, "Input filter: Failed writing %" APR_SIZE_T_FMT
+ " bytes to temporary file (rc %" APR_SIZE_T_FMT ").", length, i);
+ return -1;
+ }
+
+ return 1;
+}
+
+/**
+ * Stores one chunk of request body data in memory.
+ */
+static apr_status_t modsecurity_request_body_store_memory(modsec_rec *msr,
+ const char *data, apr_size_t length, char **error_msg)
+{
+ *error_msg = NULL;
+
+ /* Would storing this chunk mean going over the limit? */
+ if ((msr->msc_reqbody_spilltodisk)
+ && (msr->msc_reqbody_length + length > (apr_size_t)msr->txcfg->reqbody_inmemory_limit))
+ {
+ msc_data_chunk **chunks;
+ unsigned int disklen = 0;
+ int i;
+
+ msr_log(msr, 4, "Input filter: Request too large to store in memory, switching to disk.");
+
+ /* NOTE Must use modsecurity_request_body_store_disk() here
+ * to prevent data to be sent to the streaming
+ * processors again.
+ */
+
+ /* Initialise disk storage */
+ msr->msc_reqbody_storage = MSC_REQBODY_DISK;
+ if (modsecurity_request_body_start_init(msr, error_msg) < 0) return -1;
+
+ /* Write the data we keep in memory */
+ chunks = (msc_data_chunk **)msr->msc_reqbody_chunks->elts;
+ for(i = 0; i < msr->msc_reqbody_chunks->nelts; i++) {
+ disklen += chunks[i]->length;
+
+ if (modsecurity_request_body_store_disk(msr, chunks[i]->data, chunks[i]->length, error_msg) < 0) {
+ return -1;
+ }
+
+ free(chunks[i]->data);
+ chunks[i]->data = NULL;
+ }
+
+ /* Clear the memory pool as we no longer need the bits. */
+
+ /* IMP1 But since we only used apr_pool_clear memory might
+ * not be released back to the OS straight away?
+ */
+ msr->msc_reqbody_chunks = NULL;
+ apr_pool_clear(msr->msc_reqbody_mp);
+
+ msr_log(msr, 4, "Input filter: Wrote %u bytes from memory to disk.", disklen);
+
+ /* Continue with disk storage from now on */
+ return modsecurity_request_body_store_disk(msr, data, length, error_msg);
+ }
+
+ /* If we're here that means we are not over the
+ * request body in-memory limit yet.
+ */
+ {
+ unsigned long int bucket_offset, bucket_left;
+
+ bucket_offset = 0;
+ bucket_left = length;
+
+ /* Although we store the request body in chunks we don't
+ * want to use the same chunk sizes as the incoming memory
+ * buffers. They are often of very small sizes and that
+ * would make us waste a lot of memory. That's why we
+ * use our own chunks of CHUNK_CAPACITY sizes.
+ */
+
+ /* Loop until we empty this bucket into our chunks. */
+ while(bucket_left > 0) {
+ /* Allocate a new chunk if we have to. */
+ if (msr->msc_reqbody_chunk_current == NULL) {
+ msr->msc_reqbody_chunk_current = (msc_data_chunk *)
+ apr_pcalloc(msr->msc_reqbody_mp, sizeof(msc_data_chunk));
+ if (msr->msc_reqbody_chunk_current == NULL) {
+ *error_msg = apr_psprintf(msr->mp, "Input filter: Failed to allocate %lu bytes "
+ "for request body chunk.", (unsigned long)sizeof(msc_data_chunk));
+ return -1;
+ }
+
+ msr->msc_reqbody_chunk_current->data = malloc(CHUNK_CAPACITY);
+ if (msr->msc_reqbody_chunk_current->data == NULL) {
+ *error_msg = apr_psprintf(msr->mp, "Input filter: Failed to allocate %d bytes "
+ "for request body chunk data.", CHUNK_CAPACITY);
+ return -1;
+ }
+
+ msr->msc_reqbody_chunk_current->length = 0;
+ msr->msc_reqbody_chunk_current->is_permanent = 1;
+
+ *(const msc_data_chunk **)apr_array_push(msr->msc_reqbody_chunks)
+ = msr->msc_reqbody_chunk_current;
+ }
+
+ if (bucket_left < (CHUNK_CAPACITY - msr->msc_reqbody_chunk_current->length)) {
+ /* There's enough space in the current chunk. */
+ memcpy(msr->msc_reqbody_chunk_current->data +
+ msr->msc_reqbody_chunk_current->length, data + bucket_offset, bucket_left);
+ msr->msc_reqbody_chunk_current->length += bucket_left;
+ bucket_left = 0;
+ } else {
+ /* Fill the existing chunk. */
+ unsigned long int copy_length = CHUNK_CAPACITY -
+ msr->msc_reqbody_chunk_current->length;
+
+ memcpy(msr->msc_reqbody_chunk_current->data +
+ msr->msc_reqbody_chunk_current->length, data + bucket_offset, copy_length);
+ bucket_offset += copy_length;
+ bucket_left -= copy_length;
+ msr->msc_reqbody_chunk_current->length += copy_length;
+
+ /* We're done with this chunk. Setting the pointer
+ * to NULL is going to force a new chunk to be allocated
+ * on the next go.
+ */
+ msr->msc_reqbody_chunk_current = NULL;
+ }
+ }
+
+ msr->msc_reqbody_length += length;
+ }
+
+ return 1;
+}
+
+/**
+ * Stores one chunk of request body data. Returns -1 on error.
+ */
+apr_status_t modsecurity_request_body_store(modsec_rec *msr,
+ const char *data, apr_size_t length, char **error_msg)
+{
+ *error_msg = NULL;
+
+ /* If we have a processor for this request body send
+ * data to it first (but only if it did not report an
+ * error on previous invocations).
+ */
+ if ((msr->msc_reqbody_processor != NULL)&&(msr->msc_reqbody_error == 0)) {
+ char *my_error_msg = NULL;
+
+ if (strcmp(msr->msc_reqbody_processor, "MULTIPART") == 0) {
+ /* The per-request data length counter will
+ * be updated by the multipart parser.
+ */
+
+ /* Process data as multipart/form-data. */
+ if (multipart_process_chunk(msr, data, length, &my_error_msg) < 0) {
+ *error_msg = apr_psprintf(msr->mp, "Multipart parsing error: %s", my_error_msg);
+ msr->msc_reqbody_error = 1;
+ msr->msc_reqbody_error_msg = *error_msg;
+ msr_log(msr, 2, "%s", *error_msg);
+ }
+ }
+ else
+ if (strcmp(msr->msc_reqbody_processor, "XML") == 0) {
+ /* Increase per-request data length counter. */
+ msr->msc_reqbody_no_files_length += length;
+
+ /* Process data as XML. */
+ if (xml_process_chunk(msr, data, length, &my_error_msg) < 0) {
+ *error_msg = apr_psprintf(msr->mp, "XML parsing error: %s", my_error_msg);
+ msr->msc_reqbody_error = 1;
+ msr->msc_reqbody_error_msg = *error_msg;
+ msr_log(msr, 2, "%s", *error_msg);
+ }
+ }
+ else
+ if (strcmp(msr->msc_reqbody_processor, "URLENCODED") == 0) {
+ /* Increase per-request data length counter. */
+ msr->msc_reqbody_no_files_length += length;
+
+ /* Do nothing else, URLENCODED processor does not support streaming. */
+ }
+ else {
+ *error_msg = apr_psprintf(msr->mp, "Unknown request body processor: %s",
+ msr->msc_reqbody_processor);
+ return -1;
+ }
+ } else if (msr->txcfg->reqbody_buffering != REQUEST_BODY_FORCEBUF_OFF) {
+ /* Increase per-request data length counter if forcing buffering. */
+ msr->msc_reqbody_no_files_length += length;
+ }
+
+ /* Check that we are not over the request body no files limit. */
+ if (msr->msc_reqbody_no_files_length >= (unsigned long) msr->txcfg->reqbody_no_files_limit) {
+ return -5;
+ }
+
+ /* Store data. */
+ if (msr->msc_reqbody_storage == MSC_REQBODY_MEMORY) {
+ return modsecurity_request_body_store_memory(msr, data, length, error_msg);
+ }
+ else
+ if (msr->msc_reqbody_storage == MSC_REQBODY_DISK) {
+ return modsecurity_request_body_store_disk(msr, data, length, error_msg);
+ }
+
+ /* Should never happen. */
+ *error_msg = apr_psprintf(msr->mp, "Internal error, unknown value for msc_reqbody_storage: %u",
+ msr->msc_reqbody_storage);
+ return -1;
+}
+
+/**
+ * Replace a bunch of chunks holding a request body with a single large chunk.
+ */
+static apr_status_t modsecurity_request_body_end_raw(modsec_rec *msr, char **error_msg) {
+ msc_data_chunk **chunks, *one_chunk;
+ char *d;
+ int i, sofar;
+
+ *error_msg = NULL;
+
+ /* Allocate a buffer large enough to hold the request body. */
+
+ if (msr->msc_reqbody_length + 1 == 0) {
+ *error_msg = apr_psprintf(msr->mp, "Internal error, request body length will overflow: %u",
+ msr->msc_reqbody_length);
+ return -1;
+ }
+
+ msr->msc_reqbody_buffer = malloc(msr->msc_reqbody_length + 1);
+ if (msr->msc_reqbody_buffer == NULL) {
+ *error_msg = apr_psprintf(msr->mp, "Unable to allocate memory to hold request body. Asked for %u bytes.",
+ msr->msc_reqbody_length + 1);
+ return -1;
+ }
+
+ msr->msc_reqbody_buffer[msr->msc_reqbody_length] = '\0';
+
+ /* Copy the data we keep in chunks into the new buffer. */
+
+ sofar = 0;
+ d = msr->msc_reqbody_buffer;
+ chunks = (msc_data_chunk **)msr->msc_reqbody_chunks->elts;
+ for(i = 0; i < msr->msc_reqbody_chunks->nelts; i++) {
+ if (sofar + chunks[i]->length <= msr->msc_reqbody_length) {
+ memcpy(d, chunks[i]->data, chunks[i]->length);
+ d += chunks[i]->length;
+ sofar += chunks[i]->length;
+ } else {
+ *error_msg = apr_psprintf(msr->mp, "Internal error, request body buffer overflow.");
+ return -1;
+ }
+ }
+
+ /* Now free the memory used by the chunks. */
+
+ chunks = (msc_data_chunk **)msr->msc_reqbody_chunks->elts;
+ for(i = 0; i < msr->msc_reqbody_chunks->nelts; i++) {
+ free(chunks[i]->data);
+ chunks[i]->data = NULL;
+ }
+
+ /* Create a new array with only one chunk in it. */
+
+ msr->msc_reqbody_chunks = apr_array_make(msr->msc_reqbody_mp, 2, sizeof(msc_data_chunk *));
+ if (msr->msc_reqbody_chunks == NULL) {
+ *error_msg = apr_pstrdup(msr->mp, "Failed to create structure to hold request body.");
+ return -1;
+ }
+
+ one_chunk = (msc_data_chunk *)apr_pcalloc(msr->msc_reqbody_mp, sizeof(msc_data_chunk));
+ one_chunk->data = msr->msc_reqbody_buffer;
+ one_chunk->length = msr->msc_reqbody_length;
+ one_chunk->is_permanent = 1;
+ *(const msc_data_chunk **)apr_array_push(msr->msc_reqbody_chunks) = one_chunk;
+
+ return 1;
+}
+
+/**
+ *
+ */
+static apr_status_t modsecurity_request_body_end_urlencoded(modsec_rec *msr, char **error_msg) {
+ int invalid_count = 0;
+
+ *error_msg = NULL;
+
+ /* Create the raw buffer */
+ if (modsecurity_request_body_end_raw(msr, error_msg) != 1) {
+ return -1;
+ }
+
+ /* Parse URL-encoded arguments in the request body. */
+
+ if (parse_arguments(msr, msr->msc_reqbody_buffer, msr->msc_reqbody_length,
+ msr->txcfg->argument_separator, "BODY", msr->arguments, &invalid_count) < 0)
+ {
+ *error_msg = apr_pstrdup(msr->mp, "Initialisation: Error occurred while parsing BODY arguments.");
+ return -1;
+ }
+
+ return 1;
+}
+
+/**
+ * Stops receiving the request body.
+ */
+apr_status_t modsecurity_request_body_end(modsec_rec *msr, char **error_msg) {
+ *error_msg = NULL;
+
+ /* Close open file descriptors, if any. */
+ if (msr->msc_reqbody_storage == MSC_REQBODY_DISK) {
+ if (msr->msc_reqbody_fd > 0) {
+ close(msr->msc_reqbody_fd);
+ msr->msc_reqbody_fd = -1;
+ }
+ }
+
+ /* Note that we've read the body. */
+ msr->msc_reqbody_read = 1;
+
+ /* Finalise body processing. */
+ if ((msr->msc_reqbody_processor != NULL)&&(msr->msc_reqbody_error == 0)) {
+ char *my_error_msg = NULL;
+
+ if (strcmp(msr->msc_reqbody_processor, "MULTIPART") == 0) {
+ if (multipart_complete(msr, &my_error_msg) < 0) {
+ *error_msg = apr_psprintf(msr->mp, "Multipart parsing error: %s", my_error_msg);
+ msr->msc_reqbody_error = 1;
+ msr->msc_reqbody_error_msg = *error_msg;
+ msr_log(msr, 2, "%s", *error_msg);
+ return -1;
+ }
+
+ if (multipart_get_arguments(msr, "BODY", msr->arguments) < 0) {
+ *error_msg = "Multipart parsing error: Failed to retrieve arguments.";
+ msr->msc_reqbody_error = 1;
+ msr->msc_reqbody_error_msg = *error_msg;
+ msr_log(msr, 2, "%s", *error_msg);
+ return -1;
+ }
+ }
+ else
+ if (strcmp(msr->msc_reqbody_processor, "URLENCODED") == 0) {
+ return modsecurity_request_body_end_urlencoded(msr, error_msg);
+ }
+ else
+ if (strcmp(msr->msc_reqbody_processor, "XML") == 0) {
+ if (xml_complete(msr, &my_error_msg) < 0) {
+ *error_msg = apr_psprintf(msr->mp, "XML parser error: %s", my_error_msg);
+ msr->msc_reqbody_error = 1;
+ msr->msc_reqbody_error_msg = *error_msg;
+ msr_log(msr, 2, "%s", *error_msg);
+ return -1;
+ }
+ }
+ } else if (msr->txcfg->reqbody_buffering != REQUEST_BODY_FORCEBUF_OFF) {
+ /* Convert to a single continous buffer, but don't do anything else. */
+ return modsecurity_request_body_end_raw(msr, error_msg);
+ }
+
+ /* Note the request body no files length. */
+ msr_log(msr, 4, "Reqest body no files length: %" APR_SIZE_T_FMT, msr->msc_reqbody_no_files_length);
+
+ return 1;
+}
+
+/**
+ * Prepares to forward the request body.
+ */
+apr_status_t modsecurity_request_body_retrieve_start(modsec_rec *msr, char **error_msg) {
+ *error_msg = NULL;
+
+ if (msr->msc_reqbody_storage == MSC_REQBODY_MEMORY) {
+ msr->msc_reqbody_chunk_position = 0;
+ msr->msc_reqbody_chunk_offset = 0;
+
+ msr->msc_reqbody_disk_chunk = apr_pcalloc(msr->msc_reqbody_mp, sizeof(msc_data_chunk));
+ if (msr->msc_reqbody_disk_chunk == NULL) {
+ *error_msg = apr_psprintf(msr->mp, "Failed to allocate %lu bytes for request body disk chunk.",
+ (unsigned long)sizeof(msc_data_chunk));
+ return -1;
+ }
+ msr->msc_reqbody_disk_chunk->is_permanent = 1;
+ }
+ else
+ if (msr->msc_reqbody_storage == MSC_REQBODY_DISK) {
+ msr->msc_reqbody_disk_chunk = apr_pcalloc(msr->msc_reqbody_mp, sizeof(msc_data_chunk));
+ if (msr->msc_reqbody_disk_chunk == NULL) {
+ *error_msg = apr_psprintf(msr->mp, "Failed to allocate %lu bytes for request body disk chunk.",
+ (unsigned long)sizeof(msc_data_chunk));
+ return -1;
+ }
+
+ msr->msc_reqbody_disk_chunk->is_permanent = 0;
+ msr->msc_reqbody_disk_chunk->data = apr_palloc(msr->msc_reqbody_mp, CHUNK_CAPACITY);
+ if (msr->msc_reqbody_disk_chunk->data == NULL) {
+ *error_msg = apr_psprintf(msr->mp, "Failed to allocate %d bytes for request body disk chunk data.",
+ CHUNK_CAPACITY);
+ return -1;
+ }
+
+ msr->msc_reqbody_fd = open(msr->msc_reqbody_filename, O_RDONLY | O_BINARY);
+ if (msr->msc_reqbody_fd < 0) {
+ *error_msg = apr_psprintf(msr->mp, "Failed to open temporary file for reading: %s",
+ msr->msc_reqbody_filename);
+ return -1;
+ }
+ }
+
+ return 1;
+}
+
+/**
+ *
+ */
+apr_status_t modsecurity_request_body_retrieve_end(modsec_rec *msr) {
+ if (msr->msc_reqbody_storage == MSC_REQBODY_DISK) {
+ if (msr->msc_reqbody_fd > 0) {
+ close(msr->msc_reqbody_fd);
+ msr->msc_reqbody_fd = -1;
+ }
+ }
+
+ return 1;
+}
+
+/**
+ * Returns one chunk of request body data. It stores a NULL
+ * in the chunk pointer when there is no data to return. The
+ * return code is 1 if more calls can be made to retrieve more
+ * data, 0 if there is no more data to retrieve, or -1 on error.
+ *
+ * The caller can limit the amount of data returned by providing
+ * a non-negative value in nbytes.
+ */
+apr_status_t modsecurity_request_body_retrieve(modsec_rec *msr,
+ msc_data_chunk **chunk, long int nbytes, char **error_msg)
+{
+ msc_data_chunk **chunks;
+
+ *error_msg = NULL;
+
+ if (chunk == NULL) {
+ *error_msg = apr_pstrdup(msr->mp, "Internal error, retrieving request body chunk.");
+ return -1;
+ }
+ *chunk = NULL;
+
+ if (msr->msc_reqbody_storage == MSC_REQBODY_MEMORY) {
+ /* Are there any chunks left? */
+ if (msr->msc_reqbody_chunk_position >= msr->msc_reqbody_chunks->nelts) {
+ /* No more chunks. */
+ return 0;
+ }
+
+ /* We always respond with the same chunk, just different information in it. */
+ *chunk = msr->msc_reqbody_disk_chunk;
+
+ /* Advance to the current chunk and position on the
+ * next byte we need to send.
+ */
+ chunks = (msc_data_chunk **)msr->msc_reqbody_chunks->elts;
+ msr->msc_reqbody_disk_chunk->data = chunks[msr->msc_reqbody_chunk_position]->data
+ + msr->msc_reqbody_chunk_offset;
+
+ if (nbytes < 0) {
+ /* Send what's left in this chunk as there is no limit on the size. */
+ msr->msc_reqbody_disk_chunk->length = chunks[msr->msc_reqbody_chunk_position]->length;
+ msr->msc_reqbody_chunk_position++;
+ msr->msc_reqbody_chunk_offset = 0;
+ } else {
+ /* We have a limit we must obey. */
+
+ if (chunks[msr->msc_reqbody_chunk_position]->length -
+ msr->msc_reqbody_chunk_offset <= (unsigned int)nbytes)
+ {
+ /* If what's left in our chunk is less than the limit
+ * then send it all back.
+ */
+ msr->msc_reqbody_disk_chunk->length =
+ chunks[msr->msc_reqbody_chunk_position]->length -
+ msr->msc_reqbody_chunk_offset;
+ msr->msc_reqbody_chunk_position++;
+ msr->msc_reqbody_chunk_offset = 0;
+ } else {
+ /* If we have more data in our chunk, send the
+ * maximum bytes we can (nbytes).
+ */
+ msr->msc_reqbody_disk_chunk->length = nbytes;
+ msr->msc_reqbody_chunk_offset += nbytes;
+ }
+ }
+
+ /* If we've advanced beyond our last chunk then
+ * we have no more data to send.
+ */
+ if (msr->msc_reqbody_chunk_position >= msr->msc_reqbody_chunks->nelts) {
+ return 0; /* No more chunks. */
+ }
+
+ /* More data available. */
+ return 1;
+ }
+
+ if (msr->msc_reqbody_storage == MSC_REQBODY_DISK) {
+ long int my_nbytes = CHUNK_CAPACITY;
+ int i;
+
+ /* Send CHUNK_CAPACITY bytes at a time unless a lower limit was requested. */
+ if ((nbytes != -1)&&(my_nbytes > nbytes)) {
+ my_nbytes = nbytes;
+ }
+
+ i = read(msr->msc_reqbody_fd, msr->msc_reqbody_disk_chunk->data, my_nbytes);
+ if (i < 0) {
+ *error_msg = apr_psprintf(msr->mp, "Input filter: Error reading from temporary file: %s",
+ strerror(errno));
+ return -1;
+ }
+
+ *chunk = msr->msc_reqbody_disk_chunk;
+ msr->msc_reqbody_disk_chunk->length = i;
+
+ if (i == 0) return 0; /* No more data available. */
+
+ return 1; /* More data available. */
+ }
+
+ /* Should never happen. */
+ *error_msg = apr_psprintf(msr->mp, "Internal error, invalid msc_reqbody_storage value: %u",
+ msr->msc_reqbody_storage);
+
+ return -1;
+}
+
+/**
+ *
+ */
+apr_status_t modsecurity_request_body_clear(modsec_rec *msr, char **error_msg) {
+ *error_msg = NULL;
+
+ /* Release memory we used to store request body data. */
+ if (msr->msc_reqbody_chunks != NULL) {
+ msc_data_chunk **chunks = (msc_data_chunk **)msr->msc_reqbody_chunks->elts;
+ int i;
+
+ for(i = 0; i < msr->msc_reqbody_chunks->nelts; i++) {
+ if (chunks[i]->data != NULL) {
+ free(chunks[i]->data);
+ chunks[i]->data = NULL;
+ }
+ }
+ }
+
+ if (msr->msc_reqbody_storage == MSC_REQBODY_DISK) {
+ int keep_body = 0;
+
+ /* Should we keep the body? This normally
+ * happens when a PUT method was used, which
+ * means the body is actually a file.
+ */
+ if ((msr->upload_remove_files == 0)&&(strcasecmp(msr->request_method, "PUT") == 0)) {
+ if (msr->txcfg->upload_dir != NULL) {
+ keep_body = 1;
+ } else {
+ *error_msg = apr_psprintf(msr->mp, "Input filter: SecUploadDir is undefined, "
+ "unable to store PUT file.");
+ }
+ }
+
+ /* Deal with a request body stored in a file. */
+
+ if (msr->msc_reqbody_filename != NULL) {
+ if (keep_body) {
+ /* Move request body (which is a file) to the storage area. */
+ const char *put_filename = NULL;
+ const char *put_basename = NULL;
+
+ /* Construct the new filename. */
+ put_basename = file_basename(msr->msc_reqbody_mp, msr->msc_reqbody_filename);
+ if (put_basename == NULL) {
+ *error_msg = apr_psprintf(msr->mp, "Input filter: Failed to generate basename to PUT file \"%s\"", log_escape(msr->msc_reqbody_mp, msr->msc_reqbody_filename));
+ return -1;
+ }
+ put_filename = apr_psprintf(msr->msc_reqbody_mp, "%s/%s",
+ msr->txcfg->upload_dir, put_basename);
+ if (put_filename == NULL) {
+ *error_msg = apr_psprintf(msr->mp, "Input filter: Failed to generate filename to PUT file \"%s\"", log_escape(msr->msc_reqbody_mp, msr->msc_reqbody_filename));
+ return -1;
+ }
+
+ if (apr_file_rename(msr->msc_reqbody_filename, put_filename,
+ msr->msc_reqbody_mp) != APR_SUCCESS)
+ {
+ *error_msg = apr_psprintf(msr->mp, "Input filter: Failed to rename file from \"%s\" to \"%s\".",
+ log_escape(msr->msc_reqbody_mp, msr->msc_reqbody_filename),
+ log_escape(msr->msc_reqbody_mp, put_filename));
+ return -1;
+ } else {
+ msr_log(msr, 4, "Input filter: Moved file from \"%s\" to \"%s\".",
+ log_escape(msr->msc_reqbody_mp, msr->msc_reqbody_filename),
+ log_escape(msr->msc_reqbody_mp, put_filename));
+ }
+ } else {
+ /* make sure it is closed first */
+ if (msr->msc_reqbody_fd > 0) {
+ close(msr->msc_reqbody_fd);
+ msr->msc_reqbody_fd = -1;
+ }
+
+ /* We do not want to keep the request body. */
+ if (apr_file_remove(msr->msc_reqbody_filename,
+ msr->msc_reqbody_mp) != APR_SUCCESS)
+ {
+ *error_msg = apr_psprintf(msr->mp, "Input filter: Failed to delete temporary file: %s",
+ log_escape(msr->mp, msr->msc_reqbody_filename));
+ return -1;
+ }
+
+ msr_log(msr, 4, "Input filter: Removed temporary file: %s",
+ msr->msc_reqbody_filename);
+ }
+
+ msr->msc_reqbody_filename = NULL;
+ }
+ }
+
+ if (msr->msc_reqbody_mp != NULL) {
+ apr_pool_destroy(msr->msc_reqbody_mp);
+ msr->msc_reqbody_mp = NULL;
+ }
+
+ return 1;
+}
--- /dev/null
+/*
+ * ModSecurity for Apache 2.x, http://www.modsecurity.org/
+ * Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
+ *
+ * This product is released under the terms of the General Public Licence,
+ * version 2 (GPLv2). Please refer to the file LICENSE (included with this
+ * distribution) which contains the complete text of the licence.
+ *
+ * There are special exceptions to the terms and conditions of the GPL
+ * as it is applied to this software. View the full text of the exception in
+ * file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
+ * distribution.
+ *
+ * If any of the files related to licensing are missing or if you have any
+ * other questions related to licensing please contact Breach Security, Inc.
+ * directly using the email address support@breach.com.
+ *
+ */
+#include <apr.h>
+#include <apr_getopt.h>
+
+#include "modsecurity.h"
+#include "re.h"
+#include "pdf_protect.h"
+
+#define ISHEX(X) (((X >= '0')&&(X <= '9')) || ((X >= 'a')&&(X <= 'f')) || ((X >= 'A')&&(X <= 'F')))
+
+#define BUFLEN 32768
+
+#define RESULT_SUCCESS 0
+#define RESULT_ERROR -1
+#define RESULT_MISMATCHED -2
+#define RESULT_WRONGSIZE -3
+#define RESULT_WRONGRET -4
+
+#define DEFAULT_ACTION "phase:2,log,auditlog,pass"
+
+#define CMDLINE_OPTS "t:n:p:P:r:I:D:Nh"
+
+/* Types */
+typedef struct tfn_data_t tfn_data_t;
+typedef struct op_data_t op_data_t;
+typedef struct action_data_t action_data_t;
+
+struct tfn_data_t {
+ const char *name;
+ const char *param;
+ unsigned char *input;
+ apr_size_t input_len;
+ msre_tfn_metadata *metadata;
+};
+
+struct op_data_t {
+ const char *name;
+ const char *param;
+ unsigned char *input;
+ apr_size_t input_len;
+ msre_ruleset *ruleset;
+ msre_rule *rule;
+ msre_var *var;
+ msre_op_metadata *metadata;
+};
+
+struct action_data_t {
+ const char *name;
+ unsigned char *input;
+ apr_size_t input_len;
+ msre_ruleset *ruleset;
+ msre_rule *rule;
+ msre_var *var;
+ msre_actionset *actionset;
+ msre_action *action;
+};
+
+
+/* Globals */
+static int debuglog_level = 0;
+static char *test_name = NULL;
+static apr_pool_t *g_mp = NULL;
+static modsec_rec *g_msr = NULL;
+static unsigned char buf[BUFLEN];
+msc_engine *modsecurity = NULL;
+
+
+/* Stubs */
+char *format_error_log_message(apr_pool_t *mp, error_message *em) {
+ return "FAKE ERROR LOG MESSAGE";
+}
+
+apr_status_t send_error_bucket(modsec_rec *msr, ap_filter_t *f, int status) {
+ return APR_SUCCESS;
+}
+
+int apache2_exec(modsec_rec *msr, const char *command, const char **argv, char **output) {
+ return 0;
+}
+
+char *get_apr_error(apr_pool_t *p, apr_status_t rc) {
+ char *text = apr_pcalloc(p, 201);
+ if (text == NULL) return NULL;
+ apr_strerror(rc, text, 200);
+ return text;
+}
+
+void msr_log(modsec_rec *msr, int level, const char *text, ...) {
+ va_list ap;
+ char str1[1024] = "";
+ char str2[1256] = "";
+
+ if ((msr == NULL) || (level > msr->txcfg->debuglog_level)) {
+ return;
+ }
+ if (msr->txcfg->debuglog_fd == NOT_SET_P) {
+ if (apr_file_open(&msr->txcfg->debuglog_fd, msr->txcfg->debuglog_name, APR_READ|APR_WRITE|APR_CREATE|APR_APPEND|APR_BINARY, APR_OS_DEFAULT, g_mp) != APR_SUCCESS) {
+ fprintf(stderr, "ERROR: failed to create unit test debug log \"%s\".\n", msr->txcfg->debuglog_name);
+ msr->txcfg->debuglog_fd = NULL;
+ }
+ }
+
+ va_start(ap, text);
+ if (msr->txcfg->debuglog_fd != NULL) {
+ apr_size_t nbytes_written = 0;
+ apr_vsnprintf(str1, sizeof(str1), text, ap);
+ apr_snprintf(str2, sizeof(str2), "%lu: [%d] [%s] %s\n", (unsigned long)getpid(), level, test_name, str1);
+
+ apr_file_write_full(msr->txcfg->debuglog_fd, str2, strlen(str2), &nbytes_written);
+ }
+ va_end(ap);
+}
+
+void msr_log_error(modsec_rec *msr, const char *text, ...) {
+ va_list ap;
+ int level = 3;
+ char str1[1024] = "";
+ char str2[1256] = "";
+
+ if ((msr == NULL) || (level > msr->txcfg->debuglog_level)) {
+ return;
+ }
+ if (msr->txcfg->debuglog_fd == NOT_SET_P) {
+ if (apr_file_open(&msr->txcfg->debuglog_fd, msr->txcfg->debuglog_name, APR_READ|APR_WRITE|APR_CREATE|APR_APPEND|APR_BINARY, APR_OS_DEFAULT, g_mp) != APR_SUCCESS) {
+ fprintf(stderr, "ERROR: failed to create unit test debug log \"%s\".\n", msr->txcfg->debuglog_name);
+ msr->txcfg->debuglog_fd = NULL;
+ }
+ }
+
+ va_start(ap, text);
+ if (msr->txcfg->debuglog_fd != NULL) {
+ apr_size_t nbytes_written = 0;
+ apr_vsnprintf(str1, sizeof(str1), text, ap);
+ apr_snprintf(str2, sizeof(str2), "%lu: [%d] [%s] %s\n", (unsigned long)getpid(), level, test_name, str1);
+
+ apr_file_write_full(msr->txcfg->debuglog_fd, str2, strlen(str2), &nbytes_written);
+ }
+ va_end(ap);
+}
+
+void msr_log_warn(modsec_rec *msr, const char *text, ...) {
+ va_list ap;
+ int level = 4;
+ char str1[1024] = "";
+ char str2[1256] = "";
+
+ if ((msr == NULL) || (level > msr->txcfg->debuglog_level)) {
+ return;
+ }
+ if (msr->txcfg->debuglog_fd == NOT_SET_P) {
+ if (apr_file_open(&msr->txcfg->debuglog_fd, msr->txcfg->debuglog_name, APR_READ|APR_WRITE|APR_CREATE|APR_APPEND|APR_BINARY, APR_OS_DEFAULT, g_mp) != APR_SUCCESS) {
+ fprintf(stderr, "ERROR: failed to create unit test debug log \"%s\".\n", msr->txcfg->debuglog_name);
+ msr->txcfg->debuglog_fd = NULL;
+ }
+ }
+
+ va_start(ap, text);
+ if (msr->txcfg->debuglog_fd != NULL) {
+ apr_size_t nbytes_written = 0;
+ apr_vsnprintf(str1, sizeof(str1), text, ap);
+ apr_snprintf(str2, sizeof(str2), "%lu: [%d] [%s] %s\n", (unsigned long)getpid(), level, test_name, str1);
+
+ apr_file_write_full(msr->txcfg->debuglog_fd, str2, strlen(str2), &nbytes_written);
+ }
+ va_end(ap);
+}
+
+const char *ap_get_remote_host(conn_rec *conn, void *dir_config, int type, int *str_is_ip) {
+ return "FAKE-REMOTE-HOST";
+}
+
+char *get_env_var(request_rec *r, char *name) {
+ return "FAKE-ENV-VAR";
+}
+
+apr_status_t unixd_set_global_mutex_perms(apr_global_mutex_t *gmutex) {
+ return APR_SUCCESS;
+}
+
+apr_status_t unixd_set_proc_mutex_perms(apr_proc_mutex_t *pmutex) {
+ return APR_SUCCESS;
+}
+
+
+/* Escaping functions */
+
+static unsigned char hex2dec(unsigned char *what) {
+ register unsigned char digit;
+
+ digit = (what[0] >= 'A' ? ((what[0] & 0xdf) - 'A') + 10 : (what[0] - '0'));
+ digit *= 16;
+ digit += (what[1] >= 'A' ? ((what[1] & 0xdf) - 'A') + 10 : (what[1] - '0'));
+
+ return digit;
+}
+
+static unsigned char *unescape_inplace(unsigned char *str, apr_size_t *len)
+{
+ apr_size_t i, j;
+ for (i = j = 0; i < *len; j++) {
+ if ((str[i] == '\\') && (i + 3 < *len) && (str[i + 1] == 'x') && ISHEX(str[i + 2]) && ISHEX(str[i + 3]) ) {
+ str[j] = hex2dec(str + i + 2);
+ i += 4;
+ }
+ else {
+ str[j] = str[i++];
+ }
+ }
+ *len = j;
+
+ while (j < i) {
+ str[j++] = '\0';
+ }
+
+ return str;
+}
+
+static char *escape(unsigned char *str, apr_size_t *len)
+{
+ char *new = apr_pcalloc(g_mp, (*len * 4) + 1);
+ apr_size_t i, j;
+ for (i = j = 0; i < *len; i++) {
+ if ((str[i] >= 0x20) && (str[i] <= 0x7e)) {
+ new[j++] = str[i];
+ }
+ else {
+ sprintf(new + j, "\\x%02x", str[i]);
+ j += 4;
+ }
+ }
+ *len = j;
+
+ return new;
+}
+
+
+/* Testing functions */
+
+static int init_tfn(tfn_data_t *data, const char *name, unsigned char *input, apr_size_t input_len, char **errmsg) {
+ *errmsg = NULL;
+
+ data->name = name;
+ data->input = apr_pmemdup(g_mp, input, input_len);
+ data->input_len = input_len;
+ data->metadata = msre_engine_tfn_resolve(modsecurity->msre, name);
+ if (data->metadata == NULL) {
+ *errmsg = apr_psprintf(g_mp, "Failed to fetch tfn \"%s\".", name);
+ return -1;
+ }
+
+ return 0;
+}
+
+static int test_tfn(tfn_data_t *data, unsigned char **rval, apr_size_t *rval_len, char **errmsg)
+{
+ int rc = -1;
+
+ *errmsg = NULL;
+
+ /* Execute the tfn */
+ rc = data->metadata->execute(g_mp, data->input, (long)(data->input_len), (char **)rval, (long *)rval_len);
+ if (rc < 0) {
+ *errmsg = apr_psprintf(g_mp, "Failed to execute tfn \"%s\".", data->name);
+ }
+
+ return rc;
+}
+
+static int init_op(op_data_t *data, const char *name, const char *param, unsigned char *input, apr_size_t input_len, char **errmsg) {
+ const char *args = apr_psprintf(g_mp, "@%s %s", name, param);
+ char *conf_fn;
+ int rc = -1;
+
+ *errmsg = NULL;
+
+ data->name = name;
+ data->param = param;
+ data->input = input;
+ data->input_len = input_len;
+
+ if ( apr_filepath_merge(&conf_fn, NULL, "t/unit-test.conf", APR_FILEPATH_TRUENAME, g_mp) != APR_SUCCESS) {
+ *errmsg = apr_psprintf(g_mp, "Failed to build a conf filename.");
+ return -1;
+ }
+
+ /* Register UNIT_TEST variable */
+ msre_engine_variable_register(modsecurity->msre,
+ "UNIT_TEST",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ NULL,
+ VAR_DONT_CACHE,
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* Lookup the operator */
+ data->metadata = msre_engine_op_resolve(modsecurity->msre, name);
+ if (data->metadata == NULL) {
+ *errmsg = apr_psprintf(g_mp, "Failed to fetch op \"%s\".", name);
+ return -1;
+ }
+
+ /* Create a ruleset/rule */
+ data->ruleset = msre_ruleset_create(modsecurity->msre, g_mp);
+ if (data->ruleset == NULL) {
+ *errmsg = apr_psprintf(g_mp, "Failed to create ruleset for op \"%s\".", name);
+ return -1;
+ }
+ data->rule = msre_rule_create(data->ruleset, RULE_TYPE_NORMAL, conf_fn, 1, "UNIT_TEST", args, DEFAULT_ACTION, errmsg);
+ if (data->rule == NULL) {
+ *errmsg = apr_psprintf(g_mp, "Failed to create rule for op \"%s\": %s", name, *errmsg);
+ return -1;
+ }
+
+ /* Create a fake variable */
+ data->var = (msre_var *)apr_pcalloc(g_mp, sizeof(msre_var));
+ data->var->name = "UNIT_TEST";
+ data->var->value = apr_pstrmemdup(g_mp, (char *)input, input_len);
+ data->var->value_len = input_len;
+ data->var->metadata = msre_resolve_var(modsecurity->msre, data->var->name);
+ if (data->var->metadata == NULL) {
+ *errmsg = apr_psprintf(g_mp, "Failed to resolve variable for op \"%s\": %s", name, data->var->name);
+ return -1;
+ }
+
+ /* Initialize the operator parameter */
+ if (data->metadata->param_init != NULL) {
+ rc = data->metadata->param_init(data->rule, errmsg);
+ if (rc <= 0) {
+ *errmsg = apr_psprintf(g_mp, "Failed to init op \"%s\": %s", name, *errmsg);
+ return rc;
+ }
+ }
+
+ return 0;
+}
+
+static int test_op(op_data_t *data, char **errmsg)
+{
+ int rc = -1;
+
+ *errmsg = NULL;
+
+ /* Execute the operator */
+ if (data->metadata->execute != NULL) {
+ rc = data->metadata->execute(g_msr, data->rule, data->var, errmsg);
+ if (rc < 0) {
+ *errmsg = apr_psprintf(g_mp, "Failed to execute op \"%s\": %s", data->name, *errmsg);
+ }
+ }
+
+ return rc;
+}
+
+static int init_action(action_data_t *data, const char *name, const char *param, char **errmsg)
+{
+ const char *action_string = NULL;
+ char *conf_fn;
+
+ *errmsg = NULL;
+
+ if ((param == NULL) || (strcmp("", param) == 0)) {
+ action_string = apr_psprintf(g_mp, "%s", name);
+ }
+ else {
+ action_string = apr_psprintf(g_mp, "%s:%s", name, param);
+ }
+ if (action_string == NULL) {
+ *errmsg = apr_psprintf(g_mp, "Failed to build action string for action: \"%s\".", name);
+ return -1;
+ }
+
+ if ( apr_filepath_merge(&conf_fn, NULL, "t/unit-test.conf", APR_FILEPATH_TRUENAME, g_mp) != APR_SUCCESS) {
+ *errmsg = apr_psprintf(g_mp, "Failed to build a conf filename.");
+ return -1;
+ }
+
+ /* Register UNIT_TEST variable */
+ msre_engine_variable_register(modsecurity->msre,
+ "UNIT_TEST",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ NULL,
+ VAR_DONT_CACHE,
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* Create a ruleset/rule */
+ data->ruleset = msre_ruleset_create(modsecurity->msre, g_mp);
+ if (data->ruleset == NULL) {
+ *errmsg = apr_psprintf(g_mp, "Failed to create ruleset for action \"%s\".", name);
+ return -1;
+ }
+ data->rule = msre_rule_create(data->ruleset, RULE_TYPE_NORMAL, conf_fn, 1, "UNIT_TEST", "@unconditionalMatch", action_string, errmsg);
+ if (data->rule == NULL) {
+ *errmsg = apr_psprintf(g_mp, "Failed to create rule for action \"%s\": %s", name, *errmsg);
+ return -1;
+ }
+
+ /* Get the actionset/action */
+ data->actionset = data->rule->actionset;
+ if (data->actionset == NULL) {
+ *errmsg = apr_psprintf(g_mp, "Failed to fetch actionset for action \"%s\"", name);
+ return -1;
+ }
+ data->action = (msre_action *)apr_table_get(data->actionset->actions, name);
+ if (data->action == NULL) {
+ *errmsg = apr_psprintf(g_mp, "Failed to fetch action for action \"%s\"", name);
+ return -1;
+ }
+
+ return 0;
+}
+
+static int test_action(action_data_t *data, char **errmsg)
+{
+ int rc = -1;
+
+ *errmsg = NULL;
+
+ /* Execute the action */
+ if (data->action->metadata->execute != NULL) {
+ rc = data->action->metadata->execute(g_msr, g_mp, data->rule, data->action);
+ if (rc < 0) {
+ *errmsg = apr_psprintf(g_mp, "Failed to execute action \"%s\": %d", data->name, rc);
+ }
+ }
+
+ return rc;
+}
+
+
+/* Initialization */
+static void init_msr(void)
+{
+ directory_config *dcfg = NULL;
+ request_rec *r = NULL;
+ r = (request_rec *)apr_pcalloc(g_mp, sizeof(request_rec));
+
+ dcfg = (directory_config *)apr_pcalloc(g_mp, sizeof(directory_config));
+ dcfg->is_enabled = 0;
+ dcfg->reqbody_access = 0;
+ dcfg->reqbody_buffering = 0;
+ dcfg->reqbody_inmemory_limit = REQUEST_BODY_DEFAULT_INMEMORY_LIMIT;
+ dcfg->reqbody_limit = REQUEST_BODY_DEFAULT_LIMIT;
+ dcfg->reqbody_no_files_limit = REQUEST_BODY_NO_FILES_DEFAULT_LIMIT;
+ dcfg->resbody_access = 0;
+ dcfg->of_limit = RESPONSE_BODY_DEFAULT_LIMIT;
+ dcfg->of_limit_action = RESPONSE_BODY_LIMIT_ACTION_REJECT;
+ dcfg->debuglog_fd = NOT_SET_P;
+ dcfg->debuglog_name = "msc-test-debug.log";
+ dcfg->debuglog_level = debuglog_level;
+ dcfg->cookie_format = 0;
+ dcfg->argument_separator = '&';
+ dcfg->rule_inheritance = 0;
+ dcfg->auditlog_flag = 0;
+ dcfg->auditlog_type = AUDITLOG_SERIAL;
+ dcfg->auditlog_fd = NULL;
+ dcfg->auditlog2_fd = NULL;
+ dcfg->auditlog_name = NULL;
+ dcfg->auditlog2_name = NULL;
+ dcfg->auditlog_storage_dir = NULL;
+ dcfg->auditlog_parts = "ABCFHZ";
+ dcfg->auditlog_relevant_regex = NULL;
+ dcfg->tmp_dir = guess_tmp_dir(g_mp);
+ dcfg->upload_dir = NULL;
+ dcfg->upload_keep_files = KEEP_FILES_OFF;
+ dcfg->upload_validates_files = 0;
+ dcfg->data_dir = ".";
+ dcfg->webappid = "default";
+ dcfg->content_injection_enabled = 0;
+ dcfg->pdfp_enabled = 0;
+ dcfg->pdfp_secret = NULL;
+ dcfg->pdfp_timeout = 10;
+ dcfg->pdfp_token_name = "PDFPTOKEN";
+ dcfg->pdfp_only_get = 1;
+ dcfg->pdfp_method = PDF_PROTECT_METHOD_TOKEN_REDIRECTION;
+ dcfg->geo = NULL;
+ dcfg->cache_trans = MODSEC_CACHE_ENABLED;
+ dcfg->cache_trans_min = 15;
+ dcfg->cache_trans_max = 0;
+ dcfg->request_encoding = NULL;
+
+ g_msr = (modsec_rec *)apr_pcalloc(g_mp, sizeof(modsec_rec));
+ g_msr->modsecurity = modsecurity;
+ g_msr->mp = g_mp;
+ g_msr->r = r;
+ g_msr->r_early = r;
+ g_msr->request_time = apr_time_now();
+ g_msr->dcfg1 = NULL;
+ g_msr->usercfg = NULL;
+ g_msr->txcfg = dcfg;
+ g_msr->txid = "FAKE-TXID";
+ g_msr->error_messages = NULL;
+ g_msr->alerts = NULL;
+ g_msr->server_software = "FAKE-SERVER-SOFTWARE";
+ g_msr->local_addr = "127.0.0.1";
+ g_msr->local_port = 80;
+ g_msr->remote_addr = "127.0.0.1";
+ g_msr->remote_port = 1080;
+ g_msr->request_line = "GET /unit-tests HTTP/1.1";
+ g_msr->request_uri = "http://localhost/unit-tests";
+ g_msr->request_method = "GET";
+ g_msr->query_string = "";
+ g_msr->request_protocol = "HTTP/1.1";
+ g_msr->request_headers = NULL;
+ g_msr->hostname = "localhost";
+ g_msr->msc_rule_mptmp = g_mp;
+ g_msr->tx_vars = apr_table_make(g_mp, 1);
+ g_msr->collections_original = apr_table_make(g_mp, 1);
+ g_msr->collections = apr_table_make(g_mp, 1);
+ g_msr->collections_dirty = apr_table_make(g_mp, 1);
+}
+
+/**
+ * Usage text.
+ */
+static void usage(void)
+{
+ fprintf(stderr, "ModSecurity Unit Tester v%s\n", MODSEC_VERSION);
+ fprintf(stderr, " Usage: msc_test [options]\n");
+ fprintf(stderr, "\n");
+ fprintf(stderr, " Options:\n");
+ fprintf(stderr, " -t Type (required)\n");
+ fprintf(stderr, " -n Name (required)\n");
+ fprintf(stderr, " -p Parameter (required)\n");
+ fprintf(stderr, " -P Prerun (optional for actions)\n");
+ fprintf(stderr, " -r Function return code (required for some types)\n");
+ fprintf(stderr, " -I Iterations (default 1)\n");
+ fprintf(stderr, " -D Debug log level (default 0)\n");
+ fprintf(stderr, " -N No input on stdin.\n\n");
+ fprintf(stderr, " -h This help\n\n");
+ fprintf(stderr, "\n");
+ fprintf(stderr, "Input is from stdin unless -N is used.\n");
+}
+
+
+
+/* Main */
+
+int main(int argc, const char * const argv[])
+{
+ apr_getopt_t *opt;
+ apr_file_t *fd;
+ apr_size_t nbytes = 0;
+ const char *type = NULL;
+ const char *name = NULL;
+ unsigned char *param = NULL;
+ unsigned char *prerun = NULL;
+ const char *returnval = NULL;
+ int iterations = 1;
+ char *errmsg = NULL;
+ unsigned char *out = NULL;
+ apr_size_t param_len = 0;
+ apr_size_t prerun_len = 0;
+ apr_size_t out_len = 0;
+ int noinput = 0;
+ int rc = 0;
+ int result = 0;
+ int ec = 0;
+ int i;
+ apr_time_t T0 = 0;
+ apr_time_t T1 = 0;
+ tfn_data_t tfn_data;
+ op_data_t op_data;
+ action_data_t action_data;
+ int ret = 0;
+
+ memset(&tfn_data, 0, sizeof(tfn_data_t));
+ memset(&op_data, 0, sizeof(op_data_t));
+ memset(&action_data, 0, sizeof(action_data_t));
+
+ apr_app_initialize(&argc, &argv, NULL);
+ atexit(apr_terminate);
+
+ apr_pool_create(&g_mp, NULL);
+
+ rc = apr_getopt_init(&opt, g_mp, argc, argv);
+ if (rc != APR_SUCCESS) {
+ fprintf(stderr, "Failed to initialize.\n\n");
+ usage();
+ exit(1);
+ }
+
+ do {
+ char ch;
+ const char *val;
+ rc = apr_getopt(opt, CMDLINE_OPTS, &ch, &val);
+ switch (rc) {
+ case APR_SUCCESS:
+ switch (ch) {
+ case 't':
+ type = val;
+ break;
+ case 'n':
+ name = val;
+ break;
+ case 'p':
+ param_len = strlen(val);
+ param = apr_pmemdup(g_mp, val, param_len + 1);
+ unescape_inplace(param, ¶m_len);
+ break;
+ case 'P':
+ prerun_len = strlen(val);
+ prerun = apr_pmemdup(g_mp, val, prerun_len + 1);
+ unescape_inplace(prerun, &prerun_len);
+ break;
+ case 'r':
+ returnval = val;
+ break;
+ case 'I':
+ iterations = atoi(val);
+ break;
+ case 'D':
+ debuglog_level = atoi(val);
+ break;
+ case 'N':
+ noinput = 1;
+ break;
+ case 'h':
+ usage();
+ exit(0);
+ }
+ break;
+ case APR_BADCH:
+ case APR_BADARG:
+ usage();
+ exit(1);
+ }
+ } while (rc != APR_EOF);
+
+ rc = apr_getopt_init(&opt, g_mp, argc, argv);
+ if (!type || !name || !param) {
+ usage();
+ exit(1);
+ }
+
+ modsecurity = modsecurity_create(g_mp, MODSEC_OFFLINE);
+ test_name = apr_psprintf(g_mp, "%s/%s", type, name);
+
+ if (noinput == 0) {
+ if (apr_file_open_stdin(&fd, g_mp) != APR_SUCCESS) {
+ fprintf(stderr, "Failed to open stdin\n");
+ exit(1);
+ }
+
+ /* Read in the input */
+ nbytes = BUFLEN;
+ memset(buf, 0, nbytes);
+ rc = apr_file_read(fd, buf, &nbytes);
+ if ((rc != APR_EOF) && (rc != APR_SUCCESS)) {
+ fprintf(stderr, "Failed to read data\n");
+ exit(1);
+ }
+
+ if (nbytes < 0) {
+ fprintf(stderr, "Error reading data\n");
+ exit(1);
+ }
+
+ apr_file_close(fd);
+ }
+
+ if (strcmp("tfn", type) == 0) {
+ ret = returnval ? atoi(returnval) : -8888;
+
+ rc = init_tfn(&tfn_data, name, buf, nbytes, &errmsg);
+ if (rc < 0) {
+ fprintf(stderr, "ERROR: %s\n", errmsg);
+ result = RESULT_ERROR;
+ }
+ }
+ else if (strcmp("op", type) == 0) {
+ if (!returnval) {
+ fprintf(stderr, "Return value required for type \"%s\"\n", type);
+ exit(1);
+ }
+ ret = atoi(returnval);
+
+ init_msr();
+
+ rc = init_op(&op_data, name, (const char *)param, buf, nbytes, &errmsg);
+ if (rc < 0) {
+ fprintf(stderr, "ERROR: %s\n", errmsg);
+ result = RESULT_ERROR;
+ }
+ }
+ else if (strcmp("action", type) == 0) {
+ if (!returnval) {
+ fprintf(stderr, "Return value required for type \"%s\"\n", type);
+ exit(1);
+ }
+ ret = atoi(returnval);
+
+ init_msr();
+
+ if (prerun) {
+ action_data_t paction_data;
+ char *pname = apr_pstrdup(g_mp, (const char *)prerun);
+ char *pparam = NULL;
+
+ if ((pparam = strchr((const char *)pname, ':'))) {
+ pparam[0] = '\0';
+ pparam++;
+ }
+
+ rc = init_action(&paction_data, pname, (const char *)pparam, &errmsg);
+ if (rc < 0) {
+ fprintf(stderr, "ERROR: prerun - %s\n", errmsg);
+ exit(1);
+ }
+
+ rc = test_action(&paction_data, &errmsg);
+ if (rc < 0) {
+ fprintf(stderr, "ERROR: prerun - %s\n", errmsg);
+ exit(1);
+ }
+ }
+
+ rc = init_action(&action_data, name, (const char *)param, &errmsg);
+ if (rc < 0) {
+ fprintf(stderr, "ERROR: %s\n", errmsg);
+ result = RESULT_ERROR;
+ }
+ }
+
+ if (iterations > 1) {
+ apr_time_clock_hires (g_mp);
+ T0 = apr_time_now();
+ }
+
+ for (i = 1; i <= iterations; i++) {
+ #ifdef VERBOSE
+ if (i % 100 == 0) {
+ if (i == 100) {
+ fprintf(stderr, "Iterations/100: .");
+ }
+ else {
+ fprintf(stderr, ".");
+ }
+ }
+ #endif
+
+ if (strcmp("tfn", type) == 0) {
+ /* Transformations */
+ rc = test_tfn(&tfn_data, &out, &out_len, &errmsg);
+ if (rc < 0) {
+ fprintf(stderr, "ERROR: %s\n", errmsg);
+ result = RESULT_ERROR;
+ }
+ else if ((ret != -8888) && (rc != ret)) {
+ fprintf(stderr, "Returned %d (expected %d)\n", rc, ret);
+ result = RESULT_WRONGRET;
+ }
+ else if (param_len != out_len) {
+ fprintf(stderr, "Lenth %" APR_SIZE_T_FMT " (expected %" APR_SIZE_T_FMT ")\n", out_len, param_len);
+ result = RESULT_WRONGSIZE;
+ }
+ else {
+ result = memcmp(param, out, param_len) ? RESULT_MISMATCHED : RESULT_SUCCESS;
+ }
+
+ if (result != RESULT_SUCCESS) {
+ apr_size_t s0len = nbytes;
+ const char *s0 = escape(buf, &s0len);
+ apr_size_t s1len = out_len;
+ const char *s1 = escape(out, &s1len);
+ apr_size_t s2len = param_len;
+ const char *s2 = escape(param, &s2len);
+
+ fprintf(stderr, " Input: '%s' len=%" APR_SIZE_T_FMT "\n"
+ "Output: '%s' len=%" APR_SIZE_T_FMT "\n"
+ "Expect: '%s' len=%" APR_SIZE_T_FMT "\n",
+ s0, nbytes, s1, out_len, s2, param_len);
+ ec = 1;
+ }
+ }
+ else if (strcmp("op", type) == 0) {
+ /* Operators */
+ rc = test_op(&op_data, &errmsg);
+ if (rc < 0) {
+ fprintf(stderr, "ERROR: %s\n", errmsg);
+ result = RESULT_ERROR;
+ }
+ else if (rc != ret) {
+ fprintf(stderr, "Returned %d (expected %d)\n", rc, ret);
+ result = RESULT_WRONGRET;
+ }
+ else {
+ result = RESULT_SUCCESS;
+ }
+
+ if (result != RESULT_SUCCESS) {
+ apr_size_t s0len = nbytes;
+ const char *s0 = escape(buf, &s0len);
+
+ fprintf(stderr, " Test: '@%s %s'\n"
+ "Input: '%s' len=%" APR_SIZE_T_FMT "\n",
+ name, param, s0, nbytes);
+ ec = 1;
+ }
+ }
+ else if (strcmp("action", type) == 0) {
+ /* Actions */
+ int n;
+ const apr_array_header_t *arr;
+ apr_table_entry_t *te;
+
+ rc = test_action(&action_data, &errmsg);
+ if (rc < 0) {
+ fprintf(stderr, "ERROR: %s\n", errmsg);
+ result = RESULT_ERROR;
+ }
+ else if (rc != ret) {
+ fprintf(stderr, "Returned %d (expected %d)\n", rc, ret);
+ result = RESULT_WRONGRET;
+ }
+ else {
+ result = RESULT_SUCCESS;
+ }
+
+ if (result != RESULT_SUCCESS) {
+ fprintf(stderr, " Test: '%s:%s'\n"
+ "Prerun: '%s'\n",
+ name, param, (prerun ? (const char *)prerun : ""));
+ ec = 1;
+ }
+
+ /* Store any collections that were initialized and changed */
+ arr = apr_table_elts(g_msr->collections);
+ te = (apr_table_entry_t *)arr->elts;
+ for (n = 0; n < arr->nelts; n++) {
+ apr_table_t *col = (apr_table_t *)te[n].val;
+// apr_table_t *orig_col = NULL;
+
+ if (g_msr->txcfg->debuglog_level >= 9) {
+ msr_log(g_msr, 9, "Found loaded collection: %s", te[n].key);
+ }
+ /* Only store those collections that changed. */
+ if (apr_table_get(g_msr->collections_dirty, te[n].key)) {
+ int x = collection_store(g_msr, col);
+
+ if (g_msr->txcfg->debuglog_level >= 9) {
+ msr_log(g_msr, 9, "Stored collection: %s (%d)", te[n].key, x);
+ }
+ }
+#if 0
+ /* Re-populate the original values with the new ones. */
+ if ((orig_col = (apr_table_t *)apr_table_get(g_msr->collections_original, te[n].key)) != NULL) {
+ const apr_array_header_t *orig_arr = apr_table_elts(orig_col);
+ apr_table_entry_t *orig_te = (apr_table_entry_t *)orig_arr->elts;
+ int m;
+
+ for (m = 0; m < orig_arr->nelts; m++) {
+ msc_string *mstr = (msc_string *)apr_table_get(col, orig_te[m].key);
+
+ if (g_msr->txcfg->debuglog_level >= 9) {
+ msr_log(g_msr, 9, "Updating original collection: %s.%s=%s", te[n].key, mstr->name, mstr->value);
+ }
+ //apr_table_setn(orig_col, orig_te[m].key, (void *)mstr );
+ collection_original_setvar(g_msr, te[n].key, mstr);
+
+
+ }
+ }
+#endif
+ }
+ apr_table_clear(g_msr->collections_dirty);
+ apr_table_clear(g_msr->collections_original);
+ }
+ else {
+ fprintf(stderr, "Unknown type: \"%s\"\n", type);
+ exit(1);
+ }
+
+ if (ec != 0) {
+ fprintf(stdout, "%s\n", errmsg ? errmsg : "");
+ return ec;
+ }
+ }
+
+ if (iterations > 1) {
+ double dT;
+ T1 = apr_time_now();
+
+ dT = apr_time_as_msec(T1 - T0);
+
+ #ifdef VERBOSE
+ if (i >= 100) {
+ fprintf(stderr, "\n");
+ }
+ #endif
+
+ fprintf(stdout, "%d @ %.4f msec per iteration.\n", iterations, dT / iterations);
+ }
+ fprintf(stdout, "%s\n", errmsg ? errmsg : "");
+
+ return ec;
+}
+
+
--- /dev/null
+/*
+ * ModSecurity for Apache 2.x, http://www.modsecurity.org/
+ * Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
+ *
+ * This product is released under the terms of the General Public Licence,
+ * version 2 (GPLv2). Please refer to the file LICENSE (included with this
+ * distribution) which contains the complete text of the licence.
+ *
+ * There are special exceptions to the terms and conditions of the GPL
+ * as it is applied to this software. View the full text of the exception in
+ * file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
+ * distribution.
+ *
+ * If any of the files related to licensing are missing or if you have any
+ * other questions related to licensing please contact Breach Security, Inc.
+ * directly using the email address support@breach.com.
+ *
+ */
+#include "msc_release.h"
+#include "msc_util.h"
+
+#include <ctype.h>
+#include <fcntl.h>
+#include <stdlib.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+
+#include <apr_lib.h>
+
+/**
+ * NOTE: Be careful as these can ONLY be used on static values for X.
+ * (i.e. VALID_HEX(c++) will NOT work)
+ */
+#define VALID_HEX(X) (((X >= '0')&&(X <= '9')) || ((X >= 'a')&&(X <= 'f')) || ((X >= 'A')&&(X <= 'F')))
+#define ISODIGIT(X) ((X >= '0')&&(X <= '7'))
+
+#if (defined(WIN32) || defined(NETWARE))
+/** Windows does not define all the octal modes */
+#define S_IXOTH 00001
+#define S_IWOTH 00002
+#define S_IROTH 00004
+#define S_IXGRP 00010
+#define S_IWGRP 00020
+#define S_IRGRP 00040
+#define S_IXUSR 00100
+#define S_IWUSR 00200
+#define S_IRUSR 00400
+#define S_ISVTX 01000
+#define S_ISGID 02000
+#define S_ISUID 04000
+#endif /* defined(WIN32 || NETWARE) */
+
+/**
+ *
+ */
+int parse_boolean(const char *input) {
+ if (input == NULL) return -1;
+ if (strcasecmp(input, "on") == 0) return 1;
+ if (strcasecmp(input, "true") == 0) return 1;
+ if (strcasecmp(input, "1") == 0) return 1;
+ if (strcasecmp(input, "off") == 0) return 0;
+ if (strcasecmp(input, "false") == 0) return 0;
+ if (strcasecmp(input, "0") == 0) return 0;
+
+ return -1;
+}
+
+/**
+ * Parses a string that contains a name-value pair in the form "name=value".
+ * IMP1 It does not check for whitespace between tokens.
+ */
+int parse_name_eq_value(apr_pool_t *mp, const char *input, char **name, char **value) {
+ char *p = NULL;
+
+ if ((name == NULL)||(value == NULL)) return -1;
+ if (input == NULL) return 0;
+
+ *name = NULL;
+ *value = NULL;
+ p = (char *)input;
+
+ while((*p != '=')&&(*p != '\0')) p++;
+ if (*p == '\0') {
+ *name = (char *)input;
+ return 1;
+ }
+
+ *name = apr_pstrmemdup(mp, input, p - input);
+ if (*name == NULL) return -1;
+ p++;
+
+ *value = apr_pstrdup(mp, p);
+ if (*value == NULL) return -1;
+
+ return 1;
+}
+
+/**
+ *
+ * IMP1 Assumes NUL-terminated
+ */
+char *url_encode(apr_pool_t *mp, char *input, unsigned int input_len, int *changed) {
+ char *rval, *d;
+ unsigned int i, len;
+
+ *changed = 0;
+
+ len = input_len * 3 + 1;
+ d = rval = apr_palloc(mp, len);
+ if (rval == NULL) return NULL;
+
+ /* ENH Only encode the characters that really need to be encoded. */
+
+ for(i = 0; i < input_len; i++) {
+ unsigned char c = input[i];
+
+ if (c == ' ') {
+ *d++ = '+';
+ *changed = 1;
+ } else
+ if ( (c == 42) || ((c >= 48)&&(c <= 57)) || ((c >= 65)&&(c <= 90))
+ || ((c >= 97)&&(c <= 122))
+ ) {
+ *d++ = c;
+ } else {
+ *d++ = '%';
+ c2x(c, (unsigned char *)d);
+ d += 2;
+ *changed = 1;
+ }
+ }
+
+ *d = '\0';
+
+ return rval;
+}
+
+/**
+ * Appends an URL-encoded version of the source string to the
+ * destination string, but makes sure that no more than "maxlen"
+ * bytes are added.
+ */
+char *strnurlencat(char *destination, char *source, unsigned int maxlen) {
+ char *s = source;
+ char *d = destination;
+
+ /* ENH Only encode the characters that really need to be encoded. */
+
+ /* Advance to the end of destination string. */
+ while(*d != '\0') d++;
+
+ /* Loop while there's bytes in the source string or
+ * until we reach the output limit.
+ */
+ while((*s != '\0')&&(maxlen > 0)) {
+ unsigned char c = *s;
+
+ if (c == ' ') {
+ *d++ = '+';
+ maxlen--;
+ } else
+ if ( (c == 42) || ((c >= 48)&&(c <= 57)) || ((c >= 65)&&(c <= 90))
+ || ((c >= 97)&&(c <= 122))
+ ) {
+ *d++ = c;
+ maxlen--;
+ } else {
+ if (maxlen >= 3) {
+ *d++ = '%';
+ c2x(c, (unsigned char *)d);
+ d += 2;
+ maxlen -= 3;
+ } else {
+ /* If there's not enough room for the encoded
+ * byte we ignore it.
+ */
+ maxlen = 0;
+ }
+ }
+
+ s++;
+ }
+
+ *d++ = '\0';
+
+ return destination;
+}
+
+/**
+ *
+ */
+char *file_basename(apr_pool_t *mp, const char *filename) {
+ char *d, *p;
+
+ if (filename == NULL) return NULL;
+ d = apr_pstrdup(mp, filename);
+ if (d == NULL) return NULL;
+
+ p = strrchr(d, '/');
+ if (p != NULL) d = p + 1;
+ p = strrchr(d, '\\');
+ if (p != NULL) d = p + 1;
+
+ return d;
+}
+
+/**
+ *
+ */
+#ifdef WIN32
+char *file_dirname(apr_pool_t *p, const char *filename) {
+ char *b, *c, *d;
+
+ if (filename == NULL) return NULL;
+ b = apr_pstrdup(p, filename);
+ if (b == NULL) return NULL;
+
+ c = strrchr(b, '/');
+ if (c != NULL) {
+ d = strrchr(c, '\\');
+ if (d != NULL) *d = '\0';
+ else *c = '\0';
+ } else {
+ d = strrchr(b, '\\');
+ if (d != NULL) *d = '\0';
+ }
+
+ return b;
+}
+#else
+char *file_dirname(apr_pool_t *p, const char *filename) {
+ char *b, *c;
+
+ if (filename == NULL) return NULL;
+ b = apr_pstrdup(p, filename);
+ if (b == NULL) return NULL;
+
+ c = strrchr(b, '/');
+ if (c != NULL) *c = '\0';
+
+ return b;
+}
+#endif
+
+
+/**
+ *
+ */
+int hex2bytes_inplace(unsigned char *data, int len) {
+ unsigned char *d = data;
+ int i, count = 0;
+
+ if ((data == NULL)||(len == 0)) return 0;
+
+ for(i = 0; i <= len - 2; i += 2) {
+ *d++ = x2c(&data[i]);
+ count++;
+ }
+ *d = '\0';
+
+ return count;
+}
+
+/**
+ * Converts a series of bytes into its hexadecimal
+ * representation.
+ */
+char *bytes2hex(apr_pool_t *pool, unsigned char *data, int len) {
+ static unsigned char b2hex[] = "0123456789abcdef";
+ char *hex = NULL;
+ int i, j;
+
+ hex = apr_palloc(pool, (len * 2) + 1);
+ if (hex == NULL) return NULL;
+
+ j = 0;
+ for(i = 0; i < len; i++) {
+ hex[j++] = b2hex[data[i] >> 4];
+ hex[j++] = b2hex[data[i] & 0x0f];
+ }
+ hex[j] = 0;
+
+ return hex;
+}
+
+/**
+ *
+ */
+int is_token_char(unsigned char c) {
+ /* ENH Is the performance important at all? We could use a table instead. */
+
+ /* CTLs not allowed */
+ if ((c <= 32)||(c >= 127)) return 0;
+
+ switch(c) {
+ case '(' :
+ case ')' :
+ case '<' :
+ case '>' :
+ case '@' :
+ case ',' :
+ case ';' :
+ case ':' :
+ case '\\' :
+ case '"' :
+ case '/' :
+ case '[' :
+ case ']' :
+ case '?' :
+ case '=' :
+ return 0;
+ }
+
+ return 1;
+}
+
+/**
+ *
+ */
+int remove_lf_crlf_inplace(char *text) {
+ char *p = text;
+ int count = 0;
+
+ if (text == NULL) return -1;
+
+ while(*p != '\0') {
+ count++;
+ p++;
+ }
+
+ if (count > 0) {
+ if (*(p - 1) == '\n') {
+ *(p - 1) = '\0';
+ if (count > 1) {
+ if (*(p - 2) == '\r') {
+ *(p - 2) = '\0';
+ }
+ }
+ }
+ }
+
+ return 1;
+}
+
+/**
+ * Converts a byte given as its hexadecimal representation
+ * into a proper byte. Handles uppercase and lowercase letters
+ * but does not check for overflows.
+ */
+unsigned char x2c(unsigned char *what) {
+ register unsigned char digit;
+
+ digit = (what[0] >= 'A' ? ((what[0] & 0xdf) - 'A') + 10 : (what[0] - '0'));
+ digit *= 16;
+ digit += (what[1] >= 'A' ? ((what[1] & 0xdf) - 'A') + 10 : (what[1] - '0'));
+
+ return digit;
+}
+
+/**
+ * Converts a single hexadecimal digit into a decimal value.
+ */
+unsigned char xsingle2c(unsigned char *what) {
+ register unsigned char digit;
+
+ digit = (what[0] >= 'A' ? ((what[0] & 0xdf) - 'A') + 10 : (what[0] - '0'));
+
+ return digit;
+}
+
+/**
+ *
+ */
+char *guess_tmp_dir(apr_pool_t *p) {
+ char *filename = NULL;
+
+ /* ENH Use apr_temp_dir_get instead. */
+
+ #ifdef WIN32
+ filename = apr_pcalloc(p, 256);
+ if (filename == NULL) return "";
+ if (GetTempPath(255, filename) != 0) return filename;
+ #endif
+
+ filename = getenv("TMPDIR");
+ if (filename != NULL) return filename;
+
+ filename = getenv("TEMP");
+ if (filename != NULL) return filename;
+
+ filename = getenv("TMP");
+ if (filename != NULL) return filename;
+
+ #if defined NETWARE
+ return("sys:/tmp/");
+ #elif defined WIN32
+ return("");
+ #else
+ return("/tmp/");
+ #endif
+}
+
+/**
+ *
+ */
+char *current_logtime(apr_pool_t *mp) {
+ apr_time_exp_t t;
+ char tstr[100];
+ apr_size_t len;
+
+ apr_time_exp_lt(&t, apr_time_now());
+
+ apr_strftime(tstr, &len, 80, "%d/%b/%Y:%H:%M:%S ", &t);
+ apr_snprintf(tstr + strlen(tstr), 80 - strlen(tstr), "%c%.2d%.2d",
+ t.tm_gmtoff < 0 ? '-' : '+',
+ t.tm_gmtoff / (60 * 60), t.tm_gmtoff % (60 * 60));
+ return apr_pstrdup(mp, tstr);
+}
+
+/**
+ *
+ */
+char *current_filetime(apr_pool_t *mp) {
+ apr_time_exp_t t;
+ char tstr[100];
+ apr_size_t len;
+
+ apr_time_exp_lt(&t, apr_time_now());
+
+ apr_strftime(tstr, &len, 80, "%Y%m%d-%H%M%S", &t);
+ return apr_pstrdup(mp, tstr);
+}
+
+/**
+ *
+ */
+int msc_mkstemp_ex(char *template, int mode) {
+ /* ENH Use apr_file_mktemp instead. */
+
+ #if !(defined(WIN32)||defined(NETWARE))
+ return mkstemp(template);
+ #else
+ if (mktemp(template) == NULL) return -1;
+ return open(template, O_WRONLY | O_APPEND | O_CREAT | O_BINARY, mode);
+ #endif
+}
+
+/**
+ *
+ */
+int msc_mkstemp(char *template) {
+ return msc_mkstemp_ex(template, CREATEMODE_UNISTD);
+}
+
+/**
+ * Converts the input string to lowercase (in-place).
+ */
+char *strtolower_inplace(unsigned char *str) {
+ unsigned char *c = str;
+
+ if (str == NULL) return NULL;
+
+ while(*c != 0) {
+ *c = tolower(*c);
+ c++;
+ }
+
+ return (char *)str;
+}
+
+/**
+ * Converts a single byte into its hexadecimal representation.
+ * Will overwrite two bytes at the destination.
+ */
+unsigned char *c2x(unsigned what, unsigned char *where) {
+ static const char c2x_table[] = "0123456789abcdef";
+
+ what = what & 0xff;
+ *where++ = c2x_table[what >> 4];
+ *where++ = c2x_table[what & 0x0f];
+
+ return where;
+}
+
+char *log_escape(apr_pool_t *mp, const char *text) {
+ return _log_escape(mp, (const unsigned char *)text, text ? strlen(text) : 0, 1, 0);
+}
+
+char *log_escape_nq(apr_pool_t *mp, const char *text) {
+ return _log_escape(mp, (const unsigned char *)text, text ? strlen(text) : 0, 0, 0);
+}
+
+char *log_escape_ex(apr_pool_t *mp, const char *text, unsigned long int text_length) {
+ return _log_escape(mp, (const unsigned char *)text, text_length, 1, 0);
+}
+
+char *log_escape_nq_ex(apr_pool_t *mp, const char *text, unsigned long int text_length) {
+ return _log_escape(mp, (const unsigned char *)text, text_length, 0, 0);
+}
+
+char *log_escape_header_name(apr_pool_t *mp, const char *text) {
+ return _log_escape(mp, (const unsigned char *)text, text ? strlen(text) : 0, 0, 1);
+}
+
+char *log_escape_raw(apr_pool_t *mp, const unsigned char *text, unsigned long int text_length) {
+ unsigned char *ret = apr_palloc(mp, text_length * 4 + 1);
+ unsigned long int i, j;
+
+ for (i = 0, j = 0; i < text_length; i++, j += 4) {
+ ret[j] = '\\';
+ ret[j+1] = 'x';
+ c2x(text[i], ret+j+2);
+ }
+ ret[text_length * 4] = '\0';
+
+ return (char *)ret;
+}
+
+/**
+ * Transform text to ASCII printable or hex escaped
+ */
+char *log_escape_hex(apr_pool_t *mp, const unsigned char *text, unsigned long int text_length) {
+ unsigned char *ret = apr_palloc(mp, text_length * 4 + 1);
+ unsigned long int i, j;
+
+ for (i = 0, j = 0; i < text_length; i++) {
+ if ( (text[i] == '"')
+ ||(text[i] == '\\')
+ ||(text[i] <= 0x1f)
+ ||(text[i] >= 0x7f))
+ {
+ ret[j] = '\\';
+ ret[j+1] = 'x';
+ c2x(text[i], ret+j+2);
+ j += 4;
+ }
+ else {
+ ret[j] = text[i];
+ j ++;
+ }
+ }
+ ret[j] = '\0';
+
+ return (char *)ret;
+}
+
+/**
+ * Transform input into a form safe for logging.
+ */
+char *_log_escape(apr_pool_t *mp, const unsigned char *input, unsigned long int input_len,
+ int escape_quotes, int escape_colon)
+{
+ unsigned char *d = NULL;
+ char *ret = NULL;
+ unsigned long int i;
+
+ if (input == NULL) return NULL;
+
+ ret = apr_palloc(mp, input_len * 4 + 1);
+ if (ret == NULL) return NULL;
+ d = (unsigned char *)ret;
+
+ i = 0;
+ while(i < input_len) {
+ switch(input[i]) {
+ case ':' :
+ if (escape_colon) {
+ *d++ = '\\';
+ *d++ = ':';
+ } else {
+ *d++ = input[i];
+ }
+ break;
+ case '"' :
+ if (escape_quotes) {
+ *d++ = '\\';
+ *d++ = '"';
+ } else {
+ *d++ = input[i];
+ }
+ break;
+ case '\b' :
+ *d++ = '\\';
+ *d++ = 'b';
+ break;
+ case '\n' :
+ *d++ = '\\';
+ *d++ = 'n';
+ break;
+ case '\r' :
+ *d++ = '\\';
+ *d++ = 'r';
+ break;
+ case '\t' :
+ *d++ = '\\';
+ *d++ = 't';
+ break;
+ case '\v' :
+ *d++ = '\\';
+ *d++ = 'v';
+ break;
+ case '\\' :
+ *d++ = '\\';
+ *d++ = '\\';
+ break;
+ default :
+ if ((input[i] <= 0x1f)||(input[i] >= 0x7f)) {
+ *d++ = '\\';
+ *d++ = 'x';
+ c2x(input[i], d);
+ d += 2;
+ } else {
+ *d++ = input[i];
+ }
+ break;
+ }
+
+ i++;
+ }
+
+ *d = 0;
+
+ return ret;
+}
+
+/**
+ * JavaScript decoding.
+ * IMP1 Assumes NUL-terminated
+ */
+
+int js_decode_nonstrict_inplace(unsigned char *input, long int input_len) {
+ unsigned char *d = (unsigned char *)input;
+ long int i, count;
+
+ if (input == NULL) return -1;
+
+ i = count = 0;
+ while (i < input_len) {
+ if (input[i] == '\\') {
+ /* Character is an escape. */
+
+ if ( (i + 5 < input_len) && (input[i + 1] == 'u')
+ && (VALID_HEX(input[i + 2])) && (VALID_HEX(input[i + 3]))
+ && (VALID_HEX(input[i + 4])) && (VALID_HEX(input[i + 5])) )
+ {
+ /* \uHHHH */
+
+ /* Use only the lower byte. */
+ *d = x2c(&input[i + 4]);
+
+ /* Full width ASCII (ff01 - ff5e) needs 0x20 added */
+ if ( (*d > 0x00) && (*d < 0x5f)
+ && ((input[i + 2] == 'f') || (input[i + 2] == 'F'))
+ && ((input[i + 3] == 'f') || (input[i + 3] == 'F')))
+ {
+ (*d) += 0x20;
+ }
+
+ d++;
+ count++;
+ i += 6;
+ }
+ else if ( (i + 3 < input_len) && (input[i + 1] == 'x')
+ && VALID_HEX(input[i + 2]) && VALID_HEX(input[i + 3])) {
+ /* \xHH */
+ *d++ = x2c(&input[i + 2]);
+ count++;
+ i += 4;
+ }
+ else if ((i + 1 < input_len) && ISODIGIT(input[i + 1])) {
+ /* \OOO (only one byte, \000 - \377) */
+ char buf[4];
+ int j = 0;
+
+ while((i + 1 + j < input_len)&&(j < 3)) {
+ buf[j] = input[i + 1 + j];
+ j++;
+ if (!ISODIGIT(input[i + 1 + j])) break;
+ }
+ buf[j] = '\0';
+
+ if (j > 0) {
+ /* Do not use 3 characters if we will be > 1 byte */
+ if ((j == 3) && (buf[0] > '3')) {
+ j = 2;
+ buf[j] = '\0';
+ }
+ *d++ = (unsigned char)strtol(buf, NULL, 8);
+ i += 1 + j;
+ count++;
+ }
+ }
+ else if (i + 1 < input_len) {
+ /* \C */
+ unsigned char c = input[i + 1];
+ switch(input[i + 1]) {
+ case 'a' :
+ c = '\a';
+ break;
+ case 'b' :
+ c = '\b';
+ break;
+ case 'f' :
+ c = '\f';
+ break;
+ case 'n' :
+ c = '\n';
+ break;
+ case 'r' :
+ c = '\r';
+ break;
+ case 't' :
+ c = '\t';
+ break;
+ case 'v' :
+ c = '\v';
+ break;
+ /* The remaining (\?,\\,\',\") are just a removal
+ * of the escape char which is default.
+ */
+ }
+
+ *d++ = c;
+ i += 2;
+ count++;
+ }
+ else {
+ /* Not enough bytes */
+ while(i < input_len) {
+ *d++ = input[i++];
+ count++;
+ }
+ }
+ }
+ else {
+ *d++ = input[i++];
+ count++;
+ }
+ }
+
+ *d = '\0';
+
+ return count;
+}
+
+/**
+ *
+ * IMP1 Assumes NUL-terminated
+ */
+int urldecode_uni_nonstrict_inplace_ex(unsigned char *input, long int input_len, int *changed) {
+ unsigned char *d = input;
+ long int i, count;
+
+ *changed = 0;
+
+ if (input == NULL) return -1;
+
+ i = count = 0;
+ while (i < input_len) {
+ if (input[i] == '%') {
+ /* Character is a percent sign. */
+
+ if ((i + 1 < input_len)&&( (input[i + 1] == 'u')||(input[i + 1] == 'U') )) {
+ /* IIS-specific %u encoding. */
+ if (i + 5 < input_len) {
+ /* We have at least 4 data bytes. */
+ if ( (VALID_HEX(input[i + 2]))&&(VALID_HEX(input[i + 3]))
+ &&(VALID_HEX(input[i + 4]))&&(VALID_HEX(input[i + 5])) )
+ {
+ /* We first make use of the lower byte here, ignoring the higher byte. */
+ *d = x2c(&input[i + 4]);
+
+ /* Full width ASCII (ff01 - ff5e) needs 0x20 added */
+ if ( (*d > 0x00) && (*d < 0x5f)
+ && ((input[i + 2] == 'f') || (input[i + 2] == 'F'))
+ && ((input[i + 3] == 'f') || (input[i + 3] == 'F')))
+ {
+ (*d) += 0x20;
+ }
+
+ d++;
+ count++;
+ i += 6;
+ *changed = 1;
+ } else {
+ /* Invalid data, skip %u. */
+ *d++ = input[i++];
+ *d++ = input[i++];
+ count += 2;
+ }
+ } else {
+ /* Not enough bytes (4 data bytes), skip %u. */
+ *d++ = input[i++];
+ *d++ = input[i++];
+ count += 2;
+ }
+ }
+ else {
+ /* Standard URL encoding. */
+
+ /* Are there enough bytes available? */
+ if (i + 2 < input_len) {
+ /* Yes. */
+
+ /* Decode a %xx combo only if it is valid.
+ */
+ char c1 = input[i + 1];
+ char c2 = input[i + 2];
+
+ if (VALID_HEX(c1) && VALID_HEX(c2)) {
+ *d++ = x2c(&input[i + 1]);
+ count++;
+ i += 3;
+ *changed = 1;
+ } else {
+ /* Not a valid encoding, skip this % */
+ *d++ = input[i++];
+ count++;
+ }
+ } else {
+ /* Not enough bytes available, skip this % */
+ *d++ = input[i++];
+ count++;
+ }
+ }
+ }
+ else {
+ /* Character is not a percent sign. */
+ if (input[i] == '+') {
+ *d++ = ' ';
+ *changed = 1;
+ } else {
+ *d++ = input[i];
+ }
+
+ count++;
+ i++;
+ }
+ }
+
+ *d = '\0';
+
+ return count;
+}
+
+/**
+ *
+ * IMP1 Assumes NUL-terminated
+ */
+int urldecode_nonstrict_inplace_ex(unsigned char *input, long int input_len, int *invalid_count, int *changed) {
+ unsigned char *d = (unsigned char *)input;
+ long int i, count;
+
+ *changed = 0;
+
+ if (input == NULL) return -1;
+
+ i = count = 0;
+ while (i < input_len) {
+ if (input[i] == '%') {
+ /* Character is a percent sign. */
+
+ /* Are there enough bytes available? */
+ if (i + 2 < input_len) {
+ char c1 = input[i + 1];
+ char c2 = input[i + 2];
+
+ if (VALID_HEX(c1) && VALID_HEX(c2)) {
+ /* Valid encoding - decode it. */
+ *d++ = x2c(&input[i + 1]);
+ count++;
+ i += 3;
+ *changed = 1;
+ } else {
+ /* Not a valid encoding, skip this % */
+ *d++ = input[i++];
+ count ++;
+ (*invalid_count)++;
+ }
+ } else {
+ /* Not enough bytes available, copy the raw bytes. */
+ *d++ = input[i++];
+ count ++;
+ (*invalid_count)++;
+ }
+ } else {
+ /* Character is not a percent sign. */
+ if (input[i] == '+') {
+ *d++ = ' ';
+ *changed = 1;
+ } else {
+ *d++ = input[i];
+ }
+ count++;
+ i++;
+ }
+ }
+
+ *d = '\0';
+
+ return count;
+}
+
+/**
+ *
+ * IMP1 Assumes NUL-terminated
+ */
+int html_entities_decode_inplace(apr_pool_t *mp, unsigned char *input, int input_len) {
+ unsigned char *d = input;
+ int i, count;
+
+ if ((input == NULL)||(input_len <= 0)) return 0;
+
+ i = count = 0;
+ while((i < input_len)&&(count < input_len)) {
+ int z, copy = 1;
+
+ /* Require an ampersand and at least one character to
+ * start looking into the entity.
+ */
+ if ((input[i] == '&')&&(i + 1 < input_len)) {
+ int k, j = i + 1;
+
+ if (input[j] == '#') {
+ /* Numerical entity. */
+ copy++;
+
+ if (!(j + 1 < input_len)) goto HTML_ENT_OUT; /* Not enough bytes. */
+ j++;
+
+ if ((input[j] == 'x')||(input[j] == 'X')) {
+ /* Hexadecimal entity. */
+ copy++;
+
+ if (!(j + 1 < input_len)) goto HTML_ENT_OUT; /* Not enough bytes. */
+ j++; /* j is the position of the first digit now. */
+
+ k = j;
+ while((j < input_len)&&(isxdigit(input[j]))) j++;
+ if (j > k) { /* Do we have at least one digit? */
+ /* Decode the entity. */
+ char *x = apr_pstrmemdup(mp, (const char *)&input[k], j - k);
+ *d++ = (unsigned char)strtol(x, NULL, 16);
+ count++;
+
+ /* Skip over the semicolon if it's there. */
+ if ((j < input_len)&&(input[j] == ';')) i = j + 1;
+ else i = j;
+
+ continue;
+ } else {
+ goto HTML_ENT_OUT;
+ }
+ } else {
+ /* Decimal entity. */
+ k = j;
+ while((j < input_len)&&(isdigit(input[j]))) j++;
+ if (j > k) { /* Do we have at least one digit? */
+ /* Decode the entity. */
+ char *x = apr_pstrmemdup(mp, (const char *)&input[k], j - k);
+ *d++ = (unsigned char)strtol(x, NULL, 10);
+ count++;
+
+ /* Skip over the semicolon if it's there. */
+ if ((j < input_len)&&(input[j] == ';')) i = j + 1;
+ else i = j;
+
+ continue;
+ } else {
+ goto HTML_ENT_OUT;
+ }
+ }
+ } else {
+ /* Text entity. */
+
+ k = j;
+ while((j < input_len)&&(isalnum(input[j]))) j++;
+ if (j > k) { /* Do we have at least one digit? */
+ char *x = apr_pstrmemdup(mp, (const char *)&input[k], j - k);
+
+ /* Decode the entity. */
+ /* ENH What about others? */
+ if (strcasecmp(x, "quot") == 0) *d++ = '"';
+ else
+ if (strcasecmp(x, "amp") == 0) *d++ = '&';
+ else
+ if (strcasecmp(x, "lt") == 0) *d++ = '<';
+ else
+ if (strcasecmp(x, "gt") == 0) *d++ = '>';
+ else
+ if (strcasecmp(x, "nbsp") == 0) *d++ = NBSP;
+ else {
+ /* We do no want to convert this entity, copy the raw data over. */
+ copy = j - k + 1;
+ goto HTML_ENT_OUT;
+ }
+
+ count++;
+
+ /* Skip over the semicolon if it's there. */
+ if ((j < input_len)&&(input[j] == ';')) i = j + 1;
+ else i = j;
+
+ continue;
+ }
+ }
+ }
+
+ HTML_ENT_OUT:
+
+ for(z = 0; ((z < copy) && (count < input_len)); z++) {
+ *d++ = input[i++];
+ count++;
+ }
+ }
+
+ *d = '\0';
+
+ return count;
+}
+
+/**
+ *
+ * IMP1 Assumes NUL-terminated
+ */
+int ansi_c_sequences_decode_inplace(unsigned char *input, int input_len) {
+ unsigned char *d = input;
+ int i, count;
+
+ i = count = 0;
+ while(i < input_len) {
+ if ((input[i] == '\\')&&(i + 1 < input_len)) {
+ int c = -1;
+
+ switch(input[i + 1]) {
+ case 'a' :
+ c = '\a';
+ break;
+ case 'b' :
+ c = '\b';
+ break;
+ case 'f' :
+ c = '\f';
+ break;
+ case 'n' :
+ c = '\n';
+ break;
+ case 'r' :
+ c = '\r';
+ break;
+ case 't' :
+ c = '\t';
+ break;
+ case 'v' :
+ c = '\v';
+ break;
+ case '\\' :
+ c = '\\';
+ break;
+ case '?' :
+ c = '?';
+ break;
+ case '\'' :
+ c = '\'';
+ break;
+ case '"' :
+ c = '"';
+ break;
+ }
+
+ if (c != -1) i += 2;
+
+ /* Hexadecimal or octal? */
+ if (c == -1) {
+ if ((input[i + 1] == 'x')||(input[i + 1] == 'X')) {
+ /* Hexadecimal. */
+ if ((i + 3 < input_len)&&(isxdigit(input[i + 2]))&&(isxdigit(input[i + 3]))) {
+ /* Two digits. */
+ c = x2c(&input[i + 2]);
+ i += 4;
+ } else {
+ /* Invalid encoding, do nothing. */
+ }
+ }
+ else
+ if (ISODIGIT(input[i + 1])) { /* Octal. */
+ char buf[4];
+ int j = 0;
+
+ while((i + 1 + j < input_len)&&(j < 3)) {
+ buf[j] = input[i + 1 + j];
+ j++;
+ if (!ISODIGIT(input[i + 1 + j])) break;
+ }
+ buf[j] = '\0';
+
+ if (j > 0) {
+ c = strtol(buf, NULL, 8);
+ i += 1 + j;
+ }
+ }
+ }
+
+ if (c == -1) {
+ /* Didn't recognise encoding, copy raw bytes. */
+ *d++ = input[i + 1];
+ count++;
+ i += 2;
+ } else {
+ /* Converted the encoding. */
+ *d++ = c;
+ count++;
+ }
+ } else {
+ /* Input character not a backslash, copy it. */
+ *d++ = input[i++];
+ count++;
+ }
+ }
+
+ *d = '\0';
+
+ return count;
+}
+
+/**
+ *
+ * IMP1 Assumes NUL-terminated
+ */
+int normalise_path_inplace(unsigned char *input, int input_len, int win, int *changed) {
+ unsigned char *d = input;
+ int i, count;
+
+ *changed = 0;
+
+ i = count = 0;
+ while ((i < input_len)&&(count < input_len)) {
+ char c = input[i];
+
+ /* Convert backslash to forward slash on Windows only. */
+ if ((win)&&(c == '\\')) {
+ c = '/';
+ *changed = 1;
+ }
+
+ if (c == '/') {
+ /* Is there a directory back-reference? Yes, we
+ * require at least 5 prior bytes here. That's on
+ * purpose.
+ */
+ if ((count >= 5)&&(*(d - 1) == '.')&&(*(d - 2) == '.')&&(*(d - 3) == '/')) {
+ unsigned char *cd = d - 4;
+ int ccount = count - 4;
+
+ *changed = 1;
+
+ /* Go back until we reach the beginning or a forward slash. */
+ while ((ccount > 0)&&(*cd != '/')) {
+ ccount--;
+ cd--;
+ }
+
+ if (*cd == '/') {
+ d = cd;
+ count = ccount;
+ }
+ } else
+ /* Is there a directory self-reference? */
+ if ((count >= 2)&&(*(d - 1) == '.')&&(*(d - 2) == '/')) {
+ /* Ignore the last two bytes. */
+ d -= 2;
+ count -= 2;
+ *changed = 1;
+ } else
+ /* Or are there just multiple occurences of forward slash? */
+ if ((count >= 1)&&(*(d - 1) == '/')) {
+ /* Ignore the last one byte. */
+ d--;
+ count--;
+ *changed = 1;
+ }
+ }
+
+ /* Copy the byte over. */
+ *d++ = c;
+ count++;
+ i++;
+ }
+
+ *d = '\0';
+
+ return count;
+}
+
+char *modsec_build(apr_pool_t *mp) {
+ return apr_psprintf(mp, "%02i%02i%02i%1i%02i",
+ atoi(MODSEC_VERSION_MAJOR),
+ atoi(MODSEC_VERSION_MINOR),
+ atoi(MODSEC_VERSION_MAINT),
+ get_modsec_build_type(NULL),
+ atoi(MODSEC_VERSION_RELEASE));
+}
+
+int is_empty_string(const char *string) {
+ unsigned int i;
+
+ if (string == NULL) return 1;
+
+ for(i = 0; string[i] != '\0'; i++) {
+ if (!isspace(string[i])) {
+ return 0;
+ }
+ }
+
+ return 1;
+}
+
+char *resolve_relative_path(apr_pool_t *pool, const char *parent_filename, const char *filename) {
+ if (filename == NULL) return NULL;
+ // TODO Support paths on operating systems other than Unix.
+ if (filename[0] == '/') return (char *)filename;
+
+ return apr_pstrcat(pool, apr_pstrndup(pool, parent_filename,
+ strlen(parent_filename) - strlen(apr_filepath_name_get(parent_filename))),
+ filename, NULL);
+}
+
+/**
+ * Decode a string that contains CSS-escaped characters.
+ *
+ * References:
+ * http://www.w3.org/TR/REC-CSS2/syndata.html#q4
+ * http://www.unicode.org/roadmaps/
+ */
+int css_decode_inplace(unsigned char *input, long int input_len) {
+ unsigned char *d = (unsigned char *)input;
+ long int i, j, count;
+
+ if (input == NULL) return -1;
+
+ i = count = 0;
+ while (i < input_len) {
+
+ /* Is the character a backslash? */
+ if (input[i] == '\\') {
+
+ /* Is there at least one more byte? */
+ if (i + 1 < input_len) {
+ i++; /* We are not going to need the backslash. */
+
+ /* Check for 1-6 hex characters following the backslash */
+ j = 0;
+ while ( (j < 6)
+ && (i + j < input_len)
+ && (VALID_HEX(input[i + j])))
+ {
+ j++;
+ }
+
+ if (j > 0) { /* We have at least one valid hexadecimal character. */
+ int fullcheck = 0;
+
+ /* For now just use the last two bytes. */
+ switch (j) {
+ /* Number of hex characters */
+ case 1:
+ *d++ = xsingle2c(&input[i]);
+ break;
+
+ case 2:
+ case 3:
+ /* Use the last two from the end. */
+ *d++ = x2c(&input[i + j - 2]);
+ break;
+
+ case 4:
+ /* Use the last two from the end, but request
+ * a full width check.
+ */
+ *d = x2c(&input[i + j - 2]);
+ fullcheck = 1;
+ break;
+
+ case 5:
+ /* Use the last two from the end, but request
+ * a full width check if the number is greater
+ * or equal to 0xFFFF.
+ */
+ *d = x2c(&input[i + j - 2]);
+
+ /* Do full check if first byte is 0 */
+ if (input[i] == '0') {
+ fullcheck = 1;
+ }
+ else {
+ d++;
+ }
+ break;
+
+ case 6:
+ /* Use the last two from the end, but request
+ * a full width check if the number is greater
+ * or equal to 0xFFFF.
+ */
+ *d = x2c(&input[i + j - 2]);
+
+ /* Do full check if first/second bytes are 0 */
+ if ( (input[i] == '0')
+ && (input[i + 1] == '0')
+ ) {
+ fullcheck = 1;
+ }
+ else {
+ d++;
+ }
+ break;
+ }
+
+ /* Full width ASCII (0xff01 - 0xff5e) needs 0x20 added */
+ if (fullcheck) {
+ if ( (*d > 0x00) && (*d < 0x5f)
+ && ((input[i + j - 3] == 'f') ||
+ (input[i + j - 3] == 'F'))
+ && ((input[i + j - 4] == 'f') ||
+ (input[i + j - 4] == 'F')))
+ {
+ (*d) += 0x20;
+ }
+
+ d++;
+ }
+
+ /* We must ignore a single whitespace after a hex escape */
+ if ((i + j < input_len) && isspace(input[i + j])) {
+ j++;
+ }
+
+ /* Move over. */
+ count++;
+ i += j;
+ }
+
+ /* No hexadecimal digits after backslash */
+ else if (input[i] == '\n') {
+ /* A newline character following backslash is ignored. */
+ i++;
+ }
+
+ /* The character after backslash is not a hexadecimal digit, nor a newline. */
+ else {
+ /* Use one character after backslash as is. */
+ *d++ = input[i++];
+ count++;
+ }
+ }
+
+ /* No characters after backslash. */
+ else {
+ /* Do not include backslash in output (continuation to nothing) */
+ i++;
+ }
+ }
+
+ /* Character is not a backslash. */
+ else {
+ /* Copy one normal character to output. */
+ *d++ = input[i++];
+ count++;
+ }
+ }
+
+ /* Terminate output string. */
+ *d = '\0';
+
+ return count;
+}
+
+/**
+ * Translate UNIX octal umask/mode to APR apr_fileperms_t
+ */
+apr_fileperms_t mode2fileperms(int mode) {
+ apr_fileperms_t perms = 0;
+
+ if (mode & S_IXOTH) perms |= APR_WEXECUTE;
+ if (mode & S_IWOTH) perms |= APR_WWRITE;
+ if (mode & S_IROTH) perms |= APR_WREAD;
+ if (mode & S_IXGRP) perms |= APR_GEXECUTE;
+ if (mode & S_IWGRP) perms |= APR_GWRITE;
+ if (mode & S_IRGRP) perms |= APR_GREAD;
+ if (mode & S_IXUSR) perms |= APR_UEXECUTE;
+ if (mode & S_IWUSR) perms |= APR_UWRITE;
+ if (mode & S_IRUSR) perms |= APR_UREAD;
+ if (mode & S_ISVTX) perms |= APR_WSTICKY;
+ if (mode & S_ISGID) perms |= APR_GSETID;
+ if (mode & S_ISUID) perms |= APR_USETID;
+
+ return perms;
+}
+
--- /dev/null
+/*
+ * ModSecurity for Apache 2.x, http://www.modsecurity.org/
+ * Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
+ *
+ * This product is released under the terms of the General Public Licence,
+ * version 2 (GPLv2). Please refer to the file LICENSE (included with this
+ * distribution) which contains the complete text of the licence.
+ *
+ * There are special exceptions to the terms and conditions of the GPL
+ * as it is applied to this software. View the full text of the exception in
+ * file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
+ * distribution.
+ *
+ * If any of the files related to licensing are missing or if you have any
+ * other questions related to licensing please contact Breach Security, Inc.
+ * directly using the email address support@breach.com.
+ *
+ */
+#ifndef _UTIL_H_
+#define _UTIL_H_
+
+#include <sys/types.h>
+#include <apr_file_info.h>
+
+#include "modsecurity.h"
+
+int DSOLOCAL normalise_path_inplace(unsigned char *input, int len, int win, int *changed);
+
+int DSOLOCAL parse_boolean(const char *input);
+
+int DSOLOCAL parse_name_eq_value(apr_pool_t *mp, const char *input, char **name, char **value);
+
+char DSOLOCAL *url_encode(apr_pool_t *mp, char *input, unsigned int input_len, int *changed);
+
+char DSOLOCAL *strnurlencat(char *destination, char *source, unsigned int maxlen);
+
+char DSOLOCAL *file_dirname(apr_pool_t *p, const char *filename);
+
+char DSOLOCAL *file_basename(apr_pool_t *p, const char *filename);
+
+int DSOLOCAL hex2bytes_inplace(unsigned char *data, int len);
+
+char DSOLOCAL *bytes2hex(apr_pool_t *pool, unsigned char *data, int len);
+
+int DSOLOCAL is_token_char(unsigned char c);
+
+int DSOLOCAL remove_lf_crlf_inplace(char *text);
+
+unsigned char DSOLOCAL x2c(unsigned char *what);
+
+unsigned char DSOLOCAL xsingle2c(unsigned char *what);
+
+char DSOLOCAL *guess_tmp_dir(apr_pool_t *p);
+
+char DSOLOCAL *current_logtime(apr_pool_t *mp);
+
+char DSOLOCAL *current_filetime(apr_pool_t *mp);
+
+int DSOLOCAL msc_mkstemp_ex(char *template, int mode);
+
+int DSOLOCAL msc_mkstemp(char *template);
+
+char DSOLOCAL *strtolower_inplace(unsigned char *str);
+
+unsigned char DSOLOCAL *c2x(unsigned what, unsigned char *where);
+
+char DSOLOCAL *log_escape(apr_pool_t *p, const char *text);
+
+char DSOLOCAL *log_escape_nq(apr_pool_t *p, const char *text);
+
+char DSOLOCAL *log_escape_ex(apr_pool_t *p, const char *text, unsigned long int text_length);
+
+char DSOLOCAL *log_escape_nq_ex(apr_pool_t *p, const char *text, unsigned long int text_length);
+
+char DSOLOCAL *log_escape_header_name(apr_pool_t *p, const char *text);
+
+char DSOLOCAL *log_escape_hex(apr_pool_t *mp, const unsigned char *text, unsigned long int text_length);
+
+char DSOLOCAL *log_escape_raw(apr_pool_t *mp, const unsigned char *text, unsigned long int text_length);
+
+char DSOLOCAL *_log_escape(apr_pool_t *p, const unsigned char *input,
+ unsigned long int input_length, int escape_quotes, int escape_colon);
+
+int DSOLOCAL js_decode_nonstrict_inplace(unsigned char *input, long int input_len);
+
+int DSOLOCAL urldecode_uni_nonstrict_inplace_ex(unsigned char *input, long int input_length, int * changed);
+
+int DSOLOCAL urldecode_nonstrict_inplace_ex(unsigned char *input, long int input_length, int *invalid_count, int *changed);
+
+int DSOLOCAL html_entities_decode_inplace(apr_pool_t *mp, unsigned char *input, int len);
+
+int DSOLOCAL ansi_c_sequences_decode_inplace(unsigned char *input, int len);
+
+char DSOLOCAL *modsec_build(apr_pool_t *mp);
+
+int DSOLOCAL is_empty_string(const char *string);
+
+char DSOLOCAL *resolve_relative_path(apr_pool_t *pool, const char *parent_filename, const char *filename);
+
+int DSOLOCAL css_decode_inplace(unsigned char *input, long int input_len);
+
+apr_fileperms_t DSOLOCAL mode2fileperms(int mode);
+
+#endif
--- /dev/null
+/*
+ * ModSecurity for Apache 2.x, http://www.modsecurity.org/
+ * Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
+ *
+ * This product is released under the terms of the General Public Licence,
+ * version 2 (GPLv2). Please refer to the file LICENSE (included with this
+ * distribution) which contains the complete text of the licence.
+ *
+ * There are special exceptions to the terms and conditions of the GPL
+ * as it is applied to this software. View the full text of the exception in
+ * file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
+ * distribution.
+ *
+ * If any of the files related to licensing are missing or if you have any
+ * other questions related to licensing please contact Breach Security, Inc.
+ * directly using the email address support@breach.com.
+ *
+ */
+#include "msc_xml.h"
+
+
+/**
+ * Initialise XML parser.
+ */
+int xml_init(modsec_rec *msr, char **error_msg) {
+ if (error_msg == NULL) return -1;
+ *error_msg = NULL;
+
+ msr->xml = apr_pcalloc(msr->mp, sizeof(xml_data));
+ if (msr->xml == NULL) return -1;
+
+ return 1;
+}
+
+#if 0
+static void xml_receive_sax_error(void *data, const char *msg, ...) {
+ modsec_rec *msr = (modsec_rec *)data;
+ char message[256];
+
+ if (msr == NULL) return;
+
+ apr_snprintf(message, sizeof(message), "%s (line %d offset %d)",
+ log_escape_nq(msr->mp, msr->xml->parsing_ctx->lastError.message),
+ msr->xml->parsing_ctx->lastError.line,
+ msr->xml->parsing_ctx->lastError.int2);
+
+ msr_log(msr, 5, "XML: Parsing error: %s", message);
+}
+#endif
+
+/**
+ * Feed one chunk of data to the XML parser.
+ */
+int xml_process_chunk(modsec_rec *msr, const char *buf, unsigned int size, char **error_msg) {
+ if (error_msg == NULL) return -1;
+ *error_msg = NULL;
+
+ /* We want to initialise our parsing context here, to
+ * enable us to pass it the first chunk of data so that
+ * it can attempt to auto-detect the encoding.
+ */
+ if (msr->xml->parsing_ctx == NULL) {
+
+ /* First invocation. */
+
+ msr_log(msr, 4, "XML: Initialising parser.");
+
+ /* NOTE When Sax interface is used libxml will not
+ * create the document object, but we need it.
+
+ msr->xml->sax_handler = (xmlSAXHandler *)apr_pcalloc(msr->mp, sizeof(xmlSAXHandler));
+ if (msr->xml->sax_handler == NULL) return -1;
+ msr->xml->sax_handler->error = xml_receive_sax_error;
+ msr->xml->sax_handler->warning = xml_receive_sax_error;
+ msr->xml->parsing_ctx = xmlCreatePushParserCtxt(msr->xml->sax_handler, msr,
+ buf, size, "body.xml");
+
+ */
+
+ msr->xml->parsing_ctx = xmlCreatePushParserCtxt(NULL, NULL, buf, size, "body.xml");
+ if (msr->xml->parsing_ctx == NULL) {
+ *error_msg = apr_psprintf(msr->mp, "XML: Failed to create parsing context.");
+ return -1;
+ }
+ } else {
+
+ /* Not a first invocation. */
+
+ xmlParseChunk(msr->xml->parsing_ctx, buf, size, 0);
+ if (msr->xml->parsing_ctx->wellFormed != 1) {
+ *error_msg = apr_psprintf(msr->mp, "XML: Failed parsing document.");
+ return -1;
+ }
+ }
+
+ return 1;
+}
+
+/**
+ * Finalise XML parsing.
+ */
+int xml_complete(modsec_rec *msr, char **error_msg) {
+ if (error_msg == NULL) return -1;
+ *error_msg = NULL;
+
+ /* Only if we have a context, meaning we've done some work. */
+ if (msr->xml->parsing_ctx != NULL) {
+ /* This is how we signalise the end of parsing to libxml. */
+ xmlParseChunk(msr->xml->parsing_ctx, NULL, 0, 1);
+
+ /* Preserve the results for our reference. */
+ msr->xml->well_formed = msr->xml->parsing_ctx->wellFormed;
+ msr->xml->doc = msr->xml->parsing_ctx->myDoc;
+
+ /* Clean up everything else. */
+ xmlFreeParserCtxt(msr->xml->parsing_ctx);
+ msr->xml->parsing_ctx = NULL;
+ msr_log(msr, 4, "XML: Parsing complete (well_formed %u).", msr->xml->well_formed);
+
+ if (msr->xml->well_formed != 1) {
+ *error_msg = apr_psprintf(msr->mp, "XML: Failed parsing document.");
+ return -1;
+ }
+ }
+
+ return 1;
+}
+
+/**
+ * Frees the resources used for XML parsing.
+ */
+apr_status_t xml_cleanup(modsec_rec *msr) {
+ if (msr->xml->doc != NULL) {
+ xmlFreeDoc(msr->xml->doc);
+ msr->xml->doc = NULL;
+ }
+
+ return 1;
+}
--- /dev/null
+/*
+ * ModSecurity for Apache 2.x, http://www.modsecurity.org/
+ * Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
+ *
+ * This product is released under the terms of the General Public Licence,
+ * version 2 (GPLv2). Please refer to the file LICENSE (included with this
+ * distribution) which contains the complete text of the licence.
+ *
+ * There are special exceptions to the terms and conditions of the GPL
+ * as it is applied to this software. View the full text of the exception in
+ * file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
+ * distribution.
+ *
+ * If any of the files related to licensing are missing or if you have any
+ * other questions related to licensing please contact Breach Security, Inc.
+ * directly using the email address support@breach.com.
+ *
+ */
+#ifndef _MSC_XML_H_
+#define _MSC_XML_H_
+
+typedef struct xml_data xml_data;
+
+#include "modsecurity.h"
+#include <libxml/xmlschemas.h>
+#include <libxml/xpath.h>
+
+/* Structures */
+
+struct xml_data {
+ xmlSAXHandler *sax_handler;
+ xmlParserCtxtPtr parsing_ctx;
+ xmlDocPtr doc;
+
+ unsigned int well_formed;
+};
+
+/* Functions */
+
+int DSOLOCAL xml_init(modsec_rec *msr, char **error_msg);
+
+int DSOLOCAL xml_process_chunk(modsec_rec *msr, const char *buf,
+ unsigned int size, char **error_msg);
+
+int DSOLOCAL xml_complete(modsec_rec *msr, char **error_msg);
+
+apr_status_t DSOLOCAL xml_cleanup(modsec_rec *msr);
+
+#endif
--- /dev/null
+/*
+ * ModSecurity for Apache 2.x, http://www.modsecurity.org/
+ * Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
+ *
+ * This product is released under the terms of the General Public Licence,
+ * version 2 (GPLv2). Please refer to the file LICENSE (included with this
+ * distribution) which contains the complete text of the licence.
+ *
+ * There are special exceptions to the terms and conditions of the GPL
+ * as it is applied to this software. View the full text of the exception in
+ * file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
+ * distribution.
+ *
+ * If any of the files related to licensing are missing or if you have any
+ * other questions related to licensing please contact Breach Security, Inc.
+ * directly using the email address support@breach.com.
+ *
+ */
+#include "modsecurity.h"
+#include "apache2.h"
+#include "pdf_protect.h"
+
+#include <ctype.h>
+#include "apr_sha1.h"
+
+#define DEFAULT_TIMEOUT 10
+#define DEFAULT_TOKEN_NAME "PDFPTOKEN"
+#define ATTACHMENT_MIME_TYPE "application/octet-stream"
+#define NOTE_TWEAK_HEADERS "pdfp-note-tweakheaders"
+#define NOTE_DONE "pdfp-note-done"
+#define REDIRECT_STATUS HTTP_TEMPORARY_REDIRECT
+#define DISPOSITION_VALUE "attachment;"
+
+// TODO We need ID and REV values for the PDF XSS alert.
+
+// TODO It would be nice if the user could choose the ID/REV/SEVERITY/MESSAGE, etc.
+
+static char *encode_sha1_base64(apr_pool_t *mp, const char *data) {
+ unsigned char digest[APR_SHA1_DIGESTSIZE];
+ apr_sha1_ctx_t context;
+
+ /* Calculate the hash first. */
+ apr_sha1_init(&context);
+ apr_sha1_update(&context, data, strlen(data));
+ apr_sha1_final(digest, &context);
+
+ /* Now transform with transport-friendly hex encoding. */
+ return bytes2hex(mp, digest, APR_SHA1_DIGESTSIZE);
+}
+
+static char *create_hash(modsec_rec *msr,
+ const char *time_string)
+{
+ const char *content = NULL;
+
+ if (msr->txcfg->pdfp_secret == NULL) {
+ msr_log(msr, 1, "PdfProtect: Unable to generate hash. Please configure SecPdfProtectSecret.");
+ return NULL;
+ }
+
+ /* Our protection token is made out of the client's IP
+ * address, the secret key, and the token expiry time.
+ */
+ content = apr_pstrcat(msr->mp, msr->remote_addr, msr->txcfg->pdfp_secret,
+ time_string, NULL);
+ if (content == NULL) return NULL;
+
+ return encode_sha1_base64(msr->mp, content);
+}
+
+/**
+ *
+ */
+static char *create_token(modsec_rec *msr) {
+ apr_time_t current_time;
+ const char *time_string = NULL;
+ const char *hash = NULL;
+ int timeout = DEFAULT_TIMEOUT;
+
+ if (msr->txcfg->pdfp_timeout != -1) {
+ timeout = msr->txcfg->pdfp_timeout;
+ }
+
+ current_time = apr_time_sec(apr_time_now());
+ time_string = apr_psprintf(msr->mp, "%" APR_TIME_T_FMT, (apr_time_t)(current_time + timeout));
+ if (time_string == NULL) return NULL;
+
+ hash = create_hash(msr, time_string);
+ if (hash == NULL) return NULL;
+
+ return apr_pstrcat(msr->mp, hash, "|", time_string, NULL);
+}
+
+/**
+ *
+ */
+static char *construct_new_uri(modsec_rec *msr) {
+ const char *token_parameter = NULL;
+ const char *new_uri = NULL;
+ const char *token = NULL;
+ const char *token_name = DEFAULT_TOKEN_NAME;
+
+ token = create_token(msr);
+ if (token == NULL) return NULL;
+
+ if (msr->txcfg->pdfp_token_name != NULL) {
+ token_name = msr->txcfg->pdfp_token_name;
+ }
+
+ token_parameter = apr_pstrcat(msr->mp, token_name, "=", token, NULL);
+ if (token_parameter == NULL) return NULL;
+
+ if (msr->r->args == NULL) { /* No other parameters. */
+ new_uri = apr_pstrcat(msr->mp, msr->r->uri, "?", token_parameter, "#PDFP", NULL);
+ } else { /* Preserve existing paramters. */
+ new_uri = apr_pstrcat(msr->mp, msr->r->uri, "?", msr->r->args, "&",
+ token_parameter, "#PDFP", NULL);
+ }
+
+ return (char *)new_uri;
+}
+
+/**
+ *
+ */
+static char *extract_token(modsec_rec *msr) {
+ char *search_string = NULL;
+ char *p = NULL, *t = NULL;
+ const char *token_name = DEFAULT_TOKEN_NAME;
+
+ if ((msr->r == NULL)||(msr->r->args == NULL)) {
+ return NULL;
+ }
+
+ if (msr->txcfg->pdfp_token_name != NULL) {
+ token_name = msr->txcfg->pdfp_token_name;
+ }
+
+ search_string = apr_pstrcat(msr->mp, msr->txcfg->pdfp_token_name, "=", NULL);
+ if (search_string == NULL) return NULL;
+
+ p = strstr(msr->r->args, search_string);
+ if (p == NULL) return NULL;
+
+ t = p = p + strlen(search_string);
+ while ((*t != '\0')&&(*t != '&')) t++;
+
+ return apr_pstrmemdup(msr->mp, p, t - p);
+}
+
+/**
+ *
+ */
+static int validate_time_string(const char *time_string) {
+ char *p = (char *)time_string;
+
+ while(*p != '\0') {
+ if (!isdigit(*p)) return 0;
+ p++;
+ }
+
+ return 1;
+}
+
+/**
+ *
+ */
+static int verify_token(modsec_rec *msr, const char *token, char **error_msg) {
+ unsigned int current_time, expiry_time;
+ const char *time_string = NULL;
+ const char *given_hash = NULL;
+ const char *hash = NULL;
+ const char *p = NULL;
+
+ if (error_msg == NULL) return 0;
+ *error_msg = NULL;
+
+ /* Split token into its parts - hash and expiry time. */
+ p = strstr(token, "|");
+ if (p == NULL) return 0;
+
+ given_hash = apr_pstrmemdup(msr->mp, token, p - token);
+ time_string = p + 1;
+ if (!validate_time_string(time_string)) {
+ *error_msg = apr_psprintf(msr->mp, "PdfProtect: Invalid time string: %s",
+ log_escape_nq(msr->mp, time_string));
+ return 0;
+ }
+ expiry_time = atoi(time_string);
+
+ /* Check the hash. */
+ hash = create_hash(msr, time_string);
+ if (strcmp(given_hash, hash) != 0) {
+ *error_msg = apr_psprintf(msr->mp, "PdfProtect: Invalid hash: %s (expected %s)",
+ log_escape_nq(msr->mp, given_hash), log_escape_nq(msr->mp, hash));
+ return 0;
+ }
+
+ /* Check time. */
+ current_time = apr_time_sec(apr_time_now());
+ if (current_time > expiry_time) {
+ *error_msg = apr_psprintf(msr->mp, "PdfProtect: Token has expired.");
+ return 0;
+ }
+
+ return 1;
+}
+
+/**
+ *
+ */
+apr_status_t pdfp_output_filter(ap_filter_t *f, apr_bucket_brigade *bb_in) {
+ modsec_rec *msr = (modsec_rec *)f->ctx;
+
+ if (msr == NULL) {
+ ap_log_error(APLOG_MARK, APLOG_ERR | APLOG_NOERRNO, 0, f->r->server,
+ "ModSecurity: Internal Error: Unable to retrieve context in PDF output filter.");
+
+ ap_remove_output_filter(f);
+
+ return send_error_bucket(msr, f, HTTP_INTERNAL_SERVER_ERROR);
+ }
+
+ if (msr->txcfg->pdfp_enabled == 1) {
+ // TODO Should we look at err_headers_out too?
+ const char *h_content_type = apr_table_get(f->r->headers_out, "Content-Type");
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "PdfProtect: r->content_type=%s, header C-T=%s",
+ log_escape_nq(msr->mp, f->r->content_type),
+ log_escape_nq(msr->mp, h_content_type));
+ }
+
+ /* Have we been asked to tweak the headers? */
+ if (apr_table_get(f->r->notes, NOTE_TWEAK_HEADERS) != NULL) {
+ /* Yes! */
+ apr_table_set(f->r->headers_out, "Content-Disposition", DISPOSITION_VALUE);
+ f->r->content_type = ATTACHMENT_MIME_TYPE;
+ }
+
+ /* Check if we've already done the necessary work in
+ * the first phase.
+ */
+ if (apr_table_get(f->r->notes, NOTE_DONE) != NULL) {
+ /* We have, so return straight away. */
+ ap_remove_output_filter(f);
+ return ap_pass_brigade(f->next, bb_in);
+ }
+
+ /* Proceed to detect dynamically-generated PDF files. */
+
+ // TODO application/x-pdf, application/vnd.fdf, application/vnd.adobe.xfdf,
+ // application/vnd.adobe.xdp+xml, application/vnd.adobe.xfd+xml, application/vnd.pdf
+ // application/acrobat, text/pdf, text/x-pdf ???
+ if (((f->r->content_type != NULL)&&(strcasecmp(f->r->content_type, "application/pdf") == 0))
+ || ((h_content_type != NULL)&&(strcasecmp(h_content_type, "application/pdf") == 0)))
+ {
+ request_rec *r = f->r;
+ const char *token = NULL;
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "PdfProtect: Detected a dynamically-generated PDF in %s",
+ log_escape_nq(msr->mp, r->uri));
+ }
+
+ /* If we are configured with ForcedDownload protection method then we
+ * can do our thing here and finish early.
+ */
+ if (msr->txcfg->pdfp_method == PDF_PROTECT_METHOD_FORCED_DOWNLOAD) {
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "PdfProtect: Forcing download of a dynamically "
+ "generated PDF file.");
+ }
+
+ apr_table_set(f->r->headers_out, "Content-Disposition", DISPOSITION_VALUE);
+ f->r->content_type = ATTACHMENT_MIME_TYPE;
+
+ ap_remove_output_filter(f);
+
+ return ap_pass_brigade(f->next, bb_in);
+ }
+
+ /* If we are here that means TokenRedirection is the desired protection method. */
+
+ /* Is this a non-GET request? */
+ if ((f->r->method_number != M_GET)&&
+ ((msr->txcfg->pdfp_only_get == 1)||(msr->txcfg->pdfp_only_get == -1))
+ ) {
+ /* This is a non-GET request and we have been configured
+ * not to intercept it. So we are going to tweak the headers
+ * to force download.
+ */
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "PdfProtect: Forcing download of a dynamically "
+ "generated PDF file and non-GET method.");
+ }
+
+ apr_table_set(f->r->headers_out, "Content-Disposition", DISPOSITION_VALUE);
+ f->r->content_type = ATTACHMENT_MIME_TYPE;
+
+ ap_remove_output_filter(f);
+
+ return ap_pass_brigade(f->next, bb_in);
+ }
+
+ /* Locate the protection token. */
+ token = extract_token(msr);
+
+ if (token == NULL) { /* No token. */
+ char *new_uri = NULL;
+
+ /* Create a new URI with the protection token inside. */
+ new_uri = construct_new_uri(msr);
+ if (new_uri != NULL) {
+ /* Redirect user to the new URI. */
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "PdfProtect: PDF request without a token - "
+ "redirecting to %s.", log_escape_nq(msr->mp, new_uri));
+ }
+
+ apr_table_set(r->headers_out, "Location", new_uri);
+
+ ap_remove_output_filter(f);
+
+ return send_error_bucket(msr, f, REDIRECT_STATUS);
+ }
+ } else { /* Token found. */
+ char *my_error_msg = NULL;
+
+ /* Verify the token is valid. */
+
+ if (verify_token(msr, token, &my_error_msg)) { /* Valid. */
+ /* Do nothing - serve the PDF file. */
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "PdfProtect: PDF request with a valid token "
+ "- serving PDF file normally.");
+ }
+
+ /* Fall through. */
+ } else { /* Not valid. */
+ /* The token is not valid. We will tweak the response
+ * to prevent the PDF file from opening in the browser.
+ */
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 9, "PdfProtect: PDF request with an invalid token "
+ "- serving file as attachment.");
+ }
+
+ apr_table_set(r->headers_out, "Content-Disposition", DISPOSITION_VALUE);
+ r->content_type = ATTACHMENT_MIME_TYPE;
+
+ /* Fall through. */
+ }
+ }
+ }
+ }
+
+ ap_remove_output_filter(f);
+
+ return ap_pass_brigade(f->next, bb_in);
+}
+
+/**
+ *
+ */
+int pdfp_check(modsec_rec *msr) {
+ const char *token = NULL;
+ char *uri = NULL;
+ char *p = NULL;
+
+ if (msr->txcfg->pdfp_enabled != 1) {
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "PdfProtect: Not enabled here.");
+ }
+
+ return 0;
+ }
+
+ if (msr->txcfg->pdfp_method != PDF_PROTECT_METHOD_TOKEN_REDIRECTION) {
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "PdfProtect: Configured with ForcedDownload as protection method, "
+ "skipping detection on the inbound.");
+ }
+
+ return 0;
+ }
+
+ /* Then determine whether we need to act at
+ * all. If the request is not for a PDF file
+ * return straight away.
+ */
+
+ if (msr->r->uri == NULL) {
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "PdfProtect: Unable to inspect URI because it is NULL.");
+ }
+
+ return -1; /* Error. */
+ }
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "PdfProtect: URI=%s, filename=%s, QUERY_STRING=%s.",
+ log_escape_nq(msr->mp, msr->r->uri), log_escape_nq(msr->mp, msr->r->filename),
+ log_escape_nq(msr->mp, msr->r->args));
+ }
+
+ uri = apr_pstrdup(msr->mp, msr->r->uri);
+ if (uri == NULL) return -1; /* Error. */
+ ap_str_tolower(uri);
+
+ /* Attempt to figure out if this is a request for a PDF file. We are
+ * going to be liberal and look for the extension anywhere in the URI,
+ * not just at the end.
+ */
+ p = strstr(uri, ".pdf");
+ if (p == NULL) {
+ /* We do not think this is a PDF file. */
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "PdfProtect: No indication in the URI this is a "
+ "request for a PDF file.");
+ }
+
+ return 0;
+ }
+
+ /* Ignore request methods other than GET and HEAD if
+ * configured to do so.
+ *
+ * TODO: Code here is only GET, not GET|HEAD as comment states
+ */
+ if ((msr->r->method_number != M_GET)&&(msr->txcfg->pdfp_only_get != 0)) {
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "PdfProtect: Not intercepting request "
+ "(method=%s/%d).", log_escape_nq(msr->mp, msr->r->method), msr->r->method_number);
+ }
+
+ return 0;
+ }
+
+ /* We make a note for ourselves that we've already handled
+ * the request.
+ */
+ apr_table_set(msr->r->notes, NOTE_DONE, "1");
+
+ /* Locate the protection token. */
+ token = extract_token(msr);
+
+ if (token == NULL) { /* No token. */
+ char *new_uri = NULL;
+
+ /* Create a new URI with the protection token inside. */
+ new_uri = construct_new_uri(msr);
+ if (new_uri == NULL) return DECLINED;
+
+ /* Redirect user to the new URI. */
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "PdfProtect: PDF request without a token - redirecting to %s.",
+ log_escape_nq(msr->mp, new_uri));
+ }
+
+ apr_table_set(msr->r->headers_out, "Location", new_uri);
+
+ return REDIRECT_STATUS;
+ } else { /* Token found. */
+ char *my_error_msg = NULL;
+
+ /* Verify the token is valid. */
+ if (verify_token(msr, token, &my_error_msg)) { /* Valid. */
+ /* Do nothing - serve the PDF file. */
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "PdfProtect: PDF request with a valid token - "
+ "serving PDF file normally.");
+ }
+
+ return 0;
+ } else { /* Not valid. */
+ /* The token is not valid. We will tweak the response
+ * to prevent the PDF file from opening in the browser.
+ */
+
+ // TODO Log alert
+
+ /* Changing response headers before response generation phase takes
+ * place is not really reliable. Although we do this we also make
+ * a note for ourselves (in the output filter) to check the headers
+ * again just before they are sent back to the end user.
+ */
+ apr_table_set(msr->r->headers_out, "Content-Disposition", DISPOSITION_VALUE);
+ msr->r->content_type = ATTACHMENT_MIME_TYPE;
+ apr_table_set(msr->r->notes, NOTE_TWEAK_HEADERS, "1");
+
+ /* Proceed with response (PDF) generation. */
+ return 0;
+ }
+ }
+
+ return 0;
+}
--- /dev/null
+/*
+ * ModSecurity for Apache 2.x, http://www.modsecurity.org/
+ * Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
+ *
+ * This product is released under the terms of the General Public Licence,
+ * version 2 (GPLv2). Please refer to the file LICENSE (included with this
+ * distribution) which contains the complete text of the licence.
+ *
+ * There are special exceptions to the terms and conditions of the GPL
+ * as it is applied to this software. View the full text of the exception in
+ * file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
+ * distribution.
+ *
+ * If any of the files related to licensing are missing or if you have any
+ * other questions related to licensing please contact Breach Security, Inc.
+ * directly using the email address support@breach.com.
+ *
+ */
+#ifndef _PDF_PROTECT_H_
+#define _PDF_PROTECT_H_
+
+#define PDF_PROTECT_METHOD_TOKEN_REDIRECTION 1
+#define PDF_PROTECT_METHOD_FORCED_DOWNLOAD 2
+
+apr_status_t DSOLOCAL pdfp_output_filter(ap_filter_t *f, apr_bucket_brigade *bb_in);
+
+int DSOLOCAL pdfp_check(modsec_rec *msr);
+
+#endif
--- /dev/null
+/*
+ * ModSecurity for Apache 2.x, http://www.modsecurity.org/
+ * Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
+ *
+ * This product is released under the terms of the General Public Licence,
+ * version 2 (GPLv2). Please refer to the file LICENSE (included with this
+ * distribution) which contains the complete text of the licence.
+ *
+ * There are special exceptions to the terms and conditions of the GPL
+ * as it is applied to this software. View the full text of the exception in
+ * file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
+ * distribution.
+ *
+ * If any of the files related to licensing are missing or if you have any
+ * other questions related to licensing please contact Breach Security, Inc.
+ * directly using the email address support@breach.com.
+ *
+ */
+#include "persist_dbm.h"
+#include "apr_sdbm.h"
+
+/**
+ *
+ */
+static apr_table_t *collection_unpack(modsec_rec *msr, const unsigned char *blob, unsigned int blob_size,
+ int log_vars)
+{
+ apr_table_t *col = NULL;
+ unsigned int blob_offset;
+
+ col = apr_table_make(msr->mp, 32);
+ if (col == NULL) return NULL;
+
+ /* ENH verify the first 3 bytes (header) */
+
+ blob_offset = 3;
+ while (blob_offset + 1 < blob_size) {
+ msc_string *var = apr_pcalloc(msr->mp, sizeof(msc_string));
+
+ var->name_len = (blob[blob_offset] << 8) + blob[blob_offset + 1];
+ if (var->name_len == 0) {
+ /* Is the length a name length, or just the end of the blob? */
+ if (blob_offset < blob_size - 2) {
+ /* This should never happen as the name length
+ * includes the terminating NUL and should be 1 for ""
+ */
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "BLOB[%d]: %s", blob_offset, log_escape_hex(msr->mp, blob + blob_offset, blob_size - blob_offset));
+ }
+ msr_log(msr, 4, "Possibly corrupted database: var name length = 0 at blob offset %u-%u.", blob_offset, blob_offset + 1);
+ }
+ break;
+ }
+ else if (var->name_len > 65536) {
+ /* This should never happen as the length is restricted on store
+ * to 65536.
+ */
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "BLOB[%d]: %s", blob_offset, log_escape_hex(msr->mp, blob + blob_offset, blob_size - blob_offset));
+ }
+ msr_log(msr, 4, "Possibly corrupted database: var name length > 65536 (0x%04x) at blob offset %u-%u.", var->name_len, blob_offset, blob_offset + 1);
+ break;
+ }
+
+ blob_offset += 2;
+ if (blob_offset + var->name_len > blob_size) return NULL;
+ var->name = apr_pstrmemdup(msr->mp, (const char *)blob + blob_offset, var->name_len - 1);
+ blob_offset += var->name_len;
+ var->name_len--;
+
+ var->value_len = (blob[blob_offset] << 8) + blob[blob_offset + 1];
+ blob_offset += 2;
+
+ if (blob_offset + var->value_len > blob_size) return NULL;
+ var->value = apr_pstrmemdup(msr->mp, (const char *)blob + blob_offset, var->value_len - 1);
+ blob_offset += var->value_len;
+ var->value_len--;
+
+ if (log_vars && (msr->txcfg->debuglog_level >= 9)) {
+ msr_log(msr, 9, "Read variable: name \"%s\", value \"%s\".",
+ log_escape_ex(msr->mp, var->name, var->name_len),
+ log_escape_ex(msr->mp, var->value, var->value_len));
+ }
+
+ apr_table_addn(col, var->name, (void *)var);
+ }
+
+ return col;
+}
+
+/**
+ *
+ */
+static apr_table_t *collection_retrieve_ex(apr_sdbm_t *existing_dbm, modsec_rec *msr, const char *col_name,
+ const char *col_key, int col_key_len)
+{
+ char *dbm_filename = NULL;
+ apr_status_t rc;
+ apr_sdbm_datum_t key;
+ apr_sdbm_datum_t *value = NULL;
+ apr_sdbm_t *dbm = NULL;
+ apr_table_t *col = NULL;
+ const apr_array_header_t *arr;
+ apr_table_entry_t *te;
+ int expired = 0;
+ int i;
+
+ if (msr->txcfg->data_dir == NULL) {
+ msr_log(msr, 1, "Unable to retrieve collection (name \"%s\", key \"%s\"). Use "
+ "SecDataDir to define data directory first.", log_escape(msr->mp, col_name),
+ log_escape_ex(msr->mp, col_key, col_key_len));
+ goto cleanup;
+ }
+
+ dbm_filename = apr_pstrcat(msr->mp, msr->txcfg->data_dir, "/", col_name, NULL);
+
+ key.dptr = (char *)col_key;
+ key.dsize = col_key_len + 1;
+
+ if (existing_dbm == NULL) {
+ rc = apr_sdbm_open(&dbm, dbm_filename, APR_READ | APR_SHARELOCK,
+ CREATEMODE, msr->mp);
+ if (rc != APR_SUCCESS) {
+ dbm = NULL;
+ goto cleanup;
+ }
+ }
+ else {
+ dbm = existing_dbm;
+ }
+
+ value = (apr_sdbm_datum_t *)apr_pcalloc(msr->mp, sizeof(apr_sdbm_datum_t));
+ rc = apr_sdbm_fetch(dbm, value, key);
+ if (rc != APR_SUCCESS) {
+ msr_log(msr, 1, "Failed to read from DBM file \"%s\": %s", log_escape(msr->mp,
+ dbm_filename), get_apr_error(msr->mp, rc));
+ goto cleanup;
+ }
+
+ if (value->dptr == NULL) { /* Key not found in DBM file. */
+ goto cleanup;
+ }
+
+ /* ENH Need expiration (and perhaps other metadata) accessible in blob
+ * form to determine if converting to a table is needed. This will
+ * save some cycles.
+ */
+
+ /* Transform raw data into a table. */
+ col = collection_unpack(msr, (const unsigned char *)value->dptr, value->dsize, 1);
+ if (col == NULL) {
+ goto cleanup;
+ }
+
+ /* Close after "value" used from fetch or memory may be overwritten. */
+ if (existing_dbm == NULL) {
+ apr_sdbm_close(dbm);
+ dbm = NULL;
+ }
+
+ /* Remove expired variables. */
+ do {
+ arr = apr_table_elts(col);
+ te = (apr_table_entry_t *)arr->elts;
+ for (i = 0; i < arr->nelts; i++) {
+ if (strncmp(te[i].key, "__expire_", 9) == 0) {
+ msc_string *var = (msc_string *)te[i].val;
+ int expiry_time = atoi(var->value);
+
+ if (expiry_time <= apr_time_sec(msr->request_time)) {
+ char *key_to_expire = te[i].key;
+
+ /* Done early if the col expired */
+ if (strcmp(key_to_expire, "__expire_KEY") == 0) {
+ expired = 1;
+ }
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Removing key \"%s\" from collection.", key_to_expire + 9);
+ msr_log(msr, 9, "Removing key \"%s\" from collection.", key_to_expire);
+ }
+ apr_table_unset(col, key_to_expire + 9);
+ apr_table_unset(col, key_to_expire);
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Removed expired variable \"%s\".", key_to_expire + 9);
+ }
+ break;
+ }
+ }
+ }
+ } while(!expired && (i != arr->nelts));
+
+ /* Delete the collection if the variable "KEY" does not exist.
+ *
+ * ENH It would probably be more efficient to hold the DBM
+ * open until determined if it needs deleted than to open a second
+ * time.
+ */
+ if (apr_table_get(col, "KEY") == NULL) {
+ if (existing_dbm == NULL) {
+ rc = apr_sdbm_open(&dbm, dbm_filename, APR_CREATE | APR_WRITE | APR_SHARELOCK,
+ CREATEMODE, msr->mp);
+ if (rc != APR_SUCCESS) {
+ msr_log(msr, 1, "Failed to access DBM file \"%s\": %s",
+ log_escape(msr->mp, dbm_filename), get_apr_error(msr->mp, rc));
+ dbm = NULL;
+ goto cleanup;
+ }
+ }
+ else {
+ dbm = existing_dbm;
+ }
+
+ rc = apr_sdbm_delete(dbm, key);
+ if (rc != APR_SUCCESS) {
+ msr_log(msr, 1, "Failed deleting collection (name \"%s\", "
+ "key \"%s\"): %s", log_escape(msr->mp, col_name),
+ log_escape_ex(msr->mp, col_key, col_key_len), get_apr_error(msr->mp, rc));
+ goto cleanup;
+ }
+
+
+ if (existing_dbm == NULL) {
+ apr_sdbm_close(dbm);
+ dbm = NULL;
+ }
+
+ if (expired && (msr->txcfg->debuglog_level >= 9)) {
+ msr_log(msr, 9, "Collection expired (name \"%s\", key \"%s\").", col_name, log_escape_ex(msr->mp, col_key, col_key_len));
+ }
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Deleted collection (name \"%s\", key \"%s\").",
+ log_escape(msr->mp, col_name), log_escape_ex(msr->mp, col_key, col_key_len));
+ }
+ goto cleanup;
+ }
+
+ /* Update UPDATE_RATE */
+ {
+ msc_string *var;
+ int create_time, counter;
+
+ var = (msc_string *)apr_table_get(col, "CREATE_TIME");
+ if (var == NULL) {
+ /* Error. */
+ } else {
+ create_time = atoi(var->value);
+ var = (msc_string *)apr_table_get(col, "UPDATE_COUNTER");
+ if (var == NULL) {
+ /* Error. */
+ } else {
+ apr_time_t td;
+ counter = atoi(var->value);
+
+ /* UPDATE_RATE is removed on store, so add it back here */
+ var = (msc_string *)apr_pcalloc(msr->mp, sizeof(msc_string));
+ var->name = "UPDATE_RATE";
+ var->name_len = strlen(var->name);
+ apr_table_setn(col, var->name, (void *)var);
+
+ /* NOTE: No rate if there has been no time elapsed */
+ td = (apr_time_sec(apr_time_now()) - create_time);
+ if (td == 0) {
+ var->value = apr_psprintf(msr->mp, "%d", 0);
+ }
+ else {
+ var->value = apr_psprintf(msr->mp, "%" APR_TIME_T_FMT,
+ (apr_time_t)((60 * counter)/td));
+ }
+ var->value_len = strlen(var->value);
+ }
+ }
+ }
+
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Retrieved collection (name \"%s\", key \"%s\").",
+ log_escape(msr->mp, col_name), log_escape_ex(msr->mp, col_key, col_key_len));
+ }
+
+ if ((existing_dbm == NULL) && dbm) {
+ /* Should not ever get here */
+ msr_log(msr, 1, "Internal Error: Collection remained open (name \"%s\", key \"%s\").",
+ log_escape(msr->mp, col_name), log_escape_ex(msr->mp, col_key, col_key_len));
+
+ apr_sdbm_close(dbm);
+ }
+
+ return col;
+
+cleanup:
+
+ if ((existing_dbm == NULL) && dbm) {
+ apr_sdbm_close(dbm);
+ }
+
+ return NULL;
+}
+
+/**
+ *
+ */
+apr_table_t *collection_retrieve(modsec_rec *msr, const char *col_name,
+ const char *col_key, int col_key_len) {
+ return collection_retrieve_ex(NULL, msr, col_name, col_key, col_key_len);
+}
+
+
+/**
+ *
+ */
+int collection_store(modsec_rec *msr, apr_table_t *col) {
+ char *dbm_filename = NULL;
+ msc_string *var_name = NULL, *var_key = NULL;
+ unsigned char *blob = NULL;
+ unsigned int blob_size, blob_offset;
+ apr_status_t rc;
+ apr_sdbm_datum_t key;
+ apr_sdbm_datum_t value;
+ apr_sdbm_t *dbm = NULL;
+ const apr_array_header_t *arr;
+ apr_table_entry_t *te;
+ int i;
+ const apr_table_t *stored_col = NULL;
+ const apr_table_t *orig_col = NULL;
+
+ var_name = (msc_string *)apr_table_get(col, "__name");
+ if (var_name == NULL) {
+ goto error;
+ }
+
+ var_key = (msc_string *)apr_table_get(col, "__key");
+ if (var_key == NULL) {
+ goto error;
+ }
+
+ if (msr->txcfg->data_dir == NULL) {
+ msr_log(msr, 1, "Unable to store collection (name \"%s\", key \"%s\"). Use "
+ "SecDataDir to define data directory first.",
+ log_escape_ex(msr->mp, var_name->value, var_name->value_len), log_escape_ex(msr->mp, var_key->value, var_key->value_len));
+ goto error;
+ }
+
+ // ENH: lowercase the var name in the filename
+ dbm_filename = apr_pstrcat(msr->mp, msr->txcfg->data_dir, "/", var_name->value, NULL);
+
+ /* Delete IS_NEW on store. */
+ apr_table_unset(col, "IS_NEW");
+
+ /* Delete UPDATE_RATE on store to save space as it is calculated */
+ apr_table_unset(col, "UPDATE_RATE");
+
+ /* Update the timeout value. */
+ {
+ msc_string *var = (msc_string *)apr_table_get(col, "TIMEOUT");
+ if (var != NULL) {
+ int timeout = atoi(var->value);
+ var = (msc_string *)apr_table_get(col, "__expire_KEY");
+ if (var != NULL) {
+ var->value = apr_psprintf(msr->mp, "%" APR_TIME_T_FMT, (apr_time_t)(apr_time_sec(apr_time_now()) + timeout));
+ var->value_len = strlen(var->value);
+ }
+ }
+ }
+
+ /* LAST_UPDATE_TIME */
+ {
+ msc_string *var = (msc_string *)apr_table_get(col, "LAST_UPDATE_TIME");
+ if (var == NULL) {
+ var = (msc_string *)apr_pcalloc(msr->mp, sizeof(msc_string));
+ var->name = "LAST_UPDATE_TIME";
+ var->name_len = strlen(var->name);
+ apr_table_setn(col, var->name, (void *)var);
+ }
+ var->value = apr_psprintf(msr->mp, "%" APR_TIME_T_FMT, (apr_time_t)(apr_time_sec(apr_time_now())));
+ var->value_len = strlen(var->value);
+ }
+
+ /* UPDATE_COUNTER */
+ {
+ msc_string *var = (msc_string *)apr_table_get(col, "UPDATE_COUNTER");
+ int counter = 0;
+ if (var == NULL) {
+ var = (msc_string *)apr_pcalloc(msr->mp, sizeof(msc_string));
+ var->name = "UPDATE_COUNTER";
+ var->name_len = strlen(var->name);
+ apr_table_setn(col, var->name, (void *)var);
+ } else {
+ counter = atoi(var->value);
+ }
+ var->value = apr_psprintf(msr->mp, "%d", counter + 1);
+ var->value_len = strlen(var->value);
+ }
+
+ /* ENH Make the expiration timestamp accessible in blob form so that
+ * it is easier/faster to determine expiration without having to
+ * convert back to table form
+ */
+
+ rc = apr_sdbm_open(&dbm, dbm_filename, APR_CREATE | APR_WRITE | APR_SHARELOCK,
+ CREATEMODE, msr->mp);
+ if (rc != APR_SUCCESS) {
+ msr_log(msr, 1, "Failed to access DBM file \"%s\": %s", log_escape(msr->mp, dbm_filename),
+ get_apr_error(msr->mp, rc));
+ dbm = NULL;
+ goto error;
+ }
+
+ /* Need to lock to pull in the stored data again and apply deltas. */
+ rc = apr_sdbm_lock(dbm, APR_FLOCK_EXCLUSIVE);
+ if (rc != APR_SUCCESS) {
+ msr_log(msr, 1, "Failed to exclusivly lock DBM file \"%s\": %s", log_escape(msr->mp, dbm_filename),
+ get_apr_error(msr->mp, rc));
+ goto error;
+ }
+
+ /* If there is an original value, then create a delta and
+ * apply the delta to the current value */
+ orig_col = (const apr_table_t *)apr_table_get(msr->collections_original, var_name->value);
+ if (orig_col != NULL) {
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Re-retrieving collection prior to store: %s", apr_psprintf(msr->mp, "%.*s", var_name->value_len, var_name->value));
+ }
+
+ stored_col = (const apr_table_t *)collection_retrieve_ex(dbm, msr, var_name->value, var_key->value, var_key->value_len);
+ }
+
+ /* Merge deltas and calculate the size first. */
+ blob_size = 3 + 2;
+ arr = apr_table_elts(col);
+ te = (apr_table_entry_t *)arr->elts;
+ for (i = 0; i < arr->nelts; i++) {
+ msc_string *var = (msc_string *)te[i].val;
+ int len;
+
+ /* If there is an original value, then apply the delta
+ * to the latest stored value */
+ if (stored_col != NULL) {
+ const msc_string *orig_var = (const msc_string *)apr_table_get(orig_col, var->name);
+ if (orig_var != NULL) {
+ const msc_string *stored_var = (const msc_string *)apr_table_get(stored_col, var->name);
+ if (stored_var != NULL) {
+ int origval = atoi(orig_var->value);
+ int ourval = atoi(var->value);
+ int storedval = atoi(stored_var->value);
+ int delta = ourval - origval;
+ int newval = storedval + delta;
+
+ if (newval < 0) newval = 0; /* Counters never go below zero. */
+
+ var->value = apr_psprintf(msr->mp, "%d", newval);
+ var->value_len = strlen(var->value);
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Delta applied for %s.%s %d->%d (%d): %d + (%d) = %d [%s,%d]",
+ log_escape_ex(msr->mp, var_name->value, var_name->value_len),
+ log_escape_ex(msr->mp, var->name, var->name_len),
+ origval, ourval, delta, storedval, delta, newval, var->value, var->value_len);
+ }
+ }
+ }
+ }
+
+ len = var->name_len + 1;
+ if (len >= 65536) len = 65536;
+ blob_size += len + 2;
+
+ len = var->value_len + 1;
+ if (len >= 65536) len = 65536;
+ blob_size += len + 2;
+ }
+
+ /* Now generate the binary object. */
+ blob = apr_pcalloc(msr->mp, blob_size);
+ if (blob == NULL) {
+ goto error;
+ }
+
+ blob[0] = 0x49;
+ blob[1] = 0x52;
+ blob[2] = 0x01;
+
+ blob_offset = 3;
+ arr = apr_table_elts(col);
+ te = (apr_table_entry_t *)arr->elts;
+ for (i = 0; i < arr->nelts; i++) {
+ msc_string *var = (msc_string *)te[i].val;
+ int len;
+
+ len = var->name_len + 1;
+ if (len >= 65536) len = 65536;
+
+ blob[blob_offset + 0] = (len & 0xff00) >> 8;
+ blob[blob_offset + 1] = len & 0x00ff;
+ memcpy(blob + blob_offset + 2, var->name, len - 1);
+ blob[blob_offset + 2 + len - 1] = '\0';
+ blob_offset += 2 + len;
+
+ len = var->value_len + 1;
+ if (len >= 65536) len = 65536;
+
+ blob[blob_offset + 0] = (len & 0xff00) >> 8;
+ blob[blob_offset + 1] = len & 0x00ff;
+ memcpy(blob + blob_offset + 2, var->value, len - 1);
+ blob[blob_offset + 2 + len - 1] = '\0';
+ blob_offset += 2 + len;
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Wrote variable: name \"%s\", value \"%s\".",
+ log_escape_ex(msr->mp, var->name, var->name_len),
+ log_escape_ex(msr->mp, var->value, var->value_len));
+ }
+ }
+
+ blob[blob_offset] = 0;
+ blob[blob_offset + 1] = 0;
+
+ /* And, finally, store it. */
+ key.dptr = var_key->value;
+ key.dsize = var_key->value_len + 1;
+
+ value.dptr = (char *)blob;
+ value.dsize = blob_size;
+
+ rc = apr_sdbm_store(dbm, key, value, APR_SDBM_REPLACE);
+ if (rc != APR_SUCCESS) {
+ msr_log(msr, 1, "Failed to write to DBM file \"%s\": %s", dbm_filename,
+ get_apr_error(msr->mp, rc));
+ goto error;
+ }
+
+ apr_sdbm_close(dbm);
+
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Persisted collection (name \"%s\", key \"%s\").",
+ log_escape_ex(msr->mp, var_name->value, var_name->value_len), log_escape_ex(msr->mp, var_key->value, var_key->value_len));
+ }
+
+ return 0;
+
+error:
+
+ if (dbm) {
+ apr_sdbm_close(dbm);
+ }
+
+ return -1;
+}
+
+/**
+ *
+ */
+int collections_remove_stale(modsec_rec *msr, const char *col_name) {
+ char *dbm_filename = NULL;
+ apr_sdbm_datum_t key, value;
+ apr_sdbm_t *dbm = NULL;
+ apr_status_t rc;
+ apr_array_header_t *keys_arr;
+ char **keys;
+ apr_time_t now = apr_time_sec(msr->request_time);
+ int i;
+
+ if (msr->txcfg->data_dir == NULL) {
+ /* The user has been warned about this problem enough times already by now.
+ * msr_log(msr, 1, "Unable to access collection file (name \"%s\"). Use SecDataDir to "
+ * "define data directory first.", log_escape(msr->mp, col_name));
+ */
+ goto error;
+ }
+
+ dbm_filename = apr_pstrcat(msr->mp, msr->txcfg->data_dir, "/", col_name, NULL);
+
+ rc = apr_sdbm_open(&dbm, dbm_filename, APR_CREATE | APR_WRITE | APR_SHARELOCK,
+ CREATEMODE, msr->mp);
+ if (rc != APR_SUCCESS) {
+ msr_log(msr, 1, "Failed to access DBM file \"%s\": %s", log_escape(msr->mp, dbm_filename),
+ get_apr_error(msr->mp, rc));
+ dbm = NULL;
+ goto error;
+ }
+
+ /* First get a list of all keys. */
+ keys_arr = apr_array_make(msr->mp, 256, sizeof(char *));
+ rc = apr_sdbm_lock(dbm, APR_FLOCK_SHARED);
+ if (rc != APR_SUCCESS) {
+ msr_log(msr, 1, "Failed to lock DBM file \"%s\": %s", log_escape(msr->mp, dbm_filename),
+ get_apr_error(msr->mp, rc));
+ goto error;
+ }
+
+ /* No one can write to the file while doing this so
+ * do it as fast as possible.
+ */
+ rc = apr_sdbm_firstkey(dbm, &key);
+ while(rc == APR_SUCCESS) {
+ char *s = apr_pstrmemdup(msr->mp, key.dptr, key.dsize - 1);
+ *(char **)apr_array_push(keys_arr) = s;
+ rc = apr_sdbm_nextkey(dbm, &key);
+ }
+ apr_sdbm_unlock(dbm);
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Found %d record(s) in file \"%s\".", keys_arr->nelts,
+ log_escape(msr->mp, dbm_filename));
+ }
+
+ /* Now retrieve the entires one by one. */
+ keys = (char **)keys_arr->elts;
+ for (i = 0; i < keys_arr->nelts; i++) {
+ key.dptr = keys[i];
+ key.dsize = strlen(key.dptr) + 1;
+
+ rc = apr_sdbm_fetch(dbm, &value, key);
+ if (rc != APR_SUCCESS) {
+ msr_log(msr, 1, "Failed reading DBM file \"%s\": %s",
+ log_escape(msr->mp, dbm_filename), get_apr_error(msr->mp, rc));
+ goto error;
+ }
+
+ if (value.dptr != NULL) {
+ apr_table_t *col = NULL;
+ msc_string *var = NULL;
+
+ col = collection_unpack(msr, (const unsigned char *)value.dptr, value.dsize, 0);
+ if (col == NULL) {
+ goto error;
+ }
+
+ var = (msc_string *)apr_table_get(col, "__expire_KEY");
+ if (var == NULL) {
+ msr_log(msr, 1, "Collection cleanup discovered entry with no "
+ "__expire_KEY (name \"%s\", key \"%s\").",
+ log_escape(msr->mp, col_name), log_escape_ex(msr->mp, key.dptr, key.dsize - 1));
+ } else {
+ unsigned int expiry_time = atoi(var->value);
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Record (name \"%s\", key \"%s\") set to expire in %" APR_TIME_T_FMT " seconds.",
+ log_escape(msr->mp, col_name), log_escape_ex(msr->mp, key.dptr, key.dsize - 1),
+ expiry_time - now);
+ }
+
+ if (expiry_time <= now) {
+ rc = apr_sdbm_delete(dbm, key);
+ if (rc != APR_SUCCESS) {
+ msr_log(msr, 1, "Failed deleting collection (name \"%s\", "
+ "key \"%s\"): %s", log_escape(msr->mp, col_name),
+ log_escape_ex(msr->mp, key.dptr, key.dsize - 1), get_apr_error(msr->mp, rc));
+ goto error;
+ }
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Removed stale collection (name \"%s\", "
+ "key \"%s\").", log_escape(msr->mp, col_name),
+ log_escape_ex(msr->mp, key.dptr, key.dsize - 1));
+ }
+ }
+ }
+ } else {
+ /* Ignore entry not found - it may have been removed in the meantime. */
+ }
+ }
+
+ apr_sdbm_close(dbm);
+
+ return 1;
+
+error:
+
+ if (dbm) {
+ apr_sdbm_close(dbm);
+ }
+
+ return -1;
+}
--- /dev/null
+/*
+ * ModSecurity for Apache 2.x, http://www.modsecurity.org/
+ * Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
+ *
+ * This product is released under the terms of the General Public Licence,
+ * version 2 (GPLv2). Please refer to the file LICENSE (included with this
+ * distribution) which contains the complete text of the licence.
+ *
+ * There are special exceptions to the terms and conditions of the GPL
+ * as it is applied to this software. View the full text of the exception in
+ * file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
+ * distribution.
+ *
+ * If any of the files related to licensing are missing or if you have any
+ * other questions related to licensing please contact Breach Security, Inc.
+ * directly using the email address support@breach.com.
+ *
+ */
+#ifndef _PERSIST_DBM_H_
+#define _PERSIST_DBM_H_
+
+#include "apr_general.h"
+#include "modsecurity.h"
+
+apr_table_t DSOLOCAL *collection_retrieve(modsec_rec *msr, const char *col_name,
+ const char *col_value, int col_value_length);
+
+int DSOLOCAL collection_store(modsec_rec *msr, apr_table_t *collection);
+
+int DSOLOCAL collections_remove_stale(modsec_rec *msr, const char *col_name);
+
+#endif
--- /dev/null
+/*
+ * ModSecurity for Apache 2.x, http://www.modsecurity.org/
+ * Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
+ *
+ * This product is released under the terms of the General Public Licence,
+ * version 2 (GPLv2). Please refer to the file LICENSE (included with this
+ * distribution) which contains the complete text of the licence.
+ *
+ * There are special exceptions to the terms and conditions of the GPL
+ * as it is applied to this software. View the full text of the exception in
+ * file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
+ * distribution.
+ *
+ * If any of the files related to licensing are missing or if you have any
+ * other questions related to licensing please contact Breach Security, Inc.
+ * directly using the email address support@breach.com.
+ *
+ */
+#include <ctype.h>
+
+#include "re.h"
+
+#if defined(WITH_LUA)
+#include "msc_lua.h"
+#endif
+
+static const char *const severities[] = {
+ "EMERGENCY",
+ "ALERT",
+ "CRITICAL",
+ "ERROR",
+ "WARNING",
+ "NOTICE",
+ "INFO",
+ "DEBUG",
+ NULL,
+};
+
+/* -- Actions, variables, functions and operator functions ----------------- */
+
+/**
+ * Remove actions with the same cardinality group from the actionset.
+ */
+static void msre_actionset_cardinality_fixup(msre_actionset *actionset, msre_action *action) {
+ const apr_array_header_t *tarr = NULL;
+ const apr_table_entry_t *telts = NULL;
+ int i;
+
+ if ((actionset == NULL) || (action == NULL)) return;
+
+ tarr = apr_table_elts(actionset->actions);
+ telts = (const apr_table_entry_t*)tarr->elts;
+
+ for (i = 0; i < tarr->nelts; i++) {
+ msre_action *target = (msre_action *)telts[i].val;
+ if (target->metadata->cardinality_group == action->metadata->cardinality_group) {
+
+ apr_table_unset(actionset->actions, target->metadata->name);
+ }
+ }
+}
+
+/**
+ * Generate an action string from an actionset.
+ */
+char *msre_actionset_generate_action_string(apr_pool_t *pool, const msre_actionset *actionset)
+{
+ const apr_array_header_t *tarr = NULL;
+ const apr_table_entry_t *telts = NULL;
+ char *actions = NULL;
+ int chain;
+ int i;
+
+ if (actionset == NULL) return NULL;
+
+ chain = ((actionset->rule != NOT_SET_P) && actionset->rule->chain_starter) ? 1 : 0;
+
+ tarr = apr_table_elts(actionset->actions);
+ telts = (const apr_table_entry_t*)tarr->elts;
+
+ for (i = 0; i < tarr->nelts; i++) {
+ msre_action *action = (msre_action *)telts[i].val;
+ int use_quotes = 0;
+
+ if (chain) {
+ /* Skip some actions that are not used in a chain. */
+ if ( (action->metadata->type == ACTION_DISRUPTIVE)
+ || (action->metadata->type == ACTION_METADATA)
+ || (strcmp("log", action->metadata->name) == 0)
+ || (strcmp("auditlog", action->metadata->name) == 0)
+ || (strcmp("nolog", action->metadata->name) == 0)
+ || (strcmp("noauditlog", action->metadata->name) == 0)
+ || (strcmp("severity", action->metadata->name) == 0)
+ || (strcmp("tag", action->metadata->name) == 0)
+ || (strcmp("phase", action->metadata->name) == 0))
+ {
+ continue;
+ }
+ }
+
+ /* Check if we need any quotes */
+ if (action->param != NULL) {
+ int j;
+ for(j = 0; action->param[j] != '\0'; j++) {
+ if (isspace(action->param[j])) {
+ use_quotes = 1;
+ break;
+ }
+ }
+ if (j == 0) use_quotes = 1;
+ }
+
+ actions = apr_pstrcat(pool,
+ (actions == NULL) ? "" : actions,
+ (actions == NULL) ? "" : ",",
+ action->metadata->name,
+ (action->param == NULL) ? "" : ":",
+ (use_quotes) ? "'" : "",
+ (action->param == NULL) ? "" : action->param,
+ (use_quotes) ? "'" : "",
+ NULL);
+ }
+
+ return actions;
+}
+
+/**
+ * Add an action to an actionset.
+ */
+static void msre_actionset_action_add(msre_actionset *actionset, msre_action *action)
+{
+ msre_action *add_action = action;
+
+ if ((actionset == NULL)) return;
+
+ /**
+ * The "block" action is just a placeholder for the parent action.
+ */
+ if ((actionset->parent_intercept_action_rec != NULL) && (actionset->parent_intercept_action_rec != NOT_SET_P) && (strcmp("block", action->metadata->name) == 0) && (strcmp("block", action->metadata->name) == 0)) {
+ /* revert back to parent */
+ actionset->intercept_action = actionset->parent_intercept_action;
+ add_action = actionset->parent_intercept_action_rec;
+ }
+
+ if ((add_action == NULL)) return;
+
+ if (add_action->metadata->cardinality_group != ACTION_CGROUP_NONE) {
+ msre_actionset_cardinality_fixup(actionset, add_action);
+ }
+
+ if (add_action->metadata->cardinality == ACTION_CARDINALITY_ONE) {
+ /* One action per actionlist. */
+ apr_table_setn(actionset->actions, add_action->metadata->name, (void *)add_action);
+ } else {
+ /* Multiple actions per actionlist. */
+ apr_table_addn(actionset->actions, add_action->metadata->name, (void *)add_action);
+ }
+}
+
+/**
+ * Creates msre_var instances (rule variables) out of the
+ * given text string and places them into the supplied table.
+ */
+apr_status_t msre_parse_targets(msre_ruleset *ruleset, const char *text,
+ apr_array_header_t *arr, char **error_msg)
+{
+ const apr_array_header_t *tarr;
+ const apr_table_entry_t *telts;
+ apr_table_t *vartable;
+ unsigned int count = 0;
+ apr_status_t rc;
+ msre_var *var;
+ int i;
+
+ if (text == NULL) return -1;
+
+ /* Extract name & value pairs first */
+ vartable = apr_table_make(ruleset->mp, 10);
+ if (vartable == NULL) return -1;
+ rc = msre_parse_generic(ruleset->mp, text, vartable, error_msg);
+ if (rc < 0) return rc;
+
+ /* Loop through the table and create variables */
+ tarr = apr_table_elts(vartable);
+ telts = (const apr_table_entry_t*)tarr->elts;
+ for (i = 0; i < tarr->nelts; i++) {
+ var = msre_create_var(ruleset, telts[i].key, telts[i].val, NULL, error_msg);
+ if (var == NULL) return -1;
+ *(msre_var **)apr_array_push(arr) = var;
+ count++;
+ }
+
+ return count;
+}
+
+/**
+ * Creates msre_action instances by parsing the given string, placing
+ * them into the supplied array.
+ */
+apr_status_t msre_parse_actions(msre_engine *engine, msre_actionset *actionset,
+ const char *text, char **error_msg)
+{
+ const apr_array_header_t *tarr;
+ const apr_table_entry_t *telts;
+ apr_table_t *vartable;
+ unsigned int count = 0;
+ apr_status_t rc;
+ msre_action *action;
+ int i;
+
+ if (text == NULL) return -1;
+
+ /* Extract name & value pairs first */
+ vartable = apr_table_make(engine->mp, 10);
+ if (vartable == NULL) return -1;
+ rc = msre_parse_generic(engine->mp, text, vartable, error_msg);
+ if (rc < 0) return rc;
+
+ /* Loop through the table and create actions */
+ tarr = apr_table_elts(vartable);
+ telts = (const apr_table_entry_t*)tarr->elts;
+ for (i = 0; i < tarr->nelts; i++) {
+ /* Create action. */
+ action = msre_create_action(engine, telts[i].key, telts[i].val, error_msg);
+ if (action == NULL) return -1;
+
+ /* Initialise action (option). */
+ if (action->metadata->init != NULL) {
+ action->metadata->init(engine, actionset, action);
+ }
+
+ msre_actionset_action_add(actionset, action);
+
+ count++;
+ }
+
+ return count;
+}
+
+/**
+ * Locates variable metadata given the variable name.
+ */
+msre_var_metadata *msre_resolve_var(msre_engine *engine, const char *name) {
+ return (msre_var_metadata *)apr_table_get(engine->variables, name);
+}
+
+/**
+ * Locates action metadata given the action name.
+ */
+msre_action_metadata *msre_resolve_action(msre_engine *engine, const char *name) {
+ return (msre_action_metadata *)apr_table_get(engine->actions, name);
+}
+
+/**
+ * Creates a new variable instance given the variable name
+ * and an (optional) parameter.
+ */
+msre_var *msre_create_var_ex(apr_pool_t *pool, msre_engine *engine, const char *name, const char *param,
+ modsec_rec *msr, char **error_msg)
+{
+ const char *varparam = param;
+ msre_var *var = apr_pcalloc(pool, sizeof(msre_var));
+ if (var == NULL) return NULL;
+
+ if (error_msg == NULL) return NULL;
+ *error_msg = NULL;
+
+ /* Handle negation and member counting */
+ if (name[0] == '!') {
+ var->is_negated = 1;
+ var->name = name + 1;
+ }
+ else
+ if (name[0] == '&') {
+ var->is_counting = 1;
+ var->name = name + 1;
+ }
+ else {
+ var->name = name;
+ }
+
+ /* Treat HTTP_* targets as an alias for REQUEST_HEADERS:* */
+ if ( (var->name != NULL)
+ && (strlen(var->name) > 5)
+ && (strncmp("HTTP_", var->name, 5) == 0))
+ {
+ const char *oldname = var->name;
+ var->name = apr_pstrdup(pool, "REQUEST_HEADERS");
+ varparam = apr_pstrdup(pool, oldname + 5);
+ }
+
+
+ /* Resolve variable */
+ var->metadata = msre_resolve_var(engine, var->name);
+ if (var->metadata == NULL) {
+ *error_msg = apr_psprintf(engine->mp, "Unknown variable: %s", name);
+ return NULL;
+ }
+
+ /* The counting operator "&" can only be used against collections. */
+ if (var->is_counting) {
+ if (var->metadata->type == VAR_SIMPLE) {
+ *error_msg = apr_psprintf(engine->mp, "The & modificator does not apply to "
+ "non-collection variables.");
+ return NULL;
+ }
+ }
+
+ /* Check the parameter. */
+ if (varparam == NULL) {
+ if (var->metadata->argc_min > 0) {
+ *error_msg = apr_psprintf(engine->mp, "Missing mandatory parameter for variable %s.",
+ name);
+ return NULL;
+ }
+ } else { /* Parameter present */
+
+ /* Do we allow a parameter? */
+ if (var->metadata->argc_max == 0) {
+ *error_msg = apr_psprintf(engine->mp, "Variable %s does not support parameters.",
+ name);
+ return NULL;
+ }
+
+ var->param = varparam;
+ }
+
+ return var;
+}
+
+/**
+ * Create a new variable object from the provided name and value.
+ *
+ * NOTE: this allocates out of the global pool and should not be used
+ * per-request
+ */
+msre_var *msre_create_var(msre_ruleset *ruleset, const char *name, const char *param,
+ modsec_rec *msr, char **error_msg)
+{
+ msre_var *var = msre_create_var_ex(ruleset->engine->mp, ruleset->engine, name, param, msr, error_msg);
+ if (var == NULL) return NULL;
+
+ /* Validate & initialise variable */
+ if (var->metadata->validate != NULL) {
+ *error_msg = var->metadata->validate(ruleset, var);
+ if (*error_msg != NULL) {
+ return NULL;
+ }
+ }
+
+ return var;
+}
+
+/**
+ * Creates a new action instance given its name and an (optional) parameter.
+ */
+msre_action *msre_create_action(msre_engine *engine, const char *name, const char *param,
+ char **error_msg)
+{
+ msre_action *action = apr_pcalloc(engine->mp, sizeof(msre_action));
+ if (action == NULL) return NULL;
+
+ if (error_msg == NULL) return NULL;
+ *error_msg = NULL;
+
+ /* Resolve action */
+ action->metadata = msre_resolve_action(engine, name);
+ if (action->metadata == NULL) {
+ *error_msg = apr_psprintf(engine->mp, "Unknown action: %s", name);
+ return NULL;
+ }
+
+ if (param == NULL) { /* Parameter not present */
+ if (action->metadata->argc_min > 0) {
+ *error_msg = apr_psprintf(engine->mp, "Missing mandatory parameter for action %s",
+ name);
+ return NULL;
+ }
+ } else { /* Parameter present */
+
+ /* Should we allow the parameter? */
+ if (action->metadata->argc_max == 0) {
+ *error_msg = apr_psprintf(engine->mp, "Extra parameter provided to action %s", name);
+ return NULL;
+ }
+
+ /* Handle +/- modificators */
+ if ((param[0] == '+')||(param[0] == '-')) {
+ if (action->metadata->allow_param_plusminus == 0) {
+ *error_msg = apr_psprintf(engine->mp,
+ "Action %s does not allow +/- modificators.", name);
+ return NULL;
+ }
+ else { /* Modificators allowed. */
+ if (param[0] == '+') {
+ action->param = param + 1;
+ action->param_plusminus = POSITIVE_VALUE;
+ } else
+ if (param[0] == '-') {
+ action->param = param + 1;
+ action->param_plusminus = NEGATIVE_VALUE;
+ }
+ }
+ } else {
+ action->param = param;
+ }
+
+ /* Validate parameter */
+ if (action->metadata->validate != NULL) {
+ *error_msg = action->metadata->validate(engine, action);
+ if (*error_msg != NULL) return NULL;
+ }
+ }
+
+ return action;
+}
+
+/**
+ * Generic parser that is used as basis for target and action parsing.
+ * It breaks up the input string into name-parameter pairs and places
+ * them into the given table.
+ */
+int msre_parse_generic(apr_pool_t *mp, const char *text, apr_table_t *vartable,
+ char **error_msg)
+{
+ char *p = (char *)text;
+ int count = 0;
+
+ if (error_msg == NULL) return -1;
+ *error_msg = NULL;
+
+ count = 0;
+ while(*p != '\0') {
+ char *name = NULL, *value = NULL;
+
+ /* ignore whitespace */
+ while(isspace(*p)) p++;
+ if (*p == '\0') return count;
+
+ /* we are at the beginning of the name */
+ name = p;
+ while((*p != '\0')&&(*p != '|')&&(*p != ':')&&(*p != ',')&&(!isspace(*p))) p++; /* ENH replace with isvarnamechar() */
+
+ /* get the name */
+ name = apr_pstrmemdup(mp, name, p - name);
+
+ if (*p != ':') { /* we don't have a parameter */
+ /* add to the table with no value */
+ apr_table_addn(vartable, name, NULL);
+ count++;
+
+ /* go over any whitespace present */
+ while(isspace(*p)) p++;
+
+ /* we're done */
+ if (*p == '\0') {
+ return count;
+ }
+
+ /* skip over the separator character and continue */
+ if ((*p == ',')||(*p == '|')) {
+ p++;
+ continue;
+ }
+
+ *error_msg = apr_psprintf(mp, "Unexpected character at position %d: %s",
+ (int)(p - text), text);
+ return -1;
+ }
+
+ /* we have a parameter */
+
+ p++; /* move over the colon */
+
+ /* we'll allow empty values */
+ if (*p == '\0') {
+ apr_table_addn(vartable, name, NULL);
+ count++;
+ return count;
+ }
+
+ if ((*p == ',')||(*p == '|')) {
+ apr_table_addn(vartable, name, NULL);
+ count++;
+ /* move over the separator char and continue */
+ p++;
+ continue;
+ }
+
+ /* we really have a parameter */
+
+ if (*p == '\'') { /* quoted value */
+ char *d = NULL;
+
+ p++; /* go over the openning quote */
+ value = d = strdup(p);
+ if (d == NULL) return -1;
+
+ for(;;) {
+ if (*p == '\0') {
+ *error_msg = apr_psprintf(mp, "Missing closing quote at position %d: %s",
+ (int)(p - text), text);
+ free(value);
+ return -1;
+ } else
+ if (*p == '\\') {
+ if ( (*(p + 1) == '\0') || ((*(p + 1) != '\'')&&(*(p + 1) != '\\')) ) {
+ *error_msg = apr_psprintf(mp, "Invalid quoted pair at position %d: %s",
+ (int)(p - text), text);
+ free(value);
+ return -1;
+ }
+ p++;
+ *(d++) = *(p++);
+ } else
+ if (*p == '\'') {
+ *d = '\0';
+ p++;
+ break;
+ }
+ else {
+ *(d++) = *(p++);
+ }
+ }
+
+ d = value;
+ value = apr_pstrdup(mp, d);
+ free(d);
+ } else { /* non-quoted value */
+ value = p;
+ while((*p != '\0')&&(*p != ',')&&(*p != '|')&&(!isspace(*p))) p++;
+ value = apr_pstrmemdup(mp, value, p - value);
+ }
+
+ /* add to table */
+ apr_table_addn(vartable, name, value);
+ count++;
+
+ /* move to the first character of the next name-value pair */
+ while(isspace(*p)||(*p == ',')||(*p == '|')) p++;
+ }
+
+ return count;
+}
+
+
+/* -- Actionset functions -------------------------------------------------- */
+
+/**
+ * Creates an actionset instance and (as an option) populates it by
+ * parsing the given string which contains a list of actions.
+ */
+msre_actionset *msre_actionset_create(msre_engine *engine, const char *text,
+ char **error_msg)
+{
+ msre_actionset *actionset = (msre_actionset *)apr_pcalloc(engine->mp,
+ sizeof(msre_actionset));
+ if (actionset == NULL) return NULL;
+
+ actionset->actions = apr_table_make(engine->mp, 25);
+ if (actionset->actions == NULL) return NULL;
+
+ /* Metadata */
+ actionset->id = NOT_SET_P;
+ actionset->rev = NOT_SET_P;
+ actionset->msg = NOT_SET_P;
+ actionset->logdata = NOT_SET_P;
+ actionset->phase = NOT_SET;
+ actionset->severity = -1;
+ actionset->rule = NOT_SET_P;
+
+ /* Flow */
+ actionset->is_chained = NOT_SET;
+ actionset->skip_count = NOT_SET;
+ actionset->skip_after = NOT_SET_P;
+
+ /* Disruptive */
+ actionset->parent_intercept_action_rec = NOT_SET_P;
+ actionset->intercept_action_rec = NOT_SET_P;
+ actionset->parent_intercept_action = NOT_SET;
+ actionset->intercept_action = NOT_SET;
+ actionset->intercept_uri = NOT_SET_P;
+ actionset->intercept_status = NOT_SET;
+ actionset->intercept_pause = NOT_SET;
+
+ /* Other */
+ actionset->auditlog = NOT_SET;
+ actionset->log = NOT_SET;
+
+ /* Parse the list of actions, if it's present */
+ if (text != NULL) {
+ if (msre_parse_actions(engine, actionset, text, error_msg) < 0) {
+ return NULL;
+ }
+ }
+
+ return actionset;
+}
+
+/**
+ * Create a (shallow) copy of the supplied actionset.
+ */
+static msre_actionset *msre_actionset_copy(apr_pool_t *mp, msre_actionset *orig) {
+ msre_actionset *copy = NULL;
+
+ if (orig == NULL) return NULL;
+ copy = (msre_actionset *)apr_pmemdup(mp, orig, sizeof(msre_actionset));
+ if (copy == NULL) return NULL;
+ copy->actions = apr_table_copy(mp, orig->actions);
+
+ return copy;
+}
+
+/**
+ * Merges two actionsets into one.
+ */
+msre_actionset *msre_actionset_merge(msre_engine *engine, msre_actionset *parent,
+ msre_actionset *child, int inherit_by_default)
+{
+ msre_actionset *merged = NULL;
+ const apr_array_header_t *tarr;
+ const apr_table_entry_t *telts;
+ int i;
+
+ if (inherit_by_default == 0) {
+ /* There is nothing to merge in this case. */
+ return msre_actionset_copy(engine->mp, child);
+ }
+
+ /* Start with a copy of the parent configuration. */
+ merged = msre_actionset_copy(engine->mp, parent);
+ if (merged == NULL) return NULL;
+
+ if (child == NULL) {
+ /* The child actionset does not exist, hence
+ * go with the parent one.
+ */
+ return merged;
+ }
+
+ /* First merge the hard-coded stuff. */
+
+ /* Metadata */
+ if (child->id != NOT_SET_P) merged->id = child->id;
+ if (child->rev != NOT_SET_P) merged->rev = child->rev;
+ if (child->msg != NOT_SET_P) merged->msg = child->msg;
+ if (child->logdata != NOT_SET_P) merged->logdata = child->logdata;
+ if (child->severity != NOT_SET) merged->severity = child->severity;
+ if (child->phase != NOT_SET) merged->phase = child->phase;
+ if (child->rule != NOT_SET_P) merged->rule = child->rule;
+
+ /* Flow */
+ merged->is_chained = child->is_chained;
+ if (child->skip_count != NOT_SET) merged->skip_count = child->skip_count;
+ if (child->skip_after != NOT_SET_P) merged->skip_after = child->skip_after;
+
+ /* Disruptive */
+ if (child->intercept_action != NOT_SET) {
+ merged->intercept_action_rec = child->intercept_action_rec;
+ merged->intercept_action = child->intercept_action;
+ merged->intercept_uri = child->intercept_uri;
+ }
+
+ if (child->intercept_status != NOT_SET) merged->intercept_status = child->intercept_status;
+ if (child->intercept_pause != NOT_SET) merged->intercept_pause = child->intercept_pause;
+
+ /* Other */
+ if (child->auditlog != NOT_SET) merged->auditlog = child->auditlog;
+ if (child->log != NOT_SET) merged->log = child->log;
+
+
+ /* Now merge the actions. */
+
+ tarr = apr_table_elts(child->actions);
+ telts = (const apr_table_entry_t*)tarr->elts;
+ for (i = 0; i < tarr->nelts; i++) {
+ msre_actionset_action_add(merged, (msre_action *)telts[i].val);
+ }
+
+ return merged;
+}
+
+/**
+ * Creates an actionset that contains a default list of actions.
+ */
+msre_actionset *msre_actionset_create_default(msre_engine *engine) {
+ char *my_error_msg = NULL;
+ return msre_actionset_create(engine,
+ "phase:2,log,auditlog,pass",
+ &my_error_msg);
+}
+
+/**
+ * Sets the default values for the hard-coded actionset configuration.
+ */
+void msre_actionset_set_defaults(msre_actionset *actionset) {
+ /* Metadata */
+ if (actionset->id == NOT_SET_P) actionset->id = NULL;
+ if (actionset->rev == NOT_SET_P) actionset->rev = NULL;
+ if (actionset->msg == NOT_SET_P) actionset->msg = NULL;
+ if (actionset->logdata == NOT_SET_P) actionset->logdata = NULL;
+ if (actionset->phase == NOT_SET) actionset->phase = 2;
+ if (actionset->severity == -1) {} /* leave at -1 */
+ if (actionset->rule == NOT_SET_P) actionset->rule = NULL;
+
+ /* Flow */
+ if (actionset->is_chained == NOT_SET) actionset->is_chained = 0;
+ if (actionset->skip_count == NOT_SET) actionset->skip_count = 0;
+ if (actionset->skip_after == NOT_SET_P) actionset->skip_after = NULL;
+
+ /* Disruptive */
+ if (actionset->parent_intercept_action_rec == NOT_SET_P) actionset->parent_intercept_action_rec = NULL;
+ if (actionset->intercept_action_rec == NOT_SET_P) actionset->intercept_action_rec = NULL;
+ if (actionset->parent_intercept_action == NOT_SET) actionset->parent_intercept_action = ACTION_NONE;
+ if (actionset->intercept_action == NOT_SET) actionset->intercept_action = ACTION_NONE;
+ if (actionset->intercept_uri == NOT_SET_P) actionset->intercept_uri = NULL;
+ if (actionset->intercept_status == NOT_SET) actionset->intercept_status = 403;
+ if (actionset->intercept_pause == NOT_SET) actionset->intercept_pause = 0;
+
+ /* Other */
+ if (actionset->auditlog == NOT_SET) actionset->auditlog = 1;
+ if (actionset->log == NOT_SET) actionset->log = 1;
+}
+
+/* -- Engine functions ----------------------------------------------------- */
+
+/**
+ * Creates a new engine instance.
+ */
+msre_engine *msre_engine_create(apr_pool_t *parent_pool) {
+ msre_engine *engine;
+ apr_pool_t *mp;
+
+ /* Create new memory pool */
+ if (apr_pool_create(&mp, parent_pool) != APR_SUCCESS) return NULL;
+
+ /* Init fields */
+ engine = apr_pcalloc(mp, sizeof(msre_engine));
+ if (engine == NULL) return NULL;
+ engine->mp = mp;
+ engine->tfns = apr_table_make(mp, 25);
+ if (engine->tfns == NULL) return NULL;
+ engine->operators = apr_table_make(mp, 25);
+ if (engine->operators == NULL) return NULL;
+ engine->variables = apr_table_make(mp, 25);
+ if (engine->variables == NULL) return NULL;
+ engine->actions = apr_table_make(mp, 25);
+ if (engine->actions == NULL) return NULL;
+
+ return engine;
+}
+
+/**
+ * Destroys an engine instance, releasing the consumed memory.
+ */
+void msre_engine_destroy(msre_engine *engine) {
+ /* Destroyed automatically by the parent pool.
+ * apr_pool_destroy(engine->mp);
+ */
+}
+
+
+/* -- Recipe functions ----------------------------------------------------- */
+
+#define NEXT_CHAIN 1
+#define NEXT_RULE 2
+#define SKIP_RULES 3
+
+
+
+/**
+ * Default implementation of the ruleset phase processing; it processes
+ * the rules in the ruleset attached to the currently active
+ * transaction phase.
+ */
+#if defined(PERFORMANCE_MEASUREMENT)
+
+#define PERFORMANCE_MEASUREMENT_LOOP 1000
+
+static apr_status_t msre_ruleset_process_phase_(msre_ruleset *ruleset, modsec_rec *msr);
+
+apr_status_t msre_ruleset_process_phase(msre_ruleset *ruleset, modsec_rec *msr) {
+ apr_array_header_t *arr = NULL;
+ msre_rule **rules = NULL;
+ apr_status_t rc;
+ int i;
+
+ switch (msr->phase) {
+ case PHASE_REQUEST_HEADERS :
+ arr = ruleset->phase_request_headers;
+ break;
+ case PHASE_REQUEST_BODY :
+ arr = ruleset->phase_request_body;
+ break;
+ case PHASE_RESPONSE_HEADERS :
+ arr = ruleset->phase_response_headers;
+ break;
+ case PHASE_RESPONSE_BODY :
+ arr = ruleset->phase_response_body;
+ break;
+ case PHASE_LOGGING :
+ arr = ruleset->phase_logging;
+ break;
+ default :
+ msr_log(msr, 1, "Internal Error: Invalid phase %d", msr->phase);
+ return -1;
+ }
+
+ rules = (msre_rule **)arr->elts;
+ for (i = 0; i < arr->nelts; i++) {
+ msre_rule *rule = rules[i];
+ rule->execution_time = 0;
+ }
+
+ for (i = 0; i < PERFORMANCE_MEASUREMENT_LOOP; i++) {
+ rc = msre_ruleset_process_phase_(ruleset, msr);
+ }
+
+ msr_log(msr, 1, "Phase %d", msr->phase);
+
+ rules = (msre_rule **)arr->elts;
+ for (i = 0; i < arr->nelts; i++) {
+ msre_rule *rule = rules[i];
+
+ /* Ignore markers, which are never processed. */
+ if (rule->placeholder == RULE_PH_MARKER) continue;
+
+ msr_log(msr, 1, "Rule %pp [id \"%s\"][file \"%s\"][line \"%d\"]: %u usec", rule,
+ ((rule->actionset != NULL)&&(rule->actionset->id != NULL)) ? rule->actionset->id : "-",
+ rule->filename != NULL ? rule->filename : "-",
+ rule->line_num,
+ (rule->execution_time / PERFORMANCE_MEASUREMENT_LOOP));
+ }
+
+ return rc;
+}
+
+static apr_status_t msre_ruleset_process_phase_(msre_ruleset *ruleset, modsec_rec *msr) {
+#else
+apr_status_t msre_ruleset_process_phase(msre_ruleset *ruleset, modsec_rec *msr) {
+#endif
+ apr_array_header_t *arr = NULL;
+ msre_rule **rules;
+ apr_status_t rc;
+ const char *skip_after = NULL;
+ int i, mode, skip;
+
+ /* First determine which set of rules we need to use. */
+ switch (msr->phase) {
+ case PHASE_REQUEST_HEADERS :
+ arr = ruleset->phase_request_headers;
+ break;
+ case PHASE_REQUEST_BODY :
+ arr = ruleset->phase_request_body;
+ break;
+ case PHASE_RESPONSE_HEADERS :
+ arr = ruleset->phase_response_headers;
+ break;
+ case PHASE_RESPONSE_BODY :
+ arr = ruleset->phase_response_body;
+ break;
+ case PHASE_LOGGING :
+ arr = ruleset->phase_logging;
+ break;
+ default :
+ msr_log(msr, 1, "Internal Error: Invalid phase %d", msr->phase);
+ return -1;
+ }
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "This phase consists of %d rule(s).", arr->nelts);
+ }
+
+ /* Loop through the rules in the selected set. */
+ skip = 0;
+ mode = NEXT_RULE;
+ rules = (msre_rule **)arr->elts;
+ for (i = 0; i < arr->nelts; i++) {
+ msre_rule *rule = rules[i];
+ #if defined(PERFORMANCE_MEASUREMENT)
+ apr_time_t time1 = 0;
+ #endif
+
+ /* Reset the rule interception flag */
+ msr->rule_was_intercepted = 0;
+
+ /* SKIP_RULES is used to skip all rules until we hit a placeholder
+ * with the specified rule ID and then resume execution after that.
+ */
+ if (mode == SKIP_RULES) {
+ /* Go to the next rule if we have not yet hit the skip_after ID */
+ if ((rule->placeholder == RULE_PH_NONE) || (rule->actionset->id == NULL) || (strcmp(skip_after, rule->actionset->id) != 0)) {
+ if (msr->txcfg->debuglog_level >= 9) {
+ if (rule->chain_starter != NULL) {
+ msr_log(msr, 9, "Skipping chain rule %pp id=\"%s\" until after id=\"%s\"", rule, (rule->chain_starter->actionset->id ? rule->chain_starter->actionset->id : "(none)"), skip_after);
+
+ }
+ else {
+ msr_log(msr, 9, "Skipping rule %pp id=\"%s\" until after id=\"%s\"", rule, (rule->actionset->id ? rule->actionset->id : "(none)"), skip_after);
+
+ }
+ }
+ continue;
+ }
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Found rule %pp id=\"%s\".", rule, skip_after);
+ }
+
+ /* Go to the rule *after* this one to continue execution. */
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Continuing execution after rule id=\"%s\".", skip_after);
+ }
+
+ skip_after = NULL;
+ mode = NEXT_RULE;
+ continue;
+ }
+
+ /* Skip any rule marked as a placeholder */
+ if (rule->placeholder != RULE_PH_NONE) {
+ continue;
+ }
+
+ /* NEXT_CHAIN is used when one of the rules in a chain
+ * fails to match and then we need to skip the remaining
+ * rules in that chain in order to get to the next
+ * rule that can execute.
+ */
+ if (mode == NEXT_CHAIN) {
+ if (rule->actionset->is_chained == 0) {
+ mode = NEXT_RULE;
+ }
+
+ /* Go to the next rule. */
+ continue;
+ }
+
+ /* If we are here that means the mode is NEXT_RULE, which
+ * then means we have done processing any chains. However,
+ * if the "skip" parameter is set we need to skip over.
+ */
+ if ((mode == NEXT_RULE)&&(skip > 0)) {
+ /* Decrement the skip counter by one. */
+ skip--;
+
+ /* If the current rule is part of a chain then
+ * we need to skip over the entire chain. Thus
+ * we change the mode to NEXT_CHAIN. The skip
+ * counter will not decrement as we are moving
+ * over the rules belonging to the chain.
+ */
+ if (rule->actionset->is_chained) {
+ mode = NEXT_CHAIN;
+ }
+
+ /* Go to the next rule. */
+ continue;
+ }
+
+ /* Check if this rule was removed at runtime */
+ if ((rule->actionset->id !=NULL) && (! apr_is_empty_array(msr->removed_rules))) {
+ int j;
+ int do_process = 1;
+ const char *range;
+
+ for(j = 0; j < msr->removed_rules->nelts; j++) {
+ range = ((const char**)msr->removed_rules->elts)[j];
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Checking removal of rule id=\"%s\" against: %s", rule->actionset->id, range);
+ }
+
+ if (rule_id_in_range(atoi(rule->actionset->id), range)) {
+ do_process = 0;
+ break;
+ }
+ }
+
+ /* Go to the next rule if this one has been removed. */
+ if (do_process == 0) {
+ if (msr->txcfg->debuglog_level >= 5) {
+ msr_log(msr, 5, "Not processing %srule id=\"%s\": "
+ "removed by ctl action",
+ rule->actionset->is_chained ? "chained " : "",
+ rule->actionset->id);
+ }
+
+ /* Skip the whole chain, if this is a chained rule */
+ if (rule->actionset->is_chained) {
+ mode = NEXT_CHAIN;
+ }
+
+ continue;
+ }
+ }
+
+ if (msr->txcfg->debuglog_level >= 4) {
+ apr_pool_t *p = msr->mp;
+ const char *fn = NULL;
+ const char *id = NULL;
+ const char *rev = NULL;
+
+ if (rule->filename != NULL) {
+ fn = apr_psprintf(p, " [file \"%s\"] [line \"%d\"]", rule->filename, rule->line_num);
+ }
+
+ if (rule->actionset != NULL && rule->actionset->id != NULL) {
+ id = apr_psprintf(p, " [id \"%s\"]", rule->actionset->id);
+ }
+
+ if (rule->actionset != NULL && rule->actionset->rev != NULL) {
+ rev = apr_psprintf(p, " [rev \"%s\"]", rule->actionset->rev);
+ }
+
+ msr_log(msr, 4, "Recipe: Invoking rule %pp;%s%s%s.",
+ rule, (fn ? fn : ""), (id ? id : ""), (rev ? rev : ""));
+ msr_log(msr, 5, "Rule %pp: %s", rule, rule->unparsed);
+ }
+
+ #if defined(PERFORMANCE_MEASUREMENT)
+ time1 = apr_time_now();
+ #endif
+
+ rc = msre_rule_process(rule, msr);
+
+ #if defined(PERFORMANCE_MEASUREMENT)
+ rule->execution_time += (apr_time_now() - time1);
+ #endif
+
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Rule returned %d.", rc);
+ }
+
+ if (rc == RULE_NO_MATCH) {
+ if (rule->actionset->is_chained) {
+ /* If the current rule is part of a chain then
+ * we need to skip over all the rules in the chain.
+ */
+ mode = NEXT_CHAIN;
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "No match, chained -> mode NEXT_CHAIN.");
+ }
+ } else {
+ /* This rule is not part of a chain so we simply
+ * move to the next rule.
+ */
+ mode = NEXT_RULE;
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "No match, not chained -> mode NEXT_RULE.");
+ }
+ }
+ }
+ else
+ if (rc == RULE_MATCH) {
+ if (msr->rule_was_intercepted) {
+ /* If the transaction was intercepted by this rule we will
+ * go back. Do note that we are relying on the
+ * rule to know if it is a part of a chain and
+ * not intercept if it is.
+ */
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Match, intercepted -> returning.");
+ }
+ return 1;
+ }
+
+ if (rule->actionset->skip_after != NULL) {
+ skip_after = rule->actionset->skip_after;
+ mode = SKIP_RULES;
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Skipping after rule %pp id=\"%s\" -> mode SKIP_RULES.", rule, skip_after);
+ }
+
+ continue;
+ }
+
+ /* We had a match but the transaction was not
+ * intercepted. In that case we proceed with the
+ * next rule...
+ */
+ mode = NEXT_RULE;
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Match -> mode NEXT_RULE.");
+ }
+
+ /* ...unless we need to skip, in which case we
+ * determine how many rules/chains we need to
+ * skip and configure the counter accordingly.
+ */
+ if (rule->actionset->is_chained == 0) {
+ if (rule->chain_starter != NULL) {
+ if (rule->chain_starter->actionset->skip_count > 0) {
+ skip = rule->chain_starter->actionset->skip_count;
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Skipping %d rules/chains (from a chain).", skip);
+ }
+ }
+ }
+ else if (rule->actionset->skip_count > 0) {
+ skip = rule->actionset->skip_count;
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Skipping %d rules/chains.", skip);
+ }
+ }
+ }
+ }
+ else if (rc < 0) {
+ msr_log(msr, 1, "Rule processing failed.");
+ return -1;
+ }
+ else {
+ msr_log(msr, 1, "Rule processing failed with unknown return code: %d.", rc);
+ return -1;
+ }
+ }
+
+ /* ENH warn if chained rules are missing. */
+
+ return 0;
+}
+
+/**
+ * Creates a ruleset that will be handled by the default
+ * implementation.
+ */
+msre_ruleset *msre_ruleset_create(msre_engine *engine, apr_pool_t *mp) {
+ msre_ruleset *ruleset;
+
+ ruleset = apr_pcalloc(mp, sizeof(msre_ruleset));
+ if (ruleset == NULL) return NULL;
+ ruleset->mp = mp;
+ ruleset->engine = engine;
+
+ ruleset->phase_request_headers = apr_array_make(ruleset->mp, 25, sizeof(const msre_rule *));
+ ruleset->phase_request_body = apr_array_make(ruleset->mp, 25, sizeof(const msre_rule *));
+ ruleset->phase_response_headers = apr_array_make(ruleset->mp, 25, sizeof(const msre_rule *));
+ ruleset->phase_response_body = apr_array_make(ruleset->mp, 25, sizeof(const msre_rule *));
+ ruleset->phase_logging = apr_array_make(ruleset->mp, 25, sizeof(const msre_rule *));
+
+ return ruleset;
+}
+
+/**
+ * Adds one rule to the given phase of the ruleset.
+ */
+int msre_ruleset_rule_add(msre_ruleset *ruleset, msre_rule *rule, int phase) {
+ apr_array_header_t *arr = NULL;
+
+ switch (phase) {
+ case PHASE_REQUEST_HEADERS :
+ arr = ruleset->phase_request_headers;
+ break;
+ case PHASE_REQUEST_BODY :
+ arr = ruleset->phase_request_body;
+ break;
+ case PHASE_RESPONSE_HEADERS :
+ arr = ruleset->phase_response_headers;
+ break;
+ case PHASE_RESPONSE_BODY :
+ arr = ruleset->phase_response_body;
+ break;
+ case PHASE_LOGGING :
+ arr = ruleset->phase_logging;
+ break;
+ default :
+ return -1;
+ }
+
+ /* ENH verify the rule's use of targets is consistent with
+ * the phase it selected to run at.
+ */
+
+ msre_actionset_set_defaults(rule->actionset);
+ rule->actionset->rule = rule;
+
+ *(const msre_rule **)apr_array_push(arr) = rule;
+
+ return 1;
+}
+
+static msre_rule * msre_ruleset_fetch_phase_rule(const msre_ruleset *ruleset, const char *id,
+ const apr_array_header_t *phase_arr)
+{
+ msre_rule **rules = (msre_rule **)phase_arr->elts;
+ int i;
+
+ for (i = 0; i < phase_arr->nelts; i++) {
+ msre_rule *rule = (msre_rule *)rules[i];
+
+ /* Rule with an action, not a sub-rule (chain) and a matching id */
+ if ( (rule->actionset != NULL)
+ && (!rule->actionset->is_chained || !rule->chain_starter)
+ && (rule->actionset->id != NULL)
+ && (strcmp(rule->actionset->id, id) == 0))
+ {
+ /* Return rule that matched unless it is a placeholder */
+ return (rule->placeholder == RULE_PH_NONE) ? rule : NULL;
+ }
+ }
+
+ return NULL;
+}
+
+/**
+ * Fetches rule from the ruleset all rules that match the given exception.
+ */
+msre_rule * msre_ruleset_fetch_rule(msre_ruleset *ruleset, const char *id) {
+ msre_rule *rule = NULL;
+
+ if (ruleset == NULL) return NULL;
+
+ rule = msre_ruleset_fetch_phase_rule(ruleset, id, ruleset->phase_request_headers);
+ if (rule != NULL) return rule;
+
+ rule = msre_ruleset_fetch_phase_rule(ruleset, id, ruleset->phase_request_body);
+ if (rule != NULL) return rule;
+
+ rule = msre_ruleset_fetch_phase_rule(ruleset, id, ruleset->phase_response_headers);
+ if (rule != NULL) return rule;
+
+ rule = msre_ruleset_fetch_phase_rule(ruleset, id, ruleset->phase_response_body);
+ if (rule != NULL) return rule;
+
+ rule = msre_ruleset_fetch_phase_rule(ruleset, id, ruleset->phase_logging);
+
+ return rule;
+}
+
+static int msre_ruleset_phase_rule_remove_with_exception(msre_ruleset *ruleset, rule_exception *re,
+ apr_array_header_t *phase_arr)
+{
+ msre_rule **rules;
+ int i, j, mode, removed_count;
+
+ j = 0;
+ mode = 0;
+ removed_count = 0;
+ rules = (msre_rule **)phase_arr->elts;
+ for (i = 0; i < phase_arr->nelts; i++) {
+ msre_rule *rule = (msre_rule *)rules[i];
+
+ if (mode == 0) { /* Looking for next rule. */
+ int remove_rule = 0;
+
+ /* Only remove non-placeholder rules */
+ if (rule->placeholder == RULE_PH_NONE) {
+ switch(re->type) {
+ case RULE_EXCEPTION_REMOVE_ID :
+ if ((rule->actionset != NULL)&&(rule->actionset->id != NULL)) {
+ int ruleid = atoi(rule->actionset->id);
+
+ if (rule_id_in_range(ruleid, re->param)) {
+ remove_rule = 1;
+ }
+ }
+
+ break;
+
+ case RULE_EXCEPTION_REMOVE_MSG :
+ if ((rule->actionset != NULL)&&(rule->actionset->msg != NULL)) {
+ char *my_error_msg = NULL;
+
+ int rc = msc_regexec(re->param_data,
+ rule->actionset->msg, strlen(rule->actionset->msg),
+ &my_error_msg);
+ if (rc >= 0) {
+ remove_rule = 1;
+ }
+ }
+
+ break;
+ }
+ }
+
+ if (remove_rule) {
+ /* Do not increment j. */
+ removed_count++;
+ if (rule->actionset->is_chained) mode = 2; /* Remove rules in this chain. */
+ } else {
+ if (rule->actionset->is_chained) mode = 1; /* Keep rules in this chain. */
+ rules[j++] = rules[i];
+ }
+ } else { /* Handling rule that is part of a chain. */
+ if (mode == 2) { /* We want to remove the rule. */
+ /* Do not increment j. */
+ removed_count++;
+ } else {
+ rules[j++] = rules[i];
+ }
+
+ if ((rule->actionset == NULL)||(rule->actionset->is_chained == 0)) mode = 0;
+ }
+ }
+
+ /* Update the number of rules in the array. */
+ phase_arr->nelts -= removed_count;
+
+ return 0;
+}
+
+/**
+ * Removes from the ruleset all rules that match the given exception.
+ */
+int msre_ruleset_rule_remove_with_exception(msre_ruleset *ruleset, rule_exception *re) {
+ int count = 0;
+
+ if (ruleset == NULL) return 0;
+
+ count += msre_ruleset_phase_rule_remove_with_exception(ruleset, re, ruleset->phase_request_headers);
+ count += msre_ruleset_phase_rule_remove_with_exception(ruleset, re, ruleset->phase_request_body);
+ count += msre_ruleset_phase_rule_remove_with_exception(ruleset, re, ruleset->phase_response_headers);
+ count += msre_ruleset_phase_rule_remove_with_exception(ruleset, re, ruleset->phase_response_body);
+ count += msre_ruleset_phase_rule_remove_with_exception(ruleset, re, ruleset->phase_logging);
+
+ return count;
+}
+
+
+/* -- Rule functions ------------------------------------------------------- */
+
+/**
+ * Returns the name of the supplied severity level.
+ */
+static const char *msre_format_severity(int severity) {
+ if ((severity >= 0)&&(severity <= 7)) {
+ return severities[severity];
+ }
+ else {
+ return "(invalid value)";
+ }
+}
+
+/**
+ * Creates a string containing the metadata of the supplied rule.
+ */
+char *msre_format_metadata(modsec_rec *msr, msre_actionset *actionset) {
+ const apr_array_header_t *tarr;
+ const apr_table_entry_t *telts;
+ char *id = "";
+ char *rev = "";
+ char *msg = "";
+ char *logdata = "";
+ char *severity = "";
+ char *tags = "";
+ char *fn = "";
+ int k;
+
+ if (actionset == NULL) return "";
+
+ if ((actionset->rule != NULL) && (actionset->rule->filename != NULL)) {
+ fn = apr_psprintf(msr->mp, " [file \"%s\"] [line \"%d\"]",
+ actionset->rule->filename, actionset->rule->line_num);
+ }
+ if (actionset->id != NULL) {
+ id = apr_psprintf(msr->mp, " [id \"%s\"]",
+ log_escape(msr->mp, actionset->id));
+ }
+ if (actionset->rev != NULL) {
+ rev = apr_psprintf(msr->mp, " [rev \"%s\"]",
+ log_escape(msr->mp, actionset->rev));
+ }
+ if (actionset->msg != NULL) {
+ /* Expand variables in the message string. */
+ msc_string *var = (msc_string *)apr_pcalloc(msr->mp, sizeof(msc_string));
+ var->value = (char *)actionset->msg;
+ var->value_len = strlen(actionset->msg);
+ expand_macros(msr, var, NULL, msr->mp);
+
+ msg = apr_psprintf(msr->mp, " [msg \"%s\"]",
+ log_escape_ex(msr->mp, var->value, var->value_len));
+ }
+ if (actionset->logdata != NULL) {
+ /* Expand variables in the message string. */
+ msc_string *var = (msc_string *)apr_pcalloc(msr->mp, sizeof(msc_string));
+ var->value = (char *)actionset->logdata;
+ var->value_len = strlen(actionset->logdata);
+ expand_macros(msr, var, NULL, msr->mp);
+
+ logdata = apr_psprintf(msr->mp, " [data \"%s\"]",
+ log_escape_hex(msr->mp, (unsigned char *)var->value, var->value_len));
+
+ /* If it is > 512 bytes, then truncate at 512 with ellipsis.
+ * NOTE: 512 actual data + 9 bytes of label = 521
+ */
+ if (strlen(logdata) > 521) {
+ logdata[517] = '.';
+ logdata[518] = '.';
+ logdata[519] = '.';
+ logdata[520] = '"';
+ logdata[521] = ']';
+ logdata[522] = '\0';
+ }
+ }
+ if ((actionset->severity >= 0)&&(actionset->severity <= 7)) {
+ severity = apr_psprintf(msr->mp, " [severity \"%s\"]",
+ msre_format_severity(actionset->severity));
+ }
+
+ /* Extract rule tags from the action list. */
+ tarr = apr_table_elts(actionset->actions);
+ telts = (const apr_table_entry_t*)tarr->elts;
+
+ for (k = 0; k < tarr->nelts; k++) {
+ msre_action *action = (msre_action *)telts[k].val;
+ if (strcmp(telts[k].key, "tag") == 0) {
+ tags = apr_psprintf(msr->mp, "%s [tag \"%s\"]", tags,
+ log_escape(msr->mp, action->param));
+ }
+ }
+
+ return apr_pstrcat(msr->mp, fn, id, rev, msg, logdata, severity, tags, NULL);
+}
+
+char * msre_rule_generate_unparsed(apr_pool_t *pool, const msre_rule *rule, const char *targets,
+ const char *args, const char *actions)
+{
+ char *unparsed = NULL;
+ const char *r_targets = targets;
+ const char *r_args = args;
+ const char *r_actions = actions;
+
+ if (r_targets == NULL) {
+ r_targets = rule->p1;
+ }
+ if (r_args == NULL) {
+ r_args = apr_pstrcat(pool, (rule->op_negated ? "!" : ""), "@", rule->op_name, " ", rule->op_param, NULL);
+ }
+ if (r_actions == NULL) {
+ r_actions = msre_actionset_generate_action_string(pool, rule->actionset);
+ }
+
+ switch (rule->type) {
+ case RULE_TYPE_NORMAL:
+ if (r_actions == NULL) {
+ unparsed = apr_psprintf(pool, "SecRule \"%s\" \"%s\"",
+ log_escape(pool, r_targets), log_escape(pool, r_args));
+ }
+ else {
+ unparsed = apr_psprintf(pool, "SecRule \"%s\" \"%s\" \"%s\"",
+ log_escape(pool, r_targets), log_escape(pool, r_args),
+ log_escape(pool, r_actions));
+ }
+ break;
+ case RULE_TYPE_ACTION:
+ unparsed = apr_psprintf(pool, "SecAction \"%s\"",
+ log_escape(pool, r_actions));
+ break;
+ case RULE_TYPE_MARKER:
+ unparsed = apr_psprintf(pool, "SecMarker \"%s\"", rule->actionset->id);
+ break;
+ #if defined(WITH_LUA)
+ case RULE_TYPE_LUA:
+ /* SecRuleScript */
+ if (r_actions == NULL) {
+ unparsed = apr_psprintf(pool, "SecRuleScript \"%s\"", r_args);
+ }
+ else {
+ unparsed = apr_psprintf(pool, "SecRuleScript \"%s\" \"%s\"",
+ r_args, log_escape(pool, r_actions));
+ }
+ break;
+ #endif
+ }
+
+ return unparsed;
+}
+
+/**
+ * Assembles a new rule using the strings that contain a list
+ * of targets (variables), arguments, and actions.
+ */
+msre_rule *msre_rule_create(msre_ruleset *ruleset, int type,
+ const char *fn, int line, const char *targets,
+ const char *args, const char *actions, char **error_msg)
+{
+ msre_rule *rule;
+ char *my_error_msg;
+ const char *argsp;
+ int rc;
+
+ if (error_msg == NULL) return NULL;
+ *error_msg = NULL;
+
+ rule = (msre_rule *)apr_pcalloc(ruleset->mp, sizeof(msre_rule));
+ if (rule == NULL) return NULL;
+
+ rule->type = type;
+ rule->ruleset = ruleset;
+ rule->targets = apr_array_make(ruleset->mp, 10, sizeof(const msre_var *));
+ rule->p1 = apr_pstrdup(ruleset->mp, targets);
+ rule->filename = apr_pstrdup(ruleset->mp, fn);
+ rule->line_num = line;
+
+ /* Parse targets */
+ rc = msre_parse_targets(ruleset, targets, rule->targets, &my_error_msg);
+ if (rc < 0) {
+ *error_msg = apr_psprintf(ruleset->mp, "Error creating rule: %s", my_error_msg);
+ return NULL;
+ }
+
+ /* Parse args */
+ argsp = args;
+
+ /* Is negation used? */
+ if (*argsp == '!') {
+ rule->op_negated = 1;
+ argsp++;
+ while((isspace(*argsp))&&(*argsp != '\0')) argsp++;
+ }
+
+ /* Is the operator explicitly selected? */
+ if (*argsp != '@') {
+ /* Go with a regular expression. */
+ rule->op_name = "rx";
+ rule->op_param = argsp;
+ } else {
+ /* Explicitly selected operator. */
+ char *p = (char *)(argsp + 1);
+ while((!isspace(*p))&&(*p != '\0')) p++;
+ rule->op_name = apr_pstrmemdup(ruleset->mp, argsp + 1, p - (argsp + 1));
+ while(isspace(*p)) p++; /* skip over the whitespace at the end*/
+ rule->op_param = p; /* IMP1 So we always have a parameter even when it's empty? */
+ }
+
+ /* Find the operator. */
+ rule->op_metadata = msre_engine_op_resolve(ruleset->engine, rule->op_name);
+ if (rule->op_metadata == NULL) {
+ *error_msg = apr_psprintf(ruleset->mp,
+ "Error creating rule: Failed to resolve operator: %s", rule->op_name);
+ return NULL;
+ }
+
+ /* Initialise & validate parameter */
+ if (rule->op_metadata->param_init != NULL) {
+ if (rule->op_metadata->param_init(rule, &my_error_msg) <= 0) {
+ *error_msg = apr_psprintf(ruleset->mp, "Error creating rule: %s", my_error_msg);
+ return NULL;
+ }
+ }
+
+ /* Parse actions */
+ if (actions != NULL) {
+ /* Create per-rule actionset */
+ rule->actionset = msre_actionset_create(ruleset->engine, actions, &my_error_msg);
+ if (rule->actionset == NULL) {
+ *error_msg = apr_psprintf(ruleset->mp, "Error parsing actions: %s", my_error_msg);
+ return NULL;
+ }
+ }
+
+ /* Add the unparsed rule */
+ rule->unparsed = msre_rule_generate_unparsed(ruleset->mp, rule, targets, args, NULL);
+
+ return rule;
+}
+
+#if defined(WITH_LUA)
+/**
+ *
+ */
+msre_rule *msre_rule_lua_create(msre_ruleset *ruleset,
+ const char *fn, int line, const char *script_filename,
+ const char *actions, char **error_msg)
+{
+ msre_rule *rule;
+ char *my_error_msg;
+
+ if (error_msg == NULL) return NULL;
+ *error_msg = NULL;
+
+ rule = (msre_rule *)apr_pcalloc(ruleset->mp, sizeof(msre_rule));
+ if (rule == NULL) return NULL;
+
+ rule->type = RULE_TYPE_LUA;
+ rule->ruleset = ruleset;
+ rule->filename = apr_pstrdup(ruleset->mp, fn);
+ rule->line_num = line;
+
+ /* Compile script. */
+ *error_msg = lua_compile(&rule->script, script_filename, ruleset->mp);
+ if (*error_msg != NULL) {
+ return NULL;
+ }
+
+ /* Parse actions */
+ if (actions != NULL) {
+ /* Create per-rule actionset */
+ rule->actionset = msre_actionset_create(ruleset->engine, actions, &my_error_msg);
+ if (rule->actionset == NULL) {
+ *error_msg = apr_psprintf(ruleset->mp, "Error parsing actions: %s", my_error_msg);
+ return NULL;
+ }
+ }
+
+ /* Add the unparsed rule */
+ rule->unparsed = msre_rule_generate_unparsed(ruleset->mp, rule, NULL, script_filename, NULL);
+
+ return rule;
+}
+#endif
+
+/**
+ * Perform non-disruptive actions associated with the provided actionset.
+ */
+static void msre_perform_nondisruptive_actions(modsec_rec *msr, msre_rule *rule,
+ msre_actionset *actionset, apr_pool_t *mptmp)
+{
+ const apr_array_header_t *tarr;
+ const apr_table_entry_t *telts;
+ int i;
+
+ tarr = apr_table_elts(actionset->actions);
+ telts = (const apr_table_entry_t*)tarr->elts;
+ for (i = 0; i < tarr->nelts; i++) {
+ msre_action *action = (msre_action *)telts[i].val;
+ if (action->metadata->type == ACTION_NON_DISRUPTIVE) {
+ if (action->metadata->execute != NULL) {
+ action->metadata->execute(msr, mptmp, rule, action);
+ }
+ }
+ }
+}
+
+/**
+ * Perform the disruptive actions associated with the given actionset.
+ */
+static void msre_perform_disruptive_actions(modsec_rec *msr, msre_rule *rule,
+ msre_actionset *actionset, apr_pool_t *mptmp, const char *message)
+{
+ const apr_array_header_t *tarr;
+ const apr_table_entry_t *telts;
+ int i;
+
+ /* Execute the disruptive actions. Do note that this does
+ * not mean the request will be interrupted straight away. All
+ * disruptive actions need to do here is update the information
+ * that will be used to act later.
+ */
+ tarr = apr_table_elts(actionset->actions);
+ telts = (const apr_table_entry_t*)tarr->elts;
+ for (i = 0; i < tarr->nelts; i++) {
+ msre_action *action = (msre_action *)telts[i].val;
+ if (action->metadata->type == ACTION_DISRUPTIVE) {
+ if (action->metadata->execute != NULL) {
+ action->metadata->execute(msr, mptmp, rule, action);
+ }
+ }
+ }
+
+ /* If "noauditlog" was used do not mark the transaction relevant. */
+ if (actionset->auditlog != 0) {
+ msr->is_relevant++;
+ }
+
+ /* We only do stuff when in ONLINE mode. In all other
+ * cases we only emit warnings.
+ */
+ if ((msr->phase == PHASE_LOGGING)
+ || (msr->txcfg->is_enabled == MODSEC_DETECTION_ONLY)
+ || (msr->modsecurity->processing_mode == MODSEC_OFFLINE)
+ || (actionset->intercept_action == ACTION_NONE))
+ {
+ int log_level;
+
+ /* If "nolog" was used log at a higher level to prevent an "alert". */
+ if (actionset->log == 0) {
+ log_level = 4;
+
+ /* But, if "auditlog" is enabled, then still add the message. */
+ if (actionset->auditlog != 0) {
+ *(const char **)apr_array_push(msr->alerts) = msc_alert_message(msr, actionset, NULL, message);
+ }
+
+ }
+ else {
+ log_level = 2;
+ }
+
+ msc_alert(msr, log_level, actionset, "Warning.", message);
+
+ /* However, this will mark the txn relevant again if it is <= 3,
+ * which will mess up noauditlog. We need to compensate for this
+ * so that we do not increment twice when auditlog is enabled and
+ * prevent incrementing when auditlog is disabled.
+ */
+ if (log_level <= 3) {
+ msr->is_relevant--;
+ }
+
+ return;
+ }
+
+ /* Signal to the engine we need to intercept this
+ * transaction, and rememer the rule that caused it.
+ */
+ msr->was_intercepted = 1;
+ msr->rule_was_intercepted = 1;
+ msr->intercept_phase = msr->phase;
+ msr->intercept_actionset = actionset;
+ msr->intercept_message = message;
+}
+
+/**
+ * Invokes the rule operator against the given value.
+ */
+static int execute_operator(msre_var *var, msre_rule *rule, modsec_rec *msr,
+ msre_actionset *acting_actionset, apr_pool_t *mptmp)
+{
+ apr_time_t time_before_op = 0;
+ char *my_error_msg = NULL;
+ const char *full_varname = NULL;
+ int rc;
+
+ /* determine the full var name if not already resolved
+ *
+ * NOTE: this can happen if the var does not match but it is
+ * being tested for non-existance as in:
+ * @REQUEST_HEADERS:Foo "@eq 0"
+ * @REQUEST_HEADERS:Foo "!@eq 1"
+ */
+ if ((var->param != NULL) && (var->name != NULL) && (strchr(var->name,':') == NULL)) {
+ full_varname = apr_psprintf(mptmp, "%s%s:%s",
+ (var->is_counting ? "&" : ""),
+ var->name, var->param);
+ }
+ else if ((var->name != NULL) && var->is_counting && (*var->name != '&')) {
+ full_varname = apr_pstrcat(mptmp, "&", var->name, NULL);
+ }
+ else {
+ full_varname = var->name;
+ }
+
+ if (msr->txcfg->debuglog_level >= 4) {
+ msr_log(msr, 4, "Executing operator \"%s%s\" with param \"%s\" against %s.",
+ (rule->op_negated ? "!" : ""), rule->op_name,
+ log_escape(msr->mp, rule->op_param), full_varname);
+ }
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Target value: \"%s\"", log_escape_nq_ex(msr->mp, var->value,
+ var->value_len));
+ }
+
+ #if defined(PERFORMANCE_MEASUREMENT)
+ time_before_op = apr_time_now();
+ #else
+ if (msr->txcfg->debuglog_level >= 4) {
+ time_before_op = apr_time_now();
+ }
+ #endif
+
+ rc = rule->op_metadata->execute(msr, rule, var, &my_error_msg);
+
+ #if defined(PERFORMANCE_MEASUREMENT)
+ {
+ /* Record performance but do not log anything. */
+ apr_time_t t1 = apr_time_now();
+ rule->op_time += (t1 - time_before_op);
+ }
+ #else
+ if (msr->txcfg->debuglog_level >= 4) {
+ apr_time_t t1 = apr_time_now();
+ msr_log(msr, 4, "Operator completed in %" APR_TIME_T_FMT " usec.", (t1 - time_before_op));
+ }
+ #endif
+
+ if (rc < 0) {
+ msr_log(msr, 4, "Operator error: %s", my_error_msg);
+ return -1;
+ }
+
+ if (((rc == 0)&&(rule->op_negated == 0))||((rc == 1)&&(rule->op_negated == 1))) {
+ /* No match, do nothing. */
+ return RULE_NO_MATCH;
+ }
+ else {
+ /* Match. */
+ if (rc == 0) {
+ char *op_param = log_escape(msr->mp, rule->op_param);
+
+ /* Truncate op parameter. */
+ if (strlen(op_param) > 252) {
+ op_param = apr_psprintf(msr->mp, "%.252s ...", op_param);
+ }
+
+ /* Operator did not match so we need to provide a message. */
+ my_error_msg = apr_psprintf(msr->mp, "Match of \"%s %s\" against \"%s\" required.",
+ log_escape(msr->mp, rule->op_name), op_param,
+ log_escape(msr->mp, full_varname));
+ }
+
+ /* Save the rules that match */
+ *(const msre_rule **)apr_array_push(msr->matched_rules) = rule;
+
+ /* Save the last matched var data */
+ msr->matched_var->name = apr_pstrdup(msr->mp, var->name);
+ msr->matched_var->name_len = strlen(msr->matched_var->name);
+ msr->matched_var->value = apr_pmemdup(msr->mp, var->value, var->value_len);
+ msr->matched_var->value_len = var->value_len;
+
+ /* Keep track of the highest severity matched so far */
+ if ((acting_actionset->severity > 0) && (acting_actionset->severity < msr->highest_severity))
+ {
+ msr->highest_severity = acting_actionset->severity;
+ }
+
+
+ /* Perform non-disruptive actions. */
+ msre_perform_nondisruptive_actions(msr, rule, rule->actionset, mptmp);
+
+ /* Perform disruptive actions, but only if
+ * this rule is not part of a chain.
+ */
+ if (rule->actionset->is_chained == 0) {
+ msre_perform_disruptive_actions(msr, rule, acting_actionset, mptmp, my_error_msg);
+ }
+
+ return RULE_MATCH;
+ }
+}
+
+/**
+ * Executes rule against the given transaction.
+ */
+static apr_status_t msre_rule_process_normal(msre_rule *rule, modsec_rec *msr) {
+ const apr_array_header_t *arr = NULL;
+ const apr_table_entry_t *te = NULL;
+ msre_actionset *acting_actionset = NULL;
+ msre_var **targets = NULL;
+ apr_pool_t *mptmp = msr->msc_rule_mptmp;
+ apr_table_t *tartab = NULL;
+ apr_table_t *vartab = NULL;
+ int i, rc = 0, match_count = 0;
+ int invocations = 0;
+ int multi_match = 0;
+
+ /* Choose the correct metadata/disruptive action actionset. */
+ acting_actionset = rule->actionset;
+ if (rule->chain_starter != NULL) {
+ acting_actionset = rule->chain_starter->actionset;
+ }
+
+ /* Configure recursive matching. */
+ if (apr_table_get(rule->actionset->actions, "multiMatch") != NULL) {
+ multi_match = 1;
+ }
+
+ /* ENH: What is a good initial size? */
+ tartab = apr_table_make(mptmp, 24);
+ if (tartab == NULL) return -1;
+ vartab = apr_table_make(mptmp, 24);
+ if (vartab == NULL) return -1;
+
+ /* Expand variables to create a list of targets. */
+
+ targets = (msre_var **)rule->targets->elts;
+ for (i = 0; i < rule->targets->nelts; i++) {
+ int j, list_count;
+
+ apr_table_clear(vartab);
+
+ /* ENH Introduce a new variable hook that would allow the code
+ * behind the variable to return the size of the collection
+ * without having to generate the variables.
+ */
+
+ /* Expand individual variables first. */
+ list_count = targets[i]->metadata->generate(msr, targets[i], rule, vartab, mptmp);
+
+ if (targets[i]->is_counting) {
+ /* Count how many there are and just add the score to the target list. */
+ msre_var *newvar = (msre_var *)apr_pmemdup(mptmp, targets[i], sizeof(msre_var));
+ newvar->value = apr_psprintf(mptmp, "%d", list_count);
+ newvar->value_len = strlen(newvar->value);
+ apr_table_addn(tartab, newvar->name, (void *)newvar);
+ } else {
+ /* And either add them or remove from the final target list. */
+ arr = apr_table_elts(vartab);
+ te = (apr_table_entry_t *)arr->elts;
+ for(j = 0; j < arr->nelts; j++) {
+ if (targets[i]->is_negated == 0) {
+ apr_table_addn(tartab, te[j].key, te[j].val);
+ } else {
+ apr_table_unset(tartab, te[j].key);
+ }
+ }
+ }
+ }
+
+ /* Log the target variable expansion */
+ if (msr->txcfg->debuglog_level >= 4) {
+ const char *expnames = NULL;
+
+ arr = apr_table_elts(tartab);
+ if (arr->nelts > 1) {
+ te = (apr_table_entry_t *)arr->elts;
+ expnames = apr_pstrdup(mptmp, ((msre_var *)te[0].val)->name);
+ for(i = 1; i < arr->nelts; i++) {
+ expnames = apr_psprintf(mptmp, "%s|%s", expnames, ((msre_var *)te[i].val)->name);
+ }
+ if (strcmp(rule->p1, expnames) != 0) {
+ msr_log(msr, 4, "Expanded \"%s\" to \"%s\".", rule->p1, expnames);
+ }
+ }
+ }
+
+ /* Loop through targets on the final target list,
+ * perform transformations as necessary, and invoke
+ * the operator.
+ */
+
+ arr = apr_table_elts(tartab);
+ te = (apr_table_entry_t *)arr->elts;
+ for (i = 0; i < arr->nelts; i++) {
+ int changed;
+ int usecache = 0;
+ apr_table_t *cachetab = NULL;
+ apr_time_t time_before_trans = 0;
+ msre_var *var;
+
+ /* Take one target. */
+ var = (msre_var *)te[i].val;
+
+ /* Is this var cacheable? */
+ if (msr->txcfg->cache_trans != MODSEC_CACHE_DISABLED) {
+ usecache = 1;
+
+ /* Counting vars are not cacheable due to them being created
+ * in a local per-rule pool.
+ */
+ if (var->is_counting) {
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "CACHE: Disabled - &%s is dynamic", var->name);
+ }
+
+ usecache = 0;
+ }
+ /* Only cache if if the variable is available in this phase */
+ else if (msr->phase < var->metadata->availability) {
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "CACHE: Disabled - %s is not yet available in phase %d (requires phase %d or later)", var->name, msr->phase, var->metadata->availability);
+ }
+
+ usecache = 0;
+ }
+ /* check the cache options */
+ else if (var->value_len < msr->txcfg->cache_trans_min) {
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "CACHE: Disabled - %s value length=%u, smaller than minlen=%" APR_SIZE_T_FMT, var->name, var->value_len, msr->txcfg->cache_trans_min);
+ }
+
+ usecache = 0;
+ }
+ else if ((msr->txcfg->cache_trans_max != 0) && (var->value_len > msr->txcfg->cache_trans_max)) {
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "CACHE: Disabled - %s value length=%u, larger than maxlen=%" APR_SIZE_T_FMT, var->name, var->value_len, msr->txcfg->cache_trans_max);
+ }
+
+ usecache = 0;
+ }
+
+ /* if cache is still enabled, check the VAR for cacheablity */
+ if (usecache) {
+ if (var->metadata->is_cacheable == VAR_CACHE) {
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "CACHE: Enabled");
+ }
+
+ #ifdef CACHE_DEBUG
+ msr_log(msr, 9, "CACHE: Fetching cache entry from hash=%pp: %pp=%s", msr->tcache, var, var->name);
+ #endif
+
+ /* Fetch cache table for this target */
+ cachetab = (apr_table_t *)apr_hash_get(msr->tcache, var->value, sizeof(var->value));
+
+ /* Create an empty cache table if this is the first time */
+ #ifdef CACHE_DEBUG
+ if (cachetab) {
+ msr_log(msr, 9, "CACHE: Using cache table %pp", cachetab);
+ }
+ else
+ #else
+ if (cachetab == NULL)
+ #endif
+ {
+ /* NOTE: We use the pointer to the var value as a hash
+ * key as it is unique. This pointer *must*
+ * remain valid through the entire phase. If
+ * it does not, then we will not receive a cache
+ * hit and just wasted RAM. So, it is important
+ * that any such vars be marked as VAR_DONT_CACHE.
+ *
+ * ENH: Only use pointer for non-scalar vars
+ */
+ cachetab = apr_table_make(msr->mp, 3);
+ apr_hash_set(msr->tcache, var->value, sizeof(var->value), cachetab);
+
+ #ifdef CACHE_DEBUG
+ msr_log(msr, 9, "CACHE: Created a new cache table %pp for %pp", cachetab, var->value);
+ #endif
+ }
+
+ }
+ else {
+ usecache = 0;
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "CACHE: %s transformations are not cacheable", var->name);
+ }
+ }
+ }
+ }
+
+ #if defined(PERFORMANCE_MEASUREMENT)
+ time_before_trans = apr_time_now();
+ #else
+ if (msr->txcfg->debuglog_level >= 4) {
+ time_before_trans = apr_time_now();
+ }
+ #endif
+
+ /* Transform target. */
+ {
+ const apr_array_header_t *tarr;
+ const apr_table_entry_t *telts;
+ const char *tfnspath = NULL;
+ char *tfnskey = NULL;
+ int tfnscount = 0;
+ int last_cached_tfn = 0;
+ msre_cache_rec *crec = NULL;
+ msre_cache_rec *last_crec = NULL;
+ int k;
+ msre_action *action;
+ msre_tfn_metadata *metadata;
+ apr_table_t *normtab;
+ const char *lastvarval = NULL;
+ apr_size_t lastvarlen = 0;
+
+ changed = 0;
+ normtab = apr_table_make(mptmp, 10);
+ if (normtab == NULL) return -1;
+ tarr = apr_table_elts(rule->actionset->actions);
+ telts = (const apr_table_entry_t*)tarr->elts;
+
+ /* Build the final list of transformation functions. */
+ for (k = 0; k < tarr->nelts; k++) {
+ action = (msre_action *)telts[k].val;
+
+ if (strcmp(telts[k].key, "t") == 0) {
+ if (strcmp(action->param, "none") == 0) {
+ apr_table_clear(normtab);
+ tfnspath = NULL;
+ tfnskey = NULL;
+ tfnscount = 0;
+ last_crec = NULL;
+ last_cached_tfn = 0;
+ continue;
+ }
+
+ if (action->param_plusminus == NEGATIVE_VALUE) {
+ apr_table_unset(normtab, action->param);
+ }
+ else {
+ tfnscount++;
+
+ apr_table_addn(normtab, action->param, (void *)action);
+
+ /* Check the cache, saving the 'most complete' as a
+ * starting point
+ */
+ if (usecache) {
+ tfnspath = apr_psprintf(mptmp, "%s%s%s", (tfnspath?tfnspath:""), (tfnspath?",":""), action->param);
+ tfnskey = apr_psprintf(mptmp, "%x;%s", tfnscount, tfnspath);
+ crec = (msre_cache_rec *)apr_table_get(cachetab, tfnskey);
+
+ #ifdef CACHE_DEBUG
+ msr_log(msr, 9, "CACHE: %s %s cached=%d", var->name, tfnskey, (crec ? 1 : 0));
+ #endif
+
+ if (crec != NULL) {
+ last_crec = crec;
+ last_cached_tfn = tfnscount;
+ }
+ }
+ }
+ }
+ }
+
+ /* If the last cached tfn is the last in the list
+ * then we can stop here and just execute the action immediatly
+ */
+ if (usecache && !multi_match &&
+ (crec != NULL) && (crec == last_crec))
+ {
+ crec->hits++;
+
+ if (crec->changed) {
+ var->value = apr_pmemdup(mptmp, crec->val, crec->val_len);
+ var->value_len = crec->val_len;
+ }
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "T (%d) %s: \"%s\" [fully cached hits=%d]", crec->changed, crec->path,
+ log_escape_nq_ex(mptmp, var->value, var->value_len), crec->hits);
+ }
+
+ #if defined(PERFORMANCE_MEASUREMENT)
+ {
+ apr_time_t t1 = apr_time_now();
+ rule->trans_time += (t1 - time_before_trans);
+ }
+ #else
+ if (msr->txcfg->debuglog_level >= 4) {
+ apr_time_t t1 = apr_time_now();
+
+ msr_log(msr, 4, "Transformation completed in %" APR_TIME_T_FMT " usec.",
+ (t1 - time_before_trans));
+ }
+ #endif
+
+ rc = execute_operator(var, rule, msr, acting_actionset, mptmp);
+
+ if (rc < 0) {
+ return -1;
+ }
+
+ if (rc == RULE_MATCH) {
+ match_count++;
+
+ /* Return straight away if the transaction
+ * was intercepted - no need to process the remaining
+ * targets.
+ */
+ if (msr->rule_was_intercepted) {
+ return RULE_MATCH;
+ }
+ }
+
+ continue; /* next target */
+ }
+
+
+ /* Perform transformations. */
+
+ tarr = apr_table_elts(normtab);
+
+ /* Execute transformations in a loop. */
+
+ /* Start after the last known cached transformation if we can */
+ if (!multi_match && (last_crec != NULL)) {
+ k = last_cached_tfn;
+ tfnspath = last_crec->path;
+ last_crec->hits++;
+
+ if ((changed = last_crec->changed) > 0) {
+ var->value = last_crec->val;
+ var->value_len = last_crec->val_len;
+ }
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "T (%d) %s: \"%s\" [partially cached hits=%d]", last_crec->changed,
+ tfnspath, log_escape_nq_ex(mptmp, var->value, var->value_len), last_crec->hits);
+ }
+ }
+ else {
+ tfnspath = NULL;
+ k = 0;
+ }
+
+ /* Make a copy of the value so that we can change it in-place. */
+ if (tarr->nelts) {
+ var->value = apr_pstrmemdup(mptmp, var->value, var->value_len);
+ /* var->value_len remains the same */
+ }
+
+ telts = (const apr_table_entry_t*)tarr->elts;
+ for (; k < tarr->nelts; k++) {
+ char *rval = NULL;
+ long int rval_length = -1;
+ int tfnchanged = 0;
+
+ /* In multi-match mode we execute the operator
+ * once at the beginning and then once every
+ * time the variable is changed by the transformation
+ * function.
+ */
+ if (multi_match && (k == 0 || tfnchanged)) {
+ invocations++;
+
+ #if defined(PERFORMANCE_MEASUREMENT)
+ {
+ apr_time_t t1 = apr_time_now();
+ rule->trans_time += (t1 - time_before_trans);
+ }
+ #else
+ if (msr->txcfg->debuglog_level >= 4) {
+ apr_time_t t1 = apr_time_now();
+
+ msr_log(msr, 4, "Transformation completed in %" APR_TIME_T_FMT " usec.",
+ (t1 - time_before_trans));
+ }
+ #endif
+
+ rc = execute_operator(var, rule, msr, acting_actionset, mptmp);
+
+ if (rc < 0) {
+ return -1;
+ }
+
+ if (rc == RULE_MATCH) {
+ match_count++;
+
+ /* Return straight away if the transaction
+ * was intercepted - no need to process the remaining
+ * targets.
+ */
+ if (msr->rule_was_intercepted) {
+ return RULE_MATCH;
+ }
+ }
+ }
+
+ /* Perform one transformation. */
+ action = (msre_action *)telts[k].val;
+ metadata = (msre_tfn_metadata *)action->param_data;
+ tfnchanged = metadata->execute(mptmp,
+ (unsigned char *)var->value, var->value_len,
+ &rval, &rval_length);
+
+ if (tfnchanged < 0) {
+ return -1;
+ }
+
+ if (tfnchanged) {
+ changed++;
+ }
+
+ /* Use the new values */
+ var->value = rval;
+ var->value_len = rval_length;
+
+ /* Cache the transformation */
+ if (usecache) {
+ int tfnsnum = k + 1;
+
+ /* Generate the cache key */
+ tfnspath = apr_psprintf(msr->mp, "%s%s%s", (tfnspath ? tfnspath : ""),
+ (tfnspath ? "," : ""), action->param);
+ tfnskey = apr_psprintf(msr->mp, "%x;%s", tfnsnum, tfnspath);
+
+ if ((msr->txcfg->cache_trans_maxitems != 0) &&
+ (msr->tcache_items >= msr->txcfg->cache_trans_maxitems))
+ {
+ /* Warn only once if we attempt to go over the cache limit. */
+ if (msr->tcache_items == msr->txcfg->cache_trans_maxitems) {
+ msr->tcache_items++;
+ msr_log(msr, 4, "CACHE: Disabled - phase=%d"
+ " maxitems=%" APR_SIZE_T_FMT
+ " limit reached.",
+ msr->phase,
+ msr->txcfg->cache_trans_maxitems);
+ }
+ }
+ else if (msr->txcfg->cache_trans_incremental ||
+ (tfnsnum == tarr->nelts))
+ {
+ /* ENH1: Add flag to vars to tell which ones can change across phases store the rest in a global cache */
+ crec = (msre_cache_rec *)apr_pcalloc(msr->mp, sizeof(msre_cache_rec));
+ if (crec == NULL) return -1;
+
+ crec->hits = 0;
+ crec->changed = changed;
+ crec->num = k + 1;
+ crec->path = tfnspath;
+
+ /* We want to cache a copy if it changed otherwise
+ * we just want to use a pointer to the last changed value.
+ */
+ crec->val = (!lastvarval || tfnchanged) ? apr_pmemdup(msr->mp, var->value, var->value_len) : lastvarval;
+ crec->val_len = changed ? ((!lastvarval || tfnchanged) ? var->value_len : lastvarlen) : 0;
+
+ /* Keep track of the last changed var value */
+ if (tfnchanged) {
+ lastvarval = crec->val;
+ lastvarlen = crec->val_len;
+ }
+
+ #ifdef CACHE_DEBUG
+ if (changed) {
+ msr_log(msr, 9, "CACHE: Caching %s=\"%s\" (%pp)",
+ tfnskey,
+ log_escape_nq_ex(mptmp,
+ crec->val,
+ crec->val_len),
+ var);
+ }
+ else {
+ msr_log(msr, 9, "CACHE: Caching %s=<no change> (%pp)",
+ tfnskey,
+ var);
+ }
+ #endif
+
+ msr->tcache_items++;
+
+ apr_table_setn(cachetab, tfnskey, (void *)crec);
+ }
+ }
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "T (%d) %s: \"%s\"", rc, metadata->name,
+ log_escape_nq_ex(mptmp, var->value, var->value_len));
+ }
+ }
+ }
+
+ /* Execute operator if multi-matching is not enabled,
+ * or if it is and we need to process the result of the
+ * last transformation.
+ */
+ if (!multi_match || changed) {
+ invocations++;
+
+ #if defined(PERFORMANCE_MEASUREMENT)
+ {
+ apr_time_t t1 = apr_time_now();
+ rule->trans_time += (t1 - time_before_trans);
+ }
+ #else
+ if (msr->txcfg->debuglog_level >= 4) {
+ apr_time_t t1 = apr_time_now();
+
+ msr_log(msr, 4, "Transformation completed in %" APR_TIME_T_FMT " usec.",
+ (t1 - time_before_trans));
+ }
+ #endif
+
+ rc = execute_operator(var, rule, msr, acting_actionset, mptmp);
+
+ if (rc < 0) {
+ return -1;
+ }
+
+ if (rc == RULE_MATCH) {
+ match_count++;
+
+ /* Return straight away if the transaction
+ * was intercepted - no need to process the remaining
+ * targets.
+ */
+ if (msr->rule_was_intercepted) {
+ return RULE_MATCH;
+ }
+ }
+ }
+ }
+
+
+ return (match_count ? RULE_MATCH : RULE_NO_MATCH);
+}
+
+#if defined(WITH_LUA)
+/**
+ *
+ */
+static apr_status_t msre_rule_process_lua(msre_rule *rule, modsec_rec *msr) {
+ msre_actionset *acting_actionset = NULL;
+ char *my_error_msg = NULL;
+ int rc;
+
+ /* Choose the correct metadata/disruptive action actionset. */
+ acting_actionset = rule->actionset;
+ if (rule->chain_starter != NULL) {
+ acting_actionset = rule->chain_starter->actionset;
+ }
+
+ rc = lua_execute(rule->script, NULL, msr, rule, &my_error_msg);
+ if (rc < 0) {
+ msr_log(msr, 1, "%s", my_error_msg);
+ return -1;
+ }
+
+ /* A non-NULL error message means the rule matched. */
+ if (my_error_msg != NULL) {
+ /* Perform non-disruptive actions. */
+ msre_perform_nondisruptive_actions(msr, rule, rule->actionset, msr->msc_rule_mptmp);
+
+ /* Perform disruptive actions, but only if
+ * this rule is not part of a chain.
+ */
+ if (rule->actionset->is_chained == 0) {
+ msre_perform_disruptive_actions(msr, rule, acting_actionset, msr->msc_rule_mptmp, my_error_msg);
+ }
+ }
+
+ return rc;
+}
+#endif
+
+/**
+ *
+ */
+apr_status_t msre_rule_process(msre_rule *rule, modsec_rec *msr) {
+ /* Use a fresh memory sub-pool for processing each rule */
+ if (msr->msc_rule_mptmp == NULL) {
+ if (apr_pool_create(&msr->msc_rule_mptmp, msr->mp) != APR_SUCCESS) {
+ return -1;
+ }
+ } else {
+ apr_pool_clear(msr->msc_rule_mptmp);
+ }
+
+ #if defined(WITH_LUA)
+ if (rule->type == RULE_TYPE_LUA) {
+ return msre_rule_process_lua(rule, msr);
+ }
+ #endif
+
+ return msre_rule_process_normal(rule, msr);
+}
+
+/**
+ * Checks whether the given rule ID is in the given range.
+ */
+int rule_id_in_range(int ruleid, const char *range) {
+ char *p = NULL, *saveptr = NULL;
+ char *data = NULL;
+
+ if (range == NULL) return 0;
+ data = strdup(range);
+ if (data == NULL) return 0;
+
+ p = apr_strtok(data, ",", &saveptr);
+ while(p != NULL) {
+ char *s = strstr(p, "-");
+ if (s == NULL) {
+ if (ruleid == atoi(p)) {
+ free(data);
+ return 1;
+ }
+ } else {
+ int start = atoi(p);
+ int end = atoi(s + 1);
+ if ((ruleid >= start)&&(ruleid <= end)) {
+ free(data);
+ return 1;
+ }
+ }
+ p = apr_strtok(NULL, ",", &saveptr);
+ }
+
+ free(data);
+
+ return 0;
+}
--- /dev/null
+/*
+ * ModSecurity for Apache 2.x, http://www.modsecurity.org/
+ * Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
+ *
+ * This product is released under the terms of the General Public Licence,
+ * version 2 (GPLv2). Please refer to the file LICENSE (included with this
+ * distribution) which contains the complete text of the licence.
+ *
+ * There are special exceptions to the terms and conditions of the GPL
+ * as it is applied to this software. View the full text of the exception in
+ * file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
+ * distribution.
+ *
+ * If any of the files related to licensing are missing or if you have any
+ * other questions related to licensing please contact Breach Security, Inc.
+ * directly using the email address support@breach.com.
+ *
+ */
+#ifndef _MSC_RE_H_
+#define _MSC_RE_H_
+
+#define ABSOLUTE_VALUE 0
+#define POSITIVE_VALUE 1
+#define NEGATIVE_VALUE 2
+
+typedef struct msre_engine msre_engine;
+typedef struct msre_ruleset msre_ruleset;
+typedef struct msre_ruleset_internal msre_ruleset_internal;
+typedef struct msre_rule msre_rule;
+typedef struct msre_var_metadata msre_var_metadata;
+typedef struct msre_var msre_var;
+typedef struct msre_op_metadata msre_op_metadata;
+typedef struct msre_tfn_metadata msre_tfn_metadata;
+typedef struct msre_actionset msre_actionset;
+typedef struct msre_action_metadata msre_action_metadata;
+typedef struct msre_action msre_action;
+typedef struct msre_cache_rec msre_cache_rec;
+
+#include "apr_general.h"
+#include "apr_tables.h"
+#include "modsecurity.h"
+#include "msc_pcre.h"
+#include "persist_dbm.h"
+#include "apache2.h"
+
+#if defined(WITH_LUA)
+#include "msc_lua.h"
+#endif
+
+/* Actions, variables, functions and operator functions */
+
+apr_status_t DSOLOCAL collection_original_setvar(modsec_rec *msr, const char *col_name, const msc_string *orig_var);
+
+int DSOLOCAL expand_macros(modsec_rec *msr, msc_string *var, msre_rule *rule, apr_pool_t *mptmp);
+
+apr_status_t DSOLOCAL msre_parse_targets(msre_ruleset *ruleset, const char *text,
+ apr_array_header_t *arr, char **error_msg);
+
+apr_status_t DSOLOCAL msre_parse_actions(msre_engine *engine, msre_actionset *actionset,
+ const char *text, char **error_msg);
+
+msre_var_metadata DSOLOCAL *msre_resolve_var(msre_engine *engine, const char *name);
+
+msre_action_metadata DSOLOCAL *msre_resolve_action(msre_engine *engine, const char *name);
+
+msre_var DSOLOCAL *msre_create_var(msre_ruleset *ruleset, const char *name, const char *param,
+ modsec_rec *msr, char **error_msg);
+
+msre_var DSOLOCAL *msre_create_var_ex(apr_pool_t *pool, msre_engine *engine, const char *name, const char *param,
+ modsec_rec *msr, char **error_msg);
+
+msre_action DSOLOCAL *msre_create_action(msre_engine *engine, const char *name,
+ const char *param, char **error_msg);
+
+int DSOLOCAL msre_parse_generic(apr_pool_t *pool, const char *text, apr_table_t *vartable,
+ char **error_msg);
+
+int DSOLOCAL rule_id_in_range(int ruleid, const char *range);
+
+msre_var DSOLOCAL *generate_single_var(modsec_rec *msr, msre_var *var, apr_array_header_t *tfn_arr,
+ msre_rule *rule, apr_pool_t *mptmp);
+
+apr_table_t DSOLOCAL *generate_multi_var(modsec_rec *msr, msre_var *var, apr_array_header_t *tfn_arr,
+ msre_rule *rule, apr_pool_t *mptmp);
+
+/* Structures with the corresponding functions */
+
+struct msre_engine {
+ apr_pool_t *mp;
+ apr_table_t *variables;
+ apr_table_t *operators;
+ apr_table_t *actions;
+ apr_table_t *tfns;
+};
+
+msre_engine DSOLOCAL *msre_engine_create(apr_pool_t *parent_pool);
+
+void DSOLOCAL msre_engine_destroy(msre_engine *engine);
+
+msre_op_metadata DSOLOCAL *msre_engine_op_resolve(msre_engine *engine, const char *name);
+
+struct msre_ruleset {
+ apr_pool_t *mp;
+ msre_engine *engine;
+
+ apr_array_header_t *phase_request_headers;
+ apr_array_header_t *phase_request_body;
+ apr_array_header_t *phase_response_headers;
+ apr_array_header_t *phase_response_body;
+ apr_array_header_t *phase_logging;
+};
+
+apr_status_t DSOLOCAL msre_ruleset_process_phase(msre_ruleset *ruleset, modsec_rec *msr);
+
+apr_status_t DSOLOCAL msre_ruleset_process_phase_internal(msre_ruleset *ruleset, modsec_rec *msr);
+
+msre_ruleset DSOLOCAL *msre_ruleset_create(msre_engine *engine, apr_pool_t *mp);
+
+int DSOLOCAL msre_ruleset_rule_add(msre_ruleset *ruleset, msre_rule *rule, int phase);
+
+msre_rule DSOLOCAL *msre_ruleset_fetch_rule(msre_ruleset *ruleset, const char *id);
+
+int DSOLOCAL msre_ruleset_rule_remove_with_exception(msre_ruleset *ruleset, rule_exception *re);
+
+/*
+int DSOLOCAL msre_ruleset_phase_rule_remove_with_exception(msre_ruleset *ruleset, rule_exception *re,
+ apr_array_header_t *phase_arr);
+*/
+
+#define RULE_NO_MATCH 0
+#define RULE_MATCH 1
+
+#define RULE_PH_NONE 0 /* Not a placeholder */
+#define RULE_PH_SKIPAFTER 1 /* Implicit placeholder for skipAfter */
+#define RULE_PH_MARKER 2 /* Explicit placeholder for SecMarker */
+
+#define RULE_TYPE_NORMAL 0 /* SecRule */
+#define RULE_TYPE_ACTION 1 /* SecAction */
+#define RULE_TYPE_MARKER 2 /* SecMarker */
+#if defined(WITH_LUA)
+#define RULE_TYPE_LUA 3 /* SecRuleScript */
+#endif
+
+struct msre_rule {
+ apr_array_header_t *targets;
+ const char *op_name;
+ const char *op_param;
+ void *op_param_data;
+ msre_op_metadata *op_metadata;
+ unsigned int op_negated;
+ msre_actionset *actionset;
+ const char *p1;
+ const char *unparsed;
+ const char *filename;
+ int line_num;
+ int placeholder;
+ int type;
+
+ msre_ruleset *ruleset;
+ msre_rule *chain_starter;
+ #if defined(PERFORMANCE_MEASUREMENT)
+ unsigned int execution_time;
+ unsigned int trans_time;
+ unsigned int op_time;
+ #endif
+
+ #if defined(WITH_LUA)
+ /* Compiled Lua script. */
+ msc_script *script;
+ #endif
+};
+
+char DSOLOCAL *msre_rule_generate_unparsed(apr_pool_t *pool, const msre_rule *rule, const char *targets, const char *args, const char *actions);
+
+msre_rule DSOLOCAL *msre_rule_create(msre_ruleset *ruleset, int type,
+ const char *fn, int line, const char *targets,
+ const char *args, const char *actions, char **error_msg);
+
+#if defined(WITH_LUA)
+msre_rule DSOLOCAL *msre_rule_lua_create(msre_ruleset *ruleset,
+ const char *fn, int line, const char *script_filename,
+ const char *actions, char **error_msg);
+#endif
+
+apr_status_t DSOLOCAL msre_rule_process(msre_rule *rule, modsec_rec *msr);
+
+#define VAR_SIMPLE 0 /* REQUEST_URI */
+#define VAR_LIST 1
+
+#define PHASE_REQUEST_HEADERS 1
+#define PHASE_REQUEST_BODY 2
+#define PHASE_RESPONSE_HEADERS 3
+#define PHASE_RESPONSE_BODY 4
+#define PHASE_LOGGING 5
+
+typedef int (*fn_op_param_init_t)(msre_rule *rule, char **error_msg);
+typedef int (*fn_op_execute_t)(modsec_rec *msr, msre_rule *rule, msre_var *var, char **error_msg);
+
+struct msre_op_metadata {
+ const char *name;
+ fn_op_param_init_t param_init;
+ fn_op_execute_t execute;
+};
+
+typedef int (*fn_tfn_execute_t)(apr_pool_t *pool, unsigned char *input, long int input_length, char **rval, long int *rval_length);
+
+struct msre_tfn_metadata {
+ const char *name;
+
+ /* Functions should populate *rval and return 1 on
+ * success, or return -1 on failure (in which case *rval
+ * should contain the error message. Strict functions
+ * (those that validate in
+ * addition to transforming) can return 0 when input
+ * fails validation. Functions are free to perform
+ * in-place transformation, or to allocate a new buffer
+ * from the provideded temporary (per-rule) memory pool.
+ *
+ * NOTE Strict transformation functions not supported yet.
+ */
+ fn_tfn_execute_t execute;
+};
+
+void DSOLOCAL msre_engine_tfn_register(msre_engine *engine, const char *name,
+ fn_tfn_execute_t execute);
+
+void DSOLOCAL msre_engine_op_register(msre_engine *engine, const char *name,
+ fn_op_param_init_t fn1, fn_op_execute_t fn2);
+
+void DSOLOCAL msre_engine_register_default_tfns(msre_engine *engine);
+
+void DSOLOCAL msre_engine_register_default_variables(msre_engine *engine);
+
+void DSOLOCAL msre_engine_register_default_operators(msre_engine *engine);
+
+void DSOLOCAL msre_engine_register_default_actions(msre_engine *engine);
+
+msre_tfn_metadata DSOLOCAL *msre_engine_tfn_resolve(msre_engine *engine, const char *name);
+
+#define VAR_DONT_CACHE 0
+#define VAR_CACHE 1
+
+typedef char *(*fn_var_validate_t)(msre_ruleset *ruleset, msre_var *var);
+typedef int (*fn_var_generate_t)(modsec_rec *msr, msre_var *var, msre_rule *rule, apr_table_t *table, apr_pool_t *mptmp);
+
+struct msre_var_metadata {
+ const char *name;
+ unsigned int type; /* VAR_TYPE_ constants */
+ unsigned int argc_min;
+ unsigned int argc_max;
+ fn_var_validate_t validate;
+ fn_var_generate_t generate;
+ unsigned int is_cacheable; /* 0 - no, 1 - yes */
+ unsigned int availability; /* when does this variable become available? */
+};
+
+struct msre_var {
+ const char *name;
+ const char *value;
+ unsigned int value_len;
+ const char *param;
+ const void *param_data;
+ msre_var_metadata *metadata;
+ msc_regex_t *param_regex;
+ unsigned int is_negated;
+ unsigned int is_counting;
+};
+
+
+struct msre_actionset {
+ apr_table_t *actions;
+
+ /* Metadata */
+ const char *id;
+ const char *rev;
+ const char *msg;
+ const char *logdata;
+ int severity;
+ int phase;
+ msre_rule *rule;
+
+ /* Flow */
+ int is_chained;
+ int skip_count;
+ const char *skip_after;
+
+ /* Disruptive */
+ int intercept_action;
+ const char *intercept_uri;
+ int intercept_status;
+ int intercept_pause;
+
+ /* "block" needs parent action to reset it */
+ msre_action *parent_intercept_action_rec;
+ msre_action *intercept_action_rec;
+ int parent_intercept_action;
+
+ /* Other */
+ int log;
+ int auditlog;
+ int block;
+};
+
+char DSOLOCAL *msre_actionset_generate_action_string(apr_pool_t *pool, const msre_actionset *actionset);
+
+void DSOLOCAL msre_engine_variable_register(msre_engine *engine, const char *name,
+ unsigned int type, unsigned int argc_min, unsigned int argc_max,
+ fn_var_validate_t validate, fn_var_generate_t generate,
+ unsigned int is_cacheable, unsigned int availability);
+
+msre_actionset DSOLOCAL *msre_actionset_create(msre_engine *engine, const char *text,
+ char **error_msg);
+
+msre_actionset DSOLOCAL *msre_actionset_merge(msre_engine *engine, msre_actionset *parent,
+ msre_actionset *child, int inherit_by_default);
+
+msre_actionset DSOLOCAL *msre_actionset_create_default(msre_engine *engine);
+
+void DSOLOCAL msre_actionset_set_defaults(msre_actionset *actionset);
+
+void DSOLOCAL msre_actionset_init(msre_actionset *actionset, msre_rule *rule);
+
+typedef char *(*fn_action_validate_t)(msre_engine *engine, msre_action *action);
+typedef apr_status_t (*fn_action_init_t)(msre_engine *engine, msre_actionset *actionset, msre_action *action);
+typedef apr_status_t (*fn_action_execute_t)(modsec_rec *msr, apr_pool_t *mptmp, msre_rule *rule, msre_action *action);
+
+#define ACTION_DISRUPTIVE 1
+#define ACTION_NON_DISRUPTIVE 2
+#define ACTION_METADATA 3
+#define ACTION_FLOW 4
+
+#define NO_PLUS_MINUS 0
+#define ALLOW_PLUS_MINUS 1
+
+#define ACTION_CARDINALITY_ONE 1
+#define ACTION_CARDINALITY_MANY 2
+
+#define ACTION_CGROUP_NONE 0
+#define ACTION_CGROUP_DISRUPTIVE 1
+#define ACTION_CGROUP_LOG 2
+#define ACTION_CGROUP_AUDITLOG 3
+
+struct msre_action_metadata {
+ const char *name;
+ unsigned int type;
+ unsigned int argc_min;
+ unsigned int argc_max;
+ unsigned int allow_param_plusminus;
+ unsigned int cardinality;
+ unsigned int cardinality_group;
+ fn_action_validate_t validate;
+ fn_action_init_t init;
+ fn_action_execute_t execute;
+};
+
+struct msre_action {
+ msre_action_metadata *metadata;
+ const char *param;
+ const void *param_data;
+ unsigned int param_plusminus; /* ABSOLUTE_VALUE, POSITIVE_VALUE, NEGATIVE_VALUE */
+};
+
+/* -- MSRE Function Prototypes ---------------------------------------------- */
+
+msre_var_metadata DSOLOCAL *msre_resolve_var(msre_engine *engine, const char *name);
+
+int DSOLOCAL msre_parse_generic(apr_pool_t *pool, const char *text, apr_table_t *vartable,
+ char **error_msg);
+
+apr_status_t DSOLOCAL msre_parse_vars(msre_ruleset *ruleset, const char *text,
+ apr_array_header_t *arr, char **error_msg);
+
+char DSOLOCAL *msre_format_metadata(modsec_rec *msr, msre_actionset *actionset);
+
+
+/* -- Data Cache -- */
+
+struct msre_cache_rec {
+ int hits;
+ int changed;
+ int num;
+ const char *path;
+ const char *val;
+ apr_size_t val_len;
+};
+
+#endif
--- /dev/null
+/*
+ * ModSecurity for Apache 2.x, http://www.modsecurity.org/
+ * Copyright (c) 2004-2008 Breach Security, Inc. (http://www.breach.com/)
+ *
+ * This product is released under the terms of the General Public Licence,
+ * version 2 (GPLv2). Please refer to the file LICENSE (included with this
+ * distribution) which contains the complete text of the licence.
+ *
+ * There are special exceptions to the terms and conditions of the GPL
+ * as it is applied to this software. View the full text of the exception in
+ * file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
+ * distribution.
+ *
+ * If any of the files related to licensing are missing or if you have any
+ * other questions related to licensing please contact Breach Security, Inc.
+ * directly using the email address support@breach.com.
+ *
+ */
+#include "re.h"
+#include <ctype.h>
+
+/**
+ * Register action with the engine.
+ */
+static void msre_engine_action_register(msre_engine *engine, const char *name,
+ unsigned int type, unsigned int argc_min, unsigned int argc_max,
+ unsigned int allow_param_plusminus, unsigned int cardinality,
+ unsigned int cardinality_group, fn_action_validate_t validate,
+ fn_action_init_t init, fn_action_execute_t execute)
+{
+ msre_action_metadata *metadata = (msre_action_metadata *)apr_pcalloc(engine->mp,
+ sizeof(msre_action_metadata));
+ if (metadata == NULL) return;
+
+ metadata->name = name;
+ metadata->type = type;
+ metadata->argc_min = argc_min;
+ metadata->argc_max = argc_max;
+ metadata->allow_param_plusminus = allow_param_plusminus;
+ metadata->cardinality = cardinality;
+ metadata->cardinality_group = cardinality_group;
+ metadata->validate = validate;
+ metadata->init = init;
+ metadata->execute = execute;
+
+ apr_table_setn(engine->actions, name, (void *)metadata);
+}
+
+/**
+ * Generates a single variable (from the supplied metadata).
+ */
+msre_var *generate_single_var(modsec_rec *msr, msre_var *var, apr_array_header_t *tfn_arr,
+ msre_rule *rule, apr_pool_t *mptmp)
+{
+ apr_table_t *vartab = NULL;
+ const apr_table_entry_t *te = NULL;
+ const apr_array_header_t *arr = NULL;
+ msre_var *rvar = NULL;
+ int i;
+
+ /* Sanity check. */
+ if ((var == NULL)||(var->metadata == NULL)||(var->metadata->generate == NULL)) return NULL;
+
+ vartab = apr_table_make(mptmp, 16);
+ var->metadata->generate(msr, var, rule, vartab, mptmp);
+
+ arr = apr_table_elts(vartab);
+ if (arr->nelts == 0) return NULL;
+ te = (apr_table_entry_t *)arr->elts;
+
+ rvar = (msre_var *)te[0].val;
+
+ /* Return straight away if there were no
+ * transformation functions supplied.
+ */
+ if ((tfn_arr == NULL)||(tfn_arr->nelts == 0)) {
+ return rvar;
+ }
+
+ /* Copy the value so that we can transform it in place. */
+ rvar->value = apr_pstrndup(mptmp, rvar->value, rvar->value_len);
+
+ /* Transform rvar in a loop. */
+ for (i = 0; i < tfn_arr->nelts; i++) {
+ msre_tfn_metadata *tfn = ((msre_tfn_metadata **)tfn_arr->elts)[i];
+ char *rval;
+ int rc;
+ long int rval_len;
+
+ rc = tfn->execute(mptmp, (unsigned char *)rvar->value,
+ rvar->value_len, &rval, &rval_len);
+
+ rvar->value = rval;
+ rvar->value_len = rval_len;
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "T (%d) %s: \"%s\"", rc, tfn->name,
+ log_escape_nq_ex(mptmp, rvar->value, rvar->value_len));
+ }
+ }
+
+ return rvar;
+}
+
+/**
+ *
+ */
+apr_table_t *generate_multi_var(modsec_rec *msr, msre_var *var, apr_array_header_t *tfn_arr,
+ msre_rule *rule, apr_pool_t *mptmp)
+{
+ const apr_array_header_t *tarr;
+ const apr_table_entry_t *telts;
+ apr_table_t *vartab = NULL, *tvartab = NULL;
+ msre_var *rvar = NULL;
+ int i, j;
+
+ /* Sanity check. */
+ if ((var == NULL)||(var->metadata == NULL)||(var->metadata->generate == NULL)) return NULL;
+
+ /* Generate variables. */
+ vartab = apr_table_make(mptmp, 16);
+ var->metadata->generate(msr, var, rule, vartab, mptmp);
+
+ /* Return straight away if there were no
+ * transformation functions supplied.
+ */
+ if ((tfn_arr == NULL)||(tfn_arr->nelts == 0)) {
+ return vartab;
+ }
+
+ tvartab = apr_table_make(mptmp, 16);
+
+ tarr = apr_table_elts(vartab);
+ telts = (const apr_table_entry_t*)tarr->elts;
+ for (j = 0; j < tarr->nelts; j++) {
+ rvar = (msre_var *)telts[j].val;
+
+ /* Copy the value so that we can transform it in place. */
+ rvar->value = apr_pstrndup(mptmp, rvar->value, rvar->value_len);
+
+ /* Transform rvar in a loop. */
+ for (i = 0; i < tfn_arr->nelts; i++) {
+ msre_tfn_metadata *tfn = ((msre_tfn_metadata **)tfn_arr->elts)[i];
+ char *rval;
+ int rc;
+ long int rval_len;
+
+ rc = tfn->execute(mptmp, (unsigned char *)rvar->value,
+ rvar->value_len, &rval, &rval_len);
+
+ rvar->value = rval;
+ rvar->value_len = rval_len;
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "T (%d) %s: \"%s\"", rc, tfn->name,
+ log_escape_nq_ex(mptmp, rvar->value, rvar->value_len));
+ }
+ }
+
+ apr_table_addn(tvartab, rvar->name, (void *)rvar);
+ }
+
+ return tvartab;
+}
+
+/**
+ * Expands macros ("%{NAME}" entities) if present
+ * in the given variable.
+ */
+int expand_macros(modsec_rec *msr, msc_string *var, msre_rule *rule, apr_pool_t *mptmp) {
+ char *data = NULL;
+ apr_array_header_t *arr = NULL;
+ char *p = NULL, *q = NULL, *t = NULL;
+ char *text_start = NULL, *next_text_start = NULL;
+ msc_string *part = NULL;
+ int i, offset = 0;
+
+ if (var->value == NULL) return 0;
+
+ /* IMP1 Duplicate the string and create the array on
+ * demand, thus not having to do it if there are
+ * no macros in the input data.
+ */
+
+ data = apr_pstrdup(mptmp, var->value); /* IMP1 Are we modifying data anywhere? */
+ arr = apr_array_make(mptmp, 16, sizeof(msc_string *));
+ if ((data == NULL)||(arr == NULL)) return -1;
+
+ text_start = next_text_start = data;
+ do {
+ text_start = next_text_start;
+ p = strstr(text_start, "%");
+ if (p != NULL) {
+ char *var_name = NULL;
+ char *var_value = NULL;
+
+ if ((*(p + 1) == '{')&&(*(p + 2) != '\0')) {
+ char *var_start = p + 2;
+
+ t = var_start;
+ while((*t != '\0')&&(*t != '}')) t++;
+ if (*t == '}') {
+ /* Named variable. */
+
+ var_name = apr_pstrmemdup(mptmp, var_start, t - var_start);
+ q = strstr(var_name, ".");
+ if (q != NULL) {
+ var_value = q + 1;
+ *q = '\0';
+ }
+
+ next_text_start = t + 1; /* *t was '}' */
+ } else {
+ /* Warn about a possiblly forgotten '}' */
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Warning: Possibly unterminated macro: \"%s\"",
+ log_escape_ex(mptmp, var_start - 2, t - var_start + 2));
+ }
+
+ next_text_start = t; /* *t was '\0' */
+ }
+ }
+
+ if (var_name != NULL) {
+ char *my_error_msg = NULL;
+ msre_var *var_generated = NULL;
+ msre_var *var_resolved = NULL;
+
+ /* Add the text part before the macro to the array. */
+ part = (msc_string *)apr_pcalloc(mptmp, sizeof(msc_string));
+ if (part == NULL) return -1;
+ part->value_len = p - text_start;
+ part->value = apr_pstrmemdup(mptmp, text_start, part->value_len);
+ *(msc_string **)apr_array_push(arr) = part;
+
+ /* Resolve the macro and add that to the array. */
+ var_resolved = msre_create_var_ex(mptmp, msr->modsecurity->msre, var_name, var_value,
+ msr, &my_error_msg);
+ if (var_resolved != NULL) {
+ var_generated = generate_single_var(msr, var_resolved, NULL, rule, mptmp);
+ if (var_generated != NULL) {
+ part = (msc_string *)apr_pcalloc(mptmp, sizeof(msc_string));
+ if (part == NULL) return -1;
+ part->value_len = var_generated->value_len;
+ part->value = (char *)var_generated->value;
+ *(msc_string **)apr_array_push(arr) = part;
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Resolved macro %%{%s%s%s} to \"%s\"",
+ var_name,
+ (var_value ? "." : ""),
+ (var_value ? var_value : ""),
+ log_escape_ex(mptmp, part->value, part->value_len));
+ }
+ }
+ } else {
+ msr_log(msr, 4, "Failed to resolve macro %%{%s%s%s}: %s",
+ var_name,
+ (var_value ? "." : ""),
+ (var_value ? var_value : ""),
+ my_error_msg);
+ }
+ } else {
+ /* We could not identify a valid macro so add it as text. */
+ part = (msc_string *)apr_pcalloc(mptmp, sizeof(msc_string));
+ if (part == NULL) return -1;
+ part->value_len = p - text_start + 1; /* len(text)+len("%") */
+ part->value = apr_pstrmemdup(mptmp, text_start, part->value_len);
+ *(msc_string **)apr_array_push(arr) = part;
+
+ next_text_start = p + 1;
+ }
+ } else {
+ /* Text part. */
+ part = (msc_string *)apr_pcalloc(mptmp, sizeof(msc_string));
+ part->value = apr_pstrdup(mptmp, text_start);
+ part->value_len = strlen(part->value);
+ *(msc_string **)apr_array_push(arr) = part;
+ }
+ } while (p != NULL);
+
+ /* If there's more than one member of the array that
+ * means there was at least one macro present. Combine
+ * text parts into a single string now.
+ */
+ if (arr->nelts > 1) {
+ /* Figure out the required size for the string. */
+ var->value_len = 0;
+ for(i = 0; i < arr->nelts; i++) {
+ part = ((msc_string **)arr->elts)[i];
+ var->value_len += part->value_len;
+ }
+
+ /* Allocate the string. */
+ var->value = apr_palloc(msr->mp, var->value_len + 1);
+ if (var->value == NULL) return -1;
+
+ /* Combine the parts. */
+ offset = 0;
+ for(i = 0; i < arr->nelts; i++) {
+ part = ((msc_string **)arr->elts)[i];
+ memcpy((char *)(var->value + offset), part->value, part->value_len);
+ offset += part->value_len;
+ }
+ var->value[offset] = '\0';
+ }
+
+ return 1;
+}
+
+/**
+ * Record the original collection values to use to calculate deltas.
+ * This can be called multiple times and will not overwrite the first
+ * value that is set.
+ */
+apr_status_t collection_original_setvar(modsec_rec *msr, const char *col_name, const msc_string *orig_var) {
+ apr_table_t *table = NULL;
+ msc_string *var = NULL;
+ const char *var_name = NULL;
+
+ if (orig_var == NULL) {
+ msr_log(msr, 1, "Internal Error: Attempt to record NULL original variable.");
+ return -1;
+ }
+
+ var_name = orig_var->name;
+ table = (apr_table_t *)apr_table_get(msr->collections_original, col_name);
+
+ /* Does the collection exist already? */
+ if (table == NULL) {
+ table = apr_table_make(msr->mp, 24);
+ if (table == NULL) {
+ msr_log(msr, 1, "Failed to allocate space for original collection.");
+ return -1;
+ }
+ apr_table_setn(msr->collections_original, apr_pstrdup(msr->mp, col_name), (void *)table);
+ }
+ else {
+ /* Does the variable exist already? */
+ var = (msc_string *)apr_table_get(table, var_name);
+ if (var != NULL) {
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Original collection variable: %s.%s = \"%s\"", col_name, var_name, log_escape_ex(msr->mp, orig_var->value, orig_var->value_len));
+ }
+ return 1;
+ }
+ }
+
+ var = (msc_string *)apr_palloc(msr->mp, sizeof(msc_string));
+ if (var == NULL) {
+ msr_log(msr, 1, "Failed to allocate space for original collection variable.");
+ return -1;
+ }
+
+ /* Copy the original var and add to collection. */
+ var->name = orig_var->name ? apr_pstrmemdup(msr->mp, orig_var->name, orig_var->name_len) : NULL;
+ var->name_len = orig_var->name_len;
+ var->value = orig_var->value ? apr_pstrmemdup(msr->mp, orig_var->value, orig_var->value_len) : NULL;
+ var->value_len = orig_var->value_len;
+ apr_table_setn(table, apr_pstrmemdup(msr->mp, var->name, var->name_len), (void *)var);
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Recorded original collection variable: %s.%s = \"%s\"", col_name, var_name, log_escape_ex(msr->mp, var->value, var->value_len));
+ }
+
+ return 0;
+}
+
+/* id */
+
+static apr_status_t msre_action_id_init(msre_engine *engine, msre_actionset *actionset,
+ msre_action *action)
+{
+ actionset->id = action->param;
+ return 1;
+}
+
+/* rev */
+
+static apr_status_t msre_action_rev_init(msre_engine *engine, msre_actionset *actionset,
+ msre_action *action)
+{
+ actionset->rev = action->param;
+ return 1;
+}
+
+/* msg */
+
+static apr_status_t msre_action_msg_init(msre_engine *engine, msre_actionset *actionset,
+ msre_action *action)
+{
+ actionset->msg = action->param;
+ return 1;
+}
+
+/* logdata */
+
+static apr_status_t msre_action_logdata_init(msre_engine *engine, msre_actionset *actionset,
+ msre_action *action)
+{
+ actionset->logdata = action->param;
+ return 1;
+}
+
+/* severity */
+
+static apr_status_t msre_action_severity_init(msre_engine *engine,
+ msre_actionset *actionset, msre_action *action)
+{
+ actionset->severity = atoi(action->param);
+ return 1;
+}
+
+/* chain */
+
+static apr_status_t msre_action_chain_init(msre_engine *engine, msre_actionset *actionset,
+ msre_action *action)
+{
+ actionset->is_chained = 1;
+ return 1;
+}
+
+/* log */
+static apr_status_t msre_action_log_init(msre_engine *engine, msre_actionset *actionset,
+ msre_action *action)
+{
+ actionset->log = 1;
+ return 1;
+}
+
+/* nolog */
+static apr_status_t msre_action_nolog_init(msre_engine *engine, msre_actionset *actionset,
+ msre_action *action)
+{
+ actionset->log = 0;
+ actionset->auditlog = 0;
+ return 1;
+}
+
+/* auditlog */
+static apr_status_t msre_action_auditlog_init(msre_engine *engine, msre_actionset *actionset,
+ msre_action *action)
+{
+ actionset->auditlog = 1;
+ return 1;
+}
+
+/* noauditlog */
+static apr_status_t msre_action_noauditlog_init(msre_engine *engine, msre_actionset *actionset,
+ msre_action *action)
+{
+ actionset->auditlog = 0;
+ return 1;
+}
+
+/* block */
+static apr_status_t msre_action_block_init(msre_engine *engine, msre_actionset *actionset,
+ msre_action *action)
+{
+ /* Right now we just set a flag and inherit the real disruptive action */
+ actionset->block = 1;
+ return 1;
+}
+
+/* deny */
+static apr_status_t msre_action_deny_init(msre_engine *engine, msre_actionset *actionset,
+ msre_action *action)
+{
+ actionset->intercept_action = ACTION_DENY;
+ actionset->intercept_action_rec = action;
+ return 1;
+}
+
+/* status */
+static char *msre_action_status_validate(msre_engine *engine, msre_action *action) {
+ /* ENH action->param must be a valid HTTP status code. */
+ return NULL;
+}
+
+static apr_status_t msre_action_status_init(msre_engine *engine, msre_actionset *actionset,
+ msre_action *action)
+{
+ actionset->intercept_status = atoi(action->param);
+ return 1;
+}
+
+/* drop */
+static apr_status_t msre_action_drop_init(msre_engine *engine, msre_actionset *actionset,
+ msre_action *action)
+{
+ actionset->intercept_action = ACTION_DROP;
+ actionset->intercept_action_rec = action;
+ return 1;
+}
+
+/* pause */
+static char *msre_action_pause_validate(msre_engine *engine, msre_action *action) {
+ /* ENH Validate a positive number. */
+ return NULL;
+}
+
+static apr_status_t msre_action_pause_init(msre_engine *engine, msre_actionset *actionset,
+ msre_action *action)
+{
+ actionset->intercept_pause = atoi(action->param);
+ return 1;
+}
+
+/* redirect */
+
+static char *msre_action_redirect_validate(msre_engine *engine, msre_action *action) {
+ /* ENH Add validation. */
+ return NULL;
+}
+
+static apr_status_t msre_action_redirect_init(msre_engine *engine, msre_actionset *actionset,
+ msre_action *action)
+{
+ actionset->intercept_action = ACTION_REDIRECT;
+ actionset->intercept_uri = action->param;
+ actionset->intercept_action_rec = action;
+ return 1;
+}
+
+static apr_status_t msre_action_redirect_execute(modsec_rec *msr, apr_pool_t *mptmp,
+ msre_rule *rule, msre_action *action)
+{
+ msc_string *var = NULL;
+
+ var = apr_pcalloc(mptmp, sizeof(msc_string));
+ if (var == NULL) return -1;
+ var->value = (char *)action->param;
+ var->value_len = strlen(var->value);
+ expand_macros(msr, var, rule, mptmp);
+
+ rule->actionset->intercept_uri = apr_pstrmemdup(msr->mp, var->value, var->value_len);
+
+ return 1;
+}
+
+/* proxy */
+
+static char *msre_action_proxy_validate(msre_engine *engine, msre_action *action) {
+ /* ENH Add validation. */
+ return NULL;
+}
+
+static apr_status_t msre_action_proxy_init(msre_engine *engine, msre_actionset *actionset,
+ msre_action *action)
+{
+ actionset->intercept_action = ACTION_PROXY;
+ actionset->intercept_uri = action->param;
+ actionset->intercept_action_rec = action;
+ return 1;
+}
+
+static apr_status_t msre_action_proxy_execute(modsec_rec *msr, apr_pool_t *mptmp,
+ msre_rule *rule, msre_action *action)
+{
+ msc_string *var = NULL;
+
+ var = apr_pcalloc(mptmp, sizeof(msc_string));
+ if (var == NULL) return -1;
+ var->value = (char *)action->param;
+ var->value_len = strlen(var->value);
+ expand_macros(msr, var, rule, mptmp);
+
+ rule->actionset->intercept_uri = apr_pstrmemdup(msr->mp, var->value, var->value_len);
+
+ return 1;
+}
+
+/* pass */
+
+static apr_status_t msre_action_pass_init(msre_engine *engine, msre_actionset *actionset,
+ msre_action *action)
+{
+ actionset->intercept_action = ACTION_NONE;
+ actionset->intercept_action_rec = action;
+ return 1;
+}
+
+/* skip */
+
+static char *msre_action_skip_validate(msre_engine *engine, msre_action *action) {
+ /* ENH Add validation. */
+ return NULL;
+}
+
+static apr_status_t msre_action_skip_init(msre_engine *engine, msre_actionset *actionset,
+ msre_action *action)
+{
+ actionset->skip_count = atoi(action->param);
+ if (actionset->skip_count <= 0) actionset->skip_count = 1;
+ return 1;
+}
+
+/* skipAfter */
+
+static char *msre_action_skipAfter_validate(msre_engine *engine, msre_action *action) {
+ /* ENH Add validation. */
+ return NULL;
+}
+
+static apr_status_t msre_action_skipAfter_init(msre_engine *engine, msre_actionset *actionset,
+ msre_action *action)
+{
+ actionset->skip_after = action->param;
+ return 1;
+}
+
+/* allow */
+
+static apr_status_t msre_action_allow_init(msre_engine *engine, msre_actionset *actionset,
+ msre_action *action)
+{
+ actionset->intercept_action = ACTION_ALLOW;
+ actionset->intercept_action_rec = action;
+
+ if (action->param != NULL) {
+ if (strcasecmp(action->param, "phase") == 0) {
+ actionset->intercept_action = ACTION_ALLOW_PHASE;
+ } else
+ if (strcasecmp(action->param, "request") == 0) {
+ actionset->intercept_action = ACTION_ALLOW_REQUEST;
+ }
+ }
+
+ return 1;
+}
+
+static char *msre_action_allow_validate(msre_engine *engine, msre_action *action) {
+ if (action->param != NULL) {
+ if (strcasecmp(action->param, "phase") == 0) {
+ return NULL;
+ } else
+ if (strcasecmp(action->param, "request") == 0) {
+ return NULL;
+ } else {
+ return apr_psprintf(engine->mp, "Invalid parameter for allow: %s", action->param);
+ }
+ }
+
+ return NULL;
+}
+
+/* phase */
+
+static char *msre_action_phase_validate(msre_engine *engine, msre_action *action) {
+ /* ENH Add validation. */
+ return NULL;
+}
+
+static apr_status_t msre_action_phase_init(msre_engine *engine, msre_actionset *actionset,
+ msre_action *action)
+{
+ actionset->phase = atoi(action->param);
+ return 1;
+}
+
+/* t */
+
+static char *msre_action_t_validate(msre_engine *engine, msre_action *action) {
+ msre_tfn_metadata *metadata = NULL;
+ metadata = msre_engine_tfn_resolve(engine, action->param);
+ if (metadata == NULL) return apr_psprintf(engine->mp, "Invalid transformation function: %s",
+ action->param);
+ action->param_data = metadata;
+ return NULL;
+}
+
+static apr_status_t msre_action_t_init(msre_engine *engine, msre_actionset *actionset,
+ msre_action *action)
+{
+ msre_tfn_metadata *metadata = (msre_tfn_metadata *)action->param_data;
+ action->param_data = metadata;
+ return 1;
+}
+
+/* ctl */
+static char *msre_action_ctl_validate(msre_engine *engine, msre_action *action) {
+ char *name = NULL;
+ char *value = NULL;
+
+ /* Parse first. */
+ if (parse_name_eq_value(engine->mp, action->param, &name, &value) < 0) {
+ return FATAL_ERROR;
+ }
+ if (value == NULL) {
+ return apr_psprintf(engine->mp, "Missing ctl value for name: %s", name);
+ }
+
+ /* Validate value. */
+ if (strcasecmp(name, "ruleEngine") == 0) {
+ if (strcasecmp(value, "on") == 0) return NULL;
+ if (strcasecmp(value, "off") == 0) return NULL;
+ if (strcasecmp(value, "detectiononly") == 0) return NULL;
+ return apr_psprintf(engine->mp, "Invalid setting for ctl name ruleEngine: %s", value);
+ } else
+ if (strcasecmp(name, "ruleRemoveById") == 0) {
+ /* ENH nothing yet */
+ return NULL;
+ } else
+ if (strcasecmp(name, "requestBodyAccess") == 0) {
+ if (parse_boolean(value) == -1) {
+ return apr_psprintf(engine->mp, "Invalid setting for ctl name "
+ " requestBodyAccess: %s", value);
+ }
+ return NULL;
+ } else
+ if (strcasecmp(name, "requestBodyProcessor") == 0) {
+ /* ENH We will accept anything for now but it'd be nice
+ * to add a check here that the processor name is a valid one.
+ */
+ return NULL;
+ } else
+ if (strcasecmp(name, "forceRequestBodyVariable") == 0) {
+ if (strcasecmp(value, "on") == 0) return NULL;
+ if (strcasecmp(value, "off") == 0) return NULL;
+ return apr_psprintf(engine->mp, "Invalid setting for ctl name "
+ " forceRequestBodyVariable: %s", value);
+ } else
+ if (strcasecmp(name, "responseBodyAccess") == 0) {
+ if (parse_boolean(value) == -1) {
+ return apr_psprintf(engine->mp, "Invalid setting for ctl name "
+ " responseBodyAccess: %s", value);
+ }
+ return NULL;
+ } else
+ if (strcasecmp(name, "auditEngine") == 0) {
+ if (strcasecmp(value, "on") == 0) return NULL;
+ if (strcasecmp(value, "off") == 0) return NULL;
+ if (strcasecmp(value, "relevantonly") == 0) return NULL;
+ return apr_psprintf(engine->mp, "Invalid setting for ctl name "
+ " auditEngine: %s", value);
+ } else
+ if (strcasecmp(name, "auditLogParts") == 0) {
+ if ((value[0] == '+')||(value[0] == '-')) {
+ if (is_valid_parts_specification(value + 1) != 1) {
+ return apr_psprintf(engine->mp, "Invalid setting for ctl name "
+ "auditLogParts: %s", value);
+ }
+ }
+ else
+ if (is_valid_parts_specification(value) != 1) {
+ return apr_psprintf(engine->mp, "Invalid setting for ctl name "
+ "auditLogParts: %s", value);
+ }
+ return NULL;
+ } else
+ if (strcasecmp(name, "debugLogLevel") == 0) {
+ if ((atoi(value) >= 0)&&(atoi(value) <= 9)) return NULL;
+ return apr_psprintf(engine->mp, "Invalid setting for ctl name "
+ "debugLogLevel: %s", value);
+ } else
+ if (strcasecmp(name, "requestBodyLimit") == 0) {
+ long int limit = strtol(value, NULL, 10);
+
+ if ((limit == LONG_MAX)||(limit == LONG_MIN)||(limit <= 0)) {
+ return apr_psprintf(engine->mp, "Invalid setting for ctl name "
+ "requestBodyLimit: %s", value);
+ }
+
+ if (limit > REQUEST_BODY_HARD_LIMIT) {
+ return apr_psprintf(engine->mp, "Request size limit cannot exceed "
+ "the hard limit: %ld", RESPONSE_BODY_HARD_LIMIT);
+ }
+
+ return NULL;
+ } else
+ if (strcasecmp(name, "responseBodyLimit") == 0) {
+ long int limit = strtol(value, NULL, 10);
+
+ if ((limit == LONG_MAX)||(limit == LONG_MIN)||(limit <= 0)) {
+ return apr_psprintf(engine->mp, "Invalid setting for ctl name "
+ "responseBodyLimit: %s", value);
+ }
+
+ if (limit > RESPONSE_BODY_HARD_LIMIT) {
+ return apr_psprintf(engine->mp, "Response size limit cannot exceed "
+ "the hard limit: %ld", RESPONSE_BODY_HARD_LIMIT);
+ }
+
+ return NULL;
+ }
+ else {
+ return apr_psprintf(engine->mp, "Invalid ctl name setting: %s", name);
+ }
+}
+
+static apr_status_t msre_action_ctl_init(msre_engine *engine, msre_actionset *actionset,
+ msre_action *action)
+{
+ /* Do nothing. */
+ return 1;
+}
+
+static apr_status_t msre_action_ctl_execute(modsec_rec *msr, apr_pool_t *mptmp,
+ msre_rule *rule, msre_action *action)
+{
+ char *name = NULL;
+ char *value = NULL;
+
+ /* Parse first. */
+ if (parse_name_eq_value(msr->mp, action->param, &name, &value) < 0) return -1;
+ if (value == NULL) return -1;
+
+ /* Validate value. */
+ if (strcasecmp(name, "ruleEngine") == 0) {
+ if (strcasecmp(value, "on") == 0) {
+ msr->txcfg->is_enabled = MODSEC_ENABLED;
+ msr->usercfg->is_enabled = MODSEC_ENABLED;
+ }
+ else
+ if (strcasecmp(value, "off") == 0) {
+ msr->txcfg->is_enabled = MODSEC_DISABLED;
+ msr->usercfg->is_enabled = MODSEC_DISABLED;
+ }
+ else
+ if (strcasecmp(value, "detectiononly") == 0) {
+ msr->txcfg->is_enabled = MODSEC_DETECTION_ONLY;
+ msr->usercfg->is_enabled = MODSEC_DETECTION_ONLY;
+ }
+
+ return 1;
+ } else
+ if (strcasecmp(name, "ruleRemoveById") == 0) {
+ *(const char **)apr_array_push(msr->removed_rules) = (const char *)apr_pstrdup(msr->mp, value);
+ return 1;
+ } else
+ if (strcasecmp(name, "requestBodyAccess") == 0) {
+ int pv = parse_boolean(value);
+
+ if (pv == -1) return -1;
+ msr->txcfg->reqbody_access = pv;
+ msr->usercfg->reqbody_access = pv;
+ msr_log(msr, 4, "Ctl: Set requestBodyAccess to %d.", pv);
+
+ return 1;
+ } else
+ if (strcasecmp(name, "forceRequestBodyVariable") == 0) {
+ if (strcasecmp(value, "on") == 0) {
+ msr->txcfg->reqbody_buffering = REQUEST_BODY_FORCEBUF_ON;
+ msr->usercfg->reqbody_buffering = REQUEST_BODY_FORCEBUF_ON;
+ }
+ else
+ if (strcasecmp(value, "off") == 0) {
+ msr->txcfg->reqbody_buffering = REQUEST_BODY_FORCEBUF_OFF;
+ msr->usercfg->reqbody_buffering = REQUEST_BODY_FORCEBUF_OFF;
+ }
+
+ msr_log(msr, 4, "Ctl: Set requestBodyAccess to %d.", msr->txcfg->reqbody_buffering);
+
+ return 1;
+ } else
+ if (strcasecmp(name, "requestBodyProcessor") == 0) {
+ msr->msc_reqbody_processor = value;
+ msr_log(msr, 4, "Ctl: Set requestBodyProcessor to %s.", value);
+
+ return 1;
+ } else
+ if (strcasecmp(name, "responseBodyAccess") == 0) {
+ int pv = parse_boolean(value);
+
+ if (pv == -1) return -1;
+ msr->txcfg->resbody_access = pv;
+ msr->usercfg->resbody_access = pv;
+ msr_log(msr, 4, "Ctl: Set responseBodyAccess to %d.", pv);
+
+ return 1;
+ } else
+ if (strcasecmp(name, "auditEngine") == 0) {
+ if (strcasecmp(value, "on") == 0) {
+ msr->txcfg->auditlog_flag = AUDITLOG_ON;
+ msr->usercfg->auditlog_flag = AUDITLOG_ON;
+ }
+ else
+ if (strcasecmp(value, "off") == 0) {
+ msr->txcfg->auditlog_flag = AUDITLOG_OFF;
+ msr->usercfg->auditlog_flag = AUDITLOG_OFF;
+ }
+ else
+ if (strcasecmp(value, "relevantonly") == 0) {
+ msr->txcfg->auditlog_flag = AUDITLOG_RELEVANT;
+ msr->usercfg->auditlog_flag = AUDITLOG_RELEVANT;
+ }
+
+ msr_log(msr, 4, "Ctl: Set auditEngine to %d.", msr->txcfg->auditlog_flag);
+
+ return 1;
+ } else
+ if (strcasecmp(name, "auditLogParts") == 0) {
+ char *new_value = value;
+
+ if (value[0] == '+') {
+ /* Add the listed parts. */
+ new_value = apr_pstrcat(msr->mp, msr->txcfg->auditlog_parts, value + 1, NULL);
+ }
+ else
+ if (value[0] == '-') { /* Remove the listed parts. */
+ char c, *t = value + 1;
+
+ /* Start with the current value. */
+ new_value = apr_pstrdup(msr->mp, msr->txcfg->auditlog_parts);
+
+ while((c = *t++) != '\0') {
+ char *s = new_value;
+ char *d = new_value;
+
+ while(*s != '\0') {
+ if (*s != c) {
+ *(d++) = *(s++);
+ } else {
+ s++;
+ }
+ }
+ *d = '\0';
+ }
+ }
+
+ /* Set the new value. */
+ msr->txcfg->auditlog_parts = new_value;
+ msr->usercfg->auditlog_parts = new_value;
+ msr_log(msr, 4, "Ctl: Set auditLogParts to %s.", msr->txcfg->auditlog_parts);
+
+ return 1;
+ } else
+ if (strcasecmp(name, "debugLogLevel") == 0) {
+ msr->txcfg->debuglog_level = atoi(value);
+ msr->usercfg->debuglog_level = atoi(value);
+ msr_log(msr, 4, "Ctl: Set debugLogLevel to %d.", msr->txcfg->debuglog_level);
+
+ return 1;
+ } else
+ if (strcasecmp(name, "requestBodyLimit") == 0) {
+ long int limit = strtol(value, NULL, 10);
+
+ /* ENH Accept only in correct phase warn otherwise. */
+ msr->txcfg->reqbody_limit = limit;
+ msr->usercfg->reqbody_limit = limit;
+
+ return 1;
+ } else
+ if (strcasecmp(name, "responseBodyLimit") == 0) {
+ long int limit = strtol(value, NULL, 10);
+
+ /* ENH Accept only in correct phase warn otherwise. */
+ msr->txcfg->of_limit = limit;
+ msr->usercfg->of_limit = limit;
+
+ return 1;
+ }
+ else {
+ /* Should never happen, but log if it does. */
+ msr_log(msr, 1, "Internal Error: Unknown ctl action \"%s\".", name);
+ return -1;
+ }
+}
+
+/* xmlns */
+static char *msre_action_xmlns_validate(msre_engine *engine, msre_action *action) {
+ char *name = NULL;
+ char *value = NULL;
+
+ /* Parse first. */
+ if (parse_name_eq_value(engine->mp, action->param, &name, &value) < 0) {
+ return FATAL_ERROR;
+ }
+ if (value == NULL) {
+ return apr_psprintf(engine->mp, "Missing xmlns href for prefix: %s", name);
+ }
+
+ /* Don't do anything else right now, we are just storing
+ * the value for the variable, which is the real consumer
+ * for the namespace information.
+ */
+
+ return NULL;
+}
+
+/* sanitiseArg */
+static apr_status_t msre_action_sanitiseArg_execute(modsec_rec *msr, apr_pool_t *mptmp,
+ msre_rule *rule, msre_action *action)
+{
+ const char *sargname = NULL;
+ const apr_array_header_t *tarr;
+ const apr_table_entry_t *telts;
+ int i;
+
+ sargname = action->param;
+
+ tarr = apr_table_elts(msr->arguments);
+ telts = (const apr_table_entry_t*)tarr->elts;
+ for (i = 0; i < tarr->nelts; i++) {
+ msc_arg *arg = (msc_arg *)telts[i].val;
+
+ if (strcasecmp(sargname, arg->name) == 0) {
+ apr_table_addn(msr->arguments_to_sanitise, arg->name, (void *)arg);
+ }
+ }
+
+ return 1;
+}
+
+#define SANITISE_ARG 1
+#define SANITISE_REQUEST_HEADER 2
+#define SANITISE_RESPONSE_HEADER 3
+
+/* sanitiseMatched */
+static apr_status_t msre_action_sanitiseMatched_execute(modsec_rec *msr, apr_pool_t *mptmp,
+ msre_rule *rule, msre_action *action)
+{
+ const char *sargname = NULL;
+ const apr_array_header_t *tarr;
+ const apr_table_entry_t *telts;
+ int i, type = 0;
+ msc_string *mvar = msr->matched_var;
+
+ if (mvar->name_len == 0) return 0;
+
+ /* IMP1 We need to extract the variable name properly here,
+ * taking into account it may have been escaped.
+ */
+ if ((mvar->name_len > 5) && (strncmp(mvar->name, "ARGS:", 5) == 0)) {
+ sargname = apr_pstrdup(msr->mp, mvar->name + 5);
+ type = SANITISE_ARG;
+ } else
+ if ((mvar->name_len > 11) && (strncmp(mvar->name, "ARGS_NAMES:", 11) == 0)) {
+ sargname = apr_pstrdup(msr->mp, mvar->name + 11);
+ type = SANITISE_ARG;
+ } else
+ if ((mvar->name_len > 16) && (strncmp(mvar->name, "REQUEST_HEADERS:", 16) == 0)) {
+ sargname = apr_pstrdup(msr->mp, mvar->name + 16);
+ type = SANITISE_REQUEST_HEADER;
+ } else
+ if ((mvar->name_len > 22) && (strncmp(mvar->name, "REQUEST_HEADERS_NAMES:", 22) == 0)) {
+ sargname = apr_pstrdup(msr->mp, mvar->name + 22);
+ type = SANITISE_REQUEST_HEADER;
+ } else
+ if ((mvar->name_len > 17) && (strncmp(mvar->name, "RESPONSE_HEADERS:", 17) == 0)) {
+ sargname = apr_pstrdup(msr->mp, mvar->name + 17);
+ type = SANITISE_RESPONSE_HEADER;
+ } else
+ if ((mvar->name_len > 23) && (strncmp(mvar->name, "RESPONSE_HEADERS_NAMES:", 23) == 0)) {
+ sargname = apr_pstrdup(msr->mp, mvar->name + 23);
+ type = SANITISE_RESPONSE_HEADER;
+ }
+ else {
+ msr_log(msr, 3, "sanitiseMatched: Don't know how to handle variable: %s",
+ mvar->name);
+ return 0;
+ }
+
+ switch(type) {
+ case SANITISE_ARG :
+ tarr = apr_table_elts(msr->arguments);
+ telts = (const apr_table_entry_t*)tarr->elts;
+ for (i = 0; i < tarr->nelts; i++) {
+ msc_arg *arg = (msc_arg *)telts[i].val;
+ if (strcasecmp(sargname, arg->name) == 0) {
+ apr_table_addn(msr->arguments_to_sanitise, arg->name, (void *)arg);
+ }
+ }
+ break;
+
+ case SANITISE_REQUEST_HEADER :
+ apr_table_set(msr->request_headers_to_sanitise, sargname, "1");
+ break;
+
+ case SANITISE_RESPONSE_HEADER :
+ apr_table_set(msr->response_headers_to_sanitise, sargname, "1");
+ break;
+
+ default :
+ /* do nothing */
+ break;
+ }
+
+ return 1;
+}
+
+/* sanitiseRequestHeader */
+static apr_status_t msre_action_sanitiseRequestHeader_execute(modsec_rec *msr, apr_pool_t *mptmp,
+ msre_rule *rule, msre_action *action)
+{
+ apr_table_set(msr->request_headers_to_sanitise, action->param, "1");
+ return 1;
+}
+
+/* sanitiseResponseHeader */
+static apr_status_t msre_action_sanitiseResponseHeader_execute(modsec_rec *msr, apr_pool_t *mptmp,
+ msre_rule *rule, msre_action *action)
+{
+ apr_table_set(msr->response_headers_to_sanitise, action->param, "1");
+ return 1;
+}
+
+/* setenv */
+static apr_status_t msre_action_setenv_execute(modsec_rec *msr, apr_pool_t *mptmp,
+ msre_rule *rule, msre_action *action)
+{
+ char *data = apr_pstrdup(mptmp, action->param);
+ char *env_name = NULL, *env_value = NULL;
+ char *s = NULL;
+ msc_string *env = NULL;
+
+ /* Extract the name and the value. */
+ /* IMP1 We have a function for this now, parse_name_eq_value? */
+ s = strstr(data, "=");
+ if (s == NULL) {
+ env_name = data;
+ env_value = "1";
+ } else {
+ env_name = data;
+ env_value = s + 1;
+ *s = '\0';
+ }
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Setting env variable: %s=%s", env_name, env_value);
+ }
+
+ /* Expand and escape any macros in the name */
+ env = apr_palloc(msr->mp, sizeof(msc_string));
+ if (env == NULL) {
+ msr_log(msr, 1, "Failed to allocate space to expand name macros");
+ return -1;
+ }
+ env->value = env_name;
+ env->value_len = strlen(env->value);
+ expand_macros(msr, env, rule, mptmp);
+ env_name = log_escape_ex(msr->mp, env->value, env->value_len);
+
+ /* Execute the requested action. */
+ if (env_name[0] == '!') {
+ /* Delete */
+ apr_table_unset(msr->r->subprocess_env, env_name + 1);
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Unset env variable \"%s\".", env_name);
+ }
+ } else {
+ /* Set */
+ char * val_value = NULL;
+ msc_string *val = apr_palloc(msr->mp, sizeof(msc_string));
+ if (val == NULL) {
+ msr_log(msr, 1, "Failed to allocate space to expand value macros");
+ return -1;
+ }
+
+ /* Expand values in value */
+ val->value = env_value;
+ val->value_len = strlen(val->value);
+ expand_macros(msr, val, rule, mptmp);
+
+ /* To be safe, we escape the value as it goes in subprocess_env. */
+ val_value = log_escape_ex(msr->mp, val->value, val->value_len);
+
+ apr_table_set(msr->r->subprocess_env, env_name, val_value);
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Set env variable \"%s\" to \"%s\".",
+ env_name,
+ log_escape(mptmp, val_value));
+ }
+ }
+
+ return 1;
+}
+
+/* setvar */
+static apr_status_t msre_action_setvar_execute(modsec_rec *msr, apr_pool_t *mptmp,
+ msre_rule *rule, msre_action *action)
+{
+ char *data = apr_pstrdup(mptmp, action->param);
+ char *col_name = NULL, *var_name = NULL, *var_value = NULL;
+ char *s = NULL;
+ apr_table_t *target_col = NULL;
+ int is_negated = 0;
+ msc_string *var = NULL;
+
+ /* Extract the name and the value. */
+ /* IMP1 We have a function for this now, parse_name_eq_value? */
+ s = strstr(data, "=");
+ if (s == NULL) {
+ var_name = data;
+ var_value = "1";
+ } else {
+ var_name = data;
+ var_value = s + 1;
+ *s = '\0';
+
+ while ((*var_value != '\0')&&(isspace(*var_value))) var_value++;
+ }
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Setting variable: %s=%s", var_name, var_value);
+ }
+
+
+ /* Expand and escape any macros in the name */
+ var = apr_palloc(msr->mp, sizeof(msc_string));
+ if (var == NULL) {
+ msr_log(msr, 1, "Failed to allocate space to expand name macros");
+ return -1;
+ }
+ var->value = var_name;
+ var->value_len = strlen(var->value);
+ expand_macros(msr, var, rule, mptmp);
+ var_name = log_escape_ex(msr->mp, var->value, var->value_len);
+
+ /* Handle the exclamation mark. */
+ if (var_name[0] == '!') {
+ var_name = var_name + 1;
+ is_negated = 1;
+ }
+
+ /* ENH Not possible to use ! and = at the same time. */
+ /* ENH Not possible to change variable "KEY". */
+
+ /* Figure out the collection name. */
+ target_col = msr->tx_vars;
+ s = strstr(var_name, ".");
+ if (s == NULL) {
+ msr_log(msr, 3, "Asked to set variable \"%s\", but no collection name specified. ",
+ log_escape(msr->mp, var_name));
+ return 0;
+ }
+ col_name = var_name;
+ var_name = s + 1;
+ *s = '\0';
+
+ /* Locate the collection. */
+ if (strcasecmp(col_name, "tx") == 0) { /* Special case for TX variables. */
+ target_col = msr->tx_vars;
+ } else {
+ target_col = (apr_table_t *)apr_table_get(msr->collections, col_name);
+ if (target_col == NULL) {
+ msr_log(msr, 3, "Could not set variable \"%s.%s\" as the collection does not exist.",
+ log_escape(msr->mp, col_name), log_escape(msr->mp, var_name));
+ return 0;
+ }
+ }
+
+ if (is_negated) {
+ /* Unset variable. */
+
+ /* ENH Refuse to remove certain variables, e.g. TIMEOUT, internal variables, etc... */
+
+ apr_table_unset(target_col, var_name);
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Unset variable \"%s.%s\".", col_name, var_name);
+ }
+ }
+ else {
+ /* Set or change variable. */
+
+ if ((var_value[0] == '+')||(var_value[0] == '-')) {
+ /* Relative change. */
+ msc_string *rec = NULL;
+ msc_string *val = apr_palloc(msr->mp, sizeof(msc_string));
+ int value = 0;
+
+ if (val == NULL) {
+ msr_log(msr, 1, "Failed to allocate space to expand value macros");
+ return -1;
+ }
+
+ /* Retrieve variable or generate (if it does not exist). */
+ rec = (msc_string *)apr_table_get(target_col, var_name);
+ if (rec == NULL) {
+ rec = var; /* use the already allocated space for var */
+ rec->name = apr_pstrdup(msr->mp, var_name);
+ rec->name_len = strlen(rec->name);
+ value = 0;
+ rec->value = apr_psprintf(msr->mp, "%d", value);
+ rec->value_len = strlen(rec->value);
+ }
+ else {
+ value = atoi(rec->value);
+ }
+
+ /* Record the original value before we change it */
+ collection_original_setvar(msr, col_name, rec);
+
+ /* Expand values in value */
+ val->value = var_value;
+ val->value_len = strlen(val->value);
+ expand_macros(msr, val, rule, mptmp);
+ var_value = val->value;
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Relative change: %s=%d%s", var_name, value, var_value);
+ }
+
+ /* Change value. */
+ value += atoi(var_value);
+ if (value < 0) value = 0; /* Counters never go below zero. */
+
+ /* Put the variable back. */
+ rec->value = apr_psprintf(msr->mp, "%d", value);
+ rec->value_len = strlen(rec->value);
+ apr_table_setn(target_col, rec->name, (void *)rec);
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Set variable \"%s.%s\" to \"%s\".",
+ col_name, rec->name,
+ log_escape_ex(mptmp, rec->value, rec->value_len));
+ }
+ }
+ else {
+ /* Absolute change. */
+
+ var->name = apr_pstrdup(msr->mp, var_name);
+ var->name_len = strlen(var->name);
+ var->value = apr_pstrdup(msr->mp, var_value);
+ var->value_len = strlen(var->value);
+ expand_macros(msr, var, rule, mptmp);
+ apr_table_setn(target_col, var->name, (void *)var);
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Set variable \"%s.%s\" to \"%s\".",
+ log_escape(mptmp, col_name),
+ log_escape_ex(mptmp, var->name, var->name_len),
+ log_escape_ex(mptmp, var->value, var->value_len));
+ }
+ }
+ }
+
+ /* Make note of the change so that we know later
+ * we need to persist the collection.
+ */
+ apr_table_set(msr->collections_dirty, col_name, "1");
+
+ return 1;
+}
+
+/* expirevar */
+static apr_status_t msre_action_expirevar_execute(modsec_rec *msr, apr_pool_t *mptmp,
+ msre_rule *rule, msre_action *action)
+{
+ char *data = apr_pstrdup(mptmp, action->param);
+ char *col_name = NULL, *var_name = NULL, *var_value = NULL;
+ char *s = NULL;
+ apr_table_t *target_col = NULL;
+ msc_string *var = NULL;
+
+ /* Extract the name and the value. */
+ /* IMP1 We have a function for this now, parse_name_eq_value? */
+ s = strstr(data, "=");
+ if (s == NULL) {
+ var_name = data;
+ var_value = "1";
+ } else {
+ var_name = data;
+ var_value = s + 1;
+ *s = '\0';
+ }
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Expiring variable: %s=%s", var_name, var_value);
+ }
+
+ /* Expand and escape any macros in the name */
+ var = apr_palloc(msr->mp, sizeof(msc_string));
+ if (var == NULL) {
+ msr_log(msr, 1, "Failed to allocate space to expand name macros");
+ return -1;
+ }
+ var->value = var_name;
+ var->value_len = strlen(var->value);
+ expand_macros(msr, var, rule, mptmp);
+ var_name = log_escape_ex(msr->mp, var->value, var->value_len);
+
+ /* Choose the collection to work with. */
+ s = strstr(var_name, ".");
+ if (s != NULL) {
+ col_name = var_name;
+ var_name = s + 1;
+ *s = '\0';
+
+ /* IMP1 No need to handle TX here because TX variables cannot expire,
+ * but we definitely need to have a better error message.
+ */
+
+ target_col = (apr_table_t *)apr_table_get(msr->collections, col_name);
+ if (target_col == NULL) {
+ msr_log(msr, 3, "Could not expire variable \"%s.%s\" as the collection does not exist.",
+ log_escape(msr->mp, col_name), log_escape(msr->mp, var_name));
+ return 0;
+ }
+ } else {
+ msr_log(msr, 3, "Asked to expire variable \"%s\", but no collection name specified. ",
+ log_escape(msr->mp, var_name));
+ return 0;
+ }
+
+ /* To expire a variable we just place a special variable into
+ * the collection. Expiry actually happens when the collection
+ * is retrieved from storage the next time.
+ */
+ var = (msc_string *)apr_pcalloc(msr->mp, sizeof(msc_string));
+ var->name = apr_psprintf(msr->mp, "__expire_%s", var_name);
+ var->name_len = strlen(var->name);
+
+ /* Expand macros in value */
+ var->value = var_value;
+ var->value_len = strlen(var->value);
+ expand_macros(msr, var, rule, msr->mp);
+ var_value = var->value;
+
+ /* Calculate with the expanded value */
+ var->value = apr_psprintf(msr->mp, "%" APR_TIME_T_FMT, (apr_time_t)(apr_time_sec(msr->request_time)
+ + atoi(var_value)));
+ var->value_len = strlen(var->value);
+
+ apr_table_setn(target_col, var->name, (void *)var);
+
+ msr_log(msr, 4, "Variable \"%s.%s\" set to expire in %s seconds.", col_name,
+ var_name, var_value);
+
+ apr_table_set(msr->collections_dirty, col_name, "1");
+
+ return 1;
+}
+
+/* deprecatevar */
+static apr_status_t msre_action_deprecatevar_execute(modsec_rec *msr, apr_pool_t *mptmp,
+ msre_rule *rule, msre_action *action)
+{
+ char *data = apr_pstrdup(mptmp, action->param);
+ char *col_name = NULL, *var_name = NULL, *var_value = NULL;
+ char *s = NULL;
+ apr_table_t *target_col = NULL;
+ msc_string *var = NULL, *var_last_update_time = NULL;
+ apr_time_t last_update_time, current_time;
+ long current_value, new_value;
+
+ /* Extract the name and the value. */
+ /* IMP1 We have a function for this now, parse_name_eq_value? */
+ s = strstr(data, "=");
+ if (s == NULL) {
+ var_name = data;
+ var_value = "1";
+ } else {
+ var_name = data;
+ var_value = s + 1;
+ *s = '\0';
+ }
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Deprecating variable: %s=%s", var_name, var_value);
+ }
+
+ /* Expand and escape any macros in the name */
+ var = apr_palloc(msr->mp, sizeof(msc_string));
+ if (var == NULL) {
+ msr_log(msr, 1, "Failed to allocate space to expand name macros");
+ return -1;
+ }
+ var->value = var_name;
+ var->value_len = strlen(var->value);
+ expand_macros(msr, var, rule, mptmp);
+ var_name = log_escape_ex(msr->mp, var->value, var->value_len);
+
+ /* Expand macros in value */
+ var->value = var_value;
+ var->value_len = strlen(var->value);
+ expand_macros(msr, var, rule, msr->mp);
+ var_value = var->value;
+
+ /* Choose the collection to work with. */
+ s = strstr(var_name, ".");
+ if (s != NULL) {
+ col_name = var_name;
+ var_name = s + 1;
+ *s = '\0';
+
+ /* IMP1 Add message TX variables cannot deprecate in value. */
+
+ target_col = (apr_table_t *)apr_table_get(msr->collections, col_name);
+ if (target_col == NULL) {
+ msr_log(msr, 3, "Could not deprecate variable \"%s.%s\" as the collection does "
+ "not exist.", log_escape(msr->mp, col_name), log_escape(msr->mp, var_name));
+ return 0;
+ }
+ } else {
+ msr_log(msr, 3, "Asked to deprecate variable \"%s\", but no collection name specified. ",
+ log_escape(msr->mp, var_name));
+ return 0;
+ }
+
+ /* Find the current value. */
+ var = (msc_string *)apr_table_get(target_col, var_name);
+ if (var == NULL) {
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Asked to deprecate variable \"%s.%s\", but it does not exist.",
+ log_escape(msr->mp, col_name), log_escape(msr->mp, var_name));
+ }
+ return 0;
+ }
+ current_value = atoi(var->value);
+
+ /* Find the last update time (of the collection). */
+ var_last_update_time = (msc_string *)apr_table_get(target_col, "LAST_UPDATE_TIME");
+ if (var_last_update_time == NULL) {
+ /* This is all right. If collection was created (and not restored from
+ * storage) then it won't have LAST_UPDATE_TIME - it was never updated.
+ */
+ return 0;
+ }
+
+ current_time = apr_time_sec(apr_time_now());
+ last_update_time = atoi(var_last_update_time->value);
+
+ s = strstr(var_value, "/");
+ if (s == NULL) {
+ msr_log(msr, 3, "Incorrect format for the deprecatevar argument: \"%s\"",
+ log_escape(msr->mp, var_value));
+ return 0;
+ }
+ *s = '\0';
+ s++;
+
+ /* Deprecate the value using the given speed and the
+ * time elapsed since the last update.
+ */
+ new_value = current_value -
+ (atol(var_value) * ((current_time - last_update_time) / atol(s)));
+ if (new_value < 0) new_value = 0;
+
+ /* Only change the value if it differs. */
+ if (new_value != current_value) {
+ var->value = apr_psprintf(msr->mp, "%ld", new_value);
+ var->value_len = strlen(var->value);
+
+ msr_log(msr, 4, "Deprecated variable \"%s.%s\" from %ld to %ld (%" APR_TIME_T_FMT " seconds since "
+ "last update).", log_escape(msr->mp, col_name), log_escape(msr->mp, var_name),
+ current_value, new_value, (apr_time_t)(current_time - last_update_time));
+
+ apr_table_set(msr->collections_dirty, col_name, "1");
+ } else {
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Not deprecating variable \"%s.%s\" because the new value (%ld) is "
+ "the same as the old one (%ld) (%" APR_TIME_T_FMT " seconds since last update).",
+ log_escape(msr->mp, col_name), log_escape(msr->mp, var_name), current_value,
+ new_value, (apr_time_t)(current_time - last_update_time));
+ }
+ }
+
+ return 1;
+}
+
+static apr_status_t init_collection(modsec_rec *msr, const char *real_col_name,
+ const char *col_name, const char *col_key, unsigned int col_key_len)
+{
+ apr_table_t *table = NULL;
+ msc_string *var = NULL;
+
+ /* IMP1 Cannot initialise the built-in collections this way. */
+
+ /* Does the collection exist already? */
+ if (apr_table_get(msr->collections, col_name) != NULL) {
+ /* ENH Warn about this. */
+ return 0;
+ }
+
+ /* Init collection from storage. */
+ table = collection_retrieve(msr, real_col_name, col_key, col_key_len);
+
+ if (table == NULL) {
+ /* Does not exist yet - create new. */
+ msr_log(msr, 4, "Creating collection (name \"%s\", key \"%s\").",
+ real_col_name, col_key);
+
+ table = apr_table_make(msr->mp, 24);
+ if (table == NULL) return -1;
+
+ /* IMP1 Is the timeout hard-coded to 3600? */
+
+ /* Add default timeout. */
+ var = (msc_string *)apr_pcalloc(msr->mp, sizeof(msc_string));
+ var->name = "__expire_KEY";
+ var->name_len = strlen(var->name);
+ var->value = apr_psprintf(msr->mp, "%" APR_TIME_T_FMT, (apr_time_t)(apr_time_sec(msr->request_time) + 3600));
+ var->value_len = strlen(var->value);
+ apr_table_setn(table, var->name, (void *)var);
+
+ /* Remember the key. */
+ var = apr_pcalloc(msr->mp, sizeof(msc_string));
+ var->name = "KEY";
+ var->name_len = strlen(var->name);
+ var->value = apr_pstrmemdup(msr->mp, col_key, col_key_len);
+ var->value_len = col_key_len;
+ apr_table_setn(table, var->name, (void *)var);
+
+ /* The timeout. */
+ var = apr_pcalloc(msr->mp, sizeof(msc_string));
+ var->name = "TIMEOUT";
+ var->name_len = strlen(var->name);
+ var->value = apr_psprintf(msr->mp, "%d", 3600);
+ var->value_len = strlen(var->value);
+ apr_table_setn(table, var->name, (void *)var);
+
+ /* We may want to allow the user to unset KEY
+ * but we still need to preserve value to identify
+ * the collection in storage.
+ */
+
+ /* IMP1 Actually I want a better way to delete collections,
+ * perhaps a dedicated action.
+ */
+
+ var = apr_pcalloc(msr->mp, sizeof(msc_string));
+ var->name = "__key";
+ var->name_len = strlen(var->name);
+ var->value = apr_pstrmemdup(msr->mp, col_key, col_key_len);
+ var->value_len = col_key_len;
+ apr_table_setn(table, var->name, (void *)var);
+
+ /* Peristence code will need to know the name of the collection. */
+ var = apr_pcalloc(msr->mp, sizeof(msc_string));
+ var->name = "__name";
+ var->name_len = strlen(var->name);
+ var->value = apr_pstrdup(msr->mp, real_col_name);
+ var->value_len = strlen(var->value);
+ apr_table_setn(table, var->name, (void *)var);
+
+ /* Create time. */
+ var = apr_pcalloc(msr->mp, sizeof(msc_string));
+ var->name = "CREATE_TIME";
+ var->name_len = strlen(var->name);
+ var->value = apr_psprintf(msr->mp, "%" APR_TIME_T_FMT, (apr_time_t)apr_time_sec(msr->request_time));
+ var->value_len = strlen(var->value);
+ apr_table_setn(table, var->name, (void *)var);
+
+ /* Update counter. */
+ var = apr_pcalloc(msr->mp, sizeof(msc_string));
+ var->name = "UPDATE_COUNTER";
+ var->name_len = strlen(var->name);
+ var->value = "0";
+ var->value_len = strlen(var->value);
+ apr_table_setn(table, var->name, (void *)var);
+
+ /* This is a new collection. */
+ var = apr_pcalloc(msr->mp, sizeof(msc_string));
+ var->name = "IS_NEW";
+ var->name_len = strlen(var->name);
+ var->value = "1";
+ var->value_len = strlen(var->value);
+ apr_table_setn(table, var->name, (void *)var);
+ }
+
+ /* Record the original counter value before we change it */
+ var = (msc_string *)apr_table_get(table, "UPDATE_COUNTER");
+ if (var != NULL) {
+ collection_original_setvar(msr, col_name, var);
+ }
+
+ /* Add the collection to the list. */
+ apr_table_setn(msr->collections, apr_pstrdup(msr->mp, col_name), (void *)table);
+
+ if (strcmp(col_name, real_col_name) != 0) {
+ msr_log(msr, 4, "Added collection \"%s\" to the list as \"%s\".",
+ log_escape(msr->mp, real_col_name), log_escape(msr->mp, col_name));
+ } else {
+ msr_log(msr, 4, "Added collection \"%s\" to the list.",
+ log_escape(msr->mp, real_col_name));
+ }
+
+ return 1;
+}
+
+/* initcol */
+static apr_status_t msre_action_initcol_execute(modsec_rec *msr, apr_pool_t *mptmp,
+ msre_rule *rule, msre_action *action)
+{
+ char *data = apr_pstrdup(msr->mp, action->param);
+ char *col_name = NULL, *col_key = NULL;
+ unsigned int col_key_len;
+
+ msc_string *var = NULL;
+ char *s = NULL;
+
+ /* Extract the name and the value. */
+ /* IMP1 We have a function for this now, parse_name_eq_value? */
+ s = strstr(data, "=");
+ if (s == NULL) return 0;
+ col_name = data;
+ col_key = s + 1;
+ *s = '\0';
+
+ /* Expand the key and init collection from storage. */
+ var = apr_pcalloc(mptmp, sizeof(msc_string));
+ var->value = col_key;
+ var->value_len = strlen(var->value);
+ expand_macros(msr, var, rule, mptmp);
+
+ col_key = var->value;
+ col_key_len = var->value_len;
+
+ return init_collection(msr, col_name, col_name, col_key, col_key_len);
+}
+
+/* setsid */
+static apr_status_t msre_action_setsid_execute(modsec_rec *msr, apr_pool_t *mptmp,
+ msre_rule *rule, msre_action *action)
+{
+ msc_string *var = NULL;
+ char *real_col_name = NULL, *col_key = NULL;
+ unsigned int col_key_len;
+
+ /* Construct session ID. */
+ var = apr_pcalloc(mptmp, sizeof(msc_string));
+ var->value = (char *)action->param;
+ var->value_len = strlen(var->value);
+ expand_macros(msr, var, rule, mptmp);
+ msr->sessionid = apr_pstrdup(msr->mp, var->value);
+
+ /* Construct collection name. */
+ col_key = var->value;
+ col_key_len = var->value_len;
+ real_col_name = apr_psprintf(mptmp, "%s_SESSION", msr->txcfg->webappid);
+
+ /* Initialise collection. */
+ return init_collection(msr, real_col_name, "SESSION", col_key, col_key_len);
+}
+
+/* setuid */
+static apr_status_t msre_action_setuid_execute(modsec_rec *msr, apr_pool_t *mptmp,
+ msre_rule *rule, msre_action *action)
+{
+ msc_string *var = NULL;
+ char *real_col_name = NULL, *col_key = NULL;
+ unsigned int col_key_len;
+
+ /* Construct user ID. */
+ var = apr_pcalloc(mptmp, sizeof(msc_string));
+ var->value = (char *)action->param;
+ var->value_len = strlen(var->value);
+ expand_macros(msr, var, rule, mptmp);
+ msr->userid = apr_pstrdup(msr->mp, var->value);
+
+ /* Construct collection name. */
+ col_key = var->value;
+ col_key_len = var->value_len;
+ real_col_name = apr_psprintf(mptmp, "%s_USER", msr->txcfg->webappid);
+
+ /* Initialise collection. */
+ return init_collection(msr, real_col_name, "USER", col_key, col_key_len);
+}
+
+/* exec */
+static char *msre_action_exec_validate(msre_engine *engine, msre_action *action) {
+ #if defined(WITH_LUA)
+ char *filename = (char *)action->param;
+
+ /* TODO Support relative filenames. */
+
+ /* Process Lua scripts internally. */
+ if (strlen(filename) > 4) {
+ char *p = filename + strlen(filename) - 4;
+ if ((p[0] == '.')&&(p[1] == 'l')&&(p[2] == 'u')&&(p[3] == 'a')) {
+ /* It's a Lua script. */
+ msc_script *script = NULL;
+
+ /* Compile script. */
+ char *msg = lua_compile(&script, filename, engine->mp);
+ if (msg != NULL) return msg;
+
+ action->param_data = script;
+ }
+ }
+ #endif
+
+ return NULL;
+}
+
+static apr_status_t msre_action_exec_execute(modsec_rec *msr, apr_pool_t *mptmp,
+ msre_rule *rule, msre_action *action)
+{
+ #if defined(WITH_LUA)
+ if (action->param_data != NULL) { /* Lua */
+ msc_script *script = (msc_script *)action->param_data;
+ char *my_error_msg = NULL;
+
+ if (lua_execute(script, NULL, msr, rule, &my_error_msg) < 0) {
+ msr_log(msr, 1, "%s", my_error_msg);
+ return 0;
+ }
+ } else
+ #endif
+ { /* Execute as shell script. */
+ char *script_output = NULL;
+
+ int rc = apache2_exec(msr, action->param, NULL, &script_output);
+ if (rc != 1) {
+ msr_log(msr, 1, "Failed to execute: %s", action->param);
+ return 0;
+ }
+ }
+
+ return 1;
+}
+
+/* prepend */
+static apr_status_t msre_action_prepend_execute(modsec_rec *msr, apr_pool_t *mptmp,
+ msre_rule *rule, msre_action *action)
+{
+ msc_string *var = NULL;
+
+ /* Expand any macros in the text */
+ var = apr_pcalloc(mptmp, sizeof(msc_string));
+ if (var == NULL) return -1;
+ var->value = (char *)action->param;
+ var->value_len = strlen(var->value);
+ expand_macros(msr, var, rule, mptmp);
+
+ /* ENH: Verify we really have to dup the data here. */
+ msr->content_prepend = apr_pstrndup(msr->mp, var->value, var->value_len);
+ msr->content_prepend_len = var->value_len;
+
+ return 1;
+}
+
+/* append */
+static apr_status_t msre_action_append_execute(modsec_rec *msr, apr_pool_t *mptmp,
+ msre_rule *rule, msre_action *action)
+{
+ msc_string *var = NULL;
+
+ /* Expand any macros in the text */
+ var = apr_pcalloc(mptmp, sizeof(msc_string));
+ if (var == NULL) return -1;
+ var->value = (char *)action->param;
+ var->value_len = strlen(var->value);
+ expand_macros(msr, var, rule, mptmp);
+
+ /* ENH: Verify we really have to dup the data here. */
+ msr->content_append = apr_pstrndup(msr->mp, var->value, var->value_len);
+ msr->content_append_len = var->value_len;
+
+ return 1;
+}
+
+/* -- */
+
+/**
+ *
+ */
+void msre_engine_register_default_actions(msre_engine *engine) {
+
+ /* id */
+ msre_engine_action_register(engine,
+ "id",
+ ACTION_METADATA,
+ 1, 1,
+ NO_PLUS_MINUS,
+ ACTION_CARDINALITY_ONE,
+ ACTION_CGROUP_NONE,
+ NULL,
+ msre_action_id_init,
+ NULL
+ );
+
+ /* rev */
+ msre_engine_action_register(engine,
+ "rev",
+ ACTION_METADATA,
+ 1, 1,
+ NO_PLUS_MINUS,
+ ACTION_CARDINALITY_ONE,
+ ACTION_CGROUP_NONE,
+ NULL,
+ msre_action_rev_init,
+ NULL
+ );
+
+ /* msg */
+ msre_engine_action_register(engine,
+ "msg",
+ ACTION_METADATA,
+ 1, 1,
+ NO_PLUS_MINUS,
+ ACTION_CARDINALITY_ONE,
+ ACTION_CGROUP_NONE,
+ NULL,
+ msre_action_msg_init,
+ NULL
+ );
+
+ /* logdata */
+ msre_engine_action_register(engine,
+ "logdata",
+ ACTION_METADATA,
+ 1, 1,
+ NO_PLUS_MINUS,
+ ACTION_CARDINALITY_ONE,
+ ACTION_CGROUP_NONE,
+ NULL,
+ msre_action_logdata_init,
+ NULL
+ );
+
+ /* severity */
+ msre_engine_action_register(engine,
+ "severity",
+ ACTION_METADATA,
+ 1, 1,
+ NO_PLUS_MINUS,
+ ACTION_CARDINALITY_ONE,
+ ACTION_CGROUP_NONE,
+ NULL,
+ msre_action_severity_init,
+ NULL
+ );
+
+ /* chain */
+ msre_engine_action_register(engine,
+ "chain",
+ ACTION_FLOW,
+ 0, 0,
+ NO_PLUS_MINUS,
+ ACTION_CARDINALITY_ONE,
+ ACTION_CGROUP_NONE,
+ NULL,
+ msre_action_chain_init,
+ NULL
+ );
+
+ /* log */
+ msre_engine_action_register(engine,
+ "log",
+ ACTION_NON_DISRUPTIVE,
+ 0, 0,
+ NO_PLUS_MINUS,
+ ACTION_CARDINALITY_ONE,
+ ACTION_CGROUP_LOG,
+ NULL,
+ msre_action_log_init,
+ NULL
+ );
+
+ /* nolog */
+ msre_engine_action_register(engine,
+ "nolog",
+ ACTION_NON_DISRUPTIVE,
+ 0, 0,
+ NO_PLUS_MINUS,
+ ACTION_CARDINALITY_ONE,
+ ACTION_CGROUP_LOG,
+ NULL,
+ msre_action_nolog_init,
+ NULL
+ );
+
+ /* auditlog */
+ msre_engine_action_register(engine,
+ "auditlog",
+ ACTION_NON_DISRUPTIVE,
+ 0, 0,
+ NO_PLUS_MINUS,
+ ACTION_CARDINALITY_ONE,
+ ACTION_CGROUP_AUDITLOG,
+ NULL,
+ msre_action_auditlog_init,
+ NULL
+ );
+
+ /* noauditlog */
+ msre_engine_action_register(engine,
+ "noauditlog",
+ ACTION_NON_DISRUPTIVE,
+ 0, 0,
+ NO_PLUS_MINUS,
+ ACTION_CARDINALITY_ONE,
+ ACTION_CGROUP_AUDITLOG,
+ NULL,
+ msre_action_noauditlog_init,
+ NULL
+ );
+
+ /* deny */
+ msre_engine_action_register(engine,
+ "block",
+ ACTION_DISRUPTIVE,
+ 0, 0,
+ NO_PLUS_MINUS,
+ ACTION_CARDINALITY_ONE,
+ ACTION_CGROUP_DISRUPTIVE,
+ NULL,
+ msre_action_block_init,
+ NULL
+ );
+
+ /* deny */
+ msre_engine_action_register(engine,
+ "deny",
+ ACTION_DISRUPTIVE,
+ 0, 0,
+ NO_PLUS_MINUS,
+ ACTION_CARDINALITY_ONE,
+ ACTION_CGROUP_DISRUPTIVE,
+ NULL,
+ msre_action_deny_init,
+ NULL
+ );
+
+ /* status */
+ msre_engine_action_register(engine,
+ "status",
+ ACTION_DISRUPTIVE,
+ 1, 1,
+ NO_PLUS_MINUS,
+ ACTION_CARDINALITY_ONE,
+ ACTION_CGROUP_NONE,
+ msre_action_status_validate,
+ msre_action_status_init,
+ NULL
+ );
+
+ /* drop */
+ msre_engine_action_register(engine,
+ "drop",
+ ACTION_DISRUPTIVE,
+ 0, 0,
+ NO_PLUS_MINUS,
+ ACTION_CARDINALITY_ONE,
+ ACTION_CGROUP_DISRUPTIVE,
+ NULL,
+ msre_action_drop_init,
+ NULL
+ );
+
+ /* pause */
+ msre_engine_action_register(engine,
+ "pause",
+ ACTION_DISRUPTIVE,
+ 1, 1,
+ NO_PLUS_MINUS,
+ ACTION_CARDINALITY_ONE,
+ ACTION_CGROUP_NONE,
+ msre_action_pause_validate,
+ msre_action_pause_init,
+ NULL
+ );
+
+ /* redirect */
+ msre_engine_action_register(engine,
+ "redirect",
+ ACTION_DISRUPTIVE,
+ 1, 1,
+ NO_PLUS_MINUS,
+ ACTION_CARDINALITY_ONE,
+ ACTION_CGROUP_DISRUPTIVE,
+ msre_action_redirect_validate,
+ msre_action_redirect_init,
+ msre_action_redirect_execute
+ );
+
+ /* proxy */
+ msre_engine_action_register(engine,
+ "proxy",
+ ACTION_DISRUPTIVE,
+ 1, 1,
+ NO_PLUS_MINUS,
+ ACTION_CARDINALITY_ONE,
+ ACTION_CGROUP_DISRUPTIVE,
+ msre_action_proxy_validate,
+ msre_action_proxy_init,
+ msre_action_proxy_execute
+ );
+
+ /* pass */
+ msre_engine_action_register(engine,
+ "pass",
+ ACTION_DISRUPTIVE,
+ 0, 0,
+ NO_PLUS_MINUS,
+ ACTION_CARDINALITY_ONE,
+ ACTION_CGROUP_DISRUPTIVE,
+ NULL,
+ msre_action_pass_init,
+ NULL
+ );
+
+ /* skip */
+ msre_engine_action_register(engine,
+ "skip",
+ ACTION_DISRUPTIVE,
+ 1, 1,
+ NO_PLUS_MINUS,
+ ACTION_CARDINALITY_ONE,
+ ACTION_CGROUP_DISRUPTIVE,
+ msre_action_skip_validate,
+ msre_action_skip_init,
+ NULL
+ );
+
+ /* skipAfter */
+ msre_engine_action_register(engine,
+ "skipAfter",
+ ACTION_DISRUPTIVE,
+ 1, 1,
+ NO_PLUS_MINUS,
+ ACTION_CARDINALITY_ONE,
+ ACTION_CGROUP_DISRUPTIVE,
+ msre_action_skipAfter_validate,
+ msre_action_skipAfter_init,
+ NULL
+ );
+
+ /* allow */
+ msre_engine_action_register(engine,
+ "allow",
+ ACTION_DISRUPTIVE,
+ 0, 1,
+ NO_PLUS_MINUS,
+ ACTION_CARDINALITY_ONE,
+ ACTION_CGROUP_DISRUPTIVE,
+ msre_action_allow_validate,
+ msre_action_allow_init,
+ NULL
+ );
+
+ /* phase */
+ /* ENH: This should be ACTION_NON_DISRUPTIVE or ACTION_FLOW??? */
+ msre_engine_action_register(engine,
+ "phase",
+ ACTION_DISRUPTIVE,
+ 1, 1,
+ NO_PLUS_MINUS,
+ ACTION_CARDINALITY_ONE,
+ ACTION_CGROUP_NONE,
+ msre_action_phase_validate,
+ msre_action_phase_init,
+ NULL
+ );
+
+ /* t */
+ msre_engine_action_register(engine,
+ "t",
+ ACTION_NON_DISRUPTIVE,
+ 1, 1,
+ ALLOW_PLUS_MINUS,
+ ACTION_CARDINALITY_MANY,
+ ACTION_CGROUP_NONE,
+ msre_action_t_validate,
+ msre_action_t_init,
+ NULL
+ );
+
+ /* ctl */
+ msre_engine_action_register(engine,
+ "ctl",
+ ACTION_NON_DISRUPTIVE,
+ 1, 1,
+ NO_PLUS_MINUS,
+ ACTION_CARDINALITY_MANY,
+ ACTION_CGROUP_NONE,
+ msre_action_ctl_validate,
+ msre_action_ctl_init,
+ msre_action_ctl_execute
+ );
+
+ /* xmlns */
+ msre_engine_action_register(engine,
+ "xmlns",
+ ACTION_NON_DISRUPTIVE,
+ 1, 1,
+ NO_PLUS_MINUS,
+ ACTION_CARDINALITY_MANY,
+ ACTION_CGROUP_NONE,
+ msre_action_xmlns_validate,
+ NULL,
+ NULL
+ );
+
+ /* capture */
+ msre_engine_action_register(engine,
+ "capture",
+ ACTION_NON_DISRUPTIVE,
+ 0, 0,
+ NO_PLUS_MINUS,
+ ACTION_CARDINALITY_ONE,
+ ACTION_CGROUP_NONE,
+ NULL,
+ NULL,
+ NULL
+ );
+
+ /* sanitiseArg */
+ msre_engine_action_register(engine,
+ "sanitiseArg",
+ ACTION_NON_DISRUPTIVE,
+ 1, 1,
+ NO_PLUS_MINUS,
+ ACTION_CARDINALITY_MANY,
+ ACTION_CGROUP_NONE,
+ NULL,
+ NULL,
+ msre_action_sanitiseArg_execute
+ );
+
+ /* sanitiseMatched */
+ msre_engine_action_register(engine,
+ "sanitiseMatched",
+ ACTION_NON_DISRUPTIVE,
+ 0, 0,
+ NO_PLUS_MINUS,
+ ACTION_CARDINALITY_MANY,
+ ACTION_CGROUP_NONE,
+ NULL,
+ NULL,
+ msre_action_sanitiseMatched_execute
+ );
+
+ /* sanitiseRequestHeader */
+ msre_engine_action_register(engine,
+ "sanitiseRequestHeader",
+ ACTION_NON_DISRUPTIVE,
+ 1, 1,
+ NO_PLUS_MINUS,
+ ACTION_CARDINALITY_MANY,
+ ACTION_CGROUP_NONE,
+ NULL,
+ NULL,
+ msre_action_sanitiseRequestHeader_execute
+ );
+
+ /* sanitiseResponseHeader */
+ msre_engine_action_register(engine,
+ "sanitiseResponseHeader",
+ ACTION_NON_DISRUPTIVE,
+ 1, 1,
+ NO_PLUS_MINUS,
+ ACTION_CARDINALITY_MANY,
+ ACTION_CGROUP_NONE,
+ NULL,
+ NULL,
+ msre_action_sanitiseResponseHeader_execute
+ );
+
+ /* setenv */
+ msre_engine_action_register(engine,
+ "setenv",
+ ACTION_NON_DISRUPTIVE,
+ 1, 1,
+ NO_PLUS_MINUS,
+ ACTION_CARDINALITY_MANY,
+ ACTION_CGROUP_NONE,
+ NULL,
+ NULL,
+ msre_action_setenv_execute
+ );
+
+ /* setvar */
+ msre_engine_action_register(engine,
+ "setvar",
+ ACTION_NON_DISRUPTIVE,
+ 1, 1,
+ NO_PLUS_MINUS,
+ ACTION_CARDINALITY_MANY,
+ ACTION_CGROUP_NONE,
+ NULL,
+ NULL,
+ msre_action_setvar_execute
+ );
+
+ /* expirevar */
+ msre_engine_action_register(engine,
+ "expirevar",
+ ACTION_NON_DISRUPTIVE,
+ 1, 1,
+ NO_PLUS_MINUS,
+ ACTION_CARDINALITY_MANY,
+ ACTION_CGROUP_NONE,
+ NULL,
+ NULL,
+ msre_action_expirevar_execute
+ );
+
+ /* deprecatevar */
+ msre_engine_action_register(engine,
+ "deprecatevar",
+ ACTION_NON_DISRUPTIVE,
+ 1, 1,
+ NO_PLUS_MINUS,
+ ACTION_CARDINALITY_MANY,
+ ACTION_CGROUP_NONE,
+ NULL,
+ NULL,
+ msre_action_deprecatevar_execute
+ );
+
+ /* initcol */
+ msre_engine_action_register(engine,
+ "initcol",
+ ACTION_NON_DISRUPTIVE,
+ 1, 1,
+ NO_PLUS_MINUS,
+ ACTION_CARDINALITY_MANY,
+ ACTION_CGROUP_NONE,
+ NULL,
+ NULL,
+ msre_action_initcol_execute
+ );
+
+ /* setsid */
+ msre_engine_action_register(engine,
+ "setsid",
+ ACTION_NON_DISRUPTIVE,
+ 1, 1,
+ NO_PLUS_MINUS,
+ ACTION_CARDINALITY_ONE,
+ ACTION_CGROUP_NONE,
+ NULL,
+ NULL,
+ msre_action_setsid_execute
+ );
+
+ /* setuid */
+ msre_engine_action_register(engine,
+ "setuid",
+ ACTION_NON_DISRUPTIVE,
+ 1, 1,
+ NO_PLUS_MINUS,
+ ACTION_CARDINALITY_ONE,
+ ACTION_CGROUP_NONE,
+ NULL,
+ NULL,
+ msre_action_setuid_execute
+ );
+
+ /* exec */
+ msre_engine_action_register(engine,
+ "exec",
+ ACTION_NON_DISRUPTIVE,
+ 1, 1,
+ NO_PLUS_MINUS,
+ ACTION_CARDINALITY_MANY,
+ ACTION_CGROUP_NONE,
+ msre_action_exec_validate,
+ NULL,
+ msre_action_exec_execute
+ );
+
+ /* multiMatch */
+ msre_engine_action_register(engine,
+ "multiMatch",
+ ACTION_NON_DISRUPTIVE,
+ 0, 0,
+ NO_PLUS_MINUS,
+ ACTION_CARDINALITY_ONE,
+ ACTION_CGROUP_NONE,
+ NULL,
+ NULL,
+ NULL
+ );
+
+ /* tag */
+ /* ENH: This should be ACTION_METADATA??? */
+ msre_engine_action_register(engine,
+ "tag",
+ ACTION_NON_DISRUPTIVE,
+ 1, 1,
+ NO_PLUS_MINUS,
+ ACTION_CARDINALITY_MANY,
+ ACTION_CGROUP_NONE,
+ NULL,
+ NULL,
+ NULL
+ );
+
+ /* prepend */
+ msre_engine_action_register(engine,
+ "prepend",
+ ACTION_NON_DISRUPTIVE,
+ 1, 1,
+ NO_PLUS_MINUS,
+ ACTION_CARDINALITY_ONE,
+ ACTION_CGROUP_NONE,
+ NULL,
+ NULL,
+ msre_action_prepend_execute
+ );
+
+ /* append */
+ msre_engine_action_register(engine,
+ "append",
+ ACTION_NON_DISRUPTIVE,
+ 1, 1,
+ NO_PLUS_MINUS,
+ ACTION_CARDINALITY_ONE,
+ ACTION_CGROUP_NONE,
+ NULL,
+ NULL,
+ msre_action_append_execute
+ );
+}
--- /dev/null
+/*
+ * ModSecurity for Apache 2.x, http://www.modsecurity.org/
+ * Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
+ *
+ * This product is released under the terms of the General Public Licence,
+ * version 2 (GPLv2). Please refer to the file LICENSE (included with this
+ * distribution) which contains the complete text of the licence.
+ *
+ * There are special exceptions to the terms and conditions of the GPL
+ * as it is applied to this software. View the full text of the exception in
+ * file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
+ * distribution.
+ *
+ * If any of the files related to licensing are missing or if you have any
+ * other questions related to licensing please contact Breach Security, Inc.
+ * directly using the email address support@breach.com.
+ *
+ */
+#include "re.h"
+#include "msc_pcre.h"
+#include "msc_geo.h"
+#include "apr_lib.h"
+#include "apr_strmatch.h"
+#include "acmp.h"
+
+/**
+ *
+ */
+void msre_engine_op_register(msre_engine *engine, const char *name,
+ fn_op_param_init_t fn1, fn_op_execute_t fn2)
+{
+ msre_op_metadata *metadata = (msre_op_metadata *)apr_pcalloc(engine->mp,
+ sizeof(msre_op_metadata));
+ if (metadata == NULL) return;
+
+ metadata->name = name;
+ metadata->param_init = fn1;
+ metadata->execute = fn2;
+ apr_table_setn(engine->operators, name, (void *)metadata);
+}
+
+/**
+ *
+ */
+msre_op_metadata *msre_engine_op_resolve(msre_engine *engine, const char *name) {
+ return (msre_op_metadata *)apr_table_get(engine->operators, name);
+}
+
+
+
+/* -- Operators -- */
+
+/* unconditionalMatch */
+
+static int msre_op_unconditionalmatch_execute(modsec_rec *msr, msre_rule *rule,
+ msre_var *var, char **error_msg)
+{
+ *error_msg = "Unconditional match in SecAction.";
+
+ /* Always match. */
+ return 1;
+}
+
+/* noMatch */
+
+static int msre_op_nomatch_execute(modsec_rec *msr, msre_rule *rule,
+ msre_var *var, char **error_msg)
+{
+ *error_msg = "No match.";
+
+ /* Never match. */
+ return 0;
+}
+
+/* rx */
+
+static int msre_op_rx_param_init(msre_rule *rule, char **error_msg) {
+ const char *errptr = NULL;
+ int erroffset;
+ msc_regex_t *regex;
+ const char *pattern = rule->op_param;
+
+ if (error_msg == NULL) return -1;
+ *error_msg = NULL;
+
+ /* Compile pattern */
+ regex = msc_pregcomp(rule->ruleset->mp, pattern, PCRE_DOTALL | PCRE_DOLLAR_ENDONLY, &errptr, &erroffset);
+ if (regex == NULL) {
+ *error_msg = apr_psprintf(rule->ruleset->mp, "Error compiling pattern (offset %d): %s",
+ erroffset, errptr);
+ return 0;
+ }
+
+ rule->op_param_data = regex;
+
+ return 1; /* OK */
+}
+
+static int msre_op_rx_execute(modsec_rec *msr, msre_rule *rule, msre_var *var, char **error_msg) {
+ msc_regex_t *regex = (msc_regex_t *)rule->op_param_data;
+ const char *target;
+ unsigned int target_length;
+ char *my_error_msg = NULL;
+ int ovector[33];
+ int capture = 0;
+ int rc;
+
+ if (error_msg == NULL) return -1;
+ *error_msg = NULL;
+
+ if (regex == NULL) {
+ *error_msg = "Internal Error: regex data is null.";
+ return -1;
+ }
+
+ /* If the given target is null run against an empty
+ * string. This is a behaviour consistent with previous
+ * releases.
+ */
+ if (var->value == NULL) {
+ target = "";
+ target_length = 0;
+ } else {
+ target = var->value;
+ target_length = var->value_len;
+ }
+
+ /* Are we supposed to capture subexpressions? */
+ capture = apr_table_get(rule->actionset->actions, "capture") ? 1 : 0;
+
+ /* Show when the regex captures but "capture" is not set */
+ if (msr->txcfg->debuglog_level >= 6) {
+ int capcount = 0;
+ rc = msc_fullinfo(regex, PCRE_INFO_CAPTURECOUNT, &capcount);
+ if ((capture == 0) && (capcount > 0)) {
+ msr_log(msr, 6, "Ignoring regex captures since \"capture\" action is not enabled.");
+ }
+ }
+
+ /* We always use capture so that ovector can be used as working space
+ * and no memory has to be allocated for any backreferences.
+ */
+ rc = msc_regexec_capture(regex, target, target_length, ovector, 30, &my_error_msg);
+ if (rc < -1) {
+ *error_msg = apr_psprintf(msr->mp, "Regex execution failed: %s", my_error_msg);
+ return -1;
+ }
+
+ /* Handle captured subexpressions. */
+ if (capture && rc > 0) {
+ int i;
+
+ /* Use the available captures. */
+ for(i = 0; i < rc; i++) {
+ msc_string *s = (msc_string *)apr_pcalloc(msr->mp, sizeof(msc_string));
+ if (s == NULL) return -1;
+ s->name = apr_psprintf(msr->mp, "%d", i);
+ s->value = apr_pstrmemdup(msr->mp,
+ target + ovector[2*i], ovector[2*i + 1] - ovector[2*i]);
+ s->value_len = (ovector[2*i + 1] - ovector[2*i]);
+ if ((s->name == NULL)||(s->value == NULL)) return -1;
+ apr_table_setn(msr->tx_vars, s->name, (void *)s);
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Added regex subexpression to TX.%d: %s", i,
+ log_escape_nq_ex(msr->mp, s->value, s->value_len));
+ }
+ }
+
+ /* Unset the remaining ones (from previous invocations). */
+ for(i = rc; i <= 9; i++) {
+ char buf[24];
+ apr_snprintf(buf, sizeof(buf), "%d", i);
+ apr_table_unset(msr->tx_vars, buf);
+ }
+ }
+
+ if (rc != PCRE_ERROR_NOMATCH) { /* Match. */
+ /* We no longer escape the pattern here as it is done when logging */
+ char *pattern = apr_pstrdup(msr->mp, regex->pattern);
+
+ /* This message will be logged. */
+ if (strlen(pattern) > 252) {
+ *error_msg = apr_psprintf(msr->mp, "Pattern match \"%.252s ...\" at %s.",
+ pattern, var->name);
+ } else {
+ *error_msg = apr_psprintf(msr->mp, "Pattern match \"%s\" at %s.",
+ pattern, var->name);
+ }
+
+ return 1;
+ }
+
+ /* No match. */
+ return 0;
+}
+
+/* pm */
+
+static int msre_op_pm_param_init(msre_rule *rule, char **error_msg) {
+ ACMP *p;
+ const char *phrase;
+ const char *next;
+
+ if ((rule->op_param == NULL)||(strlen(rule->op_param) == 0)) {
+ *error_msg = apr_psprintf(rule->ruleset->mp, "Missing parameter for operator 'pm'.");
+ return 0; /* ERROR */
+ }
+
+ p = acmp_create(0, rule->ruleset->mp);
+ if (p == NULL) return 0;
+
+ phrase = apr_pstrdup(rule->ruleset->mp, rule->op_param);
+
+ /* Loop through phrases */
+ /* ENH: Need to allow quoted phrases w/space */
+ for (;;) {
+ while((apr_isspace(*phrase) != 0) && (*phrase != '\0')) phrase++;
+ if (*phrase == '\0') break;
+ next = phrase;
+ while((apr_isspace(*next) == 0) && (*next != 0)) next++;
+ acmp_add_pattern(p, phrase, NULL, NULL, next - phrase);
+ phrase = next;
+ }
+ acmp_prepare(p);
+ rule->op_param_data = p;
+ return 1;
+}
+
+/* pmFromFile */
+
+static int msre_op_pmFromFile_param_init(msre_rule *rule, char **error_msg) {
+ char errstr[1024];
+ char buf[HUGE_STRING_LEN + 1];
+ char *fn;
+ char *next;
+ char *ptr;
+ const char *rulefile_path;
+ apr_status_t rc;
+ apr_file_t *fd;
+ ACMP *p;
+
+ if ((rule->op_param == NULL)||(strlen(rule->op_param) == 0)) {
+ *error_msg = apr_psprintf(rule->ruleset->mp, "Missing parameter for operator 'pmFromFile'.");
+ return 0; /* ERROR */
+ }
+
+ p = acmp_create(0, rule->ruleset->mp);
+ if (p == NULL) return 0;
+
+ fn = apr_pstrdup(rule->ruleset->mp, rule->op_param);
+
+ /* Get the path of the rule filename to use as a base */
+ rulefile_path = apr_pstrndup(rule->ruleset->mp, rule->filename, strlen(rule->filename) - strlen(apr_filepath_name_get(rule->filename)));
+
+ #ifdef DEBUG_CONF
+ fprintf(stderr, "Rulefile path: \"%s\"\n", rulefile_path);
+ #endif
+
+ /* Loop through filenames */
+ /* ENH: Need to allow quoted filenames w/space */
+ for (;;) {
+ const char *rootpath = NULL;
+ const char *filepath = NULL;
+ int line = 0;
+
+ /* Trim whitespace */
+ while((apr_isspace(*fn) != 0) && (*fn != '\0')) fn++;
+ if (*fn == '\0') break;
+ next = fn;
+ while((apr_isspace(*next) == 0) && (*next != '\0')) next++;
+ while((apr_isspace(*next) != 0) && (*next != '\0')) *(next++) = '\0';
+
+ /* Add path of the rule filename for a relative phrase filename */
+ filepath = fn;
+ if (apr_filepath_root(&rootpath, &filepath, APR_FILEPATH_TRUENAME, rule->ruleset->mp) != APR_SUCCESS) {
+ /* We are not an absolute path. It could mean an error, but
+ * let that pass through to the open call for a better error */
+ apr_filepath_merge(&fn, rulefile_path, fn, APR_FILEPATH_TRUENAME, rule->ruleset->mp);
+ }
+
+ /* Open file and read */
+ rc = apr_file_open(&fd, fn, APR_READ | APR_FILE_NOCLEANUP, 0, rule->ruleset->mp);
+ if (rc != APR_SUCCESS) {
+ *error_msg = apr_psprintf(rule->ruleset->mp, "Could not open phrase file \"%s\": %s", fn, apr_strerror(rc, errstr, 1024));
+ return 0;
+ }
+
+ #ifdef DEBUG_CONF
+ fprintf(stderr, "Loading phrase file: \"%s\"\n", fn);
+ #endif
+
+ /* Read one pattern per line skipping empty/commented */
+ for(;;) {
+ line++;
+ rc = apr_file_gets(buf, HUGE_STRING_LEN, fd);
+ if (rc == APR_EOF) break;
+ if (rc != APR_SUCCESS) {
+ *error_msg = apr_psprintf(rule->ruleset->mp, "Could not read \"%s\" line %d: %s", fn, line, apr_strerror(rc, errstr, 1024));
+ return 0;
+ }
+
+ /* Remove newline */
+ ptr = buf;
+ while(*ptr != '\0') ptr++;
+ if ((ptr > buf) && (*(ptr - 1) == '\n')) *(ptr - 1) = '\0';
+
+ /* Ignore empty lines and comments */
+ ptr = buf;
+ while((*ptr != '\0') && apr_isspace(*ptr)) ptr++;
+ if ((*ptr == '\0') || (*ptr == '#')) continue;
+
+ #ifdef DEBUG_CONF
+ fprintf(stderr, "Adding phrase file pattern: \"%s\"\n", buf);
+ #endif
+
+ acmp_add_pattern(p, buf, NULL, NULL, strlen(buf));
+ }
+ fn = next;
+ }
+ if (fd != NULL) apr_file_close(fd);
+ acmp_prepare(p);
+ rule->op_param_data = p;
+ return 1;
+}
+
+static int msre_op_pm_execute(modsec_rec *msr, msre_rule *rule, msre_var *var, char **error_msg) {
+ const char *match = NULL;
+ apr_status_t rc = 0;
+ int capture;
+ ACMPT pt;
+
+ /* Nothing to read */
+ if ((var->value == NULL) || (var->value_len == 0)) return 0;
+
+ /* Are we supposed to capture subexpressions? */
+ capture = apr_table_get(rule->actionset->actions, "capture") ? 1 : 0;
+
+ pt.parser = (ACMP *)rule->op_param_data;
+ pt.ptr = NULL;
+
+ rc = acmp_process_quick(&pt, &match, var->value, var->value_len);
+ if (rc) {
+ char *match_escaped = log_escape(msr->mp, match ? match : "<Unknown Match>");
+
+ /* This message will be logged. */
+ if (strlen(match_escaped) > 252) {
+ *error_msg = apr_psprintf(msr->mp, "Matched phrase \"%.252s ...\" at %s.",
+ match_escaped, var->name);
+ } else {
+ *error_msg = apr_psprintf(msr->mp, "Matched phrase \"%s\" at %s.",
+ match_escaped, var->name);
+ }
+
+ /* Handle capture as tx.0=match */
+ if (capture) {
+ int i;
+ msc_string *s = (msc_string *)apr_pcalloc(msr->mp, sizeof(msc_string));
+
+ if (s == NULL) return -1;
+
+ s->name = "0";
+ s->value = apr_pstrdup(msr->mp, match);
+ if (s->value == NULL) return -1;
+ s->value_len = strlen(s->value);
+ apr_table_setn(msr->tx_vars, s->name, (void *)s);
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Added phrase match to TX.0: %s",
+ log_escape_nq_ex(msr->mp, s->value, s->value_len));
+ }
+
+ /* Unset the remaining ones (from previous invocations). */
+ for(i = rc; i <= 9; i++) {
+ char buf[2];
+ apr_snprintf(buf, sizeof(buf), "%d", i);
+ apr_table_unset(msr->tx_vars, buf);
+ }
+ }
+
+ return 1;
+ }
+ return rc;
+}
+
+/* within */
+
+static int msre_op_within_execute(modsec_rec *msr, msre_rule *rule, msre_var *var, char **error_msg) {
+ msc_string *str = (msc_string *)apr_pcalloc(msr->mp, sizeof(msc_string));
+ const char *match = NULL;
+ const char *target;
+ unsigned int match_length;
+ unsigned int target_length = 0;
+ unsigned int i, i_max;
+
+ str->value = (char *)rule->op_param;
+ str->value_len = strlen(str->value);
+
+ if (error_msg == NULL) return -1;
+ *error_msg = NULL;
+
+ if (str->value == NULL) {
+ *error_msg = "Internal Error: match string is null.";
+ return -1;
+ }
+
+ expand_macros(msr, str, rule, msr->mp);
+
+ match = (const char *)str->value;
+ match_length = str->value_len;
+
+ /* If the given target is null we give up without a match */
+ if (var->value == NULL) {
+ /* No match. */
+ return 0;
+ }
+
+ target = var->value;
+ target_length = var->value_len;
+
+ /* The empty string always matches */
+ if (target_length == 0) {
+ /* Match. */
+ *error_msg = apr_psprintf(msr->mp, "String match within \"\" at %s.",
+ var->name);
+ return 1;
+ }
+
+ /* This is impossible to match */
+ if (target_length > match_length) {
+ /* No match. */
+ return 0;
+ }
+
+ /* scan for first character, then compare from there until we
+ * have a match or there is no room left in the target
+ */
+ i_max = match_length - target_length;
+ for (i = 0; i <= i_max; i++) {
+ if (match[i] == target[0]) {
+ if (memcmp((target + 1), (match + i + 1), (target_length - 1)) == 0) {
+ /* match. */
+ *error_msg = apr_psprintf(msr->mp, "String match within \"%s\" at %s.",
+ log_escape_ex(msr->mp, match, match_length),
+ var->name);
+ return 1;
+ }
+ }
+ }
+
+ /* No match. */
+ return 0;
+}
+
+/* contains */
+
+static int msre_op_contains_execute(modsec_rec *msr, msre_rule *rule, msre_var *var, char **error_msg) {
+ msc_string *str = (msc_string *)apr_pcalloc(msr->mp, sizeof(msc_string));
+ const char *match = NULL;
+ const char *target;
+ unsigned int match_length;
+ unsigned int target_length = 0;
+ unsigned int i, i_max;
+
+ str->value = (char *)rule->op_param;
+ str->value_len = strlen(str->value);
+
+ if (error_msg == NULL) return -1;
+ *error_msg = NULL;
+
+ if (str->value == NULL) {
+ *error_msg = "Internal Error: match string is null.";
+ return -1;
+ }
+
+ expand_macros(msr, str, rule, msr->mp);
+
+ match = (const char *)str->value;
+ match_length = str->value_len;
+
+ /* If the given target is null run against an empty
+ * string. This is a behaviour consistent with previous
+ * releases.
+ */
+ if (var->value == NULL) {
+ target = "";
+ target_length = 0;
+ } else {
+ target = var->value;
+ target_length = var->value_len;
+ }
+
+ /* The empty string always matches */
+ if (match_length == 0) {
+ /* Match. */
+ *error_msg = apr_psprintf(msr->mp, "String match \"\" at %s.", var->name);
+ return 1;
+ }
+
+ /* This is impossible to match */
+ if (match_length > target_length) {
+ /* No match. */
+ return 0;
+ }
+
+ /* scan for first character, then compare from there until we
+ * have a match or there is no room left in the target
+ */
+ i_max = target_length - match_length;
+ for (i = 0; i <= i_max; i++) {
+ /* First character matched - avoid func call */
+ if (target[i] == match[0]) {
+ /* See if remaining matches */
+ if ( (match_length == 1)
+ || (memcmp((match + 1), (target + i + 1), (match_length - 1)) == 0))
+ {
+ /* Match. */
+ *error_msg = apr_psprintf(msr->mp, "String match \"%s\" at %s.",
+ log_escape_ex(msr->mp, match, match_length),
+ var->name);
+ return 1;
+ }
+ }
+ }
+
+ /* No match. */
+ return 0;
+}
+
+/* containsWord */
+
+static int msre_op_containsWord_execute(modsec_rec *msr, msre_rule *rule, msre_var *var, char **error_msg) {
+ msc_string *str = (msc_string *)apr_pcalloc(msr->mp, sizeof(msc_string));
+ const char *match = NULL;
+ const char *target;
+ unsigned int match_length;
+ unsigned int target_length = 0;
+ unsigned int i, i_max;
+ int rc = 0;
+
+ str->value = (char *)rule->op_param;
+ str->value_len = strlen(str->value);
+
+ if (error_msg == NULL) return -1;
+ *error_msg = NULL;
+
+ if (str->value == NULL) {
+ *error_msg = "Internal Error: match string is null.";
+ return -1;
+ }
+
+ expand_macros(msr, str, rule, msr->mp);
+
+ match = (const char *)str->value;
+ match_length = str->value_len;
+
+ /* If the given target is null run against an empty
+ * string. This is a behaviour consistent with previous
+ * releases.
+ */
+ if (var->value == NULL) {
+ target = "";
+ target_length = 0;
+ } else {
+ target = var->value;
+ target_length = var->value_len;
+ }
+
+ /* The empty string always matches */
+ if (match_length == 0) {
+ /* Match. */
+ *error_msg = apr_psprintf(msr->mp, "String match \"\" at %s.", var->name);
+ return 1;
+ }
+
+ /* This is impossible to match */
+ if (match_length > target_length) {
+ /* No match. */
+ return 0;
+ }
+
+ /* scan for first character, then compare from there until we
+ * have a match or there is no room left in the target
+ */
+ i_max = target_length - match_length;
+ for (i = 0; i <= i_max; i++) {
+
+ /* Previous char must have been a start or non-word */
+ if ((i > 0) && (apr_isalnum(target[i-1])||(target[i-1] == '_')))
+ continue;
+
+ /* First character matched - avoid func call */
+ if (target[i] == match[0]) {
+ /* See if remaining matches */
+ if ( (match_length == 1)
+ || (memcmp((match + 1), (target + i + 1), (match_length - 1)) == 0))
+ {
+ /* check boundaries */
+ if (i == i_max) {
+ /* exact/end word match */
+ rc = 1;
+ }
+ else if (!(apr_isalnum(target[i + match_length])||(target[i + match_length] == '_'))) {
+ /* start/mid word match */
+ rc = 1;
+ }
+ }
+ }
+ }
+
+ if (rc == 1) {
+ /* Maybe a match. */
+ *error_msg = apr_psprintf(msr->mp, "String match \"%s\" at %s.",
+ log_escape_ex(msr->mp, match, match_length),
+ var->name);
+ return 1;
+ }
+
+ /* No match. */
+ *error_msg = NULL;
+ return 0;
+}
+
+/* streq */
+
+static int msre_op_streq_execute(modsec_rec *msr, msre_rule *rule, msre_var *var, char **error_msg) {
+ msc_string *str = (msc_string *)apr_pcalloc(msr->mp, sizeof(msc_string));
+ const char *match = NULL;
+ const char *target;
+ unsigned int match_length;
+ unsigned int target_length;
+
+ str->value = (char *)rule->op_param;
+ str->value_len = strlen(str->value);
+
+ if (error_msg == NULL) return -1;
+ *error_msg = NULL;
+
+ if (str->value == NULL) {
+ *error_msg = "Internal Error: match string is null.";
+ return -1;
+ }
+
+ expand_macros(msr, str, rule, msr->mp);
+
+ match = (const char *)str->value;
+ match_length = str->value_len;
+
+ /* If the given target is null run against an empty
+ * string. This is a behaviour consistent with previous
+ * releases.
+ */
+ if (var->value == NULL) {
+ target = "";
+ target_length = 0;
+ } else {
+ target = var->value;
+ target_length = var->value_len;
+ }
+
+ /* These are impossible to match */
+ if (match_length != target_length) {
+ /* No match. */
+ return 0;
+ }
+
+ if (memcmp(match, target, target_length) == 0) {
+ /* Match. */
+ *error_msg = apr_psprintf(msr->mp, "String match \"%s\" at %s.",
+ log_escape_ex(msr->mp, match, match_length),
+ var->name);
+ return 1;
+ }
+
+ /* No match. */
+ return 0;
+}
+
+/* beginsWith */
+
+static int msre_op_beginsWith_execute(modsec_rec *msr, msre_rule *rule, msre_var *var, char **error_msg) {
+ msc_string *str = (msc_string *)apr_pcalloc(msr->mp, sizeof(msc_string));
+ const char *match = NULL;
+ const char *target;
+ unsigned int match_length;
+ unsigned int target_length;
+
+ str->value = (char *)rule->op_param;
+ str->value_len = strlen(str->value);
+
+ if (error_msg == NULL) return -1;
+ *error_msg = NULL;
+
+ if (str->value == NULL) {
+ *error_msg = "Internal Error: match string is null.";
+ return -1;
+ }
+
+ expand_macros(msr, str, rule, msr->mp);
+
+ match = (const char *)str->value;
+ match_length = str->value_len;
+
+ /* If the given target is null run against an empty
+ * string. This is a behaviour consistent with previous
+ * releases.
+ */
+ if (var->value == NULL) {
+ target = "";
+ target_length = 0;
+ } else {
+ target = var->value;
+ target_length = var->value_len;
+ }
+
+ /* The empty string always matches */
+ if (match_length == 0) {
+ /* Match. */
+ *error_msg = apr_psprintf(msr->mp, "String match \"\" at %s.", var->name);
+ return 1;
+ }
+
+ /* This is impossible to match */
+ if (match_length > target_length) {
+ /* No match. */
+ return 0;
+ }
+
+ if (memcmp(match, target, match_length) == 0) {
+ /* Match. */
+ *error_msg = apr_psprintf(msr->mp, "String match \"%s\" at %s.",
+ log_escape_ex(msr->mp, match, match_length),
+ var->name);
+ return 1;
+ }
+
+ /* No match. */
+ return 0;
+}
+
+/* endsWith */
+
+static int msre_op_endsWith_execute(modsec_rec *msr, msre_rule *rule, msre_var *var, char **error_msg) {
+ msc_string *str = (msc_string *)apr_pcalloc(msr->mp, sizeof(msc_string));
+ const char *match = NULL;
+ const char *target;
+ unsigned int match_length;
+ unsigned int target_length;
+
+ str->value = (char *)rule->op_param;
+ str->value_len = strlen(str->value);
+
+ if (error_msg == NULL) return -1;
+ *error_msg = NULL;
+
+ if (str->value == NULL) {
+ *error_msg = "Internal Error: match string is null.";
+ return -1;
+ }
+
+ expand_macros(msr, str, rule, msr->mp);
+
+ match = (const char *)str->value;
+ match_length = str->value_len;
+
+ /* If the given target is null run against an empty
+ * string. This is a behaviour consistent with previous
+ * releases.
+ */
+ if (var->value == NULL) {
+ target = "";
+ target_length = 0;
+ } else {
+ target = var->value;
+ target_length = var->value_len;
+ }
+
+ /* The empty string always matches */
+ if (match_length == 0) {
+ /* Match. */
+ *error_msg = apr_psprintf(msr->mp, "String match \"\" at %s.", var->name);
+ return 1;
+ }
+
+ /* This is impossible to match */
+ if (match_length > target_length) {
+ /* No match. */
+ return 0;
+ }
+
+ if (memcmp(match, (target + (target_length - match_length)), match_length) == 0) {
+ /* Match. */
+ *error_msg = apr_psprintf(msr->mp, "String match \"%s\" at %s.",
+ log_escape_ex(msr->mp, match, match_length),
+ var->name);
+ return 1;
+ }
+
+ /* No match. */
+ return 0;
+}
+
+/* m */
+
+static int msre_op_m_param_init(msre_rule *rule, char **error_msg) {
+ const apr_strmatch_pattern *compiled_pattern;
+ const char *pattern = rule->op_param;
+
+ if (error_msg == NULL) return -1;
+ *error_msg = NULL;
+
+ /* Compile pattern */
+ compiled_pattern = apr_strmatch_precompile(rule->ruleset->mp, pattern, 1);
+ if (compiled_pattern == NULL) {
+ *error_msg = apr_psprintf(rule->ruleset->mp, "Error compiling pattern: %s", pattern);
+ return 0;
+ }
+
+ rule->op_param_data = (void *)compiled_pattern;
+
+ return 1; /* OK */
+}
+
+static int msre_op_m_execute(modsec_rec *msr, msre_rule *rule, msre_var *var, char **error_msg) {
+ apr_strmatch_pattern *compiled_pattern = (apr_strmatch_pattern *)rule->op_param_data;
+ const char *target;
+ unsigned int target_length;
+ const char *rc;
+
+ if (error_msg == NULL) return -1;
+ *error_msg = NULL;
+
+ if (compiled_pattern == NULL) {
+ *error_msg = "Internal Error: strnmatch data is null.";
+ return -1;
+ }
+
+ /* If the given target is null run against an empty
+ * string. This is a behaviour consistent with previous
+ * releases.
+ */
+ if (var->value == NULL) {
+ target = "";
+ target_length = 0;
+ } else {
+ target = var->value;
+ target_length = var->value_len;
+ }
+
+ rc = apr_strmatch(compiled_pattern, target, target_length);
+ if (rc == NULL) {
+ /* No match. */
+ return 0;
+ }
+
+ *error_msg = apr_psprintf(msr->mp, "Pattern match \"%s\" at %s.",
+ log_escape(msr->mp, rule->op_param), var->name);
+
+ /* Match. */
+ return 1;
+}
+
+/* validateDTD */
+
+static int msre_op_validateDTD_init(msre_rule *rule, char **error_msg) {
+ /* ENH Verify here the file actually exists. */
+ return 1;
+}
+
+static int msre_op_validateDTD_execute(modsec_rec *msr, msre_rule *rule, msre_var *var,
+ char **error_msg)
+{
+ xmlValidCtxtPtr cvp;
+ xmlDtdPtr dtd;
+
+ if ((msr->xml == NULL)||(msr->xml->doc == NULL)) {
+ *error_msg = apr_psprintf(msr->mp,
+ "XML document tree could not be found for DTD validation.");
+ return -1;
+ }
+
+ if (msr->xml->well_formed != 1) {
+ *error_msg = apr_psprintf(msr->mp,
+ "XML: DTD validation failed because content is not well formed.");
+ return 1;
+ }
+
+ /* Make sure there were no other generic processing errors */
+ if (msr->msc_reqbody_error) {
+ *error_msg = apr_psprintf(msr->mp,
+ "XML: DTD validation could not proceed due to previous"
+ " processing errors.");
+ return 1;
+ }
+
+ dtd = xmlParseDTD(NULL, (const xmlChar *)rule->op_param); /* EHN support relative filenames */
+ if (dtd == NULL) {
+ *error_msg = apr_psprintf(msr->mp, "XML: Failed to load DTD: %s", rule->op_param);
+ return -1;
+ }
+
+ cvp = xmlNewValidCtxt();
+ if (cvp == NULL) {
+ *error_msg = "XML: Failed to create a validation context.";
+ xmlFreeDtd(dtd);
+ return -1;
+ }
+
+ /* Send validator errors/warnings to msr_log */
+ /* NOTE: No xmlDtdSetValidErrors()? */
+ cvp->error = (xmlSchemaValidityErrorFunc)msr_log_error;
+ cvp->warning = (xmlSchemaValidityErrorFunc)msr_log_warn;
+ cvp->userData = msr;
+
+ if (!xmlValidateDtd(cvp, msr->xml->doc, dtd)) {
+ *error_msg = "XML: DTD validation failed.";
+ xmlFreeValidCtxt(cvp);
+ xmlFreeDtd(dtd);
+ return 1; /* No match. */
+ }
+
+ msr_log(msr, 4, "XML: Successfully validated payload against DTD: %s", rule->op_param);
+
+ xmlFreeValidCtxt(cvp);
+ xmlFreeDtd(dtd);
+
+ /* Match. */
+ return 0;
+}
+
+/* validateSchema */
+
+static int msre_op_validateSchema_init(msre_rule *rule, char **error_msg) {
+ /* ENH Verify here the file actually exists. */
+ return 1;
+}
+
+static int msre_op_validateSchema_execute(modsec_rec *msr, msre_rule *rule, msre_var *var,
+ char **error_msg)
+{
+ xmlSchemaParserCtxtPtr parserCtx;
+ xmlSchemaValidCtxtPtr validCtx;
+ xmlSchemaPtr schema;
+ int rc;
+
+ if ((msr->xml == NULL)||(msr->xml->doc == NULL)) {
+ *error_msg = apr_psprintf(msr->mp,
+ "XML document tree could not be found for schema validation.");
+ return -1;
+ }
+
+ if (msr->xml->well_formed != 1) {
+ *error_msg = apr_psprintf(msr->mp,
+ "XML: Schema validation failed because content is not well formed.");
+ return 1;
+ }
+
+ /* Make sure there were no other generic processing errors */
+ if (msr->msc_reqbody_error) {
+ *error_msg = apr_psprintf(msr->mp,
+ "XML: Schema validation could not proceed due to previous"
+ " processing errors.");
+ return 1;
+ }
+
+ parserCtx = xmlSchemaNewParserCtxt(rule->op_param); /* ENH support relative filenames */
+ if (parserCtx == NULL) {
+ *error_msg = apr_psprintf(msr->mp, "XML: Failed to load Schema from file: %s",
+ rule->op_param);
+ return -1;
+ }
+
+ /* Send parser errors/warnings to msr_log */
+ xmlSchemaSetParserErrors(parserCtx, (xmlSchemaValidityErrorFunc)msr_log_error, (xmlSchemaValidityWarningFunc)msr_log_warn, msr);
+
+ schema = xmlSchemaParse(parserCtx);
+ if (schema == NULL) {
+ *error_msg = apr_psprintf(msr->mp, "XML: Failed to load Schema: %s", rule->op_param);
+ xmlSchemaFreeParserCtxt(parserCtx);
+ return -1;
+ }
+
+ validCtx = xmlSchemaNewValidCtxt(schema);
+ if (validCtx == NULL) {
+ *error_msg = "XML: Failed to create validation context.";
+ xmlSchemaFree(schema);
+ xmlSchemaFreeParserCtxt(parserCtx);
+ return -1;
+ }
+
+ /* Send validator errors/warnings to msr_log */
+ xmlSchemaSetValidErrors(validCtx, (xmlSchemaValidityErrorFunc)msr_log_error, (xmlSchemaValidityWarningFunc)msr_log_warn, msr);
+
+ rc = xmlSchemaValidateDoc(validCtx, msr->xml->doc);
+ if (rc != 0) {
+ *error_msg = "XML: Schema validation failed.";
+ xmlSchemaFree(schema);
+ xmlSchemaFreeParserCtxt(parserCtx);
+ return 1; /* No match. */
+ }
+
+ msr_log(msr, 4, "XML: Successfully validated payload against Schema: %s", rule->op_param);
+
+ xmlSchemaFree(schema);
+ xmlSchemaFreeValidCtxt(validCtx);
+
+ return 0;
+}
+
+/* verifyCC */
+
+/**
+ * Luhn Mod-10 Method (ISO 2894/ANSI 4.13)
+ */
+static int luhn_verify(const char *ccnumber, int len) {
+ int sum[2] = { 0, 0 };
+ int odd = 0;
+ int digits = 0;
+ int i;
+
+ /* Weighted lookup table which is just a precalculated (i = index):
+ * i*2 + (( (i*2) > 9 ) ? -9 : 0)
+ */
+ static int wtable[10] = {0, 2, 4, 6, 8, 1, 3, 5, 7, 9}; /* weight lookup table */
+
+ /* Add up only digits (weighted digits via lookup table)
+ * for both odd and even CC numbers to avoid 2 passes.
+ */
+ for (i = 0; i < len; i++) {
+ if (apr_isdigit(ccnumber[i])) {
+ sum[0] += (!odd ? wtable[ccnumber[i] - '0'] : (ccnumber[i] - '0'));
+ sum[1] += (odd ? wtable[ccnumber[i] - '0'] : (ccnumber[i] - '0'));
+ odd = 1 - odd; /* alternate weights */
+ digits++;
+ }
+ }
+
+ /* No digits extracted */
+ if (digits == 0) return 0;
+
+ /* Do a mod 10 on the sum */
+ sum[odd] %= 10;
+
+ /* If the result is a zero the card is valid. */
+ return sum[odd] ? 0 : 1;
+}
+
+static int msre_op_verifyCC_init(msre_rule *rule, char **error_msg) {
+ const char *errptr = NULL;
+ int erroffset;
+ msc_regex_t *regex;
+
+ if (error_msg == NULL) return -1;
+ *error_msg = NULL;
+
+ /* Compile rule->op_param */
+ regex = msc_pregcomp(rule->ruleset->mp, rule->op_param, PCRE_DOTALL | PCRE_MULTILINE, &errptr, &erroffset);
+ if (regex == NULL) {
+ *error_msg = apr_psprintf(rule->ruleset->mp, "Error compiling pattern (offset %d): %s",
+ erroffset, errptr);
+ return 0;
+ }
+
+ rule->op_param_data = regex;
+
+ return 1; /* OK */
+}
+
+static int msre_op_verifyCC_execute(modsec_rec *msr, msre_rule *rule, msre_var *var, char **error_msg) {
+ msc_regex_t *regex = (msc_regex_t *)rule->op_param_data;
+ const char *target;
+ unsigned int target_length;
+ char *my_error_msg = NULL;
+ int ovector[33];
+ int rc;
+ int is_cc = 0;
+ int offset;
+
+ if (error_msg == NULL) return -1;
+ *error_msg = NULL;
+
+ if (regex == NULL) {
+ *error_msg = "Internal Error: regex data is null.";
+ return -1;
+ }
+
+ memset(ovector, 0, sizeof(ovector));
+
+ /* If the given target is null run against an empty
+ * string. This is a behaviour consistent with previous
+ * releases.
+ */
+ if (var->value == NULL) {
+ target = "";
+ target_length = 0;
+ } else {
+ target = var->value;
+ target_length = var->value_len;
+ }
+
+ for (offset = 0; ((unsigned int)offset < target_length) && (is_cc == 0); offset++) {
+ if (msr->txcfg->debuglog_level >= 9) {
+ if (offset > 0) {
+ msr_log(msr, 9, "Continuing CC# search at target offset %d.", offset);
+ }
+ }
+
+ rc = msc_regexec_ex(regex, target, target_length, offset, PCRE_NOTEMPTY, ovector, 30, &my_error_msg);
+
+ /* If there was no match, then we are done. */
+ if (rc == PCRE_ERROR_NOMATCH) {
+ break;
+ }
+
+ if (rc < -1) {
+ *error_msg = apr_psprintf(msr->mp, "CC# regex execution failed: %s", my_error_msg);
+ return -1;
+ }
+
+ /* Verify a match. */
+ if (rc > 0) {
+ const char *match = target + ovector[0];
+ int length = ovector[1] - ovector[0];
+ int i = 0;
+
+ offset = ovector[2*i];
+
+ /* Check the Luhn using the match string */
+ is_cc = luhn_verify(match, length);
+
+ /* Not a CC number, then try another match where we left off. */
+ if (!is_cc) {
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "CC# Luhn check failed at target offset %d: \"%.*s\"", offset, length, match);
+ }
+
+ continue;
+ }
+
+ /* We have a potential CC number and need to set any captures
+ * and we are done.
+ */
+
+ if (apr_table_get(rule->actionset->actions, "capture")) {
+ for(; i < rc; i++) {
+ msc_string *s = (msc_string *)apr_pcalloc(msr->mp, sizeof(msc_string));
+ if (s == NULL) return -1;
+ s->name = apr_psprintf(msr->mp, "%d", i);
+ s->value = apr_pstrmemdup(msr->mp, match, length);
+ s->value_len = length;
+ if ((s->name == NULL)||(s->value == NULL)) return -1;
+
+ apr_table_setn(msr->tx_vars, s->name, (void *)s);
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Added regex subexpression to TX.%d: %s", i,
+ log_escape_nq_ex(msr->mp, s->value, s->value_len));
+ }
+ }
+ }
+
+ /* Unset the remaining TX vars (from previous invocations). */
+ for(; i <= 9; i++) {
+ char buf[24];
+ apr_snprintf(buf, sizeof(buf), "%i", i);
+ apr_table_unset(msr->tx_vars, buf);
+ }
+
+ break;
+ }
+ }
+
+ if (is_cc) {
+ /* Match. */
+
+ /* This message will be logged. */
+ *error_msg = apr_psprintf(msr->mp, "CC# match \"%s\" at %s. [offset \"%d\"]",
+ regex->pattern, var->name, offset);
+
+ return 1;
+ }
+
+ /* No match. */
+ return 0;
+}
+
+
+/**
+ * Perform geograpical lookups on an IP/Host.
+ */
+static int msre_op_geoLookup_execute(modsec_rec *msr, msre_rule *rule, msre_var *var,
+ char **error_msg)
+{
+ geo_rec rec;
+ geo_db *geo = msr->txcfg->geo;
+ const char *geo_host = var->value;
+ msc_string *s = NULL;
+ int rc;
+
+ *error_msg = NULL;
+
+ if (geo == NULL) {
+ msr_log(msr, 1, "Geo lookup for \"%s\" attempted without a database. Set SecGeoLookupDB.", log_escape(msr->mp, geo_host));
+ return 0;
+ }
+
+
+ rc = geo_lookup(msr, &rec, geo_host, error_msg);
+ if (rc <= 0) {
+ if (! *error_msg) {
+ *error_msg = apr_psprintf(msr->mp, "Geo lookup for \"%s\" failed at %s.", log_escape_nq(msr->mp, geo_host), var->name);
+ }
+ apr_table_clear(msr->geo_vars);
+ return rc;
+ }
+ if (! *error_msg) {
+ *error_msg = apr_psprintf(msr->mp, "Geo lookup for \"%s\" succeeded at %s.",
+ log_escape_nq(msr->mp, geo_host), var->name);
+ }
+
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "GEO: %s={country_code=%s, country_code3=%s, country_name=%s, country_continent=%s, region=%s, city=%s, postal_code=%s, latitude=%f, longitude=%f, dma_code=%d, area_code=%d}",
+ geo_host,
+ rec.country_code,
+ rec.country_code3,
+ rec.country_name,
+ rec.country_continent,
+ rec.region,
+ rec.city,
+ rec.postal_code,
+ rec.latitude,
+ rec.longitude,
+ rec.dma_code,
+ rec.area_code);
+ }
+
+ s = (msc_string *)apr_pcalloc(msr->mp, sizeof(msc_string));
+ s->name = apr_pstrdup(msr->mp, "COUNTRY_CODE");
+ s->name_len = strlen(s->name);
+ s->value = apr_pstrdup(msr->mp, rec.country_code ? rec.country_code : "");
+ s->value_len = strlen(s->value);
+ apr_table_setn(msr->geo_vars, s->name, (void *)s);
+
+ s = (msc_string *)apr_pcalloc(msr->mp, sizeof(msc_string));
+ s->name = apr_pstrdup(msr->mp, "COUNTRY_CODE3");
+ s->name_len = strlen(s->name);
+ s->value = apr_pstrdup(msr->mp, rec.country_code3 ? rec.country_code3 : "");
+ s->value_len = strlen(s->value);
+ apr_table_setn(msr->geo_vars, s->name, (void *)s);
+
+ s = (msc_string *)apr_pcalloc(msr->mp, sizeof(msc_string));
+ s->name = apr_pstrdup(msr->mp, "COUNTRY_NAME");
+ s->name_len = strlen(s->name);
+ s->value = apr_pstrdup(msr->mp, rec.country_name ? rec.country_name : "");
+ s->value_len = strlen(s->value);
+ apr_table_setn(msr->geo_vars, s->name, (void *)s);
+
+ s = (msc_string *)apr_pcalloc(msr->mp, sizeof(msc_string));
+ s->name = apr_pstrdup(msr->mp, "COUNTRY_CONTINENT");
+ s->name_len = strlen(s->name);
+ s->value = apr_pstrdup(msr->mp, rec.country_continent ? rec.country_continent : "");
+ s->value_len = strlen(s->value);
+ apr_table_setn(msr->geo_vars, s->name, (void *)s);
+
+ s = (msc_string *)apr_pcalloc(msr->mp, sizeof(msc_string));
+ s->name = apr_pstrdup(msr->mp, "REGION");
+ s->name_len = strlen(s->name);
+ s->value = apr_pstrdup(msr->mp, rec.region ? rec.region : "");
+ s->value_len = strlen(s->value);
+ apr_table_setn(msr->geo_vars, s->name, (void *)s);
+
+ s = (msc_string *)apr_pcalloc(msr->mp, sizeof(msc_string));
+ s->name = apr_pstrdup(msr->mp, "CITY");
+ s->name_len = strlen(s->name);
+ s->value = apr_pstrdup(msr->mp, rec.city ? rec.city : "");
+ s->value_len = strlen(s->value);
+ apr_table_setn(msr->geo_vars, s->name, (void *)s);
+
+ s = (msc_string *)apr_pcalloc(msr->mp, sizeof(msc_string));
+ s->name = apr_pstrdup(msr->mp, "POSTAL_CODE");
+ s->name_len = strlen(s->name);
+ s->value = apr_pstrdup(msr->mp, rec.postal_code ? rec.postal_code : "");
+ s->value_len = strlen(s->value);
+ apr_table_setn(msr->geo_vars, s->name, (void *)s);
+
+ s = (msc_string *)apr_pcalloc(msr->mp, sizeof(msc_string));
+ s->name = apr_pstrdup(msr->mp, "LATITUDE");
+ s->name_len = strlen(s->name);
+ s->value = apr_psprintf(msr->mp, "%f", rec.latitude);
+ s->value_len = strlen(s->value);
+ apr_table_setn(msr->geo_vars, s->name, (void *)s);
+
+ s = (msc_string *)apr_pcalloc(msr->mp, sizeof(msc_string));
+ s->name = apr_pstrdup(msr->mp, "LONGITUDE");
+ s->name_len = strlen(s->name);
+ s->value = apr_psprintf(msr->mp, "%f", rec.longitude);
+ s->value_len = strlen(s->value);
+ apr_table_setn(msr->geo_vars, s->name, (void *)s);
+
+ s = (msc_string *)apr_pcalloc(msr->mp, sizeof(msc_string));
+ s->name = apr_pstrdup(msr->mp, "DMA_CODE");
+ s->name_len = strlen(s->name);
+ s->value = apr_psprintf(msr->mp, "%d", rec.dma_code);
+ s->value_len = strlen(s->value);
+ apr_table_setn(msr->geo_vars, s->name, (void *)s);
+
+ s = (msc_string *)apr_pcalloc(msr->mp, sizeof(msc_string));
+ s->name = apr_pstrdup(msr->mp, "AREA_CODE");
+ s->name_len = strlen(s->name);
+ s->value = apr_psprintf(msr->mp, "%d", rec.area_code);
+ s->value_len = strlen(s->value);
+ apr_table_setn(msr->geo_vars, s->name, (void *)s);
+
+ return 1;
+}
+
+/* rbl */
+
+static int msre_op_rbl_execute(modsec_rec *msr, msre_rule *rule, msre_var *var, char **error_msg) {
+ unsigned int h0, h1, h2, h3;
+ char *name_to_check = NULL;
+ char *target = NULL;
+ apr_sockaddr_t *sa = NULL;
+ apr_status_t rc;
+
+ if (error_msg == NULL) return -1;
+ *error_msg = NULL;
+
+ /* ENH Add IPv6 support. */
+
+ target = apr_pstrmemdup(msr->mp, var->value, var->value_len);
+ if (target == NULL) return -1;
+
+ /* Construct the host name we want to resolve. */
+ if (sscanf(target, "%d.%d.%d.%d", &h0, &h1, &h2, &h3) == 4) {
+ /* IPv4 address */
+ name_to_check = apr_psprintf(msr->mp, "%d.%d.%d.%d.%s", h3, h2, h1, h0, rule->op_param);
+ } else {
+ /* Assume the input is a domain name. */
+ name_to_check = apr_psprintf(msr->mp, "%s.%s", target, rule->op_param);
+ }
+
+ if (name_to_check == NULL) return -1;
+
+ rc = apr_sockaddr_info_get(&sa, name_to_check,
+ APR_UNSPEC/*msr->r->connection->remote_addr->family*/, 0, 0, msr->mp);
+ if (rc == APR_SUCCESS) {
+ *error_msg = apr_psprintf(msr->r->pool, "RBL lookup of %s succeeded at %s.",
+ log_escape_nq(msr->mp, name_to_check), var->name);
+ return 1; /* Match. */
+ }
+
+ msr_log(msr, 5, "RBL lookup of %s failed at %s.", log_escape_nq(msr->mp, name_to_check), var->name);
+
+ /* No match. */
+ return 0;
+}
+
+/* inspectFile */
+
+static int msre_op_inspectFile_init(msre_rule *rule, char **error_msg) {
+ char *filename = (char *)rule->op_param;
+
+ if (error_msg == NULL) return -1;
+ *error_msg = NULL;
+
+ if ((filename == NULL)||(is_empty_string(filename))) {
+ *error_msg = apr_psprintf(rule->ruleset->mp, "Operator @inspectFile requires parameter.");
+ return -1;
+ }
+
+ filename = resolve_relative_path(rule->ruleset->mp, rule->filename, filename);
+
+ #if defined(WITH_LUA)
+ /* ENH Write & use string_ends(s, e). */
+ if (strlen(rule->op_param) > 4) {
+ char *p = filename + strlen(filename) - 4;
+ if ((p[0] == '.')&&(p[1] == 'l')&&(p[2] == 'u')&&(p[3] == 'a'))
+ {
+ msc_script *script = NULL;
+
+ /* Compile script. */
+ *error_msg = lua_compile(&script, filename, rule->ruleset->mp);
+ if (*error_msg != NULL) return -1;
+
+ rule->op_param_data = script;
+ }
+ }
+ #endif
+
+ if (rule->op_param_data == NULL) {
+ /* ENH Verify the script exists and that we have
+ * the rights to execute it.
+ */
+ }
+
+ return 1;
+}
+
+static int msre_op_inspectFile_execute(modsec_rec *msr, msre_rule *rule, msre_var *var,
+ char **error_msg)
+{
+ if (error_msg == NULL) return -1;
+ *error_msg = NULL;
+
+ if (rule->op_param_data == NULL) {
+ /* Execute externally, as native binary/shell script. */
+ char *script_output = NULL;
+ char const *argv[5];
+ const char *approver_script = rule->op_param;
+ const char *target_file = apr_pstrmemdup(msr->mp, var->value, var->value_len);
+
+ msr_log(msr, 4, "Executing %s to inspect %s.", approver_script, target_file);
+
+ argv[0] = approver_script;
+ argv[1] = target_file;
+ argv[2] = NULL;
+
+ if (apache2_exec(msr, approver_script, (const char **)argv, &script_output) <= 0) {
+ *error_msg = apr_psprintf(msr->mp, "Execution of the approver script \"%s\" failed (invocation failed).",
+ log_escape(msr->mp, approver_script));
+ return -1;
+ }
+
+ if (script_output == NULL) {
+ *error_msg = apr_psprintf(msr->mp, "Execution of the approver script \"%s\" failed (no output).",
+ log_escape(msr->mp, approver_script));
+ return -1;
+ }
+
+ if (script_output[0] != '1') {
+ *error_msg = apr_psprintf(msr->mp, "File \"%s\" rejected by the approver script \"%s\": %s",
+ log_escape(msr->mp, target_file), log_escape(msr->mp, approver_script),
+ log_escape_nq(msr->mp, script_output));
+ return 1; /* Match. */
+ }
+ }
+ #if defined(WITH_LUA)
+ else {
+ /* Execute internally, as Lua script. */
+ char *target = apr_pstrmemdup(msr->mp, var->value, var->value_len);
+ msc_script *script = (msc_script *)rule->op_param_data;
+ int rc;
+
+ rc = lua_execute(script, target, msr, rule, error_msg);
+ if (rc < 0) {
+ /* Error. */
+ return -1;
+ }
+
+ return rc;
+ }
+ #endif
+
+ /* No match. */
+ return 0;
+}
+
+/* validateByteRange */
+
+static int msre_op_validateByteRange_init(msre_rule *rule, char **error_msg) {
+ char *p = NULL, *saveptr = NULL;
+ char *table = NULL, *data = NULL;
+
+ if (error_msg == NULL) return -1;
+ *error_msg = NULL;
+
+ if (rule->op_param == NULL) {
+ *error_msg = apr_psprintf(rule->ruleset->mp, "Missing parameter for validateByteRange.");
+ return -1;
+ }
+
+ /* Initialise. */
+ data = apr_pstrdup(rule->ruleset->mp, rule->op_param);
+ rule->op_param_data = apr_pcalloc(rule->ruleset->mp, 32);
+ if ((data == NULL)||(rule->op_param_data == NULL)) return -1;
+ table = rule->op_param_data;
+
+ /* Extract parameters and update table. */
+ p = apr_strtok(data, ",", &saveptr);
+ while(p != NULL) {
+ char *s = strstr(p, "-");
+ if (s == NULL) {
+ /* Single value. */
+ int x = atoi(p);
+ if ((x < 0)||(x > 255)) {
+ *error_msg = apr_psprintf(rule->ruleset->mp, "Invalid range value: %d", x);
+ return 0;
+ }
+ table[x>>3] = (table[x>>3] | (1 << (x & 0x7)));
+ } else {
+ /* Range. */
+ int start = atoi(p);
+ int end = atoi(s + 1);
+
+ if ((start < 0)||(start > 255)) {
+ *error_msg = apr_psprintf(rule->ruleset->mp, "Invalid range start value: %d",
+ start);
+ return 0;
+ }
+ if ((end < 0)||(end > 255)) {
+ *error_msg = apr_psprintf(rule->ruleset->mp, "Invalid range end value: %d", end);
+ return 0;
+ }
+ if (start > end) {
+ *error_msg = apr_psprintf(rule->ruleset->mp, "Invalid range: %d-%d", start, end);
+ return 0;
+ }
+
+ while(start <= end) {
+ table[start >> 3] = (table[start >> 3] | (1 << (start & 0x7)));
+ start++;
+ }
+ }
+
+ p = apr_strtok(NULL, ",", &saveptr);
+ }
+
+ return 1;
+}
+
+static int msre_op_validateByteRange_execute(modsec_rec *msr, msre_rule *rule, msre_var *var,
+ char **error_msg)
+{
+ char *table = rule->op_param_data;
+ unsigned int i, count;
+
+ if (error_msg == NULL) return -1;
+ *error_msg = NULL;
+
+ if (table == NULL) {
+ *error_msg = apr_psprintf(msr->mp, "Internal Error: validateByteRange table not "
+ "initialised.");
+ return -1;
+ }
+
+ /* Check every byte of the target to detect characters that are not allowed. */
+
+ count = 0;
+ for(i = 0; i < var->value_len; i++) {
+ int x = ((unsigned char *)var->value)[i];
+ if (!(table[x >> 3] & (1 << (x & 0x7)))) {
+ if (msr->txcfg->debuglog_level >= 9) {
+ msr_log(msr, 9, "Value %d in %s outside range: %s", x, var->name, rule->op_param);
+ }
+ count++;
+ }
+ }
+
+ if (count == 0) return 0; /* Valid - no match. */
+
+ *error_msg = apr_psprintf(msr->mp, "Found %d byte(s) in %s outside range: %s.",
+ count, var->name, rule->op_param);
+
+ return 1; /* Invalid - match.*/
+}
+
+/* validateUrlEncoding */
+
+static int validate_url_encoding(const char *input, long int input_length) {
+ int i;
+
+ if ((input == NULL)||(input_length < 0)) return -1;
+
+ i = 0;
+ while (i < input_length) {
+ if (input[i] == '%') {
+ if (i + 2 >= input_length) {
+ /* Not enough bytes. */
+ return -3;
+ }
+ else {
+ /* Here we only decode a %xx combination if it is valid,
+ * leaving it as is otherwise.
+ */
+ char c1 = input[i + 1];
+ char c2 = input[i + 2];
+
+ if ( (((c1 >= '0')&&(c1 <= '9')) || ((c1 >= 'a')&&(c1 <= 'f')) || ((c1 >= 'A')&&(c1 <= 'F')))
+ && (((c2 >= '0')&&(c2 <= '9')) || ((c2 >= 'a')&&(c2 <= 'f')) || ((c2 >= 'A')&&(c2 <= 'F'))) )
+ {
+ i += 3;
+ } else {
+ /* Non-hexadecimal characters used in encoding. */
+ return -2;
+ }
+ }
+ } else {
+ i++;
+ }
+ }
+
+ return 1;
+}
+
+static int msre_op_validateUrlEncoding_execute(modsec_rec *msr, msre_rule *rule, msre_var *var,
+ char **error_msg)
+{
+ int rc = validate_url_encoding(var->value, var->value_len);
+ switch(rc) {
+ case 1 :
+ /* Encoding is valid */
+ *error_msg = apr_psprintf(msr->mp, "Valid URL Encoding at %s.", var->name);
+ break;
+ case -2 :
+ *error_msg = apr_psprintf(msr->mp, "Invalid URL Encoding: Non-hexadecimal "
+ "digits used at %s.", var->name);
+ return 1; /* Invalid match. */
+ break;
+ case -3 :
+ *error_msg = apr_psprintf(msr->mp, "Invalid URL Encoding: Not enough characters "
+ "at the end of input at %s.", var->name);
+ return 1; /* Invalid match. */
+ break;
+ case -1 :
+ default :
+ *error_msg = apr_psprintf(msr->mp, "Invalid URL Encoding: Internal Error (rc = %d) at %s", rc, var->name);
+ return -1;
+ break;
+
+ }
+
+ /* No match. */
+ return 0;
+}
+
+/* validateUtf8Encoding */
+
+#define UNICODE_ERROR_CHARACTERS_MISSING -1
+#define UNICODE_ERROR_INVALID_ENCODING -2
+#define UNICODE_ERROR_OVERLONG_CHARACTER -3
+#define UNICODE_ERROR_RESTRICTED_CHARACTER -4
+#define UNICODE_ERROR_DECODING_ERROR -5
+
+/* NOTE: This is over-commented for ease of verification */
+static int detect_utf8_character(const unsigned char *p_read, unsigned int length) {
+ int unicode_len = 0;
+ unsigned int d = 0;
+ unsigned char c;
+
+ if (p_read == NULL) return UNICODE_ERROR_DECODING_ERROR;
+ c = *p_read;
+
+ /* If first byte begins with binary 0 it is single byte encoding */
+ if ((c & 0x80) == 0) {
+ /* single byte unicode (7 bit ASCII equivilent) has no validation */
+ return 1;
+ }
+ /* If first byte begins with binary 110 it is two byte encoding*/
+ else if ((c & 0xE0) == 0xC0) {
+ /* check we have at least two bytes */
+ if (length < 2) unicode_len = UNICODE_ERROR_CHARACTERS_MISSING;
+ /* check second byte starts with binary 10 */
+ else if (((*(p_read + 1)) & 0xC0) != 0x80) unicode_len = UNICODE_ERROR_INVALID_ENCODING;
+ else {
+ unicode_len = 2;
+ /* compute character number */
+ d = ((c & 0x1F) << 6) | (*(p_read + 1) & 0x3F);
+ }
+ }
+ /* If first byte begins with binary 1110 it is three byte encoding */
+ else if ((c & 0xF0) == 0xE0) {
+ /* check we have at least three bytes */
+ if (length < 3) unicode_len = UNICODE_ERROR_CHARACTERS_MISSING;
+ /* check second byte starts with binary 10 */
+ else if (((*(p_read + 1)) & 0xC0) != 0x80) unicode_len = UNICODE_ERROR_INVALID_ENCODING;
+ /* check third byte starts with binary 10 */
+ else if (((*(p_read + 2)) & 0xC0) != 0x80) unicode_len = UNICODE_ERROR_INVALID_ENCODING;
+ else {
+ unicode_len = 3;
+ /* compute character number */
+ d = ((c & 0x0F) << 12) | ((*(p_read + 1) & 0x3F) << 6) | (*(p_read + 2) & 0x3F);
+ }
+ }
+ /* If first byte begins with binary 11110 it is four byte encoding */
+ else if ((c & 0xF8) == 0xF0) {
+ /* restrict characters to UTF-8 range (U+0000 - U+10FFFF)*/
+ if (c >= 0xF5) {
+ return UNICODE_ERROR_RESTRICTED_CHARACTER;
+ }
+ /* check we have at least four bytes */
+ if (length < 4) unicode_len = UNICODE_ERROR_CHARACTERS_MISSING;
+ /* check second byte starts with binary 10 */
+ else if (((*(p_read + 1)) & 0xC0) != 0x80) unicode_len = UNICODE_ERROR_INVALID_ENCODING;
+ /* check third byte starts with binary 10 */
+ else if (((*(p_read + 2)) & 0xC0) != 0x80) unicode_len = UNICODE_ERROR_INVALID_ENCODING;
+ /* check forth byte starts with binary 10 */
+ else if (((*(p_read + 3)) & 0xC0) != 0x80) unicode_len = UNICODE_ERROR_INVALID_ENCODING;
+ else {
+ unicode_len = 4;
+ /* compute character number */
+ d = ((c & 0x07) << 18) | ((*(p_read + 1) & 0x3F) << 12) | ((*(p_read + 2) & 0x3F) < 6) | (*(p_read + 3) & 0x3F);
+ }
+ }
+ /* any other first byte is invalid (RFC 3629) */
+ else {
+ return UNICODE_ERROR_INVALID_ENCODING;
+ }
+
+ /* invalid UTF-8 character number range (RFC 3629) */
+ if ((d >= 0xD800) && (d <= 0xDFFF)) {
+ return UNICODE_ERROR_RESTRICTED_CHARACTER;
+ }
+
+ /* check for overlong */
+ if ((unicode_len == 4) && (d < 0x010000)) {
+ /* four byte could be represented with less bytes */
+ return UNICODE_ERROR_OVERLONG_CHARACTER;
+ }
+ else if ((unicode_len == 3) && (d < 0x0800)) {
+ /* three byte could be represented with less bytes */
+ return UNICODE_ERROR_OVERLONG_CHARACTER;
+ }
+ else if ((unicode_len == 2) && (d < 0x80)) {
+ /* two byte could be represented with less bytes */
+ return UNICODE_ERROR_OVERLONG_CHARACTER;
+ }
+
+ return unicode_len;
+}
+
+static int msre_op_validateUtf8Encoding_execute(modsec_rec *msr, msre_rule *rule, msre_var *var,
+ char **error_msg)
+{
+ unsigned int i, bytes_left;
+
+ bytes_left = var->value_len;
+
+ for(i = 0; i < var->value_len;) {
+ int rc = detect_utf8_character((unsigned char *)&var->value[i], bytes_left);
+
+ switch(rc) {
+ case UNICODE_ERROR_CHARACTERS_MISSING :
+ *error_msg = apr_psprintf(msr->mp, "Invalid UTF-8 encoding: "
+ "not enough bytes in character "
+ "at %s. [offset \"%d\"]", var->name, i);
+ return 1;
+ break;
+ case UNICODE_ERROR_INVALID_ENCODING :
+ *error_msg = apr_psprintf(msr->mp, "Invalid UTF-8 encoding: "
+ "invalid byte value in character "
+ "at %s. [offset \"%d\"]", var->name, i);
+ return 1;
+ break;
+ case UNICODE_ERROR_OVERLONG_CHARACTER :
+ *error_msg = apr_psprintf(msr->mp, "Invalid UTF-8 encoding: "
+ "overlong character detected "
+ "at %s. [offset \"%d\"]", var->name, i);
+ return 1;
+ break;
+ case UNICODE_ERROR_RESTRICTED_CHARACTER :
+ *error_msg = apr_psprintf(msr->mp, "Invalid UTF-8 encoding: "
+ "use of restricted character "
+ "at %s. [offset \"%d\"]", var->name, i);
+ return 1;
+ break;
+ case UNICODE_ERROR_DECODING_ERROR :
+ *error_msg = apr_psprintf(msr->mp, "Error validating UTF-8 decoding "
+ "at %s. [offset \"%d\"]", var->name, i);
+ return 1;
+ break;
+ }
+
+ if (rc <= 0) {
+ *error_msg = apr_psprintf(msr->mp, "Internal error during UTF-8 validation "
+ "at %s.", var->name);
+ return 1;
+ }
+
+ i += rc;
+ bytes_left -= rc;
+ }
+
+ return 0;
+}
+
+/* eq */
+
+static int msre_op_eq_execute(modsec_rec *msr, msre_rule *rule, msre_var *var,
+ char **error_msg)
+{
+ int left, right;
+ char *target = NULL;
+
+ if ((var->value == NULL)||(rule->op_param == NULL)) {
+ /* NULL values do not match anything. */
+ return 0;
+ }
+
+ target = apr_pstrmemdup(msr->mp, var->value, var->value_len);
+ if (target == NULL) return -1;
+ left = atoi(target);
+ right = atoi(rule->op_param);
+
+ if (left != right) {
+ /* No match. */
+ return 0;
+ }
+ else {
+ *error_msg = apr_psprintf(msr->mp, "Operator EQ matched %d at %s.", right, var->name);
+ /* Match. */
+ return 1;
+ }
+}
+
+/* gt */
+
+static int msre_op_gt_execute(modsec_rec *msr, msre_rule *rule, msre_var *var,
+ char **error_msg)
+{
+ int left, right;
+ char *target = NULL;
+
+ if ((var->value == NULL)||(rule->op_param == NULL)) {
+ /* NULL values do not match anything. */
+ return 0;
+ }
+
+ target = apr_pstrmemdup(msr->mp, var->value, var->value_len);
+ if (target == NULL) return -1;
+ left = atoi(target);
+ right = atoi(rule->op_param);
+
+ if (left <= right) {
+ /* No match. */
+ return 0;
+ }
+ else {
+ *error_msg = apr_psprintf(msr->mp, "Operator GT matched %d at %s.", right, var->name);
+ /* Match. */
+ return 1;
+ }
+}
+
+/* lt */
+
+static int msre_op_lt_execute(modsec_rec *msr, msre_rule *rule, msre_var *var,
+ char **error_msg)
+{
+ int left, right;
+ char *target = NULL;
+
+ if ((var->value == NULL)||(rule->op_param == NULL)) {
+ /* NULL values do not match anything. */
+ return 0;
+ }
+
+ target = apr_pstrmemdup(msr->mp, var->value, var->value_len);
+ if (target == NULL) return -1;
+ left = atoi(target);
+ right = atoi(rule->op_param);
+
+ if (left >= right) {
+ /* No match. */
+ return 0;
+ }
+ else {
+ *error_msg = apr_psprintf(msr->mp, "Operator LT matched %d at %s.", right, var->name);
+ /* Match. */
+ return 1;
+ }
+}
+
+/* ge */
+
+static int msre_op_ge_execute(modsec_rec *msr, msre_rule *rule, msre_var *var,
+ char **error_msg)
+{
+ int left, right;
+ char *target = NULL;
+
+ if ((var->value == NULL)||(rule->op_param == NULL)) {
+ /* NULL values do not match anything. */
+ return 0;
+ }
+
+ target = apr_pstrmemdup(msr->mp, var->value, var->value_len);
+ if (target == NULL) return -1;
+ left = atoi(target);
+ right = atoi(rule->op_param);
+
+ if (left < right) {
+ /* No match. */
+ return 0;
+ }
+ else {
+ *error_msg = apr_psprintf(msr->mp, "Operator GE matched %d at %s.", right, var->name);
+ /* Match. */
+ return 1;
+ }
+}
+
+/* le */
+
+static int msre_op_le_execute(modsec_rec *msr, msre_rule *rule, msre_var *var,
+ char **error_msg)
+{
+ int left, right;
+ char *target = NULL;
+
+ if ((var->value == NULL)||(rule->op_param == NULL)) {
+ /* NULL values do not match anything. */
+ return 0;
+ }
+
+ target = apr_pstrmemdup(msr->mp, var->value, var->value_len);
+ if (target == NULL) return -1;
+ left = atoi(target);
+ right = atoi(rule->op_param);
+
+ if (left > right) {
+ /* No match. */
+ return 0;
+ }
+ else {
+ *error_msg = apr_psprintf(msr->mp, "Operator LE matched %d at %s.", right, var->name);
+ /* Match. */
+ return 1;
+ }
+}
+
+/* ------------------------------------------------------------------------------- */
+
+/**
+ *
+ */
+void msre_engine_register_default_operators(msre_engine *engine) {
+ /* unconditionalMatch */
+ msre_engine_op_register(engine,
+ "unconditionalMatch",
+ NULL,
+ msre_op_unconditionalmatch_execute
+ );
+
+ /* noMatch */
+ msre_engine_op_register(engine,
+ "noMatch",
+ NULL,
+ msre_op_nomatch_execute
+ );
+
+ /* rx */
+ msre_engine_op_register(engine,
+ "rx",
+ msre_op_rx_param_init,
+ msre_op_rx_execute
+ );
+
+ /* pm */
+ msre_engine_op_register(engine,
+ "pm",
+ msre_op_pm_param_init,
+ msre_op_pm_execute
+ );
+
+ /* pmFromFile */
+ msre_engine_op_register(engine,
+ "pmFromFile",
+ msre_op_pmFromFile_param_init,
+ msre_op_pm_execute
+ );
+
+ /* within */
+ msre_engine_op_register(engine,
+ "within",
+ NULL, /* ENH init function to flag var substitution */
+ msre_op_within_execute
+ );
+
+ /* contains */
+ msre_engine_op_register(engine,
+ "contains",
+ NULL, /* ENH init function to flag var substitution */
+ msre_op_contains_execute
+ );
+
+ /* containsWord */
+ msre_engine_op_register(engine,
+ "containsWord",
+ NULL, /* ENH init function to flag var substitution */
+ msre_op_containsWord_execute
+ );
+
+ /* is */
+ msre_engine_op_register(engine,
+ "streq",
+ NULL, /* ENH init function to flag var substitution */
+ msre_op_streq_execute
+ );
+
+ /* beginsWith */
+ msre_engine_op_register(engine,
+ "beginsWith",
+ NULL, /* ENH init function to flag var substitution */
+ msre_op_beginsWith_execute
+ );
+
+ /* endsWith */
+ msre_engine_op_register(engine,
+ "endsWith",
+ NULL, /* ENH init function to flag var substitution */
+ msre_op_endsWith_execute
+ );
+
+ /* m */
+ msre_engine_op_register(engine,
+ "m",
+ msre_op_m_param_init,
+ msre_op_m_execute
+ );
+
+ /* validateDTD */
+ msre_engine_op_register(engine,
+ "validateDTD",
+ msre_op_validateDTD_init,
+ msre_op_validateDTD_execute
+ );
+
+ /* validateSchema */
+ msre_engine_op_register(engine,
+ "validateSchema",
+ msre_op_validateSchema_init,
+ msre_op_validateSchema_execute
+ );
+
+ /* verifyCC */
+ msre_engine_op_register(engine,
+ "verifyCC",
+ msre_op_verifyCC_init,
+ msre_op_verifyCC_execute
+ );
+
+ /* geoLookup */
+ msre_engine_op_register(engine,
+ "geoLookup",
+ NULL,
+ msre_op_geoLookup_execute
+ );
+
+ /* rbl */
+ msre_engine_op_register(engine,
+ "rbl",
+ NULL, /* ENH init function to validate DNS server */
+ msre_op_rbl_execute
+ );
+
+ /* inspectFile */
+ msre_engine_op_register(engine,
+ "inspectFile",
+ msre_op_inspectFile_init,
+ msre_op_inspectFile_execute
+ );
+
+ /* validateByteRange */
+ msre_engine_op_register(engine,
+ "validateByteRange",
+ msre_op_validateByteRange_init,
+ msre_op_validateByteRange_execute
+ );
+
+ /* validateUrlEncoding */
+ msre_engine_op_register(engine,
+ "validateUrlEncoding",
+ NULL,
+ msre_op_validateUrlEncoding_execute
+ );
+
+ /* validateUtf8Encoding */
+ msre_engine_op_register(engine,
+ "validateUtf8Encoding",
+ NULL,
+ msre_op_validateUtf8Encoding_execute
+ );
+
+ /* eq */
+ msre_engine_op_register(engine,
+ "eq",
+ NULL,
+ msre_op_eq_execute
+ );
+
+ /* gt */
+ msre_engine_op_register(engine,
+ "gt",
+ NULL,
+ msre_op_gt_execute
+ );
+
+ /* lt */
+ msre_engine_op_register(engine,
+ "lt",
+ NULL,
+ msre_op_lt_execute
+ );
+
+ /* le */
+ msre_engine_op_register(engine,
+ "le",
+ NULL,
+ msre_op_le_execute
+ );
+
+ /* ge */
+ msre_engine_op_register(engine,
+ "ge",
+ NULL,
+ msre_op_ge_execute
+ );
+}
--- /dev/null
+/*
+ * ModSecurity for Apache 2.x, http://www.modsecurity.org/
+ * Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
+ *
+ * This product is released under the terms of the General Public Licence,
+ * version 2 (GPLv2). Please refer to the file LICENSE (included with this
+ * distribution) which contains the complete text of the licence.
+ *
+ * There are special exceptions to the terms and conditions of the GPL
+ * as it is applied to this software. View the full text of the exception in
+ * file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
+ * distribution.
+ *
+ * If any of the files related to licensing are missing or if you have any
+ * other questions related to licensing please contact Breach Security, Inc.
+ * directly using the email address support@breach.com.
+ *
+ */
+#include <ctype.h>
+
+#include "apr_md5.h"
+#include "apr_sha1.h"
+#include "apr_base64.h"
+
+#include "re.h"
+#include "msc_util.h"
+
+/* lowercase */
+
+static int msre_fn_lowercase_execute(apr_pool_t *mptmp, unsigned char *input,
+ long int input_len, char **rval, long int *rval_len)
+{
+ long int i;
+ int changed = 0;
+
+ if (rval == NULL) return -1;
+ *rval = NULL;
+
+ i = 0;
+ while(i < input_len) {
+ int x = input[i];
+ input[i] = tolower(x);
+ if (x != input[i]) changed = 1;
+ i++;
+ }
+
+ *rval = (char *)input;
+ *rval_len = input_len;
+
+ return changed;
+}
+
+/* trimLeft */
+
+static int msre_fn_trimLeft_execute(apr_pool_t *mptmp, unsigned char *input,
+ long int input_len, char **rval, long int *rval_len)
+{
+ long int i;
+
+ *rval = (char *)input;
+ for (i = 0; i < input_len; i++) {
+ if (isspace(**rval) == 0) {
+ break;
+ }
+ (*rval)++;
+ }
+
+ *rval_len = input_len - i;
+
+ return (*rval_len == input_len ? 0 : 1);
+}
+
+/* trimRight */
+
+static int msre_fn_trimRight_execute(apr_pool_t *mptmp, unsigned char *input,
+ long int input_len, char **rval, long int *rval_len)
+{
+ long int i;
+
+ *rval = (char *)input;
+ for (i = input_len - 1; i >= 0; i--) {
+ if (isspace((*rval)[i]) == 0) {
+ break;
+ }
+ (*rval)[i] = '\0';
+ }
+
+ *rval_len = i + 1;
+
+ return (*rval_len == input_len ? 0 : 1);
+}
+
+/* trim */
+
+static int msre_fn_trim_execute(apr_pool_t *mptmp, unsigned char *input,
+ long int input_len, char **rval, long int *rval_len)
+{
+ int rc = 0;
+
+ rc = msre_fn_trimLeft_execute(mptmp, input, input_len, rval, rval_len);
+ if (rc == 1) {
+ rc = msre_fn_trimRight_execute(mptmp, (unsigned char *)*rval, *rval_len, rval, rval_len);
+ }
+ else {
+ rc = msre_fn_trimRight_execute(mptmp, input, input_len, rval, rval_len);
+ }
+
+ return (*rval_len == input_len ? 0 : 1);
+}
+
+/* removeNulls */
+
+static int msre_fn_removeNulls_execute(apr_pool_t *mptmp, unsigned char *input,
+ long int input_len, char **rval, long int *rval_len)
+{
+ long int i, j;
+ int changed = 0;
+
+ i = j = 0;
+ while(i < input_len) {
+ if (input[i] == '\0') {
+ changed = 1;
+ } else {
+ input[j] = input[i];
+ j++;
+ }
+ i++;
+ }
+
+ *rval = (char *)input;
+ *rval_len = j;
+
+ return changed;
+}
+
+/* replaceNulls */
+
+static int msre_fn_replaceNulls_execute(apr_pool_t *mptmp, unsigned char *input,
+ long int input_len, char **rval, long int *rval_len)
+{
+ long int i;
+ int changed = 0;
+
+ if (rval == NULL) return -1;
+ *rval = NULL;
+
+ i = 0;
+ while(i < input_len) {
+ if (input[i] == '\0') {
+ changed = 1;
+ input[i] = ' ';
+ }
+ i++;
+ }
+
+ *rval = (char *)input;
+ *rval_len = input_len;
+
+ return changed;
+}
+
+/* compressWhitespace */
+
+static int msre_fn_compressWhitespace_execute(apr_pool_t *mptmp, unsigned char *input,
+ long int input_len, char **rval, long int *rval_len)
+{
+ long int i, j, count;
+ int changed = 0;
+ int inwhitespace = 0;
+
+ i = j = count = 0;
+ while(i < input_len) {
+ if (isspace(input[i])||(input[i] == NBSP)) {
+ if (inwhitespace) changed = 1;
+ inwhitespace = 1;
+ count++;
+ } else {
+ inwhitespace = 0;
+ if (count) {
+ input[j] = ' ';
+ count = 0;
+ j++;
+ }
+ input[j] = input[i];
+ j++;
+ }
+ i++;
+ }
+
+ if (count) {
+ input[j] = ' ';
+ j++;
+ }
+
+ *rval = (char *)input;
+ *rval_len = j;
+
+ return changed;
+}
+
+/* cssDecode */
+
+static int msre_fn_cssDecode_execute(apr_pool_t *mptmp, unsigned char *input,
+ long int input_len, char **rval, long int *rval_len)
+{
+ long int length;
+
+ length = css_decode_inplace(input, input_len);
+ *rval = (char *)input;
+ *rval_len = length;
+
+ return (*rval_len == input_len ? 0 : 1);
+}
+
+/* removeWhitespace */
+
+static int msre_fn_removeWhitespace_execute(apr_pool_t *mptmp, unsigned char *input,
+ long int input_len, char **rval, long int *rval_len)
+{
+ long int i, j;
+ int changed = 0;
+
+ i = j = 0;
+ while(i < input_len) {
+ if (isspace(input[i])||(input[i] == NBSP)) {
+ /* do nothing */
+ changed = 1;
+ } else {
+ input[j] = input[i];
+ j++;
+ }
+ i++;
+ }
+
+ *rval = (char *)input;
+ *rval_len = j;
+
+ return changed;
+}
+
+/* replaceComments */
+
+static int msre_fn_replaceComments_execute(apr_pool_t *mptmp, unsigned char *input,
+ long int input_len, char **rval, long int *rval_len)
+{
+ long int i, j, incomment;
+ int changed = 0;
+
+ i = j = incomment = 0;
+ while(i < input_len) {
+ if (incomment == 0) {
+ if ((input[i] == '/')&&(i + 1 < input_len)&&(input[i + 1] == '*')) {
+ changed = 1;
+ incomment = 1;
+ i += 2;
+ } else {
+ input[j] = input[i];
+ i++;
+ j++;
+ }
+ } else {
+ if ((input[i] == '*')&&(i + 1 < input_len)&&(input[i + 1] == '/')) {
+ incomment = 0;
+ i += 2;
+ input[j] = ' ';
+ j++;
+ } else {
+ i++;
+ }
+ }
+ }
+
+ if (incomment) {
+ input[j++] = ' ';
+ }
+
+ *rval = (char *)input;
+ *rval_len = j;
+
+ return changed;
+}
+
+/* jsDecode */
+
+static int msre_fn_jsDecode_execute(apr_pool_t *mptmp, unsigned char *input,
+ long int input_len, char **rval, long int *rval_len)
+{
+ long int length;
+
+ length = js_decode_nonstrict_inplace(input, input_len);
+ *rval = (char *)input;
+ *rval_len = length;
+
+ return (*rval_len == input_len ? 0 : 1);
+}
+
+/* urlDecode */
+
+static int msre_fn_urlDecode_execute(apr_pool_t *mptmp, unsigned char *input,
+ long int input_len, char **rval, long int *rval_len)
+{
+ long int length;
+ int invalid_count;
+ int changed;
+
+ length = urldecode_nonstrict_inplace_ex(input, input_len, &invalid_count, &changed);
+ *rval = (char *)input;
+ *rval_len = length;
+
+ return changed;
+}
+
+/* urlDecodeUni */
+
+static int msre_fn_urlDecodeUni_execute(apr_pool_t *mptmp, unsigned char *input,
+ long int input_len, char **rval, long int *rval_len)
+{
+ long int length;
+ int changed;
+
+ length = urldecode_uni_nonstrict_inplace_ex(input, input_len, &changed);
+ *rval = (char *)input;
+ *rval_len = length;
+
+ return changed;
+}
+
+/* urlEncode */
+
+static int msre_fn_urlEncode_execute(apr_pool_t *mptmp, unsigned char *input,
+ long int input_len, char **rval, long int *rval_len)
+{
+ int changed;
+
+ *rval = url_encode(mptmp, (char *)input, input_len, &changed);
+ *rval_len = strlen(*rval);
+
+ return changed;
+}
+
+/* base64Encode */
+
+static int msre_fn_base64Encode_execute(apr_pool_t *mptmp, unsigned char *input,
+ long int input_len, char **rval, long int *rval_len)
+{
+ *rval_len = apr_base64_encode_len(input_len); /* returns len with NULL byte included */
+ *rval = apr_palloc(mptmp, *rval_len);
+ apr_base64_encode(*rval, (const char *)input, input_len);
+ (*rval_len)--;
+
+ return *rval_len ? 1 : 0;
+}
+
+/* base64Decode */
+
+static int msre_fn_base64Decode_execute(apr_pool_t *mptmp, unsigned char *input,
+ long int input_len, char **rval, long int *rval_len)
+{
+ *rval_len = apr_base64_decode_len((const char *)input); /* returns len with NULL byte included */
+ *rval = apr_palloc(mptmp, *rval_len);
+ *rval_len = apr_base64_decode(*rval, (const char *)input);
+
+ return *rval_len ? 1 : 0;
+}
+
+/* length */
+
+static int msre_fn_length_execute(apr_pool_t *mptmp, unsigned char *input,
+ long int input_len, char **rval, long int *rval_len)
+{
+ *rval = apr_psprintf(mptmp, "%ld", input_len);
+ *rval_len = strlen(*rval);
+
+ return 1;
+}
+
+/* md5 */
+
+static int msre_fn_md5_execute(apr_pool_t *mptmp, unsigned char *input,
+ long int input_len, char **rval, long int *rval_len)
+{
+ unsigned char digest[APR_MD5_DIGESTSIZE];
+
+ apr_md5(digest, input, input_len);
+
+ *rval_len = APR_MD5_DIGESTSIZE;
+ *rval = apr_pstrmemdup(mptmp, (const char *)digest, APR_MD5_DIGESTSIZE);
+
+ return 1;
+}
+
+/* sha1 */
+
+static int msre_fn_sha1_execute(apr_pool_t *mptmp, unsigned char *input,
+ long int input_len, char **rval, long int *rval_len)
+{
+ unsigned char digest[APR_SHA1_DIGESTSIZE];
+ apr_sha1_ctx_t context;
+
+ apr_sha1_init(&context);
+ apr_sha1_update(&context, (const char *)input, input_len);
+ apr_sha1_final(digest, &context);
+
+ *rval_len = APR_SHA1_DIGESTSIZE;
+ *rval = apr_pstrmemdup(mptmp, (const char *)digest, APR_SHA1_DIGESTSIZE);
+
+ return 1;
+}
+
+/* hexDecode */
+
+static int msre_fn_hexDecode_execute(apr_pool_t *mptmp, unsigned char *input,
+ long int input_len, char **rval, long int *rval_len)
+{
+ *rval_len = hex2bytes_inplace(input, input_len);
+ *rval = (char *)input;
+
+ return 1;
+}
+
+/* hexEncode */
+
+static int msre_fn_hexEncode_execute(apr_pool_t *mptmp, unsigned char *input,
+ long int input_len, char **rval, long int *rval_len)
+{
+ *rval = bytes2hex(mptmp, input, input_len);
+ *rval_len = strlen(*rval);
+
+ return 1;
+}
+
+/* htmlEntityDecode */
+
+static int msre_fn_htmlEntityDecode_execute(apr_pool_t *mptmp, unsigned char *input,
+ long int input_len, char **rval, long int *rval_len)
+{
+ *rval_len = html_entities_decode_inplace(mptmp, input, input_len);
+ *rval = (char *)input;
+
+ return (*rval_len == input_len ? 0 : 1);
+}
+
+/* escapeSeqDecode */
+
+static int msre_fn_escapeSeqDecode_execute(apr_pool_t *mptmp, unsigned char *input,
+ long int input_len, char **rval, long int *rval_len)
+{
+ *rval_len = ansi_c_sequences_decode_inplace(input, input_len);
+ *rval = (char *)input;
+
+ return (*rval_len == input_len ? 0 : 1);
+}
+
+/* normalisePath */
+
+static int msre_fn_normalisePath_execute(apr_pool_t *mptmp, unsigned char *input,
+ long int input_len, char **rval, long int *rval_len)
+{
+ int changed;
+
+ *rval_len = normalise_path_inplace(input, input_len, 0, &changed);
+ *rval = (char *)input;
+
+ return changed;
+}
+
+/* normalisePathWin */
+
+static int msre_fn_normalisePathWin_execute(apr_pool_t *mptmp, unsigned char *input,
+ long int input_len, char **rval, long int *rval_len)
+{
+ int changed;
+
+ *rval_len = normalise_path_inplace(input, input_len, 1, &changed);
+ *rval = (char *)input;
+
+ return changed;
+}
+
+/* parityEven7bit */
+
+static int msre_fn_parityEven7bit_execute(apr_pool_t *mptmp, unsigned char *input,
+ long int input_len, char **rval, long int *rval_len)
+{
+ long int i;
+ int changed = 0;
+
+ if (rval == NULL) return -1;
+ *rval = NULL;
+
+ i = 0;
+ while(i < input_len) {
+ unsigned int x = input[i];
+
+ input[i] ^= input[i] >> 4;
+ input[i] &= 0xf;
+
+ if ((0x6996 >> input[i]) & 1) {
+ input[i] = x | 0x80;
+ }
+ else {
+ input[i] = x & 0x7f;
+ }
+
+ if (x != input[i]) changed = 1;
+ i++;
+ }
+
+ *rval = (char *)input;
+ *rval_len = input_len;
+
+ return changed;
+}
+
+/* parityZero7bit */
+
+static int msre_fn_parityZero7bit_execute(apr_pool_t *mptmp, unsigned char *input,
+ long int input_len, char **rval, long int *rval_len)
+{
+ long int i;
+ int changed = 0;
+
+ if (rval == NULL) return -1;
+ *rval = NULL;
+
+ i = 0;
+ while(i < input_len) {
+ unsigned char c = input[i];
+ input[i] &= 0x7f;
+ if (c != input[i]) changed = 1;
+ i++;
+ }
+
+ *rval = (char *)input;
+ *rval_len = input_len;
+
+ return changed;
+}
+
+/* parityOdd7bit */
+
+static int msre_fn_parityOdd7bit_execute(apr_pool_t *mptmp, unsigned char *input,
+ long int input_len, char **rval, long int *rval_len)
+{
+ long int i;
+ int changed = 0;
+
+ if (rval == NULL) return -1;
+ *rval = NULL;
+
+ i = 0;
+ while(i < input_len) {
+ unsigned int x = input[i];
+
+ input[i] ^= input[i] >> 4;
+ input[i] &= 0xf;
+
+ if ((0x6996 >> input[i]) & 1) {
+ input[i] = x & 0x7f;
+ }
+ else {
+ input[i] = x | 0x80;
+ }
+
+ if (x != input[i]) changed = 1;
+ i++;
+ }
+
+ *rval = (char *)input;
+ *rval_len = input_len;
+
+ return changed;
+}
+
+/* ------------------------------------------------------------------------------ */
+
+/**
+ * Registers one transformation function with the engine.
+ */
+void msre_engine_tfn_register(msre_engine *engine, const char *name,
+ fn_tfn_execute_t execute)
+{
+ msre_tfn_metadata *metadata = (msre_tfn_metadata *)apr_pcalloc(engine->mp,
+ sizeof(msre_tfn_metadata));
+ if (metadata == NULL) return;
+
+ metadata->name = name;
+ metadata->execute = execute;
+
+ apr_table_setn(engine->tfns, name, (void *)metadata);
+}
+
+/**
+ * Returns transformation function metadata given a name.
+ */
+msre_tfn_metadata *msre_engine_tfn_resolve(msre_engine *engine, const char *name) {
+ return (msre_tfn_metadata *)apr_table_get(engine->tfns, name);
+}
+
+/**
+ * Register the default transformation functions.
+ */
+void msre_engine_register_default_tfns(msre_engine *engine) {
+
+ /* none */
+ msre_engine_tfn_register(engine,
+ "none",
+ NULL
+ );
+
+ /* base64Decode */
+ msre_engine_tfn_register(engine,
+ "base64Decode",
+ msre_fn_base64Decode_execute
+ );
+
+ /* base64Encode */
+ msre_engine_tfn_register(engine,
+ "base64Encode",
+ msre_fn_base64Encode_execute
+ );
+
+ /* compressWhitespace */
+ msre_engine_tfn_register(engine,
+ "compressWhitespace",
+ msre_fn_compressWhitespace_execute
+ );
+
+ /* cssDecode */
+ msre_engine_tfn_register(engine,
+ "cssDecode",
+ msre_fn_cssDecode_execute
+ );
+
+ /* escapeSeqDecode */
+ msre_engine_tfn_register(engine,
+ "escapeSeqDecode",
+ msre_fn_escapeSeqDecode_execute
+ );
+
+ /* hexDecode */
+ msre_engine_tfn_register(engine,
+ "hexDecode",
+ msre_fn_hexDecode_execute
+ );
+
+ /* hexEncode */
+ msre_engine_tfn_register(engine,
+ "hexEncode",
+ msre_fn_hexEncode_execute
+ );
+
+ /* htmlEntityDecode */
+ msre_engine_tfn_register(engine,
+ "htmlEntityDecode",
+ msre_fn_htmlEntityDecode_execute
+ );
+
+ /* jsDecode */
+ msre_engine_tfn_register(engine,
+ "jsDecode",
+ msre_fn_jsDecode_execute
+ );
+
+ /* length */
+ msre_engine_tfn_register(engine,
+ "length",
+ msre_fn_length_execute
+ );
+
+ /* lowercase */
+ msre_engine_tfn_register(engine,
+ "lowercase",
+ msre_fn_lowercase_execute
+ );
+
+ /* md5 */
+ msre_engine_tfn_register(engine,
+ "md5",
+ msre_fn_md5_execute
+ );
+
+ /* normalisePath */
+ msre_engine_tfn_register(engine,
+ "normalisePath",
+ msre_fn_normalisePath_execute
+ );
+
+ /* normalisePathWin */
+ msre_engine_tfn_register(engine,
+ "normalisePathWin",
+ msre_fn_normalisePathWin_execute
+ );
+
+ /* parityEven7bit */
+ msre_engine_tfn_register(engine,
+ "parityEven7bit",
+ msre_fn_parityEven7bit_execute
+ );
+
+ /* parityZero7bit */
+ msre_engine_tfn_register(engine,
+ "parityZero7bit",
+ msre_fn_parityZero7bit_execute
+ );
+
+ /* parityOdd7bit */
+ msre_engine_tfn_register(engine,
+ "parityOdd7bit",
+ msre_fn_parityOdd7bit_execute
+ );
+
+ /* removeWhitespace */
+ msre_engine_tfn_register(engine,
+ "removeWhitespace",
+ msre_fn_removeWhitespace_execute
+ );
+
+ /* removeNulls */
+ msre_engine_tfn_register(engine,
+ "removeNulls",
+ msre_fn_removeNulls_execute
+ );
+
+ /* replaceNulls */
+ msre_engine_tfn_register(engine,
+ "replaceNulls",
+ msre_fn_replaceNulls_execute
+ );
+
+ /* replaceComments */
+ msre_engine_tfn_register(engine,
+ "replaceComments",
+ msre_fn_replaceComments_execute
+ );
+
+ /* sha1 */
+ msre_engine_tfn_register(engine,
+ "sha1",
+ msre_fn_sha1_execute
+ );
+
+ /* trim */
+ msre_engine_tfn_register(engine,
+ "trim",
+ msre_fn_trim_execute
+ );
+
+ /* trimLeft */
+ msre_engine_tfn_register(engine,
+ "trimLeft",
+ msre_fn_trimLeft_execute
+ );
+
+ /* trimRight */
+ msre_engine_tfn_register(engine,
+ "trimRight",
+ msre_fn_trimRight_execute
+ );
+
+ /* urlDecode */
+ msre_engine_tfn_register(engine,
+ "urlDecode",
+ msre_fn_urlDecode_execute
+ );
+
+ /* urlDecodeUni */
+ msre_engine_tfn_register(engine,
+ "urlDecodeUni",
+ msre_fn_urlDecodeUni_execute
+ );
+
+ /* urlEncode */
+ msre_engine_tfn_register(engine,
+ "urlEncode",
+ msre_fn_urlEncode_execute
+ );
+}
--- /dev/null
+/*
+ * ModSecurity for Apache 2.x, http://www.modsecurity.org/
+ * Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
+ *
+ * This product is released under the terms of the General Public Licence,
+ * version 2 (GPLv2). Please refer to the file LICENSE (included with this
+ * distribution) which contains the complete text of the licence.
+ *
+ * There are special exceptions to the terms and conditions of the GPL
+ * as it is applied to this software. View the full text of the exception in
+ * file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
+ * distribution.
+ *
+ * If any of the files related to licensing are missing or if you have any
+ * other questions related to licensing please contact Breach Security, Inc.
+ * directly using the email address support@breach.com.
+ *
+ */
+#include "http_core.h"
+
+#include "modsecurity.h"
+#include "apache2.h"
+#include "re.h"
+#include "msc_util.h"
+
+#include "libxml/xpathInternals.h"
+
+/**
+ * Generates a variable from a string and a length.
+ */
+static int var_simple_generate_ex(msre_var *var, apr_table_t *vartab, apr_pool_t *mptmp,
+ const char *value, int value_len)
+{
+ msre_var *rvar = NULL;
+
+ if (value == NULL) return 0;
+
+ rvar = apr_pmemdup(mptmp, var, sizeof(msre_var));
+ rvar->value = value;
+ rvar->value_len = value_len;
+ apr_table_addn(vartab, rvar->name, (void *)rvar);
+
+ return 1;
+}
+
+/**
+ * Generates a variable from a NULL-terminated string.
+ */
+static int var_simple_generate(msre_var *var, apr_table_t *vartab, apr_pool_t *mptmp,
+ const char *value)
+{
+ if (value == NULL) return 0;
+ return var_simple_generate_ex(var, vartab, mptmp, value, strlen(value));
+}
+
+/**
+ * Validate that a target parameter is valid. We only need to take
+ * care of the case when the parameter is a regular expression.
+ */
+static char *var_generic_list_validate(msre_ruleset *ruleset, msre_var *var) {
+ /* It's OK if there's no parameter. */
+ if (var->param == NULL) return NULL;
+
+ /* Is it a regular expression? */
+ if ((strlen(var->param) > 2)&&(var->param[0] == '/')
+ &&(var->param[strlen(var->param) - 1] == '/'))
+ { /* Regex. */
+ msc_regex_t *regex = NULL;
+ const char *errptr = NULL;
+ const char *pattern = NULL;
+ int erroffset;
+
+ pattern = apr_pstrmemdup(ruleset->mp, var->param + 1, strlen(var->param + 1) - 1);
+ if (pattern == NULL) return FATAL_ERROR;
+
+ regex = msc_pregcomp(ruleset->mp, pattern, PCRE_DOTALL | PCRE_CASELESS | PCRE_DOLLAR_ENDONLY, &errptr, &erroffset);
+ if (regex == NULL) {
+ return apr_psprintf(ruleset->mp, "Error compiling pattern (offset %d): %s",
+ erroffset, errptr);
+ }
+
+ /* Store the compiled regex for later. */
+ var->param_data = regex;
+ }
+
+ /* Simple string */
+ return NULL;
+}
+
+/* Custom parameter validation functions */
+
+/* ARGS */
+
+static int var_args_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ const apr_array_header_t *arr = NULL;
+ const apr_table_entry_t *te = NULL;
+ int i, count = 0;
+
+ /* Loop through the arguments. */
+ arr = apr_table_elts(msr->arguments);
+ te = (apr_table_entry_t *)arr->elts;
+ for (i = 0; i < arr->nelts; i++) {
+ msc_arg *arg = (msc_arg *)te[i].val;
+ int match = 0;
+
+ /* Figure out if we want to include this argument. */
+ if (var->param == NULL) match = 1; /* Unconditional inclusion. */
+ else {
+ if (var->param_data != NULL) { /* Regex. */
+ char *my_error_msg = NULL;
+ /* Run the regex against the argument name. */
+ if (!(msc_regexec((msc_regex_t *)var->param_data, arg->name,
+ arg->name_len, &my_error_msg) == PCRE_ERROR_NOMATCH)) match = 1;
+ } else { /* Simple comparison. */
+ if (strcasecmp(arg->name, var->param) == 0) match = 1;
+ }
+ }
+
+ /* If we had a match add this argument to the collection. */
+ if (match) {
+ msre_var *rvar = apr_pmemdup(mptmp, var, sizeof(msre_var));
+
+ rvar->value = arg->value;
+ rvar->value_len = arg->value_len;
+ rvar->name = apr_psprintf(mptmp, "ARGS:%s", log_escape_nq_ex(mptmp, arg->name, arg->name_len));
+ apr_table_addn(vartab, rvar->name, (void *)rvar);
+
+ count++;
+ }
+ }
+
+ return count;
+}
+
+/* ARGS_COMBINED_SIZE */
+
+static int var_args_combined_size_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ const apr_array_header_t *arr = NULL;
+ const apr_table_entry_t *te = NULL;
+ unsigned int combined_size = 0;
+ int i;
+ msre_var *rvar = NULL;
+
+ arr = apr_table_elts(msr->arguments);
+ te = (apr_table_entry_t *)arr->elts;
+ for (i = 0; i < arr->nelts; i++) {
+ msc_arg *arg = (msc_arg *)te[i].val;
+ combined_size += arg->name_len;
+ combined_size += arg->value_len;
+ }
+
+ rvar = apr_pmemdup(mptmp, var, sizeof(msre_var));
+ rvar->value = apr_psprintf(mptmp, "%u", combined_size);
+ rvar->value_len = strlen(rvar->value);
+ apr_table_addn(vartab, rvar->name, (void *)rvar);
+
+ return 1;
+}
+
+/* ARGS_NAMES */
+
+static int var_args_names_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ const apr_array_header_t *arr = NULL;
+ const apr_table_entry_t *te = NULL;
+ int i, count = 0;
+
+ arr = apr_table_elts(msr->arguments);
+ te = (apr_table_entry_t *)arr->elts;
+ for (i = 0; i < arr->nelts; i++) {
+ msc_arg *arg = (msc_arg *)te[i].val;
+ int match = 0;
+
+ /* Figure out if we want to include this variable. */
+ if (var->param == NULL) match = 1; /* Unconditional inclusion. */
+ else {
+ if (var->param_data != NULL) { /* Regex. */
+ char *my_error_msg = NULL;
+ if (!(msc_regexec((msc_regex_t *)var->param_data, arg->name,
+ arg->name_len, &my_error_msg) == PCRE_ERROR_NOMATCH)) match = 1;
+ } else { /* Simple comparison. */
+ if (strcasecmp(arg->name, var->param) == 0) match = 1;
+ }
+ }
+
+ /* If we had a match add this argument to the collection. */
+ if (match) {
+ msre_var *rvar = apr_pmemdup(mptmp, var, sizeof(msre_var));
+
+ rvar->value = arg->name;
+ rvar->value_len = arg->name_len;
+ rvar->name = apr_psprintf(mptmp, "ARGS_NAMES:%s", log_escape_nq_ex(mptmp, arg->name, arg->name_len));
+ apr_table_addn(vartab, rvar->name, (void *)rvar);
+
+ count++;
+ }
+ }
+
+ return count;
+}
+
+/* ARGS_GET */
+
+static int var_args_get_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ const apr_array_header_t *arr = NULL;
+ const apr_table_entry_t *te = NULL;
+ int i, count = 0;
+
+ /* Loop through the arguments. */
+ arr = apr_table_elts(msr->arguments);
+ te = (apr_table_entry_t *)arr->elts;
+ for (i = 0; i < arr->nelts; i++) {
+ msc_arg *arg = (msc_arg *)te[i].val;
+ int match = 0;
+
+ /* Only QUERY_STRING arguments */
+ if (strcmp("QUERY_STRING", arg->origin) != 0) continue;
+
+ /* Figure out if we want to include this argument. */
+ if (var->param == NULL) match = 1; /* Unconditional inclusion. */
+ else {
+ if (var->param_data != NULL) { /* Regex. */
+ char *my_error_msg = NULL;
+ /* Run the regex against the argument name. */
+ if (!(msc_regexec((msc_regex_t *)var->param_data, arg->name,
+ arg->name_len, &my_error_msg) == PCRE_ERROR_NOMATCH)) match = 1;
+ } else { /* Simple comparison. */
+ if (strcasecmp(arg->name, var->param) == 0) match = 1;
+ }
+ }
+
+ /* If we had a match add this argument to the collection. */
+ if (match) {
+ msre_var *rvar = apr_pmemdup(mptmp, var, sizeof(msre_var));
+
+ rvar->value = arg->value;
+ rvar->value_len = arg->value_len;
+ rvar->name = apr_psprintf(mptmp, "ARGS_GET:%s", log_escape_nq_ex(mptmp, arg->name, arg->name_len));
+ apr_table_addn(vartab, rvar->name, (void *)rvar);
+
+ count++;
+ }
+ }
+
+ return count;
+}
+
+/* ARGS_GET_NAMES */
+
+static int var_args_get_names_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ const apr_array_header_t *arr = NULL;
+ const apr_table_entry_t *te = NULL;
+ int i, count = 0;
+
+ arr = apr_table_elts(msr->arguments);
+ te = (apr_table_entry_t *)arr->elts;
+ for (i = 0; i < arr->nelts; i++) {
+ msc_arg *arg = (msc_arg *)te[i].val;
+ int match = 0;
+
+ /* Only QUERY_STRING arguments */
+ if (strcmp("QUERY_STRING", arg->origin) != 0) continue;
+
+ /* Figure out if we want to include this variable. */
+ if (var->param == NULL) match = 1; /* Unconditional inclusion. */
+ else {
+ if (var->param_data != NULL) { /* Regex. */
+ char *my_error_msg = NULL;
+ if (!(msc_regexec((msc_regex_t *)var->param_data, arg->name,
+ arg->name_len, &my_error_msg) == PCRE_ERROR_NOMATCH)) match = 1;
+ } else { /* Simple comparison. */
+ if (strcasecmp(arg->name, var->param) == 0) match = 1;
+ }
+ }
+
+ /* If we had a match add this argument to the collection. */
+ if (match) {
+ msre_var *rvar = apr_pmemdup(mptmp, var, sizeof(msre_var));
+
+ rvar->value = arg->name;
+ rvar->value_len = arg->name_len;
+ rvar->name = apr_psprintf(mptmp, "ARGS_GET_NAMES:%s", log_escape_nq_ex(mptmp, arg->name, arg->name_len));
+ apr_table_addn(vartab, rvar->name, (void *)rvar);
+
+ count++;
+ }
+ }
+
+ return count;
+}
+
+/* ARGS_POST */
+
+static int var_args_post_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ const apr_array_header_t *arr = NULL;
+ const apr_table_entry_t *te = NULL;
+ int i, count = 0;
+
+ /* Loop through the arguments. */
+ arr = apr_table_elts(msr->arguments);
+ te = (apr_table_entry_t *)arr->elts;
+ for (i = 0; i < arr->nelts; i++) {
+ msc_arg *arg = (msc_arg *)te[i].val;
+ int match = 0;
+
+ /* Only BODY arguments */
+ if (strcmp("BODY", arg->origin) != 0) continue;
+
+ /* Figure out if we want to include this argument. */
+ if (var->param == NULL) match = 1; /* Unconditional inclusion. */
+ else {
+ if (var->param_data != NULL) { /* Regex. */
+ char *my_error_msg = NULL;
+ /* Run the regex against the argument name. */
+ if (!(msc_regexec((msc_regex_t *)var->param_data, arg->name,
+ arg->name_len, &my_error_msg) == PCRE_ERROR_NOMATCH)) match = 1;
+ } else { /* Simple comparison. */
+ if (strcasecmp(arg->name, var->param) == 0) match = 1;
+ }
+ }
+
+ /* If we had a match add this argument to the collection. */
+ if (match) {
+ msre_var *rvar = apr_pmemdup(mptmp, var, sizeof(msre_var));
+
+ rvar->value = arg->value;
+ rvar->value_len = arg->value_len;
+ rvar->name = apr_psprintf(mptmp, "ARGS_POST:%s", log_escape_nq_ex(mptmp, arg->name, arg->name_len));
+ apr_table_addn(vartab, rvar->name, (void *)rvar);
+
+ count++;
+ }
+ }
+
+ return count;
+}
+
+/* ARGS_POST_NAMES */
+
+static int var_args_post_names_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ const apr_array_header_t *arr = NULL;
+ const apr_table_entry_t *te = NULL;
+ int i, count = 0;
+
+ arr = apr_table_elts(msr->arguments);
+ te = (apr_table_entry_t *)arr->elts;
+ for (i = 0; i < arr->nelts; i++) {
+ msc_arg *arg = (msc_arg *)te[i].val;
+ int match = 0;
+
+ /* Only BODY arguments */
+ if (strcmp("BODY", arg->origin) != 0) continue;
+
+ /* Figure out if we want to include this variable. */
+ if (var->param == NULL) match = 1; /* Unconditional inclusion. */
+ else {
+ if (var->param_data != NULL) { /* Regex. */
+ char *my_error_msg = NULL;
+ if (!(msc_regexec((msc_regex_t *)var->param_data, arg->name,
+ arg->name_len, &my_error_msg) == PCRE_ERROR_NOMATCH)) match = 1;
+ } else { /* Simple comparison. */
+ if (strcasecmp(arg->name, var->param) == 0) match = 1;
+ }
+ }
+
+ /* If we had a match add this argument to the collection. */
+ if (match) {
+ msre_var *rvar = apr_pmemdup(mptmp, var, sizeof(msre_var));
+
+ rvar->value = arg->name;
+ rvar->value_len = arg->name_len;
+ rvar->name = apr_psprintf(mptmp, "ARGS_POST_NAMES:%s", log_escape_nq_ex(mptmp, arg->name, arg->name_len));
+ apr_table_addn(vartab, rvar->name, (void *)rvar);
+
+ count++;
+ }
+ }
+
+ return count;
+}
+
+/* RULE */
+
+static int var_rule_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ msre_actionset *actionset = NULL;
+
+ if (rule == NULL) return 0;
+ actionset = rule->actionset;
+ if (rule->chain_starter != NULL) actionset = rule->chain_starter->actionset;
+
+ if ((strcasecmp(var->param, "id") == 0)&&(actionset->id != NULL)) {
+ return var_simple_generate(var, vartab, mptmp, actionset->id);
+ } else
+ if ((strcasecmp(var->param, "rev") == 0)&&(actionset->rev != NULL)) {
+ return var_simple_generate(var, vartab, mptmp, actionset->rev);
+ } else
+ if ((strcasecmp(var->param, "severity") == 0)&&(actionset->severity != -1)) {
+ char *value = apr_psprintf(mptmp, "%d", actionset->severity);
+ return var_simple_generate(var, vartab, mptmp, value);
+ } else
+ if ((strcasecmp(var->param, "msg") == 0)&&(actionset->msg != NULL)) {
+ return var_simple_generate(var, vartab, mptmp, actionset->msg);
+ } else
+ if ((strcasecmp(var->param, "logdata") == 0)&&(actionset->logdata != NULL)) {
+ return var_simple_generate(var, vartab, mptmp, actionset->logdata);
+ }
+
+ return 0;
+}
+
+/* ENV */
+
+static char *var_env_validate(msre_ruleset *ruleset, msre_var *var) {
+ if (var->param == NULL) {
+ return apr_psprintf(ruleset->mp, "Parameter required for ENV.");
+ }
+ if ((strlen(var->param) > 2)&&(var->param[0] == '/')
+ &&(var->param[strlen(var->param) - 1] == '/'))
+ {
+ return apr_psprintf(ruleset->mp, "Regular expressions not supported in ENV.");
+ }
+ return NULL;
+}
+
+static int var_env_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ char *value = get_env_var(msr->r, (char *)var->param);
+ if (value != NULL) {
+ return var_simple_generate(var, vartab, mptmp, value);
+ }
+ return 0;
+}
+
+/* REQUEST_URI_RAW */
+
+static int var_request_uri_raw_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ return var_simple_generate(var, vartab, mptmp, msr->r->unparsed_uri);
+}
+
+/* REQUEST_URI */
+
+static int var_request_uri_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp) /* dynamic */
+{
+ char *value = NULL;
+
+ if (msr->r->parsed_uri.query == NULL) value = msr->r->parsed_uri.path;
+ else value = apr_pstrcat(mptmp, msr->r->parsed_uri.path, "?", msr->r->parsed_uri.query, NULL);
+
+ return var_simple_generate(var, vartab, mptmp, value);
+}
+
+/* REQBODY_PROCESSOR */
+
+static int var_reqbody_processor_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ msre_var *rvar = apr_pmemdup(mptmp, var, sizeof(msre_var));
+
+ if (msr->msc_reqbody_processor == NULL) {
+ rvar->value = apr_pstrdup(mptmp, "");
+ rvar->value_len = 0;
+ } else {
+ rvar->value = apr_pstrdup(mptmp, msr->msc_reqbody_processor);
+ rvar->value_len = strlen(rvar->value);
+ }
+
+ apr_table_addn(vartab, rvar->name, (void *)rvar);
+
+ return 1;
+}
+
+/* REQBODY_ERROR */
+
+static int var_reqbody_processor_error_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ msre_var *rvar = apr_pmemdup(mptmp, var, sizeof(msre_var));
+
+ rvar->value = apr_psprintf(mptmp, "%d", msr->msc_reqbody_error);
+ rvar->value_len = strlen(rvar->value);
+ apr_table_addn(vartab, rvar->name, (void *)rvar);
+
+ return 1;
+}
+
+/* REQBODY_ERROR_MSG */
+
+static int var_reqbody_processor_error_msg_generate(modsec_rec *msr, msre_var *var,
+ msre_rule *rule, apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ msre_var *rvar = apr_pmemdup(mptmp, var, sizeof(msre_var));
+
+ if (msr->msc_reqbody_error_msg == NULL) {
+ rvar->value = apr_pstrdup(mptmp, "");
+ rvar->value_len = 0;
+ } else {
+ rvar->value = apr_psprintf(mptmp, "%s", msr->msc_reqbody_error_msg);
+ rvar->value_len = strlen(rvar->value);
+ }
+
+ apr_table_addn(vartab, rvar->name, (void *)rvar);
+
+ return 1;
+}
+
+/* XML */
+
+static char *var_xml_validate(msre_ruleset *ruleset, msre_var *var) {
+ /* It's OK if there's no parameter. */
+ if (var->param == NULL) return NULL;
+
+ /* ENH validate XPath expression in advance. */
+
+ return NULL;
+}
+
+static int var_xml_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ const apr_array_header_t *tarr;
+ const apr_table_entry_t *telts;
+ xmlXPathContextPtr xpathCtx;
+ xmlXPathObjectPtr xpathObj;
+ xmlNodeSetPtr nodes;
+ const xmlChar* xpathExpr = NULL;
+ int i, count;
+
+ /* Is there an XML document tree at all? */
+ if ((msr->xml == NULL)||(msr->xml->doc == NULL)) {
+ /* Sorry, we've got nothing to give! */
+ return 0;
+ }
+
+ if (var->param == NULL) {
+ /* Invocation without an XPath expression makes sense
+ * with functions that manipulate the document tree.
+ */
+ msre_var *rvar = apr_pmemdup(mptmp, var, sizeof(msre_var));
+
+ rvar->value = apr_pstrdup(mptmp, "[XML document tree]");
+ rvar->value_len = strlen(rvar->value);
+ apr_table_addn(vartab, rvar->name, (void *)rvar);
+
+ return 1;
+ }
+
+ /* Process the XPath expression. */
+
+ count = 0;
+ xpathExpr = (const xmlChar*)var->param;
+
+ xpathCtx = xmlXPathNewContext(msr->xml->doc);
+ if (xpathCtx == NULL) {
+ msr_log(msr, 1, "XML: Unable to create new XPath context.");
+ return -1;
+ }
+
+ /* Look through the actionset of the associated rule
+ * for the namespace information. Register them if any are found.
+ */
+ tarr = apr_table_elts(rule->actionset->actions);
+ telts = (const apr_table_entry_t*)tarr->elts;
+ for (i = 0; i < tarr->nelts; i++) {
+ msre_action *action = (msre_action *)telts[i].val;
+
+ if (strcasecmp(action->metadata->name, "xmlns") == 0) {
+ char *prefix, *href;
+
+ if (parse_name_eq_value(mptmp, action->param, &prefix, &href) < 0) return -1;
+ if ((prefix == NULL)||(href == NULL)) return -1;
+
+ if(xmlXPathRegisterNs(xpathCtx, (const xmlChar*)prefix, (const xmlChar*)href) != 0) {
+ msr_log(msr, 1, "Failed to register XML namespace href \"%s\" prefix \"%s\".",
+ log_escape(mptmp, prefix), log_escape(mptmp, href));
+ return -1;
+ }
+
+ msr_log(msr, 4, "Registered XML namespace href \"%s\" prefix \"%s\".",
+ log_escape(mptmp, prefix), log_escape(mptmp, href));
+ }
+ }
+
+ /* Initialise XPath expression. */
+ xpathObj = xmlXPathEvalExpression(xpathExpr, xpathCtx);
+ if (xpathObj == NULL) {
+ msr_log(msr, 1, "XML: Unable to evaluate xpath expression.");
+ xmlXPathFreeContext(xpathCtx);
+ return -1;
+ }
+
+ /* Evaluate XPath expression. */
+ nodes = xpathObj->nodesetval;
+ if (nodes == NULL) {
+ xmlXPathFreeObject(xpathObj);
+ xmlXPathFreeContext(xpathCtx);
+ return 0;
+ }
+
+ /* Create one variable for each node in the result. */
+ for(i = 0; i < nodes->nodeNr; i++) {
+ msre_var *rvar = NULL;
+ char *content = NULL;
+
+ content = (char *)xmlNodeGetContent(nodes->nodeTab[i]);
+ if (content != NULL) {
+ rvar = apr_pmemdup(mptmp, var, sizeof(msre_var));
+ rvar->value = apr_pstrdup(mptmp, content);
+ xmlFree(content);
+ rvar->value_len = strlen(rvar->value);
+ apr_table_addn(vartab, rvar->name, (void *)rvar);
+
+ count++;
+ }
+ }
+
+ xmlXPathFreeObject(xpathObj);
+ xmlXPathFreeContext(xpathCtx);
+
+ return count;
+}
+
+/* WEBSERVER_ERROR_LOG */
+
+static int var_webserver_error_log_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ msre_var *rvar = NULL;
+ int i, count = 0;
+
+ for(i = 0; i < msr->error_messages->nelts; i++) {
+ error_message *em = (((error_message**)msr->error_messages->elts)[i]);
+ char *fem = NULL;
+
+ fem = format_error_log_message(mptmp, em);
+ if (fem != NULL) {
+ rvar = apr_pmemdup(mptmp, var, sizeof(msre_var));
+ rvar->value = apr_pstrdup(mptmp, fem);
+ rvar->value_len = strlen(rvar->value);
+ apr_table_addn(vartab, rvar->name, (void *)rvar);
+
+ count++;
+ }
+ }
+
+ return count;
+}
+
+/* REMOTE_ADDR */
+
+static int var_remote_addr_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ return var_simple_generate(var, vartab, mptmp, msr->remote_addr);
+}
+
+/* REMOTE_HOST */
+
+static int var_remote_host_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ const char *value1 = ap_get_remote_host(msr->r->connection, msr->r->per_dir_config,
+ REMOTE_NAME, NULL);
+ return var_simple_generate(var, vartab, mptmp, value1);
+}
+
+/* REMOTE_PORT */
+
+static int var_remote_port_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ char *value = apr_psprintf(mptmp, "%u", msr->remote_port);
+ return var_simple_generate(var, vartab, mptmp, value);
+}
+
+/* REMOTE_USER */
+
+static int var_remote_user_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ return var_simple_generate(var, vartab, mptmp, msr->remote_user);
+}
+
+/* TX */
+
+static int var_tx_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ const apr_array_header_t *arr = NULL;
+ const apr_table_entry_t *te = NULL;
+ int i, count = 0;
+
+ arr = apr_table_elts(msr->tx_vars);
+ te = (apr_table_entry_t *)arr->elts;
+ for (i = 0; i < arr->nelts; i++) {
+ msc_string *str = (msc_string *)te[i].val;
+ int match;
+
+ /* Figure out if we want to include this variable. */
+ match = 0;
+ if (var->param == NULL) match = 1; /* Unconditional inclusion. */
+ else {
+ if (var->param_data != NULL) { /* Regex. */
+ char *my_error_msg = NULL;
+ if (!(msc_regexec((msc_regex_t *)var->param_data, str->name,
+ str->name_len, &my_error_msg) == PCRE_ERROR_NOMATCH)) match = 1;
+ } else { /* Simple comparison. */
+ if (strcasecmp(str->name, var->param) == 0) match = 1;
+ }
+ }
+
+ /* If we had a match add this argument to the collection. */
+ if (match) {
+ msre_var *rvar = apr_pmemdup(mptmp, var, sizeof(msre_var));
+
+ rvar->value = str->value;
+ rvar->value_len = str->value_len;
+ rvar->name = apr_psprintf(mptmp, "TX:%s", log_escape_nq_ex(mptmp, str->name, str->name_len));
+ apr_table_addn(vartab, rvar->name, (void *)rvar);
+
+ count++;
+ }
+ }
+
+ return count;
+}
+
+/* GEO */
+
+static int var_geo_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ const apr_array_header_t *arr = NULL;
+ const apr_table_entry_t *te = NULL;
+ int i, count = 0;
+
+ arr = apr_table_elts(msr->geo_vars);
+ te = (apr_table_entry_t *)arr->elts;
+ for (i = 0; i < arr->nelts; i++) {
+ msc_string *str = (msc_string *)te[i].val;
+ int match;
+
+ /* Figure out if we want to include this variable. */
+ match = 0;
+ if (var->param == NULL) match = 1; /* Unconditional inclusion. */
+ else {
+ if (var->param_data != NULL) { /* Regex. */
+ char *my_error_msg = NULL;
+ if (!(msc_regexec((msc_regex_t *)var->param_data, str->name,
+ str->name_len, &my_error_msg) == PCRE_ERROR_NOMATCH)) match = 1;
+ } else { /* Simple comparison. */
+ if (strcasecmp(str->name, var->param) == 0) match = 1;
+ }
+ }
+
+ /* If we had a match add this argument to the collection. */
+ if (match) {
+ msre_var *rvar = apr_pmemdup(mptmp, var, sizeof(msre_var));
+
+ rvar->value = str->value;
+ rvar->value_len = str->value_len;
+ rvar->name = apr_psprintf(mptmp, "GEO:%s", log_escape_nq_ex(mptmp, str->name, str->name_len));
+ apr_table_addn(vartab, rvar->name, (void *)rvar);
+
+ count++;
+ }
+ }
+
+ return count;
+}
+
+/* HIGHEST_SEVERITY */
+
+static int var_highest_severity_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ return var_simple_generate(var, vartab, mptmp,
+ apr_psprintf(mptmp, "%d", msr->highest_severity));
+}
+
+/* IP */
+
+static int var_ip_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ const apr_array_header_t *arr = NULL;
+ const apr_table_entry_t *te = NULL;
+ int i, count = 0;
+ apr_table_t *target_col = NULL;
+
+ target_col = (apr_table_t *)apr_table_get(msr->collections, "ip");
+ if (target_col == NULL) return 0;
+
+ arr = apr_table_elts(target_col);
+ te = (apr_table_entry_t *)arr->elts;
+ for (i = 0; i < arr->nelts; i++) {
+ msc_string *str = (msc_string *)te[i].val;
+ int match;
+
+ /* Figure out if we want to include this variable. */
+ match = 0;
+ if (var->param == NULL) match = 1; /* Unconditional inclusion. */
+ else {
+ if (var->param_data != NULL) { /* Regex. */
+ char *my_error_msg = NULL;
+ if (!(msc_regexec((msc_regex_t *)var->param_data, str->name,
+ str->name_len, &my_error_msg) == PCRE_ERROR_NOMATCH)) match = 1;
+ } else { /* Simple comparison. */
+ if (strcasecmp(str->name, var->param) == 0) match = 1;
+ }
+ }
+
+ /* If we had a match add this argument to the collection. */
+ if (match) {
+ msre_var *rvar = apr_pmemdup(mptmp, var, sizeof(msre_var));
+
+ rvar->value = str->value;
+ rvar->value_len = str->value_len;
+ rvar->name = apr_psprintf(mptmp, "IP:%s", log_escape_nq_ex(mptmp, str->name, str->name_len));
+ apr_table_addn(vartab, rvar->name, (void *)rvar);
+
+ count++;
+ }
+ }
+
+ return count;
+}
+
+/* MATCHED_VAR */
+
+static int var_matched_var_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ return var_simple_generate_ex(var, vartab, mptmp,
+ apr_pmemdup(mptmp,
+ msr->matched_var->value,
+ msr->matched_var->value_len),
+ msr->matched_var->value_len);
+}
+
+/* MATCHED_VAR_NAME */
+
+static int var_matched_var_name_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ return var_simple_generate_ex(var, vartab, mptmp,
+ apr_pmemdup(mptmp,
+ msr->matched_var->name,
+ msr->matched_var->name_len),
+ msr->matched_var->name_len);
+}
+
+/* SESSION */
+
+static int var_session_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ const apr_array_header_t *arr = NULL;
+ const apr_table_entry_t *te = NULL;
+ int i, count = 0;
+ apr_table_t *target_col = NULL;
+
+ target_col = (apr_table_t *)apr_table_get(msr->collections, "session");
+ if (target_col == NULL) return 0;
+
+ arr = apr_table_elts(target_col);
+ te = (apr_table_entry_t *)arr->elts;
+ for (i = 0; i < arr->nelts; i++) {
+ msc_string *str = (msc_string *)te[i].val;
+ int match;
+
+ /* Figure out if we want to include this variable. */
+ match = 0;
+ if (var->param == NULL) match = 1; /* Unconditional inclusion. */
+ else {
+ if (var->param_data != NULL) { /* Regex. */
+ char *my_error_msg = NULL;
+ if (!(msc_regexec((msc_regex_t *)var->param_data, str->name,
+ str->name_len, &my_error_msg) == PCRE_ERROR_NOMATCH)) match = 1;
+ } else { /* Simple comparison. */
+ if (strcasecmp(str->name, var->param) == 0) match = 1;
+ }
+ }
+
+ /* If we had a match add this argument to the collection. */
+ if (match) {
+ msre_var *rvar = apr_pmemdup(mptmp, var, sizeof(msre_var));
+
+ rvar->value = str->value;
+ rvar->value_len = str->value_len;
+ rvar->name = apr_psprintf(mptmp, "SESSION:%s", log_escape_nq_ex(mptmp, str->name, str->name_len));
+ apr_table_addn(vartab, rvar->name, (void *)rvar);
+
+ count++;
+ }
+ }
+
+ return count;
+}
+
+/* USER */
+
+static int var_user_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ const apr_array_header_t *arr = NULL;
+ const apr_table_entry_t *te = NULL;
+ int i, count = 0;
+ apr_table_t *target_col = NULL;
+
+ target_col = (apr_table_t *)apr_table_get(msr->collections, "user");
+ if (target_col == NULL) return 0;
+
+ arr = apr_table_elts(target_col);
+ te = (apr_table_entry_t *)arr->elts;
+ for (i = 0; i < arr->nelts; i++) {
+ msc_string *str = (msc_string *)te[i].val;
+ int match;
+
+ /* Figure out if we want to include this variable. */
+ match = 0;
+ if (var->param == NULL) match = 1; /* Unconditional match. */
+ else {
+ if (var->param_data != NULL) { /* Regex. */
+ char *my_error_msg = NULL;
+ if (!(msc_regexec((msc_regex_t *)var->param_data, str->name,
+ str->name_len, &my_error_msg) == PCRE_ERROR_NOMATCH)) match = 1;
+ } else { /* Simple comparison. */
+ if (strcasecmp(str->name, var->param) == 0) match = 1;
+ }
+ }
+
+ /* If we had a match add this argument to the collection. */
+ if (match) {
+ msre_var *rvar = apr_pmemdup(mptmp, var, sizeof(msre_var));
+
+ rvar->value = str->value;
+ rvar->value_len = str->value_len;
+ rvar->name = apr_psprintf(mptmp, "USER:%s", log_escape_nq_ex(mptmp, str->name, str->name_len));
+ apr_table_addn(vartab, rvar->name, (void *)rvar);
+
+ count++;
+ }
+ }
+
+ return count;
+}
+
+/* GLOBAL */
+
+static int var_global_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ const apr_array_header_t *arr = NULL;
+ const apr_table_entry_t *te = NULL;
+ int i, count = 0;
+ apr_table_t *target_col = NULL;
+
+ target_col = (apr_table_t *)apr_table_get(msr->collections, "global");
+ if (target_col == NULL) return 0;
+
+ arr = apr_table_elts(target_col);
+ te = (apr_table_entry_t *)arr->elts;
+ for (i = 0; i < arr->nelts; i++) {
+ msc_string *str = (msc_string *)te[i].val;
+ int match;
+
+ /* Figure out if we want to include this variable. */
+ match = 0;
+ if (var->param == NULL) match = 1; /* Unconditional match. */
+ else {
+ if (var->param_data != NULL) { /* Regex. */
+ char *my_error_msg = NULL;
+ if (!(msc_regexec((msc_regex_t *)var->param_data, str->name,
+ str->name_len, &my_error_msg) == PCRE_ERROR_NOMATCH)) match = 1;
+ } else { /* Simple comparison. */
+ if (strcasecmp(str->name, var->param) == 0) match = 1;
+ }
+ }
+
+ /* If we had a match add this argument to the collection. */
+ if (match) {
+ msre_var *rvar = apr_pmemdup(mptmp, var, sizeof(msre_var));
+
+ rvar->value = str->value;
+ rvar->value_len = str->value_len;
+ rvar->name = apr_psprintf(mptmp, "GLOBAL:%s", log_escape_nq_ex(mptmp, str->name, str->name_len));
+ apr_table_addn(vartab, rvar->name, (void *)rvar);
+
+ count++;
+ }
+ }
+
+ return count;
+}
+
+/* RESOURCE */
+
+static int var_resource_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ const apr_array_header_t *arr = NULL;
+ const apr_table_entry_t *te = NULL;
+ int i, count = 0;
+ apr_table_t *target_col = NULL;
+
+ target_col = (apr_table_t *)apr_table_get(msr->collections, "resource");
+ if (target_col == NULL) return 0;
+
+ arr = apr_table_elts(target_col);
+ te = (apr_table_entry_t *)arr->elts;
+ for (i = 0; i < arr->nelts; i++) {
+ msc_string *str = (msc_string *)te[i].val;
+ int match;
+
+ /* Figure out if we want to include this variable. */
+ match = 0;
+ if (var->param == NULL) match = 1; /* Unconditional match. */
+ else {
+ if (var->param_data != NULL) { /* Regex. */
+ char *my_error_msg = NULL;
+ if (!(msc_regexec((msc_regex_t *)var->param_data, str->name,
+ str->name_len, &my_error_msg) == PCRE_ERROR_NOMATCH)) match = 1;
+ } else { /* Simple comparison. */
+ if (strcasecmp(str->name, var->param) == 0) match = 1;
+ }
+ }
+
+ /* If we had a match add this argument to the collection. */
+ if (match) {
+ msre_var *rvar = apr_pmemdup(mptmp, var, sizeof(msre_var));
+
+ rvar->value = str->value;
+ rvar->value_len = str->value_len;
+ rvar->name = apr_psprintf(mptmp, "RESOURCE:%s", log_escape_nq_ex(mptmp, str->name, str->name_len));
+ apr_table_addn(vartab, rvar->name, (void *)rvar);
+
+ count++;
+ }
+ }
+
+ return count;
+}
+
+/* FILES_TMPNAMES */
+
+static int var_files_tmpnames_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ multipart_part **parts = NULL;
+ int i, count = 0;
+
+ if (msr->mpd == NULL) return 0;
+
+ parts = (multipart_part **)msr->mpd->parts->elts;
+ for(i = 0; i < msr->mpd->parts->nelts; i++) {
+ if ((parts[i]->type == MULTIPART_FILE)&&(parts[i]->tmp_file_name != NULL)) {
+ int match = 0;
+
+ /* Figure out if we want to include this variable. */
+ if (var->param == NULL) match = 1;
+ else {
+ if (var->param_data != NULL) { /* Regex. */
+ char *my_error_msg = NULL;
+ if (!(msc_regexec((msc_regex_t *)var->param_data, parts[i]->name,
+ strlen(parts[i]->name), &my_error_msg) == PCRE_ERROR_NOMATCH)) match = 1;
+ } else { /* Simple comparison. */
+ if (strcasecmp(parts[i]->name, var->param) == 0) match = 1;
+ }
+ }
+
+ /* If we had a match add this argument to the collection. */
+ if (match) {
+ msre_var *rvar = apr_pmemdup(mptmp, var, sizeof(msre_var));
+
+ rvar->value = parts[i]->tmp_file_name;
+ rvar->value_len = strlen(rvar->value);
+ rvar->name = apr_psprintf(mptmp, "FILES_TMPNAMES:%s",
+ log_escape_nq(mptmp, parts[i]->name));
+ apr_table_addn(vartab, rvar->name, (void *)rvar);
+
+ count++;
+ }
+ }
+ }
+
+ return count;
+}
+
+/* FILES */
+
+static int var_files_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ multipart_part **parts = NULL;
+ int i, count = 0;
+
+ if (msr->mpd == NULL) return 0;
+
+ parts = (multipart_part **)msr->mpd->parts->elts;
+ for(i = 0; i < msr->mpd->parts->nelts; i++) {
+ if (parts[i]->type == MULTIPART_FILE) {
+ int match = 0;
+
+ /* Figure out if we want to include this variable. */
+ if (var->param == NULL) match = 1;
+ else {
+ if (var->param_data != NULL) { /* Regex. */
+ char *my_error_msg = NULL;
+ if (!(msc_regexec((msc_regex_t *)var->param_data, parts[i]->name,
+ strlen(parts[i]->name), &my_error_msg) == PCRE_ERROR_NOMATCH)) match = 1;
+ } else { /* Simple comparison. */
+ if (strcasecmp(parts[i]->name, var->param) == 0) match = 1;
+ }
+ }
+
+ /* If we had a match add this argument to the collection. */
+ if (match) {
+ msre_var *rvar = apr_pmemdup(mptmp, var, sizeof(msre_var));
+
+ rvar->value = parts[i]->filename;
+ rvar->value_len = strlen(rvar->value);
+ rvar->name = apr_psprintf(mptmp, "FILES:%s",
+ log_escape_nq(mptmp, parts[i]->name));
+ apr_table_addn(vartab, rvar->name, (void *)rvar);
+
+ count++;
+ }
+ }
+ }
+
+ return count;
+}
+
+/* FILES_SIZES */
+
+static int var_files_sizes_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ multipart_part **parts = NULL;
+ int i, count = 0;
+
+ if (msr->mpd == NULL) return 0;
+
+ parts = (multipart_part **)msr->mpd->parts->elts;
+ for(i = 0; i < msr->mpd->parts->nelts; i++) {
+ if (parts[i]->type == MULTIPART_FILE) {
+ int match = 0;
+
+ /* Figure out if we want to include this variable. */
+ if (var->param == NULL) match = 1;
+ else {
+ if (var->param_data != NULL) { /* Regex. */
+ char *my_error_msg = NULL;
+ if (!(msc_regexec((msc_regex_t *)var->param_data, parts[i]->name,
+ strlen(parts[i]->name), &my_error_msg) == PCRE_ERROR_NOMATCH)) match = 1;
+ } else { /* Simple comparison. */
+ if (strcasecmp(parts[i]->name, var->param) == 0) match = 1;
+ }
+ }
+
+ /* If we had a match add this argument to the collection. */
+ if (match) {
+ msre_var *rvar = apr_pmemdup(mptmp, var, sizeof(msre_var));
+
+ rvar->value = apr_psprintf(mptmp, "%u", parts[i]->tmp_file_size);
+ rvar->value_len = strlen(rvar->value);
+ rvar->name = apr_psprintf(mptmp, "FILES_SIZES:%s",
+ log_escape_nq(mptmp, parts[i]->name));
+ apr_table_addn(vartab, rvar->name, (void *)rvar);
+
+ count++;
+ }
+ }
+ }
+
+ return count;
+}
+
+/* FILES_NAMES */
+
+static int var_files_names_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ multipart_part **parts = NULL;
+ int i, count = 0;
+
+ if (msr->mpd == NULL) return 0;
+
+ parts = (multipart_part **)msr->mpd->parts->elts;
+ for(i = 0; i < msr->mpd->parts->nelts; i++) {
+ if (parts[i]->type == MULTIPART_FILE) {
+ msre_var *rvar = apr_pmemdup(mptmp, var, sizeof(msre_var));
+
+ rvar->value = parts[i]->name;
+ rvar->value_len = strlen(rvar->value);
+ rvar->name = apr_psprintf(mptmp, "FILES_NAMES:%s",
+ log_escape_nq_ex(mptmp, parts[i]->name, rvar->value_len));
+ apr_table_addn(vartab, rvar->name, (void *)rvar);
+
+ count++;
+ }
+ }
+
+ return count;
+}
+
+/* FILES_COMBINED_SIZE */
+
+static int var_files_combined_size_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ multipart_part **parts = NULL;
+ msre_var *rvar = NULL;
+ unsigned int combined_size = 0;
+ int i;
+
+ if (msr->mpd != NULL) {
+ parts = (multipart_part **)msr->mpd->parts->elts;
+ for(i = 0; i < msr->mpd->parts->nelts; i++) {
+ if (parts[i]->type == MULTIPART_FILE) {
+ combined_size += parts[i]->tmp_file_size;
+ }
+ }
+ }
+
+ rvar = apr_pmemdup(mptmp, var, sizeof(msre_var));
+ rvar->value = apr_psprintf(mptmp, "%u", combined_size);
+ rvar->value_len = strlen(rvar->value);
+ apr_table_addn(vartab, rvar->name, (void *)rvar);
+
+ return 1;
+}
+
+/* MODSEC_BUILD */
+
+static int var_modsec_build_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ return var_simple_generate(var, vartab, mptmp, modsec_build(mptmp));
+}
+
+/* MULTIPART_BOUNDARY_QUOTED */
+
+static int var_multipart_boundary_quoted_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ if ((msr->mpd != NULL)&&(msr->mpd->flag_boundary_quoted != 0)) {
+ return var_simple_generate(var, vartab, mptmp, "1");
+ } else {
+ return var_simple_generate(var, vartab, mptmp, "0");
+ }
+}
+
+/* MULTIPART_BOUNDARY_WHITESPACE */
+
+static int var_multipart_boundary_whitespace_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ if ((msr->mpd != NULL)&&(msr->mpd->flag_boundary_whitespace != 0)) {
+ return var_simple_generate(var, vartab, mptmp, "1");
+ } else {
+ return var_simple_generate(var, vartab, mptmp, "0");
+ }
+}
+
+/* MULTIPART_DATA_AFTER */
+
+static int var_multipart_data_after_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ if ((msr->mpd != NULL)&&(msr->mpd->flag_data_after != 0)) {
+ return var_simple_generate(var, vartab, mptmp, "1");
+ } else {
+ return var_simple_generate(var, vartab, mptmp, "0");
+ }
+}
+
+/* MULTIPART_DATA_BEFORE */
+
+static int var_multipart_data_before_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ if ((msr->mpd != NULL)&&(msr->mpd->flag_data_before != 0)) {
+ return var_simple_generate(var, vartab, mptmp, "1");
+ } else {
+ return var_simple_generate(var, vartab, mptmp, "0");
+ }
+}
+
+/* MULTIPART_HEADER_FOLDING */
+
+static int var_multipart_header_folding_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ if ((msr->mpd != NULL)&&(msr->mpd->flag_header_folding != 0)) {
+ return var_simple_generate(var, vartab, mptmp, "1");
+ } else {
+ return var_simple_generate(var, vartab, mptmp, "0");
+ }
+}
+
+/* MULTIPART_CRLF_LINE */
+
+static int var_multipart_crlf_line_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ if ((msr->mpd != NULL)&&(msr->mpd->flag_crlf_line != 0)) {
+ return var_simple_generate(var, vartab, mptmp, "1");
+ } else {
+ return var_simple_generate(var, vartab, mptmp, "0");
+ }
+}
+
+/* MULTIPART_CRLF_LF_LINES */
+
+static int var_multipart_crlf_lf_lines_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ if ((msr->mpd != NULL)&&(msr->mpd->flag_lf_line != 0)&&(msr->mpd->flag_crlf_line != 0)) {
+ return var_simple_generate(var, vartab, mptmp, "1");
+ } else {
+ return var_simple_generate(var, vartab, mptmp, "0");
+ }
+}
+
+/* MULTIPART_LF_LINE */
+
+static int var_multipart_lf_line_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ if ((msr->mpd != NULL)&&(msr->mpd->flag_lf_line != 0)) {
+ return var_simple_generate(var, vartab, mptmp, "1");
+ } else {
+ return var_simple_generate(var, vartab, mptmp, "0");
+ }
+}
+
+/* MULTIPART_MISSING_SEMICOLON */
+
+static int var_multipart_missing_semicolon_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ if ((msr->mpd != NULL)&&(msr->mpd->flag_missing_semicolon != 0)) {
+ return var_simple_generate(var, vartab, mptmp, "1");
+ } else {
+ return var_simple_generate(var, vartab, mptmp, "0");
+ }
+}
+
+/* MULTIPART_INVALID_QUOTING */
+
+static int var_multipart_invalid_quoting_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ if ((msr->mpd != NULL)&&(msr->mpd->flag_invalid_quoting != 0)) {
+ return var_simple_generate(var, vartab, mptmp, "1");
+ } else {
+ return var_simple_generate(var, vartab, mptmp, "0");
+ }
+}
+
+/* MULTIPART_STRICT_ERROR */
+
+static int var_multipart_strict_error_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ if (msr->mpd != NULL) {
+ /* Respond positive if at least one of the multipart flags is raised. */
+ if ( (msr->mpd->flag_error)
+ ||(msr->mpd->flag_boundary_quoted != 0)
+ ||(msr->mpd->flag_boundary_whitespace != 0)
+ ||(msr->mpd->flag_data_before != 0)
+ ||(msr->mpd->flag_data_after != 0)
+ ||(msr->mpd->flag_header_folding != 0)
+ ||(msr->mpd->flag_lf_line != 0)
+ ||(msr->mpd->flag_missing_semicolon != 0)
+ ||(msr->mpd->flag_invalid_quoting != 0)
+ ) {
+ return var_simple_generate(var, vartab, mptmp, "1");
+ }
+ }
+
+ return var_simple_generate(var, vartab, mptmp, "0");
+}
+
+/* MULTIPART_UNMATCHED_BOUNDARY */
+
+static int var_multipart_unmatched_boundary_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ if ((msr->mpd != NULL)&&(msr->mpd->flag_unmatched_boundary != 0)) {
+ return var_simple_generate(var, vartab, mptmp, "1");
+ } else {
+ return var_simple_generate(var, vartab, mptmp, "0");
+ }
+}
+
+/* TIME */
+
+static int var_time_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ msre_var *rvar = NULL;
+ struct tm *tm;
+ time_t tc;
+
+ tc = time(NULL);
+ tm = localtime(&tc);
+ rvar = apr_pmemdup(mptmp, var, sizeof(msre_var));
+ rvar->value = apr_psprintf(mptmp, "%02d%02d%02d%02d%02d%02d%02d",
+ (tm->tm_year / 100) + 19, (tm->tm_year % 100),
+ tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min,
+ tm->tm_sec);
+ rvar->value_len = strlen(rvar->value);
+ apr_table_addn(vartab, rvar->name, (void *)rvar);
+
+ return 1;
+}
+
+/* TIME_YEAR */
+
+static int var_time_year_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ msre_var *rvar = NULL;
+ struct tm *tm;
+ time_t tc;
+
+ tc = time(NULL);
+ tm = localtime(&tc);
+ rvar = apr_pmemdup(mptmp, var, sizeof(msre_var));
+ rvar->value = apr_psprintf(mptmp, "%02d%02d",
+ (tm->tm_year / 100) + 19,
+ tm->tm_year % 100);
+ rvar->value_len = strlen(rvar->value);
+ apr_table_addn(vartab, rvar->name, (void *)rvar);
+
+ return 1;
+}
+
+/* TIME_WDAY */
+
+static int var_time_wday_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ msre_var *rvar = NULL;
+ struct tm *tm;
+ time_t tc;
+
+ tc = time(NULL);
+ tm = localtime(&tc);
+ rvar = apr_pmemdup(mptmp, var, sizeof(msre_var));
+ rvar->value = apr_psprintf(mptmp, "%d", tm->tm_wday);
+ rvar->value_len = strlen(rvar->value);
+ apr_table_addn(vartab, rvar->name, (void *)rvar);
+
+ return 1;
+}
+
+/* TIME_SEC */
+
+static int var_time_sec_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ msre_var *rvar = NULL;
+ struct tm *tm;
+ time_t tc;
+
+ tc = time(NULL);
+ tm = localtime(&tc);
+ rvar = apr_pmemdup(mptmp, var, sizeof(msre_var));
+ rvar->value = apr_psprintf(mptmp, "%02d", tm->tm_sec);
+ rvar->value_len = strlen(rvar->value);
+ apr_table_addn(vartab, rvar->name, (void *)rvar);
+
+ return 1;
+}
+
+/* TIME_MIN */
+
+static int var_time_min_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ msre_var *rvar = NULL;
+ struct tm *tm;
+ time_t tc;
+
+ tc = time(NULL);
+ tm = localtime(&tc);
+ rvar = apr_pmemdup(mptmp, var, sizeof(msre_var));
+ rvar->value = apr_psprintf(mptmp, "%02d", tm->tm_min);
+ rvar->value_len = strlen(rvar->value);
+ apr_table_addn(vartab, rvar->name, (void *)rvar);
+
+ return 1;
+}
+
+/* TIME_HOUR */
+static int var_time_hour_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ msre_var *rvar = NULL;
+ struct tm *tm;
+ time_t tc;
+
+ tc = time(NULL);
+ tm = localtime(&tc);
+ rvar = apr_pmemdup(mptmp, var, sizeof(msre_var));
+ rvar->value = apr_psprintf(mptmp, "%02d", tm->tm_hour);
+ rvar->value_len = strlen(rvar->value);
+ apr_table_addn(vartab, rvar->name, (void *)rvar);
+
+ return 1;
+}
+
+/* TIME_MON */
+
+static int var_time_mon_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ msre_var *rvar = NULL;
+ struct tm *tm;
+ time_t tc;
+
+ tc = time(NULL);
+ tm = localtime(&tc);
+ rvar = apr_pmemdup(mptmp, var, sizeof(msre_var));
+ rvar->value = apr_psprintf(mptmp, "%02d", tm->tm_mon + 1);
+ rvar->value_len = strlen(rvar->value);
+ apr_table_addn(vartab, rvar->name, (void *)rvar);
+
+ return 1;
+}
+
+/* TIME_DAY */
+
+static int var_time_day_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ msre_var *rvar = NULL;
+ struct tm *tm;
+ time_t tc;
+
+ tc = time(NULL);
+ tm = localtime(&tc);
+ rvar = apr_pmemdup(mptmp, var, sizeof(msre_var));
+ rvar->value = apr_psprintf(mptmp, "%02d", tm->tm_mday);
+ rvar->value_len = strlen(rvar->value);
+ apr_table_addn(vartab, rvar->name, (void *)rvar);
+
+ return 1;
+}
+
+/* TIME_EPOCH */
+
+static int var_time_epoch_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ msre_var *rvar = NULL;
+ struct tm *tm;
+ time_t tc;
+
+ tc = time(NULL);
+ tm = localtime(&tc);
+ rvar = apr_pmemdup(mptmp, var, sizeof(msre_var));
+ rvar->value = apr_psprintf(mptmp, "%ld", (long)tc);
+ rvar->value_len = strlen(rvar->value);
+ apr_table_addn(vartab, rvar->name, (void *)rvar);
+
+ return 1;
+}
+
+/* QUERY_STRING */
+
+static int var_query_string_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ return var_simple_generate(var, vartab, mptmp, msr->query_string);
+}
+
+/* REQUEST_BASENAME */
+
+static int var_request_basename_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ char *value = file_basename(mptmp, msr->r->parsed_uri.path);
+ return var_simple_generate(var, vartab, mptmp, value);
+}
+
+/* REQUEST_BODY */
+
+static int var_request_body_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ if (msr->msc_reqbody_buffer != NULL) {
+ return var_simple_generate_ex(var, vartab, mptmp,
+ msr->msc_reqbody_buffer, msr->msc_reqbody_length);
+ }
+ return 0;
+}
+
+/* REQUEST_COOKIES */
+
+static int var_request_cookies_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ const apr_array_header_t *arr = NULL;
+ const apr_table_entry_t *te = NULL;
+ int i, count = 0;
+
+ arr = apr_table_elts(msr->request_cookies);
+ te = (apr_table_entry_t *)arr->elts;
+ for (i = 0; i < arr->nelts; i++) {
+ int match = 0;
+
+ /* Figure out if we want to include this variable. */
+ if (var->param == NULL) match = 1;
+ else {
+ if (var->param_data != NULL) { /* Regex. */
+ char *my_error_msg = NULL;
+ if (!(msc_regexec((msc_regex_t *)var->param_data, te[i].key,
+ strlen(te[i].key), &my_error_msg) == PCRE_ERROR_NOMATCH)) match = 1;
+ } else { /* Simple comparison. */
+ if (strcasecmp(te[i].key, var->param) == 0) match = 1;
+ }
+ }
+
+ /* If we had a match add this argument to the collection. */
+ if (match) {
+ msre_var *rvar = apr_pmemdup(mptmp, var, sizeof(msre_var));
+
+ rvar->value = te[i].val;
+ rvar->value_len = strlen(rvar->value);
+ rvar->name = apr_psprintf(mptmp, "REQUEST_COOKIES:%s",
+ log_escape_nq(mptmp, te[i].key));
+ apr_table_addn(vartab, rvar->name, (void *)rvar);
+
+ count++;
+ }
+ }
+
+ return count;
+}
+
+/* REQUEST_COOKIES_NAMES */
+
+static int var_request_cookies_names_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ const apr_array_header_t *arr = NULL;
+ const apr_table_entry_t *te = NULL;
+ int i, count = 0;
+
+ arr = apr_table_elts(msr->request_cookies);
+ te = (apr_table_entry_t *)arr->elts;
+ for (i = 0; i < arr->nelts; i++) {
+ int match = 0;
+
+ /* Figure out if we want to include this variable. */
+ if (var->param == NULL) match = 1;
+ else {
+ if (var->param_data != NULL) { /* Regex. */
+ char *my_error_msg = NULL;
+ if (!(msc_regexec((msc_regex_t *)var->param_data, te[i].key,
+ strlen(te[i].key), &my_error_msg) == PCRE_ERROR_NOMATCH)) match = 1;
+ } else { /* Simple comparison. */
+ if (strcasecmp(te[i].key, var->param) == 0) match = 1;
+ }
+ }
+
+ /* If we had a match add this argument to the collection. */
+ if (match) {
+ msre_var *rvar = apr_pmemdup(mptmp, var, sizeof(msre_var));
+
+ rvar->value = te[i].key;
+ rvar->value_len = strlen(rvar->value);
+ rvar->name = apr_psprintf(mptmp, "REQUEST_COOKIES_NAMES:%s",
+ log_escape_nq(mptmp, te[i].key));
+ apr_table_addn(vartab, rvar->name, (void *)rvar);
+
+ count++;
+ }
+ }
+
+ return count;
+}
+
+/* REQUEST_HEADERS */
+
+static int var_request_headers_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ const apr_array_header_t *arr = NULL;
+ const apr_table_entry_t *te = NULL;
+ int i, count = 0;
+
+ arr = apr_table_elts(msr->request_headers);
+ te = (apr_table_entry_t *)arr->elts;
+ for (i = 0; i < arr->nelts; i++) {
+ int match = 0;
+
+ /* Figure out if we want to include this variable. */
+ if (var->param == NULL) match = 1;
+ else {
+ if (var->param_data != NULL) { /* Regex. */
+ char *my_error_msg = NULL;
+ if (!(msc_regexec((msc_regex_t *)var->param_data, te[i].key,
+ strlen(te[i].key), &my_error_msg) == PCRE_ERROR_NOMATCH)) match = 1;
+ } else { /* Simple comparison. */
+ if (strcasecmp(te[i].key, var->param) == 0) match = 1;
+ }
+ }
+
+ /* If we had a match add this argument to the collection. */
+ if (match) {
+ msre_var *rvar = apr_pmemdup(mptmp, var, sizeof(msre_var));
+
+ rvar->value = te[i].val;
+ rvar->value_len = strlen(rvar->value);
+ rvar->name = apr_psprintf(mptmp, "REQUEST_HEADERS:%s",
+ log_escape_nq(mptmp, te[i].key));
+ apr_table_addn(vartab, rvar->name, (void *)rvar);
+
+ count++;
+ }
+ }
+
+ return count;
+}
+
+/* REQUEST_HEADERS_NAMES */
+
+static int var_request_headers_names_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ const apr_array_header_t *arr = NULL;
+ const apr_table_entry_t *te = NULL;
+ int i, count = 0;
+
+ arr = apr_table_elts(msr->request_headers);
+ te = (apr_table_entry_t *)arr->elts;
+ for (i = 0; i < arr->nelts; i++) {
+ int match = 0;
+
+ /* Figure out if we want to include this variable. */
+ if (var->param == NULL) match = 1;
+ else {
+ if (var->param_data != NULL) { /* Regex. */
+ char *my_error_msg = NULL;
+ if (!(msc_regexec((msc_regex_t *)var->param_data, te[i].key,
+ strlen(te[i].key), &my_error_msg) == PCRE_ERROR_NOMATCH)) match = 1;
+ } else { /* Simple comparison. */
+ if (strcasecmp(te[i].key, var->param) == 0) match = 1;
+ }
+ }
+
+ /* If we had a match add this argument to the collection. */
+ if (match) {
+ msre_var *rvar = apr_pmemdup(mptmp, var, sizeof(msre_var));
+
+ rvar->value = te[i].key;
+ rvar->value_len = strlen(rvar->value);
+ rvar->name = apr_psprintf(mptmp, "REQUEST_HEADERS_NAMES:%s",
+ log_escape_nq(mptmp, te[i].key));
+ apr_table_addn(vartab, rvar->name, (void *)rvar);
+
+ count++;
+ }
+ }
+
+ return count;
+}
+
+/* REQUEST_FILENAME */
+
+static int var_request_filename_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ return var_simple_generate(var, vartab, mptmp, msr->r->parsed_uri.path);
+}
+
+/* REQUEST_LINE */
+
+static int var_request_line_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ return var_simple_generate(var, vartab, mptmp, msr->request_line);
+}
+
+/* REQUEST_METHOD */
+
+static int var_request_method_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ return var_simple_generate(var, vartab, mptmp, msr->request_method);
+}
+
+/* REQUEST_PROTOCOL */
+
+static int var_request_protocol_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ return var_simple_generate(var, vartab, mptmp, msr->request_protocol);
+}
+
+/* SERVER_ADDR */
+
+static int var_server_addr_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ return var_simple_generate(var, vartab, mptmp, msr->local_addr);
+}
+
+/* SERVER_NAME */
+
+static int var_server_name_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ return var_simple_generate(var, vartab, mptmp, msr->hostname);
+}
+
+/* SERVER_PORT */
+
+static int var_server_port_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ char *value = apr_psprintf(mptmp, "%u", msr->local_port);
+ return var_simple_generate(var, vartab, mptmp, value);
+}
+
+/* SCRIPT_BASENAME */
+
+static int var_script_basename_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ char *value = file_basename(mptmp, msr->r->filename);
+ return var_simple_generate(var, vartab, mptmp, value);
+}
+
+/* SCRIPT_FILENAME */
+
+static int var_script_filename_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ char *value = msr->r->filename;
+ return var_simple_generate(var, vartab, mptmp, value);
+}
+
+/* SCRIPT_GID */
+
+static int var_script_gid_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ char *value = apr_psprintf(mptmp, "%ld", (long)msr->r->finfo.group);
+ return var_simple_generate(var, vartab, mptmp, value);
+}
+
+/* SCRIPT_GROUPNAME */
+
+static int var_script_groupname_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ char *value = NULL;
+ if (apr_gid_name_get(&value, msr->r->finfo.group, mptmp) == APR_SUCCESS) {
+ return var_simple_generate(var, vartab, mptmp, value);
+ }
+ return 0;
+}
+
+/* SCRIPT_MODE */
+
+static int var_script_mode_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ char *value = apr_psprintf(mptmp, "%04x", msr->r->finfo.protection);
+ return var_simple_generate(var, vartab, mptmp, value);
+}
+
+/* SCRIPT_UID */
+
+static int var_script_uid_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ char *value = apr_psprintf(mptmp, "%ld", (long)msr->r->finfo.user);
+ return var_simple_generate(var, vartab, mptmp, value);
+}
+
+/* SCRIPT_USERNAME */
+
+static int var_script_username_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ char *value = NULL;
+ if (apr_uid_name_get(&value, msr->r->finfo.user, mptmp) == APR_SUCCESS) {
+ return var_simple_generate(var, vartab, mptmp, value);
+ }
+ return 0;
+}
+
+/* AUTH_TYPE */
+
+static int var_auth_type_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ char *value = msr->r->ap_auth_type;
+ return var_simple_generate(var, vartab, mptmp, value);
+}
+
+/* PATH_INFO */
+
+static int var_path_info_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ const char *value = msr->r->path_info;
+ return var_simple_generate(var, vartab, mptmp, value);
+}
+
+/* RESPONSE_BODY */
+
+static int var_response_body_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ if (msr->resbody_data != NULL) {
+ return var_simple_generate_ex(var, vartab, mptmp,
+ msr->resbody_data, msr->resbody_length);
+ }
+
+ return 0;
+}
+
+/* RESPONSE_HEADERS */
+
+static int var_response_headers_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ const apr_array_header_t *arr = NULL;
+ const apr_table_entry_t *te = NULL;
+ int i, count = 0;
+
+ if (msr->response_headers == NULL) return 0;
+
+ arr = apr_table_elts(msr->response_headers);
+ te = (apr_table_entry_t *)arr->elts;
+ for (i = 0; i < arr->nelts; i++) {
+ int match = 0;
+
+ /* Figure out if we want to include this variable. */
+ if (var->param == NULL) match = 1;
+ else {
+ if (var->param_data != NULL) { /* Regex. */
+ char *my_error_msg = NULL;
+ if (!(msc_regexec((msc_regex_t *)var->param_data, te[i].key,
+ strlen(te[i].key), &my_error_msg) == PCRE_ERROR_NOMATCH)) match = 1;
+ } else { /* Simple comparison. */
+ if (strcasecmp(te[i].key, var->param) == 0) match = 1;
+ }
+ }
+
+ /* If we had a match add this argument to the collection. */
+ if (match) {
+ msre_var *rvar = apr_pmemdup(mptmp, var, sizeof(msre_var));
+
+ rvar->value = te[i].val;
+ rvar->value_len = strlen(rvar->value);
+ rvar->name = apr_psprintf(mptmp, "RESPONSE_HEADERS:%s",
+ log_escape_nq(mptmp, te[i].key));
+ apr_table_addn(vartab, rvar->name, (void *)rvar);
+
+ count++;
+ }
+ }
+
+ return count;
+}
+
+/* RESPONSE_HEADERS_NAMES */
+
+static int var_response_headers_names_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ const apr_array_header_t *arr = NULL;
+ const apr_table_entry_t *te = NULL;
+ int i, count = 0;
+
+ arr = apr_table_elts(msr->response_headers);
+ te = (apr_table_entry_t *)arr->elts;
+ for (i = 0; i < arr->nelts; i++) {
+ int match = 0;
+
+ /* Figure out if we want to include this variable. */
+ if (var->param == NULL) match = 1;
+ else {
+ if (var->param_data != NULL) { /* Regex. */
+ char *my_error_msg = NULL;
+ if (!(msc_regexec((msc_regex_t *)var->param_data, te[i].key,
+ strlen(te[i].key), &my_error_msg) == PCRE_ERROR_NOMATCH)) match = 1;
+ } else { /* Simple comparison. */
+ if (strcasecmp(te[i].key, var->param) == 0) match = 1;
+ }
+ }
+
+ /* If we had a match add this argument to the collection. */
+ if (match) {
+ msre_var *rvar = apr_pmemdup(mptmp, var, sizeof(msre_var));
+
+ rvar->value = te[i].key;
+ rvar->value_len = strlen(rvar->value);
+ rvar->name = apr_psprintf(mptmp, "RESPONSE_HEADERS_NAMES:%s",
+ log_escape_nq(mptmp, te[i].key));
+ apr_table_addn(vartab, rvar->name, (void *)rvar);
+
+ count++;
+ }
+ }
+
+ return count;
+}
+
+/* STATUS_LINE */
+
+static int var_status_line_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ const char *value = msr->status_line;
+ return var_simple_generate(var, vartab, mptmp, value);
+}
+
+/* RESPONSE_PROTOCOL */
+
+static int var_response_protocol_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ const char *value = msr->response_protocol;
+ return var_simple_generate(var, vartab, mptmp, value);
+}
+
+/* RESPONSE_STATUS */
+
+static int var_response_status_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ const char *value = apr_psprintf(mptmp, "%u", msr->response_status);
+ return var_simple_generate(var, vartab, mptmp, value);
+}
+
+/* RESPONSE_CONTENT_TYPE */
+
+static int var_response_content_type(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ return var_simple_generate(var, vartab, mptmp, msr->r->content_type);
+}
+
+/* RESPONSE_CONTENT_LENGTH */
+
+static int var_response_content_length(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ const char *value = apr_psprintf(mptmp, "%" APR_OFF_T_FMT, msr->r->clength);
+ return var_simple_generate(var, vartab, mptmp, value);
+}
+
+/* USERID */
+
+static int var_userid_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ const char *value = msr->userid;
+ return var_simple_generate(var, vartab, mptmp, value);
+}
+
+/* SESSIONID */
+
+static int var_sessionid_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ const char *value = msr->sessionid;
+ return var_simple_generate(var, vartab, mptmp, value);
+}
+
+/* WEBAPPID */
+
+static int var_webappid_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
+ apr_table_t *vartab, apr_pool_t *mptmp)
+{
+ const char *value = msr->txcfg->webappid;
+ return var_simple_generate(var, vartab, mptmp, value);
+}
+
+/* ---------------------------------------------- */
+
+/**
+ *
+ */
+void msre_engine_variable_register(msre_engine *engine, const char *name,
+ unsigned int type, unsigned int argc_min, unsigned int argc_max,
+ fn_var_validate_t validate, fn_var_generate_t generate,
+ unsigned int is_cacheable, unsigned int availability)
+{
+ msre_var_metadata *metadata = (msre_var_metadata *)apr_pcalloc(engine->mp,
+ sizeof(msre_var_metadata));
+ if (metadata == NULL) return;
+
+ metadata->name = name;
+ metadata->type = type;
+ metadata->argc_min = argc_min;
+ metadata->argc_max = argc_max;
+ metadata->validate = validate;
+ metadata->generate = generate;
+ metadata->is_cacheable = is_cacheable;
+ metadata->availability = availability;
+
+ apr_table_setn(engine->variables, name, (void *)metadata);
+}
+
+/**
+ *
+ */
+void msre_engine_register_default_variables(msre_engine *engine) {
+
+ /* ARGS */
+ msre_engine_variable_register(engine,
+ "ARGS",
+ VAR_LIST,
+ 0, 1,
+ var_generic_list_validate,
+ var_args_generate,
+ VAR_CACHE,
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* ARGS_COMBINED_SIZE */
+ msre_engine_variable_register(engine,
+ "ARGS_COMBINED_SIZE",
+ VAR_LIST,
+ 0, 0,
+ NULL,
+ var_args_combined_size_generate,
+ VAR_DONT_CACHE, /* dynamic */
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* ARGS_GET */
+ msre_engine_variable_register(engine,
+ "ARGS_GET",
+ VAR_LIST,
+ 0, 1,
+ var_generic_list_validate,
+ var_args_get_generate,
+ VAR_CACHE,
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* ARGS_GET_NAMES */
+ msre_engine_variable_register(engine,
+ "ARGS_GET_NAMES",
+ VAR_LIST,
+ 0, 1,
+ var_generic_list_validate,
+ var_args_get_names_generate,
+ VAR_CACHE,
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* ARGS_NAMES */
+ msre_engine_variable_register(engine,
+ "ARGS_NAMES",
+ VAR_LIST,
+ 0, 1,
+ var_generic_list_validate,
+ var_args_names_generate,
+ VAR_CACHE,
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* ARGS_POST */
+ msre_engine_variable_register(engine,
+ "ARGS_POST",
+ VAR_LIST,
+ 0, 1,
+ var_generic_list_validate,
+ var_args_post_generate,
+ VAR_CACHE,
+ PHASE_REQUEST_BODY
+ );
+
+ /* ARGS_POST_NAMES */
+ msre_engine_variable_register(engine,
+ "ARGS_POST_NAMES",
+ VAR_LIST,
+ 0, 1,
+ var_generic_list_validate,
+ var_args_post_names_generate,
+ VAR_CACHE,
+ PHASE_REQUEST_BODY
+ );
+
+ /* AUTH_TYPE */
+ msre_engine_variable_register(engine,
+ "AUTH_TYPE",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_auth_type_generate,
+ VAR_CACHE,
+ PHASE_REQUEST_BODY
+ );
+
+ /* ENV */
+ msre_engine_variable_register(engine,
+ "ENV",
+ VAR_LIST,
+ 0, 1,
+ var_env_validate,
+ var_env_generate,
+ VAR_DONT_CACHE,
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* FILES */
+ msre_engine_variable_register(engine,
+ "FILES",
+ VAR_LIST,
+ 0, 1,
+ var_generic_list_validate,
+ var_files_generate,
+ VAR_CACHE,
+ PHASE_REQUEST_BODY
+ );
+
+ /* FILES_COMBINED_SIZE */
+ msre_engine_variable_register(engine,
+ "FILES_COMBINED_SIZE",
+ VAR_LIST,
+ 0, 0,
+ NULL,
+ var_files_combined_size_generate,
+ VAR_DONT_CACHE, /* temp copy */
+ PHASE_REQUEST_BODY
+ );
+
+ /* FILES_NAMES */
+ msre_engine_variable_register(engine,
+ "FILES_NAMES",
+ VAR_LIST,
+ 0, 0,
+ NULL,
+ var_files_names_generate,
+ VAR_CACHE,
+ PHASE_REQUEST_BODY
+ );
+
+ /* FILES_SIZES */
+ msre_engine_variable_register(engine,
+ "FILES_SIZES",
+ VAR_LIST,
+ 0, 1,
+ var_generic_list_validate,
+ var_files_sizes_generate,
+ VAR_DONT_CACHE, /* temp copy */
+ PHASE_REQUEST_BODY
+ );
+
+ /* FILES_TMPNAMES */
+ msre_engine_variable_register(engine,
+ "FILES_TMPNAMES",
+ VAR_LIST,
+ 0, 1,
+ var_generic_list_validate,
+ var_files_tmpnames_generate,
+ VAR_CACHE,
+ PHASE_REQUEST_BODY
+ );
+
+ /* GEO */
+ msre_engine_variable_register(engine,
+ "GEO",
+ VAR_LIST,
+ 0, 1,
+ var_generic_list_validate,
+ var_geo_generate,
+ VAR_DONT_CACHE, /* dynamic */
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* GLOBAL */
+ msre_engine_variable_register(engine,
+ "GLOBAL",
+ VAR_LIST,
+ 1, 1,
+ var_generic_list_validate,
+ var_global_generate,
+ VAR_DONT_CACHE, /* dynamic */
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* HIGHEST_SEVERITY */
+ msre_engine_variable_register(engine,
+ "HIGHEST_SEVERITY",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_highest_severity_generate,
+ VAR_DONT_CACHE, /* dynamic */
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* IP */
+ msre_engine_variable_register(engine,
+ "IP",
+ VAR_LIST,
+ 1, 1,
+ var_generic_list_validate,
+ var_ip_generate,
+ VAR_DONT_CACHE, /* dynamic */
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* MATCHED_VAR */
+ msre_engine_variable_register(engine,
+ "MATCHED_VAR",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_matched_var_generate,
+ VAR_DONT_CACHE, /* dynamic */
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* MATCHED_VAR_NAME */
+ msre_engine_variable_register(engine,
+ "MATCHED_VAR_NAME",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_matched_var_name_generate,
+ VAR_DONT_CACHE, /* dynamic */
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* MODSEC_BUILD */
+ msre_engine_variable_register(engine,
+ "MODSEC_BUILD",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_modsec_build_generate,
+ VAR_CACHE,
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* MULTIPART_BOUNDARY_QUOTED */
+ msre_engine_variable_register(engine,
+ "MULTIPART_BOUNDARY_QUOTED",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_multipart_boundary_quoted_generate,
+ VAR_DONT_CACHE, /* flag */
+ PHASE_REQUEST_BODY
+ );
+
+ /* MULTIPART_BOUNDARY_WHITESPACE */
+ msre_engine_variable_register(engine,
+ "MULTIPART_BOUNDARY_WHITESPACE",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_multipart_boundary_whitespace_generate,
+ VAR_DONT_CACHE, /* flag */
+ PHASE_REQUEST_BODY
+ );
+
+ /* MULTIPART_DATA_AFTER */
+ msre_engine_variable_register(engine,
+ "MULTIPART_DATA_AFTER",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_multipart_data_after_generate,
+ VAR_DONT_CACHE, /* flag */
+ PHASE_REQUEST_BODY
+ );
+
+ /* MULTIPART_DATA_BEFORE */
+ msre_engine_variable_register(engine,
+ "MULTIPART_DATA_BEFORE",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_multipart_data_before_generate,
+ VAR_DONT_CACHE, /* flag */
+ PHASE_REQUEST_BODY
+ );
+
+ /* MULTIPART_HEADER_FOLDING */
+ msre_engine_variable_register(engine,
+ "MULTIPART_HEADER_FOLDING",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_multipart_header_folding_generate,
+ VAR_DONT_CACHE, /* flag */
+ PHASE_REQUEST_BODY
+ );
+
+ /* MULTIPART_CRLF_LINE */
+ msre_engine_variable_register(engine,
+ "MULTIPART_CRLF_LINE",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_multipart_crlf_line_generate,
+ VAR_DONT_CACHE, /* flag */
+ PHASE_REQUEST_BODY
+ );
+
+ /* MULTIPART_CRLF_LF_LINES */
+ msre_engine_variable_register(engine,
+ "MULTIPART_CRLF_LF_LINES",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_multipart_crlf_lf_lines_generate,
+ VAR_DONT_CACHE, /* flag */
+ PHASE_REQUEST_BODY
+ );
+
+ /* MULTIPART_LF_LINE */
+ msre_engine_variable_register(engine,
+ "MULTIPART_LF_LINE",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_multipart_lf_line_generate,
+ VAR_DONT_CACHE, /* flag */
+ PHASE_REQUEST_BODY
+ );
+
+ /* MULTIPART_MISSING_SEMICOLON */
+ msre_engine_variable_register(engine,
+ "MULTIPART_MISSING_SEMICOLON",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_multipart_missing_semicolon_generate,
+ VAR_DONT_CACHE, /* flag */
+ PHASE_REQUEST_BODY
+ );
+
+ /* MULTIPART_INVALID_QUOTING */
+ msre_engine_variable_register(engine,
+ "MULTIPART_INVALID_QUOTING",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_multipart_invalid_quoting_generate,
+ VAR_DONT_CACHE, /* flag */
+ PHASE_REQUEST_BODY
+ );
+
+ /* MULTIPART_STRICT_ERROR */
+ msre_engine_variable_register(engine,
+ "MULTIPART_STRICT_ERROR",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_multipart_strict_error_generate,
+ VAR_DONT_CACHE, /* flag */
+ PHASE_REQUEST_BODY
+ );
+
+ /* MULTIPART_UNMATCHED_BOUNDARY */
+ msre_engine_variable_register(engine,
+ "MULTIPART_UNMATCHED_BOUNDARY",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_multipart_unmatched_boundary_generate,
+ VAR_DONT_CACHE, /* flag */
+ PHASE_REQUEST_BODY
+ );
+
+ /* PATH_INFO */
+ msre_engine_variable_register(engine,
+ "PATH_INFO",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_path_info_generate,
+ VAR_CACHE,
+ PHASE_REQUEST_BODY
+ );
+
+ /* QUERY_STRING */
+ msre_engine_variable_register(engine,
+ "QUERY_STRING",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_query_string_generate,
+ VAR_CACHE,
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* REMOTE_ADDR */
+ msre_engine_variable_register(engine,
+ "REMOTE_ADDR",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_remote_addr_generate,
+ VAR_CACHE,
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* REMOTE_HOST */
+ msre_engine_variable_register(engine,
+ "REMOTE_HOST",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_remote_host_generate,
+ VAR_CACHE,
+ PHASE_REQUEST_BODY
+ );
+
+ /* REMOTE_PORT */
+ msre_engine_variable_register(engine,
+ "REMOTE_PORT",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_remote_port_generate,
+ VAR_DONT_CACHE, /* temp copy */
+ PHASE_REQUEST_BODY
+ );
+
+ /* REMOTE_USER */
+ msre_engine_variable_register(engine,
+ "REMOTE_USER",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_remote_user_generate,
+ VAR_CACHE,
+ PHASE_REQUEST_BODY
+ );
+
+ /* RESOURCE */
+ msre_engine_variable_register(engine,
+ "RESOURCE",
+ VAR_LIST,
+ 1, 1,
+ var_generic_list_validate,
+ var_resource_generate,
+ VAR_DONT_CACHE, /* dynamic */
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* REQBODY_PROCESSOR */
+ msre_engine_variable_register(engine,
+ "REQBODY_PROCESSOR",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_reqbody_processor_generate,
+ VAR_DONT_CACHE, /* temp copy */
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* REQBODY_PROCESSOR_ERROR */
+ msre_engine_variable_register(engine,
+ "REQBODY_PROCESSOR_ERROR",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_reqbody_processor_error_generate,
+ VAR_DONT_CACHE, /* dynamic */
+ PHASE_REQUEST_BODY
+ );
+
+ /* REQBODY_PROCESSOR_ERROR_MSG */
+ msre_engine_variable_register(engine,
+ "REQBODY_PROCESSOR_ERROR_MSG",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_reqbody_processor_error_msg_generate,
+ VAR_DONT_CACHE, /* dynamic */
+ PHASE_REQUEST_BODY
+ );
+
+ /* REQUEST_BASENAME */
+ msre_engine_variable_register(engine,
+ "REQUEST_BASENAME",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_request_basename_generate,
+ VAR_DONT_CACHE, /* temp copy */
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* REQUEST_BODY */
+ msre_engine_variable_register(engine,
+ "REQUEST_BODY",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_request_body_generate,
+ VAR_CACHE,
+ PHASE_REQUEST_BODY
+ );
+
+ /* REQUEST_COOKIES */
+ msre_engine_variable_register(engine,
+ "REQUEST_COOKIES",
+ VAR_LIST,
+ 0, 1,
+ var_generic_list_validate,
+ var_request_cookies_generate,
+ VAR_CACHE,
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* REQUEST_COOKIES_NAMES */
+ msre_engine_variable_register(engine,
+ "REQUEST_COOKIES_NAMES",
+ VAR_LIST,
+ 0, 1,
+ var_generic_list_validate,
+ var_request_cookies_names_generate,
+ VAR_CACHE,
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* REQUEST_FILENAME */
+ msre_engine_variable_register(engine,
+ "REQUEST_FILENAME",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_request_filename_generate,
+ VAR_CACHE,
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* REQUEST_HEADERS */
+ msre_engine_variable_register(engine,
+ "REQUEST_HEADERS",
+ VAR_LIST,
+ 0, 1,
+ var_generic_list_validate,
+ var_request_headers_generate,
+ VAR_CACHE,
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* REQUEST_HEADERS_NAMES */
+ msre_engine_variable_register(engine,
+ "REQUEST_HEADERS_NAMES",
+ VAR_LIST,
+ 0, 1,
+ var_generic_list_validate,
+ var_request_headers_names_generate,
+ VAR_CACHE,
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* REQUEST_LINE */
+ msre_engine_variable_register(engine,
+ "REQUEST_LINE",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_request_line_generate,
+ VAR_CACHE,
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* REQUEST_METHOD */
+ msre_engine_variable_register(engine,
+ "REQUEST_METHOD",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_request_method_generate,
+ VAR_CACHE,
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* REQUEST_PROTOCOL */
+ msre_engine_variable_register(engine,
+ "REQUEST_PROTOCOL",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_request_protocol_generate,
+ VAR_CACHE,
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* REQUEST_URI */
+ msre_engine_variable_register(engine,
+ "REQUEST_URI",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_request_uri_generate,
+ VAR_DONT_CACHE, /* temp copy */
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* REQUEST_URI_RAW */
+ msre_engine_variable_register(engine,
+ "REQUEST_URI_RAW",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_request_uri_raw_generate,
+ VAR_CACHE,
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* RESPONSE_BODY */
+ msre_engine_variable_register(engine,
+ "RESPONSE_BODY",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_response_body_generate,
+ VAR_CACHE,
+ PHASE_RESPONSE_BODY
+ );
+
+ /* RESPONSE_CONTENT_LENGTH */
+ msre_engine_variable_register(engine,
+ "RESPONSE_CONTENT_LENGTH",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_response_content_length,
+ VAR_DONT_CACHE, /* temp copy */
+ PHASE_RESPONSE_HEADERS
+ );
+
+ /* RESPONSE_CONTENT_TYPE */
+ msre_engine_variable_register(engine,
+ "RESPONSE_CONTENT_TYPE",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_response_content_type,
+ VAR_CACHE,
+ PHASE_RESPONSE_HEADERS
+ );
+
+ /* RESPONSE_HEADERS */
+ msre_engine_variable_register(engine,
+ "RESPONSE_HEADERS",
+ VAR_LIST,
+ 0, 1,
+ var_generic_list_validate,
+ var_response_headers_generate,
+ VAR_CACHE,
+ PHASE_RESPONSE_HEADERS
+ );
+
+ /* RESPONSE_HEADERS_NAMES */
+ msre_engine_variable_register(engine,
+ "RESPONSE_HEADERS_NAMES",
+ VAR_LIST,
+ 0, 1,
+ var_generic_list_validate,
+ var_response_headers_names_generate,
+ VAR_CACHE,
+ PHASE_RESPONSE_HEADERS
+ );
+
+ /* RESPONSE_PROTOCOL */
+ msre_engine_variable_register(engine,
+ "RESPONSE_PROTOCOL",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_response_protocol_generate,
+ VAR_CACHE,
+ PHASE_RESPONSE_HEADERS
+ );
+
+ /* RESPONSE_STATUS */
+ msre_engine_variable_register(engine,
+ "RESPONSE_STATUS",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_response_status_generate,
+ VAR_DONT_CACHE, /* temp copy */
+ PHASE_RESPONSE_HEADERS
+ );
+
+ /* RULE */
+ msre_engine_variable_register(engine,
+ "RULE",
+ VAR_LIST,
+ 1, 1,
+ NULL,
+ var_rule_generate,
+ VAR_DONT_CACHE, /* dynamic */
+ PHASE_RESPONSE_HEADERS
+ );
+
+ /* SCRIPT_GID */
+ msre_engine_variable_register(engine,
+ "SCRIPT_GID",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_script_gid_generate,
+ VAR_DONT_CACHE, /* temp copy */
+ PHASE_REQUEST_BODY
+ );
+
+ /* SCRIPT_BASENAME */
+ msre_engine_variable_register(engine,
+ "SCRIPT_BASENAME",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_script_basename_generate,
+ VAR_DONT_CACHE, /* temp copy */
+ PHASE_REQUEST_BODY
+ );
+
+ /* SCRIPT_FILENAME */
+ msre_engine_variable_register(engine,
+ "SCRIPT_FILENAME",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_script_filename_generate,
+ VAR_CACHE,
+ PHASE_REQUEST_BODY
+ );
+
+ /* SCRIPT_GROUPNAME */
+ msre_engine_variable_register(engine,
+ "SCRIPT_GROUPNAME",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_script_groupname_generate,
+ VAR_DONT_CACHE, /* temp copy */
+ PHASE_REQUEST_BODY
+ );
+
+ /* SCRIPT_MODE */
+ msre_engine_variable_register(engine,
+ "SCRIPT_MODE",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_script_mode_generate,
+ VAR_DONT_CACHE, /* temp copy */
+ PHASE_REQUEST_BODY
+ );
+
+ /* SCRIPT_UID */
+ msre_engine_variable_register(engine,
+ "SCRIPT_UID",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_script_uid_generate,
+ VAR_DONT_CACHE, /* temp copy */
+ PHASE_REQUEST_BODY
+ );
+
+ /* SCRIPT_USERNAME */
+ msre_engine_variable_register(engine,
+ "SCRIPT_USERNAME",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_script_username_generate,
+ VAR_DONT_CACHE, /* temp copy */
+ PHASE_REQUEST_BODY
+ );
+
+ /* SERVER_ADDR */
+ msre_engine_variable_register(engine,
+ "SERVER_ADDR",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_server_addr_generate,
+ VAR_CACHE,
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* SERVER_NAME */
+ msre_engine_variable_register(engine,
+ "SERVER_NAME",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_server_name_generate,
+ VAR_CACHE,
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* SERVER_PORT */
+ msre_engine_variable_register(engine,
+ "SERVER_PORT",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_server_port_generate,
+ VAR_DONT_CACHE, /* temp copy */
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* SESSION */
+ msre_engine_variable_register(engine,
+ "SESSION",
+ VAR_LIST,
+ 1, 1,
+ var_generic_list_validate,
+ var_session_generate,
+ VAR_DONT_CACHE, /* dynamic */
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* SESSIONID */
+ msre_engine_variable_register(engine,
+ "SESSIONID",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_sessionid_generate,
+ VAR_DONT_CACHE, /* dynamic */
+ PHASE_RESPONSE_HEADERS
+ );
+
+ /* STATUS_LINE */
+ msre_engine_variable_register(engine,
+ "STATUS_LINE",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_status_line_generate,
+ VAR_CACHE,
+ PHASE_RESPONSE_HEADERS
+ );
+
+ /* USER */
+ msre_engine_variable_register(engine,
+ "USER",
+ VAR_LIST,
+ 1, 1,
+ var_generic_list_validate,
+ var_user_generate,
+ VAR_DONT_CACHE, /* dynamic */
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* USERID */
+ msre_engine_variable_register(engine,
+ "USERID",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_userid_generate,
+ VAR_DONT_CACHE, /* dynamic */
+ PHASE_RESPONSE_HEADERS
+ );
+
+ /* TIME */
+ msre_engine_variable_register(engine,
+ "TIME",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_time_generate,
+ VAR_DONT_CACHE, /* dynamic */
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* TIME_DAY */
+ msre_engine_variable_register(engine,
+ "TIME_DAY",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_time_day_generate,
+ VAR_DONT_CACHE, /* dynamic */
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* TIME_EPOCH */
+ msre_engine_variable_register(engine,
+ "TIME_EPOCH",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_time_epoch_generate,
+ VAR_DONT_CACHE, /* dynamic */
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* TIME_HOUR */
+ msre_engine_variable_register(engine,
+ "TIME_HOUR",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_time_hour_generate,
+ VAR_DONT_CACHE, /* dynamic */
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* TIME_MIN */
+ msre_engine_variable_register(engine,
+ "TIME_MIN",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_time_min_generate,
+ VAR_DONT_CACHE, /* dynamic */
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* TIME_MON */
+ msre_engine_variable_register(engine,
+ "TIME_MON",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_time_mon_generate,
+ VAR_DONT_CACHE, /* dynamic */
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* TIME_SEC */
+ msre_engine_variable_register(engine,
+ "TIME_SEC",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_time_sec_generate,
+ VAR_DONT_CACHE, /* dynamic */
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* TIME_WDAY */
+ msre_engine_variable_register(engine,
+ "TIME_WDAY",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_time_wday_generate,
+ VAR_DONT_CACHE, /* dynamic */
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* TIME_YEAR */
+ msre_engine_variable_register(engine,
+ "TIME_YEAR",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_time_year_generate,
+ VAR_DONT_CACHE, /* dynamic */
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* TX */
+ msre_engine_variable_register(engine,
+ "TX",
+ VAR_LIST,
+ 1, 1,
+ var_generic_list_validate,
+ var_tx_generate,
+ VAR_DONT_CACHE, /* dynamic */
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* WEBAPPID */
+ msre_engine_variable_register(engine,
+ "WEBAPPID",
+ VAR_SIMPLE,
+ 0, 0,
+ NULL,
+ var_webappid_generate,
+ VAR_DONT_CACHE,
+ PHASE_RESPONSE_HEADERS
+ );
+
+ /* WEBSERVER_ERROR_LOG */
+ msre_engine_variable_register(engine,
+ "WEBSERVER_ERROR_LOG",
+ VAR_LIST,
+ 0, 0,
+ NULL,
+ var_webserver_error_log_generate,
+ VAR_DONT_CACHE, /* dynamic */
+ PHASE_REQUEST_HEADERS
+ );
+
+ /* XML */
+ msre_engine_variable_register(engine,
+ "XML",
+ VAR_LIST,
+ 0, 1,
+ var_xml_validate,
+ var_xml_generate,
+ VAR_DONT_CACHE, /* dynamic */
+ PHASE_REQUEST_BODY
+ );
+}
--- /dev/null
+#!@PERL@
+#
+# Example to generate CSV performance data from test results taken from
+# test generated by gen_rx-pm.pl.
+#
+use strict;
+
+my %H = ();
+while (<>) {
+ chomp;
+ my ($op, $label, $n, $i, $value) = (m/\s*\d+\)\s+\S+\s+"([^"]*)"\s+(\S+)\s+(\d+) item\(s\): passed\s+\((\d+)\s+\@\s+([-\+\d\.E]+) msec\s.*/);
+
+ next unless defined($value);
+ $H{$n}{$label} = $value;
+
+}
+
+printf "%s, %s, %s, %s\n", qw(N rx1 rx2 pm1);
+for (sort {$a <=> $b} keys %H) {
+ printf "%s, %s, %s, %s\n", $_, $H{$_}{rx1}, $H{$_}{rx2}, $H{$_}{pm1}
+};
--- /dev/null
+#!@PERL@
+#
+# Generates a test file for comparing @rx and @pm speed.
+#
+use strict;
+use Regexp::Assemble;
+
+srand(424242); # We want this static, so we can compare different runs
+
+my $MIN = $ARGV[0] || 0;
+my $MAX = $ARGV[1] || 5000;
+my $INC = $ARGV[2] || int($MAX * .05);
+my $ITERATIONS = 10000;
+my $MINSTRLEN = 2;
+my $MAXSTRLEN = 8;
+
+my $match = join '', ('a' .. 'z');
+my @param = ();
+my $i=$MIN;
+while ($i <= $MAX) {
+ my $ra = Regexp::Assemble->new;
+
+ while (@param < $i) {
+ unshift @param, rndstr();
+ }
+
+ $ra->add(@param);
+
+ printf (
+ "# rx: %6d\n".
+ "{\n".
+ " comment => \"rx1 %6d item(s)\",\n".
+ " type => \"op\",\n".
+ " name => \"rx\",\n".
+ " param => qr/%s/,\n".
+ " input => \"%s\",\n".
+ " ret => " . (@param ? 0 : 1) . ",".
+ " iterations => %d,\n".
+ "},\n",
+ $i,
+ $i,
+ (@param ? '(?:' . join('|', @param) . ')' : ""),
+ $match,
+ $ITERATIONS,
+ );
+
+ printf (
+ "# rx-optimized: %6d\n".
+ "{\n".
+ " comment => \"rx2 %6d item(s)\",\n".
+ " type => \"op\",\n".
+ " name => \"rx\",\n".
+ " param => qr/%s/,\n".
+ " input => \"%s\",\n".
+ " ret => " . (@param ? 0 : 1) . ",".
+ " iterations => %d,\n".
+ "},\n",
+ $i,
+ $i,
+ (@param ? $ra->as_string : ""),
+ $match,
+ $ITERATIONS,
+ );
+
+ printf (
+ "# pm: %6d\n".
+ "{\n".
+ " comment => \"pm1 %6d item(s)\",\n".
+ " type => \"op\",\n".
+ " name => \"pm\",\n".
+ " param => \"%s\",\n".
+ " input => \"%s\",\n".
+ " ret => 0,".
+ " iterations => %d,\n".
+ "},\n",
+ $i,
+ $i,
+ join(' ', @param ? @param : ("''")),
+ $match,
+ $ITERATIONS,
+ );
+
+ $i = ($i == $MIN) ? ($i + $INC) - ($i % $INC) : $i + $INC;
+
+}
+
+sub rndstr {
+ my @c = ('a' .. 'z');
+ my $rndstr;
+ my $max = int(rand($MAXSTRLEN - $MINSTRLEN)) + $MINSTRLEN;
+ foreach (1 .. $max) {
+ $rndstr .= $c[rand @c];
+ }
+ # We need a string that is not in another string for "last"
+ if ($match =~ m/$rndstr/) {
+ $rndstr = rndstr();
+ }
+ return $rndstr;
+}
--- /dev/null
+### Empty
+{
+ type => "op",
+ name => "beginsWith",
+ param => "",
+ input => "",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "beginsWith",
+ param => "TestCase",
+ input => "",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "beginsWith",
+ param => "",
+ input => "TestCase",
+ ret => 1,
+},
+
+### General
+{
+ type => "op",
+ name => "beginsWith",
+ param => "abcdef",
+ input => "abcdef",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "beginsWith",
+ param => "abcdef",
+ input => "abcdefghi",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "beginsWith",
+ param => "abcdef",
+ input => "abc",
+ ret => 0,
+},
--- /dev/null
+### Empty
+{
+ type => "op",
+ name => "contains",
+ param => "",
+ input => "",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "contains",
+ param => "TestCase",
+ input => "",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "contains",
+ param => "",
+ input => "TestCase",
+ ret => 1,
+},
+
+### General
+{
+ type => "op",
+ name => "contains",
+ param => "abc",
+ input => "abcdefghi",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "contains",
+ param => "def",
+ input => "abcdefghi",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "contains",
+ param => "ghi",
+ input => "abcdefghi",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "contains",
+ param => "ghij",
+ input => "abcdefghi",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "contains",
+ param => "x",
+ input => "x",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "contains",
+ param => "y",
+ input => "xyz",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "contains",
+ param => "hiding",
+ input => "hidinX<-not quite, but is later on->hiding",
+ ret => 1,
+},
--- /dev/null
+### Empty
+{
+ type => "op",
+ name => "containsWord",
+ param => "",
+ input => "",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "containsWord",
+ param => "TestCase",
+ input => "",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "containsWord",
+ param => "",
+ input => "TestCase",
+ ret => 1,
+},
+
+### General
+{
+ type => "op",
+ name => "containsWord",
+ param => "abc",
+ input => "abcdefghi",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "containsWord",
+ param => "def",
+ input => "abcdefghi",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "containsWord",
+ param => "ghi",
+ input => "abcdefghi",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "containsWord",
+ param => "abc",
+ input => "abc def ghi",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "containsWord",
+ param => "def",
+ input => "abc def ghi",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "containsWord",
+ param => "ghi",
+ input => "abc def ghi",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "containsWord",
+ param => "abc",
+ input => "abc\0def ghi",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "containsWord",
+ param => "def",
+ input => "abc\0def ghi",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "containsWord",
+ param => "x",
+ input => "x",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "containsWord",
+ param => "x",
+ input => " x ",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "containsWord",
+ param => "y",
+ input => "xyz",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "containsWord",
+ param => "hiding",
+ input => "hidingX<-not on word boundary, but is later on->hiding",
+ ret => 1,
+},
--- /dev/null
+### Empty
+{
+ type => "op",
+ name => "endsWith",
+ param => "",
+ input => "",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "endsWith",
+ param => "TestCase",
+ input => "",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "endsWith",
+ param => "",
+ input => "TestCase",
+ ret => 1,
+},
+
+### General
+{
+ type => "op",
+ name => "endsWith",
+ param => "abc",
+ input => "abcdefghi",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "endsWith",
+ param => "def",
+ input => "abcdefghi",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "endsWith",
+ param => "ghi",
+ input => "abcdefghi",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "endsWith",
+ param => "ghi",
+ input => "abcdef\0ghi",
+ ret => 1,
+},
--- /dev/null
+### Empty
+{
+ type => "op",
+ name => "eq",
+ param => "0",
+ input => "",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "eq",
+ param => "5",
+ input => "",
+ ret => 0,
+},
+
+### Invalid
+# xxx interpreted as 0
+{
+ type => "op",
+ name => "eq",
+ param => "xxx",
+ input => "0",
+ ret => 1,
+},
+# xxx interpreted as 0
+{
+ type => "op",
+ name => "eq",
+ param => "xxx",
+ input => "5",
+ ret => 0,
+},
+# xxx interpreted as 0
+{
+ type => "op",
+ name => "eq",
+ param => "xxx",
+ input => "-1",
+ ret => 0,
+},
+# xxx interpreted as 0
+{
+ type => "op",
+ name => "eq",
+ param => "0",
+ input => "xxx",
+ ret => 1,
+},
+# xxx interpreted as 0
+{
+ type => "op",
+ name => "eq",
+ param => "5",
+ input => "xxx",
+ ret => 0,
+},
+
+### General
+{
+ type => "op",
+ name => "eq",
+ param => "0",
+ input => "-5",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "eq",
+ param => "0",
+ input => "0",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "eq",
+ param => "0",
+ input => "5",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "eq",
+ param => "5",
+ input => "0",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "eq",
+ param => "5",
+ input => "5",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "eq",
+ param => "5",
+ input => "10",
+ ret => 0,
+},
--- /dev/null
+### Empty
+{
+ type => "op",
+ name => "ge",
+ param => "0",
+ input => "",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "ge",
+ param => "5",
+ input => "",
+ ret => 0,
+},
+
+### Invalid
+# xxx interpreted as 0
+{
+ type => "op",
+ name => "ge",
+ param => "xxx",
+ input => "5",
+ ret => 1,
+},
+# xxx interpreted as 0
+{
+ type => "op",
+ name => "ge",
+ param => "xxx",
+ input => "-1",
+ ret => 0,
+},
+# xxx interpreted as 0
+{
+ type => "op",
+ name => "ge",
+ param => "0",
+ input => "xxx",
+ ret => 1,
+},
+# xxx interpreted as 0
+{
+ type => "op",
+ name => "ge",
+ param => "5",
+ input => "xxx",
+ ret => 0,
+},
+
+### General
+{
+ type => "op",
+ name => "ge",
+ param => "0",
+ input => "-5",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "ge",
+ param => "0",
+ input => "0",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "ge",
+ param => "0",
+ input => "5",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "ge",
+ param => "5",
+ input => "0",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "ge",
+ param => "5",
+ input => "5",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "ge",
+ param => "5",
+ input => "10",
+ ret => 1,
+},
--- /dev/null
+### Empty
+# NOTE: All will return 0 because of lacking DB
+{
+ type => "op",
+ name => "geoLookup",
+ param => "",
+ input => "",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "geoLookup",
+ param => "TestCase",
+ input => "",
+ ret => 0,
+},
+
+# Failed Lookup
+{
+ type => "op",
+ name => "geoLookup",
+ param => "",
+ input => "127.0.0.1",
+ ret => 0,
+},
+
+# Good
+{
+ type => "op",
+ name => "geoLookup",
+ param => "",
+ input => "216.75.21.122",
+ #ret => 1,
+ ret => 0,
+},
+{
+ type => "op",
+ name => "geoLookup",
+ param => "",
+ input => "www.modsecurity.org",
+ #ret => 1,
+ ret => 0,
+},
+
--- /dev/null
+### Empty
+{
+ type => "op",
+ name => "gt",
+ param => "0",
+ input => "",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "gt",
+ param => "5",
+ input => "",
+ ret => 0,
+},
+
+### Invalid
+# xxx interpreted as 0
+{
+ type => "op",
+ name => "gt",
+ param => "xxx",
+ input => "5",
+ ret => 1,
+},
+# xxx interpreted as 0
+{
+ type => "op",
+ name => "gt",
+ param => "xxx",
+ input => "-1",
+ ret => 0,
+},
+# xxx interpreted as 0
+{
+ type => "op",
+ name => "gt",
+ param => "-1",
+ input => "xxx",
+ ret => 1,
+},
+# xxx interpreted as 0
+{
+ type => "op",
+ name => "gt",
+ param => "5",
+ input => "xxx",
+ ret => 0,
+},
+
+### General
+{
+ type => "op",
+ name => "gt",
+ param => "0",
+ input => "-5",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "gt",
+ param => "0",
+ input => "0",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "gt",
+ param => "0",
+ input => "5",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "gt",
+ param => "5",
+ input => "0",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "gt",
+ param => "5",
+ input => "5",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "gt",
+ param => "5",
+ input => "10",
+ ret => 1,
+},
--- /dev/null
+### Empty
+{
+ type => "op",
+ name => "le",
+ param => "0",
+ input => "",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "le",
+ param => "5",
+ input => "",
+ ret => 1,
+},
+
+### Invalid
+# xxx interpreted as 0
+{
+ type => "op",
+ name => "le",
+ param => "xxx",
+ input => "5",
+ ret => 0,
+},
+# xxx interpreted as 0
+{
+ type => "op",
+ name => "le",
+ param => "xxx",
+ input => "-1",
+ ret => 1,
+},
+# xxx interpreted as 0
+{
+ type => "op",
+ name => "le",
+ param => "0",
+ input => "xxx",
+ ret => 1,
+},
+# xxx interpreted as 0
+{
+ type => "op",
+ name => "le",
+ param => "5",
+ input => "xxx",
+ ret => 1,
+},
+
+### General
+{
+ type => "op",
+ name => "le",
+ param => "0",
+ input => "-5",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "le",
+ param => "0",
+ input => "0",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "le",
+ param => "0",
+ input => "5",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "le",
+ param => "5",
+ input => "0",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "le",
+ param => "5",
+ input => "5",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "le",
+ param => "5",
+ input => "10",
+ ret => 0,
+},
--- /dev/null
+### Empty
+{
+ type => "op",
+ name => "lt",
+ param => "0",
+ input => "",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "lt",
+ param => "5",
+ input => "",
+ ret => 1,
+},
+
+### Invalid
+# xxx interpreted as 0
+{
+ type => "op",
+ name => "lt",
+ param => "xxx",
+ input => "5",
+ ret => 0,
+},
+# xxx interpreted as 0
+{
+ type => "op",
+ name => "lt",
+ param => "xxx",
+ input => "-1",
+ ret => 1,
+},
+# xxx interpreted as 0
+{
+ type => "op",
+ name => "lt",
+ param => "-1",
+ input => "xxx",
+ ret => 0,
+},
+# xxx interpreted as 0
+{
+ type => "op",
+ name => "lt",
+ param => "5",
+ input => "xxx",
+ ret => 1,
+},
+
+### General
+{
+ type => "op",
+ name => "lt",
+ param => "0",
+ input => "-5",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "lt",
+ param => "0",
+ input => "0",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "lt",
+ param => "0",
+ input => "5",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "lt",
+ param => "5",
+ input => "0",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "lt",
+ param => "5",
+ input => "5",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "lt",
+ param => "5",
+ input => "10",
+ ret => 0,
+},
--- /dev/null
+### Empty
+{
+ type => "op",
+ name => "m",
+ param => "",
+ input => "",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "m",
+ param => "TestCase",
+ input => "",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "m",
+ param => "",
+ input => "TestCase",
+ ret => 1,
+},
+
+### General
+{
+ type => "op",
+ name => "m",
+ param => "abc",
+ input => "abcdefghi",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "m",
+ param => "def",
+ input => "abcdefghi",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "m",
+ param => "ghi",
+ input => "abcdefghi",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "m",
+ param => "ghij",
+ input => "abcdefghi",
+ ret => 0,
+},
--- /dev/null
+### Empty
+{
+ type => "op",
+ name => "noMatch",
+ param => "",
+ input => "",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "noMatch",
+ param => "TestCase",
+ input => "",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "noMatch",
+ param => "",
+ input => "TestCase",
+ ret => 0,
+},
+
--- /dev/null
+### Empty
+{
+ type => "op",
+ name => "pm",
+ param => "TestCase",
+ input => "",
+ ret => 0,
+},
+
+### General
+{
+ type => "op",
+ name => "pm",
+ param => "abc",
+ input => "abcdefghi",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "pm",
+ param => "def",
+ input => "abcdefghi",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "pm",
+ param => "ghi",
+ input => "abcdefghi",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "pm",
+ param => "ghij",
+ input => "abcdefghi",
+ ret => 0,
+},
+
+### Multiple
+{
+ type => "op",
+ name => "pm",
+ param => "abc def ghi",
+ input => "abcxxxyyy",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "pm",
+ param => "abc def ghi",
+ input => "xxxabcyyy",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "pm",
+ param => "abc def ghi",
+ input => "xxxyyyabc",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "pm",
+ param => "abc def ghi",
+ input => "defxxxyyy",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "pm",
+ param => "abc def ghi",
+ input => "xxxdefyyy",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "pm",
+ param => "abc def ghi",
+ input => "xxxyyydef",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "pm",
+ param => "abc def ghi",
+ input => "ghixxxyyy",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "pm",
+ param => "abc def ghi",
+ input => "xxxghiyyy",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "pm",
+ param => "abc def ghi",
+ input => "xxxyyyghi",
+ ret => 1,
+},
+
+### Long
+{
+ type => "op",
+ name => "pm",
+ param => "000 001 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016 017 018 019 020 021 022 023 024 025 026 027 028 029 030 031 032 033 034 035 036 037 038 039 040 041 042 043 044 045 046 047 048 049 050 051 052 053 054 055 056 057 058 059 060 061 062 063 064 065 066 067 068 069 070 071 072 073 074 075 076 077 078 079 080 081 082 083 084 085 086 087 088 089 090 091 092 093 094 095 096 097 098 099 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999",
+ input => "xxxyyy999",
+ ret => 1,
+},
--- /dev/null
+abc
+def
+ghi
+xxx yyy zzz
--- /dev/null
+### No Match
+{
+ type => "op",
+ name => "pmFromFile",
+ param => "op/pmFromFile-01.dat",
+ input => "xxxyyyzzz",
+ ret => 0,
+},
+
+### Multiple
+{
+ type => "op",
+ name => "pmFromFile",
+ param => "op/pmFromFile-01.dat",
+ input => "defxxxyyy",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "pmFromFile",
+ param => "op/pmFromFile-01.dat",
+ input => "xxxdefyyy",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "pmFromFile",
+ param => "op/pmFromFile-01.dat",
+ input => "xxxyyydef",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "pmFromFile",
+ param => "op/pmFromFile-01.dat",
+ input => "xxx yyy zzz",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "pmFromFile",
+ param => "op/pmFromFile-01.dat",
+ input => "xxx yyy",
+ ret => 0,
+},
--- /dev/null
+### Empty
+{
+ type => "op",
+ name => "rx",
+ param => "",
+ input => "",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "rx",
+ param => "TestCase",
+ input => "",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "rx",
+ param => "",
+ input => "TestCase",
+ ret => 1,
+},
+
+### General
+{
+ type => "op",
+ name => "rx",
+ param => "abc",
+ input => "abcdefghi",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "rx",
+ param => "def",
+ input => "abcdefghi",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "rx",
+ param => "ghi",
+ input => "abcdefghi",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "rx",
+ param => "ghij",
+ input => "abcdefghi",
+ ret => 0,
+},
+
+### Complex regex
+{
+ type => "op",
+ name => "rx",
+ param => qr/^([^=])\s*=\s*((?:abc)+(?:def|ghi){2})$/i,
+ input => "x =AbCDeFgHi",
+ ret => 1,
+},
+
--- /dev/null
+### Empty
+{
+ type => "op",
+ name => "streq",
+ param => "",
+ input => "",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "streq",
+ param => "TestCase",
+ input => "",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "streq",
+ param => "",
+ input => "TestCase",
+ ret => 0,
+},
+
+### General
+{
+ type => "op",
+ name => "streq",
+ param => "abc",
+ input => "abcdefghi",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "streq",
+ param => "def",
+ input => "abcdefghi",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "streq",
+ param => "ghi",
+ input => "abcdefghi",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "streq",
+ param => "abcdefghi",
+ input => "abcdefghi",
+ ret => 1,
+},
--- /dev/null
+### Empty
+{
+ type => "op",
+ name => "unconditionalMatch",
+ param => "",
+ input => "",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "unconditionalMatch",
+ param => "TestCase",
+ input => "",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "unconditionalMatch",
+ param => "",
+ input => "TestCase",
+ ret => 1,
+},
+
--- /dev/null
+### Empty
+{
+ type => "op",
+ name => "validateByteRange",
+ param => "0-255",
+ input => "",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "validateByteRange",
+ param => "",
+ input => "TestCase",
+ ret => 1,
+},
+
+### Invalid
+{
+ type => "op",
+ name => "validateByteRange",
+ param => "xxx",
+ input => "TestCase",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "validateByteRange",
+ param => "xxx",
+ input => "\x00",
+ ret => 0,
+},
+
+### General
+{
+ type => "op",
+ name => "validateByteRange",
+ param => "0-255",
+ input => "abcdefghi",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "validateByteRange",
+ param => ord("a")."-".ord("i"),
+ input => "abcdefghi",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "validateByteRange",
+ param => ord("a")."-".ord("i"),
+ input => "abcdefghij",
+ ret => 1,
+},
--- /dev/null
+### Empty
+{
+ type => "op",
+ name => "validateUrlEncoding",
+ param => "",
+ input => "",
+ ret => 0,
+},
+
+### General
+{
+ type => "op",
+ name => "validateUrlEncoding",
+ param => "",
+ input => "Hello%20World!",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "validateUrlEncoding",
+ param => "",
+ input => "Hello+World!",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "validateUrlEncoding",
+ param => "",
+ input => "HelloWorld!",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "validateUrlEncoding",
+ param => "",
+ input => "%00Hello%20World!",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "validateUrlEncoding",
+ param => "",
+ input => "Hello%20World!%00",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "validateUrlEncoding",
+ param => "",
+ input => "%00",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "validateUrlEncoding",
+ param => "",
+ input => "%ff",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "validateUrlEncoding",
+ param => "",
+ input => "%0",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "validateUrlEncoding",
+ param => "",
+ input => "%f",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "validateUrlEncoding",
+ param => "",
+ input => "%",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "validateUrlEncoding",
+ param => "",
+ input => "%0z",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "validateUrlEncoding",
+ param => "",
+ input => "%z0",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "validateUrlEncoding",
+ param => "",
+ input => "%0%",
+ ret => 1,
+},
--- /dev/null
+### Empty
+{
+ type => "op",
+ name => "validateUtf8Encoding",
+ param => "",
+ input => "",
+ ret => 0,
+},
+
+### Valid "I can eat glass and it does not hurt me."
+# Greek
+{
+ type => "op",
+ name => "validateUtf8Encoding",
+ param => "",
+ input => "ὕαλον ϕαγεῖν δύναμαι· τοῦτο οὔ με βλάπτει.",
+ ret => 0,
+},
+# French
+{
+ type => "op",
+ name => "validateUtf8Encoding",
+ param => "",
+ input => "Je peux manger du verre, ça ne me fait pas de mal.",
+ ret => 0,
+},
+# Spanish
+{
+ type => "op",
+ name => "validateUtf8Encoding",
+ param => "",
+ input => "Puedo comer vidrio, no me hace daño.",
+ ret => 0,
+},
+# Esparanto
+{
+ type => "op",
+ name => "validateUtf8Encoding",
+ param => "",
+ input => "Mi povas manĝi vitron, ĝi ne damaĝas min.",
+ ret => 0,
+},
+# Latin
+{
+ type => "op",
+ name => "validateUtf8Encoding",
+ param => "",
+ input => "Ic mæg glæs eotan ond hit ne hearmiað me.",
+ ret => 0,
+},
+# Serbian
+{
+ type => "op",
+ name => "validateUtf8Encoding",
+ param => "",
+ input => "Могу јести стакло а да ми не шкоди.",
+ ret => 0,
+},
+# Russian
+{
+ type => "op",
+ name => "validateUtf8Encoding",
+ param => "",
+ input => "Я могу есть стекло, оно мне не вредит.",
+ ret => 0,
+},
+# Armenian
+{
+ type => "op",
+ name => "validateUtf8Encoding",
+ param => "",
+ input => "Կրնամ ապակի ուտել և ինծի անհանգիստ չըներ։",
+ ret => 0,
+},
+# Turkish
+{
+ type => "op",
+ name => "validateUtf8Encoding",
+ param => "",
+ input => "جام ييه بلورم بڭا ضررى طوقونمز",
+ ret => 0,
+},
+# Hindi
+{
+ type => "op",
+ name => "validateUtf8Encoding",
+ param => "",
+ input => "मैं काँच खा सकता हूँ, मुझे उस से कोई पीडा नहीं होती.",
+ ret => 0,
+},
+# Arabic
+{
+ type => "op",
+ name => "validateUtf8Encoding",
+ param => "",
+ input => "أنا قادر على أكل الزجاج و هذا لا يؤلمني.",
+ ret => 0,
+},
+# Hebrew
+{
+ type => "op",
+ name => "validateUtf8Encoding",
+ param => "",
+ input => "אני יכול לאכול זכוכית וזה לא מזיק לי.",
+ ret => 0,
+},
+# Japanese
+{
+ type => "op",
+ name => "validateUtf8Encoding",
+ param => "",
+ input => "私はガラスを食べられます。それは私を傷つけません。",
+ ret => 0,
+},
+# Thai
+{
+ type => "op",
+ name => "validateUtf8Encoding",
+ param => "",
+ input => "ฉันกินกระจกได้ แต่มันไม่ทำให้ฉันเจ็บ",
+ ret => 0,
+},
+# Korean
+{
+ type => "op",
+ name => "validateUtf8Encoding",
+ param => "",
+ input => "나는 유리를 먹을 수 있어요. 그래도 아프지 않아요",
+ ret => 0,
+},
+# Navajo
+{
+ type => "op",
+ name => "validateUtf8Encoding",
+ param => "",
+ input => "Tsésǫʼ yishą́ągo bííníshghah dóó doo shił neezgai da.",
+ ret => 0,
+},
+# Icelandic
+{
+ type => "op",
+ name => "validateUtf8Encoding",
+ param => "",
+ input => "Ég get etið gler án þess að meiða mig.",
+ ret => 0,
+},
+# Sanskrit
+{
+ type => "op",
+ name => "validateUtf8Encoding",
+ param => "",
+ input => "काचं शक्नोम्यत्तुम् । नोपहिनस्ति माम् ॥",
+ ret => 0,
+},
+# English Braille
+{
+ type => "op",
+ name => "validateUtf8Encoding",
+ param => "",
+ input => "⠊⠀⠉⠁⠝⠀⠑⠁⠞⠀⠛⠇⠁⠎⠎⠀⠁⠝⠙⠀⠊⠞⠀⠙⠕⠑⠎⠝⠞⠀⠓⠥⠗⠞⠀⠍⠑",
+ ret => 0,
+},
+# Danish
+{
+ type => "op",
+ name => "validateUtf8Encoding",
+ param => "",
+ input => "Jeg kan spise glas, det gør ikke ondt på mig.",
+ ret => 0,
+},
+# Hungarian
+{
+ type => "op",
+ name => "validateUtf8Encoding",
+ param => "",
+ input => "Meg tudom enni az üveget, nem lesz tőle bajom.",
+ ret => 0,
+},
+# Estonian
+{
+ type => "op",
+ name => "validateUtf8Encoding",
+ param => "",
+ input => "Ma võin klaasi süüa, see ei tee mulle midagi.",
+ ret => 0,
+},
+# Czech
+{
+ type => "op",
+ name => "validateUtf8Encoding",
+ param => "",
+ input => "Mohu jíst sklo, neublíží mi.",
+ ret => 0,
+},
+# Slovak
+{
+ type => "op",
+ name => "validateUtf8Encoding",
+ param => "",
+ input => "Môžem jesť sklo. Nezraní ma.",
+ ret => 0,
+},
+# Polish
+{
+ type => "op",
+ name => "validateUtf8Encoding",
+ param => "",
+ input => "Mogę jeść szkło i mi nie szkodzi.",
+ ret => 0,
+},
+# Symbols
+{
+ type => "op",
+ name => "validateUtf8Encoding",
+ param => "",
+ input=>"∮E⋅da=Qn→∞∑f(i)=∏g(i)∀x∈ℝ:⌈x⌉=−⌊−x⌋α∧¬β=¬(¬α∨β)ℕ⊆ℕ₀⊂ℤ⊂ℚ⊂ℝ⊂ℂ⊥<a≠b≡c≤d≪⊤⇒(A⇔B)2H₂+O₂⇌2H₂OR=4.7kΩ⌀200mm‘’“”'´`‚‘„“†‡‰•3–4—−5/+5™…1lI|0OD8B€",
+ ret => 0,
+},
+### Invalid
+# Umlauted a
+{
+ type => "op",
+ name => "validateUtf8Encoding",
+ param => "",
+ input => "\x00\xe4",
+ ret => 1,
+},
+# Umlauted a
+{
+ type => "op",
+ name => "validateUtf8Encoding",
+ param => "",
+ input => "\xe4",
+ ret => 1,
+},
+#
+{
+ type => "op",
+ name => "validateUtf8Encoding",
+ param => "",
+ input => "\x03\xbf",
+ ret => 1,
+},
+#
+{
+ type => "op",
+ name => "validateUtf8Encoding",
+ param => "",
+ input => "\xc9\x3b",
+ ret => 1,
+},
+### Invalid Full width
+#
+{
+ type => "op",
+ name => "validateUtf8Encoding",
+ param => "",
+ input => "\xFF\x00",
+ ret => 1,
+},
--- /dev/null
+### Empty
+# empty w/re not matching empty
+{
+ type => "op",
+ name => "verifyCC",
+ param => "\d+",
+ input => "",
+ ret => 0,
+},
+# empty w/re matching empty
+{
+ type => "op",
+ name => "verifyCC",
+ param => '\d*',
+ input => "",
+ ret => 0,
+},
+
+### Non-matching
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "TestCase",
+ ret => 0,
+},
+
+### No digits in match
+{
+ type => "op",
+ name => "verifyCC",
+ param => 'TestCase',
+ input => "TestCase",
+ ret => 0,
+},
+
+### Too generic RE w/no matchs (Luhn will be called until all fail)
+{
+ type => "op",
+ name => "verifyCC",
+ param => '.*',
+ input => "TestCase",
+ ret => 0,
+},
+
+### Test Good CC#
+# Mastercard
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "5484605089158216",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "5574407071707154",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "5351341509714210",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "5585166974020647",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "5492180332479256",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "5111178142162816",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "5511424748431031",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "5259964281562326",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "5138342589974385",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "5362069587634979",
+ ret => 1,
+},
+# VISA 16 digit
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "4916545704601136",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "4539501231827691",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "4556338049595394",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "4929326438756024",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "4485432027326322",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "4532104980682081",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "4485974616349298",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "4916580487207199",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "4532009746910413",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "4024007144622932",
+ ret => 1,
+},
+# VISA 13 digit
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "4556324125126",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "4067482954141",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "4532402654980",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "4539709679875",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "4024007182237",
+ ret => 1,
+},
+# American Express
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "343918934573386",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "344881778330710",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "345439478558905",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "346465614421111",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "372263817755618",
+ ret => 1,
+},
+# Discover
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "6011402777433576",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "6011890045362751",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "6011439091242416",
+ ret => 1,
+},
+# Diners Club
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "30162519308318",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "30311556856867",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "36850112043985",
+ ret => 1,
+},
+# enRoute
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "201427829075664",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "201434726660424",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "201453368666085",
+ ret => 1,
+},
+# JCB 15 digit
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "210091499965007",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "210072739882947",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "180013970064072",
+ ret => 1,
+},
+# JCB 16 digit
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "3096676276259096",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "3158726040010070",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "3096531217494742",
+ ret => 1,
+},
+# Voyager
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "869974262335041",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "869905005856398",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "869950500085465",
+ ret => 1,
+},
+
+### Test Bad CC#
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d+)(?:[^\d]|$)',
+ input => "1234567890012345",
+ ret => 0,
+},
+
+### Test regex + Luhn
+# from http://www.merriampark.com/anatomycc.htm
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d{4}\-?\d{4}\-?\d{2}\-?\d{2}\-?\d{1,4})(?:[^\d]|$)',
+ input => "4417123456789113",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d{4}\-?\d{4}\-?\d{2}\-?\d{2}\-?\d{1,4})(?:[^\d]|$)',
+ input => "4408041234567893",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d{4}\-?\d{4}\-?\d{2}\-?\d{2}\-?\d{1,4})(?:[^\d]|$)',
+ input => "4408041234567890",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d{4}\-?\d{4}\-?\d{2}\-?\d{2}\-?\d{1,4})(?:[^\d]|$)',
+ input => "4417123456789112",
+ ret => 0,
+},
+# on word boundary
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d{4}\-?\d{4}\-?\d{2}\-?\d{2}\-?\d{1,4})(?:[^\d]|$)',
+ input => "a5484605089158216",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d{4}\-?\d{4}\-?\d{2}\-?\d{2}\-?\d{1,4})(?:[^\d]|$)',
+ input => "a5484605089158216b",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d{4}\-?\d{4}\-?\d{2}\-?\d{2}\-?\d{1,4})(?:[^\d]|$)',
+ input => "5484605089158216b",
+ ret => 1,
+},
+# valid patterns
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d{4}\-?\d{4}\-?\d{2}\-?\d{2}\-?\d{1,4})(?:[^\d]|$)',
+ input => "5484-6050-8915-8216",
+ ret => 1,
+},
+# changed digit from table above
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d{4}\-?\d{4}\-?\d{2}\-?\d{2}\-?\d{1,4})(?:[^\d]|$)',
+ input => "5484605089158217",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d{4}\-?\d{4}\-?\d{2}\-?\d{2}\-?\d{1,4})(?:[^\d]|$)',
+ input => "5574407071807154",
+ ret => 0,
+},
+# wrong patterns
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d{4}\-?\d{4}\-?\d{2}\-?\d{2}\-?\d{1,4})(?:[^\d]|$)',
+ input => "5-484-6050-8915-8216",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d{4}\-?\d{4}\-?\d{2}\-?\d{2}\-?\d{1,4})(?:[^\d]|$)',
+ input => "5484 6050 8915 8216",
+ ret => 0,
+},
+# not on digits boundary
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d{4}\-?\d{4}\-?\d{2}\-?\d{2}\-?\d{1,4})(?:[^\d]|$)',
+ input => "15484605089158216",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d{4}\-?\d{4}\-?\d{2}\-?\d{2}\-?\d{1,4})(?:[^\d]|$)',
+ input => "154846050891582162",
+ ret => 0,
+},
+{
+ type => "op",
+ name => "verifyCC",
+ param => '(?:^|[^\d])(\d{4}\-?\d{4}\-?\d{2}\-?\d{2}\-?\d{1,4})(?:[^\d]|$)',
+ input => "54846050891582162",
+ ret => 0,
+},
--- /dev/null
+### Empty
+{
+ type => "op",
+ name => "within",
+ param => "",
+ input => "",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "within",
+ param => "TestCase",
+ input => "",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "within",
+ param => "",
+ input => "TestCase",
+ ret => 0,
+},
+
+### General
+{
+ type => "op",
+ name => "within",
+ param => "abcdefghi",
+ input => "abc",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "within",
+ param => "abcdefghi",
+ input => "def",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "within",
+ param => "abcdefghi",
+ input => "ghi",
+ ret => 1,
+},
+{
+ type => "op",
+ name => "within",
+ param => "abcdefghi",
+ input => "ghij",
+ ret => 0,
+},
--- /dev/null
+### Tests all of the actions in each phase
+
+# Pass
+{
+ type => "action",
+ comment => "pass in phase:1",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecAction "phase:1,pass"
+ SecAction "phase:1,deny"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Warning. Unconditional match in SecAction/, 1 ],
+ },
+ match_response => {
+ status => qr/^403$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "pass in phase:2",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecAction "phase:2,pass"
+ SecAction "phase:2,deny"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Warning. Unconditional match in SecAction/, 1 ],
+ },
+ match_response => {
+ status => qr/^403$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "pass in phase:3",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecDebugLog "$ENV{DEBUG_LOG}"
+ SecDebugLogLevel 4
+ SecAction "phase:3,pass"
+ SecAction "phase:3,deny"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Warning. Unconditional match in SecAction/, 1 ],
+ },
+ match_response => {
+ status => qr/^403$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "pass in phase:4",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecDebugLog "$ENV{DEBUG_LOG}"
+ SecDebugLogLevel 4
+ SecAction "phase:4,pass"
+ SecAction "phase:4,deny"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Warning. Unconditional match in SecAction/, 1 ],
+ },
+ match_response => {
+ status => qr/^403$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+
+# Allow
+{
+ type => "action",
+ comment => "allow in phase:1",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecAction "phase:1,allow"
+ SecAction "phase:1,deny"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Access allowed \(phase 1\). Unconditional match in SecAction/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "allow in phase:2",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecAction "phase:2,allow"
+ SecAction "phase:2,deny"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Access allowed \(phase 2\). Unconditional match in SecAction/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "allow in phase:3",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecDebugLog "$ENV{DEBUG_LOG}"
+ SecDebugLogLevel 4
+ SecAction "phase:3,allow"
+ SecAction "phase:3,deny"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Access allowed \(phase 3\). Unconditional match in SecAction/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "allow in phase:4",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecDebugLog "$ENV{DEBUG_LOG}"
+ SecDebugLogLevel 4
+ SecAction "phase:4,allow"
+ SecAction "phase:4,deny"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Access allowed \(phase 4\). Unconditional match in SecAction/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+
+# Deny
+{
+ type => "action",
+ comment => "deny in phase:1",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecAction "phase:1,deny"
+ ),
+ match_log => {
+ error => [ qr/Access denied with code 403 \(phase 1\). Unconditional match in SecAction./, 1 ],
+ },
+ match_response => {
+ status => qr/^403$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "deny in phase:2",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecAction "phase:2,deny"
+ ),
+ match_log => {
+ error => [ qr/Access denied with code 403 \(phase 2\). Unconditional match in SecAction./, 1 ],
+ },
+ match_response => {
+ status => qr/^403$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "deny in phase:3",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecDebugLog "$ENV{DEBUG_LOG}"
+ SecDebugLogLevel 4
+ SecAction "phase:3,deny"
+ ),
+ match_log => {
+ error => [ qr/Access denied with code 403 \(phase 3\). Unconditional match in SecAction./, 1 ],
+ },
+ match_response => {
+ status => qr/^403$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "deny in phase:4",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecDebugLog "$ENV{DEBUG_LOG}"
+ SecDebugLogLevel 4
+ SecAction "phase:4,deny"
+ ),
+ match_log => {
+ error => [ qr/Access denied with code 403 \(phase 4\). Unconditional match in SecAction./, 1 ],
+ },
+ match_response => {
+ status => qr/^403$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+
+# Drop
+{
+ type => "action",
+ comment => "drop in phase:1",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecAction "phase:1,drop"
+ ),
+ match_log => {
+ error => [ qr/Access denied with connection close \(phase 1\). Unconditional match in SecAction./, 1 ],
+ },
+ match_response => {
+ status => qr/^500$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "drop in phase:2",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecAction "phase:2,drop"
+ ),
+ match_log => {
+ error => [ qr/Access denied with connection close \(phase 2\). Unconditional match in SecAction./, 1 ],
+ },
+ match_response => {
+ status => qr/^500$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "drop in phase:3",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecDebugLog "$ENV{DEBUG_LOG}"
+ SecDebugLogLevel 4
+ SecAction "phase:3,drop"
+ ),
+ match_log => {
+ error => [ qr/Access denied with connection close \(phase 3\). Unconditional match in SecAction./, 1 ],
+ },
+ match_response => {
+ status => qr/^500$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "drop in phase:4",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecDebugLog "$ENV{DEBUG_LOG}"
+ SecDebugLogLevel 4
+ SecAction "phase:4,drop"
+ ),
+ match_log => {
+ error => [ qr/Access denied with connection close \(phase 4\). Unconditional match in SecAction./, 1 ],
+ },
+ match_response => {
+ status => qr/^500$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+
+# Redirect
+{
+ type => "action",
+ comment => "redirect in phase:1 (get)",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecRule REQUEST_URI "\@streq /test2.txt" "phase:1,redirect:'http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt'"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Access denied with redirection to .* using status 302 \(phase 1\)/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ content => qr/^TEST$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test2.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "redirect in phase:2 (get)",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecRule REQUEST_URI "\@streq /test2.txt" "phase:2,redirect:'http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt'"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Access denied with redirection to .* using status 302 \(phase 2\)/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ content => qr/^TEST$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test2.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "redirect in phase:3 (get)",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecDebugLog "$ENV{DEBUG_LOG}"
+ SecDebugLogLevel 4
+ SecRule REQUEST_URI "\@streq /test2.txt" "phase:3,redirect:'http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt'"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Access denied with redirection to .* using status 302 \(phase 3\)/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ content => qr/^TEST$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test2.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "redirect in phase:4 (get)",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecDebugLog "$ENV{DEBUG_LOG}"
+ SecDebugLogLevel 4
+ SecRule REQUEST_URI "\@streq /test2.txt" "phase:4,redirect:'http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt'"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Access denied with redirection to .* using status 302 \(phase 4\)/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ content => qr/^TEST$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test2.txt",
+ ),
+},
+
+# Proxy
+{
+ type => "action",
+ comment => "proxy in phase:1 (get)",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecRule REQUEST_URI "\@streq /test2.txt" "phase:1,proxy:'http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt'"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Access denied using proxy to \(phase 1\)/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ content => qr/^TEST$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test2.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "proxy in phase:2 (get)",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecRule REQUEST_URI "\@streq /test2.txt" "phase:2,proxy:'http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt'"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Access denied using proxy to \(phase 2\)/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ content => qr/^TEST$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test2.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "proxy in phase:3 (get)",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecDebugLog "$ENV{DEBUG_LOG}"
+ SecDebugLogLevel 4
+ SecRule REQUEST_URI "\@streq /test2.txt" "phase:3,proxy:'http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt'"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Access denied with code 500 \(phase 3\) \(Configuration Error: Proxy action requested but it does not work in output phases\)./, 1 ],
+ },
+ match_response => {
+ status => qr/^500$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test2.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "proxy in phase:4 (get)",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecDebugLog "$ENV{DEBUG_LOG}"
+ SecDebugLogLevel 4
+ SecRule REQUEST_URI "\@streq /test2.txt" "phase:4,proxy:'http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt'"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Access denied with code 500 \(phase 4\) \(Configuration Error: Proxy action requested but it does not work in output phases\)./, 1 ],
+ },
+ match_response => {
+ status => qr/^500$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test2.txt",
+ ),
+},
--- /dev/null
+### Test meta actions
+
+# TODO: id
+# TODO: logdata
+# TODO: msg
+# TODO: rev
+# TODO: severity
+# TODO: tag
--- /dev/null
+### Test misc actions
+
+# TODO: block
+# TODO: capture
+# TODO: chain
+# TODO: deprecatevar
+# TODO: exec
+# TODO: expirevar
+# TODO: initcol
+# TODO: multiMatch
+# TODO: pause
+# TODO: sanitiseArg
+# TODO: sanitiseMatched
+# TODO: sanitiseRequestHeader
+# TODO: sanitiseResponseHeader
+# TODO: setuid
+# TODO: setsid
+# TODO: setenv
+# TODO: setvar
+# TODO: skip
+# TODO: skipAfter
+# TODO: xmlns
--- /dev/null
+### Transformation tests
+
+# NOTE: individual tests done in unit tests
+
+# TODO: t:none to override default
+# TODO: t:none inline
+# TODO: combined
+# TODO: caching
--- /dev/null
+# TODO: Need more tests here
+
+### append
+{
+ type => "action",
+ comment => "append content",
+ conf => qq(
+ SecRuleEngine On
+ SecContentInjection On
+ SecDebugLog "$ENV{DEBUG_LOG}"
+ SecDebugLogLevel 9
+ SecAction "phase:1,setvar:tx.test=test"
+ SecAction "phase:2,append:'APPEND: \%{tx.test}'"
+ ),
+ match_log => {
+ debug => [ "Added content to bottom: APPEND: test", 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ content => qr/APPEND: test$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+
+### prepend
+{
+ type => "action",
+ comment => "prepend content",
+ conf => qq(
+ SecRuleEngine On
+ SecContentInjection On
+ SecDebugLog "$ENV{DEBUG_LOG}"
+ SecDebugLogLevel 9
+ SecAction "phase:1,setvar:tx.test=test"
+ SecAction "phase:2,prepend:'PREPEND: \%{tx.test}'"
+ ),
+ match_log => {
+ debug => [ "Added content to top: PREPEND: test", 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ content => qr/^PREPEND: test/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
--- /dev/null
+### ctl
+
+### ruleRemoveById
+{
+ type => "action",
+ comment => "ruleRemoveById existing rule across phases",
+ conf => qq(
+ SecRuleEngine On
+ SecAction "phase:2,id:666,deny"
+ SecAction "phase:1,pass,ctl:ruleRemoveById=666"
+ ),
+ match_log => {
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "ruleRemoveById future rule across phases",
+ conf => qq(
+ SecRuleEngine On
+ SecAction "phase:1,pass,ctl:ruleRemoveById=666"
+ SecAction "phase:2,id:666,deny"
+ ),
+ match_log => {
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "ruleRemoveById future rule same phase",
+ conf => qq(
+ SecRuleEngine On
+ SecAction "phase:1,pass,ctl:ruleRemoveById=666"
+ SecAction "phase:1,id:666,deny"
+ ),
+ match_log => {
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+
+
--- /dev/null
+### Tests all of the actions in each phase in detection only mode
+
+# Pass
+{
+ type => "action",
+ comment => "pass in phase:1",
+ conf => qq(
+ SecRuleEngine DetectionOnly
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecDebugLog "$ENV{DEBUG_LOG}"
+ SecDebugLogLevel 9
+ SecAction "phase:1,pass,msg:'PASSED'"
+ SecAction "phase:1,deny,msg:'DENIED'"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Warning. Unconditional match in SecAction.*PASSED/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "pass in phase:2",
+ conf => qq(
+ SecRuleEngine DetectionOnly
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecAction "phase:2,pass,msg:'PASSED'"
+ SecAction "phase:2,deny,msg:'DENIED'"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Warning. Unconditional match in SecAction.*PASSED/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "pass in phase:3",
+ conf => qq(
+ SecRuleEngine DetectionOnly
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecDebugLog "$ENV{DEBUG_LOG}"
+ SecDebugLogLevel 4
+ SecAction "phase:3,pass,msg:'PASSED'"
+ SecAction "phase:3,deny,msg:'DENIED'"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Warning. Unconditional match in SecAction.*PASSED/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "pass in phase:4",
+ conf => qq(
+ SecRuleEngine DetectionOnly
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecDebugLog "$ENV{DEBUG_LOG}"
+ SecDebugLogLevel 4
+ SecAction "phase:4,pass,msg:'PASSED'"
+ SecAction "phase:4,deny,msg:'DENIED'"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Warning. Unconditional match in SecAction.*PASSED/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+
+# Allow
+{
+ type => "action",
+ comment => "allow in phase:1",
+ conf => qq(
+ SecRuleEngine DetectionOnly
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecAction "phase:1,allow,msg:'ALLOWED'"
+ SecAction "phase:1,deny,msg:'DENIED'"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Warning. Unconditional match in SecAction.*ALLOWED/, 1 ],
+ -error => [ qr/Access allowed/, 1 ],
+# TODO: Allow should probably stop rule execution
+# -error => [ qr/DENIED/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "allow in phase:2",
+ conf => qq(
+ SecRuleEngine DetectionOnly
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecAction "phase:2,allow,msg:'ALLOWED'"
+ SecAction "phase:2,deny,msg:'DENIED'"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Warning. Unconditional match in SecAction.*ALLOWED/, 1 ],
+ -error => [ qr/Access allowed/, 1 ],
+# TODO: Allow should probably stop rule execution
+# -error => [ qr/DENIED/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "allow in phase:3",
+ conf => qq(
+ SecRuleEngine DetectionOnly
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecAction "phase:3,allow,msg:'ALLOWED'"
+ SecAction "phase:3,deny,msg:'DENIED'"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Warning. Unconditional match in SecAction.*ALLOWED/, 1 ],
+ -error => [ qr/Access allowed/, 1 ],
+# TODO: Allow should probably stop rule execution
+# -error => [ qr/DENIED/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "allow in phase:4",
+ conf => qq(
+ SecRuleEngine DetectionOnly
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecAction "phase:4,allow,msg:'ALLOWED'"
+ SecAction "phase:4,deny,msg:'DENIED'"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Warning. Unconditional match in SecAction.*ALLOWED/, 1 ],
+ -error => [ qr/Access allowed/, 1 ],
+# TODO: Allow should probably stop rule execution
+# -error => [ qr/DENIED/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+
+# Deny
+{
+ type => "action",
+ comment => "deny in phase:1",
+ conf => qq(
+ SecRuleEngine DetectionOnly
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecAction "phase:1,deny,msg:'DENIED'"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Warning. Unconditional match in SecAction.*DENIED/, 1 ],
+ -error => [ qr/Access denied/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "deny in phase:2",
+ conf => qq(
+ SecRuleEngine DetectionOnly
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecAction "phase:2,deny,msg:'DENIED'"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Warning. Unconditional match in SecAction.*DENIED/, 1 ],
+ -error => [ qr/Access denied/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "deny in phase:3",
+ conf => qq(
+ SecRuleEngine DetectionOnly
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecAction "phase:3,deny,msg:'DENIED'"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Warning. Unconditional match in SecAction.*DENIED/, 1 ],
+ -error => [ qr/Access denied/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "deny in phase:4",
+ conf => qq(
+ SecRuleEngine DetectionOnly
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecAction "phase:4,deny,msg:'DENIED'"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Warning. Unconditional match in SecAction.*DENIED/, 1 ],
+ -error => [ qr/Access denied/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+
+# Drop
+{
+ type => "action",
+ comment => "drop in phase:1",
+ conf => qq(
+ SecRuleEngine DetectionOnly
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecAction "phase:1,drop,msg:'DROPPED'"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Warning. Unconditional match in SecAction.*DROPPED/, 1 ],
+ -error => [ qr/Access denied/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "drop in phase:2",
+ conf => qq(
+ SecRuleEngine DetectionOnly
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecAction "phase:2,drop,msg:'DROPPED'"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Warning. Unconditional match in SecAction.*DROPPED/, 1 ],
+ -error => [ qr/Access denied/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "drop in phase:3",
+ conf => qq(
+ SecRuleEngine DetectionOnly
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecAction "phase:3,drop,msg:'DROPPED'"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Warning. Unconditional match in SecAction.*DROPPED/, 1 ],
+ -error => [ qr/Access denied/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "drop in phase:4",
+ conf => qq(
+ SecRuleEngine DetectionOnly
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecAction "phase:4,drop,msg:'DROPPED'"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Warning. Unconditional match in SecAction.*DROPPED/, 1 ],
+ -error => [ qr/Access denied/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+
+# Redirect
+{
+ type => "action",
+ comment => "redirect in phase:1 (get)",
+ conf => qq(
+ SecRuleEngine DetectionOnly
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecRule REQUEST_URI "\@streq /test2.txt" "phase:1,redirect:'http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt',msg:'REDIRECTED'"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Warning. String match "\/test2.txt" at REQUEST_URI.*REDIRECTED/, 1 ],
+ -error => [ qr/Access denied/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ content => qr/^TEST 2$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test2.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "redirect in phase:2 (get)",
+ conf => qq(
+ SecRuleEngine DetectionOnly
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecRule REQUEST_URI "\@streq /test2.txt" "phase:2,redirect:'http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt',msg:'REDIRECTED'"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Warning. String match "\/test2.txt" at REQUEST_URI.*REDIRECTED/, 1 ],
+ -error => [ qr/Access denied/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ content => qr/^TEST 2$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test2.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "redirect in phase:3 (get)",
+ conf => qq(
+ SecRuleEngine DetectionOnly
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecRule REQUEST_URI "\@streq /test2.txt" "phase:3,redirect:'http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt',msg:'REDIRECTED'"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Warning. String match "\/test2.txt" at REQUEST_URI.*REDIRECTED/, 1 ],
+ -error => [ qr/Access denied/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ content => qr/^TEST 2$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test2.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "redirect in phase:4 (get)",
+ conf => qq(
+ SecRuleEngine DetectionOnly
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecRule REQUEST_URI "\@streq /test2.txt" "phase:4,redirect:'http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt',msg:'REDIRECTED'"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Warning. String match "\/test2.txt" at REQUEST_URI.*REDIRECTED/, 1 ],
+ -error => [ qr/Access denied/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ content => qr/^TEST 2$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test2.txt",
+ ),
+},
+
+# Proxy
+{
+ type => "action",
+ comment => "proxy in phase:1 (get)",
+ conf => qq(
+ SecRuleEngine DetectionOnly
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecRule REQUEST_URI "\@streq /test2.txt" "phase:1,proxy:'http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt',msg:'PROXIED'"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Warning. String match "\/test2.txt" at REQUEST_URI.*PROXIED/, 1 ],
+ -error => [ qr/Access denied/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ content => qr/^TEST 2$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test2.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "proxy in phase:2 (get)",
+ conf => qq(
+ SecRuleEngine DetectionOnly
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecRule REQUEST_URI "\@streq /test2.txt" "phase:2,proxy:'http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt',msg:'PROXIED'"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Warning. String match "\/test2.txt" at REQUEST_URI.*PROXIED/, 1 ],
+ -error => [ qr/Access denied/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ content => qr/^TEST 2$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test2.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "proxy in phase:3 (get)",
+ conf => qq(
+ SecRuleEngine DetectionOnly
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecDebugLog "$ENV{DEBUG_LOG}"
+ SecDebugLogLevel 4
+ SecRule REQUEST_URI "\@streq /test2.txt" "phase:3,proxy:'http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt',msg:'PROXIED'"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Warning. String match "\/test2.txt" at REQUEST_URI.*PROXIED/, 1 ],
+ -error => [ qr/Access denied/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test2.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "proxy in phase:4 (get)",
+ conf => qq(
+ SecRuleEngine DetectionOnly
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecDebugLog "$ENV{DEBUG_LOG}"
+ SecDebugLogLevel 4
+ SecRule REQUEST_URI "\@streq /test2.txt" "phase:4,proxy:'http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt',msg:'PROXIED'"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Warning. String match "\/test2.txt" at REQUEST_URI.*PROXIED/, 1 ],
+ -error => [ qr/Access denied/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test2.txt",
+ ),
+},
--- /dev/null
+### Logging tests
+
+# log/nolog
+{
+ type => "action",
+ comment => "log",
+ conf => qq(
+ SecRuleEngine On
+ SecAuditEngine RelevantOnly
+ SecAuditLog "$ENV{AUDIT_LOG}"
+ SecAction "phase:1,pass,log"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Warning. Unconditional match in SecAction\./, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "nolog",
+ conf => qq(
+ SecRuleEngine On
+ SecAuditEngine RelevantOnly
+ SecAuditLog "$ENV{AUDIT_LOG}"
+ SecAction "phase:1,pass,nolog"
+ ),
+ match_log => {
+ -error => [ qr/ModSecurity: /, 1 ],
+ -audit => [ qr/./, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+
+# auditlog/noauditlog
+{
+ type => "action",
+ comment => "auditlog",
+ conf => qq(
+ SecRuleEngine On
+ SecAuditEngine RelevantOnly
+ SecAuditLog "$ENV{AUDIT_LOG}"
+ SecAction "phase:1,pass,auditlog"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Warning. Unconditional match in SecAction\./, 1 ],
+ audit => [ qr/Message: Warning. Unconditional match in SecAction\./, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "noauditlog",
+ conf => qq(
+ SecRuleEngine On
+ SecAuditEngine RelevantOnly
+ SecAuditLog "$ENV{AUDIT_LOG}"
+ SecAction "phase:1,pass,noauditlog"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Warning. Unconditional match in SecAction\./, 1 ],
+ -audit => [ qr/./, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+
+# All log/nolog auditlog/noauditlog combos
+{
+ type => "action",
+ comment => "log,auditlog",
+ conf => qq(
+ SecRuleEngine On
+ SecAuditEngine RelevantOnly
+ SecAuditLog "$ENV{AUDIT_LOG}"
+ SecAction "phase:1,pass,log,auditlog"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Warning. Unconditional match in SecAction\./, 1 ],
+ audit => [ qr/Message: Warning. Unconditional match in SecAction\./, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "log,noauditlog",
+ conf => qq(
+ SecRuleEngine On
+ SecAuditEngine RelevantOnly
+ SecAuditLog "$ENV{AUDIT_LOG}"
+ SecAction "phase:1,pass,log,noauditlog"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Warning. Unconditional match in SecAction\./, 1 ],
+ -audit => [ qr/./, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "nolog,auditlog",
+ conf => qq(
+ SecRuleEngine On
+ SecAuditEngine RelevantOnly
+ SecAuditLog "$ENV{AUDIT_LOG}"
+ SecAction "phase:1,pass,nolog,auditlog"
+ ),
+ match_log => {
+ audit => [ qr/-H--\s+Message: .*Stopwatch: /s, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "nolog,noauditlog",
+ conf => qq(
+ SecRuleEngine On
+ SecAuditEngine RelevantOnly
+ SecAuditLog "$ENV{AUDIT_LOG}"
+ SecAction "phase:1,pass,nolog,noauditlog"
+ ),
+ match_log => {
+ -error => [ qr/ModSecurity: /, 1 ],
+ -audit => [ qr/./, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "auditlog,log",
+ conf => qq(
+ SecRuleEngine On
+ SecAuditEngine RelevantOnly
+ SecAuditLog "$ENV{AUDIT_LOG}"
+ SecAction "phase:1,pass,auditlog,log"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Warning. Unconditional match in SecAction\./, 1 ],
+ audit => [ qr/Message: Warning. Unconditional match in SecAction\./, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "auditlog,nolog",
+ conf => qq(
+ SecRuleEngine On
+ SecAuditEngine RelevantOnly
+ SecAuditLog "$ENV{AUDIT_LOG}"
+ SecAction "phase:1,pass,auditlog,nolog"
+ ),
+ match_log => {
+ -error => [ qr/ModSecurity: /, 1 ],
+ -audit => [ qr/./, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "noauditlog,log",
+ conf => qq(
+ SecRuleEngine On
+ SecAuditEngine RelevantOnly
+ SecAuditLog "$ENV{AUDIT_LOG}"
+ SecAction "phase:1,pass,noauditlog,log"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Warning. Unconditional match in SecAction\./, 1 ],
+ -audit => [ qr/./, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "action",
+ comment => "noauditlog,nolog",
+ conf => qq(
+ SecRuleEngine On
+ SecAuditEngine RelevantOnly
+ SecAuditLog "$ENV{AUDIT_LOG}"
+ SecAction "phase:1,pass,noauditlog,nolog"
+ ),
+ match_log => {
+ -error => [ qr/ModSecurity: /, 1 ],
+ -audit => [ qr/./, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+
--- /dev/null
+{
+ type => "config",
+ comment => "module loaded",
+ match_log => {
+ error => [ qr/ModSecurity for Apache.* configured\./, 10 ],
+ },
+},
+{
+ type => "config",
+ comment => "minimal config",
+ conf => sub {
+ # Open the minimal conf file, substituting the
+ # relative log paths with full paths.
+ open(C, "<$ENV{DIST_ROOT}/modsecurity.conf-minimal") or die "$!\n";
+ (my $conf = join('', <C>)) =~ s#Log logs/#Log $ENV{TEST_SERVER_ROOT}/logs/#g;
+ close C;
+
+ return $conf;
+ },
+ match_log => {
+ error => [ qr/ModSecurity for Apache.* configured\./, 10 ],
+ },
+},
--- /dev/null
+### SecAudit* directive tests
+
+# SecAuditEngine
+{
+ type => "config",
+ comment => "SecAuditEngine On",
+ conf => qq(
+ SecAuditEngine On
+ SecAuditLog $ENV{AUDIT_LOG}
+ ),
+ match_log => {
+ audit => [ qr/./, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "config",
+ comment => "SecAuditEngine Off",
+ conf => qq(
+ SecAuditEngine Off
+ SecAuditLog $ENV{AUDIT_LOG}
+ ),
+ match_log => {
+ -audit => [ qr/./, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "config",
+ comment => "SecAuditEngine RelevantOnly (pos)",
+ conf => qq(
+ SecRuleEngine On
+ SecAuditEngine RelevantOnly
+ SecAuditLog $ENV{AUDIT_LOG}
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecResponseBodyAccess On
+ SecDefaultAction "phase:2,log,auditlog,pass"
+ SecRule REQUEST_URI "." "phase:4,deny"
+ ),
+ match_log => {
+ audit => [ qr/./, 1 ],
+ },
+ match_response => {
+ status => qr/^403$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "config",
+ comment => "SecAuditEngine RelevantOnly (neg)",
+ conf => qq(
+ SecAuditEngine RelevantOnly
+ SecAuditLog $ENV{AUDIT_LOG}
+ SecResponseBodyAccess On
+ SecDefaultAction "phase:2,log,auditlog,pass"
+ ),
+ match_log => {
+ -audit => [ qr/./, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+
+# SecAuditLogType & SecAuditLogStorageDir
+{
+ type => "config",
+ comment => "SecAuditLogType Serial",
+ conf => qq(
+ SecAuditEngine On
+ SecAuditLog $ENV{AUDIT_LOG}
+ SecAuditLogType Serial
+ ),
+ match_log => {
+ audit => [ qr/./, 1 ],
+ },
+ match_response => {
+ status => qr/^404$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/bogus",
+ ),
+},
+{
+ type => "config",
+ comment => "SecAuditLogType Concurrent",
+ conf => qq(
+ SecAuditEngine On
+ SecAuditLog $ENV{AUDIT_LOG}
+ SecAuditLogType Concurrent
+ SecAuditLogStorageDir "$ENV{LOGS_DIR}/audit"
+ ),
+ test => sub {
+ ### Perl code to parse the audit log entry and verify
+ ### that the concurrent audit log exists and contains
+ ### the correct data.
+ ###
+ ### TODO: Need some API for this :)
+ ###
+
+ # Parse log
+ my $alogre = qr/^(?:\S+)\ (?:\S+)\ (?:\S+)\ (?:\S+)\ \[(?:[^:]+):(?:\d+:\d+:\d+)\ (?:[^\]]+)\]\ \"(?:.*)\"\ (?:\d+)\ (?:\S+)\ \"(?:.*)\"\ \"(?:.*)\"\ (\S+)\ \"(?:.*)\"\ (\S+)\ (?:\d+)\ (?:\d+)\ (?:\S+)(?:.*)$/m;
+ my $alog = match_log("audit", $alogre, 1);
+ chomp $alog;
+ my @log = ($alog =~ m/$alogre/);
+ my($id, $fn) = ($log[0], $log[1]);
+ if (!$id or !$fn) {
+ dbg("LOG ENTRY: $alog");
+ die "Failed to parse audit log: $ENV{AUDIT_LOG}\n";
+ }
+
+ # Verify concurrent log exists
+ my $alogdatafn = "$ENV{LOGS_DIR}/audit$fn";
+ if (! -e "$alogdatafn") {
+ die "Audit log does not exist: $alogdatafn\n";
+ }
+
+ # Verify concurrent log contents
+ if (defined match_file($alogdatafn, qr/^--[^-]+-A--.*$id.*-Z--$/s)) {
+ return 0;
+ }
+
+ # Error
+ dbg("LOGDATA: \"$FILE{$alogdatafn}{buf}\"");
+ die "Audit log data did not match.\n";
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+
+# SecAuditLogRelevantStatus
+{
+ type => "config",
+ comment => "SecAuditLogRelevantStatus (pos)",
+ conf => qq(
+ SecAuditEngine RelevantOnly
+ SecAuditLog $ENV{AUDIT_LOG}
+ SecAuditLogRelevantStatus "^4"
+ ),
+ match_log => {
+ audit => [ qr/./, 1 ],
+ },
+ match_response => {
+ status => qr/^404$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/bogus",
+ ),
+},
+{
+ type => "config",
+ comment => "SecAuditLogRelevantStatus (neg)",
+ conf => qq(
+ SecAuditEngine RelevantOnly
+ SecAuditLog $ENV{AUDIT_LOG}
+ SecAuditLogRelevantStatus "^4"
+ ),
+ match_log => {
+ -audit => [ qr/./, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+
+# SecAuditLogParts
+{
+ type => "config",
+ comment => "SecAuditLogParts (minimal)",
+ conf => qq(
+ SecAuditEngine On
+ SecAuditLog $ENV{AUDIT_LOG}
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecAuditLogParts "AZ"
+ ),
+ match_log => {
+ audit => [ qr/-A--.*-Z--/s, 1 ],
+ -audit => [ qr/-[B-Y]--/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "application/x-www-form-urlencoded",
+ ],
+ "a=1r&=2",
+ ),
+},
+{
+ type => "config",
+ comment => "SecAuditLogParts (default)",
+ conf => qq(
+ SecAuditEngine On
+ SecAuditLog $ENV{AUDIT_LOG}
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ ),
+ match_log => {
+ audit => [ qr/-A--.*-B--.*-F--.*-H--.*-Z--/s, 1 ],
+ -audit => [ qr/-[DEGIJK]--/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "application/x-www-form-urlencoded",
+ ],
+ "a=1r&=2",
+ ),
+},
+{
+ type => "config",
+ comment => "SecAuditLogParts (all)",
+ conf => qq(
+ SecRuleEngine On
+ SecAuditEngine On
+ SecAuditLog $ENV{AUDIT_LOG}
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecAuditLogParts "ABCDEFGHIJKZ"
+ SecAction "phase:4,log,auditlog,allow"
+ ),
+ match_log => {
+ audit => [ qr/-A--.*-B--.*-C--.*-F--.*-E--.*-H--.*-K--.*-Z--/s, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "application/x-www-form-urlencoded",
+ ],
+ "a=1r&=2",
+ ),
+},
--- /dev/null
+### SecDebug* directive tests
+{
+ type => "config",
+ comment => "SecDebugLog (pos)",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ ),
+ match_log => {
+ debug => [ qr/./, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "config",
+ comment => "SecDebugLog (neg)",
+ conf => qq(
+ SecRuleEngine On
+ ),
+ match_log => {
+ -debug => [ qr/./, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "config",
+ comment => "SecDebugLogLevel 0",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 0
+ SecRule REQUEST_URI "." "phase:1,deny"
+ ),
+ match_log => {
+ -debug => [ qr/./, 1 ],
+ },
+ match_response => {
+ status => qr/^403$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "config",
+ comment => "SecDebugLogLevel 1",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 1
+ SecRuleScript "test.lua" "phase:1"
+ SecRule REQUEST_URI "(.)" "phase:4,deny,deprecatevar:bogus"
+ ),
+ match_log => {
+ debug => [ qr/\]\[[1]\] /, 1 ],
+ -debug => [ qr/\]\[[2-9]\] /, 1 ],
+ },
+ match_response => {
+ status => qr/^403$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "application/x-www-form-urlencoded",
+ ],
+ "a=1&b=2",
+ ),
+},
+{
+ type => "config",
+ comment => "SecDebugLogLevel 2",
+ conf => qq(
+ SecRuleEngine DetectionOnly
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 2
+ SecRuleScript "test.lua" "phase:1"
+ SecRule REQUEST_URI "(.)" "phase:4,deny,deprecatevar:bogus"
+ ),
+ match_log => {
+ debug => [ qr/\]\[2\] /, 1 ],
+ -debug => [ qr/\]\[[3-9]\] /, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "application/x-www-form-urlencoded",
+ ],
+ "a=1&b=2",
+ ),
+},
+{
+ type => "config",
+ comment => "SecDebugLogLevel 3",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 3
+ SecRuleScript "test.lua" "phase:1"
+ SecRule REQUEST_URI "(.)" "phase:4,deny,deprecatevar:bogus"
+ ),
+ match_log => {
+ debug => [ qr/\]\[3\] /, 1 ],
+ -debug => [ qr/\]\[[4-9]\] /, 1 ],
+ },
+ match_response => {
+ status => qr/^403$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "application/x-www-form-urlencoded",
+ ],
+ "a=1&b=2",
+ ),
+},
+{
+ type => "config",
+ comment => "SecDebugLogLevel 4",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 4
+ SecRuleScript "test.lua" "phase:1"
+ SecRule REQUEST_URI "(.)" "phase:4,deny,deprecatevar:bogus"
+ ),
+ match_log => {
+ debug => [ qr/\]\[4\] /, 1 ],
+ -debug => [ qr/\]\[[5-9]\] /, 1 ],
+ },
+ match_response => {
+ status => qr/^403$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "application/x-www-form-urlencoded",
+ ],
+ "a=1&b=2",
+ ),
+},
+{
+ type => "config",
+ comment => "SecDebugLogLevel 5",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 5
+ SecRuleScript "test.lua" "phase:1"
+ SecRule REQUEST_URI "(.)" "phase:4,deny,deprecatevar:bogus"
+ ),
+ match_log => {
+ debug => [ qr/\]\[5\] /, 1 ],
+ -debug => [ qr/\]\[[6-9]\] /, 1 ],
+ },
+ match_response => {
+ status => qr/^403$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "application/x-www-form-urlencoded",
+ ],
+ "a=1&b=2",
+ ),
+},
+{
+ type => "config",
+ comment => "SecDebugLogLevel 6",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 6
+ SecRuleScript "test.lua" "phase:1"
+ SecRule REQUEST_URI "(.)" "phase:4,deny,deprecatevar:bogus"
+ ),
+ match_log => {
+ debug => [ qr/\]\[6\] /, 1 ],
+ -debug => [ qr/\]\[[7-9]\] /, 1 ],
+ },
+ match_response => {
+ status => qr/^403$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "application/x-www-form-urlencoded",
+ ],
+ "a=1&b=2",
+ ),
+},
+{
+ type => "config",
+ comment => "SecDebugLogLevel 7",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 7
+ SecRuleScript "test.lua" "phase:1"
+ SecRule REQUEST_URI "(.)" "phase:4,deny,deprecatevar:bogus"
+ ),
+ match_log => {
+ debug => [ qr/\]\[7\] /, 1 ],
+ -debug => [ qr/\]\[[8-9]\] /, 1 ],
+ },
+ match_response => {
+ status => qr/^403$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "application/x-www-form-urlencoded",
+ ],
+ "a=1&b=2",
+ ),
+},
+{
+ type => "config",
+ comment => "SecDebugLogLevel 8",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 8
+ SecRuleScript "test.lua" "phase:1"
+ SecRule REQUEST_URI "(.)" "phase:4,deny,deprecatevar:bogus"
+ ),
+ match_log => {
+ debug => [ qr/\]\[8\] /, 1 ],
+ -debug => [ qr/\]\[9\] /, 1 ],
+ },
+ match_response => {
+ status => qr/^403$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "application/x-www-form-urlencoded",
+ ],
+ "a=1&b=2",
+ ),
+},
+{
+ type => "config",
+ comment => "SecDebugLogLevel 9",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecRuleScript "test.lua" "phase:1"
+ SecRule REQUEST_URI "(.)" "phase:4,deny,deprecatevar:bogus"
+ ),
+ match_log => {
+ debug => [ qr/\]\[9\] /, 1 ],
+ },
+ match_response => {
+ status => qr/^403$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "application/x-www-form-urlencoded",
+ ],
+ "a=1&b=2",
+ ),
+},
--- /dev/null
+### Misc directive tests
+
+### TODO:
+# SecTmpDir
+# SecUploadKeepFiles
+# SecChrootDir
+# SecGuardianLog
+
+# SecDefaultAction
+{
+ type => "config",
+ comment => "SecDefaultAction",
+ conf => qq(
+ SecRuleEngine on
+ SecDefaultAction "phase:1,deny,status:500"
+ SecRule REQUEST_URI "test.txt"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Access denied with code 500 \(phase 1\)/, 1 ],
+ },
+ match_response => {
+ status => qr/^500$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+
+# SecServerSignature
+{
+ type => "config",
+ comment => "SecServerSignature On",
+ conf => qq(
+ SecServerSignature "NewServerSignature"
+ ),
+ match_log => {
+ error => [ qr/NewServerSignature/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ raw => qr/^Server: +NewServerSignature$/m,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+
+# SecDataDir
+{
+ type => "config",
+ comment => "SecDataDir",
+ conf => qq(
+ SecRuleEngine On
+ SecDataDir "$ENV{DATA_DIR}"
+ SecAction initcol:ip=%{REMOTE_ADDR},setvar:ip.dummy=1,pass
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Warning. Unconditional match in SecAction\./, 1 ],
+ },
+ match_file => {
+ "$ENV{DATA_DIR}/ip.pag" => qr/\x00\x06dummy\x00\x00\x021\x00/,
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+
+# SecTmpDir/SecUploadDir/SecUploadKeepFiles
+{
+ type => "config",
+ comment => "SecTmpDir/SecUploadDir/SecUploadKeepFiles",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 4
+ SecTmpDir "$ENV{TEMP_DIR}"
+ SecUploadKeepFiles On
+ SecUploadDir "$ENV{UPLOAD_DIR}"
+ ),
+ test => sub {
+ # Get the filename and make sure the file exists
+ my $fn = match_log(debug => qr/Moved file from .* to ".*"\./, 5);
+ die "Failed to determine uploaded filename\n" unless (defined $fn);
+
+ $fn =~ s/Moved file from .* to "(.*)"\..*/$1/;
+ die "File does not exist: $fn\n" unless (-e $fn);
+
+ # Check the contents of the file
+ return 0 if (match_file($fn, qr/^TESTFILE$/m));
+
+ msg("Failed to match contents of uploaded file: $fn");
+ return 1;
+ },
+ match_log => {
+ debug => [ qr/Created temporary file: $ENV{TEMP_DIR}/, 1 ],
+ -debug => [ qr/Failed to /, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "multipart/form-data; boundary=---------------------------19813181771830765643996187206",
+ ],
+ q(-----------------------------19813181771830765643996187206
+Content-Disposition: form-data; name="upload-file"; filename="test"
+Content-Type: application/octet-stream
+
+TESTFILE
+-----------------------------19813181771830765643996187206
+Content-Disposition: form-data; name="file"
+
+Upload File
+-----------------------------19813181771830765643996187206--),
+ ),
+},
+
+# SecWebAppId
+{
+ type => "config",
+ comment => "SecWebAppId",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 4
+ SecAuditLog "$ENV{AUDIT_LOG}"
+ SecAuditEngine RelevantOnly
+ SecWebAppId "app-1"
+ SecAction "pass,log,auditlog,id:1"
+ ),
+ match_log => {
+ error => [ qr/Warning\. Unconditional match in SecAction\./, 1 ],
+ debug => [ qr/Warning\. Unconditional match in SecAction\./, 1 ],
+ audit => [ qr/^WebApp-Info: "app-1"/m, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
--- /dev/null
+### Tests for directives altering how a request is handled
+
+# SecArgumentSeparator
+{
+ type => "config",
+ comment => "SecArgumentSeparator (get-pos)",
+ conf => q(
+ SecRuleEngine On
+ SecArgumentSeparator ";"
+ SecRule ARGS:a "@streq 1" "phase:1,deny,chain"
+ SecRule ARGS:b "@streq 2"
+ ),
+ match_log => {
+ error => [ qr/Access denied with code 403 \(phase 1\)\. String match "2" at ARGS:b\./, 1 ],
+ },
+ match_response => {
+ status => qr/^403$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt?a=1;b=2",
+ ),
+},
+{
+ type => "config",
+ comment => "SecArgumentSeparator (get-neg)",
+ conf => q(
+ SecRuleEngine On
+ SecRule ARGS:a "@streq 1" "phase:1,deny,chain"
+ SecRule ARGS:b "@streq 2"
+ ),
+ match_log => {
+ -error => [ qr/Access denied/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt?a=1;b=2",
+ ),
+},
+{
+ type => "config",
+ comment => "SecArgumentSeparator (post-pos)",
+ conf => q(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecArgumentSeparator ";"
+ SecRule ARGS:a "@streq 1" "phase:2,deny,chain"
+ SecRule ARGS:b "@streq 2"
+ ),
+ match_log => {
+ error => [ qr/Access denied with code 403 \(phase 2\)\. String match "2" at ARGS:b\./, 1 ],
+ },
+ match_response => {
+ status => qr/^403$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "application/x-www-form-urlencoded",
+ ],
+ "a=1;b=2",
+ ),
+},
+{
+ type => "config",
+ comment => "SecArgumentSeparator (post-neg)",
+ conf => q(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecRule ARGS:a "@streq 1" "phase:2,deny"
+ SecRule ARGS:b "@streq 2" "phase:2,deny"
+ ),
+ match_log => {
+ -error => [ qr/Access denied/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "application/x-www-form-urlencoded",
+ ],
+ "a=1;b=2",
+ ),
+},
+
+# SecRequestBodyAccess
+{
+ type => "config",
+ comment => "SecRequestBodyAccess (pos)",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecRule ARGS:a "\@streq 1" "phase:2,deny,chain"
+ SecRule ARGS:b "\@streq 2"
+ ),
+ match_log => {
+ error => [ qr/Access denied with code 403 \(phase 2\)\. String match "2" at ARGS:b\./, 1 ],
+ },
+ match_response => {
+ status => qr/^403$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "application/x-www-form-urlencoded",
+ ],
+ "a=1&b=2",
+ ),
+},
+{
+ type => "config",
+ comment => "SecRequestBodyAccess (neg)",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess Off
+ SecRule ARGS:a "\@streq 1" "phase:2,deny"
+ SecRule ARGS:b "\@streq 2" "phase:2,deny"
+ ),
+ match_log => {
+ -error => [ qr/Access denied/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "application/x-www-form-urlencoded",
+ ],
+ "a=1&b=2",
+ ),
+},
+
+# SecRequestBodyLimit
+{
+ type => "config",
+ comment => "SecRequestBodyLimit (equal)",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecRequestBodyLimit 7
+ ),
+ match_log => {
+ -error => [ qr/Request body is larger than the configured limit/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "application/x-www-form-urlencoded",
+ ],
+ "a=1&b=2",
+ ),
+},
+{
+ type => "config",
+ comment => "SecRequestBodyLimit (greater)",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecRequestBodyLimit 5
+ ),
+ match_log => {
+ error => [ qr/Request body .*is larger than the configured limit \(5\)\./, 1 ],
+ },
+ match_response => {
+ status => qr/^413$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "application/x-www-form-urlencoded",
+ ],
+ "a=1&b=2",
+ ),
+},
+{
+ type => "config",
+ comment => "SecRequestBodyLimit (equal - chunked)",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecRequestBodyLimit 276
+ ),
+ match_log => {
+ -error => [ qr/Request body is larger than the configured limit/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => normalize_raw_request_data(
+ qq(
+ POST /test.txt HTTP/1.1
+ Host: $ENV{SERVER_NAME}:$ENV{SERVER_PORT}
+ User-Agent: $ENV{USER_AGENT}
+ Content-Type: multipart/form-data; boundary=---------------------------69343412719991675451336310646
+ Transfer-Encoding: chunked
+
+ ),
+ )
+ .encode_chunked(
+ normalize_raw_request_data(
+ q(
+ -----------------------------69343412719991675451336310646
+ Content-Disposition: form-data; name="a"
+
+ 1
+ -----------------------------69343412719991675451336310646
+ Content-Disposition: form-data; name="b"
+
+ 2
+ -----------------------------69343412719991675451336310646--
+ )
+ ),
+ 1024
+ ),
+},
+{
+ type => "config",
+ comment => "SecRequestBodyLimit (greater - chunked)",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecRequestBodyLimit 256
+ ),
+ match_log => {
+ error => [ qr/Request body .*is larger than the configured limit \(256\)\./, 1 ],
+ },
+ match_response => {
+ status => qr/^413$/,
+ },
+ request => normalize_raw_request_data(
+ qq(
+ POST /test.txt HTTP/1.1
+ Host: $ENV{SERVER_NAME}:$ENV{SERVER_PORT}
+ User-Agent: $ENV{USER_AGENT}
+ Content-Type: multipart/form-data; boundary=---------------------------69343412719991675451336310646
+ Transfer-Encoding: chunked
+
+ ),
+ )
+ .encode_chunked(
+ normalize_raw_request_data(
+ q(
+ -----------------------------69343412719991675451336310646
+ Content-Disposition: form-data; name="a"
+
+ 1
+ -----------------------------69343412719991675451336310646
+ Content-Disposition: form-data; name="b"
+
+ 2
+ -----------------------------69343412719991675451336310646--
+ )
+ ),
+ 1024
+ ),
+},
+{
+ type => "config",
+ comment => "SecRequestBodyLimit (ctl:ruleEngine=off)",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecRequestBodyLimit 5
+
+ SecAction "phase:1,pass,nolog,ctl:ruleEngine=off"
+ SecRule REQUEST_BODY "." "phase:2,deny"
+ ),
+ match_log => {
+ -error => [ qr/Request body .*is larger than the configured limit/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "application/x-www-form-urlencoded",
+ ],
+ "a=1&b=2",
+ ),
+},
+{
+ type => "config",
+ comment => "SecRequestBodyLimit (ctl:requestBodyAccess=off)",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecRequestBodyLimit 5
+
+ SecAction "phase:1,pass,nolog,ctl:requestBodyAccess=off"
+ SecRule REQUEST_BODY "." "phase:2,deny"
+ ),
+ match_log => {
+ -error => [ qr/Request body .*is larger than the configured limit/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "application/x-www-form-urlencoded",
+ ],
+ "a=1&b=2",
+ ),
+},
+{
+ type => "config",
+ comment => "SecRequestBodyLimit (ctl:ruleEngine=off - chunked)",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecRequestBodyLimit 256
+
+ SecAction "phase:1,pass,nolog,ctl:ruleEngine=off"
+ SecRule REQUEST_BODY "." "phase:2,deny"
+ ),
+ match_log => {
+ -error => [ qr/Request body .*is larger than the configured limit/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => normalize_raw_request_data(
+ qq(
+ POST /test.txt HTTP/1.1
+ Host: $ENV{SERVER_NAME}:$ENV{SERVER_PORT}
+ User-Agent: $ENV{USER_AGENT}
+ Content-Type: multipart/form-data; boundary=---------------------------69343412719991675451336310646
+ Transfer-Encoding: chunked
+
+ ),
+ )
+ .encode_chunked(
+ normalize_raw_request_data(
+ q(
+ -----------------------------69343412719991675451336310646
+ Content-Disposition: form-data; name="a"
+
+ 1
+ -----------------------------69343412719991675451336310646
+ Content-Disposition: form-data; name="b"
+
+ 2
+ -----------------------------69343412719991675451336310646--
+ )
+ ),
+ 1024
+ ),
+},
+{
+ type => "config",
+ comment => "SecRequestBodyLimit (ctl:requestBodyAccess=off - chunked)",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecRequestBodyLimit 256
+
+ SecAction "phase:1,pass,nolog,ctl:requestBodyAccess=off"
+ SecRule REQUEST_BODY "." "phase:2,deny"
+ ),
+ match_log => {
+ -error => [ qr/Request body .*is larger than the configured limit \(256\)\./, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => normalize_raw_request_data(
+ qq(
+ POST /test.txt HTTP/1.1
+ Host: $ENV{SERVER_NAME}:$ENV{SERVER_PORT}
+ User-Agent: $ENV{USER_AGENT}
+ Content-Type: multipart/form-data; boundary=---------------------------69343412719991675451336310646
+ Transfer-Encoding: chunked
+
+ ),
+ )
+ .encode_chunked(
+ normalize_raw_request_data(
+ q(
+ -----------------------------69343412719991675451336310646
+ Content-Disposition: form-data; name="a"
+
+ 1
+ -----------------------------69343412719991675451336310646
+ Content-Disposition: form-data; name="b"
+
+ 2
+ -----------------------------69343412719991675451336310646--
+ )
+ ),
+ 1024
+ ),
+},
+
+# SecRequestBodyInMemoryLimit
+{
+ type => "config",
+ comment => "SecRequestBodyInMemoryLimit (equal)",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecRequestBodyAccess On
+ SecRequestBodyLimit 1000
+ SecRequestBodyInMemoryLimit 276
+ ),
+ match_log => {
+ -debug => [ qr/Input filter: Request too large to store in memory, switching to disk\./, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => normalize_raw_request_data(
+ qq(
+ POST /test.txt HTTP/1.1
+ Host: $ENV{SERVER_NAME}:$ENV{SERVER_PORT}
+ User-Agent: $ENV{USER_AGENT}
+ Content-Type: multipart/form-data; boundary=---------------------------69343412719991675451336310646
+ Transfer-Encoding: chunked
+
+ ),
+ )
+ .encode_chunked(
+ normalize_raw_request_data(
+ q(
+ -----------------------------69343412719991675451336310646
+ Content-Disposition: form-data; name="a"
+
+ 1
+ -----------------------------69343412719991675451336310646
+ Content-Disposition: form-data; name="b"
+
+ 2
+ -----------------------------69343412719991675451336310646--
+ )
+ ),
+ 1024
+ ),
+},
+{
+ type => "config",
+ comment => "SecRequestBodyInMemoryLimit (greater)",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecRequestBodyAccess On
+ SecRequestBodyLimit 1000
+ SecRequestBodyInMemoryLimit 16
+ ),
+ match_log => {
+ debug => [ qr/Input filter: Request too large to store in memory, switching to disk\./, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => normalize_raw_request_data(
+ qq(
+ POST /test.txt HTTP/1.1
+ Host: $ENV{SERVER_NAME}:$ENV{SERVER_PORT}
+ User-Agent: $ENV{USER_AGENT}
+ Content-Type: multipart/form-data; boundary=---------------------------69343412719991675451336310646
+ Transfer-Encoding: chunked
+
+ ),
+ )
+ .encode_chunked(
+ normalize_raw_request_data(
+ q(
+ -----------------------------69343412719991675451336310646
+ Content-Disposition: form-data; name="a"
+
+ 1
+ -----------------------------69343412719991675451336310646
+ Content-Disposition: form-data; name="b"
+
+ 2
+ -----------------------------69343412719991675451336310646--
+ )
+ ),
+ 1024
+ ),
+},
+
+# SecCookieFormat
+{
+ type => "config",
+ comment => "SecCookieFormat (pos)",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 5
+ SecCookieFormat 1
+ SecRule REQUEST_COOKIES_NAMES "\@streq SESSIONID" "phase:1,deny,chain"
+ SecRule REQUEST_COOKIES:\$SESSIONID_PATH "\@streq /" "chain"
+ SecRule REQUEST_COOKIES:SESSIONID "\@streq cookieval"
+ ),
+ match_log => {
+ error => [ qr/Access denied with code 403 \(phase 1\)\. String match "cookieval" at REQUEST_COOKIES:SESSIONID\./, 1 ],
+ debug => [ qr(Adding request cookie: name "\$SESSIONID_PATH", value "/"), 1 ],
+ },
+ match_response => {
+ status => qr/^403$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Cookie" => q($Version="1"; SESSIONID="cookieval"; $PATH="/"),
+ ],
+ undef,
+ ),
+},
+{
+ type => "config",
+ comment => "SecCookieFormat (neg)",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 5
+ SecCookieFormat 0
+ SecRule REQUEST_COOKIES_NAMES "\@streq SESSIONID" "phase:1,deny,chain"
+ SecRule REQUEST_COOKIES:\$SESSIONID_PATH "\@streq /" "chain"
+ SecRule REQUEST_COOKIES:SESSIONID "\@streq cookieval"
+ ),
+ match_log => {
+ -error => [ qr/Access denied/, 1 ],
+ -debug => [ qr(Adding request cookie: name "\$SESSIONID_PATH", value "/"), 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Cookie" => q($Version="1"; SESSIONID="cookieval"; $PATH="/"),
+ ],
+ undef,
+ ),
+},
+
--- /dev/null
+### Tests for directives altering how a response is handled
+
+# SecResponseBodyMimeTypesClear
+{
+ type => "config",
+ comment => "SecResponseBodyMimeTypesClear",
+ conf => qq(
+ SecRuleEngine On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeTypesClear
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecRule RESPONSE_BODY "TEST" "phase:4,deny"
+ ),
+ match_log => {
+ -error => [ qr/Access denied/, 1 ],
+ debug => [ qr/Not buffering response body for unconfigured MIME type/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+
+# SecResponseBodyAccess & SecResponseBodyMimeType
+{
+ type => "config",
+ comment => "SecResponseBodyAccess On",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType text/plain null
+ SecRule RESPONSE_BODY "TEST" "phase:4,deny"
+ ),
+ match_log => {
+ error => [ qr/Access denied with code 403 \(phase 4\)\. Pattern match "TEST" at RESPONSE_BODY\./, 1 ],
+ },
+ match_response => {
+ status => qr/^403$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "config",
+ comment => "SecResponseBodyAccess Off",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecResponseBodyAccess Off
+ SecResponseBodyMimeType text/plain null
+ SecRule RESPONSE_BODY "TEST" "phase:4,deny"
+ ),
+ match_log => {
+ -error => [ qr/Access denied/, 1 ],
+ debug => [ qr/Response body buffering is not enabled\./, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+
+# SecResponseBodyLimit
+{
+ type => "config",
+ comment => "SecResponseBodyLimit (equal)",
+ conf => qq(
+ SecRuleEngine On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType text/plain null
+ SecResponseBodyLimit 8192
+ ),
+ match_log => {
+ -error => [ qr/Content-Length \(\d+\) over the limit/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/8k.txt",
+ ),
+},
+{
+ type => "config",
+ comment => "SecResponseBodyLimit (less)",
+ conf => qq(
+ SecRuleEngine On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType text/plain null
+ SecResponseBodyLimit 9000
+ ),
+ match_log => {
+ -error => [ qr/Content-Length \(\d+\) over the limit/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/8k.txt",
+ ),
+},
+{
+ type => "config",
+ comment => "SecResponseBodyLimit (greater)",
+ conf => qq(
+ SecRuleEngine On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType text/plain null
+ SecResponseBodyLimit 8000
+ ),
+ match_log => {
+ error => [ qr/Content-Length \(\d+\) over the limit \(8000\)\./, 1 ],
+ },
+ match_response => {
+ status => qr/^500$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/8k.txt",
+ ),
+},
+
+# ResponseBodyLimitAction
+{
+ type => "config",
+ comment => "SecResponseBodyLimitAction Reject",
+ conf => qq(
+ SecRuleEngine On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType text/plain null
+ SecResponseBodyLimit 5
+ SecResponseBodyLimitAction Reject
+ ),
+ match_log => {
+ error => [ qr/Content-Length \(\d+\) over the limit \(5\)\./, 1 ],
+ },
+ match_response => {
+ status => qr/^500$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/8k.txt",
+ ),
+},
+{
+ type => "config",
+ comment => "SecResponseBodyLimitAction ProcessPartial",
+ conf => qq(
+ SecRuleEngine On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType text/plain null
+ SecResponseBodyLimit 5
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 4
+ SecResponseBodyLimitAction ProcessPartial
+ ),
+ match_log => {
+ -error => [ qr/Content-Length \(\d+\) over the limit/, 1 ],
+ debug => [ qr/Processing partial response body \(limit 5\)/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/8k.txt",
+ ),
+},
--- /dev/null
+### SecChroot tests
+# TODO: Will not work as we need root access
+
+#{
+# type => "config",
+# comment => "SecChroot",
+# httpd_opts => qw(
+# -DCHROOT
+# ),
+# conf => qq(
+# # These will be in the chroot
+# PidFile /logs/httpd.pid
+# ScoreBoardFile /logs/httpd.scoreboard
+# User nobody
+# Group nogroup
+#
+# SecAuditEngine On
+# SecDebugLog $ENV{DEBUG_LOG}
+# SecDebugLogLevel 9
+# SecAuditLog $ENV{AUDIT_LOG}
+# SecAuditLogStorageDir "/logs/audit"
+# SecAuditLogType Concurrent
+# SecChrootDir "$ENV{TEST_SERVER_ROOT}"
+# ),
+# match_log => {
+# debug => [ qr/./, 1 ],
+# audit => [ qr/./, 1 ],
+# },
+# match_response => {
+# status => qr/^200$/,
+# },
+# request => new HTTP::Request(
+# GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+# ),
+#},
--- /dev/null
+### Multipart parser tests
+
+# Final CRLF or not, we should still work
+{
+ type => "misc",
+ comment => "multipart parser (final CRLF)",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecRequestBodyAccess On
+ SecRule MULTIPART_STRICT_ERROR "\@eq 1" "phase:2,deny"
+ SecRule MULTIPART_UNMATCHED_BOUNDARY "\@eq 1" "phase:2,deny"
+ SecRule REQBODY_PROCESSOR_ERROR "\@eq 1" "phase:2,deny"
+ ),
+ match_log => {
+ debug => [ qr/Adding request argument \(BODY\): name "a", value "1".*Adding request argument \(BODY\): name "b", value "2"/s, 1 ],
+ -debug => [ qr/Multipart error:/, 1 ],
+
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "multipart/form-data; boundary=---------------------------69343412719991675451336310646",
+ ],
+ normalize_raw_request_data(
+ q(
+ -----------------------------69343412719991675451336310646
+ Content-Disposition: form-data; name="a"
+
+ 1
+ -----------------------------69343412719991675451336310646
+ Content-Disposition: form-data; name="b"
+
+ 2
+ -----------------------------69343412719991675451336310646--
+ ),
+ ),
+ ),
+},
+{
+ type => "misc",
+ comment => "multipart parser (no final CRLF)",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecRequestBodyAccess On
+ SecRule MULTIPART_STRICT_ERROR "\@eq 1" "phase:2,deny"
+ SecRule MULTIPART_UNMATCHED_BOUNDARY "\@eq 1" "phase:2,deny"
+ SecRule REQBODY_PROCESSOR_ERROR "\@eq 1" "phase:2,deny"
+ ),
+ match_log => {
+ debug => [ qr/Adding request argument \(BODY\): name "a", value "1".*Adding request argument \(BODY\): name "b", value "2"/s, 1 ],
+ -debug => [ qr/Multipart error:/, 1 ],
+
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "multipart/form-data; boundary=---------------------------69343412719991675451336310646",
+ ],
+ normalize_raw_request_data(
+ q(
+ -----------------------------69343412719991675451336310646
+ Content-Disposition: form-data; name="a"
+
+ 1
+ -----------------------------69343412719991675451336310646
+ Content-Disposition: form-data; name="b"
+
+ 2
+ -----------------------------69343412719991675451336310646--),
+ ),
+ ),
+},
+
+# Should work with a boundary of "boundary"
+{
+ type => "misc",
+ comment => "multipart parser (boundary contains \"boundary\")",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecRequestBodyAccess On
+ SecRule MULTIPART_STRICT_ERROR "\@eq 1" "phase:2,deny"
+ SecRule MULTIPART_UNMATCHED_BOUNDARY "\@eq 1" "phase:2,deny"
+ SecRule REQBODY_PROCESSOR_ERROR "\@eq 1" "phase:2,deny"
+ ),
+ match_log => {
+ debug => [ qr/Adding request argument \(BODY\): name "a", value "1".*Adding request argument \(BODY\): name "b", value "2"/s, 1 ],
+ -debug => [ qr/Multipart error:/, 1 ],
+
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "multipart/form-data; boundary=------------------------------------------------boundary",
+ ],
+ normalize_raw_request_data(
+ q(
+ --------------------------------------------------boundary
+ Content-Disposition: form-data; name="a"
+
+ 1
+ --------------------------------------------------boundary
+ Content-Disposition: form-data; name="b"
+
+ 2
+ --------------------------------------------------boundary--
+ ),
+ ),
+ ),
+},
+{
+ type => "misc",
+ comment => "multipart parser (boundary contains \"bOuNdArY\")",
+ note => q(
+ KHTML Boundary
+ ),
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecRequestBodyAccess On
+ SecRule MULTIPART_STRICT_ERROR "\@eq 1" "phase:2,deny"
+ SecRule MULTIPART_UNMATCHED_BOUNDARY "\@eq 1" "phase:2,deny"
+ SecRule REQBODY_PROCESSOR_ERROR "\@eq 1" "phase:2,deny"
+ ),
+ match_log => {
+ debug => [ qr/Adding request argument \(BODY\): name "a", value "1".*Adding request argument \(BODY\): name "b", value "2"/s, 1 ],
+ -debug => [ qr/Multipart error:/, 1 ],
+
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "multipart/form-data; boundary=--------0xKhTmLbOuNdArY",
+ ],
+ normalize_raw_request_data(
+ q(
+ ----------0xKhTmLbOuNdArY
+ Content-Disposition: form-data; name="a"
+
+ 1
+ ----------0xKhTmLbOuNdArY
+ Content-Disposition: form-data; name="b"
+
+ 2
+ ----------0xKhTmLbOuNdArY--
+ ),
+ ),
+ ),
+},
+
+# We should handle data starting with a "--"
+{
+ type => "misc",
+ comment => "multipart parser (data contains \"--\")",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecRequestBodyAccess On
+ SecRule MULTIPART_STRICT_ERROR "\@eq 1" "phase:2,deny"
+ SecRule REQBODY_PROCESSOR_ERROR "\@eq 1" "phase:2,deny"
+ ),
+ match_log => {
+ debug => [ qr/Adding request argument \(BODY\): name "a", value "--test".*Adding request argument \(BODY\): name "b", value "--"/s, 1 ],
+ -debug => [ qr/Multipart error:/, 1 ],
+
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "multipart/form-data; boundary=---------------------------69343412719991675451336310646",
+ ],
+ normalize_raw_request_data(
+ q(
+ -----------------------------69343412719991675451336310646
+ Content-Disposition: form-data; name="a"
+
+ --test
+ -----------------------------69343412719991675451336310646
+ Content-Disposition: form-data; name="b"
+
+ --
+ -----------------------------69343412719991675451336310646--),
+ ),
+ ),
+},
+
+# We should emit warnings for parsing errors
+{
+ type => "misc",
+ comment => "multipart parser error (no final boundary)",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecRequestBodyAccess On
+ SecAuditLog "$ENV{AUDIT_LOG}"
+ SecAuditEngine RelevantOnly
+ ),
+ match_log => {
+ audit => [ qr/Final boundary missing/, 1 ],
+ debug => [ qr/Final boundary missing/, 1 ],
+
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "multipart/form-data; boundary=---------------------------69343412719991675451336310646",
+ ],
+ normalize_raw_request_data(
+ q(
+ -----------------------------69343412719991675451336310646
+ Content-Disposition: form-data; name="a"
+
+ 1
+ -----------------------------69343412719991675451336310646
+ Content-Disposition: form-data; name="b"
+
+ 2
+ ),
+ ),
+ ),
+},
+{
+ type => "misc",
+ comment => "multipart parser error (no disposition)",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecRequestBodyAccess On
+ SecAuditLog "$ENV{AUDIT_LOG}"
+ SecAuditEngine RelevantOnly
+ ),
+ match_log => {
+ -debug => [ qr/Multipart error:/, 1 ],
+ audit => [ qr/Part missing Content-Disposition header/, 1 ],
+ debug => [ qr/Part missing Content-Disposition header/, 1 ],
+
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "multipart/form-data; boundary=---------------------------69343412719991675451336310646",
+ ],
+ normalize_raw_request_data(
+ q(
+ -----------------------------69343412719991675451336310646
+
+ 1
+ -----------------------------69343412719991675451336310646
+
+ 2
+ -----------------------------69343412719991675451336310646--
+ ),
+ ),
+ ),
+},
+{
+ type => "misc",
+ comment => "multipart parser error (bad disposition)",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecRequestBodyAccess On
+ SecAuditLog "$ENV{AUDIT_LOG}"
+ SecAuditEngine RelevantOnly
+ ),
+ match_log => {
+ audit => [ qr/Invalid Content-Disposition header/, 1 ],
+ debug => [ qr/Invalid Content-Disposition header/, 1 ],
+
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "multipart/form-data; boundary=---------------------------69343412719991675451336310646",
+ ],
+ normalize_raw_request_data(
+ q(
+ -----------------------------69343412719991675451336310646
+ Content-Disposition: form-data name="a"
+
+ 1
+ -----------------------------69343412719991675451336310646
+ Content-Disposition: form-data name="b"
+
+ 2
+ -----------------------------69343412719991675451336310646--
+ ),
+ ),
+ ),
+},
+{
+ type => "misc",
+ comment => "multipart parser error (no disposition name)",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecRequestBodyAccess On
+ SecAuditLog "$ENV{AUDIT_LOG}"
+ SecAuditEngine RelevantOnly
+ ),
+ match_log => {
+ -debug => [ qr/Multipart error:/, 1 ],
+ audit => [ qr/Content-Disposition header missing name field/, 1 ],
+ debug => [ qr/Content-Disposition header missing name field/, 1 ],
+
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "multipart/form-data; boundary=---------------------------69343412719991675451336310646",
+ ],
+ normalize_raw_request_data(
+ q(
+ -----------------------------69343412719991675451336310646
+ Content-Disposition: form-data;
+
+ 1
+ -----------------------------69343412719991675451336310646
+ Content-Disposition: form-data;
+
+ 2
+ -----------------------------69343412719991675451336310646--
+ ),
+ ),
+ ),
+},
+# Zero length part name should not crash
+{
+ type => "misc",
+ comment => "multipart parser (zero length part name)",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecRequestBodyAccess On
+ #SecRule MULTIPART_STRICT_ERROR "\@eq 1" "phase:2,deny,status:403"
+ SecRule MULTIPART_UNMATCHED_BOUNDARY "\@eq 1" "phase:2,deny,status:403"
+ SecRule REQBODY_PROCESSOR_ERROR "\@eq 1" "phase:2,deny,status:403"
+ ),
+ match_log => {
+ debug => [ qr/name: a.*variable: 1.*Invalid part header \(header name missing\)/s, 1 ],
+ -debug => [ qr/Adding request argument \(BODY\): name "b"/s, 1 ],
+ },
+ match_response => {
+ status => qr/^403$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "multipart/form-data; boundary=---------------------------69343412719991675451336310646",
+ ],
+ normalize_raw_request_data(
+ q(
+ -----------------------------69343412719991675451336310646
+ Content-Disposition: form-data; name="a"
+
+ 1
+ -----------------------------69343412719991675451336310646
+ :
+ -----------------------------69343412719991675451336310646
+ Content-Disposition: form-data; name="b"
+
+ 2
+ -----------------------------69343412719991675451336310646--
+ ),
+ ),
+ ),
+},
+# Data following final boundary should set flag
+{
+ type => "misc",
+ comment => "multipart parser (data after final boundary)",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecRequestBodyAccess On
+ SecRule MULTIPART_DATA_AFTER "\@eq 1" "phase:2,deny,status:403"
+ ),
+ match_log => {
+ debug => [ qr/name: a.*variable: 1.*Ignoring data after last boundary/s, 1 ],
+ -debug => [ qr/Adding request argument \(BODY\): name "b"/s, 1 ],
+ },
+ match_response => {
+ status => qr/^403$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "multipart/form-data; boundary=---------------------------69343412719991675451336310646",
+ ],
+ normalize_raw_request_data(
+ q(
+ -----------------------------69343412719991675451336310646
+ Content-Disposition: form-data; name="a"
+
+ 1
+ -----------------------------69343412719991675451336310646--
+ -----------------------------69343412719991675451336310646
+ Content-Disposition: form-data; name="b"
+
+ 2
+ -----------------------------69343412719991675451336310646--
+ ),
+ ),
+ ),
+},
+# Single quoted data is invalid
+{
+ type => "misc",
+ comment => "multipart parser (C-D uses single quotes)",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecRequestBodyAccess On
+ #SecRule MULTIPART_STRICT_ERROR "\@eq 1" "phase:2,deny,status:403"
+ SecRule MULTIPART_INVALID_QUOTING "\@eq 1" "chain,phase:2,deny,status:403"
+ SecRule REQBODY_PROCESSOR_ERROR "\@eq 1"
+ ),
+ match_log => {
+ debug => [ qr/name: a.*variable: 1.*Duplicate Content-Disposition name/s, 1 ],
+ -debug => [ qr/Adding request argument \(BODY\): name "b/s, 1 ],
+ },
+ match_response => {
+ status => qr/^403$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "multipart/form-data; boundary=---------------------------69343412719991675451336310646",
+ ],
+ normalize_raw_request_data(
+ q(
+ -----------------------------69343412719991675451336310646
+ Content-Disposition: form-data; name="a"
+
+ 1
+ -----------------------------69343412719991675451336310646
+ Content-Disposition: form-data; name=';filename="dummy';name=b;"
+
+ 2
+ -----------------------------69343412719991675451336310646--
+ ),
+ ),
+ ),
+},
--- /dev/null
+### Test the phases
+
+# Phase 1 (request headers)
+{
+ type => "misc",
+ comment => "phase 1",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType text/plain null
+ SecRule REQUEST_LINE "^POST" "phase:1,pass,log,auditlog"
+ SecRule ARGS "val1" "phase:1,pass,log,auditlog"
+ SecRule RESPONSE_HEADERS:Last-Modified "." "phase:1,pass,log,auditlog"
+ SecRule RESPONSE_BODY "TEST" "phase:1,pass,log,auditlog"
+ ),
+ match_log => {
+ error => [ qr/Pattern match "\^POST" at REQUEST_LINE/, 1 ],
+ -error => [ qr/Pattern match .* (ARGS|RESPONSE)/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "application/x-www-form-urlencoded",
+ ],
+ "arg1=val1&arg2=val2",
+ ),
+},
+
+# Phase 2 (request body)
+{
+ type => "misc",
+ comment => "phase 2",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType text/plain null
+ SecRule REQUEST_LINE "^POST" "phase:2,pass,log,auditlog"
+ SecRule ARGS "val1" "phase:2,pass,log,auditlog"
+ SecRule RESPONSE_HEADERS:Last-Modified "." "phase:2,pass,log,auditlog"
+ SecRule RESPONSE_BODY "TEST" "phase:2,pass,log,auditlog"
+ ),
+ match_log => {
+ error => [ qr/Pattern match "\^POST" at REQUEST_LINE.*Pattern match "val1" at ARGS/s, 1 ],
+ -error => [ qr/Pattern match .* RESPONSE/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "application/x-www-form-urlencoded",
+ ],
+ "arg1=val1&arg2=val2",
+ ),
+},
+
+# Phase 3 (response headers)
+{
+ type => "misc",
+ comment => "phase 3",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType text/plain null
+ SecRule REQUEST_LINE "^POST" "phase:3,pass,log,auditlog"
+ SecRule ARGS "val1" "phase:3,pass,log,auditlog"
+ SecRule RESPONSE_HEADERS:Last-Modified "." "phase:3,pass,log,auditlog"
+ SecRule RESPONSE_BODY "TEST" "phase:3,pass,log,auditlog"
+ ),
+ match_log => {
+ error => [ qr/Pattern match "\^POST" at REQUEST_LINE.*Pattern match "val1" at ARGS.*Pattern match "\." at RESPONSE_HEADERS/s, 1 ],
+ -error => [ qr/Pattern match .* RESPONSE_BODY/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "application/x-www-form-urlencoded",
+ ],
+ "arg1=val1&arg2=val2",
+ ),
+},
+
+# Phase 4 (response body)
+{
+ type => "misc",
+ comment => "phase 4",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType text/plain null
+ SecDebugLog "$ENV{DEBUG_LOG}"
+ SecDebugLogLevel 9
+ SecRule REQUEST_LINE "^POST" "phase:4,pass,log,auditlog"
+ SecRule ARGS "val1" "phase:4,pass,log,auditlog"
+ SecRule RESPONSE_HEADERS:Last-Modified "." "phase:4,pass,log,auditlog"
+ SecRule RESPONSE_BODY "TEST" "phase:4,pass,log,auditlog"
+ ),
+ match_log => {
+ error => [ qr/Pattern match "\^POST" at REQUEST_LINE.*Pattern match "val1" at ARGS.*Pattern match "\." at RESPONSE_HEADERS.*Pattern match "TEST" at RESPONSE_BODY/s, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "application/x-www-form-urlencoded",
+ ],
+ "arg1=val1&arg2=val2",
+ ),
+},
+
+# Phase 5 (logging)
+{
+ type => "misc",
+ comment => "phase 5",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType text/plain null
+ SecRule REQUEST_LINE "^POST" "phase:5,pass,log,auditlog"
+ SecRule ARGS "val1" "phase:5,pass,log,auditlog"
+ SecRule RESPONSE_HEADERS:Last-Modified "." "phase:5,pass,log,auditlog"
+ SecRule RESPONSE_BODY "TEST" "phase:5,pass,log,auditlog"
+ ),
+ match_log => {
+ error => [ qr/Pattern match "\^POST" at REQUEST_LINE.*Pattern match "val1" at ARGS.*Pattern match "\." at RESPONSE_HEADERS.*Pattern match "TEST" at RESPONSE_BODY/s, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "application/x-www-form-urlencoded",
+ ],
+ "arg1=val1&arg2=val2",
+ ),
+},
--- /dev/null
+### Transformation Caching
+
+{
+ type => "misc",
+ comment => "tfncache (simple fully cached)",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+
+ # We need to make this work no matter what the defaults may change to
+ SecCacheTransformations On "minlen:1,maxlen:0"
+
+ # This should cache it
+ SecRule ARGS_GET "WillNotMatch" "phase:1,t:none,t:removeWhiteSpace,t:lowercase,pass,nolog"
+
+ # This should use the cached value
+ SecRule ARGS_GET:test "foobar" "phase:1,t:none,t:removeWhiteSpace,t:lowercase,deny"
+ ),
+ match_log => {
+ debug => [ qr/removeWhiteSpace,lowercase: "foobar" .*cached/, 1 ],
+ -debug => [ qr/partially cached/, 1 ],
+ },
+ match_response => {
+ status => qr/^403$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/index.html?test=Foo+Bar",
+ ),
+},
+{
+ type => "misc",
+ comment => "tfncache (simple partially cached)",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+
+ # We need to make this work no matter what the defaults may change to
+ SecCacheTransformations On "minlen:1,maxlen:0,incremental:off,maxitems:0"
+
+ # This should cache it
+ SecRule ARGS_GET "WillNotMatch" "phase:1,t:none,t:removeWhiteSpace,pass,nolog"
+
+ # This should use the partially cached value
+ SecRule ARGS_GET:test "foobar" "phase:1,t:none,t:removeWhiteSpace,t:lowercase,deny"
+ ),
+ match_log => {
+ debug => [ qr/removeWhiteSpace: "FooBar" .*partially cached/, 1 ],
+ },
+ match_response => {
+ status => qr/^403$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/index.html?test=Foo+Bar",
+ ),
+},
+{
+ type => "misc",
+ comment => "tfncache (separate phases)",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+
+ # We need to make this work no matter what the defaults may change to
+ SecCacheTransformations On "minlen:1,maxlen:0"
+
+ # This should cache it
+ SecRule ARGS_GET "WillNotMatch" "phase:1,t:none,t:removeWhiteSpace,t:lowercase,pass,nolog"
+
+ # This should use the cached value
+ SecRule ARGS_GET:test "foobar" "phase:2,t:none,t:removeWhiteSpace,t:lowercase,deny"
+ ),
+ match_log => {
+ -debug => [ qr/removeWhiteSpace,lowercase: "foobar" .*cached/, 1 ],
+ },
+ match_response => {
+ status => qr/^403$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/index.html?test=Foo+Bar",
+ ),
+},
+{
+ type => "misc",
+ comment => "tfncache (non-modifying tfns cached)",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+
+ # We need to make this work no matter what the defaults may change to
+ SecCacheTransformations On "minlen:1,maxlen:0"
+
+ # This should cache it
+ SecRule ARGS_GET "WillNotMatch" "phase:1,t:none,t:removeWhiteSpace,t:lowercase,pass,nolog"
+
+ # This should use the cached value
+ SecRule ARGS_GET:test "foobar" "phase:1,t:none,t:removeWhiteSpace,t:lowercase,deny"
+ ),
+ match_log => {
+ debug => [ qr/removeWhiteSpace,lowercase: "foobar" .*cached/, 1 ],
+ },
+ match_response => {
+ status => qr/^403$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/index.html?test=foo+bar",
+ ),
+},
+{
+ type => "misc",
+ comment => "tfncache (unique keys)",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecRequestBodyAccess On
+
+ # We need to make this work no matter what the defaults may change to
+ SecCacheTransformations On "minlen:1,maxlen:0"
+
+ # This should cache it
+ SecRule ARGS "WillNotMatch" "phase:2,t:none,t:removeWhiteSpace,t:lowercase,pass"
+
+ # This should see cached versions of *both* ARGS_GET
+ SecRule ARGS:test "queryval" "phase:2,t:none,t:removeWhiteSpace,t:lowercase,deny,chain"
+ SecRule ARGS:test "firstval" "t:none,t:removeWhiteSpace,t:lowercase,chain"
+ SecRule ARGS:test "secondval" "t:none,t:removeWhiteSpace,t:lowercase"
+ ),
+ match_log => {
+ debug => [ qr/removeWhiteSpace,lowercase: "queryval" .*removeWhiteSpace,lowercase: "firstval" .*cached.*removeWhiteSpace,lowercase: "secondval" .*cached/s, 1 ],
+ },
+ match_response => {
+ status => qr/^403$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/index.html?test=Query+Val",
+ [
+ "Content-Type" => "application/x-www-form-urlencoded",
+ ],
+ # Args
+ "test=First+Val&test=Second+Val",
+ ),
+},
+{
+ type => "misc",
+ comment => "tfncache (large cache)",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecRequestBodyAccess On
+
+ <IfDefine MODSEC_2.5>
+ SecRequestBodyNoFilesLimit 1048576
+ </IfDefine>
+ SecRequestBodyInMemoryLimit 131072
+ SecResponseBodyLimit 1048576
+
+ # We need to make this work no matter what the defaults may change to
+ SecCacheTransformations On "minlen:1,maxlen:0,maxitems:0"
+
+ # This should cache it in all phases
+ SecRule ARGS "WillNotMatch" "phase:1,t:none,t:removeWhiteSpace,t:lowercase,pass,nolog"
+ SecRule ARGS "WillNotMatch" "phase:2,t:none,t:removeWhiteSpace,t:lowercase,pass,nolog"
+ SecRule ARGS "WillNotMatch" "phase:3,t:none,t:removeWhiteSpace,t:lowercase,pass,nolog"
+ SecRule ARGS "WillNotMatch" "phase:4,t:none,t:removeWhiteSpace,t:lowercase,pass,nolog"
+
+ # This should use the cached value
+ SecRule ARGS "foobar" "phase:4,t:none,t:removeWhiteSpace,t:lowercase,deny"
+ ),
+ match_log => {
+ debug => [ qr/Adding request argument \(BODY\): name "test", value "Foo Bar"/, 60, "Waiting for httpd to process request: "],
+ -error => [ qr/segmentation fault/i, 60 ],
+ },
+ match_response => {
+ status => qr/^403$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/index.html",
+ [
+ "Content-Type" => "application/x-www-form-urlencoded",
+ ],
+ # 1000 Args
+ join("&", map { sprintf "arg%08d=0123456789abcdef+0123456789ABCDEF+0123456789abcdef", $_ } (1 .. 1000))."&test=Foo+Bar",
+ ),
+},
--- /dev/null
+# PDF XSS Protection
+
+{
+ type => "misc",
+ comment => "pdf-xss - GET",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+
+ SecPdfProtect On
+ SecPdfProtectMethod TokenRedirection
+ SecPdfProtectSecret FooBar
+ SecPdfProtectTimeout 10
+ ),
+ match_log => {
+ debug => [ qr/PdfProtect: PDF request without a token - redirecting to/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.pdf",
+ ),
+},
+{
+ type => "misc",
+ comment => "pdf-xss - POST",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+
+ SecPdfProtect On
+ SecPdfProtectMethod TokenRedirection
+ SecPdfProtectSecret FooBar
+ SecPdfProtectTimeout 10
+ ),
+ match_log => {
+ -error => [ qr/exit signal/, 1 ],
+ debug => [ qr/PdfProtect: Not intercepting.*method=POST\/2/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.pdf",
+ [
+ "Content-Type" => "application/x-www-form-urlencoded",
+ ],
+ # Args
+ "a=1&b=2",
+ ),
+},
--- /dev/null
+### Tests for basic rule components
+
+# SecAction
+{
+ type => "rule",
+ comment => "SecAction (override default)",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 4
+ SecAction "nolog"
+ ),
+ match_log => {
+ -error => [ qr/ModSecurity: /, 1 ],
+ -audit => [ qr/./, 1 ],
+ debug => [ qr/Warning\. Unconditional match in SecAction\./, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+
+# SecRule
+{
+ type => "rule",
+ comment => "SecRule (no action)",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 5
+ SecDefaultAction "phase:2,deny,status:403"
+ SecRule ARGS:test "value"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: /, 1 ],
+ debug => [ qr/Rule [0-9a-f]+: SecRule "ARGS:test" "\@rx value" "phase:2,deny,status:403"$/m, 1 ],
+ },
+ match_response => {
+ status => qr/^403$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt?test=value",
+ ),
+},
+{
+ type => "rule",
+ comment => "SecRule (action)",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 5
+ SecDefaultAction "phase:2,pass"
+ SecRule ARGS:test "value" "deny,status:403"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: /, 1 ],
+ debug => [ qr/Rule [0-9a-f]+: SecRule "ARGS:test" "\@rx value" "phase:2,deny,status:403"$/m, 1 ],
+ },
+ match_response => {
+ status => qr/^403$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt?test=value",
+ ),
+},
+{
+ type => "rule",
+ comment => "SecRule (chain)",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 5
+ SecDefaultAction "phase:2,log,noauditlog,pass,tag:foo"
+ SecRule ARGS:test "value" "chain,phase:2,deny,status:403"
+ SecRule &ARGS "\@eq 1" "chain,setenv:tx.foo=bar"
+ SecRule REQUEST_METHOD "\@streq GET"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: /, 1 ],
+ debug => [ qr/Rule [0-9a-f]+: SecRule "ARGS:test" "\@rx value" "phase:2,log,noauditlog,tag:foo,chain,deny,status:403"\r?\n.*Rule [0-9a-f]+: SecRule "&ARGS" "\@eq 1" "chain,setenv:tx.foo=bar"\r?\n.*Rule [0-9a-f]+: SecRule "REQUEST_METHOD" "\@streq GET"\r?\n/s, 1 ],
+ },
+ match_response => {
+ status => qr/^403$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt?test=value",
+ ),
+},
--- /dev/null
+### Tests for rule inheritance
+
+### TODO:
+# SecRuleInheritance
--- /dev/null
+### Test for SecRuleScript
+
+# Lua
+{
+ type => "rule",
+ comment => "SecRuleScript (lua absolute nomatch)",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 1
+ SecRuleScript "$ENV{CONF_DIR}/test.lua" "phase:2,deny"
+ ),
+ match_log => {
+ -error => [ qr/Lua script matched\./, 1 ],
+ debug => [ qr/Test message\./, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "rule",
+ comment => "SecRuleScript (lua relative nomatch)",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 1
+ SecRuleScript "test.lua" "phase:2,deny"
+ ),
+ match_log => {
+ -error => [ qr/Lua script matched\./, 1 ],
+ debug => [ qr/Test message\./, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "rule",
+ comment => "SecRuleScript (lua relative match)",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 1
+ SecRuleScript "match.lua" "phase:2,deny"
+ ),
+ match_log => {
+ error => [ qr/ModSecurity: Access denied with code 403 \(phase 2\)\. Lua script matched\./, 1 ],
+ debug => [ qr/Test message\./, 1 ],
+ },
+ match_response => {
+ status => qr/^403$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
--- /dev/null
+### Test for XML operator rules
+
+### Validate Scheme
+# OK
+{
+ type => "rule",
+ comment => "validateSchema (validate ok)",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecRule REQUEST_HEADERS:Content-Type "^text/xml\$" \\
+ "phase:1,t:none,t:lowercase,nolog,pass,ctl:requestBodyProcessor=XML"
+ SecRule REQBODY_PROCESSOR "!^XML\$" nolog,pass,skipAfter:12345
+ SecRule XML "\@validateSchema $ENV{CONF_DIR}/SoapEnvelope.xsd" \\
+ "phase:2,deny,id:12345"
+ ),
+ match_log => {
+ debug => [ qr/XML: Initialising parser.*XML: Parsing complete \(well_formed 1\).*Target value: "\[XML document tree\]".*Successfully validated payload against Schema/s, 1 ],
+ -debug => [ qr/XML parser error|validation failed|Failed to load/, 1 ],
+ -error => [ qr/XML parser error|validation failed|Failed to load/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "text/xml",
+ ],
+ normalize_raw_request_data(
+ q(
+ <?xml version="1.0" encoding="utf-8"?>
+ <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
+ xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
+ xmlns:tns="http://www.bluebank.example.com/axis/getBalance.jws"
+ xmlns:types="http://www.bluebank.example.com/axis/getBalance.jws/encodedTypes"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
+ <q1:getInput xmlns:q1="http://DefaultNamespace">
+ <id xsi:type="xsd:string">12123</id>
+ </q1:getInput>
+ </soap:Body>
+ </soap:Envelope>
+ ),
+ ),
+ ),
+},
+# Failed attribute value
+{
+ type => "rule",
+ comment => "validateSchema (validate attribute value failed)",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecAuditEngine RelevantOnly
+ SecAuditLog "$ENV{AUDIT_LOG}"
+ SecRule REQUEST_HEADERS:Content-Type "^text/xml\$" \\
+ "phase:1,t:none,t:lowercase,nolog,pass,ctl:requestBodyProcessor=XML"
+ SecRule REQBODY_PROCESSOR "!^XML\$" nolog,pass,skipAfter:12345
+ SecRule XML "\@validateSchema $ENV{CONF_DIR}/SoapEnvelope.xsd" \\
+ "phase:2,deny,log,auditlog,id:12345"
+ ),
+ match_log => {
+ debug => [ qr/XML: Initialising parser.*XML: Parsing complete \(well_formed 1\).*Target value: "\[XML document tree\]".*'badval' is not a valid value of the local atomic type.*Schema validation failed/s, 1 ],
+ -debug => [ qr/Successfully validated payload against Schema|\n\r?\n/, 1 ],
+ audit => [ qr/^Message: Element.*'badval' is not a valid value of the local atomic type\.\nMessage:/m, 1 ],
+ },
+ match_response => {
+ status => qr/^403$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "text/xml",
+ ],
+ normalize_raw_request_data(
+ q(
+ <?xml version="1.0" encoding="utf-8"?>
+ <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
+ xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
+ xmlns:tns="http://www.bluebank.example.com/axis/getBalance.jws"
+ xmlns:types="http://www.bluebank.example.com/axis/getBalance.jws/encodedTypes"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <soap:Body soap:mustUnderstand="badval" soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
+ <q1:getInput xmlns:q1="http://DefaultNamespace">
+ <id xsi:type="xsd:string">12123</id>
+ </q1:getInput>
+ </soap:Body>
+ </soap:Envelope>
+ ),
+ ),
+ ),
+},
+# Failed validation
+{
+ type => "rule",
+ comment => "validateSchema (validate failed)",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecAuditEngine RelevantOnly
+ SecAuditLog "$ENV{AUDIT_LOG}"
+ SecRule REQUEST_HEADERS:Content-Type "^text/xml\$" \\
+ "phase:1,t:none,t:lowercase,nolog,pass,ctl:requestBodyProcessor=XML"
+ SecRule REQBODY_PROCESSOR "!^XML\$" nolog,pass,skipAfter:12345
+ SecRule XML "\@validateSchema $ENV{CONF_DIR}/SoapEnvelope.xsd" \\
+ "phase:2,deny,id:12345"
+ ),
+ match_log => {
+ debug => [ qr/XML: Initialising parser.*XML: Parsing complete \(well_formed 1\).*Target value: "\[XML document tree\]".*element is not expected/s, 1 ],
+ -debug => [ qr/XML parser error|Failed to load/, 1 ],
+ -error => [ qr/XML parser error|Failed to load/, 1 ],
+ audit => [ qr/^Message: Element.*This element is not expected.*\nMessage:/m, 1 ],
+ },
+ match_response => {
+ status => qr/^403$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "text/xml",
+ ],
+ normalize_raw_request_data(
+ q(
+ <?xml version="1.0" encoding="utf-8"?>
+ <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
+ xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
+ xmlns:tns="http://www.bluebank.example.com/axis/getBalance.jws"
+ xmlns:types="http://www.bluebank.example.com/axis/getBalance.jws/encodedTypes"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <soap:xBody soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
+ <q1:getInput xmlns:q1="http://DefaultNamespace">
+ <id xsi:type="xsd:string">12123</id>
+ </q1:getInput>
+ </soap:xBody>
+ </soap:Envelope>
+ ),
+ ),
+ ),
+},
+# Bad XML
+{
+ type => "rule",
+ comment => "validateSchema (bad XML)",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecAuditEngine RelevantOnly
+ SecAuditLog "$ENV{AUDIT_LOG}"
+ SecRule REQUEST_HEADERS:Content-Type "^text/xml\$" \\
+ "phase:1,t:none,t:lowercase,nolog,pass,ctl:requestBodyProcessor=XML"
+ SecRule REQBODY_PROCESSOR "!^XML\$" nolog,pass,skipAfter:12345
+ SecRule XML "\@validateSchema $ENV{CONF_DIR}/SoapEnvelope.xsd" \\
+ "phase:2,deny,id:12345"
+ ),
+ match_log => {
+ debug => [ qr/XML: Initialising parser.*XML: Parsing complete \(well_formed 0\).*XML parser error.*validation failed because content is not well formed/s, 1 ],
+ -debug => [ qr/Failed to load|Successfully validated/, 1 ],
+ -error => [ qr/Failed to load|Successfully validated/, 1 ],
+ audit => [ qr/^Message: .*Failed parsing document.*\nMessage:/m, 1 ],
+ },
+ match_response => {
+ status => qr/^403$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "text/xml",
+ ],
+ normalize_raw_request_data(
+ q(
+ <?xml version="1.0" encoding="utf-8"?>
+ <soap:Envelop xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
+ xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
+ xmlns:tns="http://www.bluebank.example.com/axis/getBalance.jws"
+ xmlns:types="http://www.bluebank.example.com/axis/getBalance.jws/encodedTypes"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
+ <q1:getInput xmlns:q1="http://DefaultNamespace">
+ <id xsi:type="xsd:string">12123</id>
+ </q1:getInput>
+ </soap:Body>
+ </soap:Envelope>
+ ),
+ ),
+ ),
+},
+# Bad schema
+{
+ type => "rule",
+ comment => "validateSchema (bad schema)",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecAuditEngine RelevantOnly
+ SecAuditLog "$ENV{AUDIT_LOG}"
+ SecRule REQUEST_HEADERS:Content-Type "^text/xml\$" \\
+ "phase:1,t:none,t:lowercase,nolog,pass,ctl:requestBodyProcessor=XML"
+ SecRule REQBODY_PROCESSOR "!^XML\$" nolog,pass,skipAfter:12345
+ SecRule XML "\@validateSchema $ENV{CONF_DIR}/SoapEnvelope-bad.xsd" \\
+ "phase:2,deny,id:12345"
+ ),
+ match_log => {
+ debug => [ qr/XML: Initialising parser.*XML: Parsing complete \(well_formed 1\).*Target value: "\[XML document tree\]".*Failed to parse the XML resource.*Failed to load Schema/s, 1 ],
+ audit => [ qr/^Message: .*Failed to parse the XML resource.*\nMessage: Rule processing failed/m, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "text/xml",
+ ],
+ normalize_raw_request_data(
+ q(
+ <?xml version="1.0" encoding="utf-8"?>
+ <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
+ xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
+ xmlns:tns="http://www.bluebank.example.com/axis/getBalance.jws"
+ xmlns:types="http://www.bluebank.example.com/axis/getBalance.jws/encodedTypes"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
+ <q1:getInput xmlns:q1="http://DefaultNamespace">
+ <id xsi:type="xsd:string">12123</id>
+ </q1:getInput>
+ </soap:Body>
+ </soap:Envelope>
+ ),
+ ),
+ ),
+},
+
+# Validate DTD
+# OK
+{
+ type => "rule",
+ comment => "validateDTD (validate ok)",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecRule REQUEST_HEADERS:Content-Type "^text/xml\$" \\
+ "phase:1,t:none,t:lowercase,nolog,pass,ctl:requestBodyProcessor=XML"
+ SecRule REQBODY_PROCESSOR "!^XML\$" nolog,pass,skipAfter:12345
+ SecRule XML "\@validateDTD $ENV{CONF_DIR}/SoapEnvelope.dtd" \\
+ "phase:2,deny,id:12345"
+ ),
+ match_log => {
+ debug => [ qr/XML: Initialising parser.*XML: Parsing complete \(well_formed 1\).*Target value: "\[XML document tree\]".*Successfully validated payload against DTD/s, 1 ],
+ -debug => [ qr/XML parser error|validation failed|Failed to load/, 1 ],
+ -error => [ qr/XML parser error|validation failed|Failed to load/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "text/xml",
+ ],
+ normalize_raw_request_data(
+ q(
+ <?xml version="1.0" encoding="utf-8"?>
+ <!DOCTYPE Envelope SYSTEM "SoapEnvelope.dtd">
+ <Envelope>
+ <Body>
+ <getInput>
+ <id type="string">12123</id>
+ </getInput>
+ </Body>
+ </Envelope>
+ ),
+ ),
+ ),
+},
+# Failed validation
+{
+ type => "rule",
+ comment => "validateDTD (validate failed)",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecRule REQUEST_HEADERS:Content-Type "^text/xml\$" \\
+ "phase:1,t:none,t:lowercase,nolog,pass,ctl:requestBodyProcessor=XML"
+ SecRule REQBODY_PROCESSOR "!^XML\$" nolog,pass,skipAfter:12345
+ SecRule XML "\@validateDTD $ENV{CONF_DIR}/SoapEnvelope.dtd" \\
+ "phase:2,deny,id:12345"
+ ),
+ match_log => {
+ debug => [ qr/XML: Initialising parser.*XML: Parsing complete \(well_formed 1\).*Target value: "\[XML document tree\]".*content does not follow the DTD/s, 1 ],
+ -debug => [ qr/XML parser error|Failed to load/, 1 ],
+ -error => [ qr/XML parser error|Failed to load/, 1 ],
+ },
+ match_response => {
+ status => qr/^403$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "text/xml",
+ ],
+ normalize_raw_request_data(
+ q(
+ <?xml version="1.0" encoding="utf-8"?>
+ <!DOCTYPE Envelope SYSTEM "SoapEnvelope.dtd">
+ <Envelope>
+ <xBody>
+ <getInput>
+ <id type="string">12123</id>
+ </getInput>
+ </xBody>
+ </Envelope>
+ ),
+ ),
+ ),
+},
+# Bad XML
+{
+ type => "rule",
+ comment => "validateDTD (bad XML)",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecRule REQUEST_HEADERS:Content-Type "^text/xml\$" \\
+ "phase:1,t:none,t:lowercase,nolog,pass,ctl:requestBodyProcessor=XML"
+ SecRule REQBODY_PROCESSOR "!^XML\$" nolog,pass,skipAfter:12345
+ SecRule XML "\@validateDTD $ENV{CONF_DIR}/SoapEnvelope.dtd" \\
+ "phase:2,deny,id:12345"
+ ),
+ match_log => {
+ debug => [ qr/XML: Initialising parser.*XML: Parsing complete \(well_formed 0\).*XML parser error.*validation failed because content is not well formed/s, 1 ],
+ -debug => [ qr/Failed to load|Successfully validated/, 1 ],
+ -error => [ qr/Failed to load|Successfully validated/, 1 ],
+ },
+ match_response => {
+ status => qr/^403$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "text/xml",
+ ],
+ normalize_raw_request_data(
+ q(
+ <?xml version="1.0" encoding="utf-8"?>
+ <!DOCTYPE Envelope SYSTEM "SoapEnvelope.dtd">
+ <Envelop>
+ <Body>
+ <getInput>
+ <id type="string">12123</id>
+ </getInput>
+ </Body>
+ </Envelope>
+ ),
+ ),
+ ),
+},
+# Bad DTD
+{
+ type => "rule",
+ comment => "validateDTD (bad DTD)",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecRule REQUEST_HEADERS:Content-Type "^text/xml\$" \\
+ "phase:1,t:none,t:lowercase,nolog,pass,ctl:requestBodyProcessor=XML"
+ SecRule REQBODY_PROCESSOR "!^XML\$" nolog,pass,skipAfter:12345
+ SecRule XML "\@validateDTD $ENV{CONF_DIR}/SoapEnvelope-bad.dtd" \\
+ "phase:2,deny,id:12345"
+ ),
+ match_log => {
+ debug => [ qr/XML: Initialising parser.*XML: Parsing complete \(well_formed 1\).*Target value: "\[XML document tree\]".*Failed to load DTD/s, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "text/xml",
+ ],
+ normalize_raw_request_data(
+ q(
+ <?xml version="1.0" encoding="utf-8"?>
+ <!DOCTYPE Envelope SYSTEM "SoapEnvelope.dtd">
+ <Envelope>
+ <Body>
+ <getInput>
+ <id type="string">12123</id>
+ </getInput>
+ </Body>
+ </Envelope>
+ ),
+ ),
+ ),
+},
--- /dev/null
+### Tests for rule exceptions
+
+# SecRuleRemoveById
+{
+ type => "rule",
+ comment => "SecRuleRemoveById (single)",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecRule REQUEST_URI "test" "phase:1,deny,status:500,id:1"
+ SecRuleRemoveById 1
+ ),
+ match_log => {
+ -error => [ qr/ModSecurity: /, 1 ],
+ -audit => [ qr/./, 1 ],
+ debug => [ qr/Starting phase REQUEST_HEADERS\..*This phase consists of 0 rule.*Starting phase RESPONSE_HEADERS\./s, 1 ],
+ -debug => [ qr/Access denied/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "rule",
+ comment => "SecRuleRemoveById (multiple)",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecRule REQUEST_URI "test" "phase:1,deny,status:500,id:1"
+ SecRule REQUEST_URI "test" "phase:1,deny,status:500,id:2"
+ SecRule REQUEST_URI "test" "phase:1,deny,status:500,id:3"
+ SecRuleRemoveById 1 2 3
+ ),
+ match_log => {
+ -error => [ qr/ModSecurity: /, 1 ],
+ -audit => [ qr/./, 1 ],
+ debug => [ qr/Starting phase REQUEST_HEADERS\..*This phase consists of 0 rule.*Starting phase RESPONSE_HEADERS\./s, 1 ],
+ -debug => [ qr/Access denied/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "rule",
+ comment => "SecRuleRemoveById (range)",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecRule REQUEST_URI "test" "phase:1,deny,status:500,id:1"
+ SecRule REQUEST_URI "test" "phase:1,deny,status:500,id:2"
+ SecRule REQUEST_URI "test" "phase:1,deny,status:500,id:3"
+ SecRuleRemoveById 1-3
+ ),
+ match_log => {
+ -error => [ qr/ModSecurity: /, 1 ],
+ -audit => [ qr/./, 1 ],
+ debug => [ qr/Starting phase REQUEST_HEADERS\..*This phase consists of 0 rule.*Starting phase RESPONSE_HEADERS\./s, 1 ],
+ -debug => [ qr/Access denied/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "rule",
+ comment => "SecRuleRemoveById (multiple + range)",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecRule REQUEST_URI "test" "phase:1,deny,status:500,id:1"
+ SecRule REQUEST_URI "test" "phase:1,deny,status:500,id:2"
+ SecRule REQUEST_URI "test" "phase:1,deny,status:500,id:3"
+ SecRule REQUEST_URI "test" "phase:1,deny,status:500,id:4"
+ SecRuleRemoveById 1 2-4
+ ),
+ match_log => {
+ -error => [ qr/ModSecurity: /, 1 ],
+ -audit => [ qr/./, 1 ],
+ debug => [ qr/Starting phase REQUEST_HEADERS\..*This phase consists of 0 rule.*Starting phase RESPONSE_HEADERS\./s, 1 ],
+ -debug => [ qr/Access denied/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+
+# SecRuleRemoveByMsg
+{
+ type => "rule",
+ comment => "SecRuleRemoveByMsg",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecRule REQUEST_URI "test" "phase:1,deny,status:500,id:1,msg:'testing rule'"
+ SecRuleRemoveByMsg "testing rule"
+ ),
+ match_log => {
+ -error => [ qr/ModSecurity: /, 1 ],
+ -audit => [ qr/./, 1 ],
+ debug => [ qr/Starting phase REQUEST_HEADERS\..*This phase consists of 0 rule.*Starting phase RESPONSE_HEADERS\./s, 1 ],
+ -debug => [ qr/Access denied/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+
+# SecRuleUpdateActionById
+{
+ type => "rule",
+ comment => "SecRuleUpdateActionById",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecRule REQUEST_URI "test" "phase:1,deny,status:500,id:1,msg:'testing rule'"
+ SecRuleUpdateActionById 1 "pass,nolog"
+ ),
+ match_log => {
+ -error => [ qr/ModSecurity: /, 1 ],
+ -audit => [ qr/./, 1 ],
+ debug => [ qr/id:1,.*,pass,nolog/, 1 ],
+ -debug => [ qr/Access denied/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ ),
+},
+{
+ type => "rule",
+ comment => "SecRuleUpdateActionById (chain)",
+ conf => qq(
+ SecRuleEngine On
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecRule REQUEST_URI "test" "phase:1,deny,status:500,id:1,msg:'testing rule',chain"
+ SecRule ARGS "bar"
+ SecRuleUpdateActionById 1 "pass,nolog"
+ ),
+ match_log => {
+ -error => [ qr/ModSecurity: /, 1 ],
+ -audit => [ qr/./, 1 ],
+ debug => [ qr/id:1,.*,pass,nolog/, 1 ],
+ -debug => [ qr/Access denied/, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt?foo=bar",
+ ),
+},
--- /dev/null
+<!-- A stupid Soap DTD example -->
+<!ELEMENT Envelope (Header?,Body)>
+<!ELEMENT Header (#PCDATA)>
+<!ELEMENT Body (getInput)>
+
+<!ELEMENT getInput (id)>
+<!ELEMENT id (#PCDATA)>
+<!ATLIST id type CDATA #REQUIRED>
--- /dev/null
+<?xml version='1.0' encoding='UTF-8' ?>
+
+<!-- Schema for the SOAP/1.1 envelope
+
+Portions © 2001 DevelopMentor.
+© 2001 W3C (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights Reserved.
+
+This document is governed by the W3C Software License [1] as described in the FAQ [2].
+[1] http://www.w3.org/Consortium/Legal/copyright-software-19980720
+[2] http://www.w3.org/Consortium/Legal/IPR-FAQ-20000620.html#DTD
+By obtaining, using and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions:
+
+Permission to use, copy, modify, and distribute this software and its documentation, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the software and documentation or portions thereof, including modifications, that you make:
+
+1. The full text of this NOTICE in a location viewable to users of the redistributed or derivative work.
+
+2. Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, a short notice of the following form (hypertext is preferred, text is permitted) should be used within the body of any redistributed or derivative code: "Copyright © 2001 World Wide Web Consortium, (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights Reserved. http://www.w3.org/Consortium/Legal/"
+
+3. Notice of any changes or modifications to the W3C files, including the date changes were made. (We recommend you provide URIs to the location from which the code is derived.)
+
+Original W3C files; http://www.w3.org/2001/06/soap-envelope
+Changes made:
+ - reverted namespace to http://schemas.xmlsoap.org/soap/envelope/
+ - reverted mustUnderstand to only allow 0 and 1 as lexical values
+ - made encodingStyle a global attribute 20020825
+ - removed default value from mustUnderstand attribute declaration
+
+THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
+
+COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION.
+
+The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the software without specific, written prior permission. Title to copyright in this software and any associated documentation will at all times remain with copyright holders.
+
+-->
+<xs:chema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:tns="http://schemas.xmlsoap.org/soap/envelope/"
+ targetNamespace="http://schemas.xmlsoap.org/soap/envelope/" >
+
+
+ <!-- Envelope, header and body -->
+ <xs:element name="Envelope" type="tns:Envelope" />
+ <xs:complexType name="Envelope" >
+ <xs:sequence>
+ <xs:element ref="tns:Header" minOccurs="0" />
+ <xs:element ref="tns:Body" minOccurs="1" />
+ <xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded" processContents="lax" />
+ </xs:sequence>
+ <xs:anyAttribute namespace="##other" processContents="lax" />
+ </xs:complexType>
+
+ <xs:element name="Header" type="tns:Header" />
+ <xs:complexType name="Header" >
+ <xs:sequence>
+ <xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded" processContents="lax" />
+ </xs:sequence>
+ <xs:anyAttribute namespace="##other" processContents="lax" />
+ </xs:complexType>
+
+ <xs:element name="Body" type="tns:Body" />
+ <xs:complexType name="Body" >
+ <xs:sequence>
+ <xs:any namespace="##any" minOccurs="0" maxOccurs="unbounded" processContents="lax" />
+ </xs:sequence>
+ <xs:anyAttribute namespace="##any" processContents="lax" >
+ <xs:annotation>
+ <xs:documentation>
+ Prose in the spec does not specify that attributes are allowed on the Body element
+ </xs:documentation>
+ </xs:annotation>
+ </xs:anyAttribute>
+ </xs:complexType>
+
+
+ <!-- Global Attributes. The following attributes are intended to be usable via qualified attribute names on any complex type referencing them. -->
+ <xs:attribute name="mustUnderstand" >
+ <xs:simpleType>
+ <xs:restriction base='xs:boolean'>
+ <xs:pattern value='0|1' />
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="actor" type="xs:anyURI" />
+
+ <xs:simpleType name="encodingStyle" >
+ <xs:annotation>
+ <xs:documentation>
+ 'encodingStyle' indicates any canonicalization conventions followed in the contents of the containing element. For example, the value 'http://schemas.xmlsoap.org/soap/encoding/' indicates the pattern described in SOAP specification
+ </xs:documentation>
+ </xs:annotation>
+ <xs:list itemType="xs:anyURI" />
+ </xs:simpleType>
+
+ <xs:attribute name="encodingStyle" type="tns:encodingStyle" />
+ <xs:attributeGroup name="encodingStyle" >
+ <xs:attribute ref="tns:encodingStyle" />
+ </xs:attributeGroup>
+
+ <xs:element name="Fault" type="tns:Fault" />
+ <xs:complexType name="Fault" final="extension" >
+ <xs:annotation>
+ <xs:documentation>
+ Fault reporting structure
+ </xs:documentation>
+ </xs:annotation>
+ <xs:sequence>
+ <xs:element name="faultcode" type="xs:QName" />
+ <xs:element name="faultstring" type="xs:string" />
+ <xs:element name="faultactor" type="xs:anyURI" minOccurs="0" />
+ <xs:element name="detail" type="tns:detail" minOccurs="0" />
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="detail">
+ <xs:sequence>
+ <xs:any namespace="##any" minOccurs="0" maxOccurs="unbounded" processContents="lax" />
+ </xs:sequence>
+ <xs:anyAttribute namespace="##any" processContents="lax" />
+ </xs:complexType>
+
+</xs:schema>
+
+
+
+
+
+
--- /dev/null
+<!-- A stupid Soap DTD example -->
+<!ELEMENT Envelope (Header?,Body)>
+<!ELEMENT Header (#PCDATA)>
+<!ELEMENT Body (getInput)>
+
+<!ELEMENT getInput (id)>
+<!ELEMENT id (#PCDATA)>
+<!ATTLIST id type CDATA #REQUIRED>
--- /dev/null
+<?xml version='1.0' encoding='UTF-8' ?>
+
+<!-- Schema for the SOAP/1.1 envelope
+
+Portions © 2001 DevelopMentor.
+© 2001 W3C (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights Reserved.
+
+This document is governed by the W3C Software License [1] as described in the FAQ [2].
+[1] http://www.w3.org/Consortium/Legal/copyright-software-19980720
+[2] http://www.w3.org/Consortium/Legal/IPR-FAQ-20000620.html#DTD
+By obtaining, using and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions:
+
+Permission to use, copy, modify, and distribute this software and its documentation, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the software and documentation or portions thereof, including modifications, that you make:
+
+1. The full text of this NOTICE in a location viewable to users of the redistributed or derivative work.
+
+2. Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, a short notice of the following form (hypertext is preferred, text is permitted) should be used within the body of any redistributed or derivative code: "Copyright © 2001 World Wide Web Consortium, (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights Reserved. http://www.w3.org/Consortium/Legal/"
+
+3. Notice of any changes or modifications to the W3C files, including the date changes were made. (We recommend you provide URIs to the location from which the code is derived.)
+
+Original W3C files; http://www.w3.org/2001/06/soap-envelope
+Changes made:
+ - reverted namespace to http://schemas.xmlsoap.org/soap/envelope/
+ - reverted mustUnderstand to only allow 0 and 1 as lexical values
+ - made encodingStyle a global attribute 20020825
+ - removed default value from mustUnderstand attribute declaration
+
+THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
+
+COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION.
+
+The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the software without specific, written prior permission. Title to copyright in this software and any associated documentation will at all times remain with copyright holders.
+
+-->
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:tns="http://schemas.xmlsoap.org/soap/envelope/"
+ targetNamespace="http://schemas.xmlsoap.org/soap/envelope/" >
+
+
+ <!-- Envelope, header and body -->
+ <xs:element name="Envelope" type="tns:Envelope" />
+ <xs:complexType name="Envelope" >
+ <xs:sequence>
+ <xs:element ref="tns:Header" minOccurs="0" />
+ <xs:element ref="tns:Body" minOccurs="1" />
+ <xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded" processContents="lax" />
+ </xs:sequence>
+ <xs:anyAttribute namespace="##other" processContents="lax" />
+ </xs:complexType>
+
+ <xs:element name="Header" type="tns:Header" />
+ <xs:complexType name="Header" >
+ <xs:sequence>
+ <xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded" processContents="lax" />
+ </xs:sequence>
+ <xs:anyAttribute namespace="##other" processContents="lax" />
+ </xs:complexType>
+
+ <xs:element name="Body" type="tns:Body" />
+ <xs:complexType name="Body" >
+ <xs:sequence>
+ <xs:any namespace="##any" minOccurs="0" maxOccurs="unbounded" processContents="lax" />
+ </xs:sequence>
+ <xs:anyAttribute namespace="##any" processContents="lax" >
+ <xs:annotation>
+ <xs:documentation>
+ Prose in the spec does not specify that attributes are allowed on the Body element
+ </xs:documentation>
+ </xs:annotation>
+ </xs:anyAttribute>
+ </xs:complexType>
+
+
+ <!-- Global Attributes. The following attributes are intended to be usable via qualified attribute names on any complex type referencing them. -->
+ <xs:attribute name="mustUnderstand" >
+ <xs:simpleType>
+ <xs:restriction base='xs:boolean'>
+ <xs:pattern value='0|1' />
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="actor" type="xs:anyURI" />
+
+ <xs:simpleType name="encodingStyle" >
+ <xs:annotation>
+ <xs:documentation>
+ 'encodingStyle' indicates any canonicalization conventions followed in the contents of the containing element. For example, the value 'http://schemas.xmlsoap.org/soap/encoding/' indicates the pattern described in SOAP specification
+ </xs:documentation>
+ </xs:annotation>
+ <xs:list itemType="xs:anyURI" />
+ </xs:simpleType>
+
+ <xs:attribute name="encodingStyle" type="tns:encodingStyle" />
+ <xs:attributeGroup name="encodingStyle" >
+ <xs:attribute ref="tns:encodingStyle" />
+ </xs:attributeGroup>
+
+ <xs:element name="Fault" type="tns:Fault" />
+ <xs:complexType name="Fault" final="extension" >
+ <xs:annotation>
+ <xs:documentation>
+ Fault reporting structure
+ </xs:documentation>
+ </xs:annotation>
+ <xs:sequence>
+ <xs:element name="faultcode" type="xs:QName" />
+ <xs:element name="faultstring" type="xs:string" />
+ <xs:element name="faultactor" type="xs:anyURI" minOccurs="0" />
+ <xs:element name="detail" type="tns:detail" minOccurs="0" />
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="detail">
+ <xs:sequence>
+ <xs:any namespace="##any" minOccurs="0" maxOccurs="unbounded" processContents="lax" />
+ </xs:sequence>
+ <xs:anyAttribute namespace="##any" processContents="lax" />
+ </xs:complexType>
+
+</xs:schema>
+
+
+
+
+
+
--- /dev/null
+### Base configuration for starting Apache httpd
+
+<IfDefine !CHROOT>
+ # File locations
+ PidFile @MSC_REGRESSION_LOGS_DIR@/httpd.pid
+ ScoreBoardFile @MSC_REGRESSION_LOGS_DIR@/httpd.scoreboard
+</IfDefine>
+
+<IfModule !mod_proxy.c>
+ LoadModule proxy_module @APXS_LIBEXECDIR@/mod_proxy.so
+ LoadModule proxy_http_module @APXS_LIBEXECDIR@/mod_proxy_http.so
+</IfModule>
+<IfModule !mod_unique_id.c>
+ LoadModule unique_id_module @APXS_LIBEXECDIR@/mod_unique_id.so
+</IfModule>
+
+<IfDefine !NOMODSEC>
+ # TODO: Need to have these configurable
+ LoadFile /usr/lib/libxml2.so
+ LoadFile /usr/lib/liblua5.1.so
+ LoadModule security2_module @APXS_LIBEXECDIR@/mod_security2.so
+</IfDefine>
+
+ServerName localhost
+
+CoreDumpDirectory @MSC_REGRESSION_SERVERROOT_DIR@/tmp
+
+LogLevel debug
+ErrorLog @MSC_REGRESSION_LOGS_DIR@/error.log
+
+<IfDefine !CHROOT>
+ DocumentRoot @MSC_REGRESSION_DOCROOT_DIR@
+ <Directory "@MSC_REGRESSION_DOCROOT_DIR@">
+ Options Indexes FollowSymLinks
+ AllowOverride None
+ </Directory>
+</IfDefine>
--- /dev/null
+-- Test matching Lua Script to just print debug messages
+function main()
+ m.log(1, "Test message.");
+ m.log(2, "Test message.");
+ m.log(3, "Test message.");
+ m.log(4, "Test message.");
+ m.log(5, "Test message.");
+ m.log(6, "Test message.");
+ m.log(7, "Test message.");
+ m.log(8, "Test message.");
+ m.log(9, "Test message.");
+
+ return "Lua script matched.";
+end
--- /dev/null
+-- Test Lua Script to just print debug messages
+function main()
+ m.log(1, "Test message.");
+ m.log(2, "Test message.");
+ m.log(3, "Test message.");
+ m.log(4, "Test message.");
+ m.log(5, "Test message.");
+ m.log(6, "Test message.");
+ m.log(7, "Test message.");
+ m.log(8, "Test message.");
+ m.log(9, "Test message.");
+
+ return nil;
+end
--- /dev/null
+### Test basic targets
+
+# ARGS
+{
+ type => "target",
+ comment => "ARGS (get)",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecRule ARGS "val1" "phase:2,log,pass"
+ SecRule ARGS "val2" "phase:2,log,pass"
+ ),
+ match_log => {
+ error => [ qr/Pattern match "val1" at ARGS.*Pattern match "val2" at ARGS/s, 1 ],
+ debug => [ qr/Adding request argument \(QUERY_STRING\): name "arg1", value "val1".*Adding request argument \(QUERY_STRING\): name "arg2", value "val2"/s, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt?arg1=val1&arg2=val2",
+ ),
+},
+{
+ type => "target",
+ comment => "ARGS (post)",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecRule ARGS "val1" "phase:2,log,pass"
+ SecRule ARGS "val2" "phase:2,log,pass"
+ ),
+ match_log => {
+ error => [ qr/Pattern match "val1" at ARGS.*Pattern match "val2" at ARGS/s, 1 ],
+ debug => [ qr/Adding request argument \(BODY\): name "arg1", value "val1".*Adding request argument \(BODY\): name "arg2", value "val2"/s, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "application/x-www-form-urlencoded",
+ ],
+ "arg1=val1&arg2=val2",
+ ),
+},
+
+# ARGS_COMBINED_SIZE
+{
+ type => "target",
+ comment => "ARGS_COMBINED_SIZE (get)",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecRule ARGS_COMBINED_SIZE "\@eq 16" "phase:2,log,pass"
+ ),
+ match_log => {
+ error => [ qr/Operator EQ matched 16 at ARGS_COMBINED_SIZE\./s, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt?arg1=val1&arg2=val2",
+ ),
+},
+{
+ type => "target",
+ comment => "ARGS_COMBINED_SIZE (post)",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecRule ARGS_COMBINED_SIZE "\@eq 16" "phase:2,log,pass"
+ ),
+ match_log => {
+ error => [ qr/Operator EQ matched 16 at ARGS_COMBINED_SIZE\./s, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "application/x-www-form-urlencoded",
+ ],
+ "arg1=val1&arg2=val2",
+ ),
+},
+
+# ARGS_NAMES
+{
+ type => "target",
+ comment => "ARGS_NAMES (get)",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecRule ARGS_NAMES "arg1" "phase:2,log,pass"
+ SecRule ARGS_NAMES "arg2" "phase:2,log,pass"
+ ),
+ match_log => {
+ error => [ qr/Pattern match "arg1" at ARGS.*Pattern match "arg2" at ARGS/s, 1 ],
+ debug => [ qr/Adding request argument \(QUERY_STRING\): name "arg1", value "val1".*Adding request argument \(QUERY_STRING\): name "arg2", value "val2"/s, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt?arg1=val1&arg2=val2",
+ ),
+},
+{
+ type => "target",
+ comment => "ARGS_NAMES (post)",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecRule ARGS_NAMES "arg1" "phase:2,log,pass"
+ SecRule ARGS_NAMES "arg2" "phase:2,log,pass"
+ ),
+ match_log => {
+ error => [ qr/Pattern match "arg1" at ARGS_NAMES.*Pattern match "arg2" at ARGS_NAMES/s, 1 ],
+ debug => [ qr/Adding request argument \(BODY\): name "arg1", value "val1".*Adding request argument \(BODY\): name "arg2", value "val2"/s, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "application/x-www-form-urlencoded",
+ ],
+ "arg1=val1&arg2=val2",
+ ),
+},
+
+# ARGS_GET
+{
+ type => "target",
+ comment => "ARGS_GET (get)",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecRule ARGS_GET "val1" "phase:2,log,pass"
+ SecRule ARGS_GET "val2" "phase:2,log,pass"
+ ),
+ match_log => {
+ error => [ qr/Pattern match "val1" at ARGS_GET.*Pattern match "val2" at ARGS_GET/s, 1 ],
+ debug => [ qr/Adding request argument \(QUERY_STRING\): name "arg1", value "val1".*Adding request argument \(QUERY_STRING\): name "arg2", value "val2"/s, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt?arg1=val1&arg2=val2",
+ ),
+},
+{
+ type => "target",
+ comment => "ARGS_GET (post)",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecRule ARGS_GET "val1" "phase:2,log,pass"
+ SecRule ARGS_GET "val2" "phase:2,log,pass"
+ ),
+ match_log => {
+ -error => [ qr/Pattern match/, 1 ],
+ debug => [ qr/Adding request argument \(BODY\): name "arg1", value "val1".*Adding request argument \(BODY\): name "arg2", value "val2"/s, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "application/x-www-form-urlencoded",
+ ],
+ "arg1=val1&arg2=val2",
+ ),
+},
+
+# ARGS_GET_NAMES
+{
+ type => "target",
+ comment => "ARGS_GET_NAMES (get)",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecRule ARGS_GET_NAMES "arg1" "phase:2,log,pass"
+ SecRule ARGS_GET_NAMES "arg2" "phase:2,log,pass"
+ ),
+ match_log => {
+ error => [ qr/Pattern match "arg1" at ARGS_GET.*Pattern match "arg2" at ARGS_GET/s, 1 ],
+ debug => [ qr/Adding request argument \(QUERY_STRING\): name "arg1", value "val1".*Adding request argument \(QUERY_STRING\): name "arg2", value "val2"/s, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt?arg1=val1&arg2=val2",
+ ),
+},
+{
+ type => "target",
+ comment => "ARGS_GET_NAMES (post)",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecRule ARGS_GET_NAMES "arg1" "phase:2,log,pass"
+ SecRule ARGS_GET_NAMES "arg2" "phase:2,log,pass"
+ ),
+ match_log => {
+ -error => [ qr/Pattern match/, 1 ],
+ debug => [ qr/Adding request argument \(BODY\): name "arg1", value "val1".*Adding request argument \(BODY\): name "arg2", value "val2"/s, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "application/x-www-form-urlencoded",
+ ],
+ "arg1=val1&arg2=val2",
+ ),
+},
+
+# ARGS_POST
+{
+ type => "target",
+ comment => "ARGS_POST (get)",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecRule ARGS_POST "val1" "phase:2,log,pass"
+ SecRule ARGS_POST "val2" "phase:2,log,pass"
+ ),
+ match_log => {
+ -error => [ qr/Pattern match/, 1 ],
+ debug => [ qr/Adding request argument \(QUERY_STRING\): name "arg1", value "val1".*Adding request argument \(QUERY_STRING\): name "arg2", value "val2"/s, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt?arg1=val1&arg2=val2",
+ ),
+},
+{
+ type => "target",
+ comment => "ARGS_POST (post)",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecRule ARGS_POST "val1" "phase:2,log,pass"
+ SecRule ARGS_POST "val2" "phase:2,log,pass"
+ ),
+ match_log => {
+ error => [ qr/Pattern match "val1" at ARGS_POST.*Pattern match "val2" at ARGS_POST/s, 1 ],
+ debug => [ qr/Adding request argument \(BODY\): name "arg1", value "val1".*Adding request argument \(BODY\): name "arg2", value "val2"/s, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "application/x-www-form-urlencoded",
+ ],
+ "arg1=val1&arg2=val2",
+ ),
+},
+
+# ARGS_POST_NAMES
+{
+ type => "target",
+ comment => "ARGS_POST_NAMES (get)",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecRule ARGS_POST_NAMES "arg1" "phase:2,log,pass"
+ SecRule ARGS_POST_NAMES "arg2" "phase:2,log,pass"
+ ),
+ match_log => {
+ -error => [ qr/Pattern match/, 1 ],
+ debug => [ qr/Adding request argument \(QUERY_STRING\): name "arg1", value "val1".*Adding request argument \(QUERY_STRING\): name "arg2", value "val2"/s, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt?arg1=val1&arg2=val2",
+ ),
+},
+{
+ type => "target",
+ comment => "ARGS_POST_NAMES (post)",
+ conf => qq(
+ SecRuleEngine On
+ SecRequestBodyAccess On
+ SecResponseBodyAccess On
+ SecResponseBodyMimeType null
+ SecDebugLog $ENV{DEBUG_LOG}
+ SecDebugLogLevel 9
+ SecRule ARGS_POST_NAMES "arg1" "phase:2,log,pass"
+ SecRule ARGS_POST_NAMES "arg2" "phase:2,log,pass"
+ ),
+ match_log => {
+ error => [ qr/Pattern match "arg1" at ARGS_POST.*Pattern match "arg2" at ARGS_POST/s, 1 ],
+ debug => [ qr/Adding request argument \(BODY\): name "arg1", value "val1".*Adding request argument \(BODY\): name "arg2", value "val2"/s, 1 ],
+ },
+ match_response => {
+ status => qr/^200$/,
+ },
+ request => new HTTP::Request(
+ POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+ [
+ "Content-Type" => "application/x-www-form-urlencoded",
+ ],
+ "arg1=val1&arg2=val2",
+ ),
+},
+
+# AUTH_TYPE
+#{
+# type => "target",
+# comment => "AUTH_TYPE",
+# conf => qq(
+# <IfVersion >= 2.2>
+# <IfModule !mod_authn_file.c>
+# LoadModule authn_file_module modules/mod_authn_file.so
+# </IfModule>
+# </IfVersion>
+## <IfVersion ~ ^2.0.>
+## <IfModule !mod_auth.c>
+## LoadModule auth_module modules/mod_auth.so
+## </IfModule>
+## </IfVersion>
+# <Location />
+# AuthType Basic
+# AuthName Test
+# AuthUserFile "$ENV{CONF_DIR}/htpasswd"
+# Require user nobody
+# </Location>
+# SecRuleEngine On
+# SecRequestBodyAccess On
+# SecResponseBodyAccess On
+# SecResponseBodyMimeType null
+## SecDebugLog $ENV{DEBUG_LOG}
+## SecDebugLogLevel 9
+# SecRule REQUEST_HEADERS:Authorization "Basic (.*)" "phase:2,log,pass,capture,chain"
+# SecRule TX:1 "nobody:test" "t:none,t:base64Decode,chain"
+# SecRule AUTH_TYPE "Basic"
+# ),
+# match_log => {
+# error => [ qr/Pattern match "Basic" at AUTH_TYPE/s, 1 ],
+# },
+# match_response => {
+# status => qr/^200$/,
+# },
+# request => new HTTP::Request(
+# GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
+# [
+# "Authorization" => "Basic bm9ib2R5OnRlc3Q="
+# ],
+# ),
+#},
+
+## ENH: We cannot include this test as we cannot distribute the database.
+## Instead we should create a simple test DB of our own.
+## GEO
+#{
+# type => "target",
+# comment => "GEO (ip)",
+# conf => qq(
+# SecRuleEngine On
+# SecDebugLog $ENV{DEBUG_LOG}
+# SecDebugLogLevel 9
+# SecGeoLookupDB GeoLiteCity.dat
+# SecRule ARGS:ip "\@geoLookup" "phase:2,log,pass,t:none"
+# SecRule GEO:COUNTRY_CODE "\@streq US" "phase:2,log,pass,t:none"
+# SecRule GEO:COUNTRY_CODE3 "\@streq USA" "phase:2,log,pass,t:none"
+# SecRule GEO:COUNTRY_NAME "\@streq United States" "phase:2,log,pass,t:none"
+# # ENH: Not in this database?
+# SecRule GEO:COUNTRY_CONTINENT "\@streq NA" "phase:2,log,pass,t:none"
+# SecRule GEO:REGION "\@streq CA" "phase:2,log,pass,t:none"
+# SecRule GEO:CITY "\@streq San Diego" "phase:2,log,pass,t:none"
+# SecRule GEO:POSTAL_CODE "\@streq 92123" "phase:2,log,pass,t:none"
+# SecRule GEO:LATITUDE "\@beginsWith 32.8" "phase:2,log,pass,t:none"
+# SecRule GEO:LONGITUDE "\@beginsWith 117.1" "phase:2,log,pass,t:none"
+# SecRule GEO:DMA_CODE "\@streq 825" "phase:2,log,pass,t:none"
+# SecRule GEO:AREA_CODE "\@streq 858" "phase:2,log,pass,t:none"
+# ),
+# match_log => {
+# debug => [ qr/Geo lookup for "216.75.21.122" succeeded.*match "US" at GEO:COUNTRY_CODE.*match "USA" at GEO:COUNTRY_CODE3.*match "United States" at GEO:COUNTRY_NAME.*match "NA" at GEO:COUNTRY_CONTINENT.*match "CA" at GEO:REGION.*match "San Diego" at GEO:CITY.*match "92123" at GEO:POSTAL_CODE.*match "32.8" at GEO:LATITUDE.*match "825" at GEO:DMA_CODE.*match "858" at GEO:AREA_CODE/si, 1 ],
+# },
+# match_response => {
+# status => qr/^200$/,
+# },
+# request => new HTTP::Request(
+# GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt?ip=216.75.21.122",
+# ),
+#},
+#{
+# type => "target",
+# comment => "GEO (host)",
+# conf => qq(
+# SecRuleEngine On
+# SecDebugLog $ENV{DEBUG_LOG}
+# SecDebugLogLevel 9
+# SecGeoLookupDB GeoLiteCity.dat
+# SecRule ARGS:host "\@geoLookup" "phase:2,log,pass,t:none"
+# SecRule GEO:COUNTRY_CODE "\@streq US" "phase:2,log,pass,t:none"
+# SecRule GEO:COUNTRY_CODE3 "\@streq USA" "phase:2,log,pass,t:none"
+# SecRule GEO:COUNTRY_NAME "\@streq United States" "phase:2,log,pass,t:none"
+# # ENH: Not in this database?
+# SecRule GEO:COUNTRY_CONTINENT "\@streq NA" "phase:2,log,pass,t:none"
+# SecRule GEO:REGION "\@streq CA" "phase:2,log,pass,t:none"
+# SecRule GEO:CITY "\@streq San Diego" "phase:2,log,pass,t:none"
+# SecRule GEO:POSTAL_CODE "\@streq 92123" "phase:2,log,pass,t:none"
+# SecRule GEO:LATITUDE "\@beginsWith 32.8" "phase:2,log,pass,t:none"
+# SecRule GEO:LONGITUDE "\@beginsWith 117.1" "phase:2,log,pass,t:none"
+# SecRule GEO:DMA_CODE "\@streq 825" "phase:2,log,pass,t:none"
+# SecRule GEO:AREA_CODE "\@streq 858" "phase:2,log,pass,t:none"
+# ),
+# match_log => {
+# debug => [ qr/Using address "\d+\.\d+\.\d+\.\d+".*Geo lookup for "www\.modsecurity\.org" succeeded.*match "US" at GEO:COUNTRY_CODE.*match "USA" at GEO:COUNTRY_CODE3.*match "United States" at GEO:COUNTRY_NAME.*match "NA" at GEO:COUNTRY_CONTINENT.*match "CA" at GEO:REGION.*match "San Diego" at GEO:CITY.*match "92123" at GEO:POSTAL_CODE.*match "32.8" at GEO:LATITUDE.*match "825" at GEO:DMA_CODE.*match "858" at GEO:AREA_CODE/si, 1 ],
+# },
+# match_response => {
+# status => qr/^200$/,
+# },
+# request => new HTTP::Request(
+# GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt?host=www.modsecurity.org",
+# ),
+#},
+#{
+# type => "target",
+# comment => "GEO (failed lookup)",
+# conf => qq(
+# SecRuleEngine On
+# SecDebugLog $ENV{DEBUG_LOG}
+# SecDebugLogLevel 9
+# SecGeoLookupDB GeoLiteCity.dat
+# SecRule ARGS:ip "\@geoLookup" "phase:2,log,pass,t:none"
+# SecRule \&GEO "\@eq 0" "phase:2,log,deny,status:403,t:none"
+# SecRule ARGS:badip "\@geoLookup" "phase:2,log,pass,t:none"
+# SecRule \&GEO "!\@eq 0" "phase:2,log,deny,status:403,t:none"
+# ),
+# match_log => {
+# -debug => [ qr/Geo lookup for "127\.0\.0\.1" succeeded/si, 1 ],
+# },
+# match_response => {
+# status => qr/^200$/,
+# },
+# request => new HTTP::Request(
+# GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt?ip=216.75.21.122&badip=127.0.0.1",
+# ),
+#},
+
+# TODO: ENV
+# TODO: FILES
+# TODO: FILES_COMBINED_SIZE
+# TODO: FILES_NAMES
+# TODO: FILES_SIZES
+# TODO: FILES_TMPNAMES
+# TODO: HIGHEST_SEVERITY
+# TODO: MATCHED_VAR
+# TODO: MATCHED_VAR_NAME
+# TODO: MODSEC_BUILD
+# TODO: MULTIPART_CRLF_LF_LINES
+# TODO: MULTIPART_STRICT_ERROR
+# TODO: MULTIPART_UNMATCHED_BOUNDARY
+# TODO: PATH_INFO
+# TODO: QUERY_STRING
+# TODO: REMOTE_ADDR
+# TODO: REMOTE_HOST
+# TODO: REMOTE_PORT
+# TODO: REMOTE_USER
+# TODO: REQBODY_PROCESSOR
+# TODO: REQBODY_PROCESSOR_ERROR
+# TODO: REQBODY_PROCESSOR_ERROR_MSG
+# TODO: REQUEST_BASENAME
+# TODO: REQUEST_BODY
+# TODO: REQUEST_COOKIES
+# TODO: REQUEST_COOKIES_NAMES
+# TODO: REQUEST_FILENAME
+# TODO: REQUEST_HEADERS
+# TODO: REQUEST_HEADERS_NAMES
+# TODO: REQUEST_LINE
+# TODO: REQUEST_METHOD
+# TODO: REQUEST_PROTOCOL
+# TODO: REQUEST_URI
+# TODO: REQUEST_URI_RAW
+# TODO: RESPONSE_BODY
+# TODO: RESPONSE_CONTENT_LENGTH
+# TODO: RESPONSE_CONTENT_TYPE
+# TODO: RESPONSE_HEADERS
+# TODO: RESPONSE_HEADERS_NAMES
+# TODO: RESPONSE_PROTOCOL
+# TODO: RESPONSE_STATUS
+# TODO: RULE
+# TODO: SCRIPT_BASENAME
+# TODO: SCRIPT_FILENAME
+# TODO: SCRIPT_GID
+# TODO: SCRIPT_GROUPNAME
+# TODO: SCRIPT_MODE
+# TODO: SCRIPT_UID
+# TODO: SCRIPT_USERNAME
+# TODO: SERVER_ADDR
+# TODO: SERVER_NAME
+# TODO: SERVER_PORT
+# TODO: SESSION
+# TODO: SESSIONID
+# TODO: TIME
+# TODO: TIME_DAY
+# TODO: TIME_EPOCH
+# TODO: TIME_HOUR
+# TODO: TIME_MIN
+# TODO: TIME_MON
+# TODO: TIME_SEC
+# TODO: TIME_WDAY
+# TODO: TIME_YEAR
+# TODO: TX
+# TODO: USERID
+# TODO: WEBAPPID
+# TODO: WEBSERVER_ERROR_LOG
+# TODO: XML
+
--- /dev/null
+#!@PERL@
+#
+# Run regression tests.
+#
+# Syntax: run-regression-tests.pl [options] [file [N]]
+#
+# All: run-regression-tests.pl
+# All in file: run-regression-tests.pl file
+# Nth in file: run-regression-tests.pl file N
+#
+use strict;
+use Time::HiRes qw(gettimeofday sleep);
+use POSIX qw(WIFEXITED WEXITSTATUS WIFSIGNALED WTERMSIG);
+use File::Spec qw(rel2abs);
+use File::Basename qw(basename dirname);
+use FileHandle;
+use IPC::Open2 qw(open2);
+use IPC::Open3 qw(open3);
+use Getopt::Std;
+use Data::Dumper;
+use IO::Socket;
+use LWP::UserAgent;
+
+my @TYPES = qw(config misc action target rule);
+my $SCRIPT = basename($0);
+my $SCRIPT_DIR = File::Spec->rel2abs(dirname($0));
+my $REG_DIR = "$SCRIPT_DIR/regression";
+my $SROOT_DIR = "$REG_DIR/server_root";
+my $DATA_DIR = "$SROOT_DIR/data";
+my $TEMP_DIR = "$SROOT_DIR/tmp";
+my $UPLOAD_DIR = "$SROOT_DIR/upload";
+my $CONF_DIR = "$SROOT_DIR/conf";
+my $MODULES_DIR = q(@APXS_LIBEXECDIR@);
+my $FILES_DIR = "$SROOT_DIR/logs";
+my $PID_FILE = "$FILES_DIR/httpd.pid";
+my $HTTPD = q(@APXS_HTTPD@);
+my $PASSED = 0;
+my $TOTAL = 0;
+my $BUFSIZ = 32768;
+my %C = ();
+my %FILE = ();
+my $UA_NAME = "ModSecurity Regression Tests/1.2.3";
+my $UA = LWP::UserAgent->new;
+$UA->agent($UA_NAME);
+
+# Hack for testing the script w/o configure
+if ($HTTPD eq "\@APXS_HTTPD\@") {
+ $HTTPD = "/usr/local/apache2/bin/httpd";
+ $MODULES_DIR = "/usr/local/apache2/modules";
+}
+
+$SIG{TERM} = $SIG{INT} = \&handle_interrupt;
+
+my %opt;
+getopts('A:E:D:C:T:H:a:p:dvh', \%opt);
+
+if ($opt{d}) {
+ $Data::Dumper::Indent = 1;
+ $Data::Dumper::Terse = 1;
+ $Data::Dumper::Pad = "";
+ $Data::Dumper::Quotekeys = 0;
+}
+
+sub usage {
+ print stderr <<"EOT";
+@_
+Usage: $SCRIPT [options] [file [N]]
+
+ Options:
+ -A file Specify ModSecurity audit log to read.
+ -D file Specify ModSecurity debug log to read.
+ -E file Specify Apache httpd error log to read.
+ -C file Specify Apache httpd base conf file to generate/reload.
+ -H path Specify Apache httpd htdocs path.
+ -S path Specify Apache httpd server root path.
+ -a file Specify Apache httpd binary (default: httpd)
+ -p port Specify Apache httpd port (default: 8088)
+ -v Enable verbose output (details on failure).
+ -d Enable debugging output.
+ -h This help.
+
+EOT
+
+ exit(1);
+}
+
+usage() if ($opt{h});
+
+### Check httpd binary
+if (defined $opt{a}) {
+ $HTTPD = $opt{a};
+}
+else {
+ $opt{a} = $HTTPD;
+}
+usage("Invalid Apache startup script: $HTTPD\n") unless (-e $HTTPD);
+
+### Defaults
+$opt{A} = "$FILES_DIR/modsec_audit.log" unless (defined $opt{A});
+$opt{D} = "$FILES_DIR/modsec_debug.log" unless (defined $opt{D});
+$opt{E} = "$FILES_DIR/error.log" unless (defined $opt{E});
+$opt{C} = "$CONF_DIR/httpd.conf" unless (defined $opt{C});
+$opt{H} = "$SROOT_DIR/htdocs" unless (defined $opt{H});
+$opt{p} = 8088 unless (defined $opt{p});
+$opt{v} = 1 if ($opt{d});
+
+unless (defined $opt{S}) {
+ my $httpd_root = `$HTTPD -V`;
+ ($opt{S} = $httpd_root) =~ s/.*-D HTTPD_ROOT="([^"]*)".*/$1/sm;
+}
+
+%ENV = (
+ %ENV,
+ SERVER_ROOT => $opt{S},
+ SERVER_PORT => $opt{p},
+ SERVER_NAME => "localhost",
+ TEST_SERVER_ROOT => $SROOT_DIR,
+ DATA_DIR => $DATA_DIR,
+ TEMP_DIR => $TEMP_DIR,
+ UPLOAD_DIR => $UPLOAD_DIR,
+ CONF_DIR => $CONF_DIR,
+ MODULES_DIR => $MODULES_DIR,
+ LOGS_DIR => $FILES_DIR,
+ SCRIPT_DIR => $SCRIPT_DIR,
+ REGRESSION_DIR => $REG_DIR,
+ DIST_ROOT => File::Spec->rel2abs(dirname("$SCRIPT_DIR/../../..")),
+ AUDIT_LOG => $opt{A},
+ DEBUG_LOG => $opt{D},
+ ERROR_LOG => $opt{E},
+ HTTPD_CONF => $opt{C},
+ HTDOCS => $opt{H},
+ USER_AGENT => $UA_NAME,
+);
+
+#dbg("OPTIONS: ", \%opt);
+
+if (-e "$PID_FILE") {
+ msg("Shutting down previous instance: $PID_FILE");
+ httpd_stop();
+}
+
+if (defined $ARGV[0]) {
+ runfile(dirname($ARGV[0]), basename($ARGV[0]), $ARGV[1]);
+ done();
+}
+
+for my $type (@TYPES) {
+ my $dir = "$SCRIPT_DIR/regression/$type";
+ my @cfg = ();
+
+ # Get test names
+ opendir(DIR, "$dir") or quit(1, "Failed to open \"$dir\": $!");
+ @cfg = grep { /\.t$/ && -f "$dir/$_" } readdir(DIR);
+ closedir(DIR);
+
+ for my $cfg (sort @cfg) {
+ runfile($dir, $cfg);
+ }
+}
+done();
+
+
+sub runfile {
+ my($dir, $cfg, $testnum) = @_;
+ my $fn = "$dir/$cfg";
+ my @data = ();
+ my $edata;
+ my @C = ();
+ my @test = ();
+ my $teststr;
+ my $n = 0;
+ my $pass = 0;
+
+ open(CFG, "<$fn") or quit(1, "Failed to open \"$fn\": $!");
+ @data = <CFG>;
+
+ $edata = q/@C = (/ . join("", @data) . q/)/;
+ eval $edata;
+ quit(1, "Failed to read test data \"$cfg\": $@") if ($@);
+
+ unless (@C) {
+ msg("\nNo tests defined for $fn");
+ return;
+ }
+
+ msg("\nLoaded ".@C." tests from $fn");
+ for my $t (@C) {
+ $n++;
+ next if (defined $testnum and $n != $testnum);
+
+ my $httpd_up = 0;
+ my %t = %{$t || {}};
+ my $id = sprintf("%3d", $n);
+ my $out = "";
+ my $rc = 0;
+ my $conf_fn;
+
+ # Startup httpd with optionally included conf.
+ if (exists $t{conf} and defined $t{conf}) {
+ $conf_fn = sprintf "%s/%s_%s_%06d.conf",
+ $CONF_DIR, $t{type}, $cfg, $n;
+ #dbg("Writing test config to: $conf_fn");
+ open(CONF, ">$conf_fn") or die "Failed to open conf \"$conf_fn\": $!\n";
+ print CONF (ref $t{conf} eq "CODE" ? eval { &{$t{conf}} } : $t{conf});
+ msg("$@") if ($@);
+ close CONF;
+ $httpd_up = httpd_start(\%t, "Include $conf_fn") ? 0 : 1;
+ }
+ else {
+ $httpd_up = httpd_start(\%t) ? 0 : 1;
+ }
+
+ # Run any prerun setup
+ if ($rc == 0 and exists $t{prerun} and defined $t{prerun}) {
+ vrb("Executing perl prerun...");
+ $rc = &{$t{prerun}};
+ vrb("Perl prerun returned: $rc");
+ }
+
+ if ($httpd_up) {
+ # Perform the request and check response
+ if (exists $t{request}) {
+ my $resp = do_request($t{request});
+ if (!$resp) {
+ msg("invalid response");
+ vrb("RESPONSE: ", $resp);
+ $rc = 1;
+ }
+ else {
+ for my $key (keys %{ $t{match_response} || {}}) {
+ my($neg,$mtype) = ($key =~ m/^(-?)(.*)$/);
+ my $m = $t{match_response}{$key};
+ my $match = match_response($mtype, $resp, $m);
+ if ($neg and defined $match) {
+ $rc = 1;
+ msg("response $mtype matched: $m");
+ vrb($resp);
+ last;
+ }
+ elsif (!$neg and !defined $match) {
+ $rc = 1;
+ msg("response $mtype failed to match: $m");
+ vrb($resp);
+ last;
+ }
+ }
+ }
+ }
+
+ # Run any arbitrary perl tests
+ if ($rc == 0 and exists $t{test} and defined $t{test}) {
+ dbg("Executing perl test(s)...");
+ $rc = eval { &{$t{test}} };
+ if (! defined $rc) {
+ msg("Error running test: $@");
+ $rc = -1;
+ }
+ dbg("Perl tests returned: $rc");
+ }
+
+ # Search for all log matches
+ if ($rc == 0 and exists $t{match_log} and defined $t{match_log}) {
+ for my $key (keys %{ $t{match_log} || {}}) {
+ my($neg,$mtype) = ($key =~ m/^(-?)(.*)$/);
+ my $m = $t{match_log}{$key};
+ my $match = match_log($mtype, @{$m || []});
+ if ($neg and defined $match) {
+ $rc = 1;
+ msg("$mtype log matched: $m->[0]");
+ last;
+ }
+ elsif (!$neg and !defined $match) {
+ $rc = 1;
+ msg("$mtype log failed to match: $m->[0]");
+ last;
+ }
+ }
+ }
+
+ # Search for all file matches
+ if ($rc == 0 and exists $t{match_file} and defined $t{match_file}) {
+ sleep 1; # Make sure the file exists
+ for my $key (keys %{ $t{match_file} || {}}) {
+ my($neg,$fn) = ($key =~ m/^(-?)(.*)$/);
+ my $m = $t{match_file}{$key};
+ my $match = match_file($fn, $m);
+ if ($neg and defined $match) {
+ $rc = 1;
+ msg("$fn file matched: $m");
+ last;
+ }
+ elsif (!$neg and !defined $match) {
+ $rc = 1;
+ msg("$fn file failed match: $m");
+ last;
+ }
+ }
+ }
+ }
+ else {
+ msg("Failed to start httpd.");
+ $rc = 1;
+ }
+
+ if ($rc == 0) {
+ $pass++;
+ }
+ else {
+ vrb("Test Config: $conf_fn");
+ vrb("Debug Log: $FILE{debug}{fn}");
+ dbg(escape("$FILE{debug}{buf}"));
+ vrb("Error Log: $FILE{error}{fn}");
+ dbg(escape("$FILE{error}{buf}"));
+ }
+
+ msg(sprintf("%s) %s%s: %s%s", $id, $t{type}, (exists($t{comment}) ? " - $t{comment}" : ""), ($rc ? "failed" : "passed"), ((defined($out) && $out ne "")? " ($out)" : "")));
+
+ if ($httpd_up) {
+ $httpd_up = httpd_stop(\%t) ? 0 : 1;
+ }
+
+ }
+
+ $TOTAL += $testnum ? 1 : $n;
+ $PASSED += $pass;
+
+ msg(sprintf("Passed: %2d; Failed: %2d", $pass, $testnum ? (1 - $pass) : ($n - $pass)));
+}
+
+# Take out any indenting and translate LF -> CRLF
+sub normalize_raw_request_data {
+ my $r = $_[0];
+
+ # Allow for indenting in test file
+ $r =~ s/^[ \t]*\x0d?\x0a//s;
+ my($indention) = ($r =~ m/^([ \t]*)/s); # indention taken from first line
+ $r =~ s/^$indention//mg;
+ $r =~ s/(\x0d?\x0a)[ \t]+$/$1/s;
+
+ # Translate LF to CRLF
+ $r =~ s/^\x0a/\x0d\x0a/mg;
+ $r =~ s/([^\x0d])\x0a/$1\x0d\x0a/mg;
+
+ return $r;
+}
+
+sub do_raw_request {
+ my $sock = new IO::Socket::INET(
+ Proto => "tcp",
+ PeerAddr => "localhost",
+ PeerPort => $opt{p},
+ ) or msg("Failed to connect to localhost:$opt{p}: $@");
+ return unless ($sock);
+
+ # Join togeather the request
+ my $r = join("", @_);
+ dbg($r);
+
+ # Write to socket
+ print $sock "$r";
+ $sock->shutdown(1);
+
+ # Read from socket
+ my @resp = <$sock>;
+ $sock->close();
+
+ return HTTP::Response->parse(join("", @resp));
+}
+
+sub do_request {
+ my $r = $_[0];
+
+ # Allow test to execute code
+ if (ref $r eq "CODE") {
+ $r = eval { &$r };
+ msg("$@") unless (defined $r);
+ }
+
+ if (ref $r eq "HTTP::Request") {
+ my $resp = $UA->request($r);
+ dbg($resp->request()->as_string()) if ($opt{d});
+ return $resp
+ }
+ else {
+ return do_raw_request($r);
+ }
+
+ return;
+}
+
+
+sub match_response {
+ my($name, $resp, $re) = @_;
+
+ msg("Warning: Empty regular expression.") if (!defined $re or $re eq "");
+
+ if ($name eq "status") {
+ return $& if ($resp->code =~ m/$re/);
+ }
+ elsif ($name eq "content") {
+ return $& if ($resp->content =~ m/$re/m);
+ }
+ elsif ($name eq "raw") {
+ return $& if ($resp->as_string =~ m/$re/m);
+ }
+
+ return;
+}
+
+sub read_log {
+ my($name, $timeout, $graph) = @_;
+ return match_log($name, undef, $timeout, $graph);
+}
+
+sub match_log {
+ my($name, $re, $timeout, $graph) = @_;
+ my $t0 = gettimeofday;
+ my($fh,$rbuf) = ($FILE{$name}{fd}, \$FILE{$name}{buf});
+ my $n = length($$rbuf);
+ my $rc = undef;
+
+ unless (defined $fh) {
+ msg("Error: File \"$name\" is not opened for matching.");
+ return;
+ }
+
+ $timeout = 0 unless (defined $timeout);
+
+ my $i = 0;
+ my $graphed = 0;
+ READ: {
+ do {
+ my $nbytes = $fh->sysread($$rbuf, $BUFSIZ, $n);
+ if (!defined($nbytes)) {
+ msg("Error: Could not read \"$name\" log: $!");
+ last;
+ }
+ elsif (!defined($re) and $nbytes == 0) {
+ last;
+ }
+
+ # Remove APR pool debugging
+ $$rbuf =~ s/POOL DEBUG:[^\n]+PALLOC[^\n]+\n//sg;
+
+ $n = length($$rbuf);
+
+ #dbg("Match \"$re\" in $name \"$$rbuf\" ($n)");
+ if ($$rbuf =~ m/$re/m) {
+ $rc = $&;
+ last;
+ }
+ # TODO: Use select()/poll()
+ sleep 0.1 unless ($nbytes == $BUFSIZ);
+ if ($graph and $opt{d}) {
+ $i++;
+ if ($i == 10) {
+ $graphed++;
+ $i=0;
+ print STDERR $graph if ($graphed == 1);
+ print STDERR "."
+ }
+ }
+ } while (gettimeofday - $t0 < $timeout);
+ }
+ print STDERR "\n" if ($graphed);
+
+ return $rc;
+}
+
+sub match_file {
+ my($neg,$fn) = ($_[0] =~ m/^(-?)(.*)$/);
+ unless (exists $FILE{$fn}) {
+ eval {
+ $FILE{$fn}{fn} = $fn;
+ $FILE{$fn}{fd} = new FileHandle($fn, O_RDONLY) or die "$!\n";
+ $FILE{$fn}{fd}->blocking(0);
+ $FILE{$fn}{buf} = "";
+ };
+ if ($@) {
+ msg("Warning: Failed to open file \"$fn\": $@");
+ return;
+ }
+ }
+ return match_log($_[0], $_[1]); # timeout makes no sense
+}
+
+sub quote_shell {
+ my($s) = @_;
+ return $s unless ($s =~ m|[^\w!%+,\-./:@^]|);
+ $s =~ s/(['\\])/\\$1/g;
+ return "'$s'";
+}
+
+sub escape {
+ my @new = ();
+ for my $c (split(//, $_[0])) {
+ my $oc = ord($c);
+ push @new, ((($oc >= 0x20 and $oc <= 0x7e) or $oc == 0x0a or $oc == 0x0d) ? $c : sprintf("\\x%02x", ord($c)));
+ }
+ join('', @new);
+}
+
+sub dbg {
+ return unless(@_ and $opt{d});
+ my $out = join "", map {
+ (ref $_ ne "" ? Dumper($_) : $_)
+ } @_;
+ $out =~ s/^/DBG: /mg;
+ print STDOUT "$out\n";
+}
+
+sub vrb {
+ return unless(@_ and $opt{v});
+ msg(@_);
+}
+
+sub msg {
+ return unless(@_);
+ my $out = join "", map {
+ (ref $_ ne "" ? Dumper($_) : $_)
+ } @_;
+ print STDOUT "$out\n";
+}
+
+sub handle_interrupt {
+ $SIG{TERM} = $SIG{INT} = \&handle_interrupt;
+
+ msg("Interrupted via SIG$_[0]. Shutting down tests...");
+ httpd_stop();
+
+ quit(1);
+}
+
+sub quit {
+ my($ec,$msg) = @_;
+ $ec = 0 unless (defined $_[0]);
+
+ msg("$msg") if (defined $msg);
+
+ exit $ec;
+}
+
+sub done {
+ if ($PASSED != $TOTAL) {
+ quit(1, "\n$PASSED/$TOTAL tests passed.");
+ }
+
+ quit(0, "\nAll tests passed ($TOTAL).");
+}
+
+sub httpd_start {
+ my $t = shift;
+ httpd_reset_fd($t);
+ my @p = (
+ $HTTPD,
+ -d => $opt{S},
+ -f => $opt{C},
+ (map { (-c => $_) } ("Listen localhost:$opt{p}", @_)),
+ -k => "start",
+ );
+
+ my $httpd_out;
+ my $httpd_pid = open3(undef, $httpd_out, undef, @p) or quit(1);
+ my $out = join("\\n", grep(!/POOL DEBUG/, (<$httpd_out>)));
+ close $httpd_out;
+ waitpid($httpd_pid, 0);
+
+ my $rc = $?;
+ if ( WIFEXITED($rc) ) {
+ $rc = WEXITSTATUS($rc);
+ vrb("Httpd start returned with $rc.") if ($rc);
+ }
+ elsif( WIFSIGNALED($rc) ) {
+ msg("Httpd start failed with signal " . WTERMSIG($rc) . ".");
+ $rc = -1;
+ }
+ else {
+ msg("Httpd start failed with unknown error.");
+ $rc = -1;
+ }
+
+ if (defined $out and $out ne "") {
+ vrb(join(" ", map { quote_shell($_) } @p));
+ msg("Httpd start failed with error messages:\n$out");
+ return -1
+ }
+
+ # Look for startup msg
+ unless (defined match_log("error", qr/resuming normal operations/, 60, "Waiting on httpd to start: ")) {
+ vrb(join(" ", map { quote_shell($_) } @p));
+ vrb(match_log("error", qr/(^.*ModSecurity: .*)/sm, 10));
+ msg("Httpd server failed to start.");
+ return -1;
+ }
+
+ return $rc;
+}
+
+sub httpd_stop {
+ my $t = shift;
+ my @p = (
+ $HTTPD,
+ -d => $opt{S},
+ -f => $opt{C},
+ (map { (-c => $_) } ("Listen localhost:$opt{p}", @_)),
+ -k => "stop",
+ );
+
+ my $httpd_out;
+ my $httpd_pid = open3(undef, $httpd_out, undef, @p) or quit(1);
+ my $out = join("\\n", grep(!/POOL DEBUG/, (<$httpd_out>)));
+ close $httpd_out;
+ waitpid($httpd_pid, 0);
+
+ if (defined $out and $out ne "") {
+ msg("Httpd stop failed with error messages:\n$out");
+ return -1
+ }
+
+ my $rc = $?;
+ if ( WIFEXITED($rc) ) {
+ $rc = WEXITSTATUS($rc);
+ vrb("Httpd stop returned with $rc.") if ($rc);
+ }
+ elsif( WIFSIGNALED($rc) ) {
+ msg("Httpd stop failed with signal " . WTERMSIG($rc) . ".");
+ $rc = -1;
+ }
+ else {
+ msg("Httpd stop failed with unknown error.");
+ $rc = -1;
+ }
+
+ # Look for startup msg
+ unless (defined match_log("error", qr/caught SIG[A-Z]+, shutting down/, 60, "Waiting on httpd to stop: ")) {
+ vrb(join(" ", map { quote_shell($_) } @p));
+ msg("Httpd server failed to shutdown.");
+ sleep 0.5;
+ return -1;
+ }
+
+ sleep 0.5;
+
+ return $rc;
+}
+
+sub httpd_reload {
+ my $t = shift;
+ httpd_reset_fd($t);
+ my @p = (
+ $HTTPD,
+ -d => $opt{S},
+ -f => $opt{C},
+ (map { (-c => $_) } ("Listen localhost:$opt{p}", @_)),
+ -k => "graceful",
+ );
+
+ my $httpd_out;
+ my $httpd_pid = open3(undef, $httpd_out, undef, @p) or quit(1);
+ my $out = join("\\n", grep(!/POOL DEBUG/, (<$httpd_out>)));
+ close $httpd_out;
+ waitpid($httpd_pid, 0);
+
+ if (defined $out and $out ne "") {
+ msg("Httpd reload failed with error messages:\n$out");
+ return -1
+ }
+
+ my $rc = $?;
+ if ( WIFEXITED($rc) ) {
+ $rc = WEXITSTATUS($rc);
+ vrb("Httpd reload returned with $rc.") if ($rc);
+ }
+ elsif( WIFSIGNALED($rc) ) {
+ msg("Httpd reload failed with signal " . WTERMSIG($rc) . ".");
+ $rc = -1;
+ }
+ else {
+ msg("Httpd reload failed with unknown error.");
+ $rc = -1;
+ }
+
+ # Look for startup msg
+ unless (defined match_log("error", qr/resuming normal operations/, 60, "Waiting on httpd to restart: ")) {
+ vrb(join(" ", map { quote_shell($_) } @p));
+ msg("Httpd server failed to reload.");
+ return -1;
+ }
+
+ return $rc;
+}
+
+sub httpd_reset_fd {
+ my($t) = @_;
+
+ # Cleanup
+ for my $key (keys %FILE) {
+ if (exists $FILE{$key}{fd} and defined $FILE{$key}{fd}) {
+ $FILE{$key}{fd}->close();
+ }
+ delete $FILE{$key};
+ }
+
+ # Error
+ eval {
+ $FILE{error}{fn} = $opt{E};
+ $FILE{error}{fd} = new FileHandle($opt{E}, O_RDWR|O_CREAT) or die "$!\n";
+ $FILE{error}{fd}->blocking(0);
+ $FILE{error}{fd}->sysseek(0, 2);
+ $FILE{error}{buf} = "";
+ };
+ if ($@) {
+ msg("Warning: Failed to open file \"$opt{E}\": $@");
+ return undef;
+ }
+
+ # Audit
+ eval {
+ $FILE{audit}{fn} = $opt{A};
+ $FILE{audit}{fd} = new FileHandle($opt{A}, O_RDWR|O_CREAT) or die "$!\n";
+ $FILE{audit}{fd}->blocking(0);
+ $FILE{audit}{fd}->sysseek(0, 2);
+ $FILE{audit}{buf} = "";
+ };
+ if ($@) {
+ msg("Warning: Failed to open file \"$opt{A}\": $@");
+ return undef;
+ }
+
+ # Debug
+ eval {
+ $FILE{debug}{fn} = $opt{D};
+ $FILE{debug}{fd} = new FileHandle($opt{D}, O_RDWR|O_CREAT) or die "$!\n";
+ $FILE{debug}{fd}->blocking(0);
+ $FILE{debug}{fd}->sysseek(0, 2);
+ $FILE{debug}{buf} = "";
+ };
+ if ($@) {
+ msg("Warning: Failed to open file \"$opt{D}\": $@");
+ return undef;
+ }
+
+ # Any extras listed in "match_log"
+ if ($t and exists $t->{match_log}) {
+ for my $k (keys %{ $t->{match_log} || {} }) {
+ my($neg,$fn) = ($k =~ m/^(-?)(.*)$/);
+ next if (!$fn or exists $FILE{$fn});
+ eval {
+ $FILE{$fn}{fn} = $fn;
+ $FILE{$fn}{fd} = new FileHandle($fn, O_RDWR|O_CREAT) or die "$!\n";
+ $FILE{$fn}{fd}->blocking(0);
+ $FILE{$fn}{fd}->sysseek(0, 2);
+ $FILE{$fn}{buf} = "";
+ };
+ if ($@) {
+ msg("Warning: Failed to open file \"$fn\": $@");
+ return undef;
+ }
+ }
+ }
+}
+
+sub encode_chunked {
+ my($data, $size) = @_;
+ $size = 128 unless ($size);
+ my $chunked = "";
+
+ my $n = 0;
+ my $bytes = length($data);
+ while ($bytes >= $size) {
+ $chunked .= sprintf "%x\x0d\x0a%s\x0d\x0a", $size, substr($data, $n, $size);
+ $n += $size;
+ $bytes -= $size;
+ }
+ if ($bytes) {
+ $chunked .= sprintf "%x\x0d\x0a%s\x0d\x0a", $bytes, substr($data, $n, $bytes);
+ }
+ $chunked .= "0\x0d\x0a\x0d\x0a"
+}
--- /dev/null
+#!@PERL@
+#
+# Run unit tests.
+#
+# Syntax:
+# All: run-tests.pl
+# All in file: run-tests.pl file
+# Nth in file: run-tests.pl file N
+#
+use strict;
+use POSIX qw(WIFEXITED WEXITSTATUS WIFSIGNALED WTERMSIG);
+use File::Basename qw(basename dirname);
+use FileHandle;
+use IPC::Open2 qw(open2);
+
+my @TYPES = qw(tfn op action);
+my $TEST = "./msc_test";
+my $SCRIPT = basename($0);
+my $SCRIPTDIR = dirname($0);
+my $PASSED = 0;
+my $TOTAL = 0;
+my $DEBUG = $ENV{MSC_TEST_DEBUG} || 0;
+
+if (defined $ARGV[0]) {
+ runfile(dirname($ARGV[0]), basename($ARGV[0]), $ARGV[1]);
+ done();
+}
+
+for my $type (sort @TYPES) {
+ my $dir = "$SCRIPTDIR/$type";
+ my @cfg = ();
+
+ # Get test names
+ opendir(DIR, "$dir") or quit(1, "Failed to open \"$dir\": $!");
+ @cfg = grep { /\.t$/ && -f "$dir/$_" } readdir(DIR);
+ closedir(DIR);
+
+ for my $cfg (sort @cfg) {
+ runfile($dir, $cfg);
+ }
+
+}
+done();
+
+
+sub runfile {
+ my($dir, $cfg, $testnum) = @_;
+ my $fn = "$dir/$cfg";
+ my @data = ();
+ my $edata;
+ my @C = ();
+ my @test = ();
+ my $teststr;
+ my $n = 0;
+ my $pass = 0;
+
+ open(CFG, "<$fn") or quit(1, "Failed to open \"$fn\": $!");
+ @data = <CFG>;
+
+ $edata = q/@C = (/ . join("", @data) . q/)/;
+ eval $edata;
+ quit(1, "Failed to read test data \"$cfg\": $@") if ($@);
+
+ unless (@C) {
+ msg("\nNo tests defined for $fn");
+ return;
+ }
+
+ msg("\nLoaded ".@C." tests from $fn");
+ for my $t (@C) {
+ $n++;
+ next if (defined $testnum and $n != $testnum);
+
+ my %t = %{$t || {}};
+ my $id = sprintf("%6d", $n);
+ my $in = (exists($t{input}) and defined($t{input})) ? $t{input} : "";
+ my $out;
+ my $test_in = new FileHandle();
+ my $test_out = new FileHandle();
+ my $test_pid;
+ my $rc = 0;
+ my $param;
+
+ if ($t{type} eq "tfn") {
+ $param = escape($t{output});
+ }
+ elsif ($t{type} eq "op") {
+ $param = escape($t{param});
+ }
+ elsif ($t{type} eq "action") {
+ $param = escape($t{param});
+ }
+ else {
+ quit(1, "Unknown type \"$t{type}\" - should be one of: " . join(",",@TYPES));
+ }
+
+ @test = ("-t", $t{type}, "-n", $t{name}, "-p", $param, "-D", "$DEBUG", (exists($t{ret}) ? ("-r", $t{ret}) : ()), (exists($t{iterations}) ? ("-I", $t{iterations}) : ()), (exists($t{prerun}) ? ("-P", $t{prerun}) : ()));
+ $teststr = "$TEST " . join(" ", map { "\"$_\"" } @test);
+ $test_pid = open2($test_out, $test_in, $TEST, @test) or quit(1, "Failed to execute test: $teststr\": $!");
+ print $test_in "$in";
+ close $test_in;
+ $out = join("\\n", split(/\n/, <$test_out>));
+ close $test_out;
+ waitpid($test_pid, 0);
+
+ $rc = $?;
+ if ( WIFEXITED($rc) ) {
+ $rc = WEXITSTATUS($rc);
+ }
+ elsif( WIFSIGNALED($rc) ) {
+ msg("Test exited with signal " . WTERMSIG($rc) . ".");
+ msg("Executed: $teststr");
+ $rc = -1;
+ }
+ else {
+ msg("Test exited with unknown error.");
+ $rc = -1;
+ }
+
+ if ($rc == 0) {
+ $pass++;
+ }
+
+ msg(sprintf("%s) %s \"%s\"%s: %s%s", $id, $t{type}, $t{name}, (exists($t{comment}) ? " $t{comment}" : ""), ($rc ? "failed" : "passed"), ((defined($out) && $out ne "")? " ($out)" : "")));
+
+ }
+
+ $TOTAL += $testnum ? 1 : $n;
+ $PASSED += $pass;
+
+ msg(sprintf("Passed: %2d; Failed: %2d", $pass, $testnum ? (1 - $pass) : ($n - $pass)));
+}
+
+sub escape {
+ my @new = ();
+ for my $c (split(//, $_[0])) {
+ push @new, ((ord($c) >= 0x20 and ord($c) <= 0x7e) ? $c : sprintf("\\x%02x", ord($c)));
+ }
+ join('', @new);
+}
+
+sub msg {
+ print STDOUT "@_\n" if (@_);
+}
+
+sub quit {
+ my($ec,$msg) = @_;
+ $ec = 0 unless (defined $_[0]);
+
+ msg("$msg") if (defined $msg);
+
+ exit $ec;
+}
+
+sub done {
+ if ($PASSED != $TOTAL) {
+ quit(1, "\n$PASSED/$TOTAL tests passed.");
+ }
+
+ quit(0, "\nAll tests passed ($TOTAL).");
+}
--- /dev/null
+### Empty
+{
+ type => "tfn",
+ name => "base64Decode",
+ input => "",
+ output => "",
+ ret => 0,
+},
+
+### Test values with varying lengths to check padding
+{
+ type => "tfn",
+ name => "base64Decode",
+ input => "VGVzdENhc2U=",
+ output => "TestCase",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "base64Decode",
+ input => "VGVzdENhc2Ux",
+ output => "TestCase1",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "base64Decode",
+ input => "VGVzdENhc2UxMg==",
+ output => "TestCase12",
+ ret => 1,
+},
+
+
+### Check with a NUL
+{
+ type => "tfn",
+ name => "base64Decode",
+ input => "VGVzdABDYXNl",
+ output => "Test\0Case",
+ ret => 1,
+},
+
+### Invalid
+# What should happen here? Probably just fail and leave alone.
+{
+ type => "tfn",
+ name => "base64Decode",
+ input => "VGVzdENhc2U=\0VGVzdENhc2U=",
+ output => "TestCase",
+ ret => 1,
+},
--- /dev/null
+### Empty
+{
+ type => "tfn",
+ name => "base64Encode",
+ input => "",
+ output => "",
+ ret => 0,
+},
+
+### Test values with varying lengths to check padding
+{
+ type => "tfn",
+ name => "base64Encode",
+ input => "TestCase",
+ output => "VGVzdENhc2U=",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "base64Encode",
+ input => "TestCase1",
+ output => "VGVzdENhc2Ux",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "base64Encode",
+ input => "TestCase12",
+ output => "VGVzdENhc2UxMg==",
+ ret => 1,
+},
+
+### Check with a NUL
+{
+ type => "tfn",
+ name => "base64Encode",
+ input => "Test\0Case",
+ output => "VGVzdABDYXNl",
+ ret => 1,
+},
--- /dev/null
+### Empty
+{
+ type => "tfn",
+ name => "compressWhitespace",
+ input => "",
+ output => "",
+ ret => 0,
+},
+
+### Nothing
+{
+ type => "tfn",
+ name => "compressWhitespace",
+ input => "TestCase",
+ output => "TestCase",
+ ret => 0,
+},
+{
+ type => "tfn",
+ name => "compressWhitespace",
+ input => "Test\0Case",
+ output => "Test\0Case",
+ ret => 0,
+},
+{
+ type => "tfn",
+ name => "compressWhitespace",
+ input => "Test Case",
+ output => "Test Case",
+ ret => 0,
+},
+
+
+### Compress space/tab
+{
+ type => "tfn",
+ name => "compressWhitespace",
+ input => " Test \t Case ",
+ output => " Test Case ",
+ ret => 1,
+},
+
+### Pretty much everything in one
+{
+ type => "tfn",
+ name => "compressWhitespace",
+ input => "This is a test case with a tab \t, vtab \x0b, newline \x0a, return \x0d, formfeed \f, and a NUL\0 in it with a CRLF at the end.\x0d\x0a",
+ output => "This is a test case with a tab , vtab , newline , return , formfeed , and a NUL\0 in it with a CRLF at the end. ",
+ ret => 1,
+},
--- /dev/null
+### Empty
+{
+ type => "tfn",
+ name => "cssDecode",
+ input => "",
+ output => "",
+ ret => 0,
+},
+
+### Nothing
+{
+ type => "tfn",
+ name => "cssDecode",
+ input => "TestCase",
+ output => "TestCase",
+ ret => 0,
+},
+{
+ type => "tfn",
+ name => "cssDecode",
+ input => "Test\0Case",
+ output => "Test\0Case",
+ ret => 0,
+},
+
+### Valid Sequences
+{
+ type => "tfn",
+ name => "cssDecode",
+ input => "test\\a\\b\\f\\n\\r\\t\\v\\?\\'\\\"\\0\\12\\123\\1234\\12345\\123456\\ff01\\ff5e\\\n\\0 string",
+ output => qq(test\x0a\x0b\x0fnrtv?'"\x00\x12\x23\x34\x45\x56\x21\x7e\x00 string),
+ ret => 1,
+},
+
+### Invalid Sequences
+# Trailing escape == line continuation with no line following (ie nothing)
+{
+ type => "tfn",
+ name => "cssDecode",
+ input => "test\\",
+ output => "test",
+ ret => 1,
+},
+
+# Edge cases
+# "\1A" == "\x1A"
+# "\1 A" == "\x01A"
+# "\1234567" == "\x567"
+# "\123456 7" == "\x567"
+# "\1x" == "\x01x"
+# "\1 x" == "\x01 x"
+{
+ type => "tfn",
+ name => "cssDecode",
+ input => "\\1A\\1 A\\1234567\\123456 7\\1x\\1 x",
+ output => "\x1A\x01A\x567\x567\x01x\x01x",
+ ret => 1,
+},
--- /dev/null
+### Empty
+{
+ type => "tfn",
+ name => "escapeSeqDecode",
+ input => "",
+ output => "",
+ ret => 0,
+},
+
+### Nothing
+{
+ type => "tfn",
+ name => "escapeSeqDecode",
+ input => "TestCase",
+ output => "TestCase",
+ ret => 0,
+},
+{
+ type => "tfn",
+ name => "escapeSeqDecode",
+ input => "Test\0Case",
+ output => "Test\0Case",
+ ret => 0,
+},
+
+### Valid Sequences
+{
+ type => "tfn",
+ name => "escapeSeqDecode",
+ input => "\\a\\b\\f\\n\\r\\t\\v\\?\\'\\\"\\0\\12\\123\\x00\\xff",
+ output => "\a\b\f\x0a\x0d\t\x0b?'\"\x00\x0a\x53\x00\xff",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "escapeSeqDecode",
+ input => "\\a\\b\\f\\n\\r\\t\\v\0\\?\\'\\\"\\0\\12\\123\\x00\\xff",
+ output => "\a\b\f\x0a\x0d\t\x0b\0?'\"\x00\x0a\x53\x00\xff",
+ ret => 1,
+},
+
+### Invalid Sequences
+# \8 and \9 are not octal
+# \666 is a byte overflow (0x1b6) and should be truncated to a byte as 0xb6
+# \xag and \xga are not hex,
+# \0123 is \012 + '3'
+{
+ type => "tfn",
+ name => "escapeSeqDecode",
+ input => "\\8\\9\\666\\xag\\xga\\0123",
+ output => "89\xb6xagxga\x0a3",
+ ret => 1,
+},
+
+# \x, \x0 lack enough hex digits
+{
+ type => "tfn",
+ name => "escapeSeqDecode",
+ input => "\\x",
+ output => "x",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "escapeSeqDecode",
+ input => "\\x\\x0",
+ output => "xx0",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "escapeSeqDecode",
+ input => "\\x\\x0\0",
+ output => "xx0\0",
+ ret => 1,
+},
+# Octal at end
+{
+ type => "tfn",
+ name => "escapeSeqDecode",
+ input => "\\0",
+ output => "\x00",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "escapeSeqDecode",
+ input => "\\01",
+ output => "\x01",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "escapeSeqDecode",
+ input => "\\012",
+ output => "\x0a",
+ ret => 1,
+},
+# A forward slash with nothing after
+{
+ type => "tfn",
+ name => "escapeSeqDecode",
+ input => "\\",
+ output => "\\",
+ ret => 0,
+},
+# A forward slash with NUL after
+{
+ type => "tfn",
+ name => "escapeSeqDecode",
+ input => "\\\0",
+ output => "\0",
+ ret => 1,
+},
--- /dev/null
+### Empty
+{
+ type => "tfn",
+ name => "hexDecode",
+ input => "",
+ output => "",
+ ret => 1,
+},
+
+### Basic
+{
+ type => "tfn",
+ name => "hexDecode",
+ input => "5465737443617365",
+ output => "TestCase",
+ ret => 1,
+},
+
+### Basic w/NULL
+{
+ type => "tfn",
+ name => "hexDecode",
+ input => "546573740043617365",
+ output => "Test\0Case",
+ ret => 1,
+},
+
+### Invalid
+# What should happen here? Probably just fail and leave alone.
+{
+ type => "tfn",
+ name => "hexDecode",
+ input => "01234567890a0z01234567890a",
+ output => "\x01#Eg\x89\x0a#\x01#Eg\x89\x0a",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "hexDecode",
+ input => "01234567890az",
+ output => "\x01#Eg\x89\x0a",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "hexDecode",
+ input => "01234567890a0",
+ output => "\x01#Eg\x89\x0a",
+ ret => 1,
+},
--- /dev/null
+### Empty
+{
+ type => "tfn",
+ name => "hexEncode",
+ input => "",
+ output => "",
+ ret => 1,
+},
+
+### Basic
+{
+ type => "tfn",
+ name => "hexEncode",
+ input => "TestCase",
+ output => "5465737443617365",
+ ret => 1,
+},
+
+### Basic w/NULL
+{
+ type => "tfn",
+ name => "hexEncode",
+ input => "Test\0Case",
+ output => "546573740043617365",
+ ret => 1,
+},
--- /dev/null
+### Empty
+{
+ type => "tfn",
+ name => "htmlEntityDecode",
+ input => "",
+ output => "",
+ ret => 0,
+},
+
+### Nothing
+{
+ type => "tfn",
+ name => "htmlEntityDecode",
+ input => "TestCase",
+ output => "TestCase",
+ ret => 0,
+},
+{
+ type => "tfn",
+ name => "htmlEntityDecode",
+ input => "Test\0Case",
+ output => "Test\0Case",
+ ret => 0,
+},
+
+### Valid
+# With ;
+{
+ type => "tfn",
+ name => "htmlEntityDecode",
+ input => "��  � \0d"&<> ",
+ output => "\0\0\x20\x20\0\x20\0\x64\"&<>\xa0",
+ ret => 1,
+},
+# Without ;
+{
+ type => "tfn",
+ name => "htmlEntityDecode",
+ input => "��  � \0d"&<> ",
+ output => "\0\0\x20\x20\0\x20\0\x64\"&<>\xa0",
+ ret => 1,
+},
+
+### Invalid
+{
+ type => "tfn",
+ name => "htmlEntityDecode",
+ input => "&#xg;&#Xg;&#xg0;g;&#a;\0&#a2;a&#a00;a0;
a;&foo;",
+ output => "&#xg;&#Xg;&#xg0;\x02g;&#a;\0&#a2;\x03a&#a00;\x01a0;\x0aa;&foo;",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "htmlEntityDecode",
+ input => "&#xg&#Xg&#xg0g&#a\0&#a2a&#a00a0
a&foo",
+ output => "&#xg&#Xg&#xg0\x02g&#a\0&#a2\x03a&#a00\x01a0\x0aa&foo",
+ ret => 1,
+},
--- /dev/null
+### Empty
+{
+ type => "tfn",
+ name => "jsDecode",
+ input => "",
+ output => "",
+ ret => 0,
+},
+
+### Nothing
+{
+ type => "tfn",
+ name => "jsDecode",
+ input => "TestCase",
+ output => "TestCase",
+ ret => 0,
+},
+{
+ type => "tfn",
+ name => "jsDecode",
+ input => "Test\0Case",
+ output => "Test\0Case",
+ ret => 0,
+},
+
+### Valid Sequences
+{
+ type => "tfn",
+ name => "jsDecode",
+ input => "\\a\\b\\f\\n\\r\\t\\v\\?\\'\\\"\\0\\12\\123\\x00\\xff\\u0021\\uff01",
+ output => "\a\b\f\x0a\x0d\t\x0b?'\"\x00\x0a\x53\x00\xff\x21\x21",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "jsDecode",
+ input => "\\a\\b\\f\\n\\r\\t\\v\0\\?\\'\\\"\\0\\12\\123\\x00\\xff\\u0021\\uff01",
+ output => "\a\b\f\x0a\x0d\t\x0b\0?'\"\x00\x0a\x53\x00\xff\x21\x21",
+ ret => 1,
+},
+
+### Invalid Sequences
+# \8 and \9 are not octal
+# \666 is \66 + '6' (JS does not allow the overflow as C does)
+# \u00ag, \u00ga, \u0zaa, \uz0aa are not hex
+# \xag and \xga are not hex,
+# \0123 is \012 + '3'
+{
+ type => "tfn",
+ name => "jsDecode",
+ input => "\\8\\9\\666\\u00ag\\u00ga\\u0zaa\\uz0aa\\xag\\xga\\0123\\u00a",
+ output => "89\x366u00agu00gau0zaauz0aaxagxga\x0a3u00a",
+ ret => 1,
+},
+
+# \x, \x0 lack enough hex digits
+{
+ type => "tfn",
+ name => "jsDecode",
+ input => "\\x",
+ output => "x",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "jsDecode",
+ input => "\\x\\x0",
+ output => "xx0",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "jsDecode",
+ input => "\\x\\x0\0",
+ output => "xx0\0",
+ ret => 1,
+},
+# \u, \u0 \u01, \u012 lack enough hex digits
+{
+ type => "tfn",
+ name => "jsDecode",
+ input => "\\u",
+ output => "u",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "jsDecode",
+ input => "\\u\\u0",
+ output => "uu0",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "jsDecode",
+ input => "\\u\\u0\\u01",
+ output => "uu0u01",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "jsDecode",
+ input => "\\u\\u0\\u01\\u012",
+ output => "uu0u01u012",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "jsDecode",
+ input => "\\u\\u0\\u01\\u012\0",
+ output => "uu0u01u012\0",
+ ret => 1,
+},
+# A forward slash with nothing after
+{
+ type => "tfn",
+ name => "jsDecode",
+ input => "\\",
+ output => "\\",
+ ret => 0,
+},
+# A forward slash with NUL after
+{
+ type => "tfn",
+ name => "jsDecode",
+ input => "\\\0",
+ output => "\0",
+ ret => 1,
+},
--- /dev/null
+### Empty
+{
+ type => "tfn",
+ name => "length",
+ input => "",
+ output => "0",
+ ret => 1,
+},
+
+
+### Basic normal and large
+{
+ type => "tfn",
+ name => "length",
+ input => "0123456789abcdef",
+ output => "16",
+ ret => 1,
+},
+# ENH: This sometimes fails w/4096 length
+#{
+# type => "tfn",
+# name => "length",
+# input => ('x' x 8192),
+# output => "8192",
+# ret => 1,
+#},
+
+### With TAB
+{
+ type => "tfn",
+ name => "length",
+ input => "0123456789\tabcdef",
+ output => "17",
+ ret => 1,
+},
+
+### With NUL
+{
+ type => "tfn",
+ name => "length",
+ input => "Test\0Case",
+ output => "9",
+ ret => 1,
+},
--- /dev/null
+### Empty
+{
+ type => "tfn",
+ name => "lowercase",
+ input => "",
+ output => "",
+ ret => 0,
+},
+
+### Nothing
+{
+ type => "tfn",
+ name => "lowercase",
+ input => "testcase",
+ output => "testcase",
+ ret => 0,
+},
+{
+ type => "tfn",
+ name => "lowercase",
+ input => "test\0case",
+ output => "test\0case",
+ ret => 0,
+},
+
+### Basic
+{
+ type => "tfn",
+ name => "lowercase",
+ input => "TestCase",
+ output => "testcase",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "lowercase",
+ input => "Test\0Case",
+ output => "test\0case",
+ ret => 1,
+},
--- /dev/null
+### Empty
+{
+ type => "tfn",
+ name => "md5",
+ input => "",
+ output => "\xd4\x1d\x8c\xd9\x8f\x00\xb2\x04\xe9\x80\x09\x98\xec\xf8\x42\x7e",
+ ret => 1,
+},
+
+### Basic
+{
+ type => "tfn",
+ name => "md5",
+ input => "TestCase",
+ output => "\xc9\xab\xa2\xc3\xe6\x01\x26\x16\x9e\x80\xe9\xa2\x6b\xa2\x73\xc1",
+ ret => 1,
+},
+
+### Binary w/NUL
+{
+ type => "tfn",
+ name => "md5",
+ input => "\x00\x01\x02\x03\x04\x05\x06\x07\x08",
+ output => "\xa6\xe7\xd3\xb4\x6f\xdf\xaf\x0b\xde\x2a\x1f\x83\x2a\x00\xd2\xde",
+ ret => 1,
+},
--- /dev/null
+### Empty
+{
+ type => "tfn",
+ name => "normalisePath",
+ input => "",
+ output => "",
+ ret => 0,
+},
+
+### Nothing
+{
+ type => "tfn",
+ name => "normalisePath",
+ input => "/foo/bar/baz",
+ output => "/foo/bar/baz",
+ ret => 0,
+},
+{
+ type => "tfn",
+ name => "normalisePath",
+ input => "/foo/bar\0/baz",
+ output => "/foo/bar\0/baz",
+ ret => 0,
+},
+
+### Basic
+{
+ type => "tfn",
+ name => "normalisePath",
+ input => "/foo/bar//baz",
+ output => "/foo/bar/baz",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "normalisePath",
+ input => "/foo/bar baz/././././boo//eek/././../whoa",
+ output => "/foo/bar baz/boo/whoa",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "normalisePath",
+ input => "./foo/bar baz/././././boo//eek/././../whoa",
+ output => "./foo/bar baz/boo/whoa",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "normalisePath",
+ input => "/./foo/bar baz/././././boo//eek/././../whoa",
+ output => "/foo/bar baz/boo/whoa",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "normalisePath",
+ input => "//foo/bar baz/././././boo//eek/././../whoa",
+ output => "/foo/bar baz/boo/whoa",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "normalisePath",
+ input => "//foo/bar baz/././././boo//eek/././../whoa/./",
+ output => "/foo/bar baz/boo/whoa/",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "normalisePath",
+ input => "/./foo/bar baz/././././boo//eek/././../whoa//",
+ output => "/foo/bar baz/boo/whoa/",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "normalisePath",
+ input => "/./../../../../../../../../etc/passwd",
+ output => "/etc/passwd",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "normalisePath",
+ input => "/./.././../../../../../../../etc/../etc/./passwd",
+ output => "/etc/passwd",
+ ret => 1,
+},
+
+### With NUL
+{
+ type => "tfn",
+ name => "normalisePath",
+ input => "/./.././../../../../../../../\0/../etc/./passwd",
+ output => "/etc/passwd",
+ ret => 1,
+},
--- /dev/null
+### Empty
+{
+ type => "tfn",
+ name => "normalisePathWin",
+ input => "",
+ output => "",
+ ret => 0,
+},
+
+### Nothing but switch slashes
+{
+ type => "tfn",
+ name => "normalisePathWin",
+ input => "\\foo\\bar\\baz",
+ output => "/foo/bar/baz",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "normalisePathWin",
+ input => "\\foo\\bar\0\\baz",
+ output => "/foo/bar\0/baz",
+ ret => 1,
+},
+
+### Basics
+{
+ type => "tfn",
+ name => "normalisePathWin",
+ input => "\\foo\\bar\\\\baz",
+ output => "/foo/bar/baz",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "normalisePathWin",
+ input => "\\foo\\bar baz\\.\\.\\.\\.\\boo\\\\eek\\.\\.\\..\\whoa",
+ output => "/foo/bar baz/boo/whoa",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "normalisePathWin",
+ input => ".\\foo\\bar baz\\.\\.\\.\\.\\boo\\\\eek\\.\\.\\..\\whoa",
+ output => "./foo/bar baz/boo/whoa",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "normalisePathWin",
+ input => "\\.\\foo\\bar baz\\.\\.\\.\\.\\boo\\\\eek\\.\\.\\..\\whoa",
+ output => "/foo/bar baz/boo/whoa",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "normalisePathWin",
+ input => "\\\\foo\\bar baz\\.\\.\\.\\.\\boo\\\\eek\\.\\.\\..\\whoa",
+ output => "/foo/bar baz/boo/whoa",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "normalisePathWin",
+ input => "\\\\foo\\bar baz\\.\\.\\.\\.\\boo\\\\eek\\.\\.\\..\\whoa\\.\\",
+ output => "/foo/bar baz/boo/whoa/",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "normalisePathWin",
+ input => "\\.\\foo\\bar baz\\.\\.\\.\\.\\boo\\\\eek\\.\\.\\..\\whoa\\\\",
+ output => "/foo/bar baz/boo/whoa/",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "normalisePathWin",
+ input => "\\.\\..\\..\\..\\..\\..\\..\\..\\..\\etc\\passwd",
+ output => "/etc/passwd",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "normalisePathWin",
+ input => "\\.\\..\\.\\..\\..\\..\\..\\..\\..\\..\\etc\\..\\etc\\.\\passwd",
+ output => "/etc/passwd",
+ ret => 1,
+},
+
+### With NUL
+{
+ type => "tfn",
+ name => "normalisePathWin",
+ input => "\\.\\..\\.\\..\\..\\..\\..\\..\\..\\..\\\0\\..\\etc\\.\\passwd",
+ output => "/etc/passwd",
+ ret => 1,
+},
--- /dev/null
+### Empty
+{
+ type => "tfn",
+ name => "parityEven7bit",
+ input => "",
+ output => "",
+ ret => 0,
+},
+
+### Nothing
+{
+ type => "tfn",
+ name => "parityEven7bit",
+ input => "cefijloqrtwx03569ABDGHKMNPSUVYZ",
+ output => "cefijloqrtwx03569ABDGHKMNPSUVYZ",
+ ret => 0,
+},
+
+### Parity
+{
+ type => "tfn",
+ name => "parityEven7bit",
+ input => "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ",
+ output => "\xe1\xe2c\xe4ef\xe7\xe8ij\xebl\xed\xeeo\xf0qr\xf3t\xf5\xf6wx\xf9\xfa0\xb1\xb23\xb456\xb7\xb89AB\xc3D\xc5\xc6GH\xc9\xcaK\xccMN\xcfP\xd1\xd2S\xd4UV\xd7\xd8YZ",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "parityEven7bit",
+ input => "abcdefghijklmnopqrstuvwxyz\x000123456789\x00ABCDEFGHIJKLMNOPQRSTUVWXYZ",
+ output => "\xe1\xe2c\xe4ef\xe7\xe8ij\xebl\xed\xeeo\xf0qr\xf3t\xf5\xf6wx\xf9\xfa\x000\xb1\xb23\xb456\xb7\xb89\x00AB\xc3D\xc5\xc6GH\xc9\xcaK\xccMN\xcfP\xd1\xd2S\xd4UV\xd7\xd8YZ",
+ ret => 1,
+},
+
--- /dev/null
+### Empty
+{
+ type => "tfn",
+ name => "parityOdd7bit",
+ input => "",
+ output => "",
+ ret => 0,
+},
+
+### Nothing
+{
+ type => "tfn",
+ name => "parityOdd7bit",
+ input => "abdghkmnpsuvyz12478CEFIJLOQRTW",
+ output => "abdghkmnpsuvyz12478CEFIJLOQRTW",
+ ret => 0,
+},
+
+### Parity
+{
+ type => "tfn",
+ name => "parityOdd7bit",
+ input => "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ",
+ output => "ab\xe3d\xe5\xe6gh\xe9\xeak\xecmn\xefp\xf1\xf2s\xf4uv\xf7\xf8yz\xb012\xb34\xb5\xb678\xb9\xc1\xc2C\xc4EF\xc7\xc8IJ\xcbL\xcd\xceO\xd0QR\xd3T\xd5\xd6WX\xd9\xda",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "parityOdd7bit",
+ input => "abcdefghijklmnopqrstuvwxyz\x000123456789\x00ABCDEFGHIJKLMNOPQRSTUVWXYZ",
+ output => "ab\xe3d\xe5\xe6gh\xe9\xeak\xecmn\xefp\xf1\xf2s\xf4uv\xf7\xf8yz\x80\xb012\xb34\xb5\xb678\xb9\x80\xc1\xc2C\xc4EF\xc7\xc8IJ\xcbL\xcd\xceO\xd0QR\xd3T\xd5\xd6WX\xd9\xda",
+ ret => 1,
+},
+
--- /dev/null
+### Empty
+{
+ type => "tfn",
+ name => "parityZero7bit",
+ input => "",
+ output => "",
+ ret => 0,
+},
+
+### Nothing
+{
+ type => "tfn",
+ name => "parityZero7bit",
+ input => "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ",
+ output => "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ",
+ ret => 0,
+},
+{
+ type => "tfn",
+ name => "parityZero7bit",
+ input => "abcdefghijklmnopqrstuvwxyz\x000123456789\x00ABCDEFGHIJKLMNOPQRSTUVWXYZ",
+ output => "abcdefghijklmnopqrstuvwxyz\x000123456789\x00ABCDEFGHIJKLMNOPQRSTUVWXYZ",
+ ret => 0,
+},
+
+### Basic
+{
+ type => "tfn",
+ name => "parityZero7bit",
+ input => "\x80\x00\x8f\xff",
+ output => "\x00\x00\x0f\x7f",
+ ret => 1,
+},
--- /dev/null
+### Empty
+{
+ type => "tfn",
+ name => "removeNulls",
+ input => "",
+ output => "",
+ ret => 0,
+},
+
+### Nothing
+{
+ type => "tfn",
+ name => "removeNulls",
+ input => "TestCase",
+ output => "TestCase",
+ ret => 0,
+},
+{
+ type => "tfn",
+ name => "removeNulls",
+ input => "Test\x01Case",
+ output => "Test\x01Case",
+ ret => 0,
+},
+
+
+### Basics
+{
+ type => "tfn",
+ name => "removeNulls",
+ input => "\0TestCase",
+ output => "TestCase",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "removeNulls",
+ input => "Test\0Case",
+ output => "TestCase",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "removeNulls",
+ input => "Test\0\0Case",
+ output => "TestCase",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "removeNulls",
+ input => "TestCase\0",
+ output => "TestCase",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "removeNulls",
+ input => "\0Test\0Case\0",
+ output => "TestCase",
+ ret => 1,
+},
--- /dev/null
+### Empty
+{
+ type => "tfn",
+ name => "removeWhitespace",
+ input => "",
+ output => "",
+ ret => 0,
+},
+
+### Nothing
+{
+ type => "tfn",
+ name => "removeWhitespace",
+ input => "TestCase",
+ output => "TestCase",
+ ret => 0,
+},
+{
+ type => "tfn",
+ name => "removeWhitespace",
+ input => "Test\0Case",
+ output => "Test\0Case",
+ ret => 0,
+},
+
+
+### Remove space/tab
+{
+ type => "tfn",
+ name => "removeWhitespace",
+ input => " Test \t Case ",
+ output => "TestCase",
+ ret => 1,
+},
+
+### Pretty much everything in one
+{
+ type => "tfn",
+ name => "removeWhitespace",
+ input => "This is a test case with a tab \t, vtab \x0b, newline \x0a, return \x0d, formfeed \f, and a NUL\0 in it with a CRLF at the end.\x0d\x0a",
+ output => "Thisisatestcasewithatab,vtab,newline,return,formfeed,andaNUL\0initwithaCRLFattheend.",
+ ret => 1,
+},
--- /dev/null
+### Empty
+{
+ type => "tfn",
+ name => "replaceComments",
+ input => "",
+ output => "",
+ ret => 0,
+},
+
+### Nothing
+{
+ type => "tfn",
+ name => "replaceComments",
+ input => "TestCase",
+ output => "TestCase",
+ ret => 0,
+},
+{
+ type => "tfn",
+ name => "replaceComments",
+ input => "Test\0Case",
+ output => "Test\0Case",
+ ret => 0,
+},
+
+
+### Basics
+{
+ type => "tfn",
+ name => "replaceComments",
+ input => "/* TestCase */",
+ output => " ",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "replaceComments",
+ input => "/*TestCase*/",
+ output => " ",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "replaceComments",
+ input => "/* TestCase*/",
+ output => " ",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "replaceComments",
+ input => "/*TestCase */",
+ output => " ",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "replaceComments",
+ input => "Before/* TestCase */After",
+ output => "Before After",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "replaceComments",
+ input => "Before /* TestCase */ After",
+ output => "Before After",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "replaceComments",
+ input => "/* Test\nCase */",
+ output => " ",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "replaceComments",
+ input => "/* Test\x0d\x0aCase */",
+ output => " ",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "replaceComments",
+ input => "/* Test\x0aCase */",
+ output => " ",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "replaceComments",
+ input => "/* Test\x0dCase */",
+ output => " ",
+ ret => 1,
+},
+
+### Broken Comments
+{
+ type => "tfn",
+ name => "replaceComments",
+ input => "Before/* Test\x0d\x0aCase ",
+ output => "Before ",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "replaceComments",
+ input => "Before /* Test\x0aCase ",
+ output => "Before ",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "replaceComments",
+ input => "Before/* Test\x0d\x0aCase ",
+ output => "Before ",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "replaceComments",
+ input => "Before /* Test\x0aCase ",
+ output => "Before ",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "replaceComments",
+ input => "Test\x0d\x0aCase */After",
+ output => "Test\x0d\x0aCase */After",
+ ret => 0,
+},
+{
+ type => "tfn",
+ name => "replaceComments",
+ input => "Test\x0aCase */ After",
+ output => "Test\x0aCase */ After",
+ ret => 0,
+},
+{
+ type => "tfn",
+ name => "replaceComments",
+ input => "Test\x0d\x0aCase */After",
+ output => "Test\x0d\x0aCase */After",
+ ret => 0,
+},
+{
+ type => "tfn",
+ name => "replaceComments",
+ input => "Test\x0aCase */ After",
+ output => "Test\x0aCase */ After",
+ ret => 0,
+},
--- /dev/null
+### Empty
+{
+ type => "tfn",
+ name => "replaceNulls",
+ input => "",
+ output => "",
+ ret => 0,
+},
+
+### Nothing
+{
+ type => "tfn",
+ name => "replaceNulls",
+ input => "TestCase",
+ output => "TestCase",
+ ret => 0,
+},
+
+
+### Basics
+{
+ type => "tfn",
+ name => "replaceNulls",
+ input => "\0TestCase",
+ output => " TestCase",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "replaceNulls",
+ input => "Test\0Case",
+ output => "Test Case",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "replaceNulls",
+ input => "Test\0\0Case",
+ output => "Test Case",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "replaceNulls",
+ input => "TestCase\0",
+ output => "TestCase ",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "replaceNulls",
+ input => "\0Test\0Case\0",
+ output => " Test Case ",
+ ret => 1,
+},
--- /dev/null
+### Empty
+{
+ type => "tfn",
+ name => "sha1",
+ input => "",
+ output => "\xda\x39\xa3\xee\x5e\x6b\x4b\x0d\x32\x55\xbf\xef\x95\x60\x18\x90\xaf\xd8\x07\x09",
+ ret => 1,
+},
+
+### Basic
+{
+ type => "tfn",
+ name => "sha1",
+ input => "TestCase",
+ output => "\xa7\x0c\xe3\x83\x89\xe3\x18\xbd\x2b\xe1\x8a\x01\x11\xc6\xdc\x76\xbd\x2c\xd9\xed",
+ ret => 1,
+},
+
+### Binary w/NUL
+{
+ type => "tfn",
+ name => "sha1",
+ input => "\x00\x01\x02\x03\x04\x05\x06\x07\x08",
+ output => "\x63\xbf\x60\xc7\x10\x5a\x07\xa2\xb1\x25\xbb\xf8\x9e\x61\xab\xda\xbc\x69\x78\xc2",
+ ret => 1,
+},
--- /dev/null
+### Empty
+{
+ type => "tfn",
+ name => "trim",
+ input => "",
+ output => "",
+ ret => 0,
+},
+
+### Nothing
+{
+ type => "tfn",
+ name => "trim",
+ input => "TestCase",
+ output => "TestCase",
+ ret => 0,
+},
+{
+ type => "tfn",
+ name => "trim",
+ input => "Test\0Case",
+ output => "Test\0Case",
+ ret => 0,
+},
+
+### Basics
+{
+ type => "tfn",
+ name => "trim",
+ input => " TestCase",
+ output => "TestCase",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "trim",
+ input => "TestCase ",
+ output => "TestCase",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "trim",
+ input => " TestCase ",
+ output => "TestCase",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "trim",
+ input => " Test Case ",
+ output => "Test Case",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "trim",
+ input => " Test \0 Case ",
+ output => "Test \0 Case",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "trim",
+ input => " Test \0 Case \r\n ",
+ output => "Test \0 Case",
+ ret => 1,
+},
--- /dev/null
+### Empty
+{
+ type => "tfn",
+ name => "trimLeft",
+ input => "",
+ output => "",
+ ret => 0,
+},
+
+### Nothing
+{
+ type => "tfn",
+ name => "trimLeft",
+ input => "TestCase",
+ output => "TestCase",
+ ret => 0,
+},
+{
+ type => "tfn",
+ name => "trimLeft",
+ input => "Test\0Case",
+ output => "Test\0Case",
+ ret => 0,
+},
+{
+ type => "tfn",
+ name => "trimLeft",
+ input => "TestCase ",
+ output => "TestCase ",
+ ret => 0,
+},
+
+
+### Basics
+{
+ type => "tfn",
+ name => "trimLeft",
+ input => " TestCase",
+ output => "TestCase",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "trimLeft",
+ input => " TestCase ",
+ output => "TestCase ",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "trimLeft",
+ input => " Test Case ",
+ output => "Test Case ",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "trimLeft",
+ input => " Test \0 Case ",
+ output => "Test \0 Case ",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "trimLeft",
+ input => " Test \0 Case \r\n ",
+ output => "Test \0 Case \r\n ",
+ ret => 1,
+},
--- /dev/null
+### Empty
+{
+ type => "tfn",
+ name => "trimRight",
+ input => "",
+ output => "",
+ ret => 0,
+},
+
+### Nothing
+{
+ type => "tfn",
+ name => "trimRight",
+ input => "TestCase",
+ output => "TestCase",
+ ret => 0,
+},
+{
+ type => "tfn",
+ name => "trimRight",
+ input => "Test\0Case",
+ output => "Test\0Case",
+ ret => 0,
+},
+{
+ type => "tfn",
+ name => "trimRight",
+ input => " TestCase",
+ output => " TestCase",
+ ret => 0,
+},
+
+### Basics
+{
+ type => "tfn",
+ name => "trimRight",
+ input => "TestCase ",
+ output => "TestCase",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "trimRight",
+ input => " TestCase ",
+ output => " TestCase",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "trimRight",
+ input => " Test Case ",
+ output => " Test Case",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "trimRight",
+ input => " Test \0 Case ",
+ output => " Test \0 Case",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "trimRight",
+ input => " Test \0 Case \r\n ",
+ output => " Test \0 Case",
+ ret => 1,
+},
--- /dev/null
+### Empty
+{
+ type => "tfn",
+ name => "urlDecode",
+ input => "",
+ output => "",
+ ret => 0,
+},
+
+### Nothing
+{
+ type => "tfn",
+ name => "urlDecode",
+ input => "TestCase",
+ output => "TestCase",
+ ret => 0,
+},
+{
+ type => "tfn",
+ name => "urlDecode",
+ input => "Test\0Case",
+ output => "Test\0Case",
+ ret => 0,
+},
+
+### Valid
+{
+ type => "tfn",
+ name => "urlDecode",
+ input => "+%00%01%02%03%04%05%06%07%08%09%0a%0b%0c%0d%0e%0f%10%11%12%13%14%15%16%17%18%19%1a%1b%1c%1d%1e%1f%20%21%22%23%24%25%26%27%28%29%2a%2b%2c%2d%2e%2f%30%31%32%33%34%35%36%37%38%39%3a%3b%3c%3d%3e%3f%40%41%42%43%44%45%46%47%48%49%4a%4b%4c%4d%4e%4f%50%51%52%53%54%55%56%57%58%59%5a%5b%5c%5d%5e%5f%60%61%62%63%64%65%66%67%68%69%6a%6b%6c%6d%6e%6f%70%71%72%73%74%75%76%77%78%79%7a%7b%7c%7d%7e%7f%80%81%82%83%84%85%86%87%88%89%8a%8b%8c%8d%8e%8f%90%91%92%93%94%95%96%97%98%99%9a%9b%9c%9d%9e%9f%a0%a1%a2%a3%a4%a5%a6%a7%a8%a9%aa%ab%ac%ad%ae%af%b0%b1%b2%b3%b4%b5%b6%b7%b8%b9%ba%bb%bc%bd%be%bf%c0%c1%c2%c3%c4%c5%c6%c7%c8%c9%ca%cb%cc%cd%ce%cf%d0%d1%d2%d3%d4%d5%d6%d7%d8%d9%da%db%dc%dd%de%df%e0%e1%e2%e3%e4%e5%e6%e7%e8%e9%ea%eb%ec%ed%ee%ef%f0%f1%f2%f3%f4%f5%f6%f7%f8%f9%fa%fb%fc%fd%fe%ff",
+ output => " \x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f \x21\x22\x23\x24\x25\x26\x27\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "urlDecode",
+ input => "Test+Case",
+ output => "Test Case",
+ ret => 1,
+},
+
+
+### Partial Invalid
+{
+ type => "tfn",
+ name => "urlDecode",
+ input => "%+",
+ output => "% ",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "urlDecode",
+ input => "%%20",
+ output => "% ",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "urlDecode",
+ input => "%0g%20",
+ output => "%0g ",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "urlDecode",
+ input => "%0%20",
+ output => "%0 ",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "urlDecode",
+ input => "%g0%20",
+ output => "%g0 ",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "urlDecode",
+ input => "%g%20",
+ output => "%g ",
+ ret => 1,
+},
+
+### Invalid
+{
+ type => "tfn",
+ name => "urlDecode",
+ input => "%0%1%2%3%4%5%6%7%8%9%0%a%b%c%d%e%f",
+ output => "%0%1%2%3%4%5%6%7%8%9%0%a%b%c%d%e%f",
+ ret => 0,
+},
+{
+ type => "tfn",
+ name => "urlDecode",
+ input => "%g0%g1%g2%g3%g4%g5%g6%g7%g8%g9%g0%ga%gb%gc%gd%ge%gf",
+ output => "%g0%g1%g2%g3%g4%g5%g6%g7%g8%g9%g0%ga%gb%gc%gd%ge%gf",
+ ret => 0,
+},
+{
+ type => "tfn",
+ name => "urlDecode",
+ input => "%0g%1g%2g%3g%4g%5g%6g%7g%8g%9g%0g%ag%bg%cg%dg%eg%fg",
+ output => "%0g%1g%2g%3g%4g%5g%6g%7g%8g%9g%0g%ag%bg%cg%dg%eg%fg",
+ ret => 0,
+},
+{
+ type => "tfn",
+ name => "urlDecode",
+ input => "%",
+ output => "%",
+ ret => 0,
+},
+{
+ type => "tfn",
+ name => "urlDecode",
+ input => "%0",
+ output => "%0",
+ ret => 0,
+},
+{
+ type => "tfn",
+ name => "urlDecode",
+ input => "%%",
+ output => "%%",
+ ret => 0,
+},
+{
+ type => "tfn",
+ name => "urlDecode",
+ input => "%0g",
+ output => "%0g",
+ ret => 0,
+},
+{
+ type => "tfn",
+ name => "urlDecode",
+ input => "%gg",
+ output => "%gg",
+ ret => 0,
+},
--- /dev/null
+### Empty
+{
+ type => "tfn",
+ name => "urlDecodeUni",
+ input => "",
+ output => "",
+ ret => 0,
+},
+
+### Nothing
+{
+ type => "tfn",
+ name => "urlDecodeUni",
+ input => "TestCase",
+ output => "TestCase",
+ ret => 0,
+},
+{
+ type => "tfn",
+ name => "urlDecodeUni",
+ input => "Test\0Case",
+ output => "Test\0Case",
+ ret => 0,
+},
+
+### Valid
+{
+ type => "tfn",
+ name => "urlDecodeUni",
+ input => "+%00%01%02%03%04%05%06%07%08%09%0a%0b%0c%0d%0e%0f%10%11%12%13%14%15%16%17%18%19%1a%1b%1c%1d%1e%1f%20%21%22%23%24%25%26%27%28%29%2a%2b%2c%2d%2e%2f%30%31%32%33%34%35%36%37%38%39%3a%3b%3c%3d%3e%3f%40%41%42%43%44%45%46%47%48%49%4a%4b%4c%4d%4e%4f%50%51%52%53%54%55%56%57%58%59%5a%5b%5c%5d%5e%5f%60%61%62%63%64%65%66%67%68%69%6a%6b%6c%6d%6e%6f%70%71%72%73%74%75%76%77%78%79%7a%7b%7c%7d%7e%7f%80%81%82%83%84%85%86%87%88%89%8a%8b%8c%8d%8e%8f%90%91%92%93%94%95%96%97%98%99%9a%9b%9c%9d%9e%9f%a0%a1%a2%a3%a4%a5%a6%a7%a8%a9%aa%ab%ac%ad%ae%af%b0%b1%b2%b3%b4%b5%b6%b7%b8%b9%ba%bb%bc%bd%be%bf%c0%c1%c2%c3%c4%c5%c6%c7%c8%c9%ca%cb%cc%cd%ce%cf%d0%d1%d2%d3%d4%d5%d6%d7%d8%d9%da%db%dc%dd%de%df%e0%e1%e2%e3%e4%e5%e6%e7%e8%e9%ea%eb%ec%ed%ee%ef%f0%f1%f2%f3%f4%f5%f6%f7%f8%f9%fa%fb%fc%fd%fe%ff",
+ output => " \x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f \x21\x22\x23\x24\x25\x26\x27\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "urlDecodeUni",
+ input => "Test+Case",
+ output => "Test Case",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "urlDecodeUni",
+ input => "+%u0000%u0001%u0002%u0003%u0004%u0005%u0006%u0007%u0008%u0009%u000a%u000b%u000c%u000d%u000e%u000f%u0010%u0011%u0012%u0013%u0014%u0015%u0016%u0017%u0018%u0019%u001a%u001b%u001c%u001d%u001e%u001f%u0020%u0021%u0022%u0023%u0024%u0025%u0026%u0027%u0028%u0029%u002a%u002b%u002c%u002d%u002e%u002f%u0030%u0031%u0032%u0033%u0034%u0035%u0036%u0037%u0038%u0039%u003a%u003b%u003c%u003d%u003e%u003f%u0040%u0041%u0042%u0043%u0044%u0045%u0046%u0047%u0048%u0049%u004a%u004b%u004c%u004d%u004e%u004f%u0050%u0051%u0052%u0053%u0054%u0055%u0056%u0057%u0058%u0059%u005a%u005b%u005c%u005d%u005e%u005f%u0060%u0061%u0062%u0063%u0064%u0065%u0066%u0067%u0068%u0069%u006a%u006b%u006c%u006d%u006e%u006f%u0070%u0071%u0072%u0073%u0074%u0075%u0076%u0077%u0078%u0079%u007a%u007b%u007c%u007d%u007e%u007f%u0080%u0081%u0082%u0083%u0084%u0085%u0086%u0087%u0088%u0089%u008a%u008b%u008c%u008d%u008e%u008f%u0090%u0091%u0092%u0093%u0094%u0095%u0096%u0097%u0098%u0099%u009a%u009b%u009c%u009d%u009e%u009f%u00a0%u00a1%u00a2%u00a3%u00a4%u00a5%u00a6%u00a7%u00a8%u00a9%u00aa%u00ab%u00ac%u00ad%u00ae%u00af%u00b0%u00b1%u00b2%u00b3%u00b4%u00b5%u00b6%u00b7%u00b8%u00b9%u00ba%u00bb%u00bc%u00bd%u00be%u00bf%u00c0%u00c1%u00c2%u00c3%u00c4%u00c5%u00c6%u00c7%u00c8%u00c9%u00ca%u00cb%u00cc%u00cd%u00ce%u00cf%u00d0%u00d1%u00d2%u00d3%u00d4%u00d5%u00d6%u00d7%u00d8%u00d9%u00da%u00db%u00dc%u00dd%u00de%u00df%u00e0%u00e1%u00e2%u00e3%u00e4%u00e5%u00e6%u00e7%u00e8%u00e9%u00ea%u00eb%u00ec%u00ed%u00ee%u00ef%u00f0%u00f1%u00f2%u00f3%u00f4%u00f5%u00f6%u00f7%u00f8%u00f9%u00fa%u00fb%u00fc%u00fd%u00fe%u00ff",
+ output => " \x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f \x21\x22\x23\x24\x25\x26\x27\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "urlDecodeUni",
+ input => "+%u1100%u1101%u1102%u1103%u1104%u1105%u1106%u1107%u1108%u1109%u110a%u110b%u110c%u110d%u110e%u110f%u1110%u1111%u1112%u1113%u1114%u1115%u1116%u1117%u1118%u1119%u111a%u111b%u111c%u111d%u111e%u111f%u1120%u1121%u1122%u1123%u1124%u1125%u1126%u1127%u1128%u1129%u112a%u112b%u112c%u112d%u112e%u112f%u1130%u1131%u1132%u1133%u1134%u1135%u1136%u1137%u1138%u1139%u113a%u113b%u113c%u113d%u113e%u113f%u1140%u1141%u1142%u1143%u1144%u1145%u1146%u1147%u1148%u1149%u114a%u114b%u114c%u114d%u114e%u114f%u1150%u1151%u1152%u1153%u1154%u1155%u1156%u1157%u1158%u1159%u115a%u115b%u115c%u115d%u115e%u115f%u1160%u1161%u1162%u1163%u1164%u1165%u1166%u1167%u1168%u1169%u116a%u116b%u116c%u116d%u116e%u116f%u1170%u1171%u1172%u1173%u1174%u1175%u1176%u1177%u1178%u1179%u117a%u117b%u117c%u117d%u117e%u117f%u1180%u1181%u1182%u1183%u1184%u1185%u1186%u1187%u1188%u1189%u118a%u118b%u118c%u118d%u118e%u118f%u1190%u1191%u1192%u1193%u1194%u1195%u1196%u1197%u1198%u1199%u119a%u119b%u119c%u119d%u119e%u119f%u11a0%u11a1%u11a2%u11a3%u11a4%u11a5%u11a6%u11a7%u11a8%u11a9%u11aa%u11ab%u11ac%u11ad%u11ae%u11af%u11b0%u11b1%u11b2%u11b3%u11b4%u11b5%u11b6%u11b7%u11b8%u11b9%u11ba%u11bb%u11bc%u11bd%u11be%u11bf%u11c0%u11c1%u11c2%u11c3%u11c4%u11c5%u11c6%u11c7%u11c8%u11c9%u11ca%u11cb%u11cc%u11cd%u11ce%u11cf%u11d0%u11d1%u11d2%u11d3%u11d4%u11d5%u11d6%u11d7%u11d8%u11d9%u11da%u11db%u11dc%u11dd%u11de%u11df%u11e0%u11e1%u11e2%u11e3%u11e4%u11e5%u11e6%u11e7%u11e8%u11e9%u11ea%u11eb%u11ec%u11ed%u11ee%u11ef%u11f0%u11f1%u11f2%u11f3%u11f4%u11f5%u11f6%u11f7%u11f8%u11f9%u11fa%u11fb%u11fc%u11fd%u11fe%u11ff",
+ output => " \x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f \x21\x22\x23\x24\x25\x26\x27\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
+ ret => 1,
+},
+# Full Width ASCII
+{
+ type => "tfn",
+ name => "urlDecodeUni",
+ input => "%uff01%uff02%uff03%uff04%uff05%uff06%uff07%uff08%uff09%uff0a%uff0b%uff0c%uff0d%uff0e%uff0f%uff10%uff11%uff12%uff13%uff14%uff15%uff16%uff17%uff18%uff19%uff1a%uff1b%uff1c%uff1d%uff1e%uff1f%uff20%uff21%uff22%uff23%uff24%uff25%uff26%uff27%uff28%uff29%uff2a%uff2b%uff2c%uff2d%uff2e%uff2f%uff30%uff31%uff32%uff33%uff34%uff35%uff36%uff37%uff38%uff39%uff3a%uff3b%uff3c%uff3d%uff3e%uff3f%uff40%uff41%uff42%uff43%uff44%uff45%uff46%uff47%uff48%uff49%uff4a%uff4b%uff4c%uff4d%uff4e%uff4f%uff50%uff51%uff52%uff53%uff54%uff55%uff56%uff57%uff58%uff59%uff5a%uff5b%uff5c%uff5d%uff5e",
+ output => "\x21\x22\x23\x24\x25\x26\x27\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x7b\x7c\x7d\x7e",
+ ret => 1,
+},
+# Invalid Full Width ASCII
+{
+ type => "tfn",
+ name => "urlDecodeUni",
+ input => "%uff00%uff7f%uff80%uff81%uff82%uff83%uff84%uff85%uff86%uff87%uff88%uff89%uff8a%uff8b%uff8c%uff8d%uff8e%uff8f%uff90%uff91%uff92%uff93%uff94%uff95%uff96%uff97%uff98%uff99%uff9a%uff9b%uff9c%uff9d%uff9e%uff9f%uffa0%uffa1%uffa2%uffa3%uffa4%uffa5%uffa6%uffa7%uffa8%uffa9%uffaa%uffab%uffac%uffad%uffae%uffaf%uffb0%uffb1%uffb2%uffb3%uffb4%uffb5%uffb6%uffb7%uffb8%uffb9%uffba%uffbb%uffbc%uffbd%uffbe%uffbf%uffc0%uffc1%uffc2%uffc3%uffc4%uffc5%uffc6%uffc7%uffc8%uffc9%uffca%uffcb%uffcc%uffcd%uffce%uffcf%uffd0%uffd1%uffd2%uffd3%uffd4%uffd5%uffd6%uffd7%uffd8%uffd9%uffda%uffdb%uffdc%uffdd%uffde%uffdf%uffe0%uffe1%uffe2%uffe3%uffe4%uffe5%uffe6%uffe7%uffe8%uffe9%uffea%uffeb%uffec%uffed%uffee%uffef%ufff0%ufff1%ufff2%ufff3%ufff4%ufff5%ufff6%ufff7%ufff8%ufff9%ufffa%ufffb%ufffc%ufffd%ufffe%uffff",
+ output => "\x00\x7f\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
+ ret => 1,
+},
+
+### Partial Invalid
+{
+ type => "tfn",
+ name => "urlDecodeUni",
+ input => "%+",
+ output => "% ",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "urlDecodeUni",
+ input => "%%20",
+ output => "% ",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "urlDecodeUni",
+ input => "%0g%20",
+ output => "%0g ",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "urlDecodeUni",
+ input => "%0%20",
+ output => "%0 ",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "urlDecodeUni",
+ input => "%g0%20",
+ output => "%g0 ",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "urlDecodeUni",
+ input => "%g%20",
+ output => "%g ",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "urlDecodeUni",
+ input => "%%u0020",
+ output => "% ",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "urlDecodeUni",
+ input => "%0g%u0020",
+ output => "%0g ",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "urlDecodeUni",
+ input => "%0%u0020",
+ output => "%0 ",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "urlDecodeUni",
+ input => "%g0%u0020",
+ output => "%g0 ",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "urlDecodeUni",
+ input => "%u%u0020",
+ output => "%u ",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "urlDecodeUni",
+ input => "%u0%u0020",
+ output => "%u0 ",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "urlDecodeUni",
+ input => "%u00%u0020",
+ output => "%u00 ",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "urlDecodeUni",
+ input => "%u000%u0020",
+ output => "%u000 ",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "urlDecodeUni",
+ input => "%u000g%u0020",
+ output => "%u000g ",
+ ret => 1,
+},
+
+### Invalid
+{
+ type => "tfn",
+ name => "urlDecodeUni",
+ input => "%0%1%2%3%4%5%6%7%8%9%0%a%b%c%d%e%f",
+ output => "%0%1%2%3%4%5%6%7%8%9%0%a%b%c%d%e%f",
+ ret => 0,
+},
+{
+ type => "tfn",
+ name => "urlDecodeUni",
+ input => "%g0%g1%g2%g3%g4%g5%g6%g7%g8%g9%g0%ga%gb%gc%gd%ge%gf",
+ output => "%g0%g1%g2%g3%g4%g5%g6%g7%g8%g9%g0%ga%gb%gc%gd%ge%gf",
+ ret => 0,
+},
+{
+ type => "tfn",
+ name => "urlDecodeUni",
+ input => "%0g%1g%2g%3g%4g%5g%6g%7g%8g%9g%0g%ag%bg%cg%dg%eg%fg",
+ output => "%0g%1g%2g%3g%4g%5g%6g%7g%8g%9g%0g%ag%bg%cg%dg%eg%fg",
+ ret => 0,
+},
+{
+ type => "tfn",
+ name => "urlDecodeUni",
+ input => "%",
+ output => "%",
+ ret => 0,
+},
+{
+ type => "tfn",
+ name => "urlDecodeUni",
+ input => "%0",
+ output => "%0",
+ ret => 0,
+},
+{
+ type => "tfn",
+ name => "urlDecodeUni",
+ input => "%%",
+ output => "%%",
+ ret => 0,
+},
+{
+ type => "tfn",
+ name => "urlDecodeUni",
+ input => "%0g",
+ output => "%0g",
+ ret => 0,
+},
+{
+ type => "tfn",
+ name => "urlDecodeUni",
+ input => "%gg",
+ output => "%gg",
+ ret => 0,
+},
--- /dev/null
+### Empty
+{
+ type => "tfn",
+ name => "urlEncode",
+ input => "",
+ output => "",
+ ret => 0,
+},
+
+### Nothing
+{
+ type => "tfn",
+ name => "urlEncode",
+ input => "TestCase",
+ output => "TestCase",
+ ret => 0,
+},
+
+### Valid
+{
+ type => "tfn",
+ name => "urlEncode",
+ input => " \x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20\x21\x22\x23\x24\x25\x26\x27\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
+ output => "+%00%01%02%03%04%05%06%07%08%09%0a%0b%0c%0d%0e%0f%10%11%12%13%14%15%16%17%18%19%1a%1b%1c%1d%1e%1f+%21%22%23%24%25%26%27%28%29*%2b%2c%2d%2e%2f0123456789%3a%3b%3c%3d%3e%3f%40ABCDEFGHIJKLMNOPQRSTUVWXYZ%5b%5c%5d%5e%5f%60abcdefghijklmnopqrstuvwxyz%7b%7c%7d%7e%7f%80%81%82%83%84%85%86%87%88%89%8a%8b%8c%8d%8e%8f%90%91%92%93%94%95%96%97%98%99%9a%9b%9c%9d%9e%9f%a0%a1%a2%a3%a4%a5%a6%a7%a8%a9%aa%ab%ac%ad%ae%af%b0%b1%b2%b3%b4%b5%b6%b7%b8%b9%ba%bb%bc%bd%be%bf%c0%c1%c2%c3%c4%c5%c6%c7%c8%c9%ca%cb%cc%cd%ce%cf%d0%d1%d2%d3%d4%d5%d6%d7%d8%d9%da%db%dc%dd%de%df%e0%e1%e2%e3%e4%e5%e6%e7%e8%e9%ea%eb%ec%ed%ee%ef%f0%f1%f2%f3%f4%f5%f6%f7%f8%f9%fa%fb%fc%fd%fe%ff",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "urlEncode",
+ input => "Test Case",
+ output => "Test+Case",
+ ret => 1,
+},
+
+
+### Partial Invalid
+{
+ type => "tfn",
+ name => "urlEncode",
+ input => "% ",
+ output => "%25+",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "urlEncode",
+ input => "%0g ",
+ output => "%250g+",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "urlEncode",
+ input => "%0 ",
+ output => "%250+",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "urlEncode",
+ input => "%g0 ",
+ output => "%25g0+",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "urlEncode",
+ input => "%g ",
+ output => "%25g+",
+ ret => 1,
+},
+
+### Invalid
+{
+ type => "tfn",
+ name => "urlEncode",
+ input => "%0%1%2%3%4%5%6%7%8%9%0%a%b%c%d%e%f",
+ output => "%250%251%252%253%254%255%256%257%258%259%250%25a%25b%25c%25d%25e%25f",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "urlEncode",
+ input => "%g0%g1%g2%g3%g4%g5%g6%g7%g8%g9%g0%ga%gb%gc%gd%ge%gf",
+ output => "%25g0%25g1%25g2%25g3%25g4%25g5%25g6%25g7%25g8%25g9%25g0%25ga%25gb%25gc%25gd%25ge%25gf",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "urlEncode",
+ input => "%0g%1g%2g%3g%4g%5g%6g%7g%8g%9g%0g%ag%bg%cg%dg%eg%fg",
+ output => "%250g%251g%252g%253g%254g%255g%256g%257g%258g%259g%250g%25ag%25bg%25cg%25dg%25eg%25fg",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "urlEncode",
+ input => "%",
+ output => "%25",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "urlEncode",
+ input => "%0",
+ output => "%250",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "urlEncode",
+ input => "%%",
+ output => "%25%25",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "urlEncode",
+ input => "%0g",
+ output => "%250g",
+ ret => 1,
+},
+{
+ type => "tfn",
+ name => "urlEncode",
+ input => "%gg",
+ output => "%25gg",
+ ret => 1,
+},
--- /dev/null
+/*
+ * ModSecurity for Apache 2.x, http://www.modsecurity.org/
+ * Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
+ *
+ * This product is released under the terms of the General Public Licence,
+ * version 2 (GPLv2). Please refer to the file LICENSE (included with this
+ * distribution) which contains the complete text of the licence.
+ *
+ * There are special exceptions to the terms and conditions of the GPL
+ * as it is applied to this software. View the full text of the exception in
+ * file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
+ * distribution.
+ *
+ * If any of the files related to licensing are missing or if you have any
+ * other questions related to licensing please contact Breach Security, Inc.
+ * directly using the email address support@breach.com.
+ *
+ */
+#ifndef UTF8TABLES_H_
+#define UTF8TABLES_H_
+
+/**
+ * This include file is used by acmp.c only; it's not included anywhere else.
+ */
+
+typedef long acmp_utf8_char_t;
+
+static const char utf8_seq_lengths[256] = {
+ 1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,
+ 1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,
+ 1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,
+ 1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,
+ 1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,
+ 1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,
+ 1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,
+ 1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,
+ 1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,
+ 1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,
+ 1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,
+ 1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,
+ 2,2,2,2,2,2,2,2, 2,2,2,2,2,2,2,2,
+ 2,2,2,2,2,2,2,2, 2,2,2,2,2,2,2,2,
+ 3,3,3,3,3,3,3,3, 3,3,3,3,3,3,3,3,
+ 4,4,4,4,4,4,4,4, 5,5,5,5,6,6,6,6,
+};
+
+static const acmp_utf8_char_t utf8_offsets[6] = {
+ 0x00000000UL, 0x00003080UL, 0x000E2080UL,
+ 0x03C82080UL, 0xFA082080UL, 0x82082080UL
+};
+
+/**
+ * How many element pairs are there in utf8_lcase_map
+ */
+#define UTF8_LCASEMAP_LEN 759
+
+/**
+ * Table mapping is from PHP's mbstring extension, maps uppercase
+ */
+static const acmp_utf8_char_t utf8_lcase_map[UTF8_LCASEMAP_LEN * 2] = {
+ 0x00000061, 0x00000041,
+ 0x00000062, 0x00000042,
+ 0x00000063, 0x00000043,
+ 0x00000064, 0x00000044,
+ 0x00000065, 0x00000045,
+ 0x00000066, 0x00000046,
+ 0x00000067, 0x00000047,
+ 0x00000068, 0x00000048,
+ 0x00000069, 0x00000049,
+ 0x0000006a, 0x0000004a,
+ 0x0000006b, 0x0000004b,
+ 0x0000006c, 0x0000004c,
+ 0x0000006d, 0x0000004d,
+ 0x0000006e, 0x0000004e,
+ 0x0000006f, 0x0000004f,
+ 0x00000070, 0x00000050,
+ 0x00000071, 0x00000051,
+ 0x00000072, 0x00000052,
+ 0x00000073, 0x00000053,
+ 0x00000074, 0x00000054,
+ 0x00000075, 0x00000055,
+ 0x00000076, 0x00000056,
+ 0x00000077, 0x00000057,
+ 0x00000078, 0x00000058,
+ 0x00000079, 0x00000059,
+ 0x0000007a, 0x0000005a,
+ 0x000000b5, 0x0000039c,
+ 0x000000e0, 0x000000c0,
+ 0x000000e1, 0x000000c1,
+ 0x000000e2, 0x000000c2,
+ 0x000000e3, 0x000000c3,
+ 0x000000e4, 0x000000c4,
+ 0x000000e5, 0x000000c5,
+ 0x000000e6, 0x000000c6,
+ 0x000000e7, 0x000000c7,
+ 0x000000e8, 0x000000c8,
+ 0x000000e9, 0x000000c9,
+ 0x000000ea, 0x000000ca,
+ 0x000000eb, 0x000000cb,
+ 0x000000ec, 0x000000cc,
+ 0x000000ed, 0x000000cd,
+ 0x000000ee, 0x000000ce,
+ 0x000000ef, 0x000000cf,
+ 0x000000f0, 0x000000d0,
+ 0x000000f1, 0x000000d1,
+ 0x000000f2, 0x000000d2,
+ 0x000000f3, 0x000000d3,
+ 0x000000f4, 0x000000d4,
+ 0x000000f5, 0x000000d5,
+ 0x000000f6, 0x000000d6,
+ 0x000000f8, 0x000000d8,
+ 0x000000f9, 0x000000d9,
+ 0x000000fa, 0x000000da,
+ 0x000000fb, 0x000000db,
+ 0x000000fc, 0x000000dc,
+ 0x000000fd, 0x000000dd,
+ 0x000000fe, 0x000000de,
+ 0x000000ff, 0x00000178,
+ 0x00000101, 0x00000100,
+ 0x00000103, 0x00000102,
+ 0x00000105, 0x00000104,
+ 0x00000107, 0x00000106,
+ 0x00000109, 0x00000108,
+ 0x0000010b, 0x0000010a,
+ 0x0000010d, 0x0000010c,
+ 0x0000010f, 0x0000010e,
+ 0x00000111, 0x00000110,
+ 0x00000113, 0x00000112,
+ 0x00000115, 0x00000114,
+ 0x00000117, 0x00000116,
+ 0x00000119, 0x00000118,
+ 0x0000011b, 0x0000011a,
+ 0x0000011d, 0x0000011c,
+ 0x0000011f, 0x0000011e,
+ 0x00000121, 0x00000120,
+ 0x00000123, 0x00000122,
+ 0x00000125, 0x00000124,
+ 0x00000127, 0x00000126,
+ 0x00000129, 0x00000128,
+ 0x0000012b, 0x0000012a,
+ 0x0000012d, 0x0000012c,
+ 0x0000012f, 0x0000012e,
+ 0x00000131, 0x00000049,
+ 0x00000133, 0x00000132,
+ 0x00000135, 0x00000134,
+ 0x00000137, 0x00000136,
+ 0x0000013a, 0x00000139,
+ 0x0000013c, 0x0000013b,
+ 0x0000013e, 0x0000013d,
+ 0x00000140, 0x0000013f,
+ 0x00000142, 0x00000141,
+ 0x00000144, 0x00000143,
+ 0x00000146, 0x00000145,
+ 0x00000148, 0x00000147,
+ 0x0000014b, 0x0000014a,
+ 0x0000014d, 0x0000014c,
+ 0x0000014f, 0x0000014e,
+ 0x00000151, 0x00000150,
+ 0x00000153, 0x00000152,
+ 0x00000155, 0x00000154,
+ 0x00000157, 0x00000156,
+ 0x00000159, 0x00000158,
+ 0x0000015b, 0x0000015a,
+ 0x0000015d, 0x0000015c,
+ 0x0000015f, 0x0000015e,
+ 0x00000161, 0x00000160,
+ 0x00000163, 0x00000162,
+ 0x00000165, 0x00000164,
+ 0x00000167, 0x00000166,
+ 0x00000169, 0x00000168,
+ 0x0000016b, 0x0000016a,
+ 0x0000016d, 0x0000016c,
+ 0x0000016f, 0x0000016e,
+ 0x00000171, 0x00000170,
+ 0x00000173, 0x00000172,
+ 0x00000175, 0x00000174,
+ 0x00000177, 0x00000176,
+ 0x0000017a, 0x00000179,
+ 0x0000017c, 0x0000017b,
+ 0x0000017e, 0x0000017d,
+ 0x0000017f, 0x00000053,
+ 0x00000183, 0x00000182,
+ 0x00000185, 0x00000184,
+ 0x00000188, 0x00000187,
+ 0x0000018c, 0x0000018b,
+ 0x00000192, 0x00000191,
+ 0x00000195, 0x000001f6,
+ 0x00000199, 0x00000198,
+ 0x0000019e, 0x00000220,
+ 0x000001a1, 0x000001a0,
+ 0x000001a3, 0x000001a2,
+ 0x000001a5, 0x000001a4,
+ 0x000001a8, 0x000001a7,
+ 0x000001ad, 0x000001ac,
+ 0x000001b0, 0x000001af,
+ 0x000001b4, 0x000001b3,
+ 0x000001b6, 0x000001b5,
+ 0x000001b9, 0x000001b8,
+ 0x000001bd, 0x000001bc,
+ 0x000001bf, 0x000001f7,
+ 0x000001c6, 0x000001c4,
+ 0x000001c9, 0x000001c7,
+ 0x000001cc, 0x000001ca,
+ 0x000001ce, 0x000001cd,
+ 0x000001d0, 0x000001cf,
+ 0x000001d2, 0x000001d1,
+ 0x000001d4, 0x000001d3,
+ 0x000001d6, 0x000001d5,
+ 0x000001d8, 0x000001d7,
+ 0x000001da, 0x000001d9,
+ 0x000001dc, 0x000001db,
+ 0x000001dd, 0x0000018e,
+ 0x000001df, 0x000001de,
+ 0x000001e1, 0x000001e0,
+ 0x000001e3, 0x000001e2,
+ 0x000001e5, 0x000001e4,
+ 0x000001e7, 0x000001e6,
+ 0x000001e9, 0x000001e8,
+ 0x000001eb, 0x000001ea,
+ 0x000001ed, 0x000001ec,
+ 0x000001ef, 0x000001ee,
+ 0x000001f3, 0x000001f1,
+ 0x000001f5, 0x000001f4,
+ 0x000001f9, 0x000001f8,
+ 0x000001fb, 0x000001fa,
+ 0x000001fd, 0x000001fc,
+ 0x000001ff, 0x000001fe,
+ 0x00000201, 0x00000200,
+ 0x00000203, 0x00000202,
+ 0x00000205, 0x00000204,
+ 0x00000207, 0x00000206,
+ 0x00000209, 0x00000208,
+ 0x0000020b, 0x0000020a,
+ 0x0000020d, 0x0000020c,
+ 0x0000020f, 0x0000020e,
+ 0x00000211, 0x00000210,
+ 0x00000213, 0x00000212,
+ 0x00000215, 0x00000214,
+ 0x00000217, 0x00000216,
+ 0x00000219, 0x00000218,
+ 0x0000021b, 0x0000021a,
+ 0x0000021d, 0x0000021c,
+ 0x0000021f, 0x0000021e,
+ 0x00000223, 0x00000222,
+ 0x00000225, 0x00000224,
+ 0x00000227, 0x00000226,
+ 0x00000229, 0x00000228,
+ 0x0000022b, 0x0000022a,
+ 0x0000022d, 0x0000022c,
+ 0x0000022f, 0x0000022e,
+ 0x00000231, 0x00000230,
+ 0x00000233, 0x00000232,
+ 0x00000253, 0x00000181,
+ 0x00000254, 0x00000186,
+ 0x00000256, 0x00000189,
+ 0x00000257, 0x0000018a,
+ 0x00000259, 0x0000018f,
+ 0x0000025b, 0x00000190,
+ 0x00000260, 0x00000193,
+ 0x00000263, 0x00000194,
+ 0x00000268, 0x00000197,
+ 0x00000269, 0x00000196,
+ 0x0000026f, 0x0000019c,
+ 0x00000272, 0x0000019d,
+ 0x00000275, 0x0000019f,
+ 0x00000280, 0x000001a6,
+ 0x00000283, 0x000001a9,
+ 0x00000288, 0x000001ae,
+ 0x0000028a, 0x000001b1,
+ 0x0000028b, 0x000001b2,
+ 0x00000292, 0x000001b7,
+ 0x00000345, 0x00000399,
+ 0x000003ac, 0x00000386,
+ 0x000003ad, 0x00000388,
+ 0x000003ae, 0x00000389,
+ 0x000003af, 0x0000038a,
+ 0x000003b1, 0x00000391,
+ 0x000003b2, 0x00000392,
+ 0x000003b3, 0x00000393,
+ 0x000003b4, 0x00000394,
+ 0x000003b5, 0x00000395,
+ 0x000003b6, 0x00000396,
+ 0x000003b7, 0x00000397,
+ 0x000003b8, 0x00000398,
+ 0x000003b9, 0x00000399,
+ 0x000003ba, 0x0000039a,
+ 0x000003bb, 0x0000039b,
+ 0x000003bc, 0x0000039c,
+ 0x000003bd, 0x0000039d,
+ 0x000003be, 0x0000039e,
+ 0x000003bf, 0x0000039f,
+ 0x000003c0, 0x000003a0,
+ 0x000003c1, 0x000003a1,
+ 0x000003c2, 0x000003a3,
+ 0x000003c3, 0x000003a3,
+ 0x000003c4, 0x000003a4,
+ 0x000003c5, 0x000003a5,
+ 0x000003c6, 0x000003a6,
+ 0x000003c7, 0x000003a7,
+ 0x000003c8, 0x000003a8,
+ 0x000003c9, 0x000003a9,
+ 0x000003ca, 0x000003aa,
+ 0x000003cb, 0x000003ab,
+ 0x000003cc, 0x0000038c,
+ 0x000003cd, 0x0000038e,
+ 0x000003ce, 0x0000038f,
+ 0x000003d0, 0x00000392,
+ 0x000003d1, 0x00000398,
+ 0x000003d5, 0x000003a6,
+ 0x000003d6, 0x000003a0,
+ 0x000003d9, 0x000003d8,
+ 0x000003db, 0x000003da,
+ 0x000003dd, 0x000003dc,
+ 0x000003df, 0x000003de,
+ 0x000003e1, 0x000003e0,
+ 0x000003e3, 0x000003e2,
+ 0x000003e5, 0x000003e4,
+ 0x000003e7, 0x000003e6,
+ 0x000003e9, 0x000003e8,
+ 0x000003eb, 0x000003ea,
+ 0x000003ed, 0x000003ec,
+ 0x000003ef, 0x000003ee,
+ 0x000003f0, 0x0000039a,
+ 0x000003f1, 0x000003a1,
+ 0x000003f2, 0x000003a3,
+ 0x000003f5, 0x00000395,
+ 0x00000430, 0x00000410,
+ 0x00000431, 0x00000411,
+ 0x00000432, 0x00000412,
+ 0x00000433, 0x00000413,
+ 0x00000434, 0x00000414,
+ 0x00000435, 0x00000415,
+ 0x00000436, 0x00000416,
+ 0x00000437, 0x00000417,
+ 0x00000438, 0x00000418,
+ 0x00000439, 0x00000419,
+ 0x0000043a, 0x0000041a,
+ 0x0000043b, 0x0000041b,
+ 0x0000043c, 0x0000041c,
+ 0x0000043d, 0x0000041d,
+ 0x0000043e, 0x0000041e,
+ 0x0000043f, 0x0000041f,
+ 0x00000440, 0x00000420,
+ 0x00000441, 0x00000421,
+ 0x00000442, 0x00000422,
+ 0x00000443, 0x00000423,
+ 0x00000444, 0x00000424,
+ 0x00000445, 0x00000425,
+ 0x00000446, 0x00000426,
+ 0x00000447, 0x00000427,
+ 0x00000448, 0x00000428,
+ 0x00000449, 0x00000429,
+ 0x0000044a, 0x0000042a,
+ 0x0000044b, 0x0000042b,
+ 0x0000044c, 0x0000042c,
+ 0x0000044d, 0x0000042d,
+ 0x0000044e, 0x0000042e,
+ 0x0000044f, 0x0000042f,
+ 0x00000450, 0x00000400,
+ 0x00000451, 0x00000401,
+ 0x00000452, 0x00000402,
+ 0x00000453, 0x00000403,
+ 0x00000454, 0x00000404,
+ 0x00000455, 0x00000405,
+ 0x00000456, 0x00000406,
+ 0x00000457, 0x00000407,
+ 0x00000458, 0x00000408,
+ 0x00000459, 0x00000409,
+ 0x0000045a, 0x0000040a,
+ 0x0000045b, 0x0000040b,
+ 0x0000045c, 0x0000040c,
+ 0x0000045d, 0x0000040d,
+ 0x0000045e, 0x0000040e,
+ 0x0000045f, 0x0000040f,
+ 0x00000461, 0x00000460,
+ 0x00000463, 0x00000462,
+ 0x00000465, 0x00000464,
+ 0x00000467, 0x00000466,
+ 0x00000469, 0x00000468,
+ 0x0000046b, 0x0000046a,
+ 0x0000046d, 0x0000046c,
+ 0x0000046f, 0x0000046e,
+ 0x00000471, 0x00000470,
+ 0x00000473, 0x00000472,
+ 0x00000475, 0x00000474,
+ 0x00000477, 0x00000476,
+ 0x00000479, 0x00000478,
+ 0x0000047b, 0x0000047a,
+ 0x0000047d, 0x0000047c,
+ 0x0000047f, 0x0000047e,
+ 0x00000481, 0x00000480,
+ 0x0000048b, 0x0000048a,
+ 0x0000048d, 0x0000048c,
+ 0x0000048f, 0x0000048e,
+ 0x00000491, 0x00000490,
+ 0x00000493, 0x00000492,
+ 0x00000495, 0x00000494,
+ 0x00000497, 0x00000496,
+ 0x00000499, 0x00000498,
+ 0x0000049b, 0x0000049a,
+ 0x0000049d, 0x0000049c,
+ 0x0000049f, 0x0000049e,
+ 0x000004a1, 0x000004a0,
+ 0x000004a3, 0x000004a2,
+ 0x000004a5, 0x000004a4,
+ 0x000004a7, 0x000004a6,
+ 0x000004a9, 0x000004a8,
+ 0x000004ab, 0x000004aa,
+ 0x000004ad, 0x000004ac,
+ 0x000004af, 0x000004ae,
+ 0x000004b1, 0x000004b0,
+ 0x000004b3, 0x000004b2,
+ 0x000004b5, 0x000004b4,
+ 0x000004b7, 0x000004b6,
+ 0x000004b9, 0x000004b8,
+ 0x000004bb, 0x000004ba,
+ 0x000004bd, 0x000004bc,
+ 0x000004bf, 0x000004be,
+ 0x000004c2, 0x000004c1,
+ 0x000004c4, 0x000004c3,
+ 0x000004c6, 0x000004c5,
+ 0x000004c8, 0x000004c7,
+ 0x000004ca, 0x000004c9,
+ 0x000004cc, 0x000004cb,
+ 0x000004ce, 0x000004cd,
+ 0x000004d1, 0x000004d0,
+ 0x000004d3, 0x000004d2,
+ 0x000004d5, 0x000004d4,
+ 0x000004d7, 0x000004d6,
+ 0x000004d9, 0x000004d8,
+ 0x000004db, 0x000004da,
+ 0x000004dd, 0x000004dc,
+ 0x000004df, 0x000004de,
+ 0x000004e1, 0x000004e0,
+ 0x000004e3, 0x000004e2,
+ 0x000004e5, 0x000004e4,
+ 0x000004e7, 0x000004e6,
+ 0x000004e9, 0x000004e8,
+ 0x000004eb, 0x000004ea,
+ 0x000004ed, 0x000004ec,
+ 0x000004ef, 0x000004ee,
+ 0x000004f1, 0x000004f0,
+ 0x000004f3, 0x000004f2,
+ 0x000004f5, 0x000004f4,
+ 0x000004f9, 0x000004f8,
+ 0x00000501, 0x00000500,
+ 0x00000503, 0x00000502,
+ 0x00000505, 0x00000504,
+ 0x00000507, 0x00000506,
+ 0x00000509, 0x00000508,
+ 0x0000050b, 0x0000050a,
+ 0x0000050d, 0x0000050c,
+ 0x0000050f, 0x0000050e,
+ 0x00000561, 0x00000531,
+ 0x00000562, 0x00000532,
+ 0x00000563, 0x00000533,
+ 0x00000564, 0x00000534,
+ 0x00000565, 0x00000535,
+ 0x00000566, 0x00000536,
+ 0x00000567, 0x00000537,
+ 0x00000568, 0x00000538,
+ 0x00000569, 0x00000539,
+ 0x0000056a, 0x0000053a,
+ 0x0000056b, 0x0000053b,
+ 0x0000056c, 0x0000053c,
+ 0x0000056d, 0x0000053d,
+ 0x0000056e, 0x0000053e,
+ 0x0000056f, 0x0000053f,
+ 0x00000570, 0x00000540,
+ 0x00000571, 0x00000541,
+ 0x00000572, 0x00000542,
+ 0x00000573, 0x00000543,
+ 0x00000574, 0x00000544,
+ 0x00000575, 0x00000545,
+ 0x00000576, 0x00000546,
+ 0x00000577, 0x00000547,
+ 0x00000578, 0x00000548,
+ 0x00000579, 0x00000549,
+ 0x0000057a, 0x0000054a,
+ 0x0000057b, 0x0000054b,
+ 0x0000057c, 0x0000054c,
+ 0x0000057d, 0x0000054d,
+ 0x0000057e, 0x0000054e,
+ 0x0000057f, 0x0000054f,
+ 0x00000580, 0x00000550,
+ 0x00000581, 0x00000551,
+ 0x00000582, 0x00000552,
+ 0x00000583, 0x00000553,
+ 0x00000584, 0x00000554,
+ 0x00000585, 0x00000555,
+ 0x00000586, 0x00000556,
+ 0x00001e01, 0x00001e00,
+ 0x00001e03, 0x00001e02,
+ 0x00001e05, 0x00001e04,
+ 0x00001e07, 0x00001e06,
+ 0x00001e09, 0x00001e08,
+ 0x00001e0b, 0x00001e0a,
+ 0x00001e0d, 0x00001e0c,
+ 0x00001e0f, 0x00001e0e,
+ 0x00001e11, 0x00001e10,
+ 0x00001e13, 0x00001e12,
+ 0x00001e15, 0x00001e14,
+ 0x00001e17, 0x00001e16,
+ 0x00001e19, 0x00001e18,
+ 0x00001e1b, 0x00001e1a,
+ 0x00001e1d, 0x00001e1c,
+ 0x00001e1f, 0x00001e1e,
+ 0x00001e21, 0x00001e20,
+ 0x00001e23, 0x00001e22,
+ 0x00001e25, 0x00001e24,
+ 0x00001e27, 0x00001e26,
+ 0x00001e29, 0x00001e28,
+ 0x00001e2b, 0x00001e2a,
+ 0x00001e2d, 0x00001e2c,
+ 0x00001e2f, 0x00001e2e,
+ 0x00001e31, 0x00001e30,
+ 0x00001e33, 0x00001e32,
+ 0x00001e35, 0x00001e34,
+ 0x00001e37, 0x00001e36,
+ 0x00001e39, 0x00001e38,
+ 0x00001e3b, 0x00001e3a,
+ 0x00001e3d, 0x00001e3c,
+ 0x00001e3f, 0x00001e3e,
+ 0x00001e41, 0x00001e40,
+ 0x00001e43, 0x00001e42,
+ 0x00001e45, 0x00001e44,
+ 0x00001e47, 0x00001e46,
+ 0x00001e49, 0x00001e48,
+ 0x00001e4b, 0x00001e4a,
+ 0x00001e4d, 0x00001e4c,
+ 0x00001e4f, 0x00001e4e,
+ 0x00001e51, 0x00001e50,
+ 0x00001e53, 0x00001e52,
+ 0x00001e55, 0x00001e54,
+ 0x00001e57, 0x00001e56,
+ 0x00001e59, 0x00001e58,
+ 0x00001e5b, 0x00001e5a,
+ 0x00001e5d, 0x00001e5c,
+ 0x00001e5f, 0x00001e5e,
+ 0x00001e61, 0x00001e60,
+ 0x00001e63, 0x00001e62,
+ 0x00001e65, 0x00001e64,
+ 0x00001e67, 0x00001e66,
+ 0x00001e69, 0x00001e68,
+ 0x00001e6b, 0x00001e6a,
+ 0x00001e6d, 0x00001e6c,
+ 0x00001e6f, 0x00001e6e,
+ 0x00001e71, 0x00001e70,
+ 0x00001e73, 0x00001e72,
+ 0x00001e75, 0x00001e74,
+ 0x00001e77, 0x00001e76,
+ 0x00001e79, 0x00001e78,
+ 0x00001e7b, 0x00001e7a,
+ 0x00001e7d, 0x00001e7c,
+ 0x00001e7f, 0x00001e7e,
+ 0x00001e81, 0x00001e80,
+ 0x00001e83, 0x00001e82,
+ 0x00001e85, 0x00001e84,
+ 0x00001e87, 0x00001e86,
+ 0x00001e89, 0x00001e88,
+ 0x00001e8b, 0x00001e8a,
+ 0x00001e8d, 0x00001e8c,
+ 0x00001e8f, 0x00001e8e,
+ 0x00001e91, 0x00001e90,
+ 0x00001e93, 0x00001e92,
+ 0x00001e95, 0x00001e94,
+ 0x00001e9b, 0x00001e60,
+ 0x00001ea1, 0x00001ea0,
+ 0x00001ea3, 0x00001ea2,
+ 0x00001ea5, 0x00001ea4,
+ 0x00001ea7, 0x00001ea6,
+ 0x00001ea9, 0x00001ea8,
+ 0x00001eab, 0x00001eaa,
+ 0x00001ead, 0x00001eac,
+ 0x00001eaf, 0x00001eae,
+ 0x00001eb1, 0x00001eb0,
+ 0x00001eb3, 0x00001eb2,
+ 0x00001eb5, 0x00001eb4,
+ 0x00001eb7, 0x00001eb6,
+ 0x00001eb9, 0x00001eb8,
+ 0x00001ebb, 0x00001eba,
+ 0x00001ebd, 0x00001ebc,
+ 0x00001ebf, 0x00001ebe,
+ 0x00001ec1, 0x00001ec0,
+ 0x00001ec3, 0x00001ec2,
+ 0x00001ec5, 0x00001ec4,
+ 0x00001ec7, 0x00001ec6,
+ 0x00001ec9, 0x00001ec8,
+ 0x00001ecb, 0x00001eca,
+ 0x00001ecd, 0x00001ecc,
+ 0x00001ecf, 0x00001ece,
+ 0x00001ed1, 0x00001ed0,
+ 0x00001ed3, 0x00001ed2,
+ 0x00001ed5, 0x00001ed4,
+ 0x00001ed7, 0x00001ed6,
+ 0x00001ed9, 0x00001ed8,
+ 0x00001edb, 0x00001eda,
+ 0x00001edd, 0x00001edc,
+ 0x00001edf, 0x00001ede,
+ 0x00001ee1, 0x00001ee0,
+ 0x00001ee3, 0x00001ee2,
+ 0x00001ee5, 0x00001ee4,
+ 0x00001ee7, 0x00001ee6,
+ 0x00001ee9, 0x00001ee8,
+ 0x00001eeb, 0x00001eea,
+ 0x00001eed, 0x00001eec,
+ 0x00001eef, 0x00001eee,
+ 0x00001ef1, 0x00001ef0,
+ 0x00001ef3, 0x00001ef2,
+ 0x00001ef5, 0x00001ef4,
+ 0x00001ef7, 0x00001ef6,
+ 0x00001ef9, 0x00001ef8,
+ 0x00001f00, 0x00001f08,
+ 0x00001f01, 0x00001f09,
+ 0x00001f02, 0x00001f0a,
+ 0x00001f03, 0x00001f0b,
+ 0x00001f04, 0x00001f0c,
+ 0x00001f05, 0x00001f0d,
+ 0x00001f06, 0x00001f0e,
+ 0x00001f07, 0x00001f0f,
+ 0x00001f10, 0x00001f18,
+ 0x00001f11, 0x00001f19,
+ 0x00001f12, 0x00001f1a,
+ 0x00001f13, 0x00001f1b,
+ 0x00001f14, 0x00001f1c,
+ 0x00001f15, 0x00001f1d,
+ 0x00001f20, 0x00001f28,
+ 0x00001f21, 0x00001f29,
+ 0x00001f22, 0x00001f2a,
+ 0x00001f23, 0x00001f2b,
+ 0x00001f24, 0x00001f2c,
+ 0x00001f25, 0x00001f2d,
+ 0x00001f26, 0x00001f2e,
+ 0x00001f27, 0x00001f2f,
+ 0x00001f30, 0x00001f38,
+ 0x00001f31, 0x00001f39,
+ 0x00001f32, 0x00001f3a,
+ 0x00001f33, 0x00001f3b,
+ 0x00001f34, 0x00001f3c,
+ 0x00001f35, 0x00001f3d,
+ 0x00001f36, 0x00001f3e,
+ 0x00001f37, 0x00001f3f,
+ 0x00001f40, 0x00001f48,
+ 0x00001f41, 0x00001f49,
+ 0x00001f42, 0x00001f4a,
+ 0x00001f43, 0x00001f4b,
+ 0x00001f44, 0x00001f4c,
+ 0x00001f45, 0x00001f4d,
+ 0x00001f51, 0x00001f59,
+ 0x00001f53, 0x00001f5b,
+ 0x00001f55, 0x00001f5d,
+ 0x00001f57, 0x00001f5f,
+ 0x00001f60, 0x00001f68,
+ 0x00001f61, 0x00001f69,
+ 0x00001f62, 0x00001f6a,
+ 0x00001f63, 0x00001f6b,
+ 0x00001f64, 0x00001f6c,
+ 0x00001f65, 0x00001f6d,
+ 0x00001f66, 0x00001f6e,
+ 0x00001f67, 0x00001f6f,
+ 0x00001f70, 0x00001fba,
+ 0x00001f71, 0x00001fbb,
+ 0x00001f72, 0x00001fc8,
+ 0x00001f73, 0x00001fc9,
+ 0x00001f74, 0x00001fca,
+ 0x00001f75, 0x00001fcb,
+ 0x00001f76, 0x00001fda,
+ 0x00001f77, 0x00001fdb,
+ 0x00001f78, 0x00001ff8,
+ 0x00001f79, 0x00001ff9,
+ 0x00001f7a, 0x00001fea,
+ 0x00001f7b, 0x00001feb,
+ 0x00001f7c, 0x00001ffa,
+ 0x00001f7d, 0x00001ffb,
+ 0x00001f80, 0x00001f88,
+ 0x00001f81, 0x00001f89,
+ 0x00001f82, 0x00001f8a,
+ 0x00001f83, 0x00001f8b,
+ 0x00001f84, 0x00001f8c,
+ 0x00001f85, 0x00001f8d,
+ 0x00001f86, 0x00001f8e,
+ 0x00001f87, 0x00001f8f,
+ 0x00001f90, 0x00001f98,
+ 0x00001f91, 0x00001f99,
+ 0x00001f92, 0x00001f9a,
+ 0x00001f93, 0x00001f9b,
+ 0x00001f94, 0x00001f9c,
+ 0x00001f95, 0x00001f9d,
+ 0x00001f96, 0x00001f9e,
+ 0x00001f97, 0x00001f9f,
+ 0x00001fa0, 0x00001fa8,
+ 0x00001fa1, 0x00001fa9,
+ 0x00001fa2, 0x00001faa,
+ 0x00001fa3, 0x00001fab,
+ 0x00001fa4, 0x00001fac,
+ 0x00001fa5, 0x00001fad,
+ 0x00001fa6, 0x00001fae,
+ 0x00001fa7, 0x00001faf,
+ 0x00001fb0, 0x00001fb8,
+ 0x00001fb1, 0x00001fb9,
+ 0x00001fb3, 0x00001fbc,
+ 0x00001fbe, 0x00000399,
+ 0x00001fc3, 0x00001fcc,
+ 0x00001fd0, 0x00001fd8,
+ 0x00001fd1, 0x00001fd9,
+ 0x00001fe0, 0x00001fe8,
+ 0x00001fe1, 0x00001fe9,
+ 0x00001fe5, 0x00001fec,
+ 0x00001ff3, 0x00001ffc,
+ 0x00002170, 0x00002160,
+ 0x00002171, 0x00002161,
+ 0x00002172, 0x00002162,
+ 0x00002173, 0x00002163,
+ 0x00002174, 0x00002164,
+ 0x00002175, 0x00002165,
+ 0x00002176, 0x00002166,
+ 0x00002177, 0x00002167,
+ 0x00002178, 0x00002168,
+ 0x00002179, 0x00002169,
+ 0x0000217a, 0x0000216a,
+ 0x0000217b, 0x0000216b,
+ 0x0000217c, 0x0000216c,
+ 0x0000217d, 0x0000216d,
+ 0x0000217e, 0x0000216e,
+ 0x0000217f, 0x0000216f,
+ 0x000024d0, 0x000024b6,
+ 0x000024d1, 0x000024b7,
+ 0x000024d2, 0x000024b8,
+ 0x000024d3, 0x000024b9,
+ 0x000024d4, 0x000024ba,
+ 0x000024d5, 0x000024bb,
+ 0x000024d6, 0x000024bc,
+ 0x000024d7, 0x000024bd,
+ 0x000024d8, 0x000024be,
+ 0x000024d9, 0x000024bf,
+ 0x000024da, 0x000024c0,
+ 0x000024db, 0x000024c1,
+ 0x000024dc, 0x000024c2,
+ 0x000024dd, 0x000024c3,
+ 0x000024de, 0x000024c4,
+ 0x000024df, 0x000024c5,
+ 0x000024e0, 0x000024c6,
+ 0x000024e1, 0x000024c7,
+ 0x000024e2, 0x000024c8,
+ 0x000024e3, 0x000024c9,
+ 0x000024e4, 0x000024ca,
+ 0x000024e5, 0x000024cb,
+ 0x000024e6, 0x000024cc,
+ 0x000024e7, 0x000024cd,
+ 0x000024e8, 0x000024ce,
+ 0x000024e9, 0x000024cf,
+ 0x0000ff41, 0x0000ff21,
+ 0x0000ff42, 0x0000ff22,
+ 0x0000ff43, 0x0000ff23,
+ 0x0000ff44, 0x0000ff24,
+ 0x0000ff45, 0x0000ff25,
+ 0x0000ff46, 0x0000ff26,
+ 0x0000ff47, 0x0000ff27,
+ 0x0000ff48, 0x0000ff28,
+ 0x0000ff49, 0x0000ff29,
+ 0x0000ff4a, 0x0000ff2a,
+ 0x0000ff4b, 0x0000ff2b,
+ 0x0000ff4c, 0x0000ff2c,
+ 0x0000ff4d, 0x0000ff2d,
+ 0x0000ff4e, 0x0000ff2e,
+ 0x0000ff4f, 0x0000ff2f,
+ 0x0000ff50, 0x0000ff30,
+ 0x0000ff51, 0x0000ff31,
+ 0x0000ff52, 0x0000ff32,
+ 0x0000ff53, 0x0000ff33,
+ 0x0000ff54, 0x0000ff34,
+ 0x0000ff55, 0x0000ff35,
+ 0x0000ff56, 0x0000ff36,
+ 0x0000ff57, 0x0000ff37,
+ 0x0000ff58, 0x0000ff38,
+ 0x0000ff59, 0x0000ff39,
+ 0x0000ff5a, 0x0000ff3a,
+ 0x00010428, 0x00010400,
+ 0x00010429, 0x00010401,
+ 0x0001042a, 0x00010402,
+ 0x0001042b, 0x00010403,
+ 0x0001042c, 0x00010404,
+ 0x0001042d, 0x00010405,
+ 0x0001042e, 0x00010406,
+ 0x0001042f, 0x00010407,
+ 0x00010430, 0x00010408,
+ 0x00010431, 0x00010409,
+ 0x00010432, 0x0001040a,
+ 0x00010433, 0x0001040b,
+ 0x00010434, 0x0001040c,
+ 0x00010435, 0x0001040d,
+ 0x00010436, 0x0001040e,
+ 0x00010437, 0x0001040f,
+ 0x00010438, 0x00010410,
+ 0x00010439, 0x00010411,
+ 0x0001043a, 0x00010412,
+ 0x0001043b, 0x00010413,
+ 0x0001043c, 0x00010414,
+ 0x0001043d, 0x00010415,
+ 0x0001043e, 0x00010416,
+ 0x0001043f, 0x00010417,
+ 0x00010440, 0x00010418,
+ 0x00010441, 0x00010419,
+ 0x00010442, 0x0001041a,
+ 0x00010443, 0x0001041b,
+ 0x00010444, 0x0001041c,
+ 0x00010445, 0x0001041d,
+ 0x00010446, 0x0001041e,
+ 0x00010447, 0x0001041f,
+ 0x00010448, 0x00010420,
+ 0x00010449, 0x00010421,
+ 0x0001044a, 0x00010422,
+ 0x0001044b, 0x00010423,
+ 0x0001044c, 0x00010424,
+ 0x0001044d, 0x00010425,
+};
+
+#endif /*UTF8TABLES_H_*/
--- /dev/null
+<html><head><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Actions</title><link href="modsecurity-reference.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.69.1" name="generator"><link rel="start" href="index.html" title="ModSecurity® Reference
+ Manual"><link rel="up" href="index.html" title="ModSecurity® Reference
+ Manual"><link rel="prev" href="transformation-functions.html" title="Transformation functions"><link rel="next" href="operators.html" title="Operators"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div style="background:#F5F5F5;width:100%;border-top:1px solid #DDDDDD;border-bottom:1px solid #DDDDDD"><table width="100%" cellspacing="0" cellpadding="0"><tr><td><a href="http://www.modsecurity.org"><img style="margin:4px" src="modsecurity.gif" width="120" height="36" alt="ModSecurity" border="0"></a></td><td align="right"><a href="http://www.breach.com"><img style="margin:6px" src="breach-logo-small.gif" height="36" width="100" border="0"></a></td></tr></table></div><div id="navheader"><table summary="Navigation header" width="100%"><tr><th align="center" colspan="3">Actions</th></tr><tr><td align="left" width="20%"><a accesskey="p" href="transformation-functions.html">Prev</a> </td><td align="center" width="60%"> <a accesskey="h" href="index.html">Home</a></td><td align="right" width="20%"> <a accesskey="n" href="operators.html">Next</a></td></tr></table><hr size="1"></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="actions"></a>Actions</h2></div></div><div></div></div><p>Each action belongs to one of five groups:</p><div class="variablelist"><dl><dt><span class="term">Disruptive actions</span></dt><dd><p>Cause ModSecurity to do something. In many cases something
+ means block transaction, but not in all. For example, the allow
+ action is classified as a disruptive action, but it does the
+ opposite of blocking. There can only be one disruptive action per
+ rule (if there are multiple disruptive actions present, or
+ inherited, only the last one will take effect), or rule chain (in a
+ chain, a disruptive action can only appear in the first
+ rule).</p></dd><dt><span class="term">Non-disruptive actions</span></dt><dd><p>Do something, but that something does not and cannot affect
+ the rule processing flow. Setting a variable, or changing its value
+ is an example of a non-disruptive action. Non-disruptive action can
+ appear in any rule, including each rule belonging to a chain.</p></dd><dt><span class="term">Flow actions</span></dt><dd><p>These actions affect the rule flow (for example
+ <code class="literal">skip</code> or <code class="literal">skipAfter</code>).</p></dd><dt><span class="term">Meta-data actions</span></dt><dd><p>Meta-data actions are used to provide more information about
+ rules. Examples include <code class="literal">id</code>,
+ <code class="literal">rev</code>, <code class="literal">severity</code> and
+ <code class="literal">msg</code>.</p></dd><dt><span class="term">Data actions</span></dt><dd><p>Not really actions, these are mere containers that hold data
+ used by other actions. For example, the <code class="literal">status</code>
+ action holds the status that will be used for blocking (if it takes
+ place).</p></dd></dl></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N115EC"></a><code class="literal">allow</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Stops rule processing on a
+ successful match and allows the transaction to proceed.</p><p><span class="emphasis"><em>Action Group:</em></span> Disruptive</p><p>Example:</p><pre class="programlisting">SecRule REMOTE_ADDR "^192\.168\.1\.100$" nolog,phase:1,<span class="emphasis"><em>allow</em></span></pre><p>Prior to ModSecurity 2.5 the <code class="literal">allow</code> action would
+ only affect the current phase. An <code class="literal">allow</code> in phase 1
+ would skip processing the remaining rules in phase 1 but the rules from
+ phase 2 would execute. Starting with v2.5.0 <code class="literal">allow</code> was
+ enhanced to allow for fine-grained control of what is done. The
+ following rules now apply:</p><div class="orderedlist"><ol type="1"><li><p>If used one its own, like in the example above,
+ <code class="literal">allow</code> will affect the entire transaction,
+ stopping processing of the current phase but also skipping over all
+ other phases apart from the logging phase. (The logging phase is
+ special; it is designed to always execute.)</p></li><li><p>If used with parameter "phase", <code class="literal">allow</code> will
+ cause the engine to stop processing the current phase. Other phases
+ will continue as normal.</p></li><li><p>If used with parameter "request", <code class="literal">allow</code>
+ will cause the engine to stop processing the current phase. The next
+ phase to be processed will be phase
+ <code class="literal">RESPONSE_HEADERS</code>.</p></li></ol></div><p>Examples:</p><pre class="programlisting"># Do not process request but process response.
+SecAction phase:1,allow:request
+
+# Do not process transaction (request and response).
+SecAction phase:1,allow
+</pre><p>If you want to allow a response through, put a rule in phase
+ <code class="literal">RESPONSE_HEADERS</code> and simply use
+ <code class="literal">allow</code> on its own:</p><pre class="programlisting"># Allow response through.
+SecAction phase:3,allow</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1163C"></a>append</h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Appends text given as parameter
+ to the end of response body. For this action to work content injection
+ must be enabled by setting <code class="literal">SecContentInjection</code> to
+ <code class="literal">On</code>. Also make sure you check the content type of the
+ response before you make changes to it (e.g. you don't want to inject
+ stuff into images).</p><p><span class="emphasis"><em>Action Group:</em></span> Non-disruptive</p><p><span class="emphasis"><em>Processing Phases:</em></span> 3 and 4.</p><p>Example:</p><pre class="programlisting">SecRule RESPONSE_CONTENT_TYPE "^text/html" "nolog,pass,<span class="emphasis"><em>append:'<hr>Footer'</em></span>"</pre><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>While macro expansion is allowed in the additional content, you
+ are strongly cautioned against inserting user defined data
+ fields.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1165E"></a><code class="literal">auditlog</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Marks the transaction for
+ logging in the audit log.</p><p><span class="emphasis"><em>Action Group:</em></span> Non-disruptive</p><p>Example:</p><pre class="programlisting">SecRule REMOTE_ADDR "^192\.168\.1\.100$" <span class="emphasis"><em>auditlog</em></span>,phase:1,allow</pre><p><span class="emphasis"><em>Note</em></span></p><p>The auditlog action is now explicit if log is already
+ specified.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11678"></a><code class="literal">block</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Performs the default disruptive
+ action.</p><p><span class="emphasis"><em>Action Group:</em></span> Disruptive</p><p>It is intended to be used by ruleset writers to signify that the
+ rule was intended to block and leaves the "how" up to the administrator.
+ This action is currently a placeholder which will just be replaced by
+ the action from the last <code class="literal">SecDefaultAction</code> in the same
+ context. Using the <code class="literal">block</code> action with the
+ <code class="literal">SecRuleUpdateActionById</code> directive allows a rule to be
+ reverted back to the previous <code class="literal">SecDefaultAction</code>
+ disruptive action.</p><p>In future versions of ModSecurity, more control and functionality
+ will be added to define "how" to block.</p><p>Examples:</p><p>In the following example, the second rule will "deny" because of
+ the SecDefaultAction disruptive action. The intent being that the
+ administrator could easily change this to another disruptive action
+ without editing the actual rules.</p><pre class="programlisting">### Administrator defines "how" to block (deny,status:403)...
+SecDefaultAction phase:2,deny,status:403,log,auditlog
+
+### Included from a rulest...
+# Intent is to warn for this User Agent
+SecRule REQUEST_HEADERS:User-Agent "perl" "phase:2,<span class="emphasis"><em>pass</em></span>,msg:'Perl based user agent identified'"
+# Intent is to block for this User Agent, "how" described in SecDefaultAction
+SecRule REQUEST_HEADERS:User-Agent "nikto" "phase:2,<span class="emphasis"><em>block</em></span>,msg:'Nikto Scanners Identified'"</pre><p>In the following example, The rule is reverted back to the
+ <code class="literal">pass</code> action defined in the SecDefaultAction directive
+ by using the <code class="literal">SecRuleUpdateActionById</code> directive in
+ conjuction with the <code class="literal">block</code> action. This allows an
+ administrator to override an action in a 3rd party rule without
+ modifying the rule itself.</p><pre class="programlisting">### Administrator defines "how" to block (deny,status:403)...
+SecDefaultAction phase:2,pass,log,auditlog
+
+### Included from a rulest...
+SecRule REQUEST_HEADERS:User-Agent "nikto" "id:1,phase:2,<span class="emphasis"><em>deny</em></span>,msg:'Nikto Scanners Identified'"
+
+### Added by the administrator
+SecRuleUpdateActionById 1 "<span class="emphasis"><em>block</em></span>"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N116BD"></a><code class="literal">capture</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> When used together with the
+ regular expression operator, capture action will create copies of
+ regular expression captures and place them into the transaction variable
+ collection. Up to ten captures will be copied on a successful pattern
+ match, each with a name consisting of a digit from 0 to 9.</p><p><span class="emphasis"><em>Action Group:</em></span> Non-disruptive</p><p>Example:</p><pre class="programlisting">SecRule REQUEST_BODY "^username=(\w{25,})" phase:2,<span class="emphasis"><em>capture</em></span>,t:none,chain
+SecRule TX:1 "(?:(?:a(dmin|nonymous)))"</pre><p><span class="emphasis"><em>Note</em></span></p><p>The 0 data captures the entire REGEX match and 1 captures the data
+ in the first parens, etc...</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N116D7"></a><code class="literal">chain</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Chains the rule where the action
+ is placed with the rule that immediately follows it. The result is
+ called a<span class="emphasis"><em> rule chain</em></span>. Chained rules allow for more
+ complex rule matches where you want to use a number of different
+ VARIABLES to create a better rule and to help prevent false
+ positives.</p><p><span class="emphasis"><em>Action Group:</em></span> Flow</p><p>Example:</p><pre class="programlisting"># Refuse to accept POST requests that do
+# not specify request body length. Do note that
+# this rule should be preceeded by a rule that verifies
+# only valid request methods (e.g. GET, HEAD and POST) are used.
+SecRule REQUEST_METHOD ^POST$<span class="emphasis"><em> chain</em></span>,t:none
+SecRule REQUEST_HEADERS:Content-Length ^$ t:none</pre><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>In programming language concepts, think of chained rules
+ somewhat similar to AND conditional statements. The actions specified
+ in the first portion of the chained rule will only be triggered if all
+ of the variable checks return positive hits. If one aspect of the
+ chained rule is negative, then the entire rule chain is negative. Also
+ note that disruptive actions, execution phases, metadata actions (id,
+ rev, msg), skip and skipAfter actions can only be specified on by the
+ chain starter rule.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N116F2"></a><code class="literal">ctl</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> The ctl action allows
+ configuration options to be updated for the transaction.</p><p><span class="emphasis"><em>Action Group:</em></span> Non-disruptive</p><p>Example:</p><pre class="programlisting"># Parse requests with Content-Type "text/xml" as XML
+SecRule REQUEST_CONTENT_TYPE ^text/xml nolog,pass,<span class="emphasis"><em>ctl:requestBodyProcessor=XML</em></span></pre><p><span class="emphasis"><em>Note</em></span></p><p>The following configuration options are supported:</p><div class="orderedlist"><ol type="1"><li><p><code class="literal">auditEngine</code></p></li><li><p><code class="literal">auditLogParts</code></p></li><li><p><code class="literal">debugLogLevel</code></p></li><li><p><code class="literal">ruleRemoveById</code> (single rule
+ ID, or a single rule ID range accepted as parameter)</p></li><li><p><code class="literal">requestBodyAccess</code></p></li><li><p><code class="literal">forceRequestBodyVariable</code></p></li><li><p><code class="literal">requestBodyLimit</code></p></li><li><p><code class="literal">requestBodyProcessor</code></p></li><li><p><code class="literal">responseBodyAccess</code></p></li><li><p><code class="literal">responseBodyLimit</code></p></li><li><p><code class="literal">ruleEngine</code></p></li></ol></div><p>With the exception of<code class="literal">
+ requestBodyProcessor</code> and <code class="literal">
+ forceRequestBodyVariable</code>, each configuration option
+ corresponds to one configuration directive and the usage is
+ identical.</p><p>The <code class="literal">requestBodyProcessor</code> option allows you to
+ configure the request body processor. By default ModSecurity will use
+ the <code class="literal">URLENCODED</code> and<code class="literal"> MULTIPART</code> processors to process an <code class="literal">application/x-www-form-urlencoded</code> and a
+ <code class="literal">multipart/form-data</code> bodies,
+ respectively. A third processor, <code class="literal">XML</code>, is also
+ supported, but it is never used implicitly. Instead you must tell
+ ModSecurity to use it by placing a few rules in the<code class="literal"> REQUEST_HEADERS</code> processing phase. After the
+ request body was processed as XML you will be able to use the
+ XML-related features to inspect it.</p><p>Request body processors will not interrupt a transaction if an
+ error occurs during parsing. Instead they will set variables<code class="literal"> REQBODY_PROCESSOR_ERROR</code> and<code class="literal"> REQBODY_PROCESSOR_ERROR_MSG</code>. These variables
+ should be inspected in the <code class="literal">REQUEST_BODY</code> phase and an appropriate action
+ taken.</p><p>The <code class="literal">forceRequestBodyVariable</code> option allows you
+ to configure the <code class="literal">REQUEST_BODY</code> variable to be set when
+ there is no request body processor configured. This allows for
+ inspection of request bodies of unknown types.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11786"></a><code class="literal">deny</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Stops rule processing and
+ intercepts transaction.</p><p><span class="emphasis"><em>Action Group:</em></span> Disruptive</p><p>Example:</p><pre class="programlisting">SecRule REQUEST_HEADERS:User-Agent "nikto" "log,<span class="emphasis"><em>deny</em></span>,msg:'Nikto Scanners Identified'"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1179B"></a><code class="literal">deprecatevar</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Decrement counter based on its
+ age.</p><p><span class="emphasis"><em>Action Group:</em></span> Non-Disruptive</p><p>Example: The following example will decrement the counter by 60
+ every 300 seconds.</p><pre class="programlisting">SecAction deprecatevar:session.score=60/300</pre><p><span class="emphasis"><em>Note</em></span></p><p>Counter values are always positive, meaning the value will never
+ go below zero.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N117B2"></a><code class="literal">drop</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Immediately initiate a
+ "connection close" action to tear down the TCP connection by sending a
+ FIN packet.</p><p><span class="emphasis"><em>Action Group:</em></span> Disruptive</p><p>Example: The following example initiates an IP collection for
+ tracking Basic Authentication attempts. If the client goes over the
+ threshold of more than 25 attempts in 2 minutes, it will DROP subsequent
+ connections.</p><pre class="programlisting">SecAction phase:1,initcol:ip=%{REMOTE_ADDR},nolog
+SecRule ARGS:login "!^$" \
+ nolog,phase:1,setvar:ip.auth_attempt=+1,deprecatevar:ip.auth_attempt=20/120
+SecRule IP:AUTH_ATTEMPT "@gt 25" \
+ "log,<span class="emphasis"><em>drop</em></span>,phase:1,msg:'Possible Brute Force Attack'"</pre><p><span class="emphasis"><em>Note</em></span></p><p>This action is currently not available on Windows based builds.
+ This action is extremely useful when responding to both Brute Force and
+ Denial of Service attacks in that, in both cases, you want to minimize
+ both the network bandwidth and the data returned to the client. This
+ action causes error message to appear in the log "(9)Bad file
+ descriptor: core_output_filter: writing data to the network"</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N117CC"></a><code class="literal">exec</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Executes an external
+ script/binary supplied as parameter. As of v2.5.0, if the parameter
+ supplied to <code class="literal">exec</code> is a Lua script (detected by the
+ <code class="filename">.lua</code> extension) the script will be processed
+ <span class="emphasis"><em>internally</em></span>. This means you will get direct access
+ to the internal request context from the script. Please read the
+ <code class="literal">SecRuleScript</code> documentation for more details on how
+ to write Lua scripts.</p><p><span class="emphasis"><em>Action Group:</em></span> Non-disruptive</p><p>Example:</p><pre class="programlisting"># The following is going to execute /usr/local/apache/bin/test.sh
+# as a shell script on rule match.
+SecRule REQUEST_URI "^/cgi-bin/script\.pl" \
+ "phase:2,t:none,t:lowercase,t:normalisePath,log,<span class="emphasis"><em>exec:/usr/local/apache/bin/test.sh</em></span>"
+
+# The following is going to process /usr/local/apache/conf/exec.lua
+# internally as a Lua script on rule match.
+SecRule ARGS:p attack log,<span class="emphasis"><em>exec:/usr/local/apache/conf/exec.lua</em></span></pre><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>The exec action is executed independently from any disruptive
+ actions. External scripts will always be called with no parameters.
+ Some transaction information will be placed in environment variables.
+ All the usual CGI environment variables will be there. You should be
+ aware that forking a threaded process results in all threads being
+ replicated in the new process. Forking can therefore incur larger
+ overhead in multi-threaded operation. The script you execute must
+ write something (anything) to stdout. If it doesn't ModSecurity will
+ assume execution didn't work.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N117F5"></a><code class="literal">expirevar</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configures a collection variable
+ to expire after the given time in seconds.</p><p><span class="emphasis"><em>Action Group:</em></span> Non-disruptive</p><p>Example:</p><pre class="programlisting">SecRule REQUEST_COOKIES:JSESSIONID "!^$" nolog,phase:1,pass,chain
+SecAction setsid:%{REQUEST_COOKIES:JSESSIONID}
+SecRule REQUEST_URI "^/cgi-bin/script\.pl" \
+ "phase:2,t:none,t:lowercase,t:normalisePath,log,allow,\
+setvar:session.suspicious=1,<span class="emphasis"><em>expirevar:session.suspicious=3600</em></span>,phase:1"</pre><p><span class="emphasis"><em>Note</em></span></p><p>You should use expirevar actions at the same time that you use
+ setvar actions in order to keep the indented expiration time. If they
+ are used on their own (perhaps in a SecAction directive) the expire time
+ could get re-set. When variables are removed from collections, and there
+ are no other changes, collections are not written to disk at the end of
+ request. This is because the variables can always be expired again when
+ the collection is read again on a subsequent request.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1180F"></a><code class="literal">id</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Assigns a unique ID to the rule
+ or chain.</p><p><span class="emphasis"><em>Action Group:</em></span> Meta-data</p><p>Example:</p><pre class="programlisting">SecRule &REQUEST_HEADERS:Host "@eq 0" \
+ "log,<span class="emphasis"><em>id:60008</em></span>,severity:2,msg:'Request Missing a Host Header'"</pre><p><span class="emphasis"><em>Note</em></span></p><p>These are the reserved ranges:</p><div class="itemizedlist"><ul type="disc"><li><p>1-99,999; reserved for local (internal) use. Use as you see
+ fit but do not use this range for rules that are distributed to
+ others.</p></li><li><p>100,000-199,999; reserved for internal use of the engine, to
+ assign to rules that do not have explicit IDs.</p></li><li><p>200,000-299,999; reserved for rules published at
+ modsecurity.org.</p></li><li><p>300,000-399,999; reserved for rules published at
+ gotroot.com.</p></li><li><p>400,000-419,999; unused (available for reservation).</p></li><li><p>420,000-429,999; reserved for <a href="http://projects.otaku42.de/wiki/ScallyWhack" target="_top">ScallyWhack</a>.</p></li><li><p>430,000-899,999; unused (available for reservation).</p></li><li><p>900,000-999,999; reserved for the <a href="http://www.modsecurity.org/projects/rules/" target="_top">Core Rules</a>
+ project.</p></li><li><p>1,000,000 and above; unused (available for
+ reservation).</p></li></ul></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1184E"></a><code class="literal">initcol</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Initialises a named persistent
+ collection, either by loading data from storage or by creating a new
+ collection in memory.</p><p><span class="emphasis"><em>Action Group:</em></span> Non-disruptive</p><p>Example: The following example initiates IP address
+ tracking.</p><pre class="programlisting">SecAction <span class="emphasis"><em>phase:1,initcol:ip=%{REMOTE_ADDR}</em></span>,nolog</pre><p><span class="emphasis"><em>Note</em></span></p><p>Normally you will want to use <span class="emphasis"><em>phase:1</em></span> along
+ with <span class="emphasis"><em>initcol</em></span> so that the collection is available in
+ all phases.</p><p>Collections are loaded into memory when the initcol action is
+ encountered. The collection in storage will be persisted (and the
+ appropriate counters increased) <span class="emphasis"><em>only</em></span> if it was
+ changed during transaction processing.</p><p>See the "Persistant Storage" section for further details.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11875"></a><code class="literal">log</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Indicates that a successful
+ match of the rule needs to be logged.</p><p><span class="emphasis"><em>Action Group:</em></span> Non-disruptive</p><p>Example:</p><pre class="programlisting">SecAction phase:1,initcol:ip=%{REMOTE_ADDR},<span class="emphasis"><em>log</em></span></pre><p><span class="emphasis"><em>Note</em></span></p><p>This action will log matches to the Apache error log file and the
+ ModSecurity audit log.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1188E"></a><code class="literal">logdata</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Allows a data fragment to be
+ logged as part of the alert message.</p><p><span class="emphasis"><em>Action Group:</em></span> Non-disruptive</p><p>Example:</p><pre class="programlisting">SecRule &ARGS:p "@eq 0" "log,<span class="emphasis"><em>logdata:'%{TX.0}'"</em></span></pre><p><span class="emphasis"><em>Note</em></span></p><p>The logdata information appears in the error and/or audit log
+ files and is not sent back to the client in response headers. Macro
+ expansion is preformed so you may use variable names such as %{TX.0},
+ etc. The information is properly escaped for use with logging binary
+ data.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N118A7"></a><code class="literal">msg</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Assigns a custom message to the
+ rule or chain.</p><p><span class="emphasis"><em>Action Group:</em></span> Meta-data</p><p>Example:</p><pre class="programlisting">SecRule &REQUEST_HEADERS:Host "@eq 0" \
+ "log,id:60008<span class="emphasis"><em>,</em></span>severity:2,<span class="emphasis"><em>msg:'Request Missing a Host Header'"</em></span></pre><p><span class="emphasis"><em>Note</em></span></p><p>The msg information appears in the error and/or audit log files
+ and is not sent back to the client in response headers.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N118C3"></a><code class="literal">multiMatch</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> If enabled ModSecurity will
+ perform multiple operator invocations for every target, before and after
+ every anti-evasion transformation is performed.</p><p><span class="emphasis"><em>Action Group:</em></span> Non-disruptive</p><p>Example:</p><pre class="programlisting">SecDefaultAction log,deny,phase:1,t:removeNulls,t:lowercase
+SecRule ARGS "attack" <span class="emphasis"><em>multiMatch</em></span></pre><p><span class="emphasis"><em>Note</em></span></p><p>Normally, variables are evaluated once, only after all
+ transformation functions have completed. With multiMatch, variables are
+ checked against the operator before and after every transformation
+ function that changes the input.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N118DC"></a><code class="literal">noauditlog</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Indicates that a successful
+ match of the rule should not be used as criteria whether the transaction
+ should be logged to the audit log.</p><p><span class="emphasis"><em>Action Group:</em></span> Non-disruptive</p><p>Example:</p><pre class="programlisting">SecRule REQUEST_HEADERS:User-Agent "Test" allow,<span class="emphasis"><em>noauditlog</em></span></pre><p><span class="emphasis"><em>Note</em></span></p><p>If the SecAuditEngine is set to On, all of the transactions will
+ be logged. If it is set to RelevantOnly, then you can control it with
+ the noauditlog action. Even if the noauditlog action is applied to a
+ specific rule and a rule either before or after triggered an audit
+ event, then the transaction will be logged to the audit log. The correct
+ way to disable audit logging for the entire transaction is to use
+ "<code class="literal">ctl:auditEngine=Off</code>"</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N118F9"></a><code class="literal">nolog</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Prevents rule matches from
+ appearing in both the error and audit logs.</p><p><span class="emphasis"><em>Action Group:</em></span> Non-disruptive</p><p>Example:</p><pre class="programlisting">SecRule REQUEST_HEADERS:User-Agent "Test" allow,<span class="emphasis"><em>nolog</em></span></pre><p><span class="emphasis"><em>Note</em></span></p><p>The nolog action also implies noauditlog.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11912"></a><code class="literal">pass</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Continues processing with the
+ next rule in spite of a successful match.</p><p><span class="emphasis"><em>Action Group:</em></span> Disruptive</p><p>Example1:</p><pre class="programlisting">SecRule REQUEST_HEADERS:User-Agent "Test" log,<span class="emphasis"><em>pass</em></span></pre><p>When using <span class="emphasis"><em>pass</em></span> with SecRule with multiple
+ targets, <span class="emphasis"><em>all</em></span> targets will be processed and
+ <span class="emphasis"><em>all</em></span> non-disruptive actions will trigger for
+ <span class="emphasis"><em>every</em></span> match found. In the second example the
+ TX:test target would be incremented by 1 for each matching
+ argument.</p><p>Example2:</p><pre class="programlisting">SecRule ARGS "test" log,<span class="emphasis"><em>pass</em></span>,setvar:TX.test=+1</pre><p><span class="emphasis"><em>Note</em></span></p><p>The transaction will not be interrupted but a log will be
+ generated for each matching target (unless logging has been
+ suppressed).</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11941"></a><code class="literal">pause</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Pauses transaction processing
+ for the specified number of milliseconds.</p><p><span class="emphasis"><em>Action Group:</em></span> Non-disruptive</p><p>Example:</p><pre class="programlisting">SecRule REQUEST_HEADERS:User-Agent "Test" log,deny,status:403,<span class="emphasis"><em>pause:5000</em></span></pre><p><span class="emphasis"><em>Note</em></span></p><p>This feature can be of limited benefit for slowing down Brute
+ Force Scanners, however use with care. If you are under a Denial of
+ Service type of attack, the pause feature may make matters worse as this
+ feature will cause child processes to sit idle until the pause is
+ completed.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1195A"></a><code class="literal">phase</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Places the rule (or the rule
+ chain) into one of five available processing phases.</p><p><span class="emphasis"><em>Action Group:</em></span> Meta-data</p><p>Example:</p><pre class="programlisting">SecDefaultAction log,deny,<span class="emphasis"><em>phase:1</em></span>,t:removeNulls,t:lowercase
+SecRule REQUEST_HEADERS:User-Agent "Test" log,deny,status:403</pre><p><span class="emphasis"><em>Note</em></span></p><p>Keep in mind that is you specify the incorrect phase, the target
+ variable that you specify may be empty. This could lead to a false
+ negative situation where your variable and operator (RegEx) may be
+ correct, but it misses malicious data because you specified the wrong
+ phase.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11974"></a>prepend</h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Prepends text given as parameter
+ to the response body. For this action to work content injection must be
+ enabled by setting <code class="literal">SecContentInjection</code> to
+ <code class="literal">On</code>. Also make sure you check the content type of the
+ response before you make changes to it (e.g. you don't want to inject
+ stuff into images).</p><p><span class="emphasis"><em>Action Group:</em></span> Non-disruptive</p><p><span class="emphasis"><em>Processing Phases:</em></span> 3 and 4.</p><p>Example:</p><pre class="programlisting">SecRule RESPONSE_CONTENT_TYPE ^text/html "phase:3,nolog,pass,<span class="emphasis"><em>prepend:'Header<br>'</em></span>"</pre><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>While macro expansion is allowed in the additional content, you
+ are strongly cautioned against inserting user defined data
+ fields.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11996"></a><code class="literal">proxy</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Intercepts transaction by
+ forwarding request to another web server using the proxy backend.</p><p><span class="emphasis"><em>Action Group:</em></span> Disruptive</p><p>Example:</p><pre class="programlisting">SecRule REQUEST_HEADERS:User-Agent "Test" log,<span class="emphasis"><em>proxy:http://www.honeypothost.com/</em></span></pre><p><span class="emphasis"><em>Note</em></span></p><p>For this action to work, mod_proxy must also be installed. This
+ action is useful if you would like to proxy matching requests onto a
+ honeypot webserver.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N119AF"></a><code class="literal">redirect</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Intercepts transaction by
+ issuing a redirect to the given location.</p><p><span class="emphasis"><em>Action Group:</em></span> Disruptive</p><p>Example:</p><pre class="programlisting">SecRule REQUEST_HEADERS:User-Agent "Test" \
+ log,<span class="emphasis"><em>redirect:http://www.hostname.com/failed.html</em></span></pre><p><span class="emphasis"><em>Note</em></span></p><p>If the <code class="literal">status</code> action is present
+ and its value is acceptable (301, 302, 303, or 307) it will be used for
+ the redirection. Otherwise status code 302 will be used.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N119CC"></a><code class="literal">rev</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Specifies rule revision.</p><p><span class="emphasis"><em>Action Group:</em></span> Meta-data</p><p>Example:</p><pre class="programlisting">SecRule REQUEST_METHOD "^PUT$" "id:340002,<span class="emphasis"><em>rev:1</em></span>,severity:2,msg:'Restricted HTTP function'"</pre><p><span class="emphasis"><em>Note</em></span></p><p>This action is used in combination with the <code class="literal">id</code> action to allow the same rule ID to be used
+ after changes take place but to still provide some indication the rule
+ changed.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N119EA"></a><code class="literal">sanitiseArg</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Sanitises (replaces each byte
+ with an asterisk) a named request argument prior to audit
+ logging.</p><p><span class="emphasis"><em>Action Group:</em></span> Non-disruptive</p><p>Example:</p><pre class="programlisting">SecAction nolog,phase:2,<span class="emphasis"><em>sanitiseArg:password</em></span></pre><p><span class="emphasis"><em>Note</em></span></p><p>The sanitize actions do not sanitize any data within the actual
+ raw requests but only on the copy of data within memory that is set to
+ log to the audit log. It will not sanitize the data in the
+ modsec_debug.log file (if the log level is set high enough to capture
+ this data).</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11A03"></a><code class="literal">sanitiseMatched</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Sanitises the variable (request
+ argument, request header, or response header) that caused a rule
+ match.</p><p><span class="emphasis"><em>Action Group:</em></span> Non-disruptive</p><p>Example: This action can be used to sanitise arbitrary transaction
+ elements when they match a condition. For example, the example below
+ will sanitise any argument that contains the word<span class="emphasis"><em>
+ password</em></span> in the name.</p><pre class="programlisting">SecRule ARGS_NAMES password nolog,pass,<span class="emphasis"><em>sanitiseMatched</em></span></pre><p><span class="emphasis"><em>Note</em></span></p><p>Same note as sanitiseArg.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11A1F"></a><code class="literal">sanitiseRequestHeader</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Sanitises a named request
+ header.</p><p><span class="emphasis"><em>Action Group:</em></span> Non-disruptive</p><p>Example: This will sanitise the data in the Authorization
+ header.</p><pre class="programlisting">SecAction log,phase:1,<span class="emphasis"><em>sanitiseRequestHeader:Authorization</em></span></pre><p><span class="emphasis"><em>Note</em></span></p><p>Same note as sanitiseArg.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11A38"></a><code class="literal">sanitiseResponseHeader</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Sanitises a named response
+ header.</p><p><span class="emphasis"><em>Action Group:</em></span> Non-disruptive</p><p>Example: This will sanitise the Set-Cookie data sent to the
+ client.</p><pre class="programlisting">SecAction log,phase:3,<span class="emphasis"><em>sanitiseResponseHeader:Set-Cookie</em></span></pre><p><span class="emphasis"><em>Note</em></span></p><p>Same note as sanitiseArg.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11A51"></a><code class="literal">severity</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Assigns severity to the rule it
+ is placed with.</p><p><span class="emphasis"><em>Action Group:</em></span> Meta-data</p><p>Example:</p><pre class="programlisting">SecRule REQUEST_METHOD "^PUT$" "id:340002,rev:1,<span class="emphasis"><em>severity:CRITICAL</em></span>,msg:'Restricted HTTP function'"</pre><p><span class="emphasis"><em>Note</em></span></p><p>Severity values in ModSecurity follow those of syslog, as
+ below:</p><div class="itemizedlist"><ul type="disc"><li><p>0 - EMERGENCY</p></li><li><p>1 - ALERT</p></li><li><p>2 - CRITICAL</p></li><li><p>3 - ERROR</p></li><li><p>4 - WARNING</p></li><li><p>5 - NOTICE</p></li><li><p>6 - INFO</p></li><li><p>7 - DEBUG</p></li></ul></div><p>It is possible to specify severity levels using either the
+ numerical values or the text values. You should always specify severity
+ levels using the text values. The use of the numerical values is
+ deprecated (as of v2.5.0) and may be removed in one of the susequent
+ major updates.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11A86"></a><code class="literal">setuid</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Special-purpose action that
+ initialises the <code class="literal">USER</code>
+ collection.</p><p><span class="emphasis"><em>Action Group:</em></span> Non-disruptive</p><p>Example:</p><pre class="programlisting">SecAction <span class="emphasis"><em>setuid:%{REMOTE_USER}</em></span>,nolog</pre><p><span class="emphasis"><em>Note</em></span></p><p>After initialisation takes place the variable <code class="literal">USERID</code> will be available for use in the
+ subsequent rules.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11AA8"></a><code class="literal">setsid</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Special-purpose action that
+ initialises the <code class="literal">SESSION</code>
+ collection.</p><p><span class="emphasis"><em>Action Group: </em></span>Non-disruptive</p><p>Example:</p><pre class="programlisting"># Initialise session variables using the session cookie value
+SecRule REQUEST_COOKIES:PHPSESSID !^$ chain,nolog,pass
+SecAction <span class="emphasis"><em>setsid:%{REQUEST_COOKIES.PHPSESSID}</em></span></pre><p><span class="emphasis"><em>Note</em></span></p><p>On first invocation of this action the collection will be empty
+ (not taking the predefined variables into account - see <code class="literal">initcol</code> for more information). On subsequent
+ invocations the contents of the collection (session, in this case) will
+ be retrieved from storage. After initialisation takes place the
+ variable<code class="literal"> SESSIONID</code> will be available
+ for use in the subsequent rules.This action understands each application
+ maintains its own set of sessions. It will utilise the current web
+ application ID to create a session namespace.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11ACD"></a><code class="literal">setenv</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Creates, removes, or updates an
+ environment variable.</p><p><span class="emphasis"><em>Action Group:</em></span> Non-disruptive</p><p>Examples:</p><p>To create a new variable (if you omit the value <code class="literal">1</code> will be used):</p><pre class="programlisting">setenv:name=value</pre><p>To remove a variable:</p><pre class="programlisting">setenv:!name</pre><p><span class="emphasis"><em>Note</em></span></p><p>This action can be used to establish communication with other
+ Apache modules.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11AEF"></a><code class="literal">setvar</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Creates, removes, or updates a
+ variable in the specified collection.</p><p><span class="emphasis"><em>Action Group:</em></span> Non-disruptive</p><p>Examples:</p><p>To create a new variable:</p><pre class="programlisting">setvar:tx.score=10</pre><p>To remove a variable prefix the name with exclamation mark:</p><pre class="programlisting">setvar:!tx.score</pre><p>To increase or decrease variable value use <code class="literal">+</code> and <code class="literal">-</code>
+ characters in front of a numerical value:</p><pre class="programlisting">setvar:tx.score=+5</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11B15"></a><code class="literal">skip</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Skips one or more rules (or
+ chains) on successful match.</p><p><span class="emphasis"><em>Action Group:</em></span> Flow</p><p>Example:</p><p><pre class="programlisting">SecRule REQUEST_URI "^/$" \
+"phase:2,chain,t:none<span class="emphasis"><em>,skip:2</em></span>"
+SecRule REMOTE_ADDR "^127\.0\.0\.1$" "chain"
+SecRule REQUEST_HEADERS:User-Agent "^Apache \(internal dummy connection\)$" "t:none"
+SecRule &REQUEST_HEADERS:Host "@eq 0" \
+ "deny,log,status:400,id:960008,severity:4,msg:'Request Missing a Host Header'"
+SecRule &REQUEST_HEADERS:Accept "@eq 0" \
+ "log,deny,log,status:400,id:960015,msg:'Request Missing an Accept Header'"</pre></p><p><span class="emphasis"><em>Note</em></span></p><p>Skip only applies to the current processing phase and not
+ necessarily the order in which the rules appear in the configuration
+ file. If you group rules by processing phases, then skip should work as
+ expected. This action can not be used to skip rules within one chain.
+ Accepts a single parameter denoting the number of rules (or chains) to
+ skip.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11B30"></a><code class="literal">skipAfter</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Skips rules (or chains) on
+ successful match resuming rule execution after the specified rule ID or
+ marker (see <code class="literal">SecMarker</code>) is found.</p><p><span class="emphasis"><em>Action Group:</em></span> Flow</p><p>Example:</p><p><pre class="programlisting">SecRule REQUEST_URI "^/$" "chain,t:none,<span class="emphasis"><em>skipAfter:960015</em></span>"
+SecRule REMOTE_ADDR "^127\.0\.0\.1$" "chain"
+SecRule REQUEST_HEADERS:User-Agent "^Apache \(internal dummy connection\)$" "t:none"
+SecRule &REQUEST_HEADERS:Host "@eq 0" \
+ "deny,log,status:400,id:960008,severity:4,msg:'Request Missing a Host Header'"
+SecRule &REQUEST_HEADERS:Accept "@eq 0" \
+ "log,deny,log,status:400,id:960015,msg:'Request Missing an Accept Header'"</pre></p><p><span class="emphasis"><em>Note</em></span></p><p><code class="literal">SkipAfter</code> only applies to the current
+ processing phase and not necessarily the order in which the rules appear
+ in the configuration file. If you group rules by processing phases, then
+ skip should work as expected. This action can not be used to skip rules
+ within one chain. Accepts a single parameter denoting the last rule ID
+ to skip.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11B52"></a><code class="literal">status</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Specifies the response status
+ code to use with actions<code class="literal"> deny</code>
+ and<code class="literal"> redirect</code>.</p><p><span class="emphasis"><em>Action Group:</em></span> Data</p><p>Example:</p><pre class="programlisting">SecDefaultAction log,deny,<span class="emphasis"><em>status:403</em></span>,phase:1</pre><p><span class="emphasis"><em>Note</em></span></p><p>Status actions defined in Apache scope locations (such as
+ Directory, Location, etc...) may be superseded by phase:1 action
+ settings. The Apache ErrorDocument directive will be triggered if
+ present in the configuration. Therefore if you have previously defined a
+ custom error page for a given status then it will be executed and its
+ output presented to the user.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11B74"></a><code class="literal">t</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> This action can be used which
+ transformation function should be used against the specified variables
+ before they (or the results, rather) are run against the operator
+ specified in the rule.</p><p><span class="emphasis"><em>Action Group:</em></span> Non-disruptive</p><p>Example:</p><pre class="programlisting">SecDefaultAction log,deny,phase:1,t:removeNulls,t:lowercase
+SecRule REQUEST_COOKIES:SESSIONID "47414e81cbbef3cf8366e84eeacba091" \
+ log,deny,status:403,<span class="emphasis"><em>t:md5,t:hexEncode</em></span></pre><p><span class="emphasis"><em>Note</em></span></p><p>Any transformation functions that you specify in a SecRule will be
+ in addition to previous ones specified in SecDefaultAction. Use of
+ "t:none" will remove all transformation functions for the specified
+ rule.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11B8D"></a><code class="literal">tag</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Assigns custom text to a rule or
+ chain.</p><p><span class="emphasis"><em>Action Group:</em></span> Meta-data</p><p>Example:</p><pre class="programlisting">SecRule REQUEST_FILENAME "\b(?:n(?:map|et|c)|w(?:guest|sh)|cmd(?:32)?|telnet|rcmd|ftp)\.exe\b" \
+ "t:none,t:lowercase,deny,msg:'System Command Access',id:'950002',<span class="emphasis"><em>\
+tag:'WEB_ATTACK/FILE_INJECTION',tag:'OWASP/A2'</em></span>,severity:'2'"</pre><p><span class="emphasis"><em>Note</em></span></p><p>The tag information appears in the error and/or audit log files.
+ Its intent is to be used to automate classification of rules and the
+ alerts generated by rules. Multiple tags can be used per
+ rule/chain.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11BA7"></a><code class="literal">xmlns</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> This action should be used
+ together with an XPath expression to register a namespace.</p><p><span class="emphasis"><em>Action Group:</em></span> Data</p><p>Example:</p><pre class="programlisting">SecRule REQUEST_HEADERS:Content-Type "text/xml" \
+ "phase:1,pass,ctl:requestBodyProcessor=XML,ctl:requestBodyAccess=On,<span class="emphasis"><em> \
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"</em></span>
+SecRule XML:/soap:Envelope/soap:Body/q1:getInput/id() "123" phase:2,deny</pre></div></div><div id="navfooter"><hr size="1"><table summary="Navigation footer" width="100%"><tr><td align="left" width="40%"><a accesskey="p" href="transformation-functions.html">Prev</a> </td><td align="center" width="20%"> </td><td align="right" width="40%"> <a accesskey="n" href="operators.html">Next</a></td></tr><tr><td valign="top" align="left" width="40%">Transformation functions </td><td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td><td valign="top" align="right" width="40%"> Operators</td></tr></table></div><div align="center" class="copyright">Copyright (C) 2004-2009 <a href="http://www.breach.com">Breach Security</a></div></body></html>
\ No newline at end of file
--- /dev/null
+<html><head><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>ModSecurity Core Rules™</title><link href="modsecurity-reference.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.69.1" name="generator"><link rel="start" href="index.html" title="ModSecurity® Reference
+ Manual"><link rel="up" href="index.html" title="ModSecurity® Reference
+ Manual"><link rel="prev" href="introduction.html" title="Introduction"><link rel="next" href="installation.html" title="Installation"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div style="background:#F5F5F5;width:100%;border-top:1px solid #DDDDDD;border-bottom:1px solid #DDDDDD"><table width="100%" cellspacing="0" cellpadding="0"><tr><td><a href="http://www.modsecurity.org"><img style="margin:4px" src="modsecurity.gif" width="120" height="36" alt="ModSecurity" border="0"></a></td><td align="right"><a href="http://www.breach.com"><img style="margin:6px" src="breach-logo-small.gif" height="36" width="100" border="0"></a></td></tr></table></div><div id="navheader"><table summary="Navigation header" width="100%"><tr><th align="center" colspan="3"><span class="trademark">ModSecurity Core Rules</span>™</th></tr><tr><td align="left" width="20%"><a accesskey="p" href="introduction.html">Prev</a> </td><td align="center" width="60%"> <a accesskey="h" href="index.html">Home</a></td><td align="right" width="20%"> <a accesskey="n" href="installation.html">Next</a></td></tr></table><hr size="1"></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="N10067"></a><span class="trademark">ModSecurity Core Rules</span>™</h2></div></div><div></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1006C"></a>Overview</h3></div></div><div></div></div><p>ModSecurity is a web application firewall engine that provides
+ very little protection on its own. In order to become useful,
+ ModSecurity must be configured with rules. In order to enable users to
+ take full advantage of ModSecurity out of the box, Breach Security, Inc.
+ is providing a free certified rule set for ModSecurity 2.x. Unlike
+ intrusion detection and prevention systems, which rely on signatures
+ specific to known vulnerabilities, the Core Rules provide generic
+ protection from unknown vulnerabilities often found in web applications,
+ which are in most cases custom coded. The Core Rules are heavily
+ commented to allow it to be used as a step-by-step deployment guide for
+ ModSecurity. The latest Core Rules can be found at the ModSecurity
+ website - <a href="http://www.modsecurity.org/projects/rules/" target="_top">http://www.modsecurity.org/projects/rules/</a>.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10075"></a>Core Rules Content</h3></div></div><div></div></div><p>In order to provide generic web applications protection, the Core
+ Rules use the following techniques:</p><div class="itemizedlist"><ul type="disc"><li><p>HTTP protection - detecting violations of the HTTP protocol
+ and a locally defined usage policy.</p></li><li><p>Common Web Attacks Protection - detecting common web
+ application security attack.</p></li><li><p>Automation detection - Detecting bots, crawlers, scanners and
+ other surface malicious activity.</p></li><li><p>Trojan Protection - Detecting access to Trojans horses.</p></li><li><p>Error Hiding - Disguising error messages sent by the
+ server.</p></li></ul></div></div></div><div id="navfooter"><hr size="1"><table summary="Navigation footer" width="100%"><tr><td align="left" width="40%"><a accesskey="p" href="introduction.html">Prev</a> </td><td align="center" width="20%"> </td><td align="right" width="40%"> <a accesskey="n" href="installation.html">Next</a></td></tr><tr><td valign="top" align="left" width="40%">Introduction </td><td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td><td valign="top" align="right" width="40%"> Installation</td></tr></table></div><div align="center" class="copyright">Copyright (C) 2004-2009 <a href="http://www.breach.com">Breach Security</a></div></body></html>
\ No newline at end of file
--- /dev/null
+<html><head><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Macro Expansion</title><link href="modsecurity-reference.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.69.1" name="generator"><link rel="start" href="index.html" title="ModSecurity® Reference
+ Manual"><link rel="up" href="index.html" title="ModSecurity® Reference
+ Manual"><link rel="prev" href="operators.html" title="Operators"><link rel="next" href="ar01s11.html" title="Persistant Storage"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div style="background:#F5F5F5;width:100%;border-top:1px solid #DDDDDD;border-bottom:1px solid #DDDDDD"><table width="100%" cellspacing="0" cellpadding="0"><tr><td><a href="http://www.modsecurity.org"><img style="margin:4px" src="modsecurity.gif" width="120" height="36" alt="ModSecurity" border="0"></a></td><td align="right"><a href="http://www.breach.com"><img style="margin:6px" src="breach-logo-small.gif" height="36" width="100" border="0"></a></td></tr></table></div><div id="navheader"><table summary="Navigation header" width="100%"><tr><th align="center" colspan="3">Macro Expansion</th></tr><tr><td align="left" width="20%"><a accesskey="p" href="operators.html">Prev</a> </td><td align="center" width="60%"> <a accesskey="h" href="index.html">Home</a></td><td align="right" width="20%"> <a accesskey="n" href="ar01s11.html">Next</a></td></tr></table><hr size="1"></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="N11DF1"></a>Macro Expansion</h2></div></div><div></div></div><p>Macros allow for using place holders in rules that will be expanded
+ out to their values at runtime. Currently only variable expansion is
+ supported, however more options may be added in future versions of
+ ModSecurity.</p><p>Format:</p><pre class="programlisting">%{VARIABLE}
+%{COLLECTION.VARIABLE}</pre><p>Macro expansion can be used in actions such as initcol, setsid,
+ setuid, setvar, setenv, logdata. Operators that are evaluated at runtime
+ support expansion and are noted above. Such operators include @beginsWith,
+ @endsWith, @contains, @within and @streq. You cannot use macro expansion
+ for operators that are "compiled" such as @pm, @rx, etc. as these
+ operators have their values fixed at configure time for efficiency.</p><p>Some values you may want to expand include: TX, REMOTE_ADDR, USERID,
+ HIGHEST_SEVERITY, MATCHED_VAR, MATCHED_VAR_NAME, MULTIPART_STRICT_ERROR,
+ RULE, SESSION, USERID, among others.</p></div><div id="navfooter"><hr size="1"><table summary="Navigation footer" width="100%"><tr><td align="left" width="40%"><a accesskey="p" href="operators.html">Prev</a> </td><td align="center" width="20%"> </td><td align="right" width="40%"> <a accesskey="n" href="ar01s11.html">Next</a></td></tr><tr><td valign="top" align="left" width="40%">Operators </td><td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td><td valign="top" align="right" width="40%"> Persistant Storage</td></tr></table></div><div align="center" class="copyright">Copyright (C) 2004-2009 <a href="http://www.breach.com">Breach Security</a></div></body></html>
\ No newline at end of file
--- /dev/null
+<html><head><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Persistant Storage</title><link href="modsecurity-reference.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.69.1" name="generator"><link rel="start" href="index.html" title="ModSecurity® Reference
+ Manual"><link rel="up" href="index.html" title="ModSecurity® Reference
+ Manual"><link rel="prev" href="ar01s10.html" title="Macro Expansion"><link rel="next" href="ar01s12.html" title="Miscellaneous Topics"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div style="background:#F5F5F5;width:100%;border-top:1px solid #DDDDDD;border-bottom:1px solid #DDDDDD"><table width="100%" cellspacing="0" cellpadding="0"><tr><td><a href="http://www.modsecurity.org"><img style="margin:4px" src="modsecurity.gif" width="120" height="36" alt="ModSecurity" border="0"></a></td><td align="right"><a href="http://www.breach.com"><img style="margin:6px" src="breach-logo-small.gif" height="36" width="100" border="0"></a></td></tr></table></div><div id="navheader"><table summary="Navigation header" width="100%"><tr><th align="center" colspan="3">Persistant Storage</th></tr><tr><td align="left" width="20%"><a accesskey="p" href="ar01s10.html">Prev</a> </td><td align="center" width="60%"> <a accesskey="h" href="index.html">Home</a></td><td align="right" width="20%"> <a accesskey="n" href="ar01s12.html">Next</a></td></tr></table><hr size="1"></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="N11DFF"></a>Persistant Storage</h2></div></div><div></div></div><p>At this time it is only possible to have three collections in which
+ data is stored persistantly (i.e. data available to multiple requests).
+ These are: <code class="literal">IP</code>, <code class="literal"> SESSION</code> and <code class="literal">USER</code>.</p><p>Every collection contains several built-in variables that are
+ available and are read-only unless otherwise specified:</p><div class="orderedlist"><ol type="1"><li><p><code class="literal">CREATE_TIME</code> - date/time of
+ the creation of the collection.</p></li><li><p><code class="literal">IS_NEW</code> - set to 1 if the
+ collection is new (not yet persisted) otherwise set to 0.</p></li><li><p><code class="literal">KEY</code> - the value of the
+ initcol variable (the client's IP address in the example).</p></li><li><p><code class="literal">LAST_UPDATE_TIME</code> - date/time
+ of the last update to the collection.</p></li><li><p><code class="literal">TIMEOUT</code> - date/time in
+ seconds when the collection will be updated on disk from memory (if no
+ other updates occur). This variable may be set if you wish to specifiy
+ an explicit expiration time (default is 3600 seconds).</p></li><li><p><code class="literal">UPDATE_COUNTER</code> - how many
+ times the collection has been updated since creation.</p></li><li><p><code class="literal">UPDATE_RATE</code> - is the average
+ rate updates per minute since creation.</p></li></ol></div><p>To create a collection to hold session variables (<code class="literal">SESSION</code>) use action <code class="literal">setsid</code>. To create a collection to hold user
+ variables (<code class="literal">USER</code>) use action <code class="literal">setuid</code>. To create a collection to hold client
+ address variables (<code class="literal">IP</code>) use action
+ <code class="literal">initcol</code>.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>ModSecurity implements atomic updates of persistent variables only
+ for integer variables (counters) at this time. Variables are read from
+ storage whenever <code class="literal">initcol</code> is encountered in the rules
+ and persisted at the end of request processing. Counters are adjusted by
+ applying a delta generated by re-reading the persisted data just before
+ being persisted. This keeps counter data consistent even if the counter
+ was modified and persisted by another thread/process during the
+ transaction.</p></div><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>ModSecurity uses a Berkley Database (SDBM) for persistant storage.
+ This type of database is generally limited to storing a maximum of 1008
+ bytes per key. This may be a limitation if you are attempting to store a
+ considerable amount of data in variables for a single key. Some of this
+ limitation is planned to be reduced in a future version of
+ ModSecurity.</p></div></div><div id="navfooter"><hr size="1"><table summary="Navigation footer" width="100%"><tr><td align="left" width="40%"><a accesskey="p" href="ar01s10.html">Prev</a> </td><td align="center" width="20%"> </td><td align="right" width="40%"> <a accesskey="n" href="ar01s12.html">Next</a></td></tr><tr><td valign="top" align="left" width="40%">Macro Expansion </td><td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td><td valign="top" align="right" width="40%"> Miscellaneous Topics</td></tr></table></div><div align="center" class="copyright">Copyright (C) 2004-2009 <a href="http://www.breach.com">Breach Security</a></div></body></html>
\ No newline at end of file
--- /dev/null
+<html><head><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Miscellaneous Topics</title><link href="modsecurity-reference.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.69.1" name="generator"><link rel="start" href="index.html" title="ModSecurity® Reference
+ Manual"><link rel="up" href="index.html" title="ModSecurity® Reference
+ Manual"><link rel="prev" href="ar01s11.html" title="Persistant Storage"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div style="background:#F5F5F5;width:100%;border-top:1px solid #DDDDDD;border-bottom:1px solid #DDDDDD"><table width="100%" cellspacing="0" cellpadding="0"><tr><td><a href="http://www.modsecurity.org"><img style="margin:4px" src="modsecurity.gif" width="120" height="36" alt="ModSecurity" border="0"></a></td><td align="right"><a href="http://www.breach.com"><img style="margin:6px" src="breach-logo-small.gif" height="36" width="100" border="0"></a></td></tr></table></div><div id="navheader"><table summary="Navigation header" width="100%"><tr><th align="center" colspan="3">Miscellaneous Topics</th></tr><tr><td align="left" width="20%"><a accesskey="p" href="ar01s11.html">Prev</a> </td><td align="center" width="60%"> <a accesskey="h" href="index.html">Home</a></td><td align="right" width="20%"> </td></tr></table><hr size="1"></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="N11E63"></a>Miscellaneous Topics</h2></div></div><div></div></div><p></p><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11E67"></a>Impedance Mismatch</h3></div></div><div></div></div><p>Web application firewalls have a difficult job trying to make
+ sense of data that passes by, without any knowledge of the application
+ and its business logic. The protection they provide comes from having an
+ independent layer of security on the outside. Because data validation is
+ done twice, security can be increased without having to touch the
+ application. In some cases, however, the fact that everything is done
+ twice brings problems. Problems can arise in the areas where the
+ communication protocols are not well specified, or where either the
+ device or the application do things that are not in the specification.
+ In such cases it may be possible to design payload that will be
+ interpreted in one way by one device and in another by the other device.
+ This problem is better known as Impedance Mismatch. It can be exploited
+ to evade the security devices.</p><p>While we will continue to enhance ModSecurity to deal with various
+ evasion techniques the problem can only be minimized, but never solved.
+ With so many different application backend chances are some will always
+ do something completely unexpected. The only solution is to be aware of
+ the technologies in the backend when writing rules, adapting the rules
+ to remove the mismatch. See the next section for some examples.</p><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="N11E6E"></a>PHP Peculiarities for ModSecurity Users</h4></div></div><div></div></div><p>When writing rules to protect PHP applications you need to pay
+ attention to the following facts:</p><div class="orderedlist"><ol type="1"><li><p>When "register_globals" is set to "On" request parameters
+ are automatically converted to script variables. In some PHP
+ versions it is even possible to override the $GLOBALS
+ array.</p></li><li><p>Whitespace at the beginning of parameter names is ignored.
+ (This is very dangerous if you are writing rules to target
+ specific named variables.)</p></li><li><p>The remaining whitespace (in parameter names) is converted
+ to underscores. The same applies to dots and to a "[" if the
+ variable name does not contain a matching closing bracket.
+ (Meaning that if you want to exploit a script through a variable
+ that contains an underscore in the name you can send a parameter
+ with a whitespace or a dot instead.)</p></li><li><p>Cookies can be treated as request parameters.</p></li><li><p>The discussion about variable names applies equally to the
+ cookie names.</p></li><li><p>The order in which parameters are taken from the request and
+ the environment is EGPCS (environment, GET, POST, Cookies,
+ built-in variables). This means that a POST parameter will
+ overwrite the parameters transported on the request line (in
+ QUERY_STRING).</p></li><li><p>When "magic_quotes_gpc" is set to "On" PHP will use
+ backslash to escape the following characters: single quote, double
+ quote, backslash, and the nul byte.</p></li><li><p>If "magic_quotes_sybase" is set to "On" only the single
+ quote will be escaped using another single quote. In this case the
+ "magic_quotes_gpc" setting becomes irrelevant. The
+ "magic_quotes_sybase" setting completely overrides the
+ "magic_quotes_gpc" behaviour but "magic_quotes_gpc" still must be
+ set to "On" for the Sybase-specific quoting to be work.</p></li><li><p>PHP will also automatically create nested arrays for you.
+ For example "p[x][y]=1" results in a total of three
+ variables.</p></li></ol></div></div></div></div><div id="navfooter"><hr size="1"><table summary="Navigation footer" width="100%"><tr><td align="left" width="40%"><a accesskey="p" href="ar01s11.html">Prev</a> </td><td align="center" width="20%"> </td><td align="right" width="40%"> </td></tr><tr><td valign="top" align="left" width="40%">Persistant Storage </td><td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td><td valign="top" align="right" width="40%"> </td></tr></table></div><div align="center" class="copyright">Copyright (C) 2004-2009 <a href="http://www.breach.com">Breach Security</a></div></body></html>
\ No newline at end of file
--- /dev/null
+<html><head><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Configuration Directives</title><link href="modsecurity-reference.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.69.1" name="generator"><link rel="start" href="index.html" title="ModSecurity® Reference
+ Manual"><link rel="up" href="index.html" title="ModSecurity® Reference
+ Manual"><link rel="prev" href="installation.html" title="Installation"><link rel="next" href="processing-phases.html" title="Processing Phases"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div style="background:#F5F5F5;width:100%;border-top:1px solid #DDDDDD;border-bottom:1px solid #DDDDDD"><table width="100%" cellspacing="0" cellpadding="0"><tr><td><a href="http://www.modsecurity.org"><img style="margin:4px" src="modsecurity.gif" width="120" height="36" alt="ModSecurity" border="0"></a></td><td align="right"><a href="http://www.breach.com"><img style="margin:6px" src="breach-logo-small.gif" height="36" width="100" border="0"></a></td></tr></table></div><div id="navheader"><table summary="Navigation header" width="100%"><tr><th align="center" colspan="3">Configuration Directives</th></tr><tr><td align="left" width="20%"><a accesskey="p" href="installation.html">Prev</a> </td><td align="center" width="60%"> <a accesskey="h" href="index.html">Home</a></td><td align="right" width="20%"> <a accesskey="n" href="processing-phases.html">Next</a></td></tr></table><hr size="1"></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="configuration-directives"></a>Configuration Directives</h2></div></div><div></div></div><p>The following section outlines all of the ModSecurity directives.
+ Most of the ModSecurity directives can be used inside the various Apache
+ Scope Directives such as <code class="literal">VirtualHost</code>,
+ <code class="literal">Location</code>, <code class="literal">LocationMatch</code>,
+ <code class="literal">Directory</code>, etc... There are others, however, that can
+ only be used once in the main configuration file. This information is
+ specified in the Scope sections below. The first version to use a given
+ directive is given in the Version sections below.</p><p>These rules, along with the Core rules files, should be contained is
+ files outside of the httpd.conf file and called up with Apache "Include"
+ directives. This allows for easier updating/migration of the rules. If you
+ create your own custom rules that you would like to use with the Core
+ rules, you should create a file called -
+ <code class="filename">modsecurity_crs_15_customrules.conf</code> and place it in
+ the same directory as the Core rules files. By using this file name, your
+ custom rules will be called up after the standard ModSecurity Core rules
+ configuration file but before the other Core rules. This allows your rules
+ to be evaluated first which can be useful if you need to implement
+ specific "allow" rules or to correct any false positives in the Core rules
+ as they are applied to your site.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>It is highly encouraged that you do not edit the Core rules files
+ themselves but rather place all changes (such as
+ <code class="literal">SecRuleRemoveByID</code>, etc...) in your custom rules file.
+ This will allow for easier upgrading as newer Core rules are released by
+ Breach Security on the ModSecurity website.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N101B0"></a><code class="literal">SecAction</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Unconditionally processes the
+ action list it receives as the first and only parameter. It accepts one
+ parameter, the syntax of which is identical to the third parameter
+ of<code class="literal"> SecRule</code>.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecAction
+ action1,action2,action3</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecAction
+ nolog,phase:1,initcol:RESOURCE=%{REQUEST_FILENAME}</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> Any</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> None</p><p>SecAction is best used when you unconditionally execute an action.
+ This is explicit triggering whereas the normal Actions are conditional
+ based on data inspection of the request/response. This is a useful
+ directive when you want to run certain actions such as
+ <code class="literal">initcol</code> to initialize collections.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N101E1"></a><code class="literal">SecArgumentSeparator</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Specifies which character to use
+ as separator for<code class="literal">
+ application/x-www-form-urlencoded</code> content. Defaults to
+ <code class="literal">&</code>. Applications are sometimes
+ (very rarely) written to use a semicolon (<code class="literal">;</code>).</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecArgumentSeparator character</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecArgumentSeparator ;</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> Any</p><p><span class="emphasis"><em>Scope:</em></span> Main</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> None</p><p>This directive is needed if a backend web application is using a
+ non-standard argument separator. If this directive is not set properly
+ for each web application, then ModSecurity will not be able to parse the
+ arguments appropriately and the effectiveness of the rule matching will
+ be significantly decreased.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10216"></a><code class="literal">SecAuditEngine</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configures the audit logging
+ engine.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecAuditEngine On|Off|RelevantOnly</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecAuditEngine On</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> Can be set/changed with
+ the "<code class="literal">ctl</code>" action for the current transaction.</p><p>Example: The following example shows the various audit directives
+ used together.</p><pre class="programlisting"><span class="emphasis"><em>SecAuditEngine RelevantOnly</em></span>
+SecAuditLog logs/audit/audit.log
+SecAuditLogParts ABCFHZ
+SecAuditLogType concurrent
+SecAuditLogStorageDir logs/audit
+<span class="emphasis"><em>SecAuditLogRelevantStatus ^(?:5|4\d[^4])</em></span></pre><p>Possible values are:</p><div class="itemizedlist"><ul type="disc"><li><p><code class="literal">On</code> - log all transactions
+ by default.</p></li><li><p><code class="literal">Off</code> - do not log
+ transactions by default.</p></li><li><p><code class="literal">RelevantOnly</code> - by default
+ only log transactions that have triggered a warning or an error, or
+ have a status code that is considered to be relevant (see<code class="literal"> SecAuditLogRelevantStatus</code>).</p></li></ul></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10263"></a><code class="literal">SecAuditLog</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Defines the path to the main
+ audit log file.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecAuditLog
+ /path/to/auditlog</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecAuditLog
+ /usr/local/apache/logs/audit.log</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> This file is open on
+ startup when the server typically still runs as<span class="emphasis"><em>
+ root</em></span>. You should not allow non-root users to have write
+ privileges for this file or for the directory it is stored in..</p><p>This file will be used to store the audit log entries if serial
+ audit logging format is used. If concurrent audit logging format is used
+ this file will be used as an index, and contain a record of all audit
+ log files created. If you are planning to use Concurrent audit logging
+ and sending your audit log data off to a remote Console host or
+ commercial ModSecurity Management Appliance, then you will need to
+ configure and use the ModSecurity Log Collector (mlogc) and use the
+ following format for the audit log:</p><p><pre class="programlisting">SecAuditLog "|/path/to/mlogc /path/to/mlogc.conf"</pre></p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10293"></a><code class="literal">SecAuditLog2</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Defines the path to the
+ secondary audit log index file when concurrent logging is enabled. See
+ <code class="literal">SecAuditLog2</code> for more details.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecAuditLog2
+ /path/to/auditlog2</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecAuditLog2
+ /usr/local/apache/logs/audit2.log</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.1.2</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> A main audit log must be
+ defined via <code class="literal">SecAuditLog</code> before this
+ directive may be used. Additionally, this log is only used for
+ replicating the main audit log index file when concurrent audit logging
+ is used. It will <span class="emphasis"><em>not</em></span> be used for non-concurrent
+ audit logging.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N102C5"></a><code class="literal">SecAuditLogDirMode</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configures the mode
+ (permissions) of any directories created for concurrent audit logs using
+ an octal mode (as used in chmod). See <code class="literal">SecAuditLogFileMode</code> for controlling the mode
+ of audit log files.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecAuditLogDirMode octal_mode|"default"</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecAuditLogDirMode 02750</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.5.10</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> This feature is not
+ available on operating systems not supporting octal file modes. The
+ default mode (0600) only grants read/write access to the account writing
+ the file. If access from another account is needed (using mpm-itk is a
+ good example), then this directive may be required. However, use this
+ directive with caution to avoid exposing potentially sensitive data to
+ unauthorized users. Using the value "default" will revert back to the
+ default setting.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>The process umask may still limit the mode if it is being more
+ restrictive than the mode set using this directive.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N102F3"></a><code class="literal">SecAuditLogFileMode</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configures the mode
+ (permissions) of any files created for concurrent audit logs using an
+ octal mode (as used in chmod). See <code class="literal">SecAuditLogDirMode</code> for controlling the mode of
+ created audit log directories.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecAuditLogFileMode
+ octal_mode|"default"</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecAuditLogFileMode 00640</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.5.10</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> This feature is not
+ available on operating systems not supporting octal file modes. The
+ default mode (0600) only grants read/write access to the account writing
+ the file. If access from another account is needed (using mpm-itk is a
+ good example), then this directive may be required. However, use this
+ directive with caution to avoid exposing potentially sensitive data to
+ unauthorized users. Using the value "default" will revert back to the
+ default setting.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>The process umask may still limit the mode if it is being more
+ restrictive than the mode set using this directive.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10321"></a><code class="literal">SecAuditLogParts</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Defines which part of each
+ transaction are going to be recorded in audit log. Each part is assigned
+ a single letter. If a letter appears in the list then the equivalent
+ part of each transactions will be recorded. See below for the list of
+ all parts.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecAuditLogParts PARTS</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecAuditLogParts ABCFHZ</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> At this time ModSecurity
+ does not log response bodies of stock Apache responses (e.g. <code class="literal">404</code>), or the <code class="literal">Server</code> and <code class="literal">Date</code> response headers.</p><p>Default:<code class="literal"> ABCFHZ</code>.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Please refer to the ModSecurity Data Formats document for a
+ detailed description of every available part.</p></div><p>Available audit log parts:</p><div class="itemizedlist"><ul type="disc"><li><p><code class="literal">A</code> - audit log header
+ (mandatory)</p></li><li><p><code class="literal">B</code> - request headers</p></li><li><p><code class="literal">C</code> - request body (present
+ only if the request body exists and ModSecurity is configured to
+ intercept it)</p></li><li><p><code class="literal">D</code> - RESERVED for
+ intermediary response headers, not implemented yet.</p></li><li><p><code class="literal">E</code> - intermediary response
+ body (present only if ModSecurity is configured to intercept
+ response bodies, and if the audit log engine is configured to record
+ it). Intermediary response body is the same as the actual response
+ body unless ModSecurity intercepts the intermediary response body,
+ in which case the actual response body will contain the error
+ message (either the Apache default error message, or the
+ ErrorDocument page).</p></li><li><p><code class="literal">F</code> - final response headers
+ (excluding the Date and Server headers, which are always added by
+ Apache in the late stage of content delivery).</p></li><li><p><code class="literal">G</code> - RESERVED for the actual
+ response body, not implemented yet.</p></li><li><p><code class="literal">H</code> - audit log
+ trailer</p></li><li><p><code class="literal">I</code> - This part is a
+ replacement for part C. It will log the same data as C in all cases
+ except when <code class="literal">multipart/form-data</code>
+ encoding in used. In this case it will log a fake <code class="literal">application/x-www-form-urlencoded</code> body
+ that contains the information about parameters but not about the
+ files. This is handy if you don't want to have (often large) files
+ stored in your audit logs.</p></li><li><p><code class="literal">J</code> - RESERVED. This part,
+ when implemented, will contain information about the files uploaded
+ using <code class="literal">multipart/form-data</code> encoding.</p></li><li><p><code class="literal">K</code> - This part contains a
+ full list of every rule that matched (one per line) in the order
+ they were matched. The rules are fully qualified and will thus show
+ inherited actions and default operators. Supported as of
+ v2.5.0</p></li><li><p><code class="literal">Z</code> - final boundary,
+ signifies the end of the entry (mandatory)</p></li></ul></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N103B4"></a><code class="literal">SecAuditLogRelevantStatus</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configures which response status
+ code is to be considered relevant for the purpose of audit
+ logging.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecAuditLogRelevantStatus REGEX</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecAuditLogRelevantStatus
+ ^(?:5|4\d[^4])</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> Must have the
+ <code class="literal">SecAuditEngine</code> set to
+ <code class="literal">RelevantOnly</code>. The parameter is a regular
+ expression.</p><p>The main purpose of this directive is to allow you to configure
+ audit logging for only transactions that generate the specified HTTP
+ Response Status Code. This directive is often used to the decrease the
+ total size of the audit log file. Keep in mind that if this parameter is
+ used, then successful attacks that result in a 200 OK status code will
+ not be logged.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N103E5"></a><code class="literal">SecAuditLogStorageDir</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configures the storage directory
+ where concurrent audit log entries are to be stored.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecAuditLogStorageDir
+ /path/to/storage/dir</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecAuditLogStorageDir
+ /usr/local/apache/logs/audit</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> SecAuditLogType must be
+ set to Concurrent. The directory must already be created before starting
+ Apache and it must be writable by the web server user as new files are
+ generated at runtime.</p><p>As with all logging mechanisms, ensure that you specify a file
+ system location that has adequate disk space and is not on the root
+ partition.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1040E"></a><code class="literal">SecAuditLogType</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configures the type of audit
+ logging mechanism to be used.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecAuditLogType Serial|Concurrent</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecAuditLogType Serial</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> Must specify
+ <code class="literal">SecAuditLogStorageDir</code> if you use concurrent
+ logging.</p><p>Possible values are:</p><div class="orderedlist"><ol type="1"><li><p><code class="literal">Serial</code> - all audit log
+ entries will be stored in the main audit logging file. This is more
+ convenient for casual use but it is slower as only one audit log
+ entry can be written to the file at any one file.</p></li><li><p><code class="literal">Concurrent</code> - audit log
+ entries will be stored in separate files, one for each transaction.
+ Concurrent logging is the mode to use if you are going to send the
+ audit log data off to a remote ModSecurity Console host.</p></li></ol></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1044A"></a><code class="literal">SecCacheTransformations</code>
+ (Deprecated/Experimental)</h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Controls caching of
+ transformations. Caching is off by default starting with 2.5.6, when it
+ was deprecated and downgraded back to experimental.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecCacheTransformations On|Off
+ [options]</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecCacheTransformations On
+ "minlen:64,maxlen:0"</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.5.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> N/A</p><p>First parameter:</p><div class="itemizedlist"><ul type="disc"><li><p><code class="literal">On</code> - cache transformations
+ (per transaction, per phase) allowing identical transformations to
+ be performed only once. (default)</p></li><li><p><code class="literal">Off</code> - do not cache any
+ transformations, forcing all transformations to be performed for
+ each rule executed.</p></li></ul></div><p>The following options are allowed (comma separated):</p><div class="itemizedlist"><ul type="disc"><li><p><code class="literal">incremental:on|off</code> -
+ enabling this option will cache every transformation instead of just
+ the final transformation. (default: off)</p></li><li><p><code class="literal">maxitems:N</code> - do not allow
+ more than N transformations to be cached. The cache will then be
+ disabled. A zero value is interpreted as "unlimited". This option
+ may be useful to limit caching for a form with a large number of
+ ARGS. (default: 512)</p></li><li><p><code class="literal">minlen:N</code> - do not cache the
+ transformation if the value's length is less than N bytes. (default:
+ 32)</p></li><li><p><code class="literal">maxlen:N</code> - do not cache the
+ transformation if the value's length is more than N bytes. A zero
+ value is interpreted as "unlimited". (default: 1024)</p></li></ul></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1049C"></a><code class="literal">SecChrootDir</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configures the directory path
+ that will be used to jail the web server process.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecChrootDir
+ /path/to/chroot/dir</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecChrootDir /chroot</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Main</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> This feature is not
+ available on Windows builds. The internal chroot functionality provided
+ by ModSecurity works great for simple setups. One example of a simple
+ setup is Apache serving static files only, or running scripts using
+ modules.builds. Some problems you might encounter with more complex
+ setups:</p><div class="orderedlist"><ol type="1"><li><p>DNS lookups do not work (this is because this feature requires
+ a shared library that is loaded on demand, after chroot takes
+ place).</p></li><li><p>You cannot send email from PHP because it uses sendmail and
+ sendmail is outside the jail.</p></li><li><p>In some cases Apache graceful (reload) no longer works.</p></li></ol></div><p>You should be aware that the internal chroot feature might not be
+ 100% reliable. Due to the large number of default and third-party
+ modules available for the Apache web server, it is not possible to
+ verify the internal chroot works reliably with all of them. A module,
+ working from within Apache, can do things that make it easy to break out
+ of the jail. In particular, if you are using any of the modules that
+ fork in the module initialisation phase (e.g.
+ <code class="literal">mod_fastcgi</code>, <code class="literal">mod_fcgid</code>,
+ <code class="literal">mod_cgid</code>), you are advised to examine each Apache
+ process and observe its current working directory, process root, and the
+ list of open files. Consider what your options are and make your own
+ decision.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N104DD"></a><code class="literal">SecComponentSignature</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description</em></span>: Appends component signature to
+ the ModSecurity signature.</p><p><span class="emphasis"><em>Syntax</em></span>: <code class="literal">SecComponentSignature
+ "COMPONENT_NAME/X.Y.Z (COMMENT)"</code></p><p><span class="emphasis"><em>Example usage</em></span>: <code class="literal">SecComponentSignature
+ "Core Rules/1.2.3"</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope</em></span>: Main</p><p><span class="emphasis"><em>Version</em></span>: 2.5.0</p><p><span class="emphasis"><em>Dependencies/Notes</em></span>: This directive should be
+ used to make the presence of significant ModSecurity components known.
+ The entire signature will be recorded in transaction audit log. It
+ should be used by ModSecurity module and rule set writers to make
+ debugging easier.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10504"></a><code class="literal">SecContentInjection</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Enables content injection using
+ actions <code class="literal">append</code> and <code class="literal">prepend</code>.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecContentInjection
+ (On|Off)</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecContentInjection
+ On</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope</em></span>: Any</p><p><span class="emphasis"><em>Version</em></span>: 2.5.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> N/A</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10533"></a><code class="literal">SecCookieFormat</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Selects the cookie format that
+ will be used in the current configuration context.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecCookieFormat 0|1</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecCookieFormat 0</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> None</p><p>Possible values are:</p><div class="itemizedlist"><ul type="disc"><li><p><code class="literal">0</code> - use version 0
+ (Netscape) cookies. This is what most applications use. It is the
+ default value.</p></li><li><p><code class="literal">1</code> - use version 1
+ cookies.</p></li></ul></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10569"></a><code class="literal">SecDataDir</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Path where persistent data (e.g.
+ IP address data, session data, etc) is to be stored.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecDataDir
+ /path/to/dir</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecDataDir /usr/local/apache/logs/data</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Main</p><p><span class="emphasis"><em>Dependencies/Notes: </em></span> This directive is needed
+ when initcol, setsid an setuid are used. Must be writable by the web
+ server user.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1058C"></a><code class="literal">SecDebugLog</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Path to the ModSecurity debug
+ log file.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecDebugLog
+ /path/to/modsec-debug.log</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecDebugLog
+ /usr/local/apache/logs/modsec-debug.log</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> None</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N105B3"></a><code class="literal">SecDebugLogLevel</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configures the verboseness of
+ the debug log data.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecDebugLogLevel 0|1|2|3|4|5|6|7|8|9</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecDebugLogLevel 4</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> Levels <code class="literal">1 - 3</code> are always sent to the Apache error log.
+ Therefore you can always use level <code class="literal">0</code>
+ as the default logging level in production. Level <code class="literal">5</code> is useful when debugging. It is not
+ advisable to use higher logging levels in production as excessive
+ logging can slow down server significantly.</p><p>Possible values are:</p><div class="itemizedlist"><ul type="disc"><li><p><code class="literal">0</code> - no logging.</p></li><li><p><code class="literal">1</code> - errors (intercepted
+ requests) only.</p></li><li><p><code class="literal">2</code> - warnings.</p></li><li><p><code class="literal">3</code> - notices.</p></li><li><p><code class="literal">4</code> - details of how
+ transactions are handled.</p></li><li><p><code class="literal">5</code> - as above, but including
+ information about each piece of information handled.</p></li><li><p><code class="literal">9</code> - log everything,
+ including very detailed debugging information.</p></li></ul></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10613"></a><code class="literal">SecDefaultAction</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Defines the default action to
+ take on a rule match.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecDefaultAction
+ action1,action2,action3</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecDefaultAction
+ log,auditlog,deny,status:403,phase:2</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> Any</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> Rules following a
+ <code class="literal">SecDefaultAction</code> directive will inherit this setting
+ unless a specific action is specified for an individual rule or until
+ another <code class="literal">SecDefaultAction</code> is specified. Take special
+ note that in the logging disruptive actions are not allowed, but this
+ can inadvertently be inherited using a disruptive action in
+ <code class="literal">SecDefaultAction</code>.</p><p>The default value is minimal (differing from previous
+ versions):</p><pre class="programlisting">SecDefaultAction phase:2,log,auditlog,pass</pre><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p><code class="literal">SecDefaultAction</code> must specify a disruptive
+ action and a processing phase and cannot contain metadata
+ actions.</p></div><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">SecDefaultAction</code> is <span class="emphasis"><em>not</em></span>
+ inherited across configuration contexts. (For an example of why this
+ may be a problem for you, read the following ModSecurity Blog entry
+ <a href="http://blog.modsecurity.org/2008/07/modsecurity-tri.html" target="_top">http://blog.modsecurity.org/2008/07/modsecurity-tri.html</a>).</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1065E"></a><code class="literal">SecGeoLookupDb</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Defines the path to the
+ geographical database file.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecGeoLookupDb /path/to/db</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecGeoLookupDb
+ /usr/local/geo/data/GeoLiteCity.dat</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.5.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> Check out
+ <code class="literal">maxmind.com</code> for free database files.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10689"></a><code class="literal">SecGuardianLog</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configuration directive to use
+ the httpd-guardian script to monitor for Denial of Service (DoS)
+ attacks.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecGuardianLog |/path/to/httpd-guardian</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecGuardianLog
+ |/usr/local/apache/bin/httpd-guardian</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Main</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> By default httpd-guardian
+ will defend against clients that send more than 120 requests in a
+ minute, or more than 360 requests in five minutes.</p><p>Since 1.9, ModSecurity supports a new directive, SecGuardianLog,
+ that is designed to send all access data to another program using the
+ piped logging feature. Since Apache is typically deployed in a
+ multi-process fashion, making information sharing difficult, the idea is
+ to deploy a single external process to observe all requests in a
+ stateful manner, providing additional protection.</p><p>Development of a state of the art external protection tool will be
+ a focus of subsequent ModSecurity releases. However, a fully functional
+ tool is already available as part of the <a href="http://www.apachesecurity.net/tools/" target="_top">Apache httpd tools
+ project</a>. The tool is called httpd-guardian and can be used to
+ defend against Denial of Service attacks. It uses the blacklist tool
+ (from the same project) to interact with an iptables-based (Linux) or
+ pf-based (*BSD) firewall, dynamically blacklisting the offending IP
+ addresses. It can also interact with SnortSam (http://www.snortsam.net).
+ Assuming httpd-guardian is already configured (look into the source code
+ for the detailed instructions) you only need to add one line to your
+ Apache configuration to deploy it:</p><pre class="programlisting">SecGuardianLog |/path/to/httpd-guardian</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N106BC"></a><code class="literal">SecMarker</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Adds a fixed rule marker in the
+ ruleset to be used as a target in a <code class="literal">skipAfter</code> action.
+ A <code class="literal">SecMarker</code> directive essentially creates a rule that
+ does nothing and whose only purpose it to carry the given ID.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecMarker
+ ID</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecMarker 9999</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> Any</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.5.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> None</p><p><pre class="programlisting">SecRule REQUEST_URI "^/$" \
+ "chain,t:none,t:urlDecode,t:lowercase,t:normalisePath,<span class="emphasis"><em>skipAfter:99</em></span>"
+SecRule REMOTE_ADDR "^127\.0\.0\.1$" "chain"
+SecRule REQUEST_HEADERS:User-Agent \
+ "^Apache \(internal dummy connection\)$" "t:none"
+SecRule &REQUEST_HEADERS:Host "@eq 0" \
+ "deny,log,status:400,id:08,severity:4,msg:'Missing a Host Header'"
+SecRule &REQUEST_HEADERS:Accept "@eq 0" \
+ "log,deny,log,status:400,id:15,msg:'Request Missing an Accept Header'"
+<span class="emphasis"><em>
+SecMarker 99</em></span></pre></p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N106F4"></a><code class="literal">SecPdfProtect</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Enables the PDF XSS protection
+ functionality. Once enabled access to PDF files is tracked. Direct
+ access attempts are redirected to links that contain one-time tokens.
+ Requests with valid tokens are allowed through unmodified. Requests with
+ invalid tokens are also allowed through but with forced download of the
+ PDF files. This implementation uses response headers to detect PDF files
+ and thus can be used with dynamically generated PDF files that do not
+ have the <code class="filename">.pdf</code> extension in the request URI.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecPdfProtect On|Off</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecPdfProtect On</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.5.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> None</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1071F"></a><code class="literal">SecPdfProtectMethod</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configure desired protection
+ method to be used when requests for PDF files are detected. Possible
+ values are <code class="literal">TokenRedirection</code> and
+ <code class="literal">ForcedDownload</code>. The token redirection approach will
+ attempt to redirect with tokens where possible. This allows PDF files to
+ continue to be opened inline but only works for GET requests. Forced
+ download always causes PDF files to be delivered as opaque binaries and
+ attachments. The latter will always be used for non-GET requests. Forced
+ download is considered to be more secure but may cause usability
+ problems for users ("This PDF won't open anymore!").</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecPdfProtectMethod method</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecPdfProtectMethod TokenRedirection</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.5.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> None</p><p><span class="emphasis"><em>Default:</em></span>
+ <code class="literal">TokenRedirection</code></p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10755"></a><code class="literal">SecPdfProtectSecret</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Defines the secret that will be
+ used to construct one-time tokens. You should use a reasonably long
+ value for the secret (e.g. 16 characters is good). Once selected the
+ secret should not be changed as it will break the tokens that were sent
+ prior to change. But it's not a big deal even if you change it. It will
+ just force download of PDF files with tokens that were issued in the
+ last few seconds.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecPdfProtectSecret secret</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecPdfProtectSecret
+ MyRandomSecretString</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.5.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> None</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1077C"></a><code class="literal">SecPdfProtectTimeout</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Defines the token timeout. After
+ token expires it can no longer be used to allow access to PDF file.
+ Request will be allowed through but the PDF will be delivered as
+ attachment.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecPdfProtectTimeout timeout</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecPdfProtectTimeout 10</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.5.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> None</p><p><span class="emphasis"><em>Default:</em></span> <code class="literal">10</code></p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N107AA"></a><code class="literal">SecPdfProtectTokenName</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Defines the name of the token.
+ The only reason you would want to change the name of the token is if you
+ wanted to hide the fact you are running ModSecurity. It's a good reason
+ but it won't really help as the adversary can look into the algorithm
+ used for PDF protection and figure it out anyway. It does raise the bar
+ slightly so go ahead if you want to.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecPdfProtectTokenName name</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecPdfProtectTokenName PDFTOKEN</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.5.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> None</p><p><span class="emphasis"><em>Default:</em></span> <code class="literal">PDFTOKEN</code></p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N107D8"></a><code class="literal">SecRequestBodyAccess</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configures whether request
+ bodies will be buffered and processed by ModSecurity by default.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecRequestBodyAccess On|Off</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecRequestBodyAccess On</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> This directive is
+ required if you plan to inspect <code class="literal">POST_PAYLOAD</code>. This
+ directive must be used along with the "phase:2" processing phase action
+ and <code class="literal">REQUEST_BODY</code> variable/location. If any of these 3
+ parts are not configured, you will not be able to inspect the request
+ bodies.</p><p>Possible values are:</p><div class="itemizedlist"><ul type="disc"><li><p><code class="literal">On</code> - access request
+ bodies.</p></li><li><p><code class="literal">Off</code> - do not attempt to
+ access request bodies.</p></li></ul></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10816"></a><code class="literal">SecRequestBodyLimit</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configures the maximum request
+ body size ModSecurity will accept for buffering.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecRequestBodyLimit NUMBER_IN_BYTES</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecRequestBodyLimit 134217728</code></p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> 131072 KB (134217728
+ bytes) is the default setting. Anything over this limit will be rejected
+ with status code 413 Request Entity Too Large. There is a hard limit of
+ 1 GB.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10839"></a><code class="literal">SecRequestBodyNoFilesLimit</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configures the maximum request
+ body size ModSecurity will accept for buffering, excluding the size of
+ files being transported in the request. This directive comes handy to
+ further reduce susceptibility to DoS attacks when someone is sending
+ request bodies of very large sizes. Web applications that require file
+ uploads must configure <code class="literal">SecRequestBodyLimit</code> to a high
+ value. Since large files are streamed to disk file uploads will not
+ increase memory consumption. However, it's still possible for someone to
+ take advantage of a large request body limit and send non-upload
+ requests with large body sizes. This directive eliminates that
+ loophole.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecRequestBodyNoFilesLimit
+ NUMBER_IN_BYTES</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecRequestBodyLimit 131072</code></p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.5.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> 1 MB (1048576 bytes) is
+ the default setting. This value is very conservative. For most
+ applications you should be able to reduce it down to 128 KB or lower.
+ Anything over the limit will be rejected with status code <code class="literal">413
+ Request Entity Too Large</code>. There is a hard limit of 1
+ GB.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10864"></a><code class="literal">SecRequestBodyInMemoryLimit</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configures the maximum request
+ body size ModSecurity will store in memory.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecRequestBodyInMemoryLimit
+ NUMBER_IN_BYTES</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecRequestBodyInMemoryLimit 131072</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> None</p><p>By default the limit is 128 KB:</p><pre class="programlisting"># Store up to 128 KB in memory
+SecRequestBodyInMemoryLimit 131072</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10890"></a><code class="literal">SecResponseBodyLimit</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configures the maximum response
+ body size that will be accepted for buffering.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecResponseBodyLimit NUMBER_IN_BYTES</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecResponseBodyLimit 524228</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> Anything over this limit
+ will be rejected with status code 500 Internal Server Error. This
+ setting will not affect the responses with MIME types that are not
+ marked for buffering. There is a hard limit of 1 GB.</p><p>By default this limit is configured to 512 KB:</p><pre class="programlisting"># Buffer response bodies of up to 512 KB in length
+SecResponseBodyLimit 524288</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N108BC"></a><code class="literal">SecResponseBodyLimitAction</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description</em></span>: Controls what happens once a
+ response body limit, configured with
+ <code class="literal">SecResponseBodyLimit</code>, is encountered. By default
+ ModSecurity will reject a response body that is longer than specified.
+ Some web sites, however, will produce very long responses making it
+ difficult to come up with a reasonable limit. Such sites would have to
+ raise the limit significantly to function properly defying the purpose
+ of having the limit in the first place (to control memory consumption).
+ With the ability to choose what happens once a limit is reached site
+ administrators can choose to inspect only the first part of the
+ response, the part that can fit into the desired limit, and let the rest
+ through. Some could argue that allowing parts of responses to go
+ uninspected is a weakness. This is true in theory but only applies to
+ cases where the attacker controls the output (e.g. can make it arbitrary
+ long). In such cases, however, it is not possible to prevent leakage
+ anyway. The attacker could compress, obfuscate, or even encrypt data
+ before it is sent back, and therefore bypass any monitoring
+ device.</p><p><span class="emphasis"><em>Syntax</em></span>: <code class="literal">SecResponseBodyLimitAction
+ Reject|ProcessPartial</code></p><p><span class="emphasis"><em>Example Usage</em></span>:
+ <code class="literal">SecResponseBodyLimitAction ProcessPartial</code></p><p><span class="emphasis"><em>Processing Phase</em></span>: N/A</p><p><span class="emphasis"><em>Scope</em></span>: Any</p><p><span class="emphasis"><em>Version:</em></span> 2.5.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> None</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N108E7"></a><code class="literal">SecResponseBodyMimeType</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configures which<code class="literal"> MIME</code> types are to be considered for response
+ body buffering.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecResponseBodyMimeType mime/type</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecResponseBodyMimeType text/plain
+ text/html</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> Multiple<code class="literal"> SecResponseBodyMimeType</code> directives can be
+ used to add<code class="literal"> MIME</code> types.</p><p>The default value is <code class="literal">text/plaintext/html</code>:</p><pre class="programlisting">SecResponseBodyMimeType text/plain text/html</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10923"></a><code class="literal">SecResponseBodyMimeTypesClear</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Clears the list of <code class="literal">MIME</code> types considered for response body
+ buffering, allowing you to start populating the list from
+ scratch.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecResponseBodyMimeTypesClear</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecResponseBodyMimeTypesClear</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> None</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1094E"></a><code class="literal">SecResponseBodyAccess</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configures whether response
+ bodies are to be buffer and analysed or not.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecResponseBodyAccess On|Off</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecResponseBodyAccess On</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> This directive is
+ required if you plan to inspect HTML responses. This directive must be
+ used along with the "phase:4" processing phase action and RESPONSE_BODY
+ variable/location. If any of these 3 parts are not configured, you will
+ not be able to inspect the response bodies.</p><p>Possible values are:</p><div class="itemizedlist"><ul type="disc"><li><p><code class="literal">On</code> - access response bodies
+ (but only if the MIME type matches, see above).</p></li><li><p><code class="literal">Off</code> - do not attempt to
+ access response bodies.</p></li></ul></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10984"></a><code class="literal">SecRule</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> <code class="literal">SecRule</code> is the main ModSecurity directive. It
+ is used to analyse data and perform actions based on the results.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecRule
+ VARIABLES OPERATOR [ACTIONS]</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecRule REQUEST_URI "attack" \</code></p><p><code class="literal">
+ "phase:1,t:none,t:urlDecode,t:lowercase,t:normalisePath"</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> Any</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> None</p><p>In general, the format of this rule is as follows:</p><pre class="programlisting">SecRule VARIABLES OPERATOR [ACTIONS]</pre><p>The second part, <code class="literal">OPERATOR</code>,
+ specifies how they are going to be checked. The third (optional) part,
+ <code class="literal">ACTIONS</code>, specifies what to do
+ whenever the operator used performs a successful match against a
+ variable.</p><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="N109C2"></a>Variables in rules</h4></div></div><div></div></div><p>The first part,<code class="literal"> VARIABLES</code>,
+ specifies which variables are to be checked. For example, the
+ following rule will reject a transaction that has the word<span class="emphasis"><em>
+ dirty</em></span> in the URI:</p><pre class="programlisting">SecRule ARGS dirty</pre><p>Each rule can specify one or more variables:</p><pre class="programlisting">SecRule ARGS|REQUEST_HEADERS:User-Agent dirty</pre><p>There is a third format supported by the selection operator -
+ XPath expression. XPath expressions can only used against the special
+ variable XML, which is available only of the request body was
+ processed as XML.</p><pre class="programlisting">SecRule XML:/xPath/Expression dirty</pre><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Not all collections support all selection operator format
+ types. You should refer to the documentation of each collection to
+ determine what is and isn't supported.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="N109DE"></a>Collections</h4></div></div><div></div></div><p>A variable can contain one or many pieces of data, depending on
+ the nature of the variable and the way it is used. We've seen examples
+ of both approaches in the previous section. When a variable can
+ contain more than one value we refer to it as a
+ <span class="emphasis"><em>collection</em></span>.</p><p>Collections are always expanded before a rule is run. For
+ example, the following rule:</p><pre class="programlisting">SecRule ARGS dirty</pre><p>will be expanded to:</p><pre class="programlisting">SecRule ARGS:p dirty
+SecRule ARGS:q dirty</pre><p>in a requests that has only two parameters, named
+ <code class="literal">p</code> and <code class="literal">q</code>.</p><p>Collections come in several flavours:</p><div class="variablelist"><dl><dt><span class="term">Read-only</span></dt><dd><p>Created at runtime using transaction data. For example:
+ <code class="literal">ARGS</code> (contains a list of all request
+ parameter values) and <code class="literal">REQUEST_HEADERS</code>
+ (contains a list of all request header values).</p></dd><dt><span class="term">Transient Read/Write</span></dt><dd><p>The <code class="literal">TX</code> collection is created (empty)
+ for every transaction. Rules can read from it and write to it
+ (using the <code class="literal">setvar</code> action, for example), but
+ the information stored in this collection will not survive the
+ end of transaction.</p></dd><dt><span class="term">Persistent Read/Write</span></dt><dd><p>There are several collections that can be written to, but
+ which are persisted to the storage backend. These collections
+ are used to track clients across transactions. Examples of
+ collections that fall into this type are <code class="literal">IP</code>,
+ <code class="literal">SESSION</code> and <code class="literal">USER</code>.</p></dd></dl></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="N10A2B"></a>Operators in rules</h4></div></div><div></div></div><p>In the simplest possible case you will use a regular expression
+ pattern as the second rule parameter. This is what we've done in the
+ examples above. If you do this ModSecurity assumes you want to use the
+ <code class="literal">rx</code> (regular expression) operator.
+ You can also explicitly specify the operator you want to use by using
+ <code class="literal">@</code>, followed by the name of an
+ operator, at the beginning of the second <code class="literal">SecRule</code>
+ parameter:</p><pre class="programlisting">SecRule ARGS "@rx dirty"</pre><p>Note how we had to use double quotes to delimit the second rule
+ parameter. This is because the second parameter now has whitespace in
+ it. Any number of whitespace characters can follow the name of the
+ operator. If there are any non-whitespace characters there, they will
+ all be treated as a special parameter to the operator. In the case of
+ the regular expression operator the special parameter is the pattern
+ that will be used for comparison.</p><p>The @ can be the second character if you are using negation to
+ negate the result returned by the operator:</p><pre class="programlisting">SecRule &ARGS "!@rx ^0$"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="N10A46"></a>Operator negation</h4></div></div><div></div></div><p>Operator results can be negated by using an exclamation mark at
+ the beginning of the second parameter. The following rule matches if
+ the word <code class="literal">dirty</code> does <span class="emphasis"><em>not</em></span> appear
+ in the <code class="literal">User-Agent</code> request header:</p><pre class="programlisting">SecRule REQUEST_HEADERS:User-Agent !dirty</pre><p>You can use the exclamation mark in combination with any
+ parameter. If you do, the exclamation mark needs to go first, followed
+ by the explicit operator reference. The following rule has the same
+ effect as the previous example:</p><pre class="programlisting">SecRule REQUEST_HEADERS:User-Agent "!@rx dirty"</pre><p>If you need to use negation in a rule that is going to be
+ applied to several variables then it may not be immediately clear what
+ will happen. Consider the following example:</p><pre class="programlisting">SecRule ARGS:p|ARGS:q !dirty</pre><p>The above rule is identical to:</p><pre class="programlisting">SecRule ARGS:p !dirty
+SecRule ARGS:q !dirty</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p>Negation is applied to operations against individual
+ operations, not agains the entire variable list.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="N10A6B"></a>Actions in rules</h4></div></div><div></div></div><p>The third parameter, <code class="literal">ACTIONS</code>,
+ can be omitted only because there is a helper feature that specifies
+ the default action list. If the parameter isn't omitted the actions
+ specified in the parameter will be merged with the default action list
+ to create the actual list of actions that will be processed on a rule
+ match.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10A74"></a><code class="literal">SecRuleInheritance</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configures whether the current
+ context will inherit rules from the parent context (configuration
+ options are inherited in most cases - you should look up the
+ documentation for every directive to determine if it is inherited or
+ not).</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecRuleInheritance On|Off</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecRuleInheritance Off</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> Any</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> Resource-specific
+ contexts (e.g.<code class="literal"> Location</code>, <code class="literal">Directory</code>, etc) cannot override
+ <span class="emphasis"><em>phase1</em></span> rules configured in the main server or in
+ the virtual server. This is because phase 1 is run early in the request
+ processing process, before Apache maps request to resource. Virtual host
+ context can override phase 1 rules configured in the main server.</p><p>Example: The following example shows where ModSecurity may be
+ enabled in the main Apache configuration scope, however you might want
+ to configure your VirtualHosts differently. In the first example, the
+ first VirtualHost is not inheriting the ModSecurity main config
+ directives and in the second one it is.</p><pre class="programlisting">SecRuleEngine On
+SecDefaultAction log,pass,phase:2
+...
+
+<VirtualHost *:80>
+ServerName app1.com
+ServerAlias www.app1.com<span class="emphasis"><em>
+SecRuleInheritance Off</em></span>
+SecDefaultAction log,deny,phase:1,redirect:http://www.site2.com
+...
+</VirtualHost>
+
+<VirtualHost *:80>
+ServerName app2.com
+ServerAlias www.app2.com
+<span class="emphasis"><em>SecRuleInheritance On</em></span> SecRule ARGS "attack"
+...
+</VirtualHost></pre><p>Possible values are:</p><div class="itemizedlist"><ul type="disc"><li><p><code class="literal">On</code> - inherit rules from the
+ parent context.</p></li><li><p><code class="literal">Off</code> - do not inherit rules
+ from the parent context.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Configuration contexts are an Apache concept. Directives
+ <code class="literal"><Directory></code>,
+ <code class="literal"><Files></code>,
+ <code class="literal"><Location></code> and
+ <code class="literal"><VirtualHost></code> are all used to create
+ configuration contexts. For more information please go to the
+ Apache documentation section <a href="http://httpd.apache.org/docs/2.0/sections.html" target="_top">Configuration
+ Sections</a>.</p></div></li></ul></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10AD7"></a><code class="literal">SecRuleEngine</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configures the rules
+ engine.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecRuleEngine On|Off|DetectionOnly</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecRuleEngine On</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> Any</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> This directive can also
+ be controlled by the ctl action (ctl:ruleEngine=off) for per rule
+ processing.</p><p>Possible values are:</p><div class="itemizedlist"><ul type="disc"><li><p><code class="literal">On</code> - process rules.</p></li><li><p><code class="literal">Off</code> - do not process
+ rules.</p></li><li><p><code class="literal">DetectionOnly</code> - process
+ rules but never intercept transactions, even when rules are
+ configured to do so.</p></li></ul></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10B13"></a><code class="literal">SecRuleRemoveById</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Removes matching rules from the
+ parent contexts.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecRuleUpdateActionById RULEID
+ ACTIONLIST</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecRuleRemoveByID 1 2 "9000-9010"</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> Any</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> This directive supports
+ multiple parameters, where each parameter can either be a rule ID, or a
+ range. Parameters that contain spaces must be delimited using double
+ quotes.</p><pre class="programlisting">SecRuleRemoveById 1 2 5 10-20 "400-556" 673</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10B3D"></a><code class="literal">SecRuleRemoveByMsg</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Removes matching rules from the
+ parent contexts.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecRuleRemoveByMsg REGEX</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecRuleRemoveByMsg "FAIL"</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> Any</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> This directive supports
+ multiple parameters. Each parameter is a regular expression that will be
+ applied to the message (specified using the <code class="literal">msg</code> action).</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10B68"></a><code class="literal">SecRuleScript</code> (Experimental)</h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> This directive creates a special
+ rule that executes a Lua script to decide whether to match or not. The
+ main difference from <code class="literal">SecRule</code> is that there are no
+ targets nor operators. The script can fetch any variable from the
+ ModSecurity context and use any (Lua) operator to test them. The second
+ optional parameter is the list of actions whose meaning is identical to
+ that of <code class="literal">SecRule</code>.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecRuleScript
+ /path/to/script.lua [ACTIONS]</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecRuleScript "/path/to/file.lua"
+ "block"</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> Any</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.5.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> None</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>All Lua scripts are compiled at configuration time and cached in
+ memory. To reload scripts you must reload the entire ModSecurity
+ configuration by restarting Apache.</p></div><p>Example script:</p><pre class="programlisting">-- Your script must define the <span class="emphasis"><em>main</em></span> entry
+-- point, as below.
+function main()
+ -- Log something at level 1. Normally you shouldn't be
+ -- logging anything, especially not at level 1, but this is
+ -- just to show you can. Useful for debugging.
+ m.log(1, "Hello world!");
+
+ -- Retrieve one variable.
+ local var1 = m.getvar("REMOTE_ADDR");
+
+ -- Retrieve one variable, applying one transformation function.
+ -- The second parameter is a string.
+ local var2 = m.getvar("ARGS", "lowercase");
+
+ -- Retrieve one variable, applying several transformation functions.
+ -- The second parameter is now a list. You should note that m.getvar()
+ -- requires the use of comma to separate collection names from
+ -- variable names. This is because only one variable is returned.
+ local var3 = m.getvar("ARGS.p", { "lowercase", "compressWhitespace" } );
+
+ -- If you want this rule to match return a string
+ -- containing the error message. The message <span class="emphasis"><em>must</em></span> contain the name
+ -- of the variable where the problem is located.
+ -- return "Variable ARGS:p looks suspicious!"
+
+ -- Otherwise, simply return nil.
+ return nil;
+end</pre><p>In this first example we were only retrieving one variable at the
+ time. In this case the name of the variable is known to you. In many
+ cases, however, you will want to examine variables whose names you won't
+ know in advance, for example script parameters.</p><p>Example showing use of <code class="literal">m.getvars()</code> to retrieve
+ many variables at once:</p><pre class="programlisting">function main()
+ -- Retrieve script parameters.
+ local d = m.getvars("ARGS", { "lowercase", "htmlEntityDecode" } );
+
+ -- Loop through the paramters.
+ for i = 1, #d do
+ -- Examine parameter value.
+ if (string.find(d[i].value, "<script")) then
+ -- Always specify the name of the variable where the
+ -- problem is located in the error message.
+ return ("Suspected XSS in variable " .. d[i].name .. ".");
+ end
+ end
+
+ -- Nothing wrong found.
+ return nil;
+end</pre><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Go to <a href="http://www.lua.org/" target="_top">http://www.lua.org/</a> to find more
+ about the Lua programming language. The reference manual too is
+ available online, at <a href="http://www.lua.org/manual/5.1/" target="_top">http://www.lua.org/manual/5.1/</a>.</p></div><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Lua support is marked as <span class="emphasis"><em>experimental</em></span> as
+ the way the progamming interface may continue to evolve while we are
+ working for the best implementation style. Any user input into the
+ programming interface is appreciated.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10BC2"></a><code class="literal">SecRuleUpdateActionById</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Updates the action list of the
+ specified rule.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecRuleRemoveById RULEID ACTIONLIST</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecRuleUpdateActionById 12345
+ deny,status:403</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> Any</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.5.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> This directive merges the
+ specified action list with the rule's action list. There are two
+ limitations. The rule ID cannot be changed, nor can the phase. Further
+ note that actions that may be specified multiple times are appended to
+ the original.</p><pre class="programlisting">SecAction \
+ "t:lowercase,phase:2,id:12345,pass,msg:'The Message',log,auditlog"
+SecRuleUpdateActionById 12345 "t:compressWhitespace,deny,status:403,msg:'A new message'</pre><p>The example above will cause the rule to be executed as if it was
+ specified as follows:</p><pre class="programlisting">SecAction \
+ "t:lowercase,phase:2,id:12345,log,auditlog,t:compressWhitespace,deny,status:403,msg:'A new message'"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10BF1"></a><code class="literal">SecServerSignature</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Instructs ModSecurity to change
+ the data presented in the "Server:" response header token.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecServerSignature "WEB SERVER
+ SOFTWARE"</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecServerSignature
+ "Netscape-Enterprise/6.0"</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Main</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> In order for this
+ directive to work, you must set the Apache ServerTokens directive to
+ Full. ModSecurity will overwrite the server signature data held in this
+ memory space with the data set in this directive. If ServerTokens is not
+ set to Full, then the memory space is most likely not large enough to
+ hold the new data we are looking to insert.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10C18"></a><code class="literal">SecTmpDir</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configures the directory where
+ temporary files will be created.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecTmpDir
+ /path/to/dir</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecTmpDir /tmp</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> Needs to be writable by
+ the Apache user process. This is the directory location where Apache
+ will swap data to disk if it runs out of memory (more data than what was
+ specified in the SecRequestBodyInMemoryLimit directive) during
+ inspection.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10C3F"></a><code class="literal">SecUploadDir</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configures the directory where
+ intercepted files will be stored.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecUploadDir
+ /path/to/dir</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecUploadDir /tmp</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> This directory must be on
+ the same filesystem as the temporary directory defined with <code class="literal">SecTmpDir</code>. This directive is used with
+ <code class="literal">SecUploadKeepFiles</code>.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10C6E"></a><code class="literal">SecUploadFileMode</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configures the mode
+ (permissions) of any uploaded files using an octal mode (as used in
+ chmod).</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecUploadFileMode octal_mode|"default"</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecUploadFileMode 0640</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.1.6</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> This feature is not
+ available on operating systems not supporting octal file modes. The
+ default mode (0600) only grants read/write access to the account writing
+ the file. If access from another account is needed (using clamd is a
+ good example), then this directive may be required. However, use this
+ directive with caution to avoid exposing potentially sensitive data to
+ unauthorized users. Using the value "default" will revert back to the
+ default setting.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>The process umask may still limit the mode if it is being more
+ restrictive than the mode set using this directive.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10C98"></a><code class="literal">SecUploadKeepFiles</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configures whether or not the
+ intercepted files will be kept after transaction is processed.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecUploadKeepFiles On|Off|RelevantOnly</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecUploadKeepFiles On</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> This directive requires
+ the storage directory to be defined (using <code class="literal">SecUploadDir</code>).</p><p>Possible values are:</p><div class="itemizedlist"><ul type="disc"><li><p><code class="literal">On</code> - Keep uploaded
+ files.</p></li><li><p><code class="literal">Off</code> - Do not keep uploaded
+ files.</p></li><li><p><code class="literal">RelevantOnly</code> - This will
+ keep only those files that belong to requests that are deemed
+ relevant.</p></li></ul></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10CD8"></a><code class="literal">SecWebAppId</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Creates a partition on the
+ server that belongs to one web application.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecWebAppId
+ "NAME"</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecWebAppId "WebApp1"</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> Partitions are used to
+ avoid collisions between session IDs and user IDs. This directive must
+ be used if there are multiple applications deployed on the same server.
+ If it isn't used, a collision between session IDs might occur. The
+ default value is<code class="literal"> default</code>.
+ Example:</p><pre class="programlisting"><VirtualHost *:80>
+ServerName app1.com
+ServerAlias www.app1.com
+<span class="emphasis"><em>SecWebAppId "App1"</em></span>
+SecRule REQUEST_COOKIES:PHPSESSID !^$ chain,nolog,pass
+SecAction setsid:%{REQUEST_COOKIES.PHPSESSID}
+...
+</VirtualHost>
+
+<VirtualHost *:80>
+ServerName app2.com
+ServerAlias www.app2.com<span class="emphasis"><em>
+SecWebAppId "App2"</em></span>
+SecRule REQUEST_COOKIES:PHPSESSID !^$ chain,nolog,pass
+SecAction setsid:%{REQUEST_COOKIES.PHPSESSID}
+...
+</VirtualHost></pre><p>In the two examples configurations shown, SecWebAppId is being
+ used in conjunction with the Apache VirtualHost directives. What this
+ achieves is to create more unique collection names when being hosted on
+ one server. Normally, when setsid is used, ModSecurity will create a
+ collection with the name "SESSION" and it will hold the value specified.
+ With using SecWebAppId as shown in the examples, however, the name of
+ the collection would become "App1_SESSION" and "App2_SESSION".</p><p>SecWebAppId is relevant in two cases:</p><div class="orderedlist"><ol type="1"><li><p>You are logging transactions/alerts to the ModSecurity Console
+ and you want to use the web application ID to search only the
+ transactions belonging to that application.</p></li><li><p>You are using the data persistence facility (collections
+ SESSION and USER) and you need to avoid collisions between sessions
+ and users belonging to different applications.</p></li></ol></div></div></div><div id="navfooter"><hr size="1"><table summary="Navigation footer" width="100%"><tr><td align="left" width="40%"><a accesskey="p" href="installation.html">Prev</a> </td><td align="center" width="20%"> </td><td align="right" width="40%"> <a accesskey="n" href="processing-phases.html">Next</a></td></tr><tr><td valign="top" align="left" width="40%">Installation </td><td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td><td valign="top" align="right" width="40%"> Processing Phases</td></tr></table></div><div align="center" class="copyright">Copyright (C) 2004-2009 <a href="http://www.breach.com">Breach Security</a></div></body></html>
\ No newline at end of file
--- /dev/null
+<html><head><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>ModSecurity® Reference
+ Manual</title><link href="modsecurity-reference.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.69.1" name="generator"><link rel="start" href="index.html" title="ModSecurity® Reference
+ Manual"><link rel="next" href="introduction.html" title="Introduction"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div style="background:#F5F5F5;width:100%;border-top:1px solid #DDDDDD;border-bottom:1px solid #DDDDDD"><table width="100%" cellspacing="0" cellpadding="0"><tr><td><a href="http://www.modsecurity.org"><img style="margin:4px" src="modsecurity.gif" width="120" height="36" alt="ModSecurity" border="0"></a></td><td align="right"><a href="http://www.breach.com"><img style="margin:6px" src="breach-logo-small.gif" height="36" width="100" border="0"></a></td></tr></table></div><div id="navheader"><table summary="Navigation header" width="100%"><tr><th align="center" colspan="3"><span class="trademark">ModSecurity</span>® Reference
+ Manual</th></tr><tr><td align="left" width="20%"> </td><td align="center" width="60%"> </td><td align="right" width="20%"> <a accesskey="n" href="introduction.html">Next</a></td></tr></table><hr size="1"></div><div class="article" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="N10001"></a><span class="trademark">ModSecurity</span>® Reference
+ Manual</h2></div><div><p class="releaseinfo">Version 2.5.11 (Nov 4, 2009)</p></div><div><p class="copyright">Copyright © 2004-2009 Breach Security, Inc. (<a href="http://www.breach.com" target="_top">http://www.breach.com</a>)</p></div></div><div></div><hr size="1"></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="introduction.html">Introduction</a></span></dt><dd><dl><dt><span class="section"><a href="introduction.html#N1001D">HTTP Traffic Logging</a></span></dt><dt><span class="section"><a href="introduction.html#N10022">Real-Time Monitoring and Attack Detection</a></span></dt><dt><span class="section"><a href="introduction.html#N10027">Attack Prevention and Just-in-time Patching</a></span></dt><dt><span class="section"><a href="introduction.html#N10038">Flexible Rule Engine</a></span></dt><dt><span class="section"><a href="introduction.html#N1003D">Embedded-mode Deployment</a></span></dt><dt><span class="section"><a href="introduction.html#N10054">Network-based Deployment</a></span></dt><dt><span class="section"><a href="introduction.html#N10059">Portability</a></span></dt><dt><span class="section"><a href="introduction.html#licensing">Licensing</a></span></dt></dl></dd><dt><span class="section"><a href="ar01s02.html"><span class="trademark">ModSecurity Core Rules</span>™</a></span></dt><dd><dl><dt><span class="section"><a href="ar01s02.html#N1006C">Overview</a></span></dt><dt><span class="section"><a href="ar01s02.html#N10075">Core Rules Content</a></span></dt></dl></dd><dt><span class="section"><a href="installation.html">Installation</a></span></dt><dt><span class="section"><a href="configuration-directives.html">Configuration Directives</a></span></dt><dd><dl><dt><span class="section"><a href="configuration-directives.html#N101B0"><code class="literal">SecAction</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N101E1"><code class="literal">SecArgumentSeparator</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N10216"><code class="literal">SecAuditEngine</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N10263"><code class="literal">SecAuditLog</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N10293"><code class="literal">SecAuditLog2</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N102C5"><code class="literal">SecAuditLogDirMode</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N102F3"><code class="literal">SecAuditLogFileMode</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N10321"><code class="literal">SecAuditLogParts</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N103B4"><code class="literal">SecAuditLogRelevantStatus</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N103E5"><code class="literal">SecAuditLogStorageDir</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N1040E"><code class="literal">SecAuditLogType</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N1044A"><code class="literal">SecCacheTransformations</code>
+ (Deprecated/Experimental)</a></span></dt><dt><span class="section"><a href="configuration-directives.html#N1049C"><code class="literal">SecChrootDir</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N104DD"><code class="literal">SecComponentSignature</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N10504"><code class="literal">SecContentInjection</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N10533"><code class="literal">SecCookieFormat</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N10569"><code class="literal">SecDataDir</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N1058C"><code class="literal">SecDebugLog</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N105B3"><code class="literal">SecDebugLogLevel</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N10613"><code class="literal">SecDefaultAction</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N1065E"><code class="literal">SecGeoLookupDb</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N10689"><code class="literal">SecGuardianLog</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N106BC"><code class="literal">SecMarker</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N106F4"><code class="literal">SecPdfProtect</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N1071F"><code class="literal">SecPdfProtectMethod</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N10755"><code class="literal">SecPdfProtectSecret</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N1077C"><code class="literal">SecPdfProtectTimeout</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N107AA"><code class="literal">SecPdfProtectTokenName</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N107D8"><code class="literal">SecRequestBodyAccess</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N10816"><code class="literal">SecRequestBodyLimit</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N10839"><code class="literal">SecRequestBodyNoFilesLimit</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N10864"><code class="literal">SecRequestBodyInMemoryLimit</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N10890"><code class="literal">SecResponseBodyLimit</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N108BC"><code class="literal">SecResponseBodyLimitAction</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N108E7"><code class="literal">SecResponseBodyMimeType</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N10923"><code class="literal">SecResponseBodyMimeTypesClear</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N1094E"><code class="literal">SecResponseBodyAccess</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N10984"><code class="literal">SecRule</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N10A74"><code class="literal">SecRuleInheritance</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N10AD7"><code class="literal">SecRuleEngine</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N10B13"><code class="literal">SecRuleRemoveById</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N10B3D"><code class="literal">SecRuleRemoveByMsg</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N10B68"><code class="literal">SecRuleScript</code> (Experimental)</a></span></dt><dt><span class="section"><a href="configuration-directives.html#N10BC2"><code class="literal">SecRuleUpdateActionById</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N10BF1"><code class="literal">SecServerSignature</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N10C18"><code class="literal">SecTmpDir</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N10C3F"><code class="literal">SecUploadDir</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N10C6E"><code class="literal">SecUploadFileMode</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N10C98"><code class="literal">SecUploadKeepFiles</code></a></span></dt><dt><span class="section"><a href="configuration-directives.html#N10CD8"><code class="literal">SecWebAppId</code></a></span></dt></dl></dd><dt><span class="section"><a href="processing-phases.html">Processing Phases</a></span></dt><dd><dl><dt><span class="section"><a href="processing-phases.html#N10D73">Phase Request Headers</a></span></dt><dt><span class="section"><a href="processing-phases.html#N10D7D">Phase Request Body</a></span></dt><dt><span class="section"><a href="processing-phases.html#N10D97">Phase Response Headers</a></span></dt><dt><span class="section"><a href="processing-phases.html#N10D9C">Phase Response Body</a></span></dt><dt><span class="section"><a href="processing-phases.html#N10DA1">Phase Logging</a></span></dt></dl></dd><dt><span class="section"><a href="variables.html">Variables</a></span></dt><dd><dl><dt><span class="section"><a href="variables.html#N10DAC"><code class="literal">ARGS</code></a></span></dt><dt><span class="section"><a href="variables.html#N10DFE"><code class="literal">ARGS_COMBINED_SIZE</code></a></span></dt><dt><span class="section"><a href="variables.html#N10E0B"><code class="literal">ARGS_NAMES</code></a></span></dt><dt><span class="section"><a href="variables.html#N10E18"><code class="literal">ARGS_GET</code></a></span></dt><dt><span class="section"><a href="variables.html#N10E26"><code class="literal">ARGS_GET_NAMES</code></a></span></dt><dt><span class="section"><a href="variables.html#N10E34"><code class="literal">ARGS_POST</code></a></span></dt><dt><span class="section"><a href="variables.html#N10E42"><code class="literal">ARGS_POST_NAMES</code></a></span></dt><dt><span class="section"><a href="variables.html#N10E50"><code class="literal">AUTH_TYPE</code></a></span></dt><dt><span class="section"><a href="variables.html#N10E66"><code class="literal">ENV</code></a></span></dt><dt><span class="section"><a href="variables.html#N10E7A"><code class="literal">FILES</code></a></span></dt><dt><span class="section"><a href="variables.html#N10E87"><code class="literal">FILES_COMBINED_SIZE</code></a></span></dt><dt><span class="section"><a href="variables.html#N10E94"><code class="literal">FILES_NAMES</code></a></span></dt><dt><span class="section"><a href="variables.html#N10EA1"><code class="literal">FILES_SIZES</code></a></span></dt><dt><span class="section"><a href="variables.html#N10EAE"><code class="literal">FILES_TMPNAMES</code></a></span></dt><dt><span class="section"><a href="variables.html#N10EBF"><code class="literal">GEO</code></a></span></dt><dt><span class="section"><a href="variables.html#N10F11"><code class="literal">HIGHEST_SEVERITY</code></a></span></dt><dt><span class="section"><a href="variables.html#N10F24"><code class="literal">MATCHED_VAR</code></a></span></dt><dt><span class="section"><a href="variables.html#N10F35"><code class="literal">MATCHED_VAR_NAME</code></a></span></dt><dt><span class="section"><a href="variables.html#N10F42"><code class="literal">MODSEC_BUILD</code></a></span></dt><dt><span class="section"><a href="variables.html#N10F4F"><code class="literal">MULTIPART_CRLF_LF_LINES</code></a></span></dt><dt><span class="section"><a href="variables.html#N10F7A"><code class="literal">MULTIPART_STRICT_ERROR</code></a></span></dt><dt><span class="section"><a href="variables.html#N10FC6"><code class="literal">MULTIPART_UNMATCHED_BOUNDARY</code></a></span></dt><dt><span class="section"><a href="variables.html#N10FDC"><code class="literal">PATH_INFO</code></a></span></dt><dt><span class="section"><a href="variables.html#N10FE9"><code class="literal">QUERY_STRING</code></a></span></dt><dt><span class="section"><a href="variables.html#N10FF6"><code class="literal">REMOTE_ADDR</code></a></span></dt><dt><span class="section"><a href="variables.html#N11003"><code class="literal">REMOTE_HOST</code></a></span></dt><dt><span class="section"><a href="variables.html#N11010"><code class="literal">REMOTE_PORT</code></a></span></dt><dt><span class="section"><a href="variables.html#N11021"><code class="literal">REMOTE_USER</code></a></span></dt><dt><span class="section"><a href="variables.html#N11033"><code class="literal">REQBODY_PROCESSOR</code></a></span></dt><dt><span class="section"><a href="variables.html#N1104C"><code class="literal">REQBODY_PROCESSOR_ERROR</code></a></span></dt><dt><span class="section"><a href="variables.html#N11064"><code class="literal">REQBODY_PROCESSOR_ERROR_MSG</code></a></span></dt><dt><span class="section"><a href="variables.html#N11071"><code class="literal">REQUEST_BASENAME</code></a></span></dt><dt><span class="section"><a href="variables.html#N11093"><code class="literal">REQUEST_BODY</code></a></span></dt><dt><span class="section"><a href="variables.html#N110C7"><code class="literal">REQUEST_COOKIES</code></a></span></dt><dt><span class="section"><a href="variables.html#N110D4"><code class="literal">REQUEST_COOKIES_NAMES</code></a></span></dt><dt><span class="section"><a href="variables.html#N110E1"><code class="literal">REQUEST_FILENAME</code></a></span></dt><dt><span class="section"><a href="variables.html#N110FD"><code class="literal">REQUEST_HEADERS</code></a></span></dt><dt><span class="section"><a href="variables.html#N11121"><code class="literal">REQUEST_HEADERS_NAMES</code></a></span></dt><dt><span class="section"><a href="variables.html#N1112E"><code class="literal">REQUEST_LINE</code></a></span></dt><dt><span class="section"><a href="variables.html#N1113B"><code class="literal">REQUEST_METHOD</code></a></span></dt><dt><span class="section"><a href="variables.html#N1114E"><code class="literal">REQUEST_PROTOCOL</code></a></span></dt><dt><span class="section"><a href="variables.html#N1115B"><code class="literal">REQUEST_URI</code></a></span></dt><dt><span class="section"><a href="variables.html#N11179"><code class="literal">REQUEST_URI_RAW</code></a></span></dt><dt><span class="section"><a href="variables.html#N11193"><code class="literal">RESPONSE_BODY</code></a></span></dt><dt><span class="section"><a href="variables.html#N111A2"><code class="literal">RESPONSE_CONTENT_LENGTH</code></a></span></dt><dt><span class="section"><a href="variables.html#N111B3"><code class="literal">RESPONSE_CONTENT_TYPE</code></a></span></dt><dt><span class="section"><a href="variables.html#N111BA"><code class="literal">RESPONSE_HEADERS</code></a></span></dt><dt><span class="section"><a href="variables.html#N111CE"><code class="literal">RESPONSE_HEADERS_NAMES</code></a></span></dt><dt><span class="section"><a href="variables.html#N111E0"><code class="literal">RESPONSE_PROTOCOL</code></a></span></dt><dt><span class="section"><a href="variables.html#N111ED"><code class="literal">RESPONSE_STATUS</code></a></span></dt><dt><span class="section"><a href="variables.html#N111FF"><code class="literal">RULE</code></a></span></dt><dt><span class="section"><a href="variables.html#N11224"><code class="literal">SCRIPT_BASENAME</code></a></span></dt><dt><span class="section"><a href="variables.html#N11236"><code class="literal">SCRIPT_FILENAME</code></a></span></dt><dt><span class="section"><a href="variables.html#N11248"><code class="literal">SCRIPT_GID</code></a></span></dt><dt><span class="section"><a href="variables.html#N1125A"><code class="literal">SCRIPT_GROUPNAME</code></a></span></dt><dt><span class="section"><a href="variables.html#N1126C"><code class="literal">SCRIPT_MODE</code></a></span></dt><dt><span class="section"><a href="variables.html#N1127E"><code class="literal">SCRIPT_UID</code></a></span></dt><dt><span class="section"><a href="variables.html#N11290"><code class="literal">SCRIPT_USERNAME</code></a></span></dt><dt><span class="section"><a href="variables.html#N112A2"><code class="literal">SERVER_ADDR</code></a></span></dt><dt><span class="section"><a href="variables.html#N112AF"><code class="literal">SERVER_NAME</code></a></span></dt><dt><span class="section"><a href="variables.html#N112C1"><code class="literal">SERVER_PORT</code></a></span></dt><dt><span class="section"><a href="variables.html#N112CE"><code class="literal">SESSION</code></a></span></dt><dt><span class="section"><a href="variables.html#N112E8"><code class="literal">SESSIONID</code></a></span></dt><dt><span class="section"><a href="variables.html#N112F9"><code class="literal">TIME</code></a></span></dt><dt><span class="section"><a href="variables.html#N11306"><code class="literal">TIME_DAY</code></a></span></dt><dt><span class="section"><a href="variables.html#N11313"><code class="literal">TIME_EPOCH</code></a></span></dt><dt><span class="section"><a href="variables.html#N11320"><code class="literal">TIME_HOUR</code></a></span></dt><dt><span class="section"><a href="variables.html#N1132D"><code class="literal">TIME_MIN</code></a></span></dt><dt><span class="section"><a href="variables.html#N1133A"><code class="literal">TIME_MON</code></a></span></dt><dt><span class="section"><a href="variables.html#N11347"><code class="literal">TIME_SEC</code></a></span></dt><dt><span class="section"><a href="variables.html#N11354"><code class="literal">TIME_WDAY</code></a></span></dt><dt><span class="section"><a href="variables.html#N11361"><code class="literal">TIME_YEAR</code></a></span></dt><dt><span class="section"><a href="variables.html#N1136E"><code class="literal">TX</code></a></span></dt><dt><span class="section"><a href="variables.html#N113A1"><code class="literal">USERID</code></a></span></dt><dt><span class="section"><a href="variables.html#N113B2"><code class="literal">WEBAPPID</code></a></span></dt><dt><span class="section"><a href="variables.html#N113C3"><code class="literal">WEBSERVER_ERROR_LOG</code></a></span></dt><dt><span class="section"><a href="variables.html#N113D0"><code class="literal">XML</code></a></span></dt></dl></dd><dt><span class="section"><a href="transformation-functions.html">Transformation functions</a></span></dt><dd><dl><dt><span class="section"><a href="transformation-functions.html#N1142D"><code class="literal">base64Decode</code></a></span></dt><dt><span class="section"><a href="transformation-functions.html#N11434"><code class="literal">base64Encode</code></a></span></dt><dt><span class="section"><a href="transformation-functions.html#N1143B"><code class="literal">compressWhitespace</code></a></span></dt><dt><span class="section"><a href="transformation-functions.html#N11442">cssDecode</a></span></dt><dt><span class="section"><a href="transformation-functions.html#N11453"><code class="literal">escapeSeqDecode</code></a></span></dt><dt><span class="section"><a href="transformation-functions.html#N1148E"><code class="literal">hexDecode</code></a></span></dt><dt><span class="section"><a href="transformation-functions.html#N11495"><code class="literal">hexEncode</code></a></span></dt><dt><span class="section"><a href="transformation-functions.html#N1149C"><code class="literal">htmlEntityDecode</code></a></span></dt><dt><span class="section"><a href="transformation-functions.html#N114DE"><code class="literal">jsDecode</code></a></span></dt><dt><span class="section"><a href="transformation-functions.html#N114F1"><code class="literal">length</code></a></span></dt><dt><span class="section"><a href="transformation-functions.html#N114F8"><code class="literal">lowercase</code></a></span></dt><dt><span class="section"><a href="transformation-functions.html#N114FF"><code class="literal">md5</code></a></span></dt><dt><span class="section"><a href="transformation-functions.html#N1150A"><code class="literal"><code class="literal">none</code></code></a></span></dt><dt><span class="section"><a href="transformation-functions.html#N11513"><code class="literal">normalisePath</code></a></span></dt><dt><span class="section"><a href="transformation-functions.html#N1151A"><code class="literal">normalisePathWin</code></a></span></dt><dt><span class="section"><a href="transformation-functions.html#N11525"><code class="literal">parityEven7bit</code></a></span></dt><dt><span class="section"><a href="transformation-functions.html#N1152C"><code class="literal">parityOdd7bit</code></a></span></dt><dt><span class="section"><a href="transformation-functions.html#N11533"><code class="literal">parityZero7bit</code></a></span></dt><dt><span class="section"><a href="transformation-functions.html#N1153A"><code class="literal">removeNulls</code></a></span></dt><dt><span class="section"><a href="transformation-functions.html#N11541"><code class="literal">removeWhitespace</code></a></span></dt><dt><span class="section"><a href="transformation-functions.html#N11548"><code class="literal">replaceComments</code></a></span></dt><dt><span class="section"><a href="transformation-functions.html#N11557"><code class="literal">replaceNulls</code></a></span></dt><dt><span class="section"><a href="transformation-functions.html#N1155E"><code class="literal">urlDecode</code></a></span></dt><dt><span class="section"><a href="transformation-functions.html#N11569"><code class="literal">urlDecodeUni</code></a></span></dt><dt><span class="section"><a href="transformation-functions.html#N11584"><code class="literal">urlEncode</code></a></span></dt><dt><span class="section"><a href="transformation-functions.html#N1158B"><code class="literal">sha1</code></a></span></dt><dt><span class="section"><a href="transformation-functions.html#N11596"><code class="literal">trimLeft</code></a></span></dt><dt><span class="section"><a href="transformation-functions.html#N1159D"><code class="literal">trimRight</code></a></span></dt><dt><span class="section"><a href="transformation-functions.html#N115A4"><code class="literal">trim</code></a></span></dt></dl></dd><dt><span class="section"><a href="actions.html">Actions</a></span></dt><dd><dl><dt><span class="section"><a href="actions.html#N115EC"><code class="literal">allow</code></a></span></dt><dt><span class="section"><a href="actions.html#N1163C">append</a></span></dt><dt><span class="section"><a href="actions.html#N1165E"><code class="literal">auditlog</code></a></span></dt><dt><span class="section"><a href="actions.html#N11678"><code class="literal">block</code></a></span></dt><dt><span class="section"><a href="actions.html#N116BD"><code class="literal">capture</code></a></span></dt><dt><span class="section"><a href="actions.html#N116D7"><code class="literal">chain</code></a></span></dt><dt><span class="section"><a href="actions.html#N116F2"><code class="literal">ctl</code></a></span></dt><dt><span class="section"><a href="actions.html#N11786"><code class="literal">deny</code></a></span></dt><dt><span class="section"><a href="actions.html#N1179B"><code class="literal">deprecatevar</code></a></span></dt><dt><span class="section"><a href="actions.html#N117B2"><code class="literal">drop</code></a></span></dt><dt><span class="section"><a href="actions.html#N117CC"><code class="literal">exec</code></a></span></dt><dt><span class="section"><a href="actions.html#N117F5"><code class="literal">expirevar</code></a></span></dt><dt><span class="section"><a href="actions.html#N1180F"><code class="literal">id</code></a></span></dt><dt><span class="section"><a href="actions.html#N1184E"><code class="literal">initcol</code></a></span></dt><dt><span class="section"><a href="actions.html#N11875"><code class="literal">log</code></a></span></dt><dt><span class="section"><a href="actions.html#N1188E"><code class="literal">logdata</code></a></span></dt><dt><span class="section"><a href="actions.html#N118A7"><code class="literal">msg</code></a></span></dt><dt><span class="section"><a href="actions.html#N118C3"><code class="literal">multiMatch</code></a></span></dt><dt><span class="section"><a href="actions.html#N118DC"><code class="literal">noauditlog</code></a></span></dt><dt><span class="section"><a href="actions.html#N118F9"><code class="literal">nolog</code></a></span></dt><dt><span class="section"><a href="actions.html#N11912"><code class="literal">pass</code></a></span></dt><dt><span class="section"><a href="actions.html#N11941"><code class="literal">pause</code></a></span></dt><dt><span class="section"><a href="actions.html#N1195A"><code class="literal">phase</code></a></span></dt><dt><span class="section"><a href="actions.html#N11974">prepend</a></span></dt><dt><span class="section"><a href="actions.html#N11996"><code class="literal">proxy</code></a></span></dt><dt><span class="section"><a href="actions.html#N119AF"><code class="literal">redirect</code></a></span></dt><dt><span class="section"><a href="actions.html#N119CC"><code class="literal">rev</code></a></span></dt><dt><span class="section"><a href="actions.html#N119EA"><code class="literal">sanitiseArg</code></a></span></dt><dt><span class="section"><a href="actions.html#N11A03"><code class="literal">sanitiseMatched</code></a></span></dt><dt><span class="section"><a href="actions.html#N11A1F"><code class="literal">sanitiseRequestHeader</code></a></span></dt><dt><span class="section"><a href="actions.html#N11A38"><code class="literal">sanitiseResponseHeader</code></a></span></dt><dt><span class="section"><a href="actions.html#N11A51"><code class="literal">severity</code></a></span></dt><dt><span class="section"><a href="actions.html#N11A86"><code class="literal">setuid</code></a></span></dt><dt><span class="section"><a href="actions.html#N11AA8"><code class="literal">setsid</code></a></span></dt><dt><span class="section"><a href="actions.html#N11ACD"><code class="literal">setenv</code></a></span></dt><dt><span class="section"><a href="actions.html#N11AEF"><code class="literal">setvar</code></a></span></dt><dt><span class="section"><a href="actions.html#N11B15"><code class="literal">skip</code></a></span></dt><dt><span class="section"><a href="actions.html#N11B30"><code class="literal">skipAfter</code></a></span></dt><dt><span class="section"><a href="actions.html#N11B52"><code class="literal">status</code></a></span></dt><dt><span class="section"><a href="actions.html#N11B74"><code class="literal">t</code></a></span></dt><dt><span class="section"><a href="actions.html#N11B8D"><code class="literal">tag</code></a></span></dt><dt><span class="section"><a href="actions.html#N11BA7"><code class="literal">xmlns</code></a></span></dt></dl></dd><dt><span class="section"><a href="operators.html">Operators</a></span></dt><dd><dl><dt><span class="section"><a href="operators.html#N11BC6"><code class="literal">beginsWith</code></a></span></dt><dt><span class="section"><a href="operators.html#N11BDE"><code class="literal">contains</code></a></span></dt><dt><span class="section"><a href="operators.html#N11BF2"><code class="literal">endsWith</code></a></span></dt><dt><span class="section"><a href="operators.html#N11C06"><code class="literal">eq</code></a></span></dt><dt><span class="section"><a href="operators.html#N11C17"><code class="literal">ge</code></a></span></dt><dt><span class="section"><a href="operators.html#N11C28"><code class="literal">geoLookup</code></a></span></dt><dt><span class="section"><a href="operators.html#N11C51"><code class="literal">gt</code></a></span></dt><dt><span class="section"><a href="operators.html#N11C62"><code class="literal">inspectFile</code></a></span></dt><dt><span class="section"><a href="operators.html#N11C84"><code class="literal">le</code></a></span></dt><dt><span class="section"><a href="operators.html#N11C95"><code class="literal">lt</code></a></span></dt><dt><span class="section"><a href="operators.html#N11CA6"><code class="literal">pm</code></a></span></dt><dt><span class="section"><a href="operators.html#N11CB9"><code class="literal">pmFromFile</code></a></span></dt><dt><span class="section"><a href="operators.html#N11CDF"><code class="literal">rbl</code></a></span></dt><dt><span class="section"><a href="operators.html#N11CF0"><code class="literal">rx</code></a></span></dt><dt><span class="section"><a href="operators.html#N11D2A"><code class="literal">streq</code></a></span></dt><dt><span class="section"><a href="operators.html#N11D3E"><code class="literal">validateByteRange</code></a></span></dt><dt><span class="section"><a href="operators.html#N11D64"><code class="literal">validateDTD</code></a></span></dt><dt><span class="section"><a href="operators.html#N11D78"><code class="literal">validateSchema</code></a></span></dt><dt><span class="section"><a href="operators.html#N11D8C"><code class="literal">validateUrlEncoding</code></a></span></dt><dt><span class="section"><a href="operators.html#N11DA6"><code class="literal">validateUtf8Encoding</code></a></span></dt><dt><span class="section"><a href="operators.html#N11DC8"><code class="literal">verifyCC</code></a></span></dt><dt><span class="section"><a href="operators.html#N11DD9"><code class="literal">within</code></a></span></dt></dl></dd><dt><span class="section"><a href="ar01s10.html">Macro Expansion</a></span></dt><dt><span class="section"><a href="ar01s11.html">Persistant Storage</a></span></dt><dt><span class="section"><a href="ar01s12.html">Miscellaneous Topics</a></span></dt><dd><dl><dt><span class="section"><a href="ar01s12.html#N11E67">Impedance Mismatch</a></span></dt></dl></dd></dl></div></div><div id="navfooter"><hr size="1"><table summary="Navigation footer" width="100%"><tr><td align="left" width="40%"> </td><td align="center" width="20%"> </td><td align="right" width="40%"> <a accesskey="n" href="introduction.html">Next</a></td></tr><tr><td valign="top" align="left" width="40%"> </td><td align="center" width="20%"> </td><td valign="top" align="right" width="40%"> Introduction</td></tr></table></div><div align="center" class="copyright">Copyright (C) 2004-2009 <a href="http://www.breach.com">Breach Security</a></div></body></html>
\ No newline at end of file
--- /dev/null
+<html><head><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Installation</title><link href="modsecurity-reference.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.69.1" name="generator"><link rel="start" href="index.html" title="ModSecurity® Reference
+ Manual"><link rel="up" href="index.html" title="ModSecurity® Reference
+ Manual"><link rel="prev" href="ar01s02.html" title="ModSecurity Core Rules™"><link rel="next" href="configuration-directives.html" title="Configuration Directives"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div style="background:#F5F5F5;width:100%;border-top:1px solid #DDDDDD;border-bottom:1px solid #DDDDDD"><table width="100%" cellspacing="0" cellpadding="0"><tr><td><a href="http://www.modsecurity.org"><img style="margin:4px" src="modsecurity.gif" width="120" height="36" alt="ModSecurity" border="0"></a></td><td align="right"><a href="http://www.breach.com"><img style="margin:6px" src="breach-logo-small.gif" height="36" width="100" border="0"></a></td></tr></table></div><div id="navheader"><table summary="Navigation header" width="100%"><tr><th align="center" colspan="3">Installation</th></tr><tr><td align="left" width="20%"><a accesskey="p" href="ar01s02.html">Prev</a> </td><td align="center" width="60%"> <a accesskey="h" href="index.html">Home</a></td><td align="right" width="20%"> <a accesskey="n" href="configuration-directives.html">Next</a></td></tr></table><hr size="1"></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="installation"></a>Installation</h2></div></div><div></div></div><p>ModSecurity installation requirements:</p><div class="orderedlist"><ol type="1"><li><p>ModSecurity 2.x works only with Apache 2.0.x or higher. Version
+ 2.2.x is highly recommended.</p></li><li><p>Make sure you have <code class="literal">mod_unique_id</code> installed.</p><p>mod_unique_id is packaged with Apache httpd.</p></li><li><p>libapr and libapr-util</p><p><a href="http://apr.apache.org/" target="_top">http://apr.apache.org/</a></p></li><li><p>libpcre</p><p><a href="http://www.pcre.org/" target="_top">http://www.pcre.org/</a></p></li><li><p>libxml2</p><p><a href="http://xmlsoft.org/downloads.html" target="_top">http://xmlsoft.org/downloads.html</a></p></li><li><p>liblua v5.1.x</p><p>This library is optional and only needed if you will be using
+ the new Lua engine.</p><p><a href="http://www.lua.org/download.html" target="_top">http://www.lua.org/download.html</a></p><p>Note that ModSecurity requires the dynamic libraries. These are
+ not built by default in the source distribution, so the binary
+ distribution is recommended.</p></li><li><p>libcurl v7.15.1 or higher</p><p>If you will be using the ModSecurity Log Collector (mlogc) to
+ send audit logs to a central repository, then you will also need the
+ curl library.</p><p><a href="http://curl.haxx.se/libcurl/" target="_top">http://curl.haxx.se/libcurl/</a></p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Many have had issues with libcurl linked with the GnuTLS
+ library for SSL/TLS support. It is recommended that the
+ openssl library be used for SSL/TLS support in libcurl.</p></div></li></ol></div><p>ModSecurity installation consists of the following steps:</p><div class="orderedlist"><ol type="1"><li><p>Stop Apache httpd</p></li><li><p>Unpack the ModSecurity archive</p></li><li><p>Building differs for UNIX (or UNIX-like) operating systems and
+ Windows.</p><div class="itemizedlist"><ul type="disc"><li><p>UNIX</p><div class="orderedlist"><ol type="a"><li><p>Run the configure script to generate a Makefile.
+ Typically no options are needed.</p><p><code class="literal">./configure</code></p><p>Options are available for more customization (use
+ <code class="literal">./configure --help</code> for a full list), but
+ typically you will only need to specify the location of the
+ <code class="literal">apxs</code> command installed by Apache httpd with
+ the <code class="literal">--with-apxs</code> option.</p><p><code class="literal">./configure
+ --with-apxs=/path/to/httpd-2.x.y/bin/apxs</code></p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>There are certain configure options that are meant for
+ debugging an other development use. If enabled, these
+ options can substantially impact performance. These options
+ include all <code class="literal">--debug-*</code> options as well as
+ the <code class="literal">--enable-performance-measurements</code>
+ options.</p></div></li><li><p>Compile with: <code class="literal">make</code></p></li><li><p>Optionally test with: <code class="literal">make
+ test</code></p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This is step is still a bit experimental. If you have
+ problems, please send the full output and error from the
+ build to the support list. Most common issues are related to
+ not finding the required headers and/or libraries.</p></div></li><li><p>Optionally build the ModSecurity Log Collector with:
+ <code class="literal">make mlogc</code></p></li><li><p>Optionally install <code class="literal">mlogc</code>: Review the
+ <code class="literal">INSTALL</code> file included in the
+ apache2/mlogc-src directory in the distribution.</p></li><li><p>Install the ModSecurity module with: <code class="literal">make
+ install</code></p></li></ol></div></li><li><p>Windows (MS VC++ 8)</p><div class="orderedlist"><ol type="a"><li><p>Edit <code class="literal">Makefile.win</code> to configure the
+ Apache base and library paths.</p></li><li><p>Compile with: <code class="literal">nmake -f
+ Makefile.win</code></p></li><li><p>Install the ModSecurity module with: <code class="literal">nmake -f
+ Makefile.win install</code></p></li><li><p>Copy the <code class="literal">libxml2.dll</code> and
+ <code class="literal">lua5.1.dll</code> to the Apache
+ <code class="literal">bin</code> directory. Alternatively you can follow
+ the step below for using LoadFile to load these
+ libraries.</p></li></ol></div></li></ul></div></li><li><p>Edit the main Apache httpd config file (usually
+ <code class="literal">httpd.conf</code>)</p><p>On UNIX (and Windows if you did not copy the DLLs as stated
+ above) you must load libxml2 and lua5.1 before ModSecurity with
+ something like this:</p><p><pre class="programlisting">LoadFile /usr/lib/libxml2.so
+LoadFile /usr/lib/liblua5.1.so</pre></p><p>Load the ModSecurity module with:<pre class="programlisting">LoadModule security2_module modules/mod_security2.so</pre></p></li><li><p>Configure ModSecurity</p></li><li><p>Start Apache httpd</p></li><li><p>You should now have ModSecurity 2.x up and running.</p></li></ol></div><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>If you have compiled Apache yourself you might experience problems
+ compiling ModSecurity against PCRE. This is because Apache bundles PCRE
+ but this library is also typically provided by the operating system. I
+ would expect most (all) vendor-packaged Apache distributions to be
+ configured to use an external PCRE library (so this should not be a
+ problem).</p><p>You want to avoid Apache using the bundled PCRE library and
+ ModSecurity linking against the one provided by the operating system.
+ The easiest way to do this is to compile Apache against the PCRE library
+ provided by the operating system (or you can compile it against the
+ latest PCRE version you downloaded from the main PCRE distribution
+ site). You can do this at configure time using the<code class="literal"> --with-pcre</code> switch. If you are not in a
+ position to recompile Apache, then, to compile ModSecurity successfully,
+ you'd still need to have access to the bundled PCRE headers (they are
+ available only in the Apache source code) and change the include path
+ for ModSecurity (as you did in step 7 above) to point to them (via the
+ <code class="literal">--with-pcre</code> ModSecurity configure option).</p><p>Do note that if your Apache is using an external PCRE library you
+ can compile ModSecurity with <code class="literal">WITH_PCRE_STUDY</code> defined,which would possibly
+ give you a slight performance edge in regular expression
+ processing.</p><p>Non-gcc compilers may have problems running out-of-the-box as the
+ current build system was designed around the gcc compiler and some
+ compiler/linker flags may differ. To use a non-gcc compiler you may need
+ some manual Makefile tweaks if issues cannot be solved by exporting
+ custom CFLAGS and CPPFLAGS environment variables.</p><p>If you are upgrading from ModSecurity 1.x, please refer to the
+ migration matrix at <a href="http://www.modsecurity.org/documentation/ModSecurity-Migration-Matrix.pdf" target="_top">http://www.modsecurity.org/documentation/ModSecurity-Migration-Matrix.pdf</a></p></div></div><div id="navfooter"><hr size="1"><table summary="Navigation footer" width="100%"><tr><td align="left" width="40%"><a accesskey="p" href="ar01s02.html">Prev</a> </td><td align="center" width="20%"> </td><td align="right" width="40%"> <a accesskey="n" href="configuration-directives.html">Next</a></td></tr><tr><td valign="top" align="left" width="40%"><span class="trademark">ModSecurity Core Rules</span>™ </td><td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td><td valign="top" align="right" width="40%"> Configuration Directives</td></tr></table></div><div align="center" class="copyright">Copyright (C) 2004-2009 <a href="http://www.breach.com">Breach Security</a></div></body></html>
\ No newline at end of file
--- /dev/null
+<html><head><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Introduction</title><link href="modsecurity-reference.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.69.1" name="generator"><link rel="start" href="index.html" title="ModSecurity® Reference
+ Manual"><link rel="up" href="index.html" title="ModSecurity® Reference
+ Manual"><link rel="prev" href="index.html" title="ModSecurity® Reference
+ Manual"><link rel="next" href="ar01s02.html" title="ModSecurity Core Rules™"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div style="background:#F5F5F5;width:100%;border-top:1px solid #DDDDDD;border-bottom:1px solid #DDDDDD"><table width="100%" cellspacing="0" cellpadding="0"><tr><td><a href="http://www.modsecurity.org"><img style="margin:4px" src="modsecurity.gif" width="120" height="36" alt="ModSecurity" border="0"></a></td><td align="right"><a href="http://www.breach.com"><img style="margin:6px" src="breach-logo-small.gif" height="36" width="100" border="0"></a></td></tr></table></div><div id="navheader"><table summary="Navigation header" width="100%"><tr><th align="center" colspan="3">Introduction</th></tr><tr><td align="left" width="20%"><a accesskey="p" href="index.html">Prev</a> </td><td align="center" width="60%"> <a accesskey="h" href="index.html">Home</a></td><td align="right" width="20%"> <a accesskey="n" href="ar01s02.html">Next</a></td></tr></table><hr size="1"></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="introduction"></a>Introduction</h2></div></div><div></div></div><p>ModSecurity is a web application firewall (WAF). With over 70% of
+ attacks now carried out over the web application level, organisations need
+ all the help they can get in making their systems secure. WAFs are
+ deployed to establish an increased external security layer to detect
+ and/or prevent attacks before they reach web applications. ModSecurity
+ provides protection from a range of attacks against web applications and
+ allows for HTTP traffic monitoring and real-time analysis with little or
+ no changes to existing infrastructure.</p><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1001D"></a>HTTP Traffic Logging</h3></div></div><div></div></div><p>Web servers are typically well-equipped to log traffic in a form
+ useful for marketing analyses, but fall short logging traffic to web
+ applications. In particular, most are not capable of logging the request
+ bodies. Your adversaries know this, and that is why most attacks are now
+ carried out via POST requests, rendering your systems blind. ModSecurity
+ makes full HTTP transaction logging possible, allowing complete requests
+ and responses to be logged. Its logging facilities also allow
+ fine-grained decisions to be made about exactly what is logged and when,
+ ensuring only the relevant data is recorded. As some of the request
+ and/or response may contain sensitive data in certain fields,
+ ModSecurity can be configured to mask these fields before they are
+ written to the audit log.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10022"></a>Real-Time Monitoring and Attack Detection</h3></div></div><div></div></div><p>In addition to providing logging facilities, ModSecurity can
+ monitor the HTTP traffic in real time in order to detect attacks. In
+ this case, ModSecurity operates as a web intrusion detection tool,
+ allowing you to react to suspicious events that take place at your web
+ systems.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10027"></a>Attack Prevention and Just-in-time Patching</h3></div></div><div></div></div><p>ModSecurity can also act immediately to prevent attacks from
+ reaching your web applications. There are three commonly used
+ approaches:</p><div class="orderedlist"><ol type="1"><li><p>Negative security model. A negative security model monitors
+ requests for anomalies, unusual behaviour, and common web
+ application attacks. It keeps anomaly scores for each request, IP
+ addresses, application sessions, and user accounts. Requests with
+ high anomaly scores are either logged or rejected altogether.</p></li><li><p>Positive security model. When a positive security model is
+ deployed, only requests that are known to be valid are accepted,
+ with everything else rejected. This model requires knownledge of the
+ web applications you are protecting. Therefore a positive security
+ model works best with applications that are heavily used but rarely
+ updated so that maintenance of the model is minimized.</p></li><li><p>Known weaknesses and vulnerabilities. Its rule language makes
+ ModSecurity an ideal external patching tool. External patching
+ (sometimes referred to as Virtual Patching) is about reducing the
+ window of opportunity. Time needed to patch application
+ vulnerabilities often runs to weeks in many organisations. With
+ ModSecurity, applications can be patched from the outside, without
+ touching the application source code (and even without any access to
+ it), making your systems secure until a proper patch is applied to
+ the application.</p></li></ol></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10038"></a>Flexible Rule Engine</h3></div></div><div></div></div><p>A flexible rule engine sits in the heart of ModSecurity. It
+ implements the ModSecurity Rule Language, which is a specialised
+ programming language designed to work with HTTP transaction data. The
+ ModSecurity Rule Language is designed to be easy to use, yet flexible:
+ common operations are simple while complex operations are possible.
+ Certified ModSecurity Rules, included with ModSecurity, contain a
+ comprehensive set of rules that implement general-purpose hardening,
+ protocol validation and detection of common web application security
+ issues. Heavily commented, these rules can be used as a learning
+ tool.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1003D"></a>Embedded-mode Deployment</h3></div></div><div></div></div><p>ModSecurity is an embeddable web application firewall, which means
+ it can be deployed as part of your existing web server infrastructure
+ provided your web servers are Apache-based. This deployment method has
+ certain advantages:</p><div class="orderedlist"><ol type="1"><li><p>No changes to existing network. It only takes a few minutes to
+ add ModSecurity to your existing web servers. And because it was
+ designed to be completely passive by default, you are free to deploy
+ it incrementally and only use the features you need. It is equally
+ easy to remove or deactivate it if required.</p></li><li><p>No single point of failure. Unlike with network-based
+ deployments, you will not be introducing a new point of failure to
+ your system.</p></li><li><p>Implicit load balancing and scaling. Because it works embedded
+ in web servers, ModSecurity will automatically take advantage of the
+ additional load balancing and scalability features. You will not
+ need to think of load balancing and scaling unless your existing
+ system needs them.</p></li><li><p>Minimal overhead. Because it works from inside the web server
+ process there is no overhead for network communication and minimal
+ overhead in parsing and data exchange.</p></li><li><p>No problem with encrypted or compressed content. Many IDS
+ systems have difficulties analysing SSL traffic. This is not a
+ problem for ModSecurity because it is positioned to work when the
+ traffic is decrypted and decompressed.</p></li></ol></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10054"></a>Network-based Deployment</h3></div></div><div></div></div><p>ModSecurity works equally well when deployed as part of an
+ Apache-based reverse proxy server, and many of our customers choose to
+ do so. In this scenario, one installation of ModSecurity can protect any
+ number of web servers (even the non-Apache ones).</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10059"></a>Portability</h3></div></div><div></div></div><p>ModSecurity is known to work well on a wide range of operating
+ systems. Our customers are successfully running it on Linux, Windows,
+ Solaris, FreeBSD, OpenBSD, NetBSD, AIX, Mac OS X, and HP-UX.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="licensing"></a>Licensing</h3></div></div><div></div></div><p>ModSecurity is available under two licenses. Users can choose to
+ use the software under the terms of the GNU General Public License
+ version 2 (licence text is included with the distribution), as an Open
+ Source / Free Software product. A range of commercial licenses is also
+ available, together with a range of commercial support contracts. For
+ more information on commercial licensing please contact Breach
+ Security.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>ModSecurity, mod_security, ModSecurity Pro, and ModSecurity Core
+ Rules are trademarks or registered trademarks of Breach Security,
+ Inc.</p></div></div></div><div id="navfooter"><hr size="1"><table summary="Navigation footer" width="100%"><tr><td align="left" width="40%"><a accesskey="p" href="index.html">Prev</a> </td><td align="center" width="20%"> </td><td align="right" width="40%"> <a accesskey="n" href="ar01s02.html">Next</a></td></tr><tr><td valign="top" align="left" width="40%"><span class="trademark">ModSecurity</span>® Reference
+ Manual </td><td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td><td valign="top" align="right" width="40%"> <span class="trademark">ModSecurity Core Rules</span>™</td></tr></table></div><div align="center" class="copyright">Copyright (C) 2004-2009 <a href="http://www.breach.com">Breach Security</a></div></body></html>
\ No newline at end of file
--- /dev/null
+
+body {
+ font: 13px/20px Arial, Helvetica;
+ background-color: white;
+ width: 800px;
+}
+
+/* TEXT */
+
+PRE {
+ font-size: 100%;
+ padding: 5px;
+ border-style: solid;
+ border-width: 1px;
+ border-color: #CCCCCC;
+ background-color: #F5F8FA;
+}
+
+p, td, tr, li, ol, ul {
+ /*font-family: Trebuchet MS, Verdana, Tahoma, Arial, Helvetica, Geneva;*/
+ /*font-family: Arial, Helvetica;
+ font-size: 14px;
+ line-height: 24px;*/
+}
+
+.copyright {
+ font-size: 10px;
+}
+
+h1 {
+ padding-top: 40px;
+ font: 24px/30px Arial, Helvetica;
+ font-weight: bold;
+}
+
+h2 {
+ font: 20px/30px Arial, Helvetica;
+ font-weight: bold;
+}
+
+h3 {
+ padding-top: 15px;
+ font: 16px/10px Arial, Helvetica;
+ font-weight: bold;
+}
+
+h4 {
+ padding-top: 15px;
+ font: 14px/10px Arial, Helvetica;
+ font-weight: bold;
+}
+
+
+
+
+.header {
+ background-color: #00448B;
+ border-top: 6px solid #002B6E;
+ height: 84px;
+ vertical-align: top;
+ padding-left: 20px;
+ padding-top: 10px;
+}
+
+.topNavigation {
+ background-color: #EEEEEE;
+ background: url('g/topnav-background.gif');
+ height: 23px;
+ line-height: 12px;
+ vertical-align: top;
+ padding-left: 12px;
+ padding-top: 5px;
+}
+
+.topLink, A.topLink:link, A.topLink:active, A.topLink:visited {
+ font-weight: bold;
+ color: black;
+ text-decoration: none;
+ padding-left: 8px;
+ padding-right: 8px;
+}
+
+A.topLink:hover {
+ color: #BB0000;
+}
+
+#navheader td {
+ font-size: 12px;
+}
+
+#navfooter td {
+ font-size: 12px;
+}
+
+h3.title {
+ margin-top: 0px;
+}
+
+.note {
+ border-top: 1px solid #CCCCCC;
+ border-bottom: 1px solid #CCCCCC;
+}
--- /dev/null
+<html><head><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Operators</title><link href="modsecurity-reference.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.69.1" name="generator"><link rel="start" href="index.html" title="ModSecurity® Reference
+ Manual"><link rel="up" href="index.html" title="ModSecurity® Reference
+ Manual"><link rel="prev" href="actions.html" title="Actions"><link rel="next" href="ar01s10.html" title="Macro Expansion"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div style="background:#F5F5F5;width:100%;border-top:1px solid #DDDDDD;border-bottom:1px solid #DDDDDD"><table width="100%" cellspacing="0" cellpadding="0"><tr><td><a href="http://www.modsecurity.org"><img style="margin:4px" src="modsecurity.gif" width="120" height="36" alt="ModSecurity" border="0"></a></td><td align="right"><a href="http://www.breach.com"><img style="margin:6px" src="breach-logo-small.gif" height="36" width="100" border="0"></a></td></tr></table></div><div id="navheader"><table summary="Navigation header" width="100%"><tr><th align="center" colspan="3">Operators</th></tr><tr><td align="left" width="20%"><a accesskey="p" href="actions.html">Prev</a> </td><td align="center" width="60%"> <a accesskey="h" href="index.html">Home</a></td><td align="right" width="20%"> <a accesskey="n" href="ar01s10.html">Next</a></td></tr></table><hr size="1"></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="operators"></a>Operators</h2></div></div><div></div></div><p>A number of operators can be used in rules, as documented below. The
+ operator syntax uses the <code class="literal">@</code> symbol followed by the
+ specific operator name.</p><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11BC6"></a><code class="literal">beginsWith</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> This operator is a string
+ comparison and returns true if the parameter value is found at the
+ beginning of the input. Macro expansion is performed so you may use
+ variable names such as <code class="literal">%{TX.1}</code>, etc.</p><p>Example:</p><pre class="programlisting">SecRule REQUEST_LINE "!<span class="emphasis"><em>@beginsWith GET</em></span>" t:none,deny,status:403
+SecRule REQUEST_ADDR "^(.*)\.\d+$" deny,status:403,capture,chain
+SecRule ARGS:gw "!<span class="emphasis"><em>@beginsWith %{TX.1}</em></span>"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11BDE"></a><code class="literal">contains</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> This operator is a string
+ comparison and returns true if the parameter value is found anywhere in
+ the input. Macro expansion is performed so you may use variable names
+ such as %{TX.1}, etc.</p><p>Example:</p><pre class="programlisting">SecRule REQUEST_LINE "!<span class="emphasis"><em>@contains .php</em></span>" t:none,deny,status:403
+SecRule REQUEST_ADDR "^(.*)$" deny,status:403,capture,chain
+SecRule ARGS:ip "!<span class="emphasis"><em>@contains %{TX.1}</em></span>"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11BF2"></a><code class="literal">endsWith</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> This operator is a string
+ comparison and returns true if the parameter value is found at the end
+ of the input. Macro expansion is performed so you may use variable names
+ such as %{TX.1}, etc.</p><p>Example:</p><pre class="programlisting">SecRule REQUEST_LINE "!<span class="emphasis"><em>@endsWith HTTP/1.1</em></span>" t:none,deny,status:403
+SecRule ARGS:route "!<span class="emphasis"><em>@endsWith %{REQUEST_ADDR}</em></span>" t:none,deny,status:403</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11C06"></a><code class="literal">eq</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> This operator is a numerical
+ comparison and stands for "equal to."</p><p>Example:</p><pre class="programlisting">SecRule &REQUEST_HEADERS_NAMES "<span class="emphasis"><em>@eq</em></span> 15"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11C17"></a><code class="literal">ge</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> This operator is a numerical
+ comparison and stands for "greater than or equal to."</p><p>Example:</p><pre class="programlisting">SecRule &REQUEST_HEADERS_NAMES "<span class="emphasis"><em>@ge</em></span> 15"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11C28"></a><code class="literal">geoLookup</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> This operator looks up various
+ data fields from an IP address or hostname in the target data. The
+ results will be captured in the <code class="literal">GEO</code>
+ collection.</p><p>You must provide a database via <code class="literal">SecGeoLookupDb</code> before this operator can be
+ used.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This operator matches and the action is executed on a <span class="emphasis"><em>
+ successful</em></span> lookup. For this reason, you probably want to
+ use the <span class="emphasis"><em>pass,nolog</em></span> actions. This allows for
+ <code class="literal">setvar</code> and other non-disruptive
+ actions to be executed on a match. If you wish to block on a failed
+ lookup, then do something like this (look for an empty GEO
+ collection):</p><pre class="programlisting">SecGeoLookupDb /usr/local/geo/data/GeoLiteCity.dat
+...
+SecRule REMOTE_ADDR "@geoLookup" "pass,nolog"
+SecRule &GEO "@eq 0" "deny,status:403,msg:'Failed to lookup IP'"</pre></div><p>See the <code class="literal">GEO</code> variable for an
+ example and more information on various fields available.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11C51"></a><code class="literal">gt</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> This operator is a numerical
+ comparison and stands for "greater than."</p><p>Example:</p><pre class="programlisting">SecRule &REQUEST_HEADERS_NAMES "<span class="emphasis"><em>@gt</em></span> 15"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11C62"></a><code class="literal">inspectFile</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Executes the external
+ script/binary given as parameter to the operator against every file
+ extracted from the request. As of v2.5.0, if the supplied filename is
+ not absolute it is treated as relative to the directory in which the
+ configuration file resides. Also as of v2.5.0, if the filename is
+ determined to be a Lua script (based on its extension) the script will
+ be processed by the internal engine. As such it will have full access to
+ the ModSecurity context.</p><p>Example of using an external binary/script:</p><pre class="programlisting"># Execute external script to validate uploaded files.
+SecRule FILES_TMPNAMES "<span class="emphasis"><em>@inspectFile</em></span> /opt/apache/bin/inspect_script.pl"</pre><p>Example of using Lua script:</p><pre class="programlisting">SecRule FILES_TMPNANMES "@inspectFile <span class="emphasis"><em>inspect.lua</em></span>"</pre><p>Script <code class="filename">inspect.lua</code>:</p><pre class="programlisting">function main(filename)
+ -- Do something to the file to verify it. In this example, we
+ -- read up to 10 characters from the beginning of the file.
+ local f = io.open(filename, "rb");
+ local d = f:read(10);
+ f:close();
+
+ -- Return null if there is no reason to believe there is ansything
+ -- wrong with the file (no match). Returning any text will be taken
+ -- to mean a match should be trigerred.
+ return null;
+end</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11C84"></a><code class="literal">le</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> This operator is a numerical
+ comparison and stands for "less than or equal to."</p><p>Example:</p><pre class="programlisting">SecRule &REQUEST_HEADERS_NAMES "<span class="emphasis"><em>@le</em></span> 15"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11C95"></a><code class="literal">lt</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> This operator is a numerical
+ comparison and stands for "less than."</p><p>Example:</p><pre class="programlisting">SecRule &REQUEST_HEADERS_NAMES "<span class="emphasis"><em>@lt</em></span> 15"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11CA6"></a><code class="literal">pm</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Phrase Match operator. This
+ operator uses a set based matching engine (Aho-Corasick) for faster
+ matches of keyword lists. It will match any one of its arguments
+ anywhere in the target value. The match is case insensitive.</p><p>Example:</p><pre class="programlisting">SecRule REQUEST_HEADERS:User-Agent "<span class="emphasis"><em>@pm</em></span> WebZIP WebCopier Webster WebStripper SiteSnagger ProWebWalker CheeseBot" "deny,status:403</pre><p>The above would deny access with 403 if any of the words matched
+ within the User-Agent HTTP header value.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11CB9"></a><code class="literal">pmFromFile</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Phrase Match operator. This
+ operator uses a set based matching engine (Aho-Corasick) for faster
+ matches of keyword lists. This operator is the same as
+ <code class="literal">@pm</code> except that it takes a list of files as
+ arguments. It will match any one of the phrases listed in the file(s)
+ anywhere in the target value.</p><p>Notes:</p><div class="orderedlist"><ol type="1"><li><p>The contents of the files should be one phrase per line. End
+ of line markers will be stripped from the phrases, however,
+ whitespace will not be trimmed from phrases in the file. Empty lines
+ and comment lines (beginning with a '#') are ignored.</p></li><li><p>To allow easier inclusion of phrase files with rulesets,
+ relative paths may be used to the phrase files. In this case, the
+ path of the file containing the rule is prepended to the phrase file
+ path.</p></li></ol></div><p>Example:</p><pre class="programlisting">SecRule REQUEST_HEADERS:User-Agent "<span class="emphasis"><em>@pm</em></span> /path/to/blacklist1 blacklist2" "deny,status:403</pre><p>The above would deny access with 403 if any of the patterns in the
+ two files matched within the User-Agent HTTP header value. The
+ <code class="literal">blacklist2</code> file would need to be placed in the same
+ path as the file containing the rule.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11CDF"></a><code class="literal">rbl</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Look up the parameter in the RBL
+ given as parameter. Parameter can be an IPv4 address, or a
+ hostname.</p><p>Example:</p><pre class="programlisting">SecRule REMOTE_ADDR "<span class="emphasis"><em>@rbl</em></span> sc.surbl.org"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11CF0"></a><code class="literal">rx</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Regular expression operator.
+ This is the default operator, so if the "@" operator is not defined, it
+ is assumed to be rx.</p><p>Example:</p><pre class="programlisting">SecRule REQUEST_HEADERS:User-Agent "<span class="emphasis"><em>@rx</em></span> nikto"</pre><p><span class="emphasis"><em>Note</em></span></p><p>Regular expressions are handled by the PCRE library (<a href="http://www.pcre.org" target="_top">http://www.pcre.org</a>). ModSecurity
+ compiles its regular expressions with the following settings:</p><div class="orderedlist"><ol type="1"><li><p>The entire input is treated as a single line, even when there
+ are newline characters present.</p></li><li><p>All matches are case-sensitive. If you do not care about case
+ sensitivity you either need to implement the <code class="literal">lowercase</code> transformation function, or use
+ the per-pattern<code class="literal">(?i)</code>modifier, as
+ allowed by PCRE.</p></li><li><p>The <code class="literal">PCRE_DOTALL</code> and
+ <code class="literal">PCRE_DOLLAR_ENDONLY</code> flags are set
+ during compilation, meaning a single dot will match any character,
+ including the newlines and a <code class="literal">$</code>
+ end anchor will not match a trailing newline character.</p></li></ol></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11D2A"></a><code class="literal">streq</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> This operator is a string
+ comparison and returns true if the parameter value matches the input
+ exactly. Macro expansion is performed so you may use variable names such
+ as %{TX.1}, etc.</p><p>Example:</p><pre class="programlisting">SecRule ARGS:foo "!<span class="emphasis"><em>@streq bar</em></span>" t:none,deny,status:403
+SecRule REQUEST_ADDR "^(.*)$" deny,status:403,capture,chain
+SecRule REQUEST_HEADERS:Ip-Address "!<span class="emphasis"><em>@streq %{TX.1}</em></span>"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11D3E"></a><code class="literal">validateByteRange</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Validates the byte range used in
+ the variable falls into the specified range.</p><p>Example:</p><pre class="programlisting">SecRule ARGS:text "<span class="emphasis"><em>@validateByteRange</em></span> 10, 13, 32-126"</pre><p><span class="emphasis"><em>Note</em></span></p><p>You can force requests to consist only of bytes from a certain
+ byte range. This can be useful to avoid stack overflow attacks (since
+ they usually contain "random" binary content). Default range values are
+ 0 and 255, i.e. all byte values are allowed. This directive does not
+ check byte range in a POST payload when
+ <code class="literal">multipart/form-data</code> encoding (file upload) is used.
+ Doing so would prevent binary files from being uploaded. However, after
+ the parameters are extracted from such request they are checked for a
+ valid range.</p><p>validateByteRange is similar to the ModSecurity 1.X
+ SecFilterForceByteRange Directive however since it works in a rule
+ context, it has the following differences:</p><div class="itemizedlist"><ul type="disc"><li><p>You can specify a different range for different
+ variables.</p></li><li><p>It has an "event" context (id, msg....)</p></li><li><p>It is executed in the flow of rules rather than being a built
+ in pre-check.</p></li></ul></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11D64"></a><code class="literal">validateDTD</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Validates the DOM tree generated
+ by the XML request body processor against the supplied DTD.</p><p>Example:</p><pre class="programlisting">SecDefaultAction log,deny,status:403,phase:2
+SecRule REQUEST_HEADERS:Content-Type ^text/xml$ \
+ phase:1,t:lowercase,nolog,pass,ctl:requestBodyProcessor=XML
+SecRule REQBODY_PROCESSOR "!^XML$" nolog,pass,skipAfter:12345
+SecRule XML "<span class="emphasis"><em>@validateDTD /path/to/apache2/conf/xml.dtd</em></span>" "deny,id:12345"</pre><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This operator requires request body to be processed as
+ XML.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11D78"></a><code class="literal">validateSchema</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Validates the DOM tree generated
+ by the XML request body processor against the supplied XML
+ Schema.</p><p>Example:</p><pre class="programlisting">SecDefaultAction log,deny,status:403,phase:2
+SecRule REQUEST_HEADERS:Content-Type ^text/xml$ \
+ phase:1,t:lowercase,nolog,pass,ctl:requestBodyProcessor=XML
+SecRule REQBODY_PROCESSOR "!^XML$" nolog,pass,skipAfter:12345
+SecRule XML "<span class="emphasis"><em>@validateSchema /path/to/apache2/conf/xml.xsd</em></span>" "deny,id:12345"</pre><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This operator requires request body to be processed as
+ XML.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11D8C"></a><code class="literal">validateUrlEncoding</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Verifies the encodings used in
+ the variable (if any) are valid.</p><p>Example:</p><pre class="programlisting">SecRule ARGS "<span class="emphasis"><em>@validateUrlEncoding</em></span>"</pre><p><span class="emphasis"><em>Note</em></span></p><p>URL encoding is an HTTP standard for encoding byte values within a
+ URL. The byte is escaped with a % followed by two hexadecimal values
+ (0-F). This directive does not check encoding in a POST payload when the
+ <code class="literal">multipart/form-data</code> encoding (file upload) is used.
+ It is not necessary to do so because URL encoding is not used for this
+ encoding.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11DA6"></a><code class="literal">validateUtf8Encoding</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Verifies the variable is a valid
+ UTF-8 encoded string.</p><p>Example:</p><pre class="programlisting">SecRule ARGS "<span class="emphasis"><em>@validateUtf8Encoding</em></span>"</pre><p><span class="emphasis"><em>Note</em></span></p><p>UTF-8 encoding is valid on most web servers. Integer values
+ between 0-65535 are encoded in a UTF-8 byte sequence that is escaped by
+ percents. The short form is two bytes in length.</p><p>check for three types of errors:</p><div class="itemizedlist"><ul type="disc"><li><p>Not enough bytes. UTF-8 supports two, three, four, five, and
+ six byte encodings. ModSecurity will locate cases when a byte or
+ more is missing.</p></li><li><p>Invalid encoding. The two most significant bits in most
+ characters are supposed to be fixed to 0x80. Attackers can use this
+ to subvert Unicode decoders.</p></li><li><p>Overlong characters. ASCII characters are mapped directly into
+ the Unicode space and are thus represented with a single byte.
+ However, most ASCII characters can also be encoded with two, three,
+ four, five, and six characters thus tricking the decoder into
+ thinking that the character is something else (and, presumably,
+ avoiding the security check).</p></li></ul></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11DC8"></a><code class="literal">verifyCC</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> This operator verifies a given
+ regular expression as a potential credit card number. It first matches
+ with a single generic regular expression then runs the resulting match
+ through a Luhn checksum algorithm to further verify it as a potential
+ credit card number.</p><p>Example:</p><pre class="programlisting">SecRule ARGS "<span class="emphasis"><em>@verifyCC \d{13,16}</em></span>" \
+ "phase:2,sanitiseMatched,log,auditlog,pass,msg:'Potential credit card number'"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11DD9"></a><code class="literal">within</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> This operator is a string
+ comparison and returns true if the input value is found anywhere within
+ the parameter value. Note that this is similar to
+ <code class="literal">@contains</code>, except that the target and match values
+ are reversed. Macro expansion is performed so you may use variable names
+ such as %{TX.1}, etc.</p><p>Example:</p><pre class="programlisting">SecRule REQUEST_METHOD "!<span class="emphasis"><em>@within get,post,head</em></span>" t:lowercase,deny,status:403
+
+SecAction "pass,setvar:'tx.allowed_methods=get,post,head'"
+SecRule REQUEST_METHOD "!<span class="emphasis"><em>@within %{tx.allowed_methods}</em></span>" t:lowercase,deny,status:403</pre></div></div><div id="navfooter"><hr size="1"><table summary="Navigation footer" width="100%"><tr><td align="left" width="40%"><a accesskey="p" href="actions.html">Prev</a> </td><td align="center" width="20%"> </td><td align="right" width="40%"> <a accesskey="n" href="ar01s10.html">Next</a></td></tr><tr><td valign="top" align="left" width="40%">Actions </td><td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td><td valign="top" align="right" width="40%"> Macro Expansion</td></tr></table></div><div align="center" class="copyright">Copyright (C) 2004-2009 <a href="http://www.breach.com">Breach Security</a></div></body></html>
\ No newline at end of file
--- /dev/null
+<html><head><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Processing Phases</title><link href="modsecurity-reference.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.69.1" name="generator"><link rel="start" href="index.html" title="ModSecurity® Reference
+ Manual"><link rel="up" href="index.html" title="ModSecurity® Reference
+ Manual"><link rel="prev" href="configuration-directives.html" title="Configuration Directives"><link rel="next" href="variables.html" title="Variables"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div style="background:#F5F5F5;width:100%;border-top:1px solid #DDDDDD;border-bottom:1px solid #DDDDDD"><table width="100%" cellspacing="0" cellpadding="0"><tr><td><a href="http://www.modsecurity.org"><img style="margin:4px" src="modsecurity.gif" width="120" height="36" alt="ModSecurity" border="0"></a></td><td align="right"><a href="http://www.breach.com"><img style="margin:6px" src="breach-logo-small.gif" height="36" width="100" border="0"></a></td></tr></table></div><div id="navheader"><table summary="Navigation header" width="100%"><tr><th align="center" colspan="3">Processing Phases</th></tr><tr><td align="left" width="20%"><a accesskey="p" href="configuration-directives.html">Prev</a> </td><td align="center" width="60%"> <a accesskey="h" href="index.html">Home</a></td><td align="right" width="20%"> <a accesskey="n" href="variables.html">Next</a></td></tr></table><hr size="1"></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="processing-phases"></a>Processing Phases</h2></div></div><div></div></div><p>ModSecurity 2.x allows rules to be placed in one of the following
+ five phases:</p><div class="orderedlist"><ol type="1"><li><p>Request headers (<code class="literal">REQUEST_HEADERS</code>)</p></li><li><p>Request body (<code class="literal">REQUEST_BODY</code>)</p></li><li><p>Response headers (<code class="literal">RESPONSE_HEADERS</code>)</p></li><li><p>Response body (<code class="literal">RESPONSE_BODY</code>)</p></li><li><p>Logging (<code class="literal">LOGGING</code>)</p></li></ol></div><p>Below is a diagram of the standard Apache Request Cycle. In the
+ diagram, the 5 ModSecurity processing phases are shown.</p><p><div><img src="apache_request_cycle-modsecurity.jpg" width="495"></div></p><p>In order to select the phase a rule executes during, use the phase
+ action either directly in the rule or in using the
+ <code class="literal">SecDefaultAction</code> directive:</p><pre class="programlisting">SecDefaultAction "log,pass,<span class="emphasis"><em>phase:2</em></span>"
+SecRule REQUEST_HEADERS:Host "!^$" "deny,<span class="emphasis"><em>phase:1</em></span>"</pre><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Keep in mind that rules are executed according to phases, so even
+ if two rules are adjacent in a configuration file, but are set to
+ execute in different phases, they would not happen one after the other.
+ The order of rules in the configuration file is important only within
+ the rules of each phase. This is especially important when using the
+ <code class="literal">skip</code> and <code class="literal">skipAfter</code> actions.</p></div><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>The <code class="literal">LOGGING</code> phase is special. It is executed at
+ the end of each transaction no matter what happened in the previous
+ phases. This means it will be processed even if the request was
+ intercepted or the <code class="literal">allow</code> action was used to pass the
+ transaction through.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10D73"></a>Phase Request Headers</h3></div></div><div></div></div><p>Rules in this phase are processed immediately after Apache
+ completes reading the request headers (post-read-request phase). At this
+ point the request body has not been read yet, meaning not all request
+ arguments are available. Rules should be placed in this phase if you
+ need to have them run early (before Apache does something with the
+ request), to do something before the request body has been read,
+ determine whether or not the request body should be buffered, or decide
+ how you want the request body to be processed (e.g. whether to parse it
+ as XML or not).</p><p><span class="emphasis"><em>Note</em></span></p><p>Rules in this phase can not leverage Apache scope directives
+ (Directory, Location, LocationMatch, etc...) as the post-read-request
+ hook does not have this information yet. The exception here is the
+ VirtualHost directive. If you want to use ModSecurity rules inside
+ Apache locations, then they should run in Phase 2. Refer to the Apache
+ Request Cycle/ModSecurity Processing Phases diagram.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10D7D"></a>Phase Request Body</h3></div></div><div></div></div><p>This is the general-purpose input analysis phase. Most of the
+ application-oriented rules should go here. In this phase you are
+ guaranteed to have received the request arguments (provided the request
+ body has been read). ModSecurity supports three encoding types for the
+ request body phase:</p><div class="itemizedlist"><ul type="disc"><li><p><code class="literal">application/x-www-form-urlencoded</code> - used to
+ transfer form data</p></li><li><p><code class="literal">multipart/form-data</code> - used for file
+ transfers</p></li><li><p><code class="literal">text/xml</code> - used for passing XML data</p></li></ul></div><p>Other encodings are not used by most web applications.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10D97"></a>Phase Response Headers</h3></div></div><div></div></div><p>This phase takes place just before response headers are sent back
+ to the client. Run here if you want to observe the response before that
+ happens, and if you want to use the response headers to determine if you
+ want to buffer the response body. Note that some response status codes
+ (such as 404) are handled earlier in the request cycle by Apache and my
+ not be able to be triggered as expected. Additionally, there are some
+ response headers that are added by Apache at a later hook (such as Date,
+ Server and Connection) that we would not be able to trigger on or
+ sanitize. This should work appropriately in a proxy setup or within
+ phase:5 (logging).</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10D9C"></a>Phase Response Body</h3></div></div><div></div></div><p>This is the general-purpose output analysis phase. At this point
+ you can run rules against the response body (provided it was buffered,
+ of course). This is the phase where you would want to inspect the
+ outbound HTML for information disclosure, error messages or failed
+ authentication text.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10DA1"></a>Phase Logging</h3></div></div><div></div></div><p>This phase is run just before logging takes place. The rules
+ placed into this phase can only affect how the logging is performed.
+ This phase can be used to inspect the error messages logged by Apache.
+ You cannot deny/block connections in this phase as it is too late. This
+ phase also allows for inspection of other response headers that weren't
+ available during phase:3 or phase:4. Note that you must be careful not
+ to inherit a disruptive action into a rule in this phase as this is a
+ configuration error in ModSecurity 2.5.0 and later versions.</p></div></div><div id="navfooter"><hr size="1"><table summary="Navigation footer" width="100%"><tr><td align="left" width="40%"><a accesskey="p" href="configuration-directives.html">Prev</a> </td><td align="center" width="20%"> </td><td align="right" width="40%"> <a accesskey="n" href="variables.html">Next</a></td></tr><tr><td valign="top" align="left" width="40%">Configuration Directives </td><td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td><td valign="top" align="right" width="40%"> Variables</td></tr></table></div><div align="center" class="copyright">Copyright (C) 2004-2009 <a href="http://www.breach.com">Breach Security</a></div></body></html>
\ No newline at end of file
--- /dev/null
+<html><head><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Transformation functions</title><link href="modsecurity-reference.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.69.1" name="generator"><link rel="start" href="index.html" title="ModSecurity® Reference
+ Manual"><link rel="up" href="index.html" title="ModSecurity® Reference
+ Manual"><link rel="prev" href="variables.html" title="Variables"><link rel="next" href="actions.html" title="Actions"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div style="background:#F5F5F5;width:100%;border-top:1px solid #DDDDDD;border-bottom:1px solid #DDDDDD"><table width="100%" cellspacing="0" cellpadding="0"><tr><td><a href="http://www.modsecurity.org"><img style="margin:4px" src="modsecurity.gif" width="120" height="36" alt="ModSecurity" border="0"></a></td><td align="right"><a href="http://www.breach.com"><img style="margin:6px" src="breach-logo-small.gif" height="36" width="100" border="0"></a></td></tr></table></div><div id="navheader"><table summary="Navigation header" width="100%"><tr><th align="center" colspan="3">Transformation functions</th></tr><tr><td align="left" width="20%"><a accesskey="p" href="variables.html">Prev</a> </td><td align="center" width="60%"> <a accesskey="h" href="index.html">Home</a></td><td align="right" width="20%"> <a accesskey="n" href="actions.html">Next</a></td></tr></table><hr size="1"></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="transformation-functions"></a>Transformation functions</h2></div></div><div></div></div><p>When ModSecurity receives request or response information, it makes
+ a copy of this data and places it into memory. It is on this data in
+ memory that transformation functions are applied. The raw request/response
+ data is never altered. Transformation functions are used to transform a
+ variable before testing it in a rule.</p><p><span class="emphasis"><em>Note</em></span></p><p>There are no default transformation functions as there were in
+ previous versions of ModSecurity.</p><p>The following rule will ensure that an attacker does not use mixed
+ case in order to evade the ModSecurity rule:</p><p><pre class="programlisting">SecRule ARGS:p "xp_cmdshell" <span class="emphasis"><em>"t:lowercase"</em></span></pre>
+ multiple transformation actions can be used in the same rule, for example
+ the following rule also ensures that an attacker does not use URL encoding
+ (%xx encoding) for evasion. Note the order of the transformation
+ functions, which ensures that a URL encoded letter is first decoded and
+ than translated to lower case.</p><p><pre class="programlisting">SecRule ARGS:p "xp_cmdshell" <span class="emphasis"><em>"t:urlDecode,t:lowercase"</em></span></pre></p><p>One can use the SecDefaultAction command to ensure the translation
+ occurs for every rule until the next. Note that transformation actions are
+ additive, so if a rule explicitly list actions, the translation actions
+ set by SecDefaultAction are still performed.</p><p><pre class="programlisting">SecDefaultAction <span class="emphasis"><em>t:urlDecode,t:lowercase</em></span></pre></p><p>The following transformation functions are supported:</p><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1142D"></a><code class="literal">base64Decode</code></h3></div></div><div></div></div><p>This function decodes a base64-encoded string.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11434"></a><code class="literal">base64Encode</code></h3></div></div><div></div></div><p>This function encodes input string using base64 encoding.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1143B"></a><code class="literal">compressWhitespace</code></h3></div></div><div></div></div><p>It converts whitespace characters (32, \f, \t, \n, \r, \v, 160) to
+ spaces (ASCII 32) and then compresses multiple consecutive space
+ characters into one.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11442"></a>cssDecode</h3></div></div><div></div></div><p>Decodes CSS-encoded characters, as specified at <a href="http://www.w3.org/TR/REC-CSS2/syndata.html" target="_top">http://www.w3.org/TR/REC-CSS2/syndata.html</a>.
+ This function uses only up to two bytes in the decoding process, meaning
+ it is useful to uncover ASCII characters (that wouldn't normally be
+ encoded) encoded using CSS encoding, or to counter evasion which is a
+ combination of a backslash and non-hexadecimal characters (e.g.
+ <code class="literal">ja\vascript</code> is equivalent to
+ <code class="literal">javascript</code>).</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11453"></a><code class="literal">escapeSeqDecode</code></h3></div></div><div></div></div><p>This function decode ANSI C escape sequences:<code class="literal"> \a</code>,<code class="literal"> \b</code>,
+ <code class="literal">\f</code>, <code class="literal">\n</code>, <code class="literal">\r</code>,
+ <code class="literal">\t</code>, <code class="literal">\v</code>, <code class="literal">\\</code>,
+ <code class="literal">\?</code>, <code class="literal">\'</code>, <code class="literal">\"</code>,
+ <code class="literal">\xHH</code> (hexadecimal), <code class="literal">\0OOO</code> (octal). Invalid encodings are left in
+ the output.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1148E"></a><code class="literal">hexDecode</code></h3></div></div><div></div></div><p>This function decodes a hex-encoded string.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11495"></a><code class="literal">hexEncode</code></h3></div></div><div></div></div><p>This function encodes input as hex-encoded string.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1149C"></a><code class="literal">htmlEntityDecode</code></h3></div></div><div></div></div><p>This function decodes HTML entities present in input. The
+ following variants are supported:</p><div class="itemizedlist"><ul type="disc"><li><p><code class="literal">&#xHH</code> and <code class="literal">&#xHH;</code> (where H is any hexadecimal
+ number)</p></li><li><p><code class="literal">&#DDD</code> and <code class="literal">&#DDD;</code> (where D is any decimal
+ number)</p></li><li><p><code class="literal">&quot</code> and <code class="literal">&quot;</code></p></li><li><p><code class="literal">&nbsp</code> and <code class="literal">&nbsp;</code></p></li><li><p><code class="literal">&lt</code> and <code class="literal">&lt;</code></p></li><li><p><code class="literal">&gt</code> and <code class="literal">&gt;</code></p></li></ul></div><p>This function will convert any entity into a single byte only,
+ possibly resulting in a loss of information. It is thus useful to
+ uncover bytes that would otherwise not need to be encoded, but it cannot
+ do anything with the characters from the range above 255.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N114DE"></a><code class="literal">jsDecode</code></h3></div></div><div></div></div><p>Decodes JavaScript escape sequences. If a
+ <code class="literal">\uHHHH</code> code is in the range of
+ <code class="literal">FF01</code>-<code class="literal">FF5E</code> (the full width ASCII
+ codes), then the higher byte is used to detect and adjust the lower
+ byte. Otherwise, only the lower byte will be used and the higher byte
+ zeroed.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N114F1"></a><code class="literal">length</code></h3></div></div><div></div></div><p>This function converts the input to its numeric length (count of
+ bytes).</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N114F8"></a><code class="literal">lowercase</code></h3></div></div><div></div></div><p>This function converts all characters to lowercase using the
+ current C locale.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N114FF"></a><code class="literal">md5</code></h3></div></div><div></div></div><p>This function calculates an MD5 hash from input. Note that the
+ computed hash is in a raw binary form and may need encoded into text to
+ be usable (for example: <code class="literal">t:md5,t:hexEncode</code>).</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1150A"></a><code class="literal"><code class="literal">none</code></code></h3></div></div><div></div></div><p>Not an actual transformation function, but an instruction to
+ ModSecurity to remove all transformation functions associated with the
+ current rule.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11513"></a><code class="literal">normalisePath</code></h3></div></div><div></div></div><p>This function will remove multiple slashes, self-references and
+ directory back-references (except when they are at the beginning of the
+ input).</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1151A"></a><code class="literal">normalisePathWin</code></h3></div></div><div></div></div><p>Same as <code class="literal">normalisePath</code>, but will first convert
+ backslash characters to forward slashes.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11525"></a><code class="literal">parityEven7bit</code></h3></div></div><div></div></div><p>This function calculates even parity of 7-bit data replacing the
+ 8th bit of each target byte with the calculated parity bit.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1152C"></a><code class="literal">parityOdd7bit</code></h3></div></div><div></div></div><p>This function calculates odd parity of 7-bit data replacing the
+ 8th bit of each target byte with the calculated parity bit.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11533"></a><code class="literal">parityZero7bit</code></h3></div></div><div></div></div><p>This function calculates zero parity of 7-bit data replacing the
+ 8th bit of each target byte with a zero parity bit which allows
+ inspection of even/odd parity 7bit data as ASCII7 data.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1153A"></a><code class="literal">removeNulls</code></h3></div></div><div></div></div><p>This function removes NULL bytes from input.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11541"></a><code class="literal">removeWhitespace</code></h3></div></div><div></div></div><p>This function removes all whitespace characters from input.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11548"></a><code class="literal">replaceComments</code></h3></div></div><div></div></div><p>This function replaces each occurrence of a C-style comments
+ (<code class="literal">/* ... */</code>) with a single space
+ (multiple consecutive occurrences of a space will not be compressed).
+ Unterminated comments will too be replaced with a space (ASCII 32).
+ However, a standalone termination of a comment (<code class="literal">*/</code>) will not be acted upon.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11557"></a><code class="literal">replaceNulls</code></h3></div></div><div></div></div><p>This function is enabled by default. It replaces NULL bytes in
+ input with spaces (ASCII 32).</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1155E"></a><code class="literal">urlDecode</code></h3></div></div><div></div></div><p>This function decodes an URL-encoded input string. Invalid
+ encodings (i.e. the ones that use non-hexadecimal characters, or the
+ ones that are at the end of string and have one or two characters
+ missing) will not be converted. If you want to detect invalid encodings
+ use the <code class="literal">@validateUrlEncoding</code>
+ operator. The transformation function should not be used against
+ variables that have already been URL-decoded unless it is your intention
+ to perform URL decoding twice!</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11569"></a><code class="literal">urlDecodeUni</code></h3></div></div><div></div></div><p>In addition to decoding <code class="literal">%xx</code> like <code class="literal">urlDecode, urlDecodeUni</code> also decodes <code class="literal">%uXXXX</code> encoding. If the code is in the range
+ of <code class="literal">FF01</code>-<code class="literal">FF5E</code> (the full width ASCII
+ codes), then the higher byte is used to detect and adjust the lower
+ byte. Otherwise, only the lower byte will be used and the higher byte
+ zeroed.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11584"></a><code class="literal">urlEncode</code></h3></div></div><div></div></div><p>This function encodes input using URL encoding.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1158B"></a><code class="literal">sha1</code></h3></div></div><div></div></div><p>This function calculates a SHA1 hash from input. Note that the
+ computed hash is in a raw binary form and may need encoded to be usable
+ (for example: <code class="literal">t:sha1,t:hexEncode</code>).</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11596"></a><code class="literal">trimLeft</code></h3></div></div><div></div></div><p>This function removes whitespace from the left side of
+ input.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1159D"></a><code class="literal">trimRight</code></h3></div></div><div></div></div><p>This function removes whitespace from the right side of
+ input.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N115A4"></a><code class="literal">trim</code></h3></div></div><div></div></div><p>This function removes whitespace from both the left and right
+ sides of input.</p></div></div><div id="navfooter"><hr size="1"><table summary="Navigation footer" width="100%"><tr><td align="left" width="40%"><a accesskey="p" href="variables.html">Prev</a> </td><td align="center" width="20%"> </td><td align="right" width="40%"> <a accesskey="n" href="actions.html">Next</a></td></tr><tr><td valign="top" align="left" width="40%">Variables </td><td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td><td valign="top" align="right" width="40%"> Actions</td></tr></table></div><div align="center" class="copyright">Copyright (C) 2004-2009 <a href="http://www.breach.com">Breach Security</a></div></body></html>
\ No newline at end of file
--- /dev/null
+<html><head><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Variables</title><link href="modsecurity-reference.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.69.1" name="generator"><link rel="start" href="index.html" title="ModSecurity® Reference
+ Manual"><link rel="up" href="index.html" title="ModSecurity® Reference
+ Manual"><link rel="prev" href="processing-phases.html" title="Processing Phases"><link rel="next" href="transformation-functions.html" title="Transformation functions"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div style="background:#F5F5F5;width:100%;border-top:1px solid #DDDDDD;border-bottom:1px solid #DDDDDD"><table width="100%" cellspacing="0" cellpadding="0"><tr><td><a href="http://www.modsecurity.org"><img style="margin:4px" src="modsecurity.gif" width="120" height="36" alt="ModSecurity" border="0"></a></td><td align="right"><a href="http://www.breach.com"><img style="margin:6px" src="breach-logo-small.gif" height="36" width="100" border="0"></a></td></tr></table></div><div id="navheader"><table summary="Navigation header" width="100%"><tr><th align="center" colspan="3">Variables</th></tr><tr><td align="left" width="20%"><a accesskey="p" href="processing-phases.html">Prev</a> </td><td align="center" width="60%"> <a accesskey="h" href="index.html">Home</a></td><td align="right" width="20%"> <a accesskey="n" href="transformation-functions.html">Next</a></td></tr></table><hr size="1"></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="variables"></a>Variables</h2></div></div><div></div></div><p>The following variables are supported in ModSecurity 2.x:</p><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10DAC"></a><code class="literal">ARGS</code></h3></div></div><div></div></div><p><code class="literal">ARGS</code> is a collection and can be used on its own
+ (means all arguments including the POST Payload), with a static
+ parameter (matches arguments with that name), or with a regular
+ expression (matches all arguments with name that matches the regular
+ expression). To look at only the query string or body arguments, see the
+ <code class="literal">ARGS_GET</code> and <code class="literal">ARGS_POST</code>
+ collections.</p><p>Some variables are actually collections, which are expanded into
+ more variables at runtime. The following example will examine all
+ request arguments:<pre class="programlisting">SecRule ARGS dirty</pre>
+ Sometimes, however, you will want to look only at parts of a collection.
+ This can be achieved with the help of the <span class="emphasis"><em>selection
+ operator</em></span>(colon). The following example will only look at the
+ arguments named<code class="literal"> p</code> (do note that, in
+ general, requests can contain multiple arguments with the same name):
+ <pre class="programlisting">SecRule ARGS:p dirty</pre>
+ It is also possible to specify exclusions. The following will examine
+ all request arguments for the word<span class="emphasis"><em> dirty</em></span>, except
+ the ones named <code class="literal">z</code> (again, there can be
+ zero or more arguments named<code class="literal"> z</code>):
+ <pre class="programlisting">SecRule ARGS|!ARGS:z dirty</pre>
+ There is a special operator that allows you to count how many variables
+ there are in a collection. The following rule will trigger if there is
+ more than zero arguments in the request (ignore the second parameter for
+ the time being): <pre class="programlisting">SecRule &ARGS !^0$</pre>
+ And sometimes you need to look at an array of parameters, each with a
+ slightly different name. In this case you can specify a regular
+ expression in the selection operator itself. The following rule will
+ look into all arguments whose names begin with <code class="literal">id_</code>: <pre class="programlisting">SecRule ARGS:/^id_/ dirty</pre></p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Using <code class="literal">ARGS:p</code> will not result in any
+ invocations against the operator if argument p does not exist.</p><p>In ModSecurity 1.X, the <code class="literal">ARGS</code> variable stood
+ for <code class="literal">QUERY_STRING</code> + <code class="literal">POST_PAYLOAD</code>,
+ whereas now it expands to individual variables.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10DFE"></a><code class="literal">ARGS_COMBINED_SIZE</code></h3></div></div><div></div></div><p>This variable allows you to set more targeted evaluations on the
+ total size of the Arguments as compared with normal Apache LimitRequest
+ directives. For example, you could create a rule to ensure that the
+ total size of the argument data is below a certain threshold (to help
+ prevent buffer overflow issues). Example: Block request if the size of
+ the arguments is above 25 characters.</p><pre class="programlisting">SecRule REQUEST_FILENAME "^/cgi-bin/login\.php" \
+ "chain,log,deny,phase:2,t:none,t:lowercase,t:normalisePath"
+SecRule <span class="emphasis"><em>ARGS_COMBINED_SIZE</em></span> "@gt 25"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10E0B"></a><code class="literal">ARGS_NAMES</code></h3></div></div><div></div></div><p>Is a collection of the argument names. You can search for specific
+ argument names that you want to block. In a positive policy scenario,
+ you can also whitelist (using an inverted rule with the ! character)
+ only authorized argument names. Example: This example rule will only
+ allow 2 argument names - p and a. If any other argument names are
+ injected, it will be blocked.</p><pre class="programlisting">SecRule REQUEST_FILENAME "/index.php" \
+ "chain,log,deny,status:403,phase:2,t:none,t:lowercase,t:normalisePath"
+SecRule<span class="emphasis"><em> ARGS_NAMES</em></span> "!^(p|a)$" "t:none,t:lowercase"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10E18"></a><code class="literal">ARGS_GET</code></h3></div></div><div></div></div><p><code class="literal">ARGS_GET</code> is similar to <code class="literal">ARGS</code>,
+ but only contains arguments from the query string.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10E26"></a><code class="literal">ARGS_GET_NAMES</code></h3></div></div><div></div></div><p><code class="literal">ARGS_GET_NAMES</code> is similar to
+ <code class="literal">ARGS_NAMES</code>, but only contains argument names from the
+ query string.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10E34"></a><code class="literal">ARGS_POST</code></h3></div></div><div></div></div><p><code class="literal">ARGS_POST</code> is similar to
+ <code class="literal">ARGS</code>, but only contains arguments from the POST
+ body.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10E42"></a><code class="literal">ARGS_POST_NAMES</code></h3></div></div><div></div></div><p><code class="literal">ARGS_POST_NAMES</code> is similar to
+ <code class="literal">ARGS_NAMES</code>, but only contains argument names from the
+ POST body.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10E50"></a><code class="literal">AUTH_TYPE</code></h3></div></div><div></div></div><p>This variable holds the authentication method used to validate a
+ user. Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>AUTH_TYPE</em></span> "basic" log,deny,status:403,phase:1,t:lowercase</pre><p><span class="emphasis"><em>Note</em></span></p><p>This data will not be available in a proxy-mode deployment as the
+ authentication is not local. In a proxy-mode deployment, you would need
+ to inspect the <code class="literal">REQUEST_HEADERS:Authorization</code>
+ header.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10E66"></a><code class="literal">ENV</code></h3></div></div><div></div></div><p>Collection, requires a single parameter (after colon). The
+ <code class="literal">ENV</code> variable is set with setenv and does not give
+ access to the CGI environment variables. Example:</p><pre class="programlisting">SecRule REQUEST_FILENAME "printenv" pass,<span class="emphasis"><em>setenv:tag=suspicious</em></span>
+SecRule <span class="emphasis"><em>ENV:tag</em></span> "suspicious"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10E7A"></a><code class="literal">FILES</code></h3></div></div><div></div></div><p>Collection. Contains a collection of original file names (as they
+ were called on the remote user's file system). Note: only available if
+ files were extracted from the request body. Example:</p><pre class="programlisting">SecRule<span class="emphasis"><em> FILES</em></span> "\.conf$" log,deny,status:403,phase:2</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10E87"></a><code class="literal">FILES_COMBINED_SIZE</code></h3></div></div><div></div></div><p>Single value. Total size of the uploaded files. Note: only
+ available if files were extracted from the request body. Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>FILES_COMBINED_SIZE</em></span> "@gt 1000" log,deny,status:403,phase:2</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10E94"></a><code class="literal">FILES_NAMES</code></h3></div></div><div></div></div><p>Collection w/o parameter. Contains a list of form fields that were
+ used for file upload. Note: only available if files were extracted from
+ the request body. Example:</p><pre class="programlisting">SecRule<span class="emphasis"><em> FILES_NAMES</em></span> "^upfile$" log,deny,status:403,phase:2</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10EA1"></a><code class="literal">FILES_SIZES</code></h3></div></div><div></div></div><p>Collection. Contains a list of file sizes. Useful for implementing
+ a size limitation on individual uploaded files. Note: only available if
+ files were extracted from the request body. Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>FILES_SIZES</em></span> "@gt 100" log,deny,status:403,phase:2</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10EAE"></a><code class="literal">FILES_TMPNAMES</code></h3></div></div><div></div></div><p>Collection. Contains a collection of temporary files' names on the
+ disk. Useful when used together with <code class="literal">@inspectFile.</code> Note: only available if files
+ were extracted from the request body. Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>FILES_TMPNAMES</em></span> "@inspectFile /path/to/inspect_script.pl"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10EBF"></a><code class="literal">GEO</code></h3></div></div><div></div></div><p><code class="literal">GEO</code> is a collection populated by the results of
+ the last <code class="literal">@geoLookup</code> operator. The
+ collection can be used to match geographical fields looked from an IP
+ address or hostname.</p><p>Available since ModSecurity 2.5.0.</p><p>Fields:</p><div class="itemizedlist"><ul type="disc"><li><p><span class="emphasis"><em>COUNTRY_CODE:</em></span> Two character country code.
+ EX: US, GB, etc.</p></li><li><p><span class="emphasis"><em>COUNTRY_CODE3:</em></span> Up to three character
+ country code.</p></li><li><p><span class="emphasis"><em>COUNTRY_NAME:</em></span> The full country
+ name.</p></li><li><p><span class="emphasis"><em>COUNTRY_CONTINENT:</em></span> The two character
+ continent that the country is located. EX: EU</p></li><li><p><span class="emphasis"><em>REGION:</em></span> The two character region. For US,
+ this is state. For Canada, providence, etc.</p></li><li><p><span class="emphasis"><em>CITY:</em></span> The city name if supported by the
+ database.</p></li><li><p><span class="emphasis"><em>POSTAL_CODE:</em></span> The postal code if supported
+ by the database.</p></li><li><p><span class="emphasis"><em>LATITUDE:</em></span> The latitude if supported by
+ the database.</p></li><li><p><span class="emphasis"><em>LONGITUDE:</em></span> The longitude if supported by
+ the database.</p></li><li><p><span class="emphasis"><em>DMA_CODE:</em></span> The metropolitan area code if
+ supported by the database. (US only)</p></li><li><p><span class="emphasis"><em>AREA_CODE:</em></span> The phone system area code.
+ (US only)</p></li></ul></div><p>Example:</p><pre class="programlisting">SecGeoLookupDb /usr/local/geo/data/GeoLiteCity.dat
+...
+SecRule REMOTE_ADDR "<span class="emphasis"><em>@geoLookup</em></span>" "chain,drop,msg:'Non-GB IP address'"
+SecRule GEO:COUNTRY_CODE "!@streq GB"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10F11"></a><code class="literal">HIGHEST_SEVERITY</code></h3></div></div><div></div></div><p>This variable holds the highest severity of any rules that have
+ matched so far. Severities are numeric values and thus can be used with
+ comparison operators such as <code class="literal">@lt</code>,
+ etc.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Higher severities have a lower numeric value.</p><p>A value of 255 indicates no severity has been set.</p></div><pre class="programlisting">SecRule HIGHEST_SEVERITY "@le 2" "phase:2,deny,status:500,msg:'severity %{HIGHEST_SEVERITY}'"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10F24"></a><code class="literal">MATCHED_VAR</code></h3></div></div><div></div></div><p>This variable holds the value of the variable that was matched
+ against. It is similar to the TX:0, except it can be used for all
+ operators and does not require that the <code class="literal">capture</code> action be specified.</p><pre class="programlisting">SecRule ARGS pattern chain,deny
+...
+SecRule <span class="emphasis"><em>MATCHED_VAR</em></span> "further scrutiny"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10F35"></a><code class="literal">MATCHED_VAR_NAME</code></h3></div></div><div></div></div><p>This variable holds the full name of the variable that was matched
+ against.</p><pre class="programlisting">SecRule ARGS pattern setvar:tx.mymatch=%{MATCHED_VAR_NAME}
+...
+SecRule <span class="emphasis"><em>TX:MYMATCH</em></span> "@eq ARGS:param" deny</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10F42"></a><code class="literal">MODSEC_BUILD</code></h3></div></div><div></div></div><p>This variable holds the ModSecurity build number. This variable is
+ intended to be used to check the build number prior to using a feature
+ that is available only in a certain build. Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>MODSEC_BUILD</em></span> "!@ge 02050102" skipAfter:12345
+SecRule ARGS "@pm some key words" id:12345,deny,status:500</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10F4F"></a><code class="literal">MULTIPART_CRLF_LF_LINES</code></h3></div></div><div></div></div><p>This flag variable will be set to <code class="literal">1</code> whenever a
+ multi-part request uses mixed line terminators. The
+ <code class="literal">multipart/form-data</code> RFC requires
+ <code class="literal">CRLF</code> sequence to be used to terminate lines. Since
+ some client implementations use only <code class="literal">LF</code> to terminate
+ lines you might want to allow them to proceed under certain
+ circumstances (if you want to do this you will need to stop using
+ <code class="literal">MULTIPART_STRICT_ERROR</code> and check each multi-part flag
+ variable individually, avoiding <code class="literal">MULTIPART_LF_LINE</code>).
+ However, mixing <code class="literal">CRLF</code> and <code class="literal">LF</code> line
+ terminators is dangerous as it can allow for evasion. Therefore, in such
+ cases, you will have to add a check for
+ <code class="literal">MULTIPART_CRLF_LF_LINES</code>.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10F7A"></a><code class="literal">MULTIPART_STRICT_ERROR</code></h3></div></div><div></div></div><p><code class="literal">MULTIPART_STRICT_ERROR</code> will be set to
+ <code class="literal">1</code> when any of the following variables is also set to
+ <code class="literal">1</code>: <code class="literal">REQBODY_PROCESSOR_ERROR</code>,
+ <code class="literal">MULTIPART_BOUNDARY_QUOTED</code>,
+ <code class="literal">MULTIPART_BOUNDARY_WHITESPACE</code>,
+ <code class="literal">MULTIPART_DATA_BEFORE</code>,
+ <code class="literal">MULTIPART_DATA_AFTER</code>,
+ <code class="literal">MULTIPART_HEADER_FOLDING</code>,
+ <code class="literal">MULTIPART_LF_LINE</code>,
+ <code class="literal">MULTIPART_SEMICOLON_MISSING</code>
+ <code class="literal">MULTIPART_INVALID_QUOTING</code>. Each of these variables
+ covers one unusual (although sometimes legal) aspect of the request body
+ in <code class="literal">multipart/form-data format</code>. Your policies should
+ <span class="emphasis"><em>always</em></span> contain a rule to check either this variable
+ (easier) or one or more individual variables (if you know exactly what
+ you want to accomplish). Depending on the rate of false positives and
+ your default policy you should decide whether to block or just warn when
+ the rule is triggered.</p><p>The best way to use this variable is as in the example
+ below:</p><pre class="programlisting">SecRule MULTIPART_STRICT_ERROR "!@eq 0" \
+"phase:2,t:none,log,deny,msg:'Multipart request body \
+failed strict validation: \
+PE %{REQBODY_PROCESSOR_ERROR}, \
+BQ %{MULTIPART_BOUNDARY_QUOTED}, \
+BW %{MULTIPART_BOUNDARY_WHITESPACE}, \
+DB %{MULTIPART_DATA_BEFORE}, \
+DA %{MULTIPART_DATA_AFTER}, \
+HF %{MULTIPART_HEADER_FOLDING}, \
+LF %{MULTIPART_LF_LINE}, \
+SM %{MULTIPART_SEMICOLON_MISSING}, \
+IQ %{MULTIPART_INVALID_QUOTING}'"</pre><p>The <code class="literal">multipart/form-data</code> parser was upgraded in
+ ModSecurity v2.1.3 to actively look for signs of evasion. Many variables
+ (as listed above) were added to expose various facts discovered during
+ the parsing process. The <code class="literal">MULTIPART_STRICT_ERROR</code>
+ variable is handy to check on all abnormalities at once. The individual
+ variables allow detection to be fine-tuned according to your
+ circumstances in order to reduce the number of false positives. Detailed
+ analysis of various evasion techniques covered will be released as a
+ separated document at a later date.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10FC6"></a><code class="literal">MULTIPART_UNMATCHED_BOUNDARY</code></h3></div></div><div></div></div><p>Set to <code class="literal">1</code> when, during the parsing phase of a
+ <code class="literal">multipart/request-body</code>, ModSecurity encounters what
+ feels like a boundary but it is not. Such an event may occur when
+ evasion of ModSecurity is attempted.</p><p>The best way to use this variable is as in the example
+ below:</p><pre class="programlisting">SecRule MULTIPART_UNMATCHED_BOUNDARY "!@eq 0" \
+"phase:2,t:none,log,deny,msg:'Multipart parser detected a possible unmatched boundary.'"</pre><p>Change the rule from blocking to logging-only if many false
+ positives are encountered.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10FDC"></a><code class="literal">PATH_INFO</code></h3></div></div><div></div></div><p>Besides passing query information to a script/handler, you can
+ also pass additional data, known as extra path information, as part of
+ the URL. Example:</p><pre class="programlisting">SecRule<span class="emphasis"><em> PATH_INFO</em></span> "^/(bin|etc|sbin|opt|usr)"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10FE9"></a><code class="literal">QUERY_STRING</code></h3></div></div><div></div></div><p>This variable holds form data passed to the script/handler by
+ appending data after a question mark. Warning: Not URL-decoded.
+ Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>QUERY_STRING</em></span> "attack"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10FF6"></a><code class="literal">REMOTE_ADDR</code></h3></div></div><div></div></div><p>This variable holds the IP address of the remote client.
+ Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>REMOTE_ADDR</em></span> "^192\.168\.1\.101$"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11003"></a><code class="literal">REMOTE_HOST</code></h3></div></div><div></div></div><p>If HostnameLookUps are set to On, then this variable will hold the
+ DNS resolved remote host name. If it is set to Off, then it will hold
+ the remote IP address. Possible uses for this variable would be to deny
+ known bad client hosts or network blocks, or conversely, to allow in
+ authorized hosts. Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>REMOTE_HOST</em></span> "\.evil\.network\org$"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11010"></a><code class="literal">REMOTE_PORT</code></h3></div></div><div></div></div><p>This variable holds information on the source port that the client
+ used when initiating the connection to our web server. Example: in this
+ example, we are evaluating to see if the <code class="literal">REMOTE_PORT</code>
+ is less than 1024, which would indicate that the user is a privileged
+ user (root).</p><pre class="programlisting">SecRule <span class="emphasis"><em>REMOTE_PORT</em></span> "@lt 1024" phase:1,log,pass,setenv:remote_port=privileged</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11021"></a><code class="literal">REMOTE_USER</code></h3></div></div><div></div></div><p>This variable holds the username of the authenticated user. If
+ there are no password (basic|digest) access controls in place, then this
+ variable will be empty. Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>REMOTE_USER</em></span> "admin"</pre><p><span class="emphasis"><em>Note</em></span></p><p>This data will not be available in a proxy-mode deployment as the
+ authentication is not local.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11033"></a><code class="literal">REQBODY_PROCESSOR</code></h3></div></div><div></div></div><p>Built-in processors are <code class="literal">URLENCODED</code>,<code class="literal">
+ MULTIPART</code>, and <code class="literal">XML</code>.
+ Example:</p><pre class="programlisting">SecRule<span class="emphasis"><em> REQBODY_PROCESSOR</em></span> "^XML$ chain
+SecRule XML "@validateDTD /opt/apache-frontend/conf/xml.dtd"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1104C"></a><code class="literal">REQBODY_PROCESSOR_ERROR</code></h3></div></div><div></div></div><p>Possible values are 0 (no error) or 1 (error). This variable will
+ be set by request body processors (typically the
+ <code class="classname">multipart/request-data</code> parser or the XML parser)
+ when they fail to properly parse a request payload.</p><p>Example:</p><pre class="programlisting">SecRule<span class="emphasis"><em> REQBODY_PROCESSOR_ERROR</em></span> "@eq 1" deny,phase:2</pre><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Your policies <span class="emphasis"><em>must</em></span> have a rule to check
+ REQBODY_PROCESSOR_ERROR at the beginning of phase 2. Failure to do so
+ will leave the door open for impedance mismatch attacks. It is
+ possible, for example, that a payload that cannot be parsed by
+ ModSecurity can be successfully parsed by more tolerant parser
+ operating in the application. If your policy dictates blocking then
+ you should reject the request if error is detected. When operating in
+ detection-only mode your rule should alert with high severity when
+ request body processing fails.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11064"></a><code class="literal">REQBODY_PROCESSOR_ERROR_MSG</code></h3></div></div><div></div></div><p>Empty, or contains the error message from the processor.
+ Example:</p><pre class="programlisting">SecRule<span class="emphasis"><em> REQBODY_PROCESSOR_ERROR_MSG</em></span> "failed to parse" t:lowercase</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11071"></a><code class="literal">REQUEST_BASENAME</code></h3></div></div><div></div></div><p>This variable holds just the filename part of
+ <code class="literal">REQUEST_FILENAME</code> (e.g. index.php).</p><p>Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>REQUEST_BASENAME</em></span> "^login\.php$" phase:2,t:none,t:lowercase</pre><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Please note that anti-evasion transformations are not applied to
+ this variable by default. <code class="literal">REQUEST_BASENAME</code> will
+ recognise both <code class="literal">/</code> and <code class="literal">\</code> as path
+ separators.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11093"></a><code class="literal">REQUEST_BODY</code></h3></div></div><div></div></div><p>This variable holds the data in the request body (including
+ <code class="literal">POST_PAYLOAD</code> data). <code class="literal">REQUEST_BODY</code>
+ should be used if the original order of the arguments is important
+ (<code class="literal">ARGS</code> should be used in all other cases).
+ Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>REQUEST_BODY</em></span> "^username=\w{25,}\&password=\w{25,}\&Submit\=login$"</pre><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This variable is only available if the
+ <code class="literal">URLENCODED</code> request body processor parsed a request
+ body. This will occur by default when an
+ <code class="literal">application/x-www-form-urlencoded</code> is detected, or
+ the <code class="literal">URLENCODED</code> request body parser is forced. As of
+ 2.5.7 it is possible to force the presence of the
+ <code class="literal">REQUEST_BODY</code> variable, but only when there is no
+ request body processor defined, using the
+ <code class="literal">ctl:forceRequestBodyVariable</code> option in the
+ <code class="literal">REQUEST_HEADERS</code> phase.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N110C7"></a><code class="literal">REQUEST_COOKIES</code></h3></div></div><div></div></div><p>This variable is a collection of all of the cookie data. Example:
+ the following example is using the Ampersand special operator to count
+ how many variables are in the collection. In this rule, it would trigger
+ if the request does not include any Cookie headers.</p><pre class="programlisting">SecRule<span class="emphasis"><em> &REQUEST_COOKIES</em></span> "@eq 0"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N110D4"></a><code class="literal">REQUEST_COOKIES_NAMES</code></h3></div></div><div></div></div><p>This variable is a collection of the cookie names in the request
+ headers. Example: the following rule will trigger if the JSESSIONID
+ cookie is not present.</p><pre class="programlisting">SecRule<span class="emphasis"><em> &REQUEST_COOKIES_NAMES:JSESSIONID</em></span> "@eq 0"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N110E1"></a><code class="literal">REQUEST_FILENAME</code></h3></div></div><div></div></div><p>This variable holds the relative <code class="literal">REQUEST_URI</code>
+ minus the <code class="literal">QUERY_STRING</code> part (e.g. /index.php).
+ Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>REQUEST_FILENAME</em></span> "^/cgi-bin/login\.php$" phase:2,t:none,t:normalisePath</pre><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Please note that anti-evasion transformations are not used on
+ <code class="literal">REQUEST_FILENAME</code> by default.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N110FD"></a><code class="literal">REQUEST_HEADERS</code></h3></div></div><div></div></div><p>This variable can be used as either a collection of all of the
+ request headers or can be used to specify individual headers (by using
+ REQUEST_HEADERS<span class="emphasis"><em>:Header-Name</em></span>). Example: the first
+ example uses <code class="literal">REQUEST_HEADERS</code> as a collection and is
+ applying the <code class="literal">validateUrlEncoding</code> operator against all
+ headers.</p><pre class="programlisting">SecRule <span class="emphasis"><em>REQUEST_HEADERS</em></span> "@validateUrlEncoding"</pre><p>Example: the second example is targeting only the
+ <code class="literal">Host</code> header.</p><pre class="programlisting">SecRule <span class="emphasis"><em>REQUEST_HEADERS:Host</em></span> "^[\d\.]+$" \
+ "deny,log,status:400,msg:'Host header is a numeric IP address'"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11121"></a><code class="literal">REQUEST_HEADERS_NAMES</code></h3></div></div><div></div></div><p>This variable is a collection of the names of all of the request
+ headers. Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>REQUEST_HEADERS_NAMES</em></span> "^x-forwarded-for" \
+ "log,deny,status:403,t:lowercase,msg:'Proxy Server Used'"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1112E"></a><code class="literal">REQUEST_LINE</code></h3></div></div><div></div></div><p>This variable holds the complete request line sent to the server
+ (including the REQUEST_METHOD and HTTP version data). Example: this
+ example rule will trigger if the request method is something other than
+ GET, HEAD, POST or if the HTTP is something other than HTTP/0.9, 1.0 or
+ 1.1.</p><pre class="programlisting">SecRule <span class="emphasis"><em>REQUEST_LINE</em></span> "!(^((?:(?:pos|ge)t|head))|http/(0\.9|1\.0|1\.1)$)" t:none,t:lowercase</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1113B"></a><code class="literal">REQUEST_METHOD</code></h3></div></div><div></div></div><p>This variable holds the request method used by the client.</p><p>The following example will trigger if the request method is either
+ <code class="literal">CONNECT</code> or TRACE.</p><pre class="programlisting">SecRule <span class="emphasis"><em>REQUEST_METHOD</em></span> "^((?:connect|trace))$" t:none,t:lowercase</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1114E"></a><code class="literal">REQUEST_PROTOCOL</code></h3></div></div><div></div></div><p>This variable holds the request protocol version information.
+ Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>REQUEST_PROTOCOL</em></span> "!^http/(0\.9|1\.0|1\.1)$" t:none,t:lowercase</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1115B"></a><code class="literal">REQUEST_URI</code></h3></div></div><div></div></div><p>This variable holds the full URL including the
+ <code class="literal">QUERY_STRING</code> data (e.g. /index.php?p=X), however it
+ will never contain a domain name, even if it was provided on the request
+ line. It also does not include either the
+ <code class="literal">REQUEST_METHOD</code> or the HTTP version info.</p><p>Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>REQUEST_URI</em></span> "attack" phase:1,t:none,t:urlDecode,t:lowercase,t:normalisePath</pre><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Please note that anti-evasion transformations are not used on
+ <code class="literal">REQUEST_URI</code> by default.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11179"></a><code class="literal">REQUEST_URI_RAW</code></h3></div></div><div></div></div><p>Same as <code class="literal">REQUEST_URI</code> but will contain the domain
+ name if it was provided on the request line (e.g.
+ http://www.example.com/index.php?p=X).</p><p>Example:</p><pre class="programlisting">SecRule<span class="emphasis"><em> REQUEST_URI_RAW</em></span> "http:/" phase:1,t:none,t:urlDecode,t:lowercase,t:normalisePath</pre><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Please note that anti-evasion transformations are not used on
+ <code class="literal">REQUEST_URI_RAW</code> by default.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11193"></a><code class="literal">RESPONSE_BODY</code></h3></div></div><div></div></div><p>This variable holds the data for the response payload.</p><p>Example:</p><pre class="programlisting">SecRule<span class="emphasis"><em> RESPONSE_BODY</em></span> "ODBC Error Code"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N111A2"></a><code class="literal">RESPONSE_CONTENT_LENGTH</code></h3></div></div><div></div></div><p>Response body length in bytes. Can be available starting with
+ phase 3 but it does not have to be (as the length of response body is
+ not always known in advance.) If the size is not known this variable
+ will contain a zero. If <code class="literal">RESPONSE_CONTENT_LENGTH</code>
+ contains a zero in phase 5 that means the actual size of the response
+ body was 0.</p><p>The value of this variable can change between phases if the body
+ is modified. For example, in embedded mode
+ <code class="literal">mod_deflate</code> can compress the response body between
+ phases 4 and 5.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N111B3"></a><code class="literal">RESPONSE_CONTENT_TYPE</code></h3></div></div><div></div></div><p>Response content type. Only available starting with phase
+ 3.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N111BA"></a><code class="literal">RESPONSE_HEADERS</code></h3></div></div><div></div></div><p>This variable is similar to the REQUEST_HEADERS variable and can
+ be used in the same manner. Example:</p><pre class="programlisting">SecRule<span class="emphasis"><em> RESPONSE_HEADERS</em></span><span class="emphasis"><em>:X-Cache</em></span> "MISS"</pre><p><span class="emphasis"><em>Note</em></span></p><p>This variable may not have access to some headers when running in
+ embedded-mode. Headers such as Server, Date, Connection and Content-Type
+ are added during a later Apache hook just prior to sending the data to
+ the client. This data should be available, however, either during
+ ModSecurity phase:5 (logging) or when running in proxy-mode.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N111CE"></a><code class="literal">RESPONSE_HEADERS_NAMES</code></h3></div></div><div></div></div><p>This variable is a collection of the response header names.
+ Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>RESPONSE_HEADERS_NAMES</em></span> "Set-Cookie"</pre><p><span class="emphasis"><em>Note</em></span></p><p>Same limitations as RESPONSE_HEADERS with regards to access to
+ some headers in embedded-mode.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N111E0"></a><code class="literal">RESPONSE_PROTOCOL</code></h3></div></div><div></div></div><p>This variable holds the HTTP response protocol information.
+ Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>RESPONSE_PROTOCOL</em></span> "^HTTP\/0\.9"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N111ED"></a><code class="literal">RESPONSE_STATUS</code></h3></div></div><div></div></div><p>This variable holds the HTTP response status code as generated by
+ Apache. Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>RESPONSE_STATUS</em></span> "^[45]"</pre><p><span class="emphasis"><em>Note</em></span></p><p>This directive may not work as expected in embedded-mode as Apache
+ handles many of the stock response codes (404, 401, etc...) earlier in
+ Phase 2. This variable should work as expected in a proxy-mode
+ deployment.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N111FF"></a><code class="literal">RULE</code></h3></div></div><div></div></div><p>This variable provides access to the <code class="literal">id</code>, <code class="literal">rev</code>,
+ <code class="literal">severity</code>, <code class="literal">logdata</code>, and <code class="literal">msg</code> fields of the rule that triggered the
+ action. Only available for expansion in action strings (e.g.<code class="literal">setvar:tx.varname=%{rule.id}</code>). Example:</p><pre class="programlisting">SecRule &REQUEST_HEADERS:Host "@eq 0" "log,deny,setvar:tx.varname=<span class="emphasis"><em>%{rule.id}</em></span>"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11224"></a><code class="literal">SCRIPT_BASENAME</code></h3></div></div><div></div></div><p>This variable holds just the local filename part of
+ SCRIPT_FILENAME. Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>SCRIPT_BASENAME</em></span> "^login\.php$"</pre><p><span class="emphasis"><em>Note</em></span></p><p>This variable is not available in proxy mode.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11236"></a><code class="literal">SCRIPT_FILENAME</code></h3></div></div><div></div></div><p>This variable holds the full path on the server to the requested
+ script. (e.g. SCRIPT_NAME plus the server path). Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>SCRIPT_FILENAME</em></span> "^/usr/local/apache/cgi-bin/login\.php$"</pre><p><span class="emphasis"><em>Note</em></span></p><p>This variable is not available in proxy mode.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11248"></a><code class="literal">SCRIPT_GID</code></h3></div></div><div></div></div><p>This variable holds the group id (numerical value) of the group
+ owner of the script. Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>SCRIPT_GID</em></span> "!^46$"</pre><p><span class="emphasis"><em>Note</em></span></p><p>This variable is not available in proxy mode.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1125A"></a><code class="literal">SCRIPT_GROUPNAME</code></h3></div></div><div></div></div><p>This variable holds the group name of the group owner of the
+ script. Example:</p><pre class="programlisting">SecRule<span class="emphasis"><em> SCRIPT_GROUPNAME</em></span> "!^apache$"</pre><p><span class="emphasis"><em>Note</em></span></p><p>This variable is not available in proxy mode.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1126C"></a><code class="literal">SCRIPT_MODE</code></h3></div></div><div></div></div><p>This variable holds the script's permissions mode data (numerical
+ - 1=execute, 2=write, 4=read and 7=read/write/execute). Example: will
+ trigger if the script has the WRITE permissions set.</p><pre class="programlisting">SecRule <span class="emphasis"><em>SCRIPT_MODE</em></span> "^(2|3|6|7)$"</pre><p><span class="emphasis"><em>Note</em></span></p><p>This variable is not available in proxy mode.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1127E"></a><code class="literal">SCRIPT_UID</code></h3></div></div><div></div></div><p>This variable holds the user id (numerical value) of the owner of
+ the script. Example: the example rule below will trigger if the UID is
+ not 46 (the Apache user).</p><pre class="programlisting">SecRule<span class="emphasis"><em> SCRIPT_UID</em></span> "!^46$"</pre><p><span class="emphasis"><em>Note</em></span></p><p>This variable is not available in proxy mode.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11290"></a><code class="literal">SCRIPT_USERNAME</code></h3></div></div><div></div></div><p>This variable holds the username of the owner of the script.
+ Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>SCRIPT_USERNAME</em></span> "!^apache$"</pre><p><span class="emphasis"><em>Note</em></span></p><p>This variable is not available in proxy mode.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N112A2"></a><code class="literal">SERVER_ADDR</code></h3></div></div><div></div></div><p>This variable contains the IP address of the server.
+ Example:</p><pre class="programlisting">SecRule<span class="emphasis"><em> SERVER_ADDR</em></span> "^192\.168\.1\.100$"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N112AF"></a><code class="literal">SERVER_NAME</code></h3></div></div><div></div></div><p>This variable contains the server's hostname or IP address.
+ Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>SERVER_NAME</em></span> "hostname\.com$"</pre><p><span class="emphasis"><em>Note</em></span></p><p>This data is taken from the Host header submitted in the client
+ request.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N112C1"></a><code class="literal">SERVER_PORT</code></h3></div></div><div></div></div><p>This variable contains the local port that the web server is
+ listening on. Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>SERVER_PORT</em></span> "^80$"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N112CE"></a><code class="literal">SESSION</code></h3></div></div><div></div></div><p>This variable is a collection, available only after <code class="literal">setsid</code> is executed. Example: the following
+ example shows how to initialize a SESSION collection with setsid, how to
+ use setvar to increase the session.score values, how to set the
+ session.blocked variable and finally how to deny the connection based on
+ the session:blocked value.</p><pre class="programlisting">SecRule REQUEST_COOKIES:PHPSESSID !^$ chain,nolog,pass
+SecAction setsid:%{REQUEST_COOKIES.PHPSESSID}
+SecRule REQUEST_URI "^/cgi-bin/finger$" \
+ "phase:2,t:none,t:lowercase,t:normalisePath,pass,log,setvar:<span class="emphasis"><em>session.score</em></span>=+10"
+SecRule<span class="emphasis"><em> SESSION:SCORE</em></span> "@gt 50" "pass,log,setvar:<span class="emphasis"><em>session.blocked</em></span>=1"
+SecRule<span class="emphasis"><em> SESSION:BLOCKED</em></span> "@eq 1" "log,deny,status:403"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N112E8"></a><code class="literal">SESSIONID</code></h3></div></div><div></div></div><p>This variable is the value set with <code class="literal">setsid</code>. Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>SESSIONID</em></span> !^$ chain,nolog,pass
+SecRule REQUEST_COOKIES:PHPSESSID !^$
+SecAction setsid:%{REQUEST_COOKIES.PHPSESSID}</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N112F9"></a><code class="literal">TIME</code></h3></div></div><div></div></div><p>This variable holds a formatted string representing the time
+ (hour:minute:second). Example:</p><pre class="programlisting">SecRule<span class="emphasis"><em> TIME</em></span> "^(([1](8|9))|([2](0|1|2|3))):\d{2}:\d{2}$"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11306"></a><code class="literal">TIME_DAY</code></h3></div></div><div></div></div><p>This variable holds the current date (1-31). Example: this rule
+ would trigger anytime between the 10th and 20th days of the
+ month.</p><pre class="programlisting">SecRule <span class="emphasis"><em>TIME_DAY</em></span> "^(([1](0|1|2|3|4|5|6|7|8|9))|20)$"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11313"></a><code class="literal">TIME_EPOCH</code></h3></div></div><div></div></div><p>This variable holds the time in seconds since 1970.
+ Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>TIME_EPOCH</em></span> "@gt 1000"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11320"></a><code class="literal">TIME_HOUR</code></h3></div></div><div></div></div><p>This variable holds the current hour (0-23). Example: this rule
+ would trigger during "off hours".</p><pre class="programlisting">SecRule<span class="emphasis"><em> TIME_HOUR</em></span> "^(0|1|2|3|4|5|6|[1](8|9)|[2](0|1|2|3))$"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1132D"></a><code class="literal">TIME_MIN</code></h3></div></div><div></div></div><p>This variable holds the current minute (0-59). Example: this rule
+ would trigger during the last half hour of every hour.</p><pre class="programlisting">SecRule <span class="emphasis"><em>TIME_MIN</em></span> "^(3|4|5)"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1133A"></a><code class="literal">TIME_MON</code></h3></div></div><div></div></div><p>This variable holds the current month (0-11). Example: this rule
+ would match if the month was either November (10) or December
+ (11).</p><pre class="programlisting">SecRule<span class="emphasis"><em> TIME_MON</em></span> "^1"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11347"></a><code class="literal">TIME_SEC</code></h3></div></div><div></div></div><p>This variable holds the current second count (0-59).
+ Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>TIME_SEC</em></span> "@gt 30"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11354"></a><code class="literal">TIME_WDAY</code></h3></div></div><div></div></div><p>This variable holds the current weekday (0-6). Example: this rule
+ would trigger only on week-ends (Saturday and Sunday).</p><pre class="programlisting">SecRule <span class="emphasis"><em>TIME_WDAY</em></span> "^(0|6)$"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11361"></a><code class="literal">TIME_YEAR</code></h3></div></div><div></div></div><p>This variable holds the current four-digit year data.
+ Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>TIME_YEAR</em></span> "^2006$"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1136E"></a><code class="literal">TX</code></h3></div></div><div></div></div><p>Transaction Collection. This is used to store pieces of data,
+ create a transaction anomaly score, and so on. Transaction variables are
+ set for 1 request/response cycle. The scoring and evaluation will not
+ last past the current request/response process. Example: In this
+ example, we are using setvar to increase the tx.score value by 5 points.
+ We then have a follow-up run that will evaluate the transactional score
+ this request and then it will decided whether or not to allow/deny the
+ request through.</p><p>The following is a list of reserved names in the TX
+ collection:</p><div class="itemizedlist"><ul type="disc"><li><p><code class="literal">TX:0</code> - The matching value
+ when using the <code class="literal">@rx</code> or <code class="literal">@pm</code> operator with the <code class="literal">capture</code> action.</p></li><li><p><code class="literal">TX:1-TX:9</code> - The captured
+ subexpression value when using the <code class="literal">@rx</code> operator with capturing parens and the
+ <code class="literal">capture</code> action.</p></li></ul></div><pre class="programlisting">SecRule WEBSERVER_ERROR_LOG "does not exist" "phase:5,pass,<span class="emphasis"><em>setvar:tx.score=+5</em></span>"
+SecRule<span class="emphasis"><em> TX:SCORE</em></span> "@gt 20" deny,log</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N113A1"></a><code class="literal">USERID</code></h3></div></div><div></div></div><p>This variable is the value set with <code class="literal">setuid</code>. Example:</p><pre class="programlisting">SecAction setuid:%{REMOTE_USER},nolog
+SecRule<span class="emphasis"><em> USERID</em></span> "Admin"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N113B2"></a><code class="literal">WEBAPPID</code></h3></div></div><div></div></div><p>This variable is the value set with <code class="literal">SecWebAppId</code>. Example:</p><pre class="programlisting">SecWebAppId "WebApp1"
+SecRule<span class="emphasis"><em> WEBAPPID</em></span> "WebApp1" "chain,log,deny,status:403"
+SecRule REQUEST_HEADERS:Transfer-Encoding "!^$"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N113C3"></a><code class="literal">WEBSERVER_ERROR_LOG</code></h3></div></div><div></div></div><p>Contains zero or more error messages produced by the web server.
+ Access to this variable is in phase:5 (logging). Example:</p><pre class="programlisting">SecRule<span class="emphasis"><em> WEBSERVER_ERROR_LOG</em></span> "File does not exist" "phase:5,setvar:tx.score=+5"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N113D0"></a><code class="literal">XML</code></h3></div></div><div></div></div><p>Can be used standalone (as a target for
+ <code class="literal">validateDTD</code> and <code class="literal">validateSchema</code>) or
+ with an XPath expression parameter (which makes it a valid target for
+ any function that accepts plain text). Example using XPath:</p><pre class="programlisting">SecDefaultAction log,deny,status:403,phase:2
+SecRule REQUEST_HEADERS:Content-Type ^text/xml$ \
+ phase:1,t:lowercase,nolog,pass,ctl:requestBodyProcessor=<span class="emphasis"><em>XML</em></span>
+SecRule REQBODY_PROCESSOR "<span class="emphasis"><em>!^XML$</em></span>" skipAfter:12345
+SecRule <span class="emphasis"><em>XML:/employees/employee/name/text()</em></span> Fred
+SecRule <span class="emphasis"><em>XML:/xq:employees/employee/name/text()</em></span> Fred \
+ id:12345,xmlns:xq=http://www.example.com/employees</pre><p>The first XPath expression does not use namespaces. It would match
+ against payload such as this one:</p><pre class="programlisting"><employees>
+ <employee>
+ <name>Fred Jones</name>
+ <address location="home">
+ <street>900 Aurora Ave.</street>
+ <city>Seattle</city>
+ <state>WA</state>
+ <zip>98115</zip>
+ </address>
+ <address location="work">
+ <street>2011 152nd Avenue NE</street>
+ <city>Redmond</city>
+ <state>WA</state>
+ <zip>98052</zip>
+ </address>
+ <phone location="work">(425)555-5665</phone>
+ <phone location="home">(206)555-5555</phone>
+ <phone location="mobile">(206)555-4321</phone>
+ </employee>
+</employees></pre><p>The second XPath expression does use namespaces. It would match
+ the following payload:</p><pre class="programlisting"><xq:employees xmlns:xq="http://www.example.com/employees">
+ <employee>
+ <name>Fred Jones</name>
+ <address location="home">
+ <street>900 Aurora Ave.</street>
+ <city>Seattle</city>
+ <state>WA</state>
+ <zip>98115</zip>
+ </address>
+ <address location="work">
+ <street>2011 152nd Avenue NE</street>
+ <city>Redmond</city>
+ <state>WA</state>
+ <zip>98052</zip>
+ </address>
+ <phone location="work">(425)555-5665</phone>
+ <phone location="home">(206)555-5555</phone>
+ <phone location="mobile">(206)555-4321</phone>
+ </employee>
+</xq:employees></pre><p>Note the different namespace used in the second example.</p><p>To learn more about XPath we suggest the following
+ resources:</p><div class="orderedlist"><ol type="1"><li><p><a href="http://www.w3.org/TR/xpath" target="_top">XPath
+ Standard</a></p></li><li><p><a href="http://www.zvon.org/xxl/XPathTutorial/General/examples.html" target="_top">XPath
+ Tutorial</a></p></li></ol></div></div></div><div id="navfooter"><hr size="1"><table summary="Navigation footer" width="100%"><tr><td align="left" width="40%"><a accesskey="p" href="processing-phases.html">Prev</a> </td><td align="center" width="20%"> </td><td align="right" width="40%"> <a accesskey="n" href="transformation-functions.html">Next</a></td></tr><tr><td valign="top" align="left" width="40%">Processing Phases </td><td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td><td valign="top" align="right" width="40%"> Transformation functions</td></tr></table></div><div align="center" class="copyright">Copyright (C) 2004-2009 <a href="http://www.breach.com">Breach Security</a></div></body></html>
\ No newline at end of file
--- /dev/null
+<html>
+ <head>
+ <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+ <title>ModSecurity for Apache Reference</title>
+ <link href="modsecurity-reference.css" rel="stylesheet" type="text/css">
+ </head>
+
+ <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+ <div style="background:#F5F5F5;width:100%;border-top:1px solid #DDDDDD;border-bottom:1px solid #DDDDDD">
+ <table width="100%" cellspacing="0" cellpadding="0"><tr><td><a href="http://www.modsecurity.org"><img style="margin:4px" src="modsecurity.gif" width="120" height="36" alt="ModSecurity" border="0"></a></td><td align="right"><a
+href="http://www.breach.com"><img style="margin:6px" src="breach-logo-small.gif"
+height="36" width="100" border="0"></a></td></tr></table>
+ </div>
+
+ <br>
+
+ <hr size="1">
+
+ <h2>ModSecurity for Apache Documentation</h2>
+
+ <p>Version 2.5.11 (Nov 4, 2009)</p>
+
+ <ul>
+ <li><a href="html-multipage/index.html">HTML, one page per chapter</a></li>
+ <li><a href="modsecurity2-apache-reference.html">HTML, all in one page</a></li>
+ <li><a href="modsecurity2-apache-reference.pdf">PDF</a>
+ </ul>
+
+ <hr size="1">
+
+ <div align="center" class="copyright">Copyright (C) 2004-2006 <a
+href="http://www.breach.com">Breach Security</a></div>
+
+ </body>
+</html>
--- /dev/null
+<html><head>
+ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+ <title>ModSecurity Migration Matrix</title><link rel="stylesheet" href="html.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.70.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="article" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="d0e1"></a>ModSecurity Migration Matrix</h2></div><div><p class="releaseinfo">Version 1.0 / (April 10, 2007)</p></div><div><p class="copyright">Copyright © 2004-2007 Breach Security, Inc. (<a href="http://www.breach.com" target="_top">http://www.breach.com</a>)</p></div></div><hr></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="01-introduction"></a>Migration from 1.x to 2.x</h2></div></div></div><div class="section" lang="en"><div class="titlepage"></div><p>If you are already using an older version of ModSecurity and want to upgrade/migrate your existing custom rules, you will need to ensure that you properly translate all of your Directives to their corresponding 2.0 counterparts. Some directives have simply changed names, however some directives actually behave differently so it is important that you also review the entire 2.0 Reference Manual.
+The migration matrix show below should help you to translate ModSecurity 1.X directives to the 2.0 values. There are also some notes that provide additional information is a directive significantly changed how it operates.
+</p><table border="1" id="d0e21"><tr><td><span class="bold"><strong>Feature/Capability</strong></span></td><td><span class="bold"><strong>ModSecurity 1.x</strong></span></td><td><span class="bold"><strong>ModSecurity 2.x</strong></span></td><td><span class="bold"><strong>Notes</strong></span></td><td><span class="bold"><strong>How To Upgrade</strong></span></td></tr><tr><td><span class="bold"><strong>Apache Version Supported</strong></span></td><td>Apache 1.x/2.x</td><td>Apache 2.x Only</td><td>ModSecurity 2.0 will only work with Apache 2.x and not the older 1.3 version.</td><td>If you are mainly an Apache 1.3 shop and/or you have other web servers that you want to protect (such as IIS) an alternative solution is to deploy an Apache 2.x reverse proxy server and implement ModSecurity 2.x on it.</td></tr><tr><td><span class="bold"><strong>Installation</strong></span></td><td>Can be installed as either a DSO module or as a statically compiled module.</td><td>Can currently only be installed as a DSO module.</td><td>In 1.x, you could use apxs directly, while in 2.x you must use the provided Makefile.</td><td>If you can not use DSOs in your current Apache configs, you may look at implementing a front-end Apache reverse proxy server.</td></tr><tr><td><span class="bold"><strong>Configuration - IfModule</strong></span></td><td>Apache 1.x - <IfModule mod_security.c>
+
+Apache 2.x - <IfModule security_module></td><td><IfModule security2_module></td><td>The syntax of using IfModule has changed between Apache 1.x and 2.x</td><td>Make sure that any existing <IfModule> directives uses the correct syntax.</td></tr><tr><td><span class="bold"><strong>Processing Phases Supported</strong></span></td><td>2</td><td>5</td><td>ModSecurity 1.x supports:<div class="itemizedlist"><ul type="disc"><li><p>Inbound - which corresponds to current Mod 2.x Request Body phase and the Apache “fixups” phase.</p></li><li><p>Outbound - which corresponds to current Mod 2.x Response Body phase and just after the Apache “response” processing phase.</p></li></ul></div>ModSecurity 2.x supports: <div class="itemizedlist"><ul type="disc"><li><p>Request Headers – which corresponds with the Apache “post-read-request” phase.</p></li><li><p>Request Body – which corresponds with the Apache “fixups” phase.</p></li><li><p>Response Headers – which corresponds to the Apache “response” phase.</p></li><li><p>Response Body – which corresponds to just after the Apache “response” phase.</p></li><li><p>Logging - which is the Apache logging phase.</p></li></ul></div></td><td>If you are translating existing 1.x rules (SecFilter/SecFilterSelective) then you should use phase:2 in the new rule syntax. Translate existing OUTPUT rules to run in phase:4.</td></tr><tr><td><span class="bold"><strong>Directive to turn On/Off the Rule Engine</strong></span></td><td>SecFilterEngine</td><td>SecRuleEngine
+ctl:ruleEngine=</td><td><div class="itemizedlist"><ul type="disc"><li><p>1.x – values were On, Off and DynamicOnly and was a Global directive.</p></li><li><p>2.x - values are On, Off or DetectionOnly.</p></li><li><p>2.x – the “ctl” action can control the RuleEngine dynamically for individual requests.</p></li></ul></div></td><td>Replace SecFilterEngine with SecRuleEngine. The DynamicOnly mode is not supported in ModSecurity 2.x because it was sometimes difficult for ModSecurity to determine if a particular request was dynamic in nature or not. Use of AddType vs. AddHandler would cause problems. Since this logic relies on the internal (and not entirely documented) workings of Apache and on the chosen configuration it also makes it somewhat unpredictable.</td></tr><tr><td><span class="bold"><strong>Directive to handle the Audit Engine</strong></span></td><td>SecAuditEngine On, Off, RelevantOnly, DynamicOrRelevant</td><td>SecAuditEngine On, Off, RelevantOnly</td><td>In 2.x, the DynamicOrRelevant option was discontinued.</td><td>If you are using DynamicOrRelevant then switch it to RelevantOnly.</td></tr><tr><td><span class="bold"><strong>Default Rule Action</strong></span></td><td>SecFilterDefaultAction</td><td>SecDefaultAction</td><td><div class="itemizedlist"><ul type="disc"><li><p>1.x – SecFilterDefaultAction could be used anywhere in the config and it would be picked up by all rules.</p></li><li><p>2.x – SecDefaultAction must come before rules and be specified in each context. The default setting for this directive (if it is not specified otherwise) is –
+<code class="literal">SecDefaultAction phase:2,log,deny,status:403,\</code></p><p><code class="literal">t:lowercase,t:replaceNulls,\</code></p><p><code class="literal">t:compressWhitespace</code></p></li></ul></div></td><td>Replace SecFilterDefaultAction with SecDefaultAction. Optionally, you can group rules together where you would like to use the same action and then specify a SecDefaultAction line before each group.
+
+Also keep in mind that while most actions specified on individual rules will supersede those specified in SecDefaultAction, transformation functions are additive. So, if you specify a “t:base64Decode” transformation function to a rule, it will be added after the lowercase, replaceNulls and compressWhitespace transformation functions.</td></tr><tr><td><span class="bold"><strong>Debug Logging</strong></span></td><td>SecFilterDebugLog
+SecFilterDebugLogLevel</td><td>SecDebugLog
+SecDebugLogLevel</td><td>Name change only.</td><td>Change the names of these directives to their 2.x counterparts.</td></tr><tr><td><span class="bold"><strong>Rule Directive(s)</strong></span></td><td>SecFilter
+SecFilterSelective</td><td>SecRule</td><td><div class="itemizedlist"><ul type="disc"><li><p>In Mod 1.x, SecFilter and SecFilterSelective were case insensitive. </p></li><li><p>In Mod 2.x, the case of data is not altered unless the lowercase transformation funce is used.
+SecRule has essentially the same rule syntax as SecFilterSelective.</p></li></ul></div></td><td>Replace SecFilterSelective with SecRule and make sure to translate the variable tested according to this list.
+Replace any SecFilter with a new SecRule directive. You will need to specify a new Variable location and a phase. You can optionally specify a disruptive action, otherwise it will be inherited from a previous SecDefaultAction.
+</td></tr><tr><td><span class="bold"><strong>Rule Exceptions</strong></span></td><td>Whitelist approach – use pass, allow actions
+False Positive Approach – use SecFilterRemove</td><td>Whitelist approach – use pass, allow and ctl actions.
+False Positive Approach – use SecRuleRemoveById and Apache Scope context</td><td>In Mod 2.x, using the “allow” action may not be enough to truly let a request through as “allow” only applies to the current processing phase. This means that rules in subsequent phases may act on the request. This is why you need to also use the “ctl:ruleEngine=Off” action if you really want to let a request through.</td><td>See Blog post on handling false positives and creating custom rules - http://www.modsecurity.org/blog/archives/2007/02/handling_false.html</td></tr><tr><td><span class="bold"><strong>Directive to control rule inheritance to Apache Scope locations (Virtual Hosts, Location, Directory)</strong></span></td><td>SecFilterInheritance</td><td>SecRuleInheritance</td><td>The best use of this directive is when you want to start with a “clean slate” so you can use SecRuleInheritance Off and then specify your new rule sets.
+Note – Rule Inheritance does not work across Apache Scope directives (such as Vhosts, Location and Directory directives). This means that you can not use SecRuleInheritance On to inherit a SecDefaultAction directive within these new contexts. This is an issue with the way that Apache inherits contexts. It is for this reason that we recommend that you specify new SecDefaultAction directives within each Apache scope location that you create.</td><td>Translate any existing “SecFilterInheritance Off” rules directly to “SecRuleInheritance Off”.
+Then replace any “SecFilterInheritance On” directives inside Apache Scope context locations with a new SecDefaultAction directive and then import the rules that you want with standard Apache Include directives.</td></tr><tr><td><span class="bold"><strong>Ability to manage rules in Apache Scope locations</strong></span></td><td>SecFilterImport
+SecFilterRemove</td><td>SecRuleRemoveById
+SecRuleRemoveByMsg</td><td>SecFilterRemove is now SecRuleRemoveById or SecRuleRemoveByMsg. SecFilterImport is no longer supported.</td><td>Change all of your existing SecFilterRemove rules to SecRuleRemoveById. For any existing SecFilterImport rules, you will need to either copy the rule into the context or use an Apache Include Directive to include entire files (such as including the Core Rules files).</td></tr><tr><td><span class="bold"><strong>Ability to verify URL/UTF8 Encodings</strong></span></td><td>SecFilterCheckURLEncoding
+SecFilterCheckUnicodeEncoding </td><td>@validateUrlEncoding
+@validateUtf8Encoding </td><td>In Mod 1.x, these were Global Directives and in Mod 2.x they are Operators that can be applied selectively to each rule.</td><td>Add the rules that will do exactly the same as the directives</td></tr><tr><td><span class="bold"><strong>Ability to enforce a Byte Range (allowed character set)</strong></span></td><td>SecFilterForceByteRange</td><td>@validateByteRange</td><td>In Mod 1.x, this was a Global Directive and in Mod 2.x it is an Operator that can be applied selectively to each rule.
+In Mod 1.x, this directive did not check POST payloads when multipart/form-data encoding was used.</td><td>You can now add @validateByteRange operators to individual rules. This helps if you have differences in allowed character sets for different portions of the web application.</td></tr><tr><td><span class="bold"><strong>Ability to Normalize/Transform Request Data</strong></span></td><td>ModSecurity 1.x automatically applied the following transformations:<div class="itemizedlist"><ul type="disc"><li><p>On Windows only, convert \ to /</p></li><li><p>Reduce /./ to /</p></li><li><p>Reduce // to /</p></li><li><p>Decode URL-encoded characters</p></li><li><p>Converts Null Bytes to Space character</p></li></ul></div></td><td><div class="itemizedlist"><ul type="disc"><li><p>base64Decode </p></li><li><p>base64Encode</p></li><li><p>compressWhitespace</p></li><li><p>escapeSeqDecode</p></li><li><p>hexDecode</p></li><li><p>hexEncode</p></li><li><p>htmlEntityDecode</p></li><li><p>lowercase</p></li><li><p>md5</p></li><li><p>none</p></li><li><p>normalisePath</p></li><li><p>normalisePathWin</p></li><li><p>removeNulls</p></li><li><p>removeWhitespace</p></li><li><p>replaceComments</p></li><li><p>replaceNulls</p></li><li><p>urlDecode</p></li><li><p>urlDecodeUni</p></li><li><p>urlEncode</p></li><li><p>sha1</p></li></ul></div></td><td>In Mod 1.x, the normalization functions were implicit and you could not control them. In Mod 2.x, not normalization is done by default. There are now “Transformation Functions” that allow you to selectively apply normalizations and other features.</td><td>You should add the appropriate transformation functions to either SecDefaultAction directive or each individual rule. See the Core Rules files for examples.
+Keep in mind that transformation functions are inherited from parent SecDefaultAction directives. Care should be taken to ensure that RegEx patterns match the data after transformation functions are applied. In order to avoid possible unwanted inherited transformation functions, use “t:none” to either not apply any transformation functions or you can then specify specific transformation functions after “t:none”.</td></tr><tr><td><span class="bold"><strong>Ability to specify an arbitrary Request Header in a rule</strong></span></td><td>HEADER_headername
+HTTP_headername</td><td>REQUEST_HEADERS REQUEST_HEADERS:headername
+REQUEST_HEADERS:/RegEx/</td><td>The HTTP_headername syntax has been superseded by the new REQUEST_HEADERS:headername syntax and will not be supported in future releases. The advantage to using the new syntax is that you can also use RegEx in the headername portion.</td><td>Translate any existing HTTP_headername directives to REQUEST_HEADERS:headername. Also consider consolidating header checks by using Regular Expressions in the header name portion of the Variable.</td></tr><tr><td><span class="bold"><strong>Variable/Location for the entire URL Request Line</strong></span></td><td>THE_REQUEST</td><td>REQUEST_LINE</td><td>Functions the same. The variable includes the Request Method, URI and HTTP version data.</td><td>Translate any existing THE_REQUEST directives to REQUEST_LINE directives.</td></tr><tr><td><span class="bold"><strong>Variable/Location for Arguments</strong></span></td><td>ARG_name</td><td>ARGS:name
+ARGS:/RegEx/</td><td>Similar to the HTTP_headername situation, the advantage of the new syntax is the ability to use RegEx in the argument name.</td><td>Translate any existing ARG_name directives to ARGS:name directives.</td></tr><tr><td><span class="bold"><strong>Accessing Request Bodies</strong></span></td><td>SecFilterScanPOST
+POST_PAYLOAD</td><td>SecRequestBodyAccess
+Phase:2
+REQUEST_BODY</td><td>In 2.x, the directive is now called SecRequestBodyAccess and it is more flexible than SecFilterScanPOST as it is able to inspect all request bodies (such as PUT and XML, etc…) and not just POST payloads.</td><td>Replace the existing SecFilterScanPOST directive with SecRequestBodyAccess.
+For individual rules where you want to inspect the request bodies, you must specify REQUEST_BODY as the variable and you also must ensure that it is running in phase:2 (by either an inherited SecDefaultAction setting or by explicitly specifying the phase within the rule action).</td></tr><tr><td><span class="bold"><strong>Ability to disable POST/Request buffering dynamically</strong></span></td><td>MODSEC_NOPOSTBUFFERING</td><td>ctl:requestBodyAccess=Off</td><td>In 2.x, you can use the ctl action to turn on/off request body access on a per rule basis.</td><td>Take any existing entries in the httpd.conf file that set the MODSEC_NOPOSTBUFFERING Env variable and translate them to Mod 2.x rules.</td></tr><tr><td><span class="bold"><strong>Accessing Cookies</strong></span></td><td>COOKIES
+COOKIES_COUNT
+COOKIES_NAMES
+COOKIES_VALUES
+COOKIE_name</td><td>REQUEST_HEADERS:Cookie
+REQUEST_COOKIES_NAMES REQUEST_COOKIES_NAMES:name
+REQUEST_COOKIES_NAMES:/RegEx/
+REQUEST_COOKIES
+REQUEST_COOKIES:name REQUEST_COOKIES:/RegEx/</td><td> In 2.x, you can use the “&” character to “count” the number of variables.
+While there are different ways to access request cookies, the main difference between them are that REQUEST_HEADERS:Cookie will include all of the “raw” Cookie data while any of the REQUEST_COOKIES variable values are parsed.</td><td>Translate rules as follows –
+Mod 1.x -> Mod 2.x
+COOKIES -> REQUEST_COOKIES
+COOKIES_COUNT -> &REQUEST_COOKIES
+COOKIES_NAMES -> REQUEST_COOKIES_NAMES COOKIES_VALUES -> REQUEST_COOKIES
+COOKIE_name -> REQUEST_COOKIES:name</td></tr><tr><td><span class="bold"><strong>Counting Variables</strong></span></td><td>ARGS_COUNT
+COOKIES_COUNT
+HEADERS_COUNT
+FILES_COUNT</td><td>&ARGS
+&REQUEST_COOKIES &REQUEST_HEADERS
+&FILES</td><td>In 2.x, prepending the “&” character will count the number of variables. Example –
+1.x – HEADERS_COUNT
+2.x - &REQUEST_HEADERS</td><td>Translate existing 1.x rules as listed.</td></tr><tr><td><span class="bold"><strong>Accessing HTTP Status Code</strong></span></td><td>OUTPUT_STATUS</td><td>RESPONSE_STATUS
+Phase:3</td><td>In 2.x, you need to specify both the RESPONSE_STATUS variable and phase:3 with the rule.</td><td>Translate any existing 1.x OUTPUT STATUS rules to use RESPONSE_STATUS and phase:3.</td></tr><tr><td><span class="bold"><strong>Accessing Response Bodies/Post Payloads</strong></span></td><td>SecFilterScanOutput
+SecFilterOutputMimeTypes
+OUTPUT</td><td>SecResponseBodyAccess
+SecResponseBodyMimeTypes
+RESPONSE_BODY
+Phase:4</td><td>In 1.x, neither skipnext nor chain could be used on the OUTPUT location.
+In 2.x, both actions can be used on RESPONSE_BODY</td><td>Translate directives/rules as follows –
+Mod 1.x -> Mod 2.x
+SecFilterScanOutput -> SecResponseBodyAccess
+SecFilterOutputMimeTypes -> SecResponseBodyMimeTypes
+OUTPUT -> RESPONSE_BODY/Phase:4</td></tr><tr><td><span class="bold"><strong>Cookie Normalization</strong></span></td><td>SecFilterCookieFormat
+SecFilterNormalizeCookies</td><td>SecCookieFormat</td><td>SecFilterNormalizeCookies is no longer supported as Mod 2.x transformation functions can now be used to normalize all Variables including Cookie data.</td><td>Change SecFilterCookieFormat to SecCookieFormat.
+When specifying Cookie variables, then apply the applicable transformation functions in the action field of the rule.</td></tr><tr><td><span class="bold"><strong>Ability to skip rules</strong></span></td><td>skipnext</td><td>skip</td><td>In Mod 2.x – skip takes into account chained rulesets and treats them as 1 rule.
+In Mod 1.x – skipnext treated each rule directive as an individual rule regardless of whether or not they were tied together as a chained ruleset.</td><td>Translate all skipnext rules to skip, however make sure to factor in any chained rulesets that may follow and adjust the skip number accordingly.</td></tr><tr><td><span class="bold"><strong>Adding/Removing Audit Log Data on a per rule basis</strong></span></td><td>logparts</td><td>clt:auditLogParts=</td><td>The rules function the same.</td><td>Translate any existing logparts actions to the ctl:auditLogParts equivalent.</td></tr><tr><td><span class="bold"><strong>Inspecting uploaded files</strong></span></td><td>SecUploadApproveScript</td><td>@inspectFile
+FILES_TMPNAMES</td><td>The main difference here is that now @inspectFile is an Operator vs. a global Directive. This means that you can apply @inspectFile to individual rules and use different scripts as appropriate.
+Also, the return codes are now reversed –
+In 1.x, a return code of “1” means that the file would be allowed.
+In 2.x, a return code of “1” means that the file would be denied. </td><td>In order to scan/inspect uploaded files in 2.x, you need to create specific rules that use the FILES_TMPNAMES variable (as these are the names of the files that are temporarily stored on disk) and then use the @inspectFile Operator on each rule.
+Also, make sure to swap your return codes in existing scripts as mentioned in the notes column.</td></tr><tr><td><span class="bold"><strong>Memory limits for uploaded files</strong></span></td><td>SecUploadInMemoryLimit</td><td>SecRequestBodyInMemoryLimit</td><td>These two directives function the same.</td><td>Change the SecUploadInMemoryLimit directive to SecRequestBodyInMemoryLimit.</td></tr></table></div></div></div></body></html>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<article>
+ <title>ModSecurity Migration Matrix</title>
+
+ <articleinfo>
+ <releaseinfo>Version 1.0 / (April 10, 2007)</releaseinfo>
+
+ <copyright>
+ <year>2004-2009</year>
+
+ <holder>Breach Security, Inc. (<ulink
+ url="http://www.breach.com">http://www.breach.com</ulink>)</holder>
+ </copyright>
+ </articleinfo>
+
+ <section id="01-introduction">
+ <title>Migration from 1.x to 2.x</title>
+
+ <section>
+ <para>If you are already using an older version of ModSecurity and want
+ to upgrade/migrate your existing custom rules, you will need to ensure
+ that you properly translate all of your Directives to their
+ corresponding 2.0 counterparts. Some directives have simply changed
+ names, however some directives actually behave differently so it is
+ important that you also review the entire 2.0 Reference Manual. The
+ migration matrix show below should help you to translate ModSecurity 1.X
+ directives to the 2.0 values. There are also some notes that provide
+ additional information is a directive significantly changed how it
+ operates. </para>
+
+ <table border="1">
+ <tr>
+ <td>
+ <emphasis role="bold">Feature/Capability</emphasis>
+ </td>
+
+ <td>
+ <emphasis role="bold">ModSecurity 1.x</emphasis>
+ </td>
+
+ <td>
+ <emphasis role="bold">ModSecurity 2.x</emphasis>
+ </td>
+
+ <td>
+ <emphasis role="bold">Notes</emphasis>
+ </td>
+
+ <td>
+ <emphasis role="bold">How To Upgrade</emphasis>
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ <emphasis role="bold">Apache Version Supported</emphasis>
+ </td>
+
+ <td>Apache 1.x/2.x</td>
+
+ <td>Apache 2.x Only</td>
+
+ <td>ModSecurity 2.0 will only work with Apache 2.x and not the older
+ 1.3 version.</td>
+
+ <td>If you are mainly an Apache 1.3 shop and/or you have other web
+ servers that you want to protect (such as IIS) an alternative
+ solution is to deploy an Apache 2.x reverse proxy server and
+ implement ModSecurity 2.x on it.</td>
+ </tr>
+
+ <tr>
+ <td>
+ <emphasis role="bold">Installation</emphasis>
+ </td>
+
+ <td>Can be installed as either a DSO module or as a statically
+ compiled module.</td>
+
+ <td>Can currently only be installed as a DSO module.</td>
+
+ <td>In 1.x, you could use apxs directly, while in 2.x you must use
+ the provided Makefile.</td>
+
+ <td>If you can not use DSOs in your current Apache configs, you may
+ look at implementing a front-end Apache reverse proxy server.</td>
+ </tr>
+
+ <tr>
+ <td>
+ <emphasis role="bold">Configuration - IfModule</emphasis>
+ </td>
+
+ <td>Apache 1.x - <IfModule mod_security.c> Apache 2.x -
+ <IfModule security_module></td>
+
+ <td><IfModule security2_module></td>
+
+ <td>The syntax of using IfModule has changed between Apache 1.x and
+ 2.x</td>
+
+ <td>Make sure that any existing <IfModule> directives uses the
+ correct syntax.</td>
+ </tr>
+
+ <tr>
+ <td>
+ <emphasis role="bold">Processing Phases Supported</emphasis>
+ </td>
+
+ <td>2</td>
+
+ <td>5</td>
+
+ <td>ModSecurity 1.x supports:<itemizedlist>
+ <listitem>
+ <para>Inbound - which corresponds to current Mod 2.x Request
+ Body phase and the Apache “fixups” phase.</para>
+ </listitem>
+
+ <listitem>
+ <para>Outbound - which corresponds to current Mod 2.x Response
+ Body phase and just after the Apache “response” processing
+ phase.</para>
+ </listitem>
+ </itemizedlist>ModSecurity 2.x supports: <itemizedlist>
+ <listitem>
+ <para>Request Headers – which corresponds with the Apache
+ “post-read-request” phase.</para>
+ </listitem>
+
+ <listitem>
+ <para>Request Body – which corresponds with the Apache
+ “fixups” phase.</para>
+ </listitem>
+
+ <listitem>
+ <para>Response Headers – which corresponds to the Apache
+ “response” phase.</para>
+ </listitem>
+
+ <listitem>
+ <para>Response Body – which corresponds to just after the
+ Apache “response” phase.</para>
+ </listitem>
+
+ <listitem>
+ <para>Logging - which is the Apache logging phase.</para>
+ </listitem>
+ </itemizedlist></td>
+
+ <td>If you are translating existing 1.x rules
+ (SecFilter/SecFilterSelective) then you should use phase:2 in the
+ new rule syntax. Translate existing OUTPUT rules to run in
+ phase:4.</td>
+ </tr>
+
+ <tr>
+ <td>
+ <emphasis role="bold">Directive to turn On/Off the Rule
+ Engine</emphasis>
+ </td>
+
+ <td>SecFilterEngine</td>
+
+ <td>SecRuleEngine ctl:ruleEngine=</td>
+
+ <td>
+ <itemizedlist>
+ <listitem>
+ <para>1.x – values were On, Off and DynamicOnly and was a
+ Global directive.</para>
+ </listitem>
+
+ <listitem>
+ <para>2.x - values are On, Off or DetectionOnly.</para>
+ </listitem>
+
+ <listitem>
+ <para>2.x – the “ctl” action can control the RuleEngine
+ dynamically for individual requests.</para>
+ </listitem>
+ </itemizedlist>
+
+
+ </td>
+
+ <td>Replace SecFilterEngine with SecRuleEngine. The DynamicOnly mode
+ is not supported in ModSecurity 2.x because it was sometimes
+ difficult for ModSecurity to determine if a particular request was
+ dynamic in nature or not. Use of AddType vs. AddHandler would cause
+ problems. Since this logic relies on the internal (and not entirely
+ documented) workings of Apache and on the chosen configuration it
+ also makes it somewhat unpredictable.</td>
+ </tr>
+
+ <tr>
+ <td>
+ <emphasis role="bold">Directive to handle the Audit
+ Engine</emphasis>
+ </td>
+
+ <td>SecAuditEngine On, Off, RelevantOnly, DynamicOrRelevant</td>
+
+ <td>SecAuditEngine On, Off, RelevantOnly</td>
+
+ <td>In 2.x, the DynamicOrRelevant option was discontinued.</td>
+
+ <td>If you are using DynamicOrRelevant then switch it to
+ RelevantOnly.</td>
+ </tr>
+
+ <tr>
+ <td>
+ <emphasis role="bold">Default Rule Action</emphasis>
+ </td>
+
+ <td>SecFilterDefaultAction</td>
+
+ <td>SecDefaultAction</td>
+
+ <td>
+ <itemizedlist>
+ <listitem>
+ <para>1.x – SecFilterDefaultAction could be used anywhere in
+ the config and it would be picked up by all rules.</para>
+ </listitem>
+
+ <listitem>
+ <para>2.x – SecDefaultAction must come before rules and be
+ specified in each context. The default setting for this
+ directive (if it is not specified otherwise) is –
+ <literal>SecDefaultAction
+ phase:2,log,deny,status:403,\</literal></para>
+
+ <para>
+ <literal>t:lowercase,t:replaceNulls,\</literal>
+ </para>
+
+ <para>
+ <literal>t:compressWhitespace</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+
+
+ </td>
+
+ <td>Replace SecFilterDefaultAction with SecDefaultAction.
+ Optionally, you can group rules together where you would like to use
+ the same action and then specify a SecDefaultAction line before each
+ group. Also keep in mind that while most actions specified on
+ individual rules will supersede those specified in SecDefaultAction,
+ transformation functions are additive. So, if you specify a
+ “t:base64Decode” transformation function to a rule, it will be added
+ after the lowercase, replaceNulls and compressWhitespace
+ transformation functions.</td>
+ </tr>
+
+ <tr>
+ <td>
+ <emphasis role="bold">Debug Logging</emphasis>
+ </td>
+
+ <td>SecFilterDebugLog SecFilterDebugLogLevel</td>
+
+ <td>SecDebugLog SecDebugLogLevel</td>
+
+ <td>Name change only.</td>
+
+ <td>Change the names of these directives to their 2.x
+ counterparts.</td>
+ </tr>
+
+ <tr>
+ <td>
+ <emphasis role="bold">Rule Directive(s)</emphasis>
+ </td>
+
+ <td>SecFilter SecFilterSelective</td>
+
+ <td>SecRule</td>
+
+ <td>
+ <itemizedlist>
+ <listitem>
+ <para>In Mod 1.x, SecFilter and SecFilterSelective were case
+ insensitive. </para>
+ </listitem>
+
+ <listitem>
+ <para>In Mod 2.x, the case of data is not altered unless the
+ lowercase transformation funce is used. SecRule has
+ essentially the same rule syntax as SecFilterSelective.</para>
+ </listitem>
+ </itemizedlist>
+ </td>
+
+ <td>Replace SecFilterSelective with SecRule and make sure to
+ translate the variable tested according to this list. Replace any
+ SecFilter with a new SecRule directive. You will need to specify a
+ new Variable location and a phase. You can optionally specify a
+ disruptive action, otherwise it will be inherited from a previous
+ SecDefaultAction. </td>
+ </tr>
+
+ <tr>
+ <td>
+ <emphasis role="bold">Rule Exceptions</emphasis>
+ </td>
+
+ <td>Whitelist approach – use pass, allow actions False Positive
+ Approach – use SecFilterRemove</td>
+
+ <td>Whitelist approach – use pass, allow and ctl actions. False
+ Positive Approach – use SecRuleRemoveById and Apache Scope
+ context</td>
+
+ <td>In Mod 2.x, using the “allow” action may not be enough to truly
+ let a request through as “allow” only applies to the current
+ processing phase. This means that rules in subsequent phases may act
+ on the request. This is why you need to also use the
+ “ctl:ruleEngine=Off” action if you really want to let a request
+ through.</td>
+
+ <td>See Blog post on handling false positives and creating custom
+ rules -
+ http://www.modsecurity.org/blog/archives/2007/02/handling_false.html</td>
+ </tr>
+
+ <tr>
+ <td>
+ <emphasis role="bold">Directive to control rule inheritance to
+ Apache Scope locations (Virtual Hosts, Location,
+ Directory)</emphasis>
+ </td>
+
+ <td>SecFilterInheritance</td>
+
+ <td>SecRuleInheritance</td>
+
+ <td>The best use of this directive is when you want to start with a
+ “clean slate” so you can use SecRuleInheritance Off and then specify
+ your new rule sets. Note – Rule Inheritance does not work across
+ Apache Scope directives (such as Vhosts, Location and Directory
+ directives). This means that you can not use SecRuleInheritance On
+ to inherit a SecDefaultAction directive within these new contexts.
+ This is an issue with the way that Apache inherits contexts. It is
+ for this reason that we recommend that you specify new
+ SecDefaultAction directives within each Apache scope location that
+ you create.</td>
+
+ <td>Translate any existing “SecFilterInheritance Off” rules directly
+ to “SecRuleInheritance Off”. Then replace any “SecFilterInheritance
+ On” directives inside Apache Scope context locations with a new
+ SecDefaultAction directive and then import the rules that you want
+ with standard Apache Include directives.</td>
+ </tr>
+
+ <tr>
+ <td>
+ <emphasis role="bold">Ability to manage rules in Apache Scope
+ locations</emphasis>
+ </td>
+
+ <td>SecFilterImport SecFilterRemove</td>
+
+ <td>SecRuleRemoveById SecRuleRemoveByMsg</td>
+
+ <td>SecFilterRemove is now SecRuleRemoveById or SecRuleRemoveByMsg.
+ SecFilterImport is no longer supported.</td>
+
+ <td>Change all of your existing SecFilterRemove rules to
+ SecRuleRemoveById. For any existing SecFilterImport rules, you will
+ need to either copy the rule into the context or use an Apache
+ Include Directive to include entire files (such as including the
+ Core Rules files).</td>
+ </tr>
+
+ <tr>
+ <td>
+ <emphasis role="bold">Ability to verify URL/UTF8
+ Encodings</emphasis>
+ </td>
+
+ <td>SecFilterCheckURLEncoding SecFilterCheckUnicodeEncoding </td>
+
+ <td>@validateUrlEncoding @validateUtf8Encoding </td>
+
+ <td>In Mod 1.x, these were Global Directives and in Mod 2.x they are
+ Operators that can be applied selectively to each rule.</td>
+
+ <td>Add the rules that will do exactly the same as the
+ directives</td>
+ </tr>
+
+ <tr>
+ <td>
+ <emphasis role="bold">Ability to enforce a Byte Range (allowed
+ character set)</emphasis>
+ </td>
+
+ <td>SecFilterForceByteRange</td>
+
+ <td>@validateByteRange</td>
+
+ <td>In Mod 1.x, this was a Global Directive and in Mod 2.x it is an
+ Operator that can be applied selectively to each rule. In Mod 1.x,
+ this directive did not check POST payloads when multipart/form-data
+ encoding was used.</td>
+
+ <td>You can now add @validateByteRange operators to individual
+ rules. This helps if you have differences in allowed character sets
+ for different portions of the web application.</td>
+ </tr>
+
+ <tr>
+ <td>
+ <emphasis role="bold">Ability to Normalize/Transform Request
+ Data</emphasis>
+ </td>
+
+ <td>ModSecurity 1.x automatically applied the following
+ transformations:<itemizedlist>
+ <listitem>
+ <para>On Windows only, convert \ to /</para>
+ </listitem>
+
+ <listitem>
+ <para>Reduce /./ to /</para>
+ </listitem>
+
+ <listitem>
+ <para>Reduce // to /</para>
+ </listitem>
+
+ <listitem>
+ <para>Decode URL-encoded characters</para>
+ </listitem>
+
+ <listitem>
+ <para>Converts Null Bytes to Space character</para>
+ </listitem>
+ </itemizedlist></td>
+
+ <td>
+ <itemizedlist>
+ <listitem>
+ <para>base64Decode </para>
+ </listitem>
+
+ <listitem>
+ <para>base64Encode</para>
+ </listitem>
+
+ <listitem>
+ <para>compressWhitespace</para>
+ </listitem>
+
+ <listitem>
+ <para>escapeSeqDecode</para>
+ </listitem>
+
+ <listitem>
+ <para>hexDecode</para>
+ </listitem>
+
+ <listitem>
+ <para>hexEncode</para>
+ </listitem>
+
+ <listitem>
+ <para>htmlEntityDecode</para>
+ </listitem>
+
+ <listitem>
+ <para>lowercase</para>
+ </listitem>
+
+ <listitem>
+ <para>md5</para>
+ </listitem>
+
+ <listitem>
+ <para>none</para>
+ </listitem>
+
+ <listitem>
+ <para>normalisePath</para>
+ </listitem>
+
+ <listitem>
+ <para>normalisePathWin</para>
+ </listitem>
+
+ <listitem>
+ <para>removeNulls</para>
+ </listitem>
+
+ <listitem>
+ <para>removeWhitespace</para>
+ </listitem>
+
+ <listitem>
+ <para>replaceComments</para>
+ </listitem>
+
+ <listitem>
+ <para>replaceNulls</para>
+ </listitem>
+
+ <listitem>
+ <para>urlDecode</para>
+ </listitem>
+
+ <listitem>
+ <para>urlDecodeUni</para>
+ </listitem>
+
+ <listitem>
+ <para>urlEncode</para>
+ </listitem>
+
+ <listitem>
+ <para>sha1</para>
+ </listitem>
+ </itemizedlist>
+
+
+ </td>
+
+ <td>In Mod 1.x, the normalization functions were implicit and you
+ could not control them. In Mod 2.x, not normalization is done by
+ default. There are now “Transformation Functions” that allow you to
+ selectively apply normalizations and other features.</td>
+
+ <td>You should add the appropriate transformation functions to
+ either SecDefaultAction directive or each individual rule. See the
+ Core Rules files for examples. Keep in mind that transformation
+ functions are inherited from parent SecDefaultAction directives.
+ Care should be taken to ensure that RegEx patterns match the data
+ after transformation functions are applied. In order to avoid
+ possible unwanted inherited transformation functions, use “t:none”
+ to either not apply any transformation functions or you can then
+ specify specific transformation functions after “t:none”.</td>
+ </tr>
+
+ <tr>
+ <td>
+ <emphasis role="bold">Ability to specify an arbitrary Request
+ Header in a rule</emphasis>
+ </td>
+
+ <td>HEADER_headername HTTP_headername</td>
+
+ <td>REQUEST_HEADERS REQUEST_HEADERS:headername
+ REQUEST_HEADERS:/RegEx/</td>
+
+ <td>The HTTP_headername syntax has been superseded by the new
+ REQUEST_HEADERS:headername syntax and will not be supported in
+ future releases. The advantage to using the new syntax is that you
+ can also use RegEx in the headername portion.</td>
+
+ <td>Translate any existing HTTP_headername directives to
+ REQUEST_HEADERS:headername. Also consider consolidating header
+ checks by using Regular Expressions in the header name portion of
+ the Variable.</td>
+ </tr>
+
+ <tr>
+ <td>
+ <emphasis role="bold">Variable/Location for the entire URL Request
+ Line</emphasis>
+ </td>
+
+ <td>THE_REQUEST</td>
+
+ <td>REQUEST_LINE</td>
+
+ <td>Functions the same. The variable includes the Request Method,
+ URI and HTTP version data.</td>
+
+ <td>Translate any existing THE_REQUEST directives to REQUEST_LINE
+ directives.</td>
+ </tr>
+
+ <tr>
+ <td>
+ <emphasis role="bold">Variable/Location for Arguments</emphasis>
+ </td>
+
+ <td>ARG_name</td>
+
+ <td>ARGS:name ARGS:/RegEx/</td>
+
+ <td>Similar to the HTTP_headername situation, the advantage of the
+ new syntax is the ability to use RegEx in the argument name.</td>
+
+ <td>Translate any existing ARG_name directives to ARGS:name
+ directives.</td>
+ </tr>
+
+ <tr>
+ <td>
+ <emphasis role="bold">Accessing Request Bodies</emphasis>
+ </td>
+
+ <td>SecFilterScanPOST POST_PAYLOAD</td>
+
+ <td>SecRequestBodyAccess Phase:2 REQUEST_BODY</td>
+
+ <td>In 2.x, the directive is now called SecRequestBodyAccess and it
+ is more flexible than SecFilterScanPOST as it is able to inspect all
+ request bodies (such as PUT and XML, etc…) and not just POST
+ payloads.</td>
+
+ <td>Replace the existing SecFilterScanPOST directive with
+ SecRequestBodyAccess. For individual rules where you want to inspect
+ the request bodies, you must specify REQUEST_BODY as the variable
+ and you also must ensure that it is running in phase:2 (by either an
+ inherited SecDefaultAction setting or by explicitly specifying the
+ phase within the rule action).</td>
+ </tr>
+
+ <tr>
+ <td>
+ <emphasis role="bold">Ability to disable POST/Request buffering
+ dynamically</emphasis>
+ </td>
+
+ <td>MODSEC_NOPOSTBUFFERING</td>
+
+ <td>ctl:requestBodyAccess=Off</td>
+
+ <td>In 2.x, you can use the ctl action to turn on/off request body
+ access on a per rule basis.</td>
+
+ <td>Take any existing entries in the httpd.conf file that set the
+ MODSEC_NOPOSTBUFFERING Env variable and translate them to Mod 2.x
+ rules.</td>
+ </tr>
+
+ <tr>
+ <td>
+ <emphasis role="bold">Accessing Cookies</emphasis>
+ </td>
+
+ <td>COOKIES COOKIES_COUNT COOKIES_NAMES COOKIES_VALUES
+ COOKIE_name</td>
+
+ <td>REQUEST_HEADERS:Cookie REQUEST_COOKIES_NAMES
+ REQUEST_COOKIES_NAMES:name REQUEST_COOKIES_NAMES:/RegEx/
+ REQUEST_COOKIES REQUEST_COOKIES:name REQUEST_COOKIES:/RegEx/</td>
+
+ <td> In 2.x, you can use the “&” character to “count” the number
+ of variables. While there are different ways to access request
+ cookies, the main difference between them are that
+ REQUEST_HEADERS:Cookie will include all of the “raw” Cookie data
+ while any of the REQUEST_COOKIES variable values are parsed.</td>
+
+ <td>Translate rules as follows – Mod 1.x -> Mod 2.x COOKIES ->
+ REQUEST_COOKIES COOKIES_COUNT -> &REQUEST_COOKIES
+ COOKIES_NAMES -> REQUEST_COOKIES_NAMES COOKIES_VALUES ->
+ REQUEST_COOKIES COOKIE_name -> REQUEST_COOKIES:name</td>
+ </tr>
+
+ <tr>
+ <td>
+ <emphasis role="bold">Counting Variables</emphasis>
+ </td>
+
+ <td>ARGS_COUNT COOKIES_COUNT HEADERS_COUNT FILES_COUNT</td>
+
+ <td>&ARGS &REQUEST_COOKIES &REQUEST_HEADERS
+ &FILES</td>
+
+ <td>In 2.x, prepending the “&” character will count the number
+ of variables. Example – 1.x – HEADERS_COUNT 2.x -
+ &REQUEST_HEADERS</td>
+
+ <td>Translate existing 1.x rules as listed.</td>
+ </tr>
+
+ <tr>
+ <td>
+ <emphasis role="bold">Accessing HTTP Status Code</emphasis>
+ </td>
+
+ <td>OUTPUT_STATUS</td>
+
+ <td>RESPONSE_STATUS Phase:3</td>
+
+ <td>In 2.x, you need to specify both the RESPONSE_STATUS variable
+ and phase:3 with the rule.</td>
+
+ <td>Translate any existing 1.x OUTPUT STATUS rules to use
+ RESPONSE_STATUS and phase:3.</td>
+ </tr>
+
+ <tr>
+ <td>
+ <emphasis role="bold">Accessing Response Bodies/Post
+ Payloads</emphasis>
+ </td>
+
+ <td>SecFilterScanOutput SecFilterOutputMimeTypes OUTPUT</td>
+
+ <td>SecResponseBodyAccess SecResponseBodyMimeTypes RESPONSE_BODY
+ Phase:4</td>
+
+ <td>In 1.x, neither skipnext nor chain could be used on the OUTPUT
+ location. In 2.x, both actions can be used on RESPONSE_BODY</td>
+
+ <td>Translate directives/rules as follows – Mod 1.x -> Mod 2.x
+ SecFilterScanOutput -> SecResponseBodyAccess
+ SecFilterOutputMimeTypes -> SecResponseBodyMimeTypes OUTPUT ->
+ RESPONSE_BODY/Phase:4</td>
+ </tr>
+
+ <tr>
+ <td>
+ <emphasis role="bold">Cookie Normalization</emphasis>
+ </td>
+
+ <td>SecFilterCookieFormat SecFilterNormalizeCookies</td>
+
+ <td>SecCookieFormat</td>
+
+ <td>SecFilterNormalizeCookies is no longer supported as Mod 2.x
+ transformation functions can now be used to normalize all Variables
+ including Cookie data.</td>
+
+ <td>Change SecFilterCookieFormat to SecCookieFormat. When specifying
+ Cookie variables, then apply the applicable transformation functions
+ in the action field of the rule.</td>
+ </tr>
+
+ <tr>
+ <td>
+ <emphasis role="bold">Ability to skip rules</emphasis>
+ </td>
+
+ <td>skipnext</td>
+
+ <td>skip</td>
+
+ <td>In Mod 2.x – skip takes into account chained rulesets and treats
+ them as 1 rule. In Mod 1.x – skipnext treated each rule directive as
+ an individual rule regardless of whether or not they were tied
+ together as a chained ruleset.</td>
+
+ <td>Translate all skipnext rules to skip, however make sure to
+ factor in any chained rulesets that may follow and adjust the skip
+ number accordingly.</td>
+ </tr>
+
+ <tr>
+ <td>
+ <emphasis role="bold">Adding/Removing Audit Log Data on a per rule
+ basis</emphasis>
+ </td>
+
+ <td>logparts</td>
+
+ <td>clt:auditLogParts=</td>
+
+ <td>The rules function the same.</td>
+
+ <td>Translate any existing logparts actions to the ctl:auditLogParts
+ equivalent.</td>
+ </tr>
+
+ <tr>
+ <td>
+ <emphasis role="bold">Inspecting uploaded files</emphasis>
+ </td>
+
+ <td>SecUploadApproveScript</td>
+
+ <td>@inspectFile FILES_TMPNAMES</td>
+
+ <td>The main difference here is that now @inspectFile is an Operator
+ vs. a global Directive. This means that you can apply @inspectFile
+ to individual rules and use different scripts as appropriate. Also,
+ the return codes are now reversed – In 1.x, a return code of “1”
+ means that the file would be allowed. In 2.x, a return code of “1”
+ means that the file would be denied. </td>
+
+ <td>In order to scan/inspect uploaded files in 2.x, you need to
+ create specific rules that use the FILES_TMPNAMES variable (as these
+ are the names of the files that are temporarily stored on disk) and
+ then use the @inspectFile Operator on each rule. Also, make sure to
+ swap your return codes in existing scripts as mentioned in the notes
+ column.</td>
+ </tr>
+
+ <tr>
+ <td>
+ <emphasis role="bold">Memory limits for uploaded files</emphasis>
+ </td>
+
+ <td>SecUploadInMemoryLimit</td>
+
+ <td>SecRequestBodyInMemoryLimit</td>
+
+ <td>These two directives function the same.</td>
+
+ <td>Change the SecUploadInMemoryLimit directive to
+ SecRequestBodyInMemoryLimit.</td>
+ </tr>
+ </table>
+ </section>
+ </section>
+</article>
--- /dev/null
+
+body {
+ font: 13px/20px Arial, Helvetica;
+ background-color: white;
+ width: 800px;
+}
+
+/* TEXT */
+
+PRE {
+ font-size: 100%;
+ padding: 5px;
+ border-style: solid;
+ border-width: 1px;
+ border-color: #CCCCCC;
+ background-color: #F5F8FA;
+}
+
+p, td, tr, li, ol, ul {
+ /*font-family: Trebuchet MS, Verdana, Tahoma, Arial, Helvetica, Geneva;*/
+ /*font-family: Arial, Helvetica;
+ font-size: 14px;
+ line-height: 24px;*/
+}
+
+.copyright {
+ font-size: 10px;
+}
+
+h1 {
+ padding-top: 40px;
+ font: 24px/30px Arial, Helvetica;
+ font-weight: bold;
+}
+
+h2 {
+ font: 20px/30px Arial, Helvetica;
+ font-weight: bold;
+}
+
+h3 {
+ padding-top: 15px;
+ font: 16px/10px Arial, Helvetica;
+ font-weight: bold;
+}
+
+h4 {
+ padding-top: 15px;
+ font: 14px/10px Arial, Helvetica;
+ font-weight: bold;
+}
+
+
+
+
+.header {
+ background-color: #00448B;
+ border-top: 6px solid #002B6E;
+ height: 84px;
+ vertical-align: top;
+ padding-left: 20px;
+ padding-top: 10px;
+}
+
+.topNavigation {
+ background-color: #EEEEEE;
+ background: url('g/topnav-background.gif');
+ height: 23px;
+ line-height: 12px;
+ vertical-align: top;
+ padding-left: 12px;
+ padding-top: 5px;
+}
+
+.topLink, A.topLink:link, A.topLink:active, A.topLink:visited {
+ font-weight: bold;
+ color: black;
+ text-decoration: none;
+ padding-left: 8px;
+ padding-right: 8px;
+}
+
+A.topLink:hover {
+ color: #BB0000;
+}
+
+#navheader td {
+ font-size: 12px;
+}
+
+#navfooter td {
+ font-size: 12px;
+}
+
+h3.title {
+ margin-top: 0px;
+}
+
+.note {
+ border-top: 1px solid #CCCCCC;
+ border-bottom: 1px solid #CCCCCC;
+}
--- /dev/null
+<html><head><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>ModSecurity® Reference
+ Manual</title><link href="modsecurity-reference.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.69.1" name="generator"><link rel="start" href="#N10001" title="ModSecurity® Reference
+ Manual"><link rel="next" href="#introduction" title="Introduction"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div style="background:#F5F5F5;width:100%;border-top:1px solid #DDDDDD;border-bottom:1px solid #DDDDDD"><table width="100%" cellspacing="0" cellpadding="0"><tr><td><a href="http://www.modsecurity.org"><img style="margin:4px" src="modsecurity.gif" width="120" height="36" alt="ModSecurity" border="0"></a></td><td align="right"><a href="http://www.breach.com"><img style="margin:6px" src="breach-logo-small.gif" height="36" width="100" border="0"></a></td></tr></table></div><div class="article" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="N10001"></a><span class="trademark">ModSecurity</span>® Reference
+ Manual</h2></div><div><p class="releaseinfo">Version 2.5.11 (Nov 4, 2009)</p></div><div><p class="copyright">Copyright © 2004-2009 Breach Security, Inc. (<a href="http://www.breach.com" target="_top">http://www.breach.com</a>)</p></div></div><div></div><hr size="1"></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="#introduction">Introduction</a></span></dt><dd><dl><dt><span class="section"><a href="#N1001D">HTTP Traffic Logging</a></span></dt><dt><span class="section"><a href="#N10022">Real-Time Monitoring and Attack Detection</a></span></dt><dt><span class="section"><a href="#N10027">Attack Prevention and Just-in-time Patching</a></span></dt><dt><span class="section"><a href="#N10038">Flexible Rule Engine</a></span></dt><dt><span class="section"><a href="#N1003D">Embedded-mode Deployment</a></span></dt><dt><span class="section"><a href="#N10054">Network-based Deployment</a></span></dt><dt><span class="section"><a href="#N10059">Portability</a></span></dt><dt><span class="section"><a href="#licensing">Licensing</a></span></dt></dl></dd><dt><span class="section"><a href="#N10067"><span class="trademark">ModSecurity Core Rules</span>™</a></span></dt><dd><dl><dt><span class="section"><a href="#N1006C">Overview</a></span></dt><dt><span class="section"><a href="#N10075">Core Rules Content</a></span></dt></dl></dd><dt><span class="section"><a href="#installation">Installation</a></span></dt><dt><span class="section"><a href="#configuration-directives">Configuration Directives</a></span></dt><dd><dl><dt><span class="section"><a href="#N101B0"><code class="literal">SecAction</code></a></span></dt><dt><span class="section"><a href="#N101E1"><code class="literal">SecArgumentSeparator</code></a></span></dt><dt><span class="section"><a href="#N10216"><code class="literal">SecAuditEngine</code></a></span></dt><dt><span class="section"><a href="#N10263"><code class="literal">SecAuditLog</code></a></span></dt><dt><span class="section"><a href="#N10293"><code class="literal">SecAuditLog2</code></a></span></dt><dt><span class="section"><a href="#N102C5"><code class="literal">SecAuditLogDirMode</code></a></span></dt><dt><span class="section"><a href="#N102F3"><code class="literal">SecAuditLogFileMode</code></a></span></dt><dt><span class="section"><a href="#N10321"><code class="literal">SecAuditLogParts</code></a></span></dt><dt><span class="section"><a href="#N103B4"><code class="literal">SecAuditLogRelevantStatus</code></a></span></dt><dt><span class="section"><a href="#N103E5"><code class="literal">SecAuditLogStorageDir</code></a></span></dt><dt><span class="section"><a href="#N1040E"><code class="literal">SecAuditLogType</code></a></span></dt><dt><span class="section"><a href="#N1044A"><code class="literal">SecCacheTransformations</code>
+ (Deprecated/Experimental)</a></span></dt><dt><span class="section"><a href="#N1049C"><code class="literal">SecChrootDir</code></a></span></dt><dt><span class="section"><a href="#N104DD"><code class="literal">SecComponentSignature</code></a></span></dt><dt><span class="section"><a href="#N10504"><code class="literal">SecContentInjection</code></a></span></dt><dt><span class="section"><a href="#N10533"><code class="literal">SecCookieFormat</code></a></span></dt><dt><span class="section"><a href="#N10569"><code class="literal">SecDataDir</code></a></span></dt><dt><span class="section"><a href="#N1058C"><code class="literal">SecDebugLog</code></a></span></dt><dt><span class="section"><a href="#N105B3"><code class="literal">SecDebugLogLevel</code></a></span></dt><dt><span class="section"><a href="#N10613"><code class="literal">SecDefaultAction</code></a></span></dt><dt><span class="section"><a href="#N1065E"><code class="literal">SecGeoLookupDb</code></a></span></dt><dt><span class="section"><a href="#N10689"><code class="literal">SecGuardianLog</code></a></span></dt><dt><span class="section"><a href="#N106BC"><code class="literal">SecMarker</code></a></span></dt><dt><span class="section"><a href="#N106F4"><code class="literal">SecPdfProtect</code></a></span></dt><dt><span class="section"><a href="#N1071F"><code class="literal">SecPdfProtectMethod</code></a></span></dt><dt><span class="section"><a href="#N10755"><code class="literal">SecPdfProtectSecret</code></a></span></dt><dt><span class="section"><a href="#N1077C"><code class="literal">SecPdfProtectTimeout</code></a></span></dt><dt><span class="section"><a href="#N107AA"><code class="literal">SecPdfProtectTokenName</code></a></span></dt><dt><span class="section"><a href="#N107D8"><code class="literal">SecRequestBodyAccess</code></a></span></dt><dt><span class="section"><a href="#N10816"><code class="literal">SecRequestBodyLimit</code></a></span></dt><dt><span class="section"><a href="#N10839"><code class="literal">SecRequestBodyNoFilesLimit</code></a></span></dt><dt><span class="section"><a href="#N10864"><code class="literal">SecRequestBodyInMemoryLimit</code></a></span></dt><dt><span class="section"><a href="#N10890"><code class="literal">SecResponseBodyLimit</code></a></span></dt><dt><span class="section"><a href="#N108BC"><code class="literal">SecResponseBodyLimitAction</code></a></span></dt><dt><span class="section"><a href="#N108E7"><code class="literal">SecResponseBodyMimeType</code></a></span></dt><dt><span class="section"><a href="#N10923"><code class="literal">SecResponseBodyMimeTypesClear</code></a></span></dt><dt><span class="section"><a href="#N1094E"><code class="literal">SecResponseBodyAccess</code></a></span></dt><dt><span class="section"><a href="#N10984"><code class="literal">SecRule</code></a></span></dt><dt><span class="section"><a href="#N10A74"><code class="literal">SecRuleInheritance</code></a></span></dt><dt><span class="section"><a href="#N10AD7"><code class="literal">SecRuleEngine</code></a></span></dt><dt><span class="section"><a href="#N10B13"><code class="literal">SecRuleRemoveById</code></a></span></dt><dt><span class="section"><a href="#N10B3D"><code class="literal">SecRuleRemoveByMsg</code></a></span></dt><dt><span class="section"><a href="#N10B68"><code class="literal">SecRuleScript</code> (Experimental)</a></span></dt><dt><span class="section"><a href="#N10BC2"><code class="literal">SecRuleUpdateActionById</code></a></span></dt><dt><span class="section"><a href="#N10BF1"><code class="literal">SecServerSignature</code></a></span></dt><dt><span class="section"><a href="#N10C18"><code class="literal">SecTmpDir</code></a></span></dt><dt><span class="section"><a href="#N10C3F"><code class="literal">SecUploadDir</code></a></span></dt><dt><span class="section"><a href="#N10C6E"><code class="literal">SecUploadFileMode</code></a></span></dt><dt><span class="section"><a href="#N10C98"><code class="literal">SecUploadKeepFiles</code></a></span></dt><dt><span class="section"><a href="#N10CD8"><code class="literal">SecWebAppId</code></a></span></dt></dl></dd><dt><span class="section"><a href="#processing-phases">Processing Phases</a></span></dt><dd><dl><dt><span class="section"><a href="#N10D73">Phase Request Headers</a></span></dt><dt><span class="section"><a href="#N10D7D">Phase Request Body</a></span></dt><dt><span class="section"><a href="#N10D97">Phase Response Headers</a></span></dt><dt><span class="section"><a href="#N10D9C">Phase Response Body</a></span></dt><dt><span class="section"><a href="#N10DA1">Phase Logging</a></span></dt></dl></dd><dt><span class="section"><a href="#variables">Variables</a></span></dt><dd><dl><dt><span class="section"><a href="#N10DAC"><code class="literal">ARGS</code></a></span></dt><dt><span class="section"><a href="#N10DFE"><code class="literal">ARGS_COMBINED_SIZE</code></a></span></dt><dt><span class="section"><a href="#N10E0B"><code class="literal">ARGS_NAMES</code></a></span></dt><dt><span class="section"><a href="#N10E18"><code class="literal">ARGS_GET</code></a></span></dt><dt><span class="section"><a href="#N10E26"><code class="literal">ARGS_GET_NAMES</code></a></span></dt><dt><span class="section"><a href="#N10E34"><code class="literal">ARGS_POST</code></a></span></dt><dt><span class="section"><a href="#N10E42"><code class="literal">ARGS_POST_NAMES</code></a></span></dt><dt><span class="section"><a href="#N10E50"><code class="literal">AUTH_TYPE</code></a></span></dt><dt><span class="section"><a href="#N10E66"><code class="literal">ENV</code></a></span></dt><dt><span class="section"><a href="#N10E7A"><code class="literal">FILES</code></a></span></dt><dt><span class="section"><a href="#N10E87"><code class="literal">FILES_COMBINED_SIZE</code></a></span></dt><dt><span class="section"><a href="#N10E94"><code class="literal">FILES_NAMES</code></a></span></dt><dt><span class="section"><a href="#N10EA1"><code class="literal">FILES_SIZES</code></a></span></dt><dt><span class="section"><a href="#N10EAE"><code class="literal">FILES_TMPNAMES</code></a></span></dt><dt><span class="section"><a href="#N10EBF"><code class="literal">GEO</code></a></span></dt><dt><span class="section"><a href="#N10F11"><code class="literal">HIGHEST_SEVERITY</code></a></span></dt><dt><span class="section"><a href="#N10F24"><code class="literal">MATCHED_VAR</code></a></span></dt><dt><span class="section"><a href="#N10F35"><code class="literal">MATCHED_VAR_NAME</code></a></span></dt><dt><span class="section"><a href="#N10F42"><code class="literal">MODSEC_BUILD</code></a></span></dt><dt><span class="section"><a href="#N10F4F"><code class="literal">MULTIPART_CRLF_LF_LINES</code></a></span></dt><dt><span class="section"><a href="#N10F7A"><code class="literal">MULTIPART_STRICT_ERROR</code></a></span></dt><dt><span class="section"><a href="#N10FC6"><code class="literal">MULTIPART_UNMATCHED_BOUNDARY</code></a></span></dt><dt><span class="section"><a href="#N10FDC"><code class="literal">PATH_INFO</code></a></span></dt><dt><span class="section"><a href="#N10FE9"><code class="literal">QUERY_STRING</code></a></span></dt><dt><span class="section"><a href="#N10FF6"><code class="literal">REMOTE_ADDR</code></a></span></dt><dt><span class="section"><a href="#N11003"><code class="literal">REMOTE_HOST</code></a></span></dt><dt><span class="section"><a href="#N11010"><code class="literal">REMOTE_PORT</code></a></span></dt><dt><span class="section"><a href="#N11021"><code class="literal">REMOTE_USER</code></a></span></dt><dt><span class="section"><a href="#N11033"><code class="literal">REQBODY_PROCESSOR</code></a></span></dt><dt><span class="section"><a href="#N1104C"><code class="literal">REQBODY_PROCESSOR_ERROR</code></a></span></dt><dt><span class="section"><a href="#N11064"><code class="literal">REQBODY_PROCESSOR_ERROR_MSG</code></a></span></dt><dt><span class="section"><a href="#N11071"><code class="literal">REQUEST_BASENAME</code></a></span></dt><dt><span class="section"><a href="#N11093"><code class="literal">REQUEST_BODY</code></a></span></dt><dt><span class="section"><a href="#N110C7"><code class="literal">REQUEST_COOKIES</code></a></span></dt><dt><span class="section"><a href="#N110D4"><code class="literal">REQUEST_COOKIES_NAMES</code></a></span></dt><dt><span class="section"><a href="#N110E1"><code class="literal">REQUEST_FILENAME</code></a></span></dt><dt><span class="section"><a href="#N110FD"><code class="literal">REQUEST_HEADERS</code></a></span></dt><dt><span class="section"><a href="#N11121"><code class="literal">REQUEST_HEADERS_NAMES</code></a></span></dt><dt><span class="section"><a href="#N1112E"><code class="literal">REQUEST_LINE</code></a></span></dt><dt><span class="section"><a href="#N1113B"><code class="literal">REQUEST_METHOD</code></a></span></dt><dt><span class="section"><a href="#N1114E"><code class="literal">REQUEST_PROTOCOL</code></a></span></dt><dt><span class="section"><a href="#N1115B"><code class="literal">REQUEST_URI</code></a></span></dt><dt><span class="section"><a href="#N11179"><code class="literal">REQUEST_URI_RAW</code></a></span></dt><dt><span class="section"><a href="#N11193"><code class="literal">RESPONSE_BODY</code></a></span></dt><dt><span class="section"><a href="#N111A2"><code class="literal">RESPONSE_CONTENT_LENGTH</code></a></span></dt><dt><span class="section"><a href="#N111B3"><code class="literal">RESPONSE_CONTENT_TYPE</code></a></span></dt><dt><span class="section"><a href="#N111BA"><code class="literal">RESPONSE_HEADERS</code></a></span></dt><dt><span class="section"><a href="#N111CE"><code class="literal">RESPONSE_HEADERS_NAMES</code></a></span></dt><dt><span class="section"><a href="#N111E0"><code class="literal">RESPONSE_PROTOCOL</code></a></span></dt><dt><span class="section"><a href="#N111ED"><code class="literal">RESPONSE_STATUS</code></a></span></dt><dt><span class="section"><a href="#N111FF"><code class="literal">RULE</code></a></span></dt><dt><span class="section"><a href="#N11224"><code class="literal">SCRIPT_BASENAME</code></a></span></dt><dt><span class="section"><a href="#N11236"><code class="literal">SCRIPT_FILENAME</code></a></span></dt><dt><span class="section"><a href="#N11248"><code class="literal">SCRIPT_GID</code></a></span></dt><dt><span class="section"><a href="#N1125A"><code class="literal">SCRIPT_GROUPNAME</code></a></span></dt><dt><span class="section"><a href="#N1126C"><code class="literal">SCRIPT_MODE</code></a></span></dt><dt><span class="section"><a href="#N1127E"><code class="literal">SCRIPT_UID</code></a></span></dt><dt><span class="section"><a href="#N11290"><code class="literal">SCRIPT_USERNAME</code></a></span></dt><dt><span class="section"><a href="#N112A2"><code class="literal">SERVER_ADDR</code></a></span></dt><dt><span class="section"><a href="#N112AF"><code class="literal">SERVER_NAME</code></a></span></dt><dt><span class="section"><a href="#N112C1"><code class="literal">SERVER_PORT</code></a></span></dt><dt><span class="section"><a href="#N112CE"><code class="literal">SESSION</code></a></span></dt><dt><span class="section"><a href="#N112E8"><code class="literal">SESSIONID</code></a></span></dt><dt><span class="section"><a href="#N112F9"><code class="literal">TIME</code></a></span></dt><dt><span class="section"><a href="#N11306"><code class="literal">TIME_DAY</code></a></span></dt><dt><span class="section"><a href="#N11313"><code class="literal">TIME_EPOCH</code></a></span></dt><dt><span class="section"><a href="#N11320"><code class="literal">TIME_HOUR</code></a></span></dt><dt><span class="section"><a href="#N1132D"><code class="literal">TIME_MIN</code></a></span></dt><dt><span class="section"><a href="#N1133A"><code class="literal">TIME_MON</code></a></span></dt><dt><span class="section"><a href="#N11347"><code class="literal">TIME_SEC</code></a></span></dt><dt><span class="section"><a href="#N11354"><code class="literal">TIME_WDAY</code></a></span></dt><dt><span class="section"><a href="#N11361"><code class="literal">TIME_YEAR</code></a></span></dt><dt><span class="section"><a href="#N1136E"><code class="literal">TX</code></a></span></dt><dt><span class="section"><a href="#N113A1"><code class="literal">USERID</code></a></span></dt><dt><span class="section"><a href="#N113B2"><code class="literal">WEBAPPID</code></a></span></dt><dt><span class="section"><a href="#N113C3"><code class="literal">WEBSERVER_ERROR_LOG</code></a></span></dt><dt><span class="section"><a href="#N113D0"><code class="literal">XML</code></a></span></dt></dl></dd><dt><span class="section"><a href="#transformation-functions">Transformation functions</a></span></dt><dd><dl><dt><span class="section"><a href="#N1142D"><code class="literal">base64Decode</code></a></span></dt><dt><span class="section"><a href="#N11434"><code class="literal">base64Encode</code></a></span></dt><dt><span class="section"><a href="#N1143B"><code class="literal">compressWhitespace</code></a></span></dt><dt><span class="section"><a href="#N11442">cssDecode</a></span></dt><dt><span class="section"><a href="#N11453"><code class="literal">escapeSeqDecode</code></a></span></dt><dt><span class="section"><a href="#N1148E"><code class="literal">hexDecode</code></a></span></dt><dt><span class="section"><a href="#N11495"><code class="literal">hexEncode</code></a></span></dt><dt><span class="section"><a href="#N1149C"><code class="literal">htmlEntityDecode</code></a></span></dt><dt><span class="section"><a href="#N114DE"><code class="literal">jsDecode</code></a></span></dt><dt><span class="section"><a href="#N114F1"><code class="literal">length</code></a></span></dt><dt><span class="section"><a href="#N114F8"><code class="literal">lowercase</code></a></span></dt><dt><span class="section"><a href="#N114FF"><code class="literal">md5</code></a></span></dt><dt><span class="section"><a href="#N1150A"><code class="literal"><code class="literal">none</code></code></a></span></dt><dt><span class="section"><a href="#N11513"><code class="literal">normalisePath</code></a></span></dt><dt><span class="section"><a href="#N1151A"><code class="literal">normalisePathWin</code></a></span></dt><dt><span class="section"><a href="#N11525"><code class="literal">parityEven7bit</code></a></span></dt><dt><span class="section"><a href="#N1152C"><code class="literal">parityOdd7bit</code></a></span></dt><dt><span class="section"><a href="#N11533"><code class="literal">parityZero7bit</code></a></span></dt><dt><span class="section"><a href="#N1153A"><code class="literal">removeNulls</code></a></span></dt><dt><span class="section"><a href="#N11541"><code class="literal">removeWhitespace</code></a></span></dt><dt><span class="section"><a href="#N11548"><code class="literal">replaceComments</code></a></span></dt><dt><span class="section"><a href="#N11557"><code class="literal">replaceNulls</code></a></span></dt><dt><span class="section"><a href="#N1155E"><code class="literal">urlDecode</code></a></span></dt><dt><span class="section"><a href="#N11569"><code class="literal">urlDecodeUni</code></a></span></dt><dt><span class="section"><a href="#N11584"><code class="literal">urlEncode</code></a></span></dt><dt><span class="section"><a href="#N1158B"><code class="literal">sha1</code></a></span></dt><dt><span class="section"><a href="#N11596"><code class="literal">trimLeft</code></a></span></dt><dt><span class="section"><a href="#N1159D"><code class="literal">trimRight</code></a></span></dt><dt><span class="section"><a href="#N115A4"><code class="literal">trim</code></a></span></dt></dl></dd><dt><span class="section"><a href="#actions">Actions</a></span></dt><dd><dl><dt><span class="section"><a href="#N115EC"><code class="literal">allow</code></a></span></dt><dt><span class="section"><a href="#N1163C">append</a></span></dt><dt><span class="section"><a href="#N1165E"><code class="literal">auditlog</code></a></span></dt><dt><span class="section"><a href="#N11678"><code class="literal">block</code></a></span></dt><dt><span class="section"><a href="#N116BD"><code class="literal">capture</code></a></span></dt><dt><span class="section"><a href="#N116D7"><code class="literal">chain</code></a></span></dt><dt><span class="section"><a href="#N116F2"><code class="literal">ctl</code></a></span></dt><dt><span class="section"><a href="#N11786"><code class="literal">deny</code></a></span></dt><dt><span class="section"><a href="#N1179B"><code class="literal">deprecatevar</code></a></span></dt><dt><span class="section"><a href="#N117B2"><code class="literal">drop</code></a></span></dt><dt><span class="section"><a href="#N117CC"><code class="literal">exec</code></a></span></dt><dt><span class="section"><a href="#N117F5"><code class="literal">expirevar</code></a></span></dt><dt><span class="section"><a href="#N1180F"><code class="literal">id</code></a></span></dt><dt><span class="section"><a href="#N1184E"><code class="literal">initcol</code></a></span></dt><dt><span class="section"><a href="#N11875"><code class="literal">log</code></a></span></dt><dt><span class="section"><a href="#N1188E"><code class="literal">logdata</code></a></span></dt><dt><span class="section"><a href="#N118A7"><code class="literal">msg</code></a></span></dt><dt><span class="section"><a href="#N118C3"><code class="literal">multiMatch</code></a></span></dt><dt><span class="section"><a href="#N118DC"><code class="literal">noauditlog</code></a></span></dt><dt><span class="section"><a href="#N118F9"><code class="literal">nolog</code></a></span></dt><dt><span class="section"><a href="#N11912"><code class="literal">pass</code></a></span></dt><dt><span class="section"><a href="#N11941"><code class="literal">pause</code></a></span></dt><dt><span class="section"><a href="#N1195A"><code class="literal">phase</code></a></span></dt><dt><span class="section"><a href="#N11974">prepend</a></span></dt><dt><span class="section"><a href="#N11996"><code class="literal">proxy</code></a></span></dt><dt><span class="section"><a href="#N119AF"><code class="literal">redirect</code></a></span></dt><dt><span class="section"><a href="#N119CC"><code class="literal">rev</code></a></span></dt><dt><span class="section"><a href="#N119EA"><code class="literal">sanitiseArg</code></a></span></dt><dt><span class="section"><a href="#N11A03"><code class="literal">sanitiseMatched</code></a></span></dt><dt><span class="section"><a href="#N11A1F"><code class="literal">sanitiseRequestHeader</code></a></span></dt><dt><span class="section"><a href="#N11A38"><code class="literal">sanitiseResponseHeader</code></a></span></dt><dt><span class="section"><a href="#N11A51"><code class="literal">severity</code></a></span></dt><dt><span class="section"><a href="#N11A86"><code class="literal">setuid</code></a></span></dt><dt><span class="section"><a href="#N11AA8"><code class="literal">setsid</code></a></span></dt><dt><span class="section"><a href="#N11ACD"><code class="literal">setenv</code></a></span></dt><dt><span class="section"><a href="#N11AEF"><code class="literal">setvar</code></a></span></dt><dt><span class="section"><a href="#N11B15"><code class="literal">skip</code></a></span></dt><dt><span class="section"><a href="#N11B30"><code class="literal">skipAfter</code></a></span></dt><dt><span class="section"><a href="#N11B52"><code class="literal">status</code></a></span></dt><dt><span class="section"><a href="#N11B74"><code class="literal">t</code></a></span></dt><dt><span class="section"><a href="#N11B8D"><code class="literal">tag</code></a></span></dt><dt><span class="section"><a href="#N11BA7"><code class="literal">xmlns</code></a></span></dt></dl></dd><dt><span class="section"><a href="#operators">Operators</a></span></dt><dd><dl><dt><span class="section"><a href="#N11BC6"><code class="literal">beginsWith</code></a></span></dt><dt><span class="section"><a href="#N11BDE"><code class="literal">contains</code></a></span></dt><dt><span class="section"><a href="#N11BF2"><code class="literal">endsWith</code></a></span></dt><dt><span class="section"><a href="#N11C06"><code class="literal">eq</code></a></span></dt><dt><span class="section"><a href="#N11C17"><code class="literal">ge</code></a></span></dt><dt><span class="section"><a href="#N11C28"><code class="literal">geoLookup</code></a></span></dt><dt><span class="section"><a href="#N11C51"><code class="literal">gt</code></a></span></dt><dt><span class="section"><a href="#N11C62"><code class="literal">inspectFile</code></a></span></dt><dt><span class="section"><a href="#N11C84"><code class="literal">le</code></a></span></dt><dt><span class="section"><a href="#N11C95"><code class="literal">lt</code></a></span></dt><dt><span class="section"><a href="#N11CA6"><code class="literal">pm</code></a></span></dt><dt><span class="section"><a href="#N11CB9"><code class="literal">pmFromFile</code></a></span></dt><dt><span class="section"><a href="#N11CDF"><code class="literal">rbl</code></a></span></dt><dt><span class="section"><a href="#N11CF0"><code class="literal">rx</code></a></span></dt><dt><span class="section"><a href="#N11D2A"><code class="literal">streq</code></a></span></dt><dt><span class="section"><a href="#N11D3E"><code class="literal">validateByteRange</code></a></span></dt><dt><span class="section"><a href="#N11D64"><code class="literal">validateDTD</code></a></span></dt><dt><span class="section"><a href="#N11D78"><code class="literal">validateSchema</code></a></span></dt><dt><span class="section"><a href="#N11D8C"><code class="literal">validateUrlEncoding</code></a></span></dt><dt><span class="section"><a href="#N11DA6"><code class="literal">validateUtf8Encoding</code></a></span></dt><dt><span class="section"><a href="#N11DC8"><code class="literal">verifyCC</code></a></span></dt><dt><span class="section"><a href="#N11DD9"><code class="literal">within</code></a></span></dt></dl></dd><dt><span class="section"><a href="#N11DF1">Macro Expansion</a></span></dt><dt><span class="section"><a href="#N11DFF">Persistant Storage</a></span></dt><dt><span class="section"><a href="#N11E63">Miscellaneous Topics</a></span></dt><dd><dl><dt><span class="section"><a href="#N11E67">Impedance Mismatch</a></span></dt></dl></dd></dl></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="introduction"></a>Introduction</h2></div></div><div></div></div><p>ModSecurity is a web application firewall (WAF). With over 70% of
+ attacks now carried out over the web application level, organisations need
+ all the help they can get in making their systems secure. WAFs are
+ deployed to establish an increased external security layer to detect
+ and/or prevent attacks before they reach web applications. ModSecurity
+ provides protection from a range of attacks against web applications and
+ allows for HTTP traffic monitoring and real-time analysis with little or
+ no changes to existing infrastructure.</p><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1001D"></a>HTTP Traffic Logging</h3></div></div><div></div></div><p>Web servers are typically well-equipped to log traffic in a form
+ useful for marketing analyses, but fall short logging traffic to web
+ applications. In particular, most are not capable of logging the request
+ bodies. Your adversaries know this, and that is why most attacks are now
+ carried out via POST requests, rendering your systems blind. ModSecurity
+ makes full HTTP transaction logging possible, allowing complete requests
+ and responses to be logged. Its logging facilities also allow
+ fine-grained decisions to be made about exactly what is logged and when,
+ ensuring only the relevant data is recorded. As some of the request
+ and/or response may contain sensitive data in certain fields,
+ ModSecurity can be configured to mask these fields before they are
+ written to the audit log.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10022"></a>Real-Time Monitoring and Attack Detection</h3></div></div><div></div></div><p>In addition to providing logging facilities, ModSecurity can
+ monitor the HTTP traffic in real time in order to detect attacks. In
+ this case, ModSecurity operates as a web intrusion detection tool,
+ allowing you to react to suspicious events that take place at your web
+ systems.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10027"></a>Attack Prevention and Just-in-time Patching</h3></div></div><div></div></div><p>ModSecurity can also act immediately to prevent attacks from
+ reaching your web applications. There are three commonly used
+ approaches:</p><div class="orderedlist"><ol type="1"><li><p>Negative security model. A negative security model monitors
+ requests for anomalies, unusual behaviour, and common web
+ application attacks. It keeps anomaly scores for each request, IP
+ addresses, application sessions, and user accounts. Requests with
+ high anomaly scores are either logged or rejected altogether.</p></li><li><p>Positive security model. When a positive security model is
+ deployed, only requests that are known to be valid are accepted,
+ with everything else rejected. This model requires knownledge of the
+ web applications you are protecting. Therefore a positive security
+ model works best with applications that are heavily used but rarely
+ updated so that maintenance of the model is minimized.</p></li><li><p>Known weaknesses and vulnerabilities. Its rule language makes
+ ModSecurity an ideal external patching tool. External patching
+ (sometimes referred to as Virtual Patching) is about reducing the
+ window of opportunity. Time needed to patch application
+ vulnerabilities often runs to weeks in many organisations. With
+ ModSecurity, applications can be patched from the outside, without
+ touching the application source code (and even without any access to
+ it), making your systems secure until a proper patch is applied to
+ the application.</p></li></ol></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10038"></a>Flexible Rule Engine</h3></div></div><div></div></div><p>A flexible rule engine sits in the heart of ModSecurity. It
+ implements the ModSecurity Rule Language, which is a specialised
+ programming language designed to work with HTTP transaction data. The
+ ModSecurity Rule Language is designed to be easy to use, yet flexible:
+ common operations are simple while complex operations are possible.
+ Certified ModSecurity Rules, included with ModSecurity, contain a
+ comprehensive set of rules that implement general-purpose hardening,
+ protocol validation and detection of common web application security
+ issues. Heavily commented, these rules can be used as a learning
+ tool.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1003D"></a>Embedded-mode Deployment</h3></div></div><div></div></div><p>ModSecurity is an embeddable web application firewall, which means
+ it can be deployed as part of your existing web server infrastructure
+ provided your web servers are Apache-based. This deployment method has
+ certain advantages:</p><div class="orderedlist"><ol type="1"><li><p>No changes to existing network. It only takes a few minutes to
+ add ModSecurity to your existing web servers. And because it was
+ designed to be completely passive by default, you are free to deploy
+ it incrementally and only use the features you need. It is equally
+ easy to remove or deactivate it if required.</p></li><li><p>No single point of failure. Unlike with network-based
+ deployments, you will not be introducing a new point of failure to
+ your system.</p></li><li><p>Implicit load balancing and scaling. Because it works embedded
+ in web servers, ModSecurity will automatically take advantage of the
+ additional load balancing and scalability features. You will not
+ need to think of load balancing and scaling unless your existing
+ system needs them.</p></li><li><p>Minimal overhead. Because it works from inside the web server
+ process there is no overhead for network communication and minimal
+ overhead in parsing and data exchange.</p></li><li><p>No problem with encrypted or compressed content. Many IDS
+ systems have difficulties analysing SSL traffic. This is not a
+ problem for ModSecurity because it is positioned to work when the
+ traffic is decrypted and decompressed.</p></li></ol></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10054"></a>Network-based Deployment</h3></div></div><div></div></div><p>ModSecurity works equally well when deployed as part of an
+ Apache-based reverse proxy server, and many of our customers choose to
+ do so. In this scenario, one installation of ModSecurity can protect any
+ number of web servers (even the non-Apache ones).</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10059"></a>Portability</h3></div></div><div></div></div><p>ModSecurity is known to work well on a wide range of operating
+ systems. Our customers are successfully running it on Linux, Windows,
+ Solaris, FreeBSD, OpenBSD, NetBSD, AIX, Mac OS X, and HP-UX.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="licensing"></a>Licensing</h3></div></div><div></div></div><p>ModSecurity is available under two licenses. Users can choose to
+ use the software under the terms of the GNU General Public License
+ version 2 (licence text is included with the distribution), as an Open
+ Source / Free Software product. A range of commercial licenses is also
+ available, together with a range of commercial support contracts. For
+ more information on commercial licensing please contact Breach
+ Security.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>ModSecurity, mod_security, ModSecurity Pro, and ModSecurity Core
+ Rules are trademarks or registered trademarks of Breach Security,
+ Inc.</p></div></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="N10067"></a><span class="trademark">ModSecurity Core Rules</span>™</h2></div></div><div></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1006C"></a>Overview</h3></div></div><div></div></div><p>ModSecurity is a web application firewall engine that provides
+ very little protection on its own. In order to become useful,
+ ModSecurity must be configured with rules. In order to enable users to
+ take full advantage of ModSecurity out of the box, Breach Security, Inc.
+ is providing a free certified rule set for ModSecurity 2.x. Unlike
+ intrusion detection and prevention systems, which rely on signatures
+ specific to known vulnerabilities, the Core Rules provide generic
+ protection from unknown vulnerabilities often found in web applications,
+ which are in most cases custom coded. The Core Rules are heavily
+ commented to allow it to be used as a step-by-step deployment guide for
+ ModSecurity. The latest Core Rules can be found at the ModSecurity
+ website - <a href="http://www.modsecurity.org/projects/rules/" target="_top">http://www.modsecurity.org/projects/rules/</a>.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10075"></a>Core Rules Content</h3></div></div><div></div></div><p>In order to provide generic web applications protection, the Core
+ Rules use the following techniques:</p><div class="itemizedlist"><ul type="disc"><li><p>HTTP protection - detecting violations of the HTTP protocol
+ and a locally defined usage policy.</p></li><li><p>Common Web Attacks Protection - detecting common web
+ application security attack.</p></li><li><p>Automation detection - Detecting bots, crawlers, scanners and
+ other surface malicious activity.</p></li><li><p>Trojan Protection - Detecting access to Trojans horses.</p></li><li><p>Error Hiding - Disguising error messages sent by the
+ server.</p></li></ul></div></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="installation"></a>Installation</h2></div></div><div></div></div><p>ModSecurity installation requirements:</p><div class="orderedlist"><ol type="1"><li><p>ModSecurity 2.x works only with Apache 2.0.x or higher. Version
+ 2.2.x is highly recommended.</p></li><li><p>Make sure you have <code class="literal">mod_unique_id</code> installed.</p><p>mod_unique_id is packaged with Apache httpd.</p></li><li><p>libapr and libapr-util</p><p><a href="http://apr.apache.org/" target="_top">http://apr.apache.org/</a></p></li><li><p>libpcre</p><p><a href="http://www.pcre.org/" target="_top">http://www.pcre.org/</a></p></li><li><p>libxml2</p><p><a href="http://xmlsoft.org/downloads.html" target="_top">http://xmlsoft.org/downloads.html</a></p></li><li><p>liblua v5.1.x</p><p>This library is optional and only needed if you will be using
+ the new Lua engine.</p><p><a href="http://www.lua.org/download.html" target="_top">http://www.lua.org/download.html</a></p><p>Note that ModSecurity requires the dynamic libraries. These are
+ not built by default in the source distribution, so the binary
+ distribution is recommended.</p></li><li><p>libcurl v7.15.1 or higher</p><p>If you will be using the ModSecurity Log Collector (mlogc) to
+ send audit logs to a central repository, then you will also need the
+ curl library.</p><p><a href="http://curl.haxx.se/libcurl/" target="_top">http://curl.haxx.se/libcurl/</a></p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Many have had issues with libcurl linked with the GnuTLS
+ library for SSL/TLS support. It is recommended that the
+ openssl library be used for SSL/TLS support in libcurl.</p></div></li></ol></div><p>ModSecurity installation consists of the following steps:</p><div class="orderedlist"><ol type="1"><li><p>Stop Apache httpd</p></li><li><p>Unpack the ModSecurity archive</p></li><li><p>Building differs for UNIX (or UNIX-like) operating systems and
+ Windows.</p><div class="itemizedlist"><ul type="disc"><li><p>UNIX</p><div class="orderedlist"><ol type="a"><li><p>Run the configure script to generate a Makefile.
+ Typically no options are needed.</p><p><code class="literal">./configure</code></p><p>Options are available for more customization (use
+ <code class="literal">./configure --help</code> for a full list), but
+ typically you will only need to specify the location of the
+ <code class="literal">apxs</code> command installed by Apache httpd with
+ the <code class="literal">--with-apxs</code> option.</p><p><code class="literal">./configure
+ --with-apxs=/path/to/httpd-2.x.y/bin/apxs</code></p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>There are certain configure options that are meant for
+ debugging an other development use. If enabled, these
+ options can substantially impact performance. These options
+ include all <code class="literal">--debug-*</code> options as well as
+ the <code class="literal">--enable-performance-measurements</code>
+ options.</p></div></li><li><p>Compile with: <code class="literal">make</code></p></li><li><p>Optionally test with: <code class="literal">make
+ test</code></p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This is step is still a bit experimental. If you have
+ problems, please send the full output and error from the
+ build to the support list. Most common issues are related to
+ not finding the required headers and/or libraries.</p></div></li><li><p>Optionally build the ModSecurity Log Collector with:
+ <code class="literal">make mlogc</code></p></li><li><p>Optionally install <code class="literal">mlogc</code>: Review the
+ <code class="literal">INSTALL</code> file included in the
+ apache2/mlogc-src directory in the distribution.</p></li><li><p>Install the ModSecurity module with: <code class="literal">make
+ install</code></p></li></ol></div></li><li><p>Windows (MS VC++ 8)</p><div class="orderedlist"><ol type="a"><li><p>Edit <code class="literal">Makefile.win</code> to configure the
+ Apache base and library paths.</p></li><li><p>Compile with: <code class="literal">nmake -f
+ Makefile.win</code></p></li><li><p>Install the ModSecurity module with: <code class="literal">nmake -f
+ Makefile.win install</code></p></li><li><p>Copy the <code class="literal">libxml2.dll</code> and
+ <code class="literal">lua5.1.dll</code> to the Apache
+ <code class="literal">bin</code> directory. Alternatively you can follow
+ the step below for using LoadFile to load these
+ libraries.</p></li></ol></div></li></ul></div></li><li><p>Edit the main Apache httpd config file (usually
+ <code class="literal">httpd.conf</code>)</p><p>On UNIX (and Windows if you did not copy the DLLs as stated
+ above) you must load libxml2 and lua5.1 before ModSecurity with
+ something like this:</p><p><pre class="programlisting">LoadFile /usr/lib/libxml2.so
+LoadFile /usr/lib/liblua5.1.so</pre></p><p>Load the ModSecurity module with:<pre class="programlisting">LoadModule security2_module modules/mod_security2.so</pre></p></li><li><p>Configure ModSecurity</p></li><li><p>Start Apache httpd</p></li><li><p>You should now have ModSecurity 2.x up and running.</p></li></ol></div><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>If you have compiled Apache yourself you might experience problems
+ compiling ModSecurity against PCRE. This is because Apache bundles PCRE
+ but this library is also typically provided by the operating system. I
+ would expect most (all) vendor-packaged Apache distributions to be
+ configured to use an external PCRE library (so this should not be a
+ problem).</p><p>You want to avoid Apache using the bundled PCRE library and
+ ModSecurity linking against the one provided by the operating system.
+ The easiest way to do this is to compile Apache against the PCRE library
+ provided by the operating system (or you can compile it against the
+ latest PCRE version you downloaded from the main PCRE distribution
+ site). You can do this at configure time using the<code class="literal"> --with-pcre</code> switch. If you are not in a
+ position to recompile Apache, then, to compile ModSecurity successfully,
+ you'd still need to have access to the bundled PCRE headers (they are
+ available only in the Apache source code) and change the include path
+ for ModSecurity (as you did in step 7 above) to point to them (via the
+ <code class="literal">--with-pcre</code> ModSecurity configure option).</p><p>Do note that if your Apache is using an external PCRE library you
+ can compile ModSecurity with <code class="literal">WITH_PCRE_STUDY</code> defined,which would possibly
+ give you a slight performance edge in regular expression
+ processing.</p><p>Non-gcc compilers may have problems running out-of-the-box as the
+ current build system was designed around the gcc compiler and some
+ compiler/linker flags may differ. To use a non-gcc compiler you may need
+ some manual Makefile tweaks if issues cannot be solved by exporting
+ custom CFLAGS and CPPFLAGS environment variables.</p><p>If you are upgrading from ModSecurity 1.x, please refer to the
+ migration matrix at <a href="http://www.modsecurity.org/documentation/ModSecurity-Migration-Matrix.pdf" target="_top">http://www.modsecurity.org/documentation/ModSecurity-Migration-Matrix.pdf</a></p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="configuration-directives"></a>Configuration Directives</h2></div></div><div></div></div><p>The following section outlines all of the ModSecurity directives.
+ Most of the ModSecurity directives can be used inside the various Apache
+ Scope Directives such as <code class="literal">VirtualHost</code>,
+ <code class="literal">Location</code>, <code class="literal">LocationMatch</code>,
+ <code class="literal">Directory</code>, etc... There are others, however, that can
+ only be used once in the main configuration file. This information is
+ specified in the Scope sections below. The first version to use a given
+ directive is given in the Version sections below.</p><p>These rules, along with the Core rules files, should be contained is
+ files outside of the httpd.conf file and called up with Apache "Include"
+ directives. This allows for easier updating/migration of the rules. If you
+ create your own custom rules that you would like to use with the Core
+ rules, you should create a file called -
+ <code class="filename">modsecurity_crs_15_customrules.conf</code> and place it in
+ the same directory as the Core rules files. By using this file name, your
+ custom rules will be called up after the standard ModSecurity Core rules
+ configuration file but before the other Core rules. This allows your rules
+ to be evaluated first which can be useful if you need to implement
+ specific "allow" rules or to correct any false positives in the Core rules
+ as they are applied to your site.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>It is highly encouraged that you do not edit the Core rules files
+ themselves but rather place all changes (such as
+ <code class="literal">SecRuleRemoveByID</code>, etc...) in your custom rules file.
+ This will allow for easier upgrading as newer Core rules are released by
+ Breach Security on the ModSecurity website.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N101B0"></a><code class="literal">SecAction</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Unconditionally processes the
+ action list it receives as the first and only parameter. It accepts one
+ parameter, the syntax of which is identical to the third parameter
+ of<code class="literal"> SecRule</code>.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecAction
+ action1,action2,action3</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecAction
+ nolog,phase:1,initcol:RESOURCE=%{REQUEST_FILENAME}</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> Any</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> None</p><p>SecAction is best used when you unconditionally execute an action.
+ This is explicit triggering whereas the normal Actions are conditional
+ based on data inspection of the request/response. This is a useful
+ directive when you want to run certain actions such as
+ <code class="literal">initcol</code> to initialize collections.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N101E1"></a><code class="literal">SecArgumentSeparator</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Specifies which character to use
+ as separator for<code class="literal">
+ application/x-www-form-urlencoded</code> content. Defaults to
+ <code class="literal">&</code>. Applications are sometimes
+ (very rarely) written to use a semicolon (<code class="literal">;</code>).</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecArgumentSeparator character</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecArgumentSeparator ;</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> Any</p><p><span class="emphasis"><em>Scope:</em></span> Main</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> None</p><p>This directive is needed if a backend web application is using a
+ non-standard argument separator. If this directive is not set properly
+ for each web application, then ModSecurity will not be able to parse the
+ arguments appropriately and the effectiveness of the rule matching will
+ be significantly decreased.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10216"></a><code class="literal">SecAuditEngine</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configures the audit logging
+ engine.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecAuditEngine On|Off|RelevantOnly</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecAuditEngine On</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> Can be set/changed with
+ the "<code class="literal">ctl</code>" action for the current transaction.</p><p>Example: The following example shows the various audit directives
+ used together.</p><pre class="programlisting"><span class="emphasis"><em>SecAuditEngine RelevantOnly</em></span>
+SecAuditLog logs/audit/audit.log
+SecAuditLogParts ABCFHZ
+SecAuditLogType concurrent
+SecAuditLogStorageDir logs/audit
+<span class="emphasis"><em>SecAuditLogRelevantStatus ^(?:5|4\d[^4])</em></span></pre><p>Possible values are:</p><div class="itemizedlist"><ul type="disc"><li><p><code class="literal">On</code> - log all transactions
+ by default.</p></li><li><p><code class="literal">Off</code> - do not log
+ transactions by default.</p></li><li><p><code class="literal">RelevantOnly</code> - by default
+ only log transactions that have triggered a warning or an error, or
+ have a status code that is considered to be relevant (see<code class="literal"> SecAuditLogRelevantStatus</code>).</p></li></ul></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10263"></a><code class="literal">SecAuditLog</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Defines the path to the main
+ audit log file.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecAuditLog
+ /path/to/auditlog</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecAuditLog
+ /usr/local/apache/logs/audit.log</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> This file is open on
+ startup when the server typically still runs as<span class="emphasis"><em>
+ root</em></span>. You should not allow non-root users to have write
+ privileges for this file or for the directory it is stored in..</p><p>This file will be used to store the audit log entries if serial
+ audit logging format is used. If concurrent audit logging format is used
+ this file will be used as an index, and contain a record of all audit
+ log files created. If you are planning to use Concurrent audit logging
+ and sending your audit log data off to a remote Console host or
+ commercial ModSecurity Management Appliance, then you will need to
+ configure and use the ModSecurity Log Collector (mlogc) and use the
+ following format for the audit log:</p><p><pre class="programlisting">SecAuditLog "|/path/to/mlogc /path/to/mlogc.conf"</pre></p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10293"></a><code class="literal">SecAuditLog2</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Defines the path to the
+ secondary audit log index file when concurrent logging is enabled. See
+ <code class="literal">SecAuditLog2</code> for more details.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecAuditLog2
+ /path/to/auditlog2</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecAuditLog2
+ /usr/local/apache/logs/audit2.log</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.1.2</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> A main audit log must be
+ defined via <code class="literal">SecAuditLog</code> before this
+ directive may be used. Additionally, this log is only used for
+ replicating the main audit log index file when concurrent audit logging
+ is used. It will <span class="emphasis"><em>not</em></span> be used for non-concurrent
+ audit logging.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N102C5"></a><code class="literal">SecAuditLogDirMode</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configures the mode
+ (permissions) of any directories created for concurrent audit logs using
+ an octal mode (as used in chmod). See <code class="literal">SecAuditLogFileMode</code> for controlling the mode
+ of audit log files.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecAuditLogDirMode octal_mode|"default"</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecAuditLogDirMode 02750</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.5.10</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> This feature is not
+ available on operating systems not supporting octal file modes. The
+ default mode (0600) only grants read/write access to the account writing
+ the file. If access from another account is needed (using mpm-itk is a
+ good example), then this directive may be required. However, use this
+ directive with caution to avoid exposing potentially sensitive data to
+ unauthorized users. Using the value "default" will revert back to the
+ default setting.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>The process umask may still limit the mode if it is being more
+ restrictive than the mode set using this directive.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N102F3"></a><code class="literal">SecAuditLogFileMode</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configures the mode
+ (permissions) of any files created for concurrent audit logs using an
+ octal mode (as used in chmod). See <code class="literal">SecAuditLogDirMode</code> for controlling the mode of
+ created audit log directories.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecAuditLogFileMode
+ octal_mode|"default"</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecAuditLogFileMode 00640</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.5.10</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> This feature is not
+ available on operating systems not supporting octal file modes. The
+ default mode (0600) only grants read/write access to the account writing
+ the file. If access from another account is needed (using mpm-itk is a
+ good example), then this directive may be required. However, use this
+ directive with caution to avoid exposing potentially sensitive data to
+ unauthorized users. Using the value "default" will revert back to the
+ default setting.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>The process umask may still limit the mode if it is being more
+ restrictive than the mode set using this directive.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10321"></a><code class="literal">SecAuditLogParts</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Defines which part of each
+ transaction are going to be recorded in audit log. Each part is assigned
+ a single letter. If a letter appears in the list then the equivalent
+ part of each transactions will be recorded. See below for the list of
+ all parts.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecAuditLogParts PARTS</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecAuditLogParts ABCFHZ</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> At this time ModSecurity
+ does not log response bodies of stock Apache responses (e.g. <code class="literal">404</code>), or the <code class="literal">Server</code> and <code class="literal">Date</code> response headers.</p><p>Default:<code class="literal"> ABCFHZ</code>.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Please refer to the ModSecurity Data Formats document for a
+ detailed description of every available part.</p></div><p>Available audit log parts:</p><div class="itemizedlist"><ul type="disc"><li><p><code class="literal">A</code> - audit log header
+ (mandatory)</p></li><li><p><code class="literal">B</code> - request headers</p></li><li><p><code class="literal">C</code> - request body (present
+ only if the request body exists and ModSecurity is configured to
+ intercept it)</p></li><li><p><code class="literal">D</code> - RESERVED for
+ intermediary response headers, not implemented yet.</p></li><li><p><code class="literal">E</code> - intermediary response
+ body (present only if ModSecurity is configured to intercept
+ response bodies, and if the audit log engine is configured to record
+ it). Intermediary response body is the same as the actual response
+ body unless ModSecurity intercepts the intermediary response body,
+ in which case the actual response body will contain the error
+ message (either the Apache default error message, or the
+ ErrorDocument page).</p></li><li><p><code class="literal">F</code> - final response headers
+ (excluding the Date and Server headers, which are always added by
+ Apache in the late stage of content delivery).</p></li><li><p><code class="literal">G</code> - RESERVED for the actual
+ response body, not implemented yet.</p></li><li><p><code class="literal">H</code> - audit log
+ trailer</p></li><li><p><code class="literal">I</code> - This part is a
+ replacement for part C. It will log the same data as C in all cases
+ except when <code class="literal">multipart/form-data</code>
+ encoding in used. In this case it will log a fake <code class="literal">application/x-www-form-urlencoded</code> body
+ that contains the information about parameters but not about the
+ files. This is handy if you don't want to have (often large) files
+ stored in your audit logs.</p></li><li><p><code class="literal">J</code> - RESERVED. This part,
+ when implemented, will contain information about the files uploaded
+ using <code class="literal">multipart/form-data</code> encoding.</p></li><li><p><code class="literal">K</code> - This part contains a
+ full list of every rule that matched (one per line) in the order
+ they were matched. The rules are fully qualified and will thus show
+ inherited actions and default operators. Supported as of
+ v2.5.0</p></li><li><p><code class="literal">Z</code> - final boundary,
+ signifies the end of the entry (mandatory)</p></li></ul></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N103B4"></a><code class="literal">SecAuditLogRelevantStatus</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configures which response status
+ code is to be considered relevant for the purpose of audit
+ logging.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecAuditLogRelevantStatus REGEX</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecAuditLogRelevantStatus
+ ^(?:5|4\d[^4])</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> Must have the
+ <code class="literal">SecAuditEngine</code> set to
+ <code class="literal">RelevantOnly</code>. The parameter is a regular
+ expression.</p><p>The main purpose of this directive is to allow you to configure
+ audit logging for only transactions that generate the specified HTTP
+ Response Status Code. This directive is often used to the decrease the
+ total size of the audit log file. Keep in mind that if this parameter is
+ used, then successful attacks that result in a 200 OK status code will
+ not be logged.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N103E5"></a><code class="literal">SecAuditLogStorageDir</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configures the storage directory
+ where concurrent audit log entries are to be stored.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecAuditLogStorageDir
+ /path/to/storage/dir</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecAuditLogStorageDir
+ /usr/local/apache/logs/audit</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> SecAuditLogType must be
+ set to Concurrent. The directory must already be created before starting
+ Apache and it must be writable by the web server user as new files are
+ generated at runtime.</p><p>As with all logging mechanisms, ensure that you specify a file
+ system location that has adequate disk space and is not on the root
+ partition.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1040E"></a><code class="literal">SecAuditLogType</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configures the type of audit
+ logging mechanism to be used.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecAuditLogType Serial|Concurrent</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecAuditLogType Serial</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> Must specify
+ <code class="literal">SecAuditLogStorageDir</code> if you use concurrent
+ logging.</p><p>Possible values are:</p><div class="orderedlist"><ol type="1"><li><p><code class="literal">Serial</code> - all audit log
+ entries will be stored in the main audit logging file. This is more
+ convenient for casual use but it is slower as only one audit log
+ entry can be written to the file at any one file.</p></li><li><p><code class="literal">Concurrent</code> - audit log
+ entries will be stored in separate files, one for each transaction.
+ Concurrent logging is the mode to use if you are going to send the
+ audit log data off to a remote ModSecurity Console host.</p></li></ol></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1044A"></a><code class="literal">SecCacheTransformations</code>
+ (Deprecated/Experimental)</h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Controls caching of
+ transformations. Caching is off by default starting with 2.5.6, when it
+ was deprecated and downgraded back to experimental.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecCacheTransformations On|Off
+ [options]</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecCacheTransformations On
+ "minlen:64,maxlen:0"</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.5.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> N/A</p><p>First parameter:</p><div class="itemizedlist"><ul type="disc"><li><p><code class="literal">On</code> - cache transformations
+ (per transaction, per phase) allowing identical transformations to
+ be performed only once. (default)</p></li><li><p><code class="literal">Off</code> - do not cache any
+ transformations, forcing all transformations to be performed for
+ each rule executed.</p></li></ul></div><p>The following options are allowed (comma separated):</p><div class="itemizedlist"><ul type="disc"><li><p><code class="literal">incremental:on|off</code> -
+ enabling this option will cache every transformation instead of just
+ the final transformation. (default: off)</p></li><li><p><code class="literal">maxitems:N</code> - do not allow
+ more than N transformations to be cached. The cache will then be
+ disabled. A zero value is interpreted as "unlimited". This option
+ may be useful to limit caching for a form with a large number of
+ ARGS. (default: 512)</p></li><li><p><code class="literal">minlen:N</code> - do not cache the
+ transformation if the value's length is less than N bytes. (default:
+ 32)</p></li><li><p><code class="literal">maxlen:N</code> - do not cache the
+ transformation if the value's length is more than N bytes. A zero
+ value is interpreted as "unlimited". (default: 1024)</p></li></ul></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1049C"></a><code class="literal">SecChrootDir</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configures the directory path
+ that will be used to jail the web server process.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecChrootDir
+ /path/to/chroot/dir</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecChrootDir /chroot</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Main</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> This feature is not
+ available on Windows builds. The internal chroot functionality provided
+ by ModSecurity works great for simple setups. One example of a simple
+ setup is Apache serving static files only, or running scripts using
+ modules.builds. Some problems you might encounter with more complex
+ setups:</p><div class="orderedlist"><ol type="1"><li><p>DNS lookups do not work (this is because this feature requires
+ a shared library that is loaded on demand, after chroot takes
+ place).</p></li><li><p>You cannot send email from PHP because it uses sendmail and
+ sendmail is outside the jail.</p></li><li><p>In some cases Apache graceful (reload) no longer works.</p></li></ol></div><p>You should be aware that the internal chroot feature might not be
+ 100% reliable. Due to the large number of default and third-party
+ modules available for the Apache web server, it is not possible to
+ verify the internal chroot works reliably with all of them. A module,
+ working from within Apache, can do things that make it easy to break out
+ of the jail. In particular, if you are using any of the modules that
+ fork in the module initialisation phase (e.g.
+ <code class="literal">mod_fastcgi</code>, <code class="literal">mod_fcgid</code>,
+ <code class="literal">mod_cgid</code>), you are advised to examine each Apache
+ process and observe its current working directory, process root, and the
+ list of open files. Consider what your options are and make your own
+ decision.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N104DD"></a><code class="literal">SecComponentSignature</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description</em></span>: Appends component signature to
+ the ModSecurity signature.</p><p><span class="emphasis"><em>Syntax</em></span>: <code class="literal">SecComponentSignature
+ "COMPONENT_NAME/X.Y.Z (COMMENT)"</code></p><p><span class="emphasis"><em>Example usage</em></span>: <code class="literal">SecComponentSignature
+ "Core Rules/1.2.3"</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope</em></span>: Main</p><p><span class="emphasis"><em>Version</em></span>: 2.5.0</p><p><span class="emphasis"><em>Dependencies/Notes</em></span>: This directive should be
+ used to make the presence of significant ModSecurity components known.
+ The entire signature will be recorded in transaction audit log. It
+ should be used by ModSecurity module and rule set writers to make
+ debugging easier.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10504"></a><code class="literal">SecContentInjection</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Enables content injection using
+ actions <code class="literal">append</code> and <code class="literal">prepend</code>.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecContentInjection
+ (On|Off)</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecContentInjection
+ On</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope</em></span>: Any</p><p><span class="emphasis"><em>Version</em></span>: 2.5.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> N/A</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10533"></a><code class="literal">SecCookieFormat</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Selects the cookie format that
+ will be used in the current configuration context.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecCookieFormat 0|1</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecCookieFormat 0</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> None</p><p>Possible values are:</p><div class="itemizedlist"><ul type="disc"><li><p><code class="literal">0</code> - use version 0
+ (Netscape) cookies. This is what most applications use. It is the
+ default value.</p></li><li><p><code class="literal">1</code> - use version 1
+ cookies.</p></li></ul></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10569"></a><code class="literal">SecDataDir</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Path where persistent data (e.g.
+ IP address data, session data, etc) is to be stored.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecDataDir
+ /path/to/dir</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecDataDir /usr/local/apache/logs/data</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Main</p><p><span class="emphasis"><em>Dependencies/Notes: </em></span> This directive is needed
+ when initcol, setsid an setuid are used. Must be writable by the web
+ server user.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1058C"></a><code class="literal">SecDebugLog</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Path to the ModSecurity debug
+ log file.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecDebugLog
+ /path/to/modsec-debug.log</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecDebugLog
+ /usr/local/apache/logs/modsec-debug.log</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> None</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N105B3"></a><code class="literal">SecDebugLogLevel</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configures the verboseness of
+ the debug log data.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecDebugLogLevel 0|1|2|3|4|5|6|7|8|9</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecDebugLogLevel 4</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> Levels <code class="literal">1 - 3</code> are always sent to the Apache error log.
+ Therefore you can always use level <code class="literal">0</code>
+ as the default logging level in production. Level <code class="literal">5</code> is useful when debugging. It is not
+ advisable to use higher logging levels in production as excessive
+ logging can slow down server significantly.</p><p>Possible values are:</p><div class="itemizedlist"><ul type="disc"><li><p><code class="literal">0</code> - no logging.</p></li><li><p><code class="literal">1</code> - errors (intercepted
+ requests) only.</p></li><li><p><code class="literal">2</code> - warnings.</p></li><li><p><code class="literal">3</code> - notices.</p></li><li><p><code class="literal">4</code> - details of how
+ transactions are handled.</p></li><li><p><code class="literal">5</code> - as above, but including
+ information about each piece of information handled.</p></li><li><p><code class="literal">9</code> - log everything,
+ including very detailed debugging information.</p></li></ul></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10613"></a><code class="literal">SecDefaultAction</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Defines the default action to
+ take on a rule match.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecDefaultAction
+ action1,action2,action3</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecDefaultAction
+ log,auditlog,deny,status:403,phase:2</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> Any</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> Rules following a
+ <code class="literal">SecDefaultAction</code> directive will inherit this setting
+ unless a specific action is specified for an individual rule or until
+ another <code class="literal">SecDefaultAction</code> is specified. Take special
+ note that in the logging disruptive actions are not allowed, but this
+ can inadvertently be inherited using a disruptive action in
+ <code class="literal">SecDefaultAction</code>.</p><p>The default value is minimal (differing from previous
+ versions):</p><pre class="programlisting">SecDefaultAction phase:2,log,auditlog,pass</pre><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p><code class="literal">SecDefaultAction</code> must specify a disruptive
+ action and a processing phase and cannot contain metadata
+ actions.</p></div><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">SecDefaultAction</code> is <span class="emphasis"><em>not</em></span>
+ inherited across configuration contexts. (For an example of why this
+ may be a problem for you, read the following ModSecurity Blog entry
+ <a href="http://blog.modsecurity.org/2008/07/modsecurity-tri.html" target="_top">http://blog.modsecurity.org/2008/07/modsecurity-tri.html</a>).</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1065E"></a><code class="literal">SecGeoLookupDb</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Defines the path to the
+ geographical database file.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecGeoLookupDb /path/to/db</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecGeoLookupDb
+ /usr/local/geo/data/GeoLiteCity.dat</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.5.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> Check out
+ <code class="literal">maxmind.com</code> for free database files.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10689"></a><code class="literal">SecGuardianLog</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configuration directive to use
+ the httpd-guardian script to monitor for Denial of Service (DoS)
+ attacks.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecGuardianLog |/path/to/httpd-guardian</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecGuardianLog
+ |/usr/local/apache/bin/httpd-guardian</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Main</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> By default httpd-guardian
+ will defend against clients that send more than 120 requests in a
+ minute, or more than 360 requests in five minutes.</p><p>Since 1.9, ModSecurity supports a new directive, SecGuardianLog,
+ that is designed to send all access data to another program using the
+ piped logging feature. Since Apache is typically deployed in a
+ multi-process fashion, making information sharing difficult, the idea is
+ to deploy a single external process to observe all requests in a
+ stateful manner, providing additional protection.</p><p>Development of a state of the art external protection tool will be
+ a focus of subsequent ModSecurity releases. However, a fully functional
+ tool is already available as part of the <a href="http://www.apachesecurity.net/tools/" target="_top">Apache httpd tools
+ project</a>. The tool is called httpd-guardian and can be used to
+ defend against Denial of Service attacks. It uses the blacklist tool
+ (from the same project) to interact with an iptables-based (Linux) or
+ pf-based (*BSD) firewall, dynamically blacklisting the offending IP
+ addresses. It can also interact with SnortSam (http://www.snortsam.net).
+ Assuming httpd-guardian is already configured (look into the source code
+ for the detailed instructions) you only need to add one line to your
+ Apache configuration to deploy it:</p><pre class="programlisting">SecGuardianLog |/path/to/httpd-guardian</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N106BC"></a><code class="literal">SecMarker</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Adds a fixed rule marker in the
+ ruleset to be used as a target in a <code class="literal">skipAfter</code> action.
+ A <code class="literal">SecMarker</code> directive essentially creates a rule that
+ does nothing and whose only purpose it to carry the given ID.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecMarker
+ ID</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecMarker 9999</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> Any</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.5.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> None</p><p><pre class="programlisting">SecRule REQUEST_URI "^/$" \
+ "chain,t:none,t:urlDecode,t:lowercase,t:normalisePath,<span class="emphasis"><em>skipAfter:99</em></span>"
+SecRule REMOTE_ADDR "^127\.0\.0\.1$" "chain"
+SecRule REQUEST_HEADERS:User-Agent \
+ "^Apache \(internal dummy connection\)$" "t:none"
+SecRule &REQUEST_HEADERS:Host "@eq 0" \
+ "deny,log,status:400,id:08,severity:4,msg:'Missing a Host Header'"
+SecRule &REQUEST_HEADERS:Accept "@eq 0" \
+ "log,deny,log,status:400,id:15,msg:'Request Missing an Accept Header'"
+<span class="emphasis"><em>
+SecMarker 99</em></span></pre></p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N106F4"></a><code class="literal">SecPdfProtect</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Enables the PDF XSS protection
+ functionality. Once enabled access to PDF files is tracked. Direct
+ access attempts are redirected to links that contain one-time tokens.
+ Requests with valid tokens are allowed through unmodified. Requests with
+ invalid tokens are also allowed through but with forced download of the
+ PDF files. This implementation uses response headers to detect PDF files
+ and thus can be used with dynamically generated PDF files that do not
+ have the <code class="filename">.pdf</code> extension in the request URI.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecPdfProtect On|Off</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecPdfProtect On</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.5.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> None</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1071F"></a><code class="literal">SecPdfProtectMethod</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configure desired protection
+ method to be used when requests for PDF files are detected. Possible
+ values are <code class="literal">TokenRedirection</code> and
+ <code class="literal">ForcedDownload</code>. The token redirection approach will
+ attempt to redirect with tokens where possible. This allows PDF files to
+ continue to be opened inline but only works for GET requests. Forced
+ download always causes PDF files to be delivered as opaque binaries and
+ attachments. The latter will always be used for non-GET requests. Forced
+ download is considered to be more secure but may cause usability
+ problems for users ("This PDF won't open anymore!").</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecPdfProtectMethod method</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecPdfProtectMethod TokenRedirection</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.5.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> None</p><p><span class="emphasis"><em>Default:</em></span>
+ <code class="literal">TokenRedirection</code></p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10755"></a><code class="literal">SecPdfProtectSecret</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Defines the secret that will be
+ used to construct one-time tokens. You should use a reasonably long
+ value for the secret (e.g. 16 characters is good). Once selected the
+ secret should not be changed as it will break the tokens that were sent
+ prior to change. But it's not a big deal even if you change it. It will
+ just force download of PDF files with tokens that were issued in the
+ last few seconds.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecPdfProtectSecret secret</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecPdfProtectSecret
+ MyRandomSecretString</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.5.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> None</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1077C"></a><code class="literal">SecPdfProtectTimeout</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Defines the token timeout. After
+ token expires it can no longer be used to allow access to PDF file.
+ Request will be allowed through but the PDF will be delivered as
+ attachment.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecPdfProtectTimeout timeout</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecPdfProtectTimeout 10</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.5.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> None</p><p><span class="emphasis"><em>Default:</em></span> <code class="literal">10</code></p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N107AA"></a><code class="literal">SecPdfProtectTokenName</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Defines the name of the token.
+ The only reason you would want to change the name of the token is if you
+ wanted to hide the fact you are running ModSecurity. It's a good reason
+ but it won't really help as the adversary can look into the algorithm
+ used for PDF protection and figure it out anyway. It does raise the bar
+ slightly so go ahead if you want to.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecPdfProtectTokenName name</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecPdfProtectTokenName PDFTOKEN</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.5.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> None</p><p><span class="emphasis"><em>Default:</em></span> <code class="literal">PDFTOKEN</code></p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N107D8"></a><code class="literal">SecRequestBodyAccess</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configures whether request
+ bodies will be buffered and processed by ModSecurity by default.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecRequestBodyAccess On|Off</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecRequestBodyAccess On</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> This directive is
+ required if you plan to inspect <code class="literal">POST_PAYLOAD</code>. This
+ directive must be used along with the "phase:2" processing phase action
+ and <code class="literal">REQUEST_BODY</code> variable/location. If any of these 3
+ parts are not configured, you will not be able to inspect the request
+ bodies.</p><p>Possible values are:</p><div class="itemizedlist"><ul type="disc"><li><p><code class="literal">On</code> - access request
+ bodies.</p></li><li><p><code class="literal">Off</code> - do not attempt to
+ access request bodies.</p></li></ul></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10816"></a><code class="literal">SecRequestBodyLimit</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configures the maximum request
+ body size ModSecurity will accept for buffering.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecRequestBodyLimit NUMBER_IN_BYTES</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecRequestBodyLimit 134217728</code></p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> 131072 KB (134217728
+ bytes) is the default setting. Anything over this limit will be rejected
+ with status code 413 Request Entity Too Large. There is a hard limit of
+ 1 GB.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10839"></a><code class="literal">SecRequestBodyNoFilesLimit</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configures the maximum request
+ body size ModSecurity will accept for buffering, excluding the size of
+ files being transported in the request. This directive comes handy to
+ further reduce susceptibility to DoS attacks when someone is sending
+ request bodies of very large sizes. Web applications that require file
+ uploads must configure <code class="literal">SecRequestBodyLimit</code> to a high
+ value. Since large files are streamed to disk file uploads will not
+ increase memory consumption. However, it's still possible for someone to
+ take advantage of a large request body limit and send non-upload
+ requests with large body sizes. This directive eliminates that
+ loophole.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecRequestBodyNoFilesLimit
+ NUMBER_IN_BYTES</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecRequestBodyLimit 131072</code></p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.5.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> 1 MB (1048576 bytes) is
+ the default setting. This value is very conservative. For most
+ applications you should be able to reduce it down to 128 KB or lower.
+ Anything over the limit will be rejected with status code <code class="literal">413
+ Request Entity Too Large</code>. There is a hard limit of 1
+ GB.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10864"></a><code class="literal">SecRequestBodyInMemoryLimit</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configures the maximum request
+ body size ModSecurity will store in memory.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecRequestBodyInMemoryLimit
+ NUMBER_IN_BYTES</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecRequestBodyInMemoryLimit 131072</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> None</p><p>By default the limit is 128 KB:</p><pre class="programlisting"># Store up to 128 KB in memory
+SecRequestBodyInMemoryLimit 131072</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10890"></a><code class="literal">SecResponseBodyLimit</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configures the maximum response
+ body size that will be accepted for buffering.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecResponseBodyLimit NUMBER_IN_BYTES</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecResponseBodyLimit 524228</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> Anything over this limit
+ will be rejected with status code 500 Internal Server Error. This
+ setting will not affect the responses with MIME types that are not
+ marked for buffering. There is a hard limit of 1 GB.</p><p>By default this limit is configured to 512 KB:</p><pre class="programlisting"># Buffer response bodies of up to 512 KB in length
+SecResponseBodyLimit 524288</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N108BC"></a><code class="literal">SecResponseBodyLimitAction</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description</em></span>: Controls what happens once a
+ response body limit, configured with
+ <code class="literal">SecResponseBodyLimit</code>, is encountered. By default
+ ModSecurity will reject a response body that is longer than specified.
+ Some web sites, however, will produce very long responses making it
+ difficult to come up with a reasonable limit. Such sites would have to
+ raise the limit significantly to function properly defying the purpose
+ of having the limit in the first place (to control memory consumption).
+ With the ability to choose what happens once a limit is reached site
+ administrators can choose to inspect only the first part of the
+ response, the part that can fit into the desired limit, and let the rest
+ through. Some could argue that allowing parts of responses to go
+ uninspected is a weakness. This is true in theory but only applies to
+ cases where the attacker controls the output (e.g. can make it arbitrary
+ long). In such cases, however, it is not possible to prevent leakage
+ anyway. The attacker could compress, obfuscate, or even encrypt data
+ before it is sent back, and therefore bypass any monitoring
+ device.</p><p><span class="emphasis"><em>Syntax</em></span>: <code class="literal">SecResponseBodyLimitAction
+ Reject|ProcessPartial</code></p><p><span class="emphasis"><em>Example Usage</em></span>:
+ <code class="literal">SecResponseBodyLimitAction ProcessPartial</code></p><p><span class="emphasis"><em>Processing Phase</em></span>: N/A</p><p><span class="emphasis"><em>Scope</em></span>: Any</p><p><span class="emphasis"><em>Version:</em></span> 2.5.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> None</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N108E7"></a><code class="literal">SecResponseBodyMimeType</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configures which<code class="literal"> MIME</code> types are to be considered for response
+ body buffering.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecResponseBodyMimeType mime/type</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecResponseBodyMimeType text/plain
+ text/html</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> Multiple<code class="literal"> SecResponseBodyMimeType</code> directives can be
+ used to add<code class="literal"> MIME</code> types.</p><p>The default value is <code class="literal">text/plaintext/html</code>:</p><pre class="programlisting">SecResponseBodyMimeType text/plain text/html</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10923"></a><code class="literal">SecResponseBodyMimeTypesClear</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Clears the list of <code class="literal">MIME</code> types considered for response body
+ buffering, allowing you to start populating the list from
+ scratch.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecResponseBodyMimeTypesClear</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecResponseBodyMimeTypesClear</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> None</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1094E"></a><code class="literal">SecResponseBodyAccess</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configures whether response
+ bodies are to be buffer and analysed or not.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecResponseBodyAccess On|Off</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecResponseBodyAccess On</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> This directive is
+ required if you plan to inspect HTML responses. This directive must be
+ used along with the "phase:4" processing phase action and RESPONSE_BODY
+ variable/location. If any of these 3 parts are not configured, you will
+ not be able to inspect the response bodies.</p><p>Possible values are:</p><div class="itemizedlist"><ul type="disc"><li><p><code class="literal">On</code> - access response bodies
+ (but only if the MIME type matches, see above).</p></li><li><p><code class="literal">Off</code> - do not attempt to
+ access response bodies.</p></li></ul></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10984"></a><code class="literal">SecRule</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> <code class="literal">SecRule</code> is the main ModSecurity directive. It
+ is used to analyse data and perform actions based on the results.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecRule
+ VARIABLES OPERATOR [ACTIONS]</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecRule REQUEST_URI "attack" \</code></p><p><code class="literal">
+ "phase:1,t:none,t:urlDecode,t:lowercase,t:normalisePath"</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> Any</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> None</p><p>In general, the format of this rule is as follows:</p><pre class="programlisting">SecRule VARIABLES OPERATOR [ACTIONS]</pre><p>The second part, <code class="literal">OPERATOR</code>,
+ specifies how they are going to be checked. The third (optional) part,
+ <code class="literal">ACTIONS</code>, specifies what to do
+ whenever the operator used performs a successful match against a
+ variable.</p><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="N109C2"></a>Variables in rules</h4></div></div><div></div></div><p>The first part,<code class="literal"> VARIABLES</code>,
+ specifies which variables are to be checked. For example, the
+ following rule will reject a transaction that has the word<span class="emphasis"><em>
+ dirty</em></span> in the URI:</p><pre class="programlisting">SecRule ARGS dirty</pre><p>Each rule can specify one or more variables:</p><pre class="programlisting">SecRule ARGS|REQUEST_HEADERS:User-Agent dirty</pre><p>There is a third format supported by the selection operator -
+ XPath expression. XPath expressions can only used against the special
+ variable XML, which is available only of the request body was
+ processed as XML.</p><pre class="programlisting">SecRule XML:/xPath/Expression dirty</pre><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Not all collections support all selection operator format
+ types. You should refer to the documentation of each collection to
+ determine what is and isn't supported.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="N109DE"></a>Collections</h4></div></div><div></div></div><p>A variable can contain one or many pieces of data, depending on
+ the nature of the variable and the way it is used. We've seen examples
+ of both approaches in the previous section. When a variable can
+ contain more than one value we refer to it as a
+ <span class="emphasis"><em>collection</em></span>.</p><p>Collections are always expanded before a rule is run. For
+ example, the following rule:</p><pre class="programlisting">SecRule ARGS dirty</pre><p>will be expanded to:</p><pre class="programlisting">SecRule ARGS:p dirty
+SecRule ARGS:q dirty</pre><p>in a requests that has only two parameters, named
+ <code class="literal">p</code> and <code class="literal">q</code>.</p><p>Collections come in several flavours:</p><div class="variablelist"><dl><dt><span class="term">Read-only</span></dt><dd><p>Created at runtime using transaction data. For example:
+ <code class="literal">ARGS</code> (contains a list of all request
+ parameter values) and <code class="literal">REQUEST_HEADERS</code>
+ (contains a list of all request header values).</p></dd><dt><span class="term">Transient Read/Write</span></dt><dd><p>The <code class="literal">TX</code> collection is created (empty)
+ for every transaction. Rules can read from it and write to it
+ (using the <code class="literal">setvar</code> action, for example), but
+ the information stored in this collection will not survive the
+ end of transaction.</p></dd><dt><span class="term">Persistent Read/Write</span></dt><dd><p>There are several collections that can be written to, but
+ which are persisted to the storage backend. These collections
+ are used to track clients across transactions. Examples of
+ collections that fall into this type are <code class="literal">IP</code>,
+ <code class="literal">SESSION</code> and <code class="literal">USER</code>.</p></dd></dl></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="N10A2B"></a>Operators in rules</h4></div></div><div></div></div><p>In the simplest possible case you will use a regular expression
+ pattern as the second rule parameter. This is what we've done in the
+ examples above. If you do this ModSecurity assumes you want to use the
+ <code class="literal">rx</code> (regular expression) operator.
+ You can also explicitly specify the operator you want to use by using
+ <code class="literal">@</code>, followed by the name of an
+ operator, at the beginning of the second <code class="literal">SecRule</code>
+ parameter:</p><pre class="programlisting">SecRule ARGS "@rx dirty"</pre><p>Note how we had to use double quotes to delimit the second rule
+ parameter. This is because the second parameter now has whitespace in
+ it. Any number of whitespace characters can follow the name of the
+ operator. If there are any non-whitespace characters there, they will
+ all be treated as a special parameter to the operator. In the case of
+ the regular expression operator the special parameter is the pattern
+ that will be used for comparison.</p><p>The @ can be the second character if you are using negation to
+ negate the result returned by the operator:</p><pre class="programlisting">SecRule &ARGS "!@rx ^0$"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="N10A46"></a>Operator negation</h4></div></div><div></div></div><p>Operator results can be negated by using an exclamation mark at
+ the beginning of the second parameter. The following rule matches if
+ the word <code class="literal">dirty</code> does <span class="emphasis"><em>not</em></span> appear
+ in the <code class="literal">User-Agent</code> request header:</p><pre class="programlisting">SecRule REQUEST_HEADERS:User-Agent !dirty</pre><p>You can use the exclamation mark in combination with any
+ parameter. If you do, the exclamation mark needs to go first, followed
+ by the explicit operator reference. The following rule has the same
+ effect as the previous example:</p><pre class="programlisting">SecRule REQUEST_HEADERS:User-Agent "!@rx dirty"</pre><p>If you need to use negation in a rule that is going to be
+ applied to several variables then it may not be immediately clear what
+ will happen. Consider the following example:</p><pre class="programlisting">SecRule ARGS:p|ARGS:q !dirty</pre><p>The above rule is identical to:</p><pre class="programlisting">SecRule ARGS:p !dirty
+SecRule ARGS:q !dirty</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p>Negation is applied to operations against individual
+ operations, not agains the entire variable list.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="N10A6B"></a>Actions in rules</h4></div></div><div></div></div><p>The third parameter, <code class="literal">ACTIONS</code>,
+ can be omitted only because there is a helper feature that specifies
+ the default action list. If the parameter isn't omitted the actions
+ specified in the parameter will be merged with the default action list
+ to create the actual list of actions that will be processed on a rule
+ match.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10A74"></a><code class="literal">SecRuleInheritance</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configures whether the current
+ context will inherit rules from the parent context (configuration
+ options are inherited in most cases - you should look up the
+ documentation for every directive to determine if it is inherited or
+ not).</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecRuleInheritance On|Off</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecRuleInheritance Off</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> Any</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> Resource-specific
+ contexts (e.g.<code class="literal"> Location</code>, <code class="literal">Directory</code>, etc) cannot override
+ <span class="emphasis"><em>phase1</em></span> rules configured in the main server or in
+ the virtual server. This is because phase 1 is run early in the request
+ processing process, before Apache maps request to resource. Virtual host
+ context can override phase 1 rules configured in the main server.</p><p>Example: The following example shows where ModSecurity may be
+ enabled in the main Apache configuration scope, however you might want
+ to configure your VirtualHosts differently. In the first example, the
+ first VirtualHost is not inheriting the ModSecurity main config
+ directives and in the second one it is.</p><pre class="programlisting">SecRuleEngine On
+SecDefaultAction log,pass,phase:2
+...
+
+<VirtualHost *:80>
+ServerName app1.com
+ServerAlias www.app1.com<span class="emphasis"><em>
+SecRuleInheritance Off</em></span>
+SecDefaultAction log,deny,phase:1,redirect:http://www.site2.com
+...
+</VirtualHost>
+
+<VirtualHost *:80>
+ServerName app2.com
+ServerAlias www.app2.com
+<span class="emphasis"><em>SecRuleInheritance On</em></span> SecRule ARGS "attack"
+...
+</VirtualHost></pre><p>Possible values are:</p><div class="itemizedlist"><ul type="disc"><li><p><code class="literal">On</code> - inherit rules from the
+ parent context.</p></li><li><p><code class="literal">Off</code> - do not inherit rules
+ from the parent context.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Configuration contexts are an Apache concept. Directives
+ <code class="literal"><Directory></code>,
+ <code class="literal"><Files></code>,
+ <code class="literal"><Location></code> and
+ <code class="literal"><VirtualHost></code> are all used to create
+ configuration contexts. For more information please go to the
+ Apache documentation section <a href="http://httpd.apache.org/docs/2.0/sections.html" target="_top">Configuration
+ Sections</a>.</p></div></li></ul></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10AD7"></a><code class="literal">SecRuleEngine</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configures the rules
+ engine.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecRuleEngine On|Off|DetectionOnly</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecRuleEngine On</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> Any</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> This directive can also
+ be controlled by the ctl action (ctl:ruleEngine=off) for per rule
+ processing.</p><p>Possible values are:</p><div class="itemizedlist"><ul type="disc"><li><p><code class="literal">On</code> - process rules.</p></li><li><p><code class="literal">Off</code> - do not process
+ rules.</p></li><li><p><code class="literal">DetectionOnly</code> - process
+ rules but never intercept transactions, even when rules are
+ configured to do so.</p></li></ul></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10B13"></a><code class="literal">SecRuleRemoveById</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Removes matching rules from the
+ parent contexts.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecRuleUpdateActionById RULEID
+ ACTIONLIST</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecRuleRemoveByID 1 2 "9000-9010"</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> Any</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> This directive supports
+ multiple parameters, where each parameter can either be a rule ID, or a
+ range. Parameters that contain spaces must be delimited using double
+ quotes.</p><pre class="programlisting">SecRuleRemoveById 1 2 5 10-20 "400-556" 673</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10B3D"></a><code class="literal">SecRuleRemoveByMsg</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Removes matching rules from the
+ parent contexts.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecRuleRemoveByMsg REGEX</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecRuleRemoveByMsg "FAIL"</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> Any</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> This directive supports
+ multiple parameters. Each parameter is a regular expression that will be
+ applied to the message (specified using the <code class="literal">msg</code> action).</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10B68"></a><code class="literal">SecRuleScript</code> (Experimental)</h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> This directive creates a special
+ rule that executes a Lua script to decide whether to match or not. The
+ main difference from <code class="literal">SecRule</code> is that there are no
+ targets nor operators. The script can fetch any variable from the
+ ModSecurity context and use any (Lua) operator to test them. The second
+ optional parameter is the list of actions whose meaning is identical to
+ that of <code class="literal">SecRule</code>.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecRuleScript
+ /path/to/script.lua [ACTIONS]</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecRuleScript "/path/to/file.lua"
+ "block"</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> Any</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.5.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> None</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>All Lua scripts are compiled at configuration time and cached in
+ memory. To reload scripts you must reload the entire ModSecurity
+ configuration by restarting Apache.</p></div><p>Example script:</p><pre class="programlisting">-- Your script must define the <span class="emphasis"><em>main</em></span> entry
+-- point, as below.
+function main()
+ -- Log something at level 1. Normally you shouldn't be
+ -- logging anything, especially not at level 1, but this is
+ -- just to show you can. Useful for debugging.
+ m.log(1, "Hello world!");
+
+ -- Retrieve one variable.
+ local var1 = m.getvar("REMOTE_ADDR");
+
+ -- Retrieve one variable, applying one transformation function.
+ -- The second parameter is a string.
+ local var2 = m.getvar("ARGS", "lowercase");
+
+ -- Retrieve one variable, applying several transformation functions.
+ -- The second parameter is now a list. You should note that m.getvar()
+ -- requires the use of comma to separate collection names from
+ -- variable names. This is because only one variable is returned.
+ local var3 = m.getvar("ARGS.p", { "lowercase", "compressWhitespace" } );
+
+ -- If you want this rule to match return a string
+ -- containing the error message. The message <span class="emphasis"><em>must</em></span> contain the name
+ -- of the variable where the problem is located.
+ -- return "Variable ARGS:p looks suspicious!"
+
+ -- Otherwise, simply return nil.
+ return nil;
+end</pre><p>In this first example we were only retrieving one variable at the
+ time. In this case the name of the variable is known to you. In many
+ cases, however, you will want to examine variables whose names you won't
+ know in advance, for example script parameters.</p><p>Example showing use of <code class="literal">m.getvars()</code> to retrieve
+ many variables at once:</p><pre class="programlisting">function main()
+ -- Retrieve script parameters.
+ local d = m.getvars("ARGS", { "lowercase", "htmlEntityDecode" } );
+
+ -- Loop through the paramters.
+ for i = 1, #d do
+ -- Examine parameter value.
+ if (string.find(d[i].value, "<script")) then
+ -- Always specify the name of the variable where the
+ -- problem is located in the error message.
+ return ("Suspected XSS in variable " .. d[i].name .. ".");
+ end
+ end
+
+ -- Nothing wrong found.
+ return nil;
+end</pre><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Go to <a href="http://www.lua.org/" target="_top">http://www.lua.org/</a> to find more
+ about the Lua programming language. The reference manual too is
+ available online, at <a href="http://www.lua.org/manual/5.1/" target="_top">http://www.lua.org/manual/5.1/</a>.</p></div><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Lua support is marked as <span class="emphasis"><em>experimental</em></span> as
+ the way the progamming interface may continue to evolve while we are
+ working for the best implementation style. Any user input into the
+ programming interface is appreciated.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10BC2"></a><code class="literal">SecRuleUpdateActionById</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Updates the action list of the
+ specified rule.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecRuleRemoveById RULEID ACTIONLIST</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecRuleUpdateActionById 12345
+ deny,status:403</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> Any</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.5.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> This directive merges the
+ specified action list with the rule's action list. There are two
+ limitations. The rule ID cannot be changed, nor can the phase. Further
+ note that actions that may be specified multiple times are appended to
+ the original.</p><pre class="programlisting">SecAction \
+ "t:lowercase,phase:2,id:12345,pass,msg:'The Message',log,auditlog"
+SecRuleUpdateActionById 12345 "t:compressWhitespace,deny,status:403,msg:'A new message'</pre><p>The example above will cause the rule to be executed as if it was
+ specified as follows:</p><pre class="programlisting">SecAction \
+ "t:lowercase,phase:2,id:12345,log,auditlog,t:compressWhitespace,deny,status:403,msg:'A new message'"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10BF1"></a><code class="literal">SecServerSignature</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Instructs ModSecurity to change
+ the data presented in the "Server:" response header token.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecServerSignature "WEB SERVER
+ SOFTWARE"</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecServerSignature
+ "Netscape-Enterprise/6.0"</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Main</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> In order for this
+ directive to work, you must set the Apache ServerTokens directive to
+ Full. ModSecurity will overwrite the server signature data held in this
+ memory space with the data set in this directive. If ServerTokens is not
+ set to Full, then the memory space is most likely not large enough to
+ hold the new data we are looking to insert.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10C18"></a><code class="literal">SecTmpDir</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configures the directory where
+ temporary files will be created.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecTmpDir
+ /path/to/dir</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecTmpDir /tmp</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> Needs to be writable by
+ the Apache user process. This is the directory location where Apache
+ will swap data to disk if it runs out of memory (more data than what was
+ specified in the SecRequestBodyInMemoryLimit directive) during
+ inspection.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10C3F"></a><code class="literal">SecUploadDir</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configures the directory where
+ intercepted files will be stored.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecUploadDir
+ /path/to/dir</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecUploadDir /tmp</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> This directory must be on
+ the same filesystem as the temporary directory defined with <code class="literal">SecTmpDir</code>. This directive is used with
+ <code class="literal">SecUploadKeepFiles</code>.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10C6E"></a><code class="literal">SecUploadFileMode</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configures the mode
+ (permissions) of any uploaded files using an octal mode (as used in
+ chmod).</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecUploadFileMode octal_mode|"default"</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecUploadFileMode 0640</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.1.6</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> This feature is not
+ available on operating systems not supporting octal file modes. The
+ default mode (0600) only grants read/write access to the account writing
+ the file. If access from another account is needed (using clamd is a
+ good example), then this directive may be required. However, use this
+ directive with caution to avoid exposing potentially sensitive data to
+ unauthorized users. Using the value "default" will revert back to the
+ default setting.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>The process umask may still limit the mode if it is being more
+ restrictive than the mode set using this directive.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10C98"></a><code class="literal">SecUploadKeepFiles</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configures whether or not the
+ intercepted files will be kept after transaction is processed.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecUploadKeepFiles On|Off|RelevantOnly</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecUploadKeepFiles On</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> This directive requires
+ the storage directory to be defined (using <code class="literal">SecUploadDir</code>).</p><p>Possible values are:</p><div class="itemizedlist"><ul type="disc"><li><p><code class="literal">On</code> - Keep uploaded
+ files.</p></li><li><p><code class="literal">Off</code> - Do not keep uploaded
+ files.</p></li><li><p><code class="literal">RelevantOnly</code> - This will
+ keep only those files that belong to requests that are deemed
+ relevant.</p></li></ul></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10CD8"></a><code class="literal">SecWebAppId</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Creates a partition on the
+ server that belongs to one web application.</p><p><span class="emphasis"><em>Syntax:</em></span> <code class="literal">SecWebAppId
+ "NAME"</code></p><p><span class="emphasis"><em>Example Usage:</em></span> <code class="literal">SecWebAppId "WebApp1"</code></p><p><span class="emphasis"><em>Processing Phase:</em></span> N/A</p><p><span class="emphasis"><em>Scope:</em></span> Any</p><p><span class="emphasis"><em>Version:</em></span> 2.0.0</p><p><span class="emphasis"><em>Dependencies/Notes:</em></span> Partitions are used to
+ avoid collisions between session IDs and user IDs. This directive must
+ be used if there are multiple applications deployed on the same server.
+ If it isn't used, a collision between session IDs might occur. The
+ default value is<code class="literal"> default</code>.
+ Example:</p><pre class="programlisting"><VirtualHost *:80>
+ServerName app1.com
+ServerAlias www.app1.com
+<span class="emphasis"><em>SecWebAppId "App1"</em></span>
+SecRule REQUEST_COOKIES:PHPSESSID !^$ chain,nolog,pass
+SecAction setsid:%{REQUEST_COOKIES.PHPSESSID}
+...
+</VirtualHost>
+
+<VirtualHost *:80>
+ServerName app2.com
+ServerAlias www.app2.com<span class="emphasis"><em>
+SecWebAppId "App2"</em></span>
+SecRule REQUEST_COOKIES:PHPSESSID !^$ chain,nolog,pass
+SecAction setsid:%{REQUEST_COOKIES.PHPSESSID}
+...
+</VirtualHost></pre><p>In the two examples configurations shown, SecWebAppId is being
+ used in conjunction with the Apache VirtualHost directives. What this
+ achieves is to create more unique collection names when being hosted on
+ one server. Normally, when setsid is used, ModSecurity will create a
+ collection with the name "SESSION" and it will hold the value specified.
+ With using SecWebAppId as shown in the examples, however, the name of
+ the collection would become "App1_SESSION" and "App2_SESSION".</p><p>SecWebAppId is relevant in two cases:</p><div class="orderedlist"><ol type="1"><li><p>You are logging transactions/alerts to the ModSecurity Console
+ and you want to use the web application ID to search only the
+ transactions belonging to that application.</p></li><li><p>You are using the data persistence facility (collections
+ SESSION and USER) and you need to avoid collisions between sessions
+ and users belonging to different applications.</p></li></ol></div></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="processing-phases"></a>Processing Phases</h2></div></div><div></div></div><p>ModSecurity 2.x allows rules to be placed in one of the following
+ five phases:</p><div class="orderedlist"><ol type="1"><li><p>Request headers (<code class="literal">REQUEST_HEADERS</code>)</p></li><li><p>Request body (<code class="literal">REQUEST_BODY</code>)</p></li><li><p>Response headers (<code class="literal">RESPONSE_HEADERS</code>)</p></li><li><p>Response body (<code class="literal">RESPONSE_BODY</code>)</p></li><li><p>Logging (<code class="literal">LOGGING</code>)</p></li></ol></div><p>Below is a diagram of the standard Apache Request Cycle. In the
+ diagram, the 5 ModSecurity processing phases are shown.</p><p><div><img src="apache_request_cycle-modsecurity.jpg" width="495"></div></p><p>In order to select the phase a rule executes during, use the phase
+ action either directly in the rule or in using the
+ <code class="literal">SecDefaultAction</code> directive:</p><pre class="programlisting">SecDefaultAction "log,pass,<span class="emphasis"><em>phase:2</em></span>"
+SecRule REQUEST_HEADERS:Host "!^$" "deny,<span class="emphasis"><em>phase:1</em></span>"</pre><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Keep in mind that rules are executed according to phases, so even
+ if two rules are adjacent in a configuration file, but are set to
+ execute in different phases, they would not happen one after the other.
+ The order of rules in the configuration file is important only within
+ the rules of each phase. This is especially important when using the
+ <code class="literal">skip</code> and <code class="literal">skipAfter</code> actions.</p></div><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>The <code class="literal">LOGGING</code> phase is special. It is executed at
+ the end of each transaction no matter what happened in the previous
+ phases. This means it will be processed even if the request was
+ intercepted or the <code class="literal">allow</code> action was used to pass the
+ transaction through.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10D73"></a>Phase Request Headers</h3></div></div><div></div></div><p>Rules in this phase are processed immediately after Apache
+ completes reading the request headers (post-read-request phase). At this
+ point the request body has not been read yet, meaning not all request
+ arguments are available. Rules should be placed in this phase if you
+ need to have them run early (before Apache does something with the
+ request), to do something before the request body has been read,
+ determine whether or not the request body should be buffered, or decide
+ how you want the request body to be processed (e.g. whether to parse it
+ as XML or not).</p><p><span class="emphasis"><em>Note</em></span></p><p>Rules in this phase can not leverage Apache scope directives
+ (Directory, Location, LocationMatch, etc...) as the post-read-request
+ hook does not have this information yet. The exception here is the
+ VirtualHost directive. If you want to use ModSecurity rules inside
+ Apache locations, then they should run in Phase 2. Refer to the Apache
+ Request Cycle/ModSecurity Processing Phases diagram.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10D7D"></a>Phase Request Body</h3></div></div><div></div></div><p>This is the general-purpose input analysis phase. Most of the
+ application-oriented rules should go here. In this phase you are
+ guaranteed to have received the request arguments (provided the request
+ body has been read). ModSecurity supports three encoding types for the
+ request body phase:</p><div class="itemizedlist"><ul type="disc"><li><p><code class="literal">application/x-www-form-urlencoded</code> - used to
+ transfer form data</p></li><li><p><code class="literal">multipart/form-data</code> - used for file
+ transfers</p></li><li><p><code class="literal">text/xml</code> - used for passing XML data</p></li></ul></div><p>Other encodings are not used by most web applications.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10D97"></a>Phase Response Headers</h3></div></div><div></div></div><p>This phase takes place just before response headers are sent back
+ to the client. Run here if you want to observe the response before that
+ happens, and if you want to use the response headers to determine if you
+ want to buffer the response body. Note that some response status codes
+ (such as 404) are handled earlier in the request cycle by Apache and my
+ not be able to be triggered as expected. Additionally, there are some
+ response headers that are added by Apache at a later hook (such as Date,
+ Server and Connection) that we would not be able to trigger on or
+ sanitize. This should work appropriately in a proxy setup or within
+ phase:5 (logging).</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10D9C"></a>Phase Response Body</h3></div></div><div></div></div><p>This is the general-purpose output analysis phase. At this point
+ you can run rules against the response body (provided it was buffered,
+ of course). This is the phase where you would want to inspect the
+ outbound HTML for information disclosure, error messages or failed
+ authentication text.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10DA1"></a>Phase Logging</h3></div></div><div></div></div><p>This phase is run just before logging takes place. The rules
+ placed into this phase can only affect how the logging is performed.
+ This phase can be used to inspect the error messages logged by Apache.
+ You cannot deny/block connections in this phase as it is too late. This
+ phase also allows for inspection of other response headers that weren't
+ available during phase:3 or phase:4. Note that you must be careful not
+ to inherit a disruptive action into a rule in this phase as this is a
+ configuration error in ModSecurity 2.5.0 and later versions.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="variables"></a>Variables</h2></div></div><div></div></div><p>The following variables are supported in ModSecurity 2.x:</p><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10DAC"></a><code class="literal">ARGS</code></h3></div></div><div></div></div><p><code class="literal">ARGS</code> is a collection and can be used on its own
+ (means all arguments including the POST Payload), with a static
+ parameter (matches arguments with that name), or with a regular
+ expression (matches all arguments with name that matches the regular
+ expression). To look at only the query string or body arguments, see the
+ <code class="literal">ARGS_GET</code> and <code class="literal">ARGS_POST</code>
+ collections.</p><p>Some variables are actually collections, which are expanded into
+ more variables at runtime. The following example will examine all
+ request arguments:<pre class="programlisting">SecRule ARGS dirty</pre>
+ Sometimes, however, you will want to look only at parts of a collection.
+ This can be achieved with the help of the <span class="emphasis"><em>selection
+ operator</em></span>(colon). The following example will only look at the
+ arguments named<code class="literal"> p</code> (do note that, in
+ general, requests can contain multiple arguments with the same name):
+ <pre class="programlisting">SecRule ARGS:p dirty</pre>
+ It is also possible to specify exclusions. The following will examine
+ all request arguments for the word<span class="emphasis"><em> dirty</em></span>, except
+ the ones named <code class="literal">z</code> (again, there can be
+ zero or more arguments named<code class="literal"> z</code>):
+ <pre class="programlisting">SecRule ARGS|!ARGS:z dirty</pre>
+ There is a special operator that allows you to count how many variables
+ there are in a collection. The following rule will trigger if there is
+ more than zero arguments in the request (ignore the second parameter for
+ the time being): <pre class="programlisting">SecRule &ARGS !^0$</pre>
+ And sometimes you need to look at an array of parameters, each with a
+ slightly different name. In this case you can specify a regular
+ expression in the selection operator itself. The following rule will
+ look into all arguments whose names begin with <code class="literal">id_</code>: <pre class="programlisting">SecRule ARGS:/^id_/ dirty</pre></p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Using <code class="literal">ARGS:p</code> will not result in any
+ invocations against the operator if argument p does not exist.</p><p>In ModSecurity 1.X, the <code class="literal">ARGS</code> variable stood
+ for <code class="literal">QUERY_STRING</code> + <code class="literal">POST_PAYLOAD</code>,
+ whereas now it expands to individual variables.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10DFE"></a><code class="literal">ARGS_COMBINED_SIZE</code></h3></div></div><div></div></div><p>This variable allows you to set more targeted evaluations on the
+ total size of the Arguments as compared with normal Apache LimitRequest
+ directives. For example, you could create a rule to ensure that the
+ total size of the argument data is below a certain threshold (to help
+ prevent buffer overflow issues). Example: Block request if the size of
+ the arguments is above 25 characters.</p><pre class="programlisting">SecRule REQUEST_FILENAME "^/cgi-bin/login\.php" \
+ "chain,log,deny,phase:2,t:none,t:lowercase,t:normalisePath"
+SecRule <span class="emphasis"><em>ARGS_COMBINED_SIZE</em></span> "@gt 25"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10E0B"></a><code class="literal">ARGS_NAMES</code></h3></div></div><div></div></div><p>Is a collection of the argument names. You can search for specific
+ argument names that you want to block. In a positive policy scenario,
+ you can also whitelist (using an inverted rule with the ! character)
+ only authorized argument names. Example: This example rule will only
+ allow 2 argument names - p and a. If any other argument names are
+ injected, it will be blocked.</p><pre class="programlisting">SecRule REQUEST_FILENAME "/index.php" \
+ "chain,log,deny,status:403,phase:2,t:none,t:lowercase,t:normalisePath"
+SecRule<span class="emphasis"><em> ARGS_NAMES</em></span> "!^(p|a)$" "t:none,t:lowercase"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10E18"></a><code class="literal">ARGS_GET</code></h3></div></div><div></div></div><p><code class="literal">ARGS_GET</code> is similar to <code class="literal">ARGS</code>,
+ but only contains arguments from the query string.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10E26"></a><code class="literal">ARGS_GET_NAMES</code></h3></div></div><div></div></div><p><code class="literal">ARGS_GET_NAMES</code> is similar to
+ <code class="literal">ARGS_NAMES</code>, but only contains argument names from the
+ query string.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10E34"></a><code class="literal">ARGS_POST</code></h3></div></div><div></div></div><p><code class="literal">ARGS_POST</code> is similar to
+ <code class="literal">ARGS</code>, but only contains arguments from the POST
+ body.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10E42"></a><code class="literal">ARGS_POST_NAMES</code></h3></div></div><div></div></div><p><code class="literal">ARGS_POST_NAMES</code> is similar to
+ <code class="literal">ARGS_NAMES</code>, but only contains argument names from the
+ POST body.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10E50"></a><code class="literal">AUTH_TYPE</code></h3></div></div><div></div></div><p>This variable holds the authentication method used to validate a
+ user. Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>AUTH_TYPE</em></span> "basic" log,deny,status:403,phase:1,t:lowercase</pre><p><span class="emphasis"><em>Note</em></span></p><p>This data will not be available in a proxy-mode deployment as the
+ authentication is not local. In a proxy-mode deployment, you would need
+ to inspect the <code class="literal">REQUEST_HEADERS:Authorization</code>
+ header.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10E66"></a><code class="literal">ENV</code></h3></div></div><div></div></div><p>Collection, requires a single parameter (after colon). The
+ <code class="literal">ENV</code> variable is set with setenv and does not give
+ access to the CGI environment variables. Example:</p><pre class="programlisting">SecRule REQUEST_FILENAME "printenv" pass,<span class="emphasis"><em>setenv:tag=suspicious</em></span>
+SecRule <span class="emphasis"><em>ENV:tag</em></span> "suspicious"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10E7A"></a><code class="literal">FILES</code></h3></div></div><div></div></div><p>Collection. Contains a collection of original file names (as they
+ were called on the remote user's file system). Note: only available if
+ files were extracted from the request body. Example:</p><pre class="programlisting">SecRule<span class="emphasis"><em> FILES</em></span> "\.conf$" log,deny,status:403,phase:2</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10E87"></a><code class="literal">FILES_COMBINED_SIZE</code></h3></div></div><div></div></div><p>Single value. Total size of the uploaded files. Note: only
+ available if files were extracted from the request body. Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>FILES_COMBINED_SIZE</em></span> "@gt 1000" log,deny,status:403,phase:2</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10E94"></a><code class="literal">FILES_NAMES</code></h3></div></div><div></div></div><p>Collection w/o parameter. Contains a list of form fields that were
+ used for file upload. Note: only available if files were extracted from
+ the request body. Example:</p><pre class="programlisting">SecRule<span class="emphasis"><em> FILES_NAMES</em></span> "^upfile$" log,deny,status:403,phase:2</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10EA1"></a><code class="literal">FILES_SIZES</code></h3></div></div><div></div></div><p>Collection. Contains a list of file sizes. Useful for implementing
+ a size limitation on individual uploaded files. Note: only available if
+ files were extracted from the request body. Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>FILES_SIZES</em></span> "@gt 100" log,deny,status:403,phase:2</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10EAE"></a><code class="literal">FILES_TMPNAMES</code></h3></div></div><div></div></div><p>Collection. Contains a collection of temporary files' names on the
+ disk. Useful when used together with <code class="literal">@inspectFile.</code> Note: only available if files
+ were extracted from the request body. Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>FILES_TMPNAMES</em></span> "@inspectFile /path/to/inspect_script.pl"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10EBF"></a><code class="literal">GEO</code></h3></div></div><div></div></div><p><code class="literal">GEO</code> is a collection populated by the results of
+ the last <code class="literal">@geoLookup</code> operator. The
+ collection can be used to match geographical fields looked from an IP
+ address or hostname.</p><p>Available since ModSecurity 2.5.0.</p><p>Fields:</p><div class="itemizedlist"><ul type="disc"><li><p><span class="emphasis"><em>COUNTRY_CODE:</em></span> Two character country code.
+ EX: US, GB, etc.</p></li><li><p><span class="emphasis"><em>COUNTRY_CODE3:</em></span> Up to three character
+ country code.</p></li><li><p><span class="emphasis"><em>COUNTRY_NAME:</em></span> The full country
+ name.</p></li><li><p><span class="emphasis"><em>COUNTRY_CONTINENT:</em></span> The two character
+ continent that the country is located. EX: EU</p></li><li><p><span class="emphasis"><em>REGION:</em></span> The two character region. For US,
+ this is state. For Canada, providence, etc.</p></li><li><p><span class="emphasis"><em>CITY:</em></span> The city name if supported by the
+ database.</p></li><li><p><span class="emphasis"><em>POSTAL_CODE:</em></span> The postal code if supported
+ by the database.</p></li><li><p><span class="emphasis"><em>LATITUDE:</em></span> The latitude if supported by
+ the database.</p></li><li><p><span class="emphasis"><em>LONGITUDE:</em></span> The longitude if supported by
+ the database.</p></li><li><p><span class="emphasis"><em>DMA_CODE:</em></span> The metropolitan area code if
+ supported by the database. (US only)</p></li><li><p><span class="emphasis"><em>AREA_CODE:</em></span> The phone system area code.
+ (US only)</p></li></ul></div><p>Example:</p><pre class="programlisting">SecGeoLookupDb /usr/local/geo/data/GeoLiteCity.dat
+...
+SecRule REMOTE_ADDR "<span class="emphasis"><em>@geoLookup</em></span>" "chain,drop,msg:'Non-GB IP address'"
+SecRule GEO:COUNTRY_CODE "!@streq GB"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10F11"></a><code class="literal">HIGHEST_SEVERITY</code></h3></div></div><div></div></div><p>This variable holds the highest severity of any rules that have
+ matched so far. Severities are numeric values and thus can be used with
+ comparison operators such as <code class="literal">@lt</code>,
+ etc.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Higher severities have a lower numeric value.</p><p>A value of 255 indicates no severity has been set.</p></div><pre class="programlisting">SecRule HIGHEST_SEVERITY "@le 2" "phase:2,deny,status:500,msg:'severity %{HIGHEST_SEVERITY}'"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10F24"></a><code class="literal">MATCHED_VAR</code></h3></div></div><div></div></div><p>This variable holds the value of the variable that was matched
+ against. It is similar to the TX:0, except it can be used for all
+ operators and does not require that the <code class="literal">capture</code> action be specified.</p><pre class="programlisting">SecRule ARGS pattern chain,deny
+...
+SecRule <span class="emphasis"><em>MATCHED_VAR</em></span> "further scrutiny"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10F35"></a><code class="literal">MATCHED_VAR_NAME</code></h3></div></div><div></div></div><p>This variable holds the full name of the variable that was matched
+ against.</p><pre class="programlisting">SecRule ARGS pattern setvar:tx.mymatch=%{MATCHED_VAR_NAME}
+...
+SecRule <span class="emphasis"><em>TX:MYMATCH</em></span> "@eq ARGS:param" deny</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10F42"></a><code class="literal">MODSEC_BUILD</code></h3></div></div><div></div></div><p>This variable holds the ModSecurity build number. This variable is
+ intended to be used to check the build number prior to using a feature
+ that is available only in a certain build. Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>MODSEC_BUILD</em></span> "!@ge 02050102" skipAfter:12345
+SecRule ARGS "@pm some key words" id:12345,deny,status:500</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10F4F"></a><code class="literal">MULTIPART_CRLF_LF_LINES</code></h3></div></div><div></div></div><p>This flag variable will be set to <code class="literal">1</code> whenever a
+ multi-part request uses mixed line terminators. The
+ <code class="literal">multipart/form-data</code> RFC requires
+ <code class="literal">CRLF</code> sequence to be used to terminate lines. Since
+ some client implementations use only <code class="literal">LF</code> to terminate
+ lines you might want to allow them to proceed under certain
+ circumstances (if you want to do this you will need to stop using
+ <code class="literal">MULTIPART_STRICT_ERROR</code> and check each multi-part flag
+ variable individually, avoiding <code class="literal">MULTIPART_LF_LINE</code>).
+ However, mixing <code class="literal">CRLF</code> and <code class="literal">LF</code> line
+ terminators is dangerous as it can allow for evasion. Therefore, in such
+ cases, you will have to add a check for
+ <code class="literal">MULTIPART_CRLF_LF_LINES</code>.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10F7A"></a><code class="literal">MULTIPART_STRICT_ERROR</code></h3></div></div><div></div></div><p><code class="literal">MULTIPART_STRICT_ERROR</code> will be set to
+ <code class="literal">1</code> when any of the following variables is also set to
+ <code class="literal">1</code>: <code class="literal">REQBODY_PROCESSOR_ERROR</code>,
+ <code class="literal">MULTIPART_BOUNDARY_QUOTED</code>,
+ <code class="literal">MULTIPART_BOUNDARY_WHITESPACE</code>,
+ <code class="literal">MULTIPART_DATA_BEFORE</code>,
+ <code class="literal">MULTIPART_DATA_AFTER</code>,
+ <code class="literal">MULTIPART_HEADER_FOLDING</code>,
+ <code class="literal">MULTIPART_LF_LINE</code>,
+ <code class="literal">MULTIPART_SEMICOLON_MISSING</code>
+ <code class="literal">MULTIPART_INVALID_QUOTING</code>. Each of these variables
+ covers one unusual (although sometimes legal) aspect of the request body
+ in <code class="literal">multipart/form-data format</code>. Your policies should
+ <span class="emphasis"><em>always</em></span> contain a rule to check either this variable
+ (easier) or one or more individual variables (if you know exactly what
+ you want to accomplish). Depending on the rate of false positives and
+ your default policy you should decide whether to block or just warn when
+ the rule is triggered.</p><p>The best way to use this variable is as in the example
+ below:</p><pre class="programlisting">SecRule MULTIPART_STRICT_ERROR "!@eq 0" \
+"phase:2,t:none,log,deny,msg:'Multipart request body \
+failed strict validation: \
+PE %{REQBODY_PROCESSOR_ERROR}, \
+BQ %{MULTIPART_BOUNDARY_QUOTED}, \
+BW %{MULTIPART_BOUNDARY_WHITESPACE}, \
+DB %{MULTIPART_DATA_BEFORE}, \
+DA %{MULTIPART_DATA_AFTER}, \
+HF %{MULTIPART_HEADER_FOLDING}, \
+LF %{MULTIPART_LF_LINE}, \
+SM %{MULTIPART_SEMICOLON_MISSING}, \
+IQ %{MULTIPART_INVALID_QUOTING}'"</pre><p>The <code class="literal">multipart/form-data</code> parser was upgraded in
+ ModSecurity v2.1.3 to actively look for signs of evasion. Many variables
+ (as listed above) were added to expose various facts discovered during
+ the parsing process. The <code class="literal">MULTIPART_STRICT_ERROR</code>
+ variable is handy to check on all abnormalities at once. The individual
+ variables allow detection to be fine-tuned according to your
+ circumstances in order to reduce the number of false positives. Detailed
+ analysis of various evasion techniques covered will be released as a
+ separated document at a later date.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10FC6"></a><code class="literal">MULTIPART_UNMATCHED_BOUNDARY</code></h3></div></div><div></div></div><p>Set to <code class="literal">1</code> when, during the parsing phase of a
+ <code class="literal">multipart/request-body</code>, ModSecurity encounters what
+ feels like a boundary but it is not. Such an event may occur when
+ evasion of ModSecurity is attempted.</p><p>The best way to use this variable is as in the example
+ below:</p><pre class="programlisting">SecRule MULTIPART_UNMATCHED_BOUNDARY "!@eq 0" \
+"phase:2,t:none,log,deny,msg:'Multipart parser detected a possible unmatched boundary.'"</pre><p>Change the rule from blocking to logging-only if many false
+ positives are encountered.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10FDC"></a><code class="literal">PATH_INFO</code></h3></div></div><div></div></div><p>Besides passing query information to a script/handler, you can
+ also pass additional data, known as extra path information, as part of
+ the URL. Example:</p><pre class="programlisting">SecRule<span class="emphasis"><em> PATH_INFO</em></span> "^/(bin|etc|sbin|opt|usr)"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10FE9"></a><code class="literal">QUERY_STRING</code></h3></div></div><div></div></div><p>This variable holds form data passed to the script/handler by
+ appending data after a question mark. Warning: Not URL-decoded.
+ Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>QUERY_STRING</em></span> "attack"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10FF6"></a><code class="literal">REMOTE_ADDR</code></h3></div></div><div></div></div><p>This variable holds the IP address of the remote client.
+ Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>REMOTE_ADDR</em></span> "^192\.168\.1\.101$"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11003"></a><code class="literal">REMOTE_HOST</code></h3></div></div><div></div></div><p>If HostnameLookUps are set to On, then this variable will hold the
+ DNS resolved remote host name. If it is set to Off, then it will hold
+ the remote IP address. Possible uses for this variable would be to deny
+ known bad client hosts or network blocks, or conversely, to allow in
+ authorized hosts. Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>REMOTE_HOST</em></span> "\.evil\.network\org$"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11010"></a><code class="literal">REMOTE_PORT</code></h3></div></div><div></div></div><p>This variable holds information on the source port that the client
+ used when initiating the connection to our web server. Example: in this
+ example, we are evaluating to see if the <code class="literal">REMOTE_PORT</code>
+ is less than 1024, which would indicate that the user is a privileged
+ user (root).</p><pre class="programlisting">SecRule <span class="emphasis"><em>REMOTE_PORT</em></span> "@lt 1024" phase:1,log,pass,setenv:remote_port=privileged</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11021"></a><code class="literal">REMOTE_USER</code></h3></div></div><div></div></div><p>This variable holds the username of the authenticated user. If
+ there are no password (basic|digest) access controls in place, then this
+ variable will be empty. Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>REMOTE_USER</em></span> "admin"</pre><p><span class="emphasis"><em>Note</em></span></p><p>This data will not be available in a proxy-mode deployment as the
+ authentication is not local.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11033"></a><code class="literal">REQBODY_PROCESSOR</code></h3></div></div><div></div></div><p>Built-in processors are <code class="literal">URLENCODED</code>,<code class="literal">
+ MULTIPART</code>, and <code class="literal">XML</code>.
+ Example:</p><pre class="programlisting">SecRule<span class="emphasis"><em> REQBODY_PROCESSOR</em></span> "^XML$ chain
+SecRule XML "@validateDTD /opt/apache-frontend/conf/xml.dtd"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1104C"></a><code class="literal">REQBODY_PROCESSOR_ERROR</code></h3></div></div><div></div></div><p>Possible values are 0 (no error) or 1 (error). This variable will
+ be set by request body processors (typically the
+ <code class="classname">multipart/request-data</code> parser or the XML parser)
+ when they fail to properly parse a request payload.</p><p>Example:</p><pre class="programlisting">SecRule<span class="emphasis"><em> REQBODY_PROCESSOR_ERROR</em></span> "@eq 1" deny,phase:2</pre><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Your policies <span class="emphasis"><em>must</em></span> have a rule to check
+ REQBODY_PROCESSOR_ERROR at the beginning of phase 2. Failure to do so
+ will leave the door open for impedance mismatch attacks. It is
+ possible, for example, that a payload that cannot be parsed by
+ ModSecurity can be successfully parsed by more tolerant parser
+ operating in the application. If your policy dictates blocking then
+ you should reject the request if error is detected. When operating in
+ detection-only mode your rule should alert with high severity when
+ request body processing fails.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11064"></a><code class="literal">REQBODY_PROCESSOR_ERROR_MSG</code></h3></div></div><div></div></div><p>Empty, or contains the error message from the processor.
+ Example:</p><pre class="programlisting">SecRule<span class="emphasis"><em> REQBODY_PROCESSOR_ERROR_MSG</em></span> "failed to parse" t:lowercase</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11071"></a><code class="literal">REQUEST_BASENAME</code></h3></div></div><div></div></div><p>This variable holds just the filename part of
+ <code class="literal">REQUEST_FILENAME</code> (e.g. index.php).</p><p>Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>REQUEST_BASENAME</em></span> "^login\.php$" phase:2,t:none,t:lowercase</pre><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Please note that anti-evasion transformations are not applied to
+ this variable by default. <code class="literal">REQUEST_BASENAME</code> will
+ recognise both <code class="literal">/</code> and <code class="literal">\</code> as path
+ separators.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11093"></a><code class="literal">REQUEST_BODY</code></h3></div></div><div></div></div><p>This variable holds the data in the request body (including
+ <code class="literal">POST_PAYLOAD</code> data). <code class="literal">REQUEST_BODY</code>
+ should be used if the original order of the arguments is important
+ (<code class="literal">ARGS</code> should be used in all other cases).
+ Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>REQUEST_BODY</em></span> "^username=\w{25,}\&password=\w{25,}\&Submit\=login$"</pre><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This variable is only available if the
+ <code class="literal">URLENCODED</code> request body processor parsed a request
+ body. This will occur by default when an
+ <code class="literal">application/x-www-form-urlencoded</code> is detected, or
+ the <code class="literal">URLENCODED</code> request body parser is forced. As of
+ 2.5.7 it is possible to force the presence of the
+ <code class="literal">REQUEST_BODY</code> variable, but only when there is no
+ request body processor defined, using the
+ <code class="literal">ctl:forceRequestBodyVariable</code> option in the
+ <code class="literal">REQUEST_HEADERS</code> phase.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N110C7"></a><code class="literal">REQUEST_COOKIES</code></h3></div></div><div></div></div><p>This variable is a collection of all of the cookie data. Example:
+ the following example is using the Ampersand special operator to count
+ how many variables are in the collection. In this rule, it would trigger
+ if the request does not include any Cookie headers.</p><pre class="programlisting">SecRule<span class="emphasis"><em> &REQUEST_COOKIES</em></span> "@eq 0"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N110D4"></a><code class="literal">REQUEST_COOKIES_NAMES</code></h3></div></div><div></div></div><p>This variable is a collection of the cookie names in the request
+ headers. Example: the following rule will trigger if the JSESSIONID
+ cookie is not present.</p><pre class="programlisting">SecRule<span class="emphasis"><em> &REQUEST_COOKIES_NAMES:JSESSIONID</em></span> "@eq 0"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N110E1"></a><code class="literal">REQUEST_FILENAME</code></h3></div></div><div></div></div><p>This variable holds the relative <code class="literal">REQUEST_URI</code>
+ minus the <code class="literal">QUERY_STRING</code> part (e.g. /index.php).
+ Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>REQUEST_FILENAME</em></span> "^/cgi-bin/login\.php$" phase:2,t:none,t:normalisePath</pre><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Please note that anti-evasion transformations are not used on
+ <code class="literal">REQUEST_FILENAME</code> by default.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N110FD"></a><code class="literal">REQUEST_HEADERS</code></h3></div></div><div></div></div><p>This variable can be used as either a collection of all of the
+ request headers or can be used to specify individual headers (by using
+ REQUEST_HEADERS<span class="emphasis"><em>:Header-Name</em></span>). Example: the first
+ example uses <code class="literal">REQUEST_HEADERS</code> as a collection and is
+ applying the <code class="literal">validateUrlEncoding</code> operator against all
+ headers.</p><pre class="programlisting">SecRule <span class="emphasis"><em>REQUEST_HEADERS</em></span> "@validateUrlEncoding"</pre><p>Example: the second example is targeting only the
+ <code class="literal">Host</code> header.</p><pre class="programlisting">SecRule <span class="emphasis"><em>REQUEST_HEADERS:Host</em></span> "^[\d\.]+$" \
+ "deny,log,status:400,msg:'Host header is a numeric IP address'"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11121"></a><code class="literal">REQUEST_HEADERS_NAMES</code></h3></div></div><div></div></div><p>This variable is a collection of the names of all of the request
+ headers. Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>REQUEST_HEADERS_NAMES</em></span> "^x-forwarded-for" \
+ "log,deny,status:403,t:lowercase,msg:'Proxy Server Used'"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1112E"></a><code class="literal">REQUEST_LINE</code></h3></div></div><div></div></div><p>This variable holds the complete request line sent to the server
+ (including the REQUEST_METHOD and HTTP version data). Example: this
+ example rule will trigger if the request method is something other than
+ GET, HEAD, POST or if the HTTP is something other than HTTP/0.9, 1.0 or
+ 1.1.</p><pre class="programlisting">SecRule <span class="emphasis"><em>REQUEST_LINE</em></span> "!(^((?:(?:pos|ge)t|head))|http/(0\.9|1\.0|1\.1)$)" t:none,t:lowercase</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1113B"></a><code class="literal">REQUEST_METHOD</code></h3></div></div><div></div></div><p>This variable holds the request method used by the client.</p><p>The following example will trigger if the request method is either
+ <code class="literal">CONNECT</code> or TRACE.</p><pre class="programlisting">SecRule <span class="emphasis"><em>REQUEST_METHOD</em></span> "^((?:connect|trace))$" t:none,t:lowercase</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1114E"></a><code class="literal">REQUEST_PROTOCOL</code></h3></div></div><div></div></div><p>This variable holds the request protocol version information.
+ Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>REQUEST_PROTOCOL</em></span> "!^http/(0\.9|1\.0|1\.1)$" t:none,t:lowercase</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1115B"></a><code class="literal">REQUEST_URI</code></h3></div></div><div></div></div><p>This variable holds the full URL including the
+ <code class="literal">QUERY_STRING</code> data (e.g. /index.php?p=X), however it
+ will never contain a domain name, even if it was provided on the request
+ line. It also does not include either the
+ <code class="literal">REQUEST_METHOD</code> or the HTTP version info.</p><p>Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>REQUEST_URI</em></span> "attack" phase:1,t:none,t:urlDecode,t:lowercase,t:normalisePath</pre><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Please note that anti-evasion transformations are not used on
+ <code class="literal">REQUEST_URI</code> by default.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11179"></a><code class="literal">REQUEST_URI_RAW</code></h3></div></div><div></div></div><p>Same as <code class="literal">REQUEST_URI</code> but will contain the domain
+ name if it was provided on the request line (e.g.
+ http://www.example.com/index.php?p=X).</p><p>Example:</p><pre class="programlisting">SecRule<span class="emphasis"><em> REQUEST_URI_RAW</em></span> "http:/" phase:1,t:none,t:urlDecode,t:lowercase,t:normalisePath</pre><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Please note that anti-evasion transformations are not used on
+ <code class="literal">REQUEST_URI_RAW</code> by default.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11193"></a><code class="literal">RESPONSE_BODY</code></h3></div></div><div></div></div><p>This variable holds the data for the response payload.</p><p>Example:</p><pre class="programlisting">SecRule<span class="emphasis"><em> RESPONSE_BODY</em></span> "ODBC Error Code"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N111A2"></a><code class="literal">RESPONSE_CONTENT_LENGTH</code></h3></div></div><div></div></div><p>Response body length in bytes. Can be available starting with
+ phase 3 but it does not have to be (as the length of response body is
+ not always known in advance.) If the size is not known this variable
+ will contain a zero. If <code class="literal">RESPONSE_CONTENT_LENGTH</code>
+ contains a zero in phase 5 that means the actual size of the response
+ body was 0.</p><p>The value of this variable can change between phases if the body
+ is modified. For example, in embedded mode
+ <code class="literal">mod_deflate</code> can compress the response body between
+ phases 4 and 5.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N111B3"></a><code class="literal">RESPONSE_CONTENT_TYPE</code></h3></div></div><div></div></div><p>Response content type. Only available starting with phase
+ 3.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N111BA"></a><code class="literal">RESPONSE_HEADERS</code></h3></div></div><div></div></div><p>This variable is similar to the REQUEST_HEADERS variable and can
+ be used in the same manner. Example:</p><pre class="programlisting">SecRule<span class="emphasis"><em> RESPONSE_HEADERS</em></span><span class="emphasis"><em>:X-Cache</em></span> "MISS"</pre><p><span class="emphasis"><em>Note</em></span></p><p>This variable may not have access to some headers when running in
+ embedded-mode. Headers such as Server, Date, Connection and Content-Type
+ are added during a later Apache hook just prior to sending the data to
+ the client. This data should be available, however, either during
+ ModSecurity phase:5 (logging) or when running in proxy-mode.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N111CE"></a><code class="literal">RESPONSE_HEADERS_NAMES</code></h3></div></div><div></div></div><p>This variable is a collection of the response header names.
+ Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>RESPONSE_HEADERS_NAMES</em></span> "Set-Cookie"</pre><p><span class="emphasis"><em>Note</em></span></p><p>Same limitations as RESPONSE_HEADERS with regards to access to
+ some headers in embedded-mode.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N111E0"></a><code class="literal">RESPONSE_PROTOCOL</code></h3></div></div><div></div></div><p>This variable holds the HTTP response protocol information.
+ Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>RESPONSE_PROTOCOL</em></span> "^HTTP\/0\.9"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N111ED"></a><code class="literal">RESPONSE_STATUS</code></h3></div></div><div></div></div><p>This variable holds the HTTP response status code as generated by
+ Apache. Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>RESPONSE_STATUS</em></span> "^[45]"</pre><p><span class="emphasis"><em>Note</em></span></p><p>This directive may not work as expected in embedded-mode as Apache
+ handles many of the stock response codes (404, 401, etc...) earlier in
+ Phase 2. This variable should work as expected in a proxy-mode
+ deployment.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N111FF"></a><code class="literal">RULE</code></h3></div></div><div></div></div><p>This variable provides access to the <code class="literal">id</code>, <code class="literal">rev</code>,
+ <code class="literal">severity</code>, <code class="literal">logdata</code>, and <code class="literal">msg</code> fields of the rule that triggered the
+ action. Only available for expansion in action strings (e.g.<code class="literal">setvar:tx.varname=%{rule.id}</code>). Example:</p><pre class="programlisting">SecRule &REQUEST_HEADERS:Host "@eq 0" "log,deny,setvar:tx.varname=<span class="emphasis"><em>%{rule.id}</em></span>"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11224"></a><code class="literal">SCRIPT_BASENAME</code></h3></div></div><div></div></div><p>This variable holds just the local filename part of
+ SCRIPT_FILENAME. Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>SCRIPT_BASENAME</em></span> "^login\.php$"</pre><p><span class="emphasis"><em>Note</em></span></p><p>This variable is not available in proxy mode.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11236"></a><code class="literal">SCRIPT_FILENAME</code></h3></div></div><div></div></div><p>This variable holds the full path on the server to the requested
+ script. (e.g. SCRIPT_NAME plus the server path). Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>SCRIPT_FILENAME</em></span> "^/usr/local/apache/cgi-bin/login\.php$"</pre><p><span class="emphasis"><em>Note</em></span></p><p>This variable is not available in proxy mode.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11248"></a><code class="literal">SCRIPT_GID</code></h3></div></div><div></div></div><p>This variable holds the group id (numerical value) of the group
+ owner of the script. Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>SCRIPT_GID</em></span> "!^46$"</pre><p><span class="emphasis"><em>Note</em></span></p><p>This variable is not available in proxy mode.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1125A"></a><code class="literal">SCRIPT_GROUPNAME</code></h3></div></div><div></div></div><p>This variable holds the group name of the group owner of the
+ script. Example:</p><pre class="programlisting">SecRule<span class="emphasis"><em> SCRIPT_GROUPNAME</em></span> "!^apache$"</pre><p><span class="emphasis"><em>Note</em></span></p><p>This variable is not available in proxy mode.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1126C"></a><code class="literal">SCRIPT_MODE</code></h3></div></div><div></div></div><p>This variable holds the script's permissions mode data (numerical
+ - 1=execute, 2=write, 4=read and 7=read/write/execute). Example: will
+ trigger if the script has the WRITE permissions set.</p><pre class="programlisting">SecRule <span class="emphasis"><em>SCRIPT_MODE</em></span> "^(2|3|6|7)$"</pre><p><span class="emphasis"><em>Note</em></span></p><p>This variable is not available in proxy mode.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1127E"></a><code class="literal">SCRIPT_UID</code></h3></div></div><div></div></div><p>This variable holds the user id (numerical value) of the owner of
+ the script. Example: the example rule below will trigger if the UID is
+ not 46 (the Apache user).</p><pre class="programlisting">SecRule<span class="emphasis"><em> SCRIPT_UID</em></span> "!^46$"</pre><p><span class="emphasis"><em>Note</em></span></p><p>This variable is not available in proxy mode.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11290"></a><code class="literal">SCRIPT_USERNAME</code></h3></div></div><div></div></div><p>This variable holds the username of the owner of the script.
+ Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>SCRIPT_USERNAME</em></span> "!^apache$"</pre><p><span class="emphasis"><em>Note</em></span></p><p>This variable is not available in proxy mode.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N112A2"></a><code class="literal">SERVER_ADDR</code></h3></div></div><div></div></div><p>This variable contains the IP address of the server.
+ Example:</p><pre class="programlisting">SecRule<span class="emphasis"><em> SERVER_ADDR</em></span> "^192\.168\.1\.100$"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N112AF"></a><code class="literal">SERVER_NAME</code></h3></div></div><div></div></div><p>This variable contains the server's hostname or IP address.
+ Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>SERVER_NAME</em></span> "hostname\.com$"</pre><p><span class="emphasis"><em>Note</em></span></p><p>This data is taken from the Host header submitted in the client
+ request.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N112C1"></a><code class="literal">SERVER_PORT</code></h3></div></div><div></div></div><p>This variable contains the local port that the web server is
+ listening on. Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>SERVER_PORT</em></span> "^80$"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N112CE"></a><code class="literal">SESSION</code></h3></div></div><div></div></div><p>This variable is a collection, available only after <code class="literal">setsid</code> is executed. Example: the following
+ example shows how to initialize a SESSION collection with setsid, how to
+ use setvar to increase the session.score values, how to set the
+ session.blocked variable and finally how to deny the connection based on
+ the session:blocked value.</p><pre class="programlisting">SecRule REQUEST_COOKIES:PHPSESSID !^$ chain,nolog,pass
+SecAction setsid:%{REQUEST_COOKIES.PHPSESSID}
+SecRule REQUEST_URI "^/cgi-bin/finger$" \
+ "phase:2,t:none,t:lowercase,t:normalisePath,pass,log,setvar:<span class="emphasis"><em>session.score</em></span>=+10"
+SecRule<span class="emphasis"><em> SESSION:SCORE</em></span> "@gt 50" "pass,log,setvar:<span class="emphasis"><em>session.blocked</em></span>=1"
+SecRule<span class="emphasis"><em> SESSION:BLOCKED</em></span> "@eq 1" "log,deny,status:403"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N112E8"></a><code class="literal">SESSIONID</code></h3></div></div><div></div></div><p>This variable is the value set with <code class="literal">setsid</code>. Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>SESSIONID</em></span> !^$ chain,nolog,pass
+SecRule REQUEST_COOKIES:PHPSESSID !^$
+SecAction setsid:%{REQUEST_COOKIES.PHPSESSID}</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N112F9"></a><code class="literal">TIME</code></h3></div></div><div></div></div><p>This variable holds a formatted string representing the time
+ (hour:minute:second). Example:</p><pre class="programlisting">SecRule<span class="emphasis"><em> TIME</em></span> "^(([1](8|9))|([2](0|1|2|3))):\d{2}:\d{2}$"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11306"></a><code class="literal">TIME_DAY</code></h3></div></div><div></div></div><p>This variable holds the current date (1-31). Example: this rule
+ would trigger anytime between the 10th and 20th days of the
+ month.</p><pre class="programlisting">SecRule <span class="emphasis"><em>TIME_DAY</em></span> "^(([1](0|1|2|3|4|5|6|7|8|9))|20)$"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11313"></a><code class="literal">TIME_EPOCH</code></h3></div></div><div></div></div><p>This variable holds the time in seconds since 1970.
+ Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>TIME_EPOCH</em></span> "@gt 1000"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11320"></a><code class="literal">TIME_HOUR</code></h3></div></div><div></div></div><p>This variable holds the current hour (0-23). Example: this rule
+ would trigger during "off hours".</p><pre class="programlisting">SecRule<span class="emphasis"><em> TIME_HOUR</em></span> "^(0|1|2|3|4|5|6|[1](8|9)|[2](0|1|2|3))$"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1132D"></a><code class="literal">TIME_MIN</code></h3></div></div><div></div></div><p>This variable holds the current minute (0-59). Example: this rule
+ would trigger during the last half hour of every hour.</p><pre class="programlisting">SecRule <span class="emphasis"><em>TIME_MIN</em></span> "^(3|4|5)"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1133A"></a><code class="literal">TIME_MON</code></h3></div></div><div></div></div><p>This variable holds the current month (0-11). Example: this rule
+ would match if the month was either November (10) or December
+ (11).</p><pre class="programlisting">SecRule<span class="emphasis"><em> TIME_MON</em></span> "^1"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11347"></a><code class="literal">TIME_SEC</code></h3></div></div><div></div></div><p>This variable holds the current second count (0-59).
+ Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>TIME_SEC</em></span> "@gt 30"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11354"></a><code class="literal">TIME_WDAY</code></h3></div></div><div></div></div><p>This variable holds the current weekday (0-6). Example: this rule
+ would trigger only on week-ends (Saturday and Sunday).</p><pre class="programlisting">SecRule <span class="emphasis"><em>TIME_WDAY</em></span> "^(0|6)$"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11361"></a><code class="literal">TIME_YEAR</code></h3></div></div><div></div></div><p>This variable holds the current four-digit year data.
+ Example:</p><pre class="programlisting">SecRule <span class="emphasis"><em>TIME_YEAR</em></span> "^2006$"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1136E"></a><code class="literal">TX</code></h3></div></div><div></div></div><p>Transaction Collection. This is used to store pieces of data,
+ create a transaction anomaly score, and so on. Transaction variables are
+ set for 1 request/response cycle. The scoring and evaluation will not
+ last past the current request/response process. Example: In this
+ example, we are using setvar to increase the tx.score value by 5 points.
+ We then have a follow-up run that will evaluate the transactional score
+ this request and then it will decided whether or not to allow/deny the
+ request through.</p><p>The following is a list of reserved names in the TX
+ collection:</p><div class="itemizedlist"><ul type="disc"><li><p><code class="literal">TX:0</code> - The matching value
+ when using the <code class="literal">@rx</code> or <code class="literal">@pm</code> operator with the <code class="literal">capture</code> action.</p></li><li><p><code class="literal">TX:1-TX:9</code> - The captured
+ subexpression value when using the <code class="literal">@rx</code> operator with capturing parens and the
+ <code class="literal">capture</code> action.</p></li></ul></div><pre class="programlisting">SecRule WEBSERVER_ERROR_LOG "does not exist" "phase:5,pass,<span class="emphasis"><em>setvar:tx.score=+5</em></span>"
+SecRule<span class="emphasis"><em> TX:SCORE</em></span> "@gt 20" deny,log</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N113A1"></a><code class="literal">USERID</code></h3></div></div><div></div></div><p>This variable is the value set with <code class="literal">setuid</code>. Example:</p><pre class="programlisting">SecAction setuid:%{REMOTE_USER},nolog
+SecRule<span class="emphasis"><em> USERID</em></span> "Admin"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N113B2"></a><code class="literal">WEBAPPID</code></h3></div></div><div></div></div><p>This variable is the value set with <code class="literal">SecWebAppId</code>. Example:</p><pre class="programlisting">SecWebAppId "WebApp1"
+SecRule<span class="emphasis"><em> WEBAPPID</em></span> "WebApp1" "chain,log,deny,status:403"
+SecRule REQUEST_HEADERS:Transfer-Encoding "!^$"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N113C3"></a><code class="literal">WEBSERVER_ERROR_LOG</code></h3></div></div><div></div></div><p>Contains zero or more error messages produced by the web server.
+ Access to this variable is in phase:5 (logging). Example:</p><pre class="programlisting">SecRule<span class="emphasis"><em> WEBSERVER_ERROR_LOG</em></span> "File does not exist" "phase:5,setvar:tx.score=+5"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N113D0"></a><code class="literal">XML</code></h3></div></div><div></div></div><p>Can be used standalone (as a target for
+ <code class="literal">validateDTD</code> and <code class="literal">validateSchema</code>) or
+ with an XPath expression parameter (which makes it a valid target for
+ any function that accepts plain text). Example using XPath:</p><pre class="programlisting">SecDefaultAction log,deny,status:403,phase:2
+SecRule REQUEST_HEADERS:Content-Type ^text/xml$ \
+ phase:1,t:lowercase,nolog,pass,ctl:requestBodyProcessor=<span class="emphasis"><em>XML</em></span>
+SecRule REQBODY_PROCESSOR "<span class="emphasis"><em>!^XML$</em></span>" skipAfter:12345
+SecRule <span class="emphasis"><em>XML:/employees/employee/name/text()</em></span> Fred
+SecRule <span class="emphasis"><em>XML:/xq:employees/employee/name/text()</em></span> Fred \
+ id:12345,xmlns:xq=http://www.example.com/employees</pre><p>The first XPath expression does not use namespaces. It would match
+ against payload such as this one:</p><pre class="programlisting"><employees>
+ <employee>
+ <name>Fred Jones</name>
+ <address location="home">
+ <street>900 Aurora Ave.</street>
+ <city>Seattle</city>
+ <state>WA</state>
+ <zip>98115</zip>
+ </address>
+ <address location="work">
+ <street>2011 152nd Avenue NE</street>
+ <city>Redmond</city>
+ <state>WA</state>
+ <zip>98052</zip>
+ </address>
+ <phone location="work">(425)555-5665</phone>
+ <phone location="home">(206)555-5555</phone>
+ <phone location="mobile">(206)555-4321</phone>
+ </employee>
+</employees></pre><p>The second XPath expression does use namespaces. It would match
+ the following payload:</p><pre class="programlisting"><xq:employees xmlns:xq="http://www.example.com/employees">
+ <employee>
+ <name>Fred Jones</name>
+ <address location="home">
+ <street>900 Aurora Ave.</street>
+ <city>Seattle</city>
+ <state>WA</state>
+ <zip>98115</zip>
+ </address>
+ <address location="work">
+ <street>2011 152nd Avenue NE</street>
+ <city>Redmond</city>
+ <state>WA</state>
+ <zip>98052</zip>
+ </address>
+ <phone location="work">(425)555-5665</phone>
+ <phone location="home">(206)555-5555</phone>
+ <phone location="mobile">(206)555-4321</phone>
+ </employee>
+</xq:employees></pre><p>Note the different namespace used in the second example.</p><p>To learn more about XPath we suggest the following
+ resources:</p><div class="orderedlist"><ol type="1"><li><p><a href="http://www.w3.org/TR/xpath" target="_top">XPath
+ Standard</a></p></li><li><p><a href="http://www.zvon.org/xxl/XPathTutorial/General/examples.html" target="_top">XPath
+ Tutorial</a></p></li></ol></div></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="transformation-functions"></a>Transformation functions</h2></div></div><div></div></div><p>When ModSecurity receives request or response information, it makes
+ a copy of this data and places it into memory. It is on this data in
+ memory that transformation functions are applied. The raw request/response
+ data is never altered. Transformation functions are used to transform a
+ variable before testing it in a rule.</p><p><span class="emphasis"><em>Note</em></span></p><p>There are no default transformation functions as there were in
+ previous versions of ModSecurity.</p><p>The following rule will ensure that an attacker does not use mixed
+ case in order to evade the ModSecurity rule:</p><p><pre class="programlisting">SecRule ARGS:p "xp_cmdshell" <span class="emphasis"><em>"t:lowercase"</em></span></pre>
+ multiple transformation actions can be used in the same rule, for example
+ the following rule also ensures that an attacker does not use URL encoding
+ (%xx encoding) for evasion. Note the order of the transformation
+ functions, which ensures that a URL encoded letter is first decoded and
+ than translated to lower case.</p><p><pre class="programlisting">SecRule ARGS:p "xp_cmdshell" <span class="emphasis"><em>"t:urlDecode,t:lowercase"</em></span></pre></p><p>One can use the SecDefaultAction command to ensure the translation
+ occurs for every rule until the next. Note that transformation actions are
+ additive, so if a rule explicitly list actions, the translation actions
+ set by SecDefaultAction are still performed.</p><p><pre class="programlisting">SecDefaultAction <span class="emphasis"><em>t:urlDecode,t:lowercase</em></span></pre></p><p>The following transformation functions are supported:</p><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1142D"></a><code class="literal">base64Decode</code></h3></div></div><div></div></div><p>This function decodes a base64-encoded string.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11434"></a><code class="literal">base64Encode</code></h3></div></div><div></div></div><p>This function encodes input string using base64 encoding.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1143B"></a><code class="literal">compressWhitespace</code></h3></div></div><div></div></div><p>It converts whitespace characters (32, \f, \t, \n, \r, \v, 160) to
+ spaces (ASCII 32) and then compresses multiple consecutive space
+ characters into one.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11442"></a>cssDecode</h3></div></div><div></div></div><p>Decodes CSS-encoded characters, as specified at <a href="http://www.w3.org/TR/REC-CSS2/syndata.html" target="_top">http://www.w3.org/TR/REC-CSS2/syndata.html</a>.
+ This function uses only up to two bytes in the decoding process, meaning
+ it is useful to uncover ASCII characters (that wouldn't normally be
+ encoded) encoded using CSS encoding, or to counter evasion which is a
+ combination of a backslash and non-hexadecimal characters (e.g.
+ <code class="literal">ja\vascript</code> is equivalent to
+ <code class="literal">javascript</code>).</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11453"></a><code class="literal">escapeSeqDecode</code></h3></div></div><div></div></div><p>This function decode ANSI C escape sequences:<code class="literal"> \a</code>,<code class="literal"> \b</code>,
+ <code class="literal">\f</code>, <code class="literal">\n</code>, <code class="literal">\r</code>,
+ <code class="literal">\t</code>, <code class="literal">\v</code>, <code class="literal">\\</code>,
+ <code class="literal">\?</code>, <code class="literal">\'</code>, <code class="literal">\"</code>,
+ <code class="literal">\xHH</code> (hexadecimal), <code class="literal">\0OOO</code> (octal). Invalid encodings are left in
+ the output.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1148E"></a><code class="literal">hexDecode</code></h3></div></div><div></div></div><p>This function decodes a hex-encoded string.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11495"></a><code class="literal">hexEncode</code></h3></div></div><div></div></div><p>This function encodes input as hex-encoded string.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1149C"></a><code class="literal">htmlEntityDecode</code></h3></div></div><div></div></div><p>This function decodes HTML entities present in input. The
+ following variants are supported:</p><div class="itemizedlist"><ul type="disc"><li><p><code class="literal">&#xHH</code> and <code class="literal">&#xHH;</code> (where H is any hexadecimal
+ number)</p></li><li><p><code class="literal">&#DDD</code> and <code class="literal">&#DDD;</code> (where D is any decimal
+ number)</p></li><li><p><code class="literal">&quot</code> and <code class="literal">&quot;</code></p></li><li><p><code class="literal">&nbsp</code> and <code class="literal">&nbsp;</code></p></li><li><p><code class="literal">&lt</code> and <code class="literal">&lt;</code></p></li><li><p><code class="literal">&gt</code> and <code class="literal">&gt;</code></p></li></ul></div><p>This function will convert any entity into a single byte only,
+ possibly resulting in a loss of information. It is thus useful to
+ uncover bytes that would otherwise not need to be encoded, but it cannot
+ do anything with the characters from the range above 255.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N114DE"></a><code class="literal">jsDecode</code></h3></div></div><div></div></div><p>Decodes JavaScript escape sequences. If a
+ <code class="literal">\uHHHH</code> code is in the range of
+ <code class="literal">FF01</code>-<code class="literal">FF5E</code> (the full width ASCII
+ codes), then the higher byte is used to detect and adjust the lower
+ byte. Otherwise, only the lower byte will be used and the higher byte
+ zeroed.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N114F1"></a><code class="literal">length</code></h3></div></div><div></div></div><p>This function converts the input to its numeric length (count of
+ bytes).</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N114F8"></a><code class="literal">lowercase</code></h3></div></div><div></div></div><p>This function converts all characters to lowercase using the
+ current C locale.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N114FF"></a><code class="literal">md5</code></h3></div></div><div></div></div><p>This function calculates an MD5 hash from input. Note that the
+ computed hash is in a raw binary form and may need encoded into text to
+ be usable (for example: <code class="literal">t:md5,t:hexEncode</code>).</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1150A"></a><code class="literal"><code class="literal">none</code></code></h3></div></div><div></div></div><p>Not an actual transformation function, but an instruction to
+ ModSecurity to remove all transformation functions associated with the
+ current rule.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11513"></a><code class="literal">normalisePath</code></h3></div></div><div></div></div><p>This function will remove multiple slashes, self-references and
+ directory back-references (except when they are at the beginning of the
+ input).</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1151A"></a><code class="literal">normalisePathWin</code></h3></div></div><div></div></div><p>Same as <code class="literal">normalisePath</code>, but will first convert
+ backslash characters to forward slashes.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11525"></a><code class="literal">parityEven7bit</code></h3></div></div><div></div></div><p>This function calculates even parity of 7-bit data replacing the
+ 8th bit of each target byte with the calculated parity bit.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1152C"></a><code class="literal">parityOdd7bit</code></h3></div></div><div></div></div><p>This function calculates odd parity of 7-bit data replacing the
+ 8th bit of each target byte with the calculated parity bit.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11533"></a><code class="literal">parityZero7bit</code></h3></div></div><div></div></div><p>This function calculates zero parity of 7-bit data replacing the
+ 8th bit of each target byte with a zero parity bit which allows
+ inspection of even/odd parity 7bit data as ASCII7 data.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1153A"></a><code class="literal">removeNulls</code></h3></div></div><div></div></div><p>This function removes NULL bytes from input.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11541"></a><code class="literal">removeWhitespace</code></h3></div></div><div></div></div><p>This function removes all whitespace characters from input.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11548"></a><code class="literal">replaceComments</code></h3></div></div><div></div></div><p>This function replaces each occurrence of a C-style comments
+ (<code class="literal">/* ... */</code>) with a single space
+ (multiple consecutive occurrences of a space will not be compressed).
+ Unterminated comments will too be replaced with a space (ASCII 32).
+ However, a standalone termination of a comment (<code class="literal">*/</code>) will not be acted upon.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11557"></a><code class="literal">replaceNulls</code></h3></div></div><div></div></div><p>This function is enabled by default. It replaces NULL bytes in
+ input with spaces (ASCII 32).</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1155E"></a><code class="literal">urlDecode</code></h3></div></div><div></div></div><p>This function decodes an URL-encoded input string. Invalid
+ encodings (i.e. the ones that use non-hexadecimal characters, or the
+ ones that are at the end of string and have one or two characters
+ missing) will not be converted. If you want to detect invalid encodings
+ use the <code class="literal">@validateUrlEncoding</code>
+ operator. The transformation function should not be used against
+ variables that have already been URL-decoded unless it is your intention
+ to perform URL decoding twice!</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11569"></a><code class="literal">urlDecodeUni</code></h3></div></div><div></div></div><p>In addition to decoding <code class="literal">%xx</code> like <code class="literal">urlDecode, urlDecodeUni</code> also decodes <code class="literal">%uXXXX</code> encoding. If the code is in the range
+ of <code class="literal">FF01</code>-<code class="literal">FF5E</code> (the full width ASCII
+ codes), then the higher byte is used to detect and adjust the lower
+ byte. Otherwise, only the lower byte will be used and the higher byte
+ zeroed.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11584"></a><code class="literal">urlEncode</code></h3></div></div><div></div></div><p>This function encodes input using URL encoding.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1158B"></a><code class="literal">sha1</code></h3></div></div><div></div></div><p>This function calculates a SHA1 hash from input. Note that the
+ computed hash is in a raw binary form and may need encoded to be usable
+ (for example: <code class="literal">t:sha1,t:hexEncode</code>).</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11596"></a><code class="literal">trimLeft</code></h3></div></div><div></div></div><p>This function removes whitespace from the left side of
+ input.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1159D"></a><code class="literal">trimRight</code></h3></div></div><div></div></div><p>This function removes whitespace from the right side of
+ input.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N115A4"></a><code class="literal">trim</code></h3></div></div><div></div></div><p>This function removes whitespace from both the left and right
+ sides of input.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="actions"></a>Actions</h2></div></div><div></div></div><p>Each action belongs to one of five groups:</p><div class="variablelist"><dl><dt><span class="term">Disruptive actions</span></dt><dd><p>Cause ModSecurity to do something. In many cases something
+ means block transaction, but not in all. For example, the allow
+ action is classified as a disruptive action, but it does the
+ opposite of blocking. There can only be one disruptive action per
+ rule (if there are multiple disruptive actions present, or
+ inherited, only the last one will take effect), or rule chain (in a
+ chain, a disruptive action can only appear in the first
+ rule).</p></dd><dt><span class="term">Non-disruptive actions</span></dt><dd><p>Do something, but that something does not and cannot affect
+ the rule processing flow. Setting a variable, or changing its value
+ is an example of a non-disruptive action. Non-disruptive action can
+ appear in any rule, including each rule belonging to a chain.</p></dd><dt><span class="term">Flow actions</span></dt><dd><p>These actions affect the rule flow (for example
+ <code class="literal">skip</code> or <code class="literal">skipAfter</code>).</p></dd><dt><span class="term">Meta-data actions</span></dt><dd><p>Meta-data actions are used to provide more information about
+ rules. Examples include <code class="literal">id</code>,
+ <code class="literal">rev</code>, <code class="literal">severity</code> and
+ <code class="literal">msg</code>.</p></dd><dt><span class="term">Data actions</span></dt><dd><p>Not really actions, these are mere containers that hold data
+ used by other actions. For example, the <code class="literal">status</code>
+ action holds the status that will be used for blocking (if it takes
+ place).</p></dd></dl></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N115EC"></a><code class="literal">allow</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Stops rule processing on a
+ successful match and allows the transaction to proceed.</p><p><span class="emphasis"><em>Action Group:</em></span> Disruptive</p><p>Example:</p><pre class="programlisting">SecRule REMOTE_ADDR "^192\.168\.1\.100$" nolog,phase:1,<span class="emphasis"><em>allow</em></span></pre><p>Prior to ModSecurity 2.5 the <code class="literal">allow</code> action would
+ only affect the current phase. An <code class="literal">allow</code> in phase 1
+ would skip processing the remaining rules in phase 1 but the rules from
+ phase 2 would execute. Starting with v2.5.0 <code class="literal">allow</code> was
+ enhanced to allow for fine-grained control of what is done. The
+ following rules now apply:</p><div class="orderedlist"><ol type="1"><li><p>If used one its own, like in the example above,
+ <code class="literal">allow</code> will affect the entire transaction,
+ stopping processing of the current phase but also skipping over all
+ other phases apart from the logging phase. (The logging phase is
+ special; it is designed to always execute.)</p></li><li><p>If used with parameter "phase", <code class="literal">allow</code> will
+ cause the engine to stop processing the current phase. Other phases
+ will continue as normal.</p></li><li><p>If used with parameter "request", <code class="literal">allow</code>
+ will cause the engine to stop processing the current phase. The next
+ phase to be processed will be phase
+ <code class="literal">RESPONSE_HEADERS</code>.</p></li></ol></div><p>Examples:</p><pre class="programlisting"># Do not process request but process response.
+SecAction phase:1,allow:request
+
+# Do not process transaction (request and response).
+SecAction phase:1,allow
+</pre><p>If you want to allow a response through, put a rule in phase
+ <code class="literal">RESPONSE_HEADERS</code> and simply use
+ <code class="literal">allow</code> on its own:</p><pre class="programlisting"># Allow response through.
+SecAction phase:3,allow</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1163C"></a>append</h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Appends text given as parameter
+ to the end of response body. For this action to work content injection
+ must be enabled by setting <code class="literal">SecContentInjection</code> to
+ <code class="literal">On</code>. Also make sure you check the content type of the
+ response before you make changes to it (e.g. you don't want to inject
+ stuff into images).</p><p><span class="emphasis"><em>Action Group:</em></span> Non-disruptive</p><p><span class="emphasis"><em>Processing Phases:</em></span> 3 and 4.</p><p>Example:</p><pre class="programlisting">SecRule RESPONSE_CONTENT_TYPE "^text/html" "nolog,pass,<span class="emphasis"><em>append:'<hr>Footer'</em></span>"</pre><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>While macro expansion is allowed in the additional content, you
+ are strongly cautioned against inserting user defined data
+ fields.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1165E"></a><code class="literal">auditlog</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Marks the transaction for
+ logging in the audit log.</p><p><span class="emphasis"><em>Action Group:</em></span> Non-disruptive</p><p>Example:</p><pre class="programlisting">SecRule REMOTE_ADDR "^192\.168\.1\.100$" <span class="emphasis"><em>auditlog</em></span>,phase:1,allow</pre><p><span class="emphasis"><em>Note</em></span></p><p>The auditlog action is now explicit if log is already
+ specified.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11678"></a><code class="literal">block</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Performs the default disruptive
+ action.</p><p><span class="emphasis"><em>Action Group:</em></span> Disruptive</p><p>It is intended to be used by ruleset writers to signify that the
+ rule was intended to block and leaves the "how" up to the administrator.
+ This action is currently a placeholder which will just be replaced by
+ the action from the last <code class="literal">SecDefaultAction</code> in the same
+ context. Using the <code class="literal">block</code> action with the
+ <code class="literal">SecRuleUpdateActionById</code> directive allows a rule to be
+ reverted back to the previous <code class="literal">SecDefaultAction</code>
+ disruptive action.</p><p>In future versions of ModSecurity, more control and functionality
+ will be added to define "how" to block.</p><p>Examples:</p><p>In the following example, the second rule will "deny" because of
+ the SecDefaultAction disruptive action. The intent being that the
+ administrator could easily change this to another disruptive action
+ without editing the actual rules.</p><pre class="programlisting">### Administrator defines "how" to block (deny,status:403)...
+SecDefaultAction phase:2,deny,status:403,log,auditlog
+
+### Included from a rulest...
+# Intent is to warn for this User Agent
+SecRule REQUEST_HEADERS:User-Agent "perl" "phase:2,<span class="emphasis"><em>pass</em></span>,msg:'Perl based user agent identified'"
+# Intent is to block for this User Agent, "how" described in SecDefaultAction
+SecRule REQUEST_HEADERS:User-Agent "nikto" "phase:2,<span class="emphasis"><em>block</em></span>,msg:'Nikto Scanners Identified'"</pre><p>In the following example, The rule is reverted back to the
+ <code class="literal">pass</code> action defined in the SecDefaultAction directive
+ by using the <code class="literal">SecRuleUpdateActionById</code> directive in
+ conjuction with the <code class="literal">block</code> action. This allows an
+ administrator to override an action in a 3rd party rule without
+ modifying the rule itself.</p><pre class="programlisting">### Administrator defines "how" to block (deny,status:403)...
+SecDefaultAction phase:2,pass,log,auditlog
+
+### Included from a rulest...
+SecRule REQUEST_HEADERS:User-Agent "nikto" "id:1,phase:2,<span class="emphasis"><em>deny</em></span>,msg:'Nikto Scanners Identified'"
+
+### Added by the administrator
+SecRuleUpdateActionById 1 "<span class="emphasis"><em>block</em></span>"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N116BD"></a><code class="literal">capture</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> When used together with the
+ regular expression operator, capture action will create copies of
+ regular expression captures and place them into the transaction variable
+ collection. Up to ten captures will be copied on a successful pattern
+ match, each with a name consisting of a digit from 0 to 9.</p><p><span class="emphasis"><em>Action Group:</em></span> Non-disruptive</p><p>Example:</p><pre class="programlisting">SecRule REQUEST_BODY "^username=(\w{25,})" phase:2,<span class="emphasis"><em>capture</em></span>,t:none,chain
+SecRule TX:1 "(?:(?:a(dmin|nonymous)))"</pre><p><span class="emphasis"><em>Note</em></span></p><p>The 0 data captures the entire REGEX match and 1 captures the data
+ in the first parens, etc...</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N116D7"></a><code class="literal">chain</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Chains the rule where the action
+ is placed with the rule that immediately follows it. The result is
+ called a<span class="emphasis"><em> rule chain</em></span>. Chained rules allow for more
+ complex rule matches where you want to use a number of different
+ VARIABLES to create a better rule and to help prevent false
+ positives.</p><p><span class="emphasis"><em>Action Group:</em></span> Flow</p><p>Example:</p><pre class="programlisting"># Refuse to accept POST requests that do
+# not specify request body length. Do note that
+# this rule should be preceeded by a rule that verifies
+# only valid request methods (e.g. GET, HEAD and POST) are used.
+SecRule REQUEST_METHOD ^POST$<span class="emphasis"><em> chain</em></span>,t:none
+SecRule REQUEST_HEADERS:Content-Length ^$ t:none</pre><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>In programming language concepts, think of chained rules
+ somewhat similar to AND conditional statements. The actions specified
+ in the first portion of the chained rule will only be triggered if all
+ of the variable checks return positive hits. If one aspect of the
+ chained rule is negative, then the entire rule chain is negative. Also
+ note that disruptive actions, execution phases, metadata actions (id,
+ rev, msg), skip and skipAfter actions can only be specified on by the
+ chain starter rule.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N116F2"></a><code class="literal">ctl</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> The ctl action allows
+ configuration options to be updated for the transaction.</p><p><span class="emphasis"><em>Action Group:</em></span> Non-disruptive</p><p>Example:</p><pre class="programlisting"># Parse requests with Content-Type "text/xml" as XML
+SecRule REQUEST_CONTENT_TYPE ^text/xml nolog,pass,<span class="emphasis"><em>ctl:requestBodyProcessor=XML</em></span></pre><p><span class="emphasis"><em>Note</em></span></p><p>The following configuration options are supported:</p><div class="orderedlist"><ol type="1"><li><p><code class="literal">auditEngine</code></p></li><li><p><code class="literal">auditLogParts</code></p></li><li><p><code class="literal">debugLogLevel</code></p></li><li><p><code class="literal">ruleRemoveById</code> (single rule
+ ID, or a single rule ID range accepted as parameter)</p></li><li><p><code class="literal">requestBodyAccess</code></p></li><li><p><code class="literal">forceRequestBodyVariable</code></p></li><li><p><code class="literal">requestBodyLimit</code></p></li><li><p><code class="literal">requestBodyProcessor</code></p></li><li><p><code class="literal">responseBodyAccess</code></p></li><li><p><code class="literal">responseBodyLimit</code></p></li><li><p><code class="literal">ruleEngine</code></p></li></ol></div><p>With the exception of<code class="literal">
+ requestBodyProcessor</code> and <code class="literal">
+ forceRequestBodyVariable</code>, each configuration option
+ corresponds to one configuration directive and the usage is
+ identical.</p><p>The <code class="literal">requestBodyProcessor</code> option allows you to
+ configure the request body processor. By default ModSecurity will use
+ the <code class="literal">URLENCODED</code> and<code class="literal"> MULTIPART</code> processors to process an <code class="literal">application/x-www-form-urlencoded</code> and a
+ <code class="literal">multipart/form-data</code> bodies,
+ respectively. A third processor, <code class="literal">XML</code>, is also
+ supported, but it is never used implicitly. Instead you must tell
+ ModSecurity to use it by placing a few rules in the<code class="literal"> REQUEST_HEADERS</code> processing phase. After the
+ request body was processed as XML you will be able to use the
+ XML-related features to inspect it.</p><p>Request body processors will not interrupt a transaction if an
+ error occurs during parsing. Instead they will set variables<code class="literal"> REQBODY_PROCESSOR_ERROR</code> and<code class="literal"> REQBODY_PROCESSOR_ERROR_MSG</code>. These variables
+ should be inspected in the <code class="literal">REQUEST_BODY</code> phase and an appropriate action
+ taken.</p><p>The <code class="literal">forceRequestBodyVariable</code> option allows you
+ to configure the <code class="literal">REQUEST_BODY</code> variable to be set when
+ there is no request body processor configured. This allows for
+ inspection of request bodies of unknown types.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11786"></a><code class="literal">deny</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Stops rule processing and
+ intercepts transaction.</p><p><span class="emphasis"><em>Action Group:</em></span> Disruptive</p><p>Example:</p><pre class="programlisting">SecRule REQUEST_HEADERS:User-Agent "nikto" "log,<span class="emphasis"><em>deny</em></span>,msg:'Nikto Scanners Identified'"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1179B"></a><code class="literal">deprecatevar</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Decrement counter based on its
+ age.</p><p><span class="emphasis"><em>Action Group:</em></span> Non-Disruptive</p><p>Example: The following example will decrement the counter by 60
+ every 300 seconds.</p><pre class="programlisting">SecAction deprecatevar:session.score=60/300</pre><p><span class="emphasis"><em>Note</em></span></p><p>Counter values are always positive, meaning the value will never
+ go below zero.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N117B2"></a><code class="literal">drop</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Immediately initiate a
+ "connection close" action to tear down the TCP connection by sending a
+ FIN packet.</p><p><span class="emphasis"><em>Action Group:</em></span> Disruptive</p><p>Example: The following example initiates an IP collection for
+ tracking Basic Authentication attempts. If the client goes over the
+ threshold of more than 25 attempts in 2 minutes, it will DROP subsequent
+ connections.</p><pre class="programlisting">SecAction phase:1,initcol:ip=%{REMOTE_ADDR},nolog
+SecRule ARGS:login "!^$" \
+ nolog,phase:1,setvar:ip.auth_attempt=+1,deprecatevar:ip.auth_attempt=20/120
+SecRule IP:AUTH_ATTEMPT "@gt 25" \
+ "log,<span class="emphasis"><em>drop</em></span>,phase:1,msg:'Possible Brute Force Attack'"</pre><p><span class="emphasis"><em>Note</em></span></p><p>This action is currently not available on Windows based builds.
+ This action is extremely useful when responding to both Brute Force and
+ Denial of Service attacks in that, in both cases, you want to minimize
+ both the network bandwidth and the data returned to the client. This
+ action causes error message to appear in the log "(9)Bad file
+ descriptor: core_output_filter: writing data to the network"</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N117CC"></a><code class="literal">exec</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Executes an external
+ script/binary supplied as parameter. As of v2.5.0, if the parameter
+ supplied to <code class="literal">exec</code> is a Lua script (detected by the
+ <code class="filename">.lua</code> extension) the script will be processed
+ <span class="emphasis"><em>internally</em></span>. This means you will get direct access
+ to the internal request context from the script. Please read the
+ <code class="literal">SecRuleScript</code> documentation for more details on how
+ to write Lua scripts.</p><p><span class="emphasis"><em>Action Group:</em></span> Non-disruptive</p><p>Example:</p><pre class="programlisting"># The following is going to execute /usr/local/apache/bin/test.sh
+# as a shell script on rule match.
+SecRule REQUEST_URI "^/cgi-bin/script\.pl" \
+ "phase:2,t:none,t:lowercase,t:normalisePath,log,<span class="emphasis"><em>exec:/usr/local/apache/bin/test.sh</em></span>"
+
+# The following is going to process /usr/local/apache/conf/exec.lua
+# internally as a Lua script on rule match.
+SecRule ARGS:p attack log,<span class="emphasis"><em>exec:/usr/local/apache/conf/exec.lua</em></span></pre><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>The exec action is executed independently from any disruptive
+ actions. External scripts will always be called with no parameters.
+ Some transaction information will be placed in environment variables.
+ All the usual CGI environment variables will be there. You should be
+ aware that forking a threaded process results in all threads being
+ replicated in the new process. Forking can therefore incur larger
+ overhead in multi-threaded operation. The script you execute must
+ write something (anything) to stdout. If it doesn't ModSecurity will
+ assume execution didn't work.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N117F5"></a><code class="literal">expirevar</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Configures a collection variable
+ to expire after the given time in seconds.</p><p><span class="emphasis"><em>Action Group:</em></span> Non-disruptive</p><p>Example:</p><pre class="programlisting">SecRule REQUEST_COOKIES:JSESSIONID "!^$" nolog,phase:1,pass,chain
+SecAction setsid:%{REQUEST_COOKIES:JSESSIONID}
+SecRule REQUEST_URI "^/cgi-bin/script\.pl" \
+ "phase:2,t:none,t:lowercase,t:normalisePath,log,allow,\
+setvar:session.suspicious=1,<span class="emphasis"><em>expirevar:session.suspicious=3600</em></span>,phase:1"</pre><p><span class="emphasis"><em>Note</em></span></p><p>You should use expirevar actions at the same time that you use
+ setvar actions in order to keep the indented expiration time. If they
+ are used on their own (perhaps in a SecAction directive) the expire time
+ could get re-set. When variables are removed from collections, and there
+ are no other changes, collections are not written to disk at the end of
+ request. This is because the variables can always be expired again when
+ the collection is read again on a subsequent request.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1180F"></a><code class="literal">id</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Assigns a unique ID to the rule
+ or chain.</p><p><span class="emphasis"><em>Action Group:</em></span> Meta-data</p><p>Example:</p><pre class="programlisting">SecRule &REQUEST_HEADERS:Host "@eq 0" \
+ "log,<span class="emphasis"><em>id:60008</em></span>,severity:2,msg:'Request Missing a Host Header'"</pre><p><span class="emphasis"><em>Note</em></span></p><p>These are the reserved ranges:</p><div class="itemizedlist"><ul type="disc"><li><p>1-99,999; reserved for local (internal) use. Use as you see
+ fit but do not use this range for rules that are distributed to
+ others.</p></li><li><p>100,000-199,999; reserved for internal use of the engine, to
+ assign to rules that do not have explicit IDs.</p></li><li><p>200,000-299,999; reserved for rules published at
+ modsecurity.org.</p></li><li><p>300,000-399,999; reserved for rules published at
+ gotroot.com.</p></li><li><p>400,000-419,999; unused (available for reservation).</p></li><li><p>420,000-429,999; reserved for <a href="http://projects.otaku42.de/wiki/ScallyWhack" target="_top">ScallyWhack</a>.</p></li><li><p>430,000-899,999; unused (available for reservation).</p></li><li><p>900,000-999,999; reserved for the <a href="http://www.modsecurity.org/projects/rules/" target="_top">Core Rules</a>
+ project.</p></li><li><p>1,000,000 and above; unused (available for
+ reservation).</p></li></ul></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1184E"></a><code class="literal">initcol</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Initialises a named persistent
+ collection, either by loading data from storage or by creating a new
+ collection in memory.</p><p><span class="emphasis"><em>Action Group:</em></span> Non-disruptive</p><p>Example: The following example initiates IP address
+ tracking.</p><pre class="programlisting">SecAction <span class="emphasis"><em>phase:1,initcol:ip=%{REMOTE_ADDR}</em></span>,nolog</pre><p><span class="emphasis"><em>Note</em></span></p><p>Normally you will want to use <span class="emphasis"><em>phase:1</em></span> along
+ with <span class="emphasis"><em>initcol</em></span> so that the collection is available in
+ all phases.</p><p>Collections are loaded into memory when the initcol action is
+ encountered. The collection in storage will be persisted (and the
+ appropriate counters increased) <span class="emphasis"><em>only</em></span> if it was
+ changed during transaction processing.</p><p>See the "Persistant Storage" section for further details.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11875"></a><code class="literal">log</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Indicates that a successful
+ match of the rule needs to be logged.</p><p><span class="emphasis"><em>Action Group:</em></span> Non-disruptive</p><p>Example:</p><pre class="programlisting">SecAction phase:1,initcol:ip=%{REMOTE_ADDR},<span class="emphasis"><em>log</em></span></pre><p><span class="emphasis"><em>Note</em></span></p><p>This action will log matches to the Apache error log file and the
+ ModSecurity audit log.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1188E"></a><code class="literal">logdata</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Allows a data fragment to be
+ logged as part of the alert message.</p><p><span class="emphasis"><em>Action Group:</em></span> Non-disruptive</p><p>Example:</p><pre class="programlisting">SecRule &ARGS:p "@eq 0" "log,<span class="emphasis"><em>logdata:'%{TX.0}'"</em></span></pre><p><span class="emphasis"><em>Note</em></span></p><p>The logdata information appears in the error and/or audit log
+ files and is not sent back to the client in response headers. Macro
+ expansion is preformed so you may use variable names such as %{TX.0},
+ etc. The information is properly escaped for use with logging binary
+ data.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N118A7"></a><code class="literal">msg</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Assigns a custom message to the
+ rule or chain.</p><p><span class="emphasis"><em>Action Group:</em></span> Meta-data</p><p>Example:</p><pre class="programlisting">SecRule &REQUEST_HEADERS:Host "@eq 0" \
+ "log,id:60008<span class="emphasis"><em>,</em></span>severity:2,<span class="emphasis"><em>msg:'Request Missing a Host Header'"</em></span></pre><p><span class="emphasis"><em>Note</em></span></p><p>The msg information appears in the error and/or audit log files
+ and is not sent back to the client in response headers.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N118C3"></a><code class="literal">multiMatch</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> If enabled ModSecurity will
+ perform multiple operator invocations for every target, before and after
+ every anti-evasion transformation is performed.</p><p><span class="emphasis"><em>Action Group:</em></span> Non-disruptive</p><p>Example:</p><pre class="programlisting">SecDefaultAction log,deny,phase:1,t:removeNulls,t:lowercase
+SecRule ARGS "attack" <span class="emphasis"><em>multiMatch</em></span></pre><p><span class="emphasis"><em>Note</em></span></p><p>Normally, variables are evaluated once, only after all
+ transformation functions have completed. With multiMatch, variables are
+ checked against the operator before and after every transformation
+ function that changes the input.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N118DC"></a><code class="literal">noauditlog</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Indicates that a successful
+ match of the rule should not be used as criteria whether the transaction
+ should be logged to the audit log.</p><p><span class="emphasis"><em>Action Group:</em></span> Non-disruptive</p><p>Example:</p><pre class="programlisting">SecRule REQUEST_HEADERS:User-Agent "Test" allow,<span class="emphasis"><em>noauditlog</em></span></pre><p><span class="emphasis"><em>Note</em></span></p><p>If the SecAuditEngine is set to On, all of the transactions will
+ be logged. If it is set to RelevantOnly, then you can control it with
+ the noauditlog action. Even if the noauditlog action is applied to a
+ specific rule and a rule either before or after triggered an audit
+ event, then the transaction will be logged to the audit log. The correct
+ way to disable audit logging for the entire transaction is to use
+ "<code class="literal">ctl:auditEngine=Off</code>"</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N118F9"></a><code class="literal">nolog</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Prevents rule matches from
+ appearing in both the error and audit logs.</p><p><span class="emphasis"><em>Action Group:</em></span> Non-disruptive</p><p>Example:</p><pre class="programlisting">SecRule REQUEST_HEADERS:User-Agent "Test" allow,<span class="emphasis"><em>nolog</em></span></pre><p><span class="emphasis"><em>Note</em></span></p><p>The nolog action also implies noauditlog.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11912"></a><code class="literal">pass</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Continues processing with the
+ next rule in spite of a successful match.</p><p><span class="emphasis"><em>Action Group:</em></span> Disruptive</p><p>Example1:</p><pre class="programlisting">SecRule REQUEST_HEADERS:User-Agent "Test" log,<span class="emphasis"><em>pass</em></span></pre><p>When using <span class="emphasis"><em>pass</em></span> with SecRule with multiple
+ targets, <span class="emphasis"><em>all</em></span> targets will be processed and
+ <span class="emphasis"><em>all</em></span> non-disruptive actions will trigger for
+ <span class="emphasis"><em>every</em></span> match found. In the second example the
+ TX:test target would be incremented by 1 for each matching
+ argument.</p><p>Example2:</p><pre class="programlisting">SecRule ARGS "test" log,<span class="emphasis"><em>pass</em></span>,setvar:TX.test=+1</pre><p><span class="emphasis"><em>Note</em></span></p><p>The transaction will not be interrupted but a log will be
+ generated for each matching target (unless logging has been
+ suppressed).</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11941"></a><code class="literal">pause</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Pauses transaction processing
+ for the specified number of milliseconds.</p><p><span class="emphasis"><em>Action Group:</em></span> Non-disruptive</p><p>Example:</p><pre class="programlisting">SecRule REQUEST_HEADERS:User-Agent "Test" log,deny,status:403,<span class="emphasis"><em>pause:5000</em></span></pre><p><span class="emphasis"><em>Note</em></span></p><p>This feature can be of limited benefit for slowing down Brute
+ Force Scanners, however use with care. If you are under a Denial of
+ Service type of attack, the pause feature may make matters worse as this
+ feature will cause child processes to sit idle until the pause is
+ completed.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1195A"></a><code class="literal">phase</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Places the rule (or the rule
+ chain) into one of five available processing phases.</p><p><span class="emphasis"><em>Action Group:</em></span> Meta-data</p><p>Example:</p><pre class="programlisting">SecDefaultAction log,deny,<span class="emphasis"><em>phase:1</em></span>,t:removeNulls,t:lowercase
+SecRule REQUEST_HEADERS:User-Agent "Test" log,deny,status:403</pre><p><span class="emphasis"><em>Note</em></span></p><p>Keep in mind that is you specify the incorrect phase, the target
+ variable that you specify may be empty. This could lead to a false
+ negative situation where your variable and operator (RegEx) may be
+ correct, but it misses malicious data because you specified the wrong
+ phase.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11974"></a>prepend</h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Prepends text given as parameter
+ to the response body. For this action to work content injection must be
+ enabled by setting <code class="literal">SecContentInjection</code> to
+ <code class="literal">On</code>. Also make sure you check the content type of the
+ response before you make changes to it (e.g. you don't want to inject
+ stuff into images).</p><p><span class="emphasis"><em>Action Group:</em></span> Non-disruptive</p><p><span class="emphasis"><em>Processing Phases:</em></span> 3 and 4.</p><p>Example:</p><pre class="programlisting">SecRule RESPONSE_CONTENT_TYPE ^text/html "phase:3,nolog,pass,<span class="emphasis"><em>prepend:'Header<br>'</em></span>"</pre><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>While macro expansion is allowed in the additional content, you
+ are strongly cautioned against inserting user defined data
+ fields.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11996"></a><code class="literal">proxy</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Intercepts transaction by
+ forwarding request to another web server using the proxy backend.</p><p><span class="emphasis"><em>Action Group:</em></span> Disruptive</p><p>Example:</p><pre class="programlisting">SecRule REQUEST_HEADERS:User-Agent "Test" log,<span class="emphasis"><em>proxy:http://www.honeypothost.com/</em></span></pre><p><span class="emphasis"><em>Note</em></span></p><p>For this action to work, mod_proxy must also be installed. This
+ action is useful if you would like to proxy matching requests onto a
+ honeypot webserver.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N119AF"></a><code class="literal">redirect</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Intercepts transaction by
+ issuing a redirect to the given location.</p><p><span class="emphasis"><em>Action Group:</em></span> Disruptive</p><p>Example:</p><pre class="programlisting">SecRule REQUEST_HEADERS:User-Agent "Test" \
+ log,<span class="emphasis"><em>redirect:http://www.hostname.com/failed.html</em></span></pre><p><span class="emphasis"><em>Note</em></span></p><p>If the <code class="literal">status</code> action is present
+ and its value is acceptable (301, 302, 303, or 307) it will be used for
+ the redirection. Otherwise status code 302 will be used.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N119CC"></a><code class="literal">rev</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Specifies rule revision.</p><p><span class="emphasis"><em>Action Group:</em></span> Meta-data</p><p>Example:</p><pre class="programlisting">SecRule REQUEST_METHOD "^PUT$" "id:340002,<span class="emphasis"><em>rev:1</em></span>,severity:2,msg:'Restricted HTTP function'"</pre><p><span class="emphasis"><em>Note</em></span></p><p>This action is used in combination with the <code class="literal">id</code> action to allow the same rule ID to be used
+ after changes take place but to still provide some indication the rule
+ changed.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N119EA"></a><code class="literal">sanitiseArg</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Sanitises (replaces each byte
+ with an asterisk) a named request argument prior to audit
+ logging.</p><p><span class="emphasis"><em>Action Group:</em></span> Non-disruptive</p><p>Example:</p><pre class="programlisting">SecAction nolog,phase:2,<span class="emphasis"><em>sanitiseArg:password</em></span></pre><p><span class="emphasis"><em>Note</em></span></p><p>The sanitize actions do not sanitize any data within the actual
+ raw requests but only on the copy of data within memory that is set to
+ log to the audit log. It will not sanitize the data in the
+ modsec_debug.log file (if the log level is set high enough to capture
+ this data).</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11A03"></a><code class="literal">sanitiseMatched</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Sanitises the variable (request
+ argument, request header, or response header) that caused a rule
+ match.</p><p><span class="emphasis"><em>Action Group:</em></span> Non-disruptive</p><p>Example: This action can be used to sanitise arbitrary transaction
+ elements when they match a condition. For example, the example below
+ will sanitise any argument that contains the word<span class="emphasis"><em>
+ password</em></span> in the name.</p><pre class="programlisting">SecRule ARGS_NAMES password nolog,pass,<span class="emphasis"><em>sanitiseMatched</em></span></pre><p><span class="emphasis"><em>Note</em></span></p><p>Same note as sanitiseArg.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11A1F"></a><code class="literal">sanitiseRequestHeader</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Sanitises a named request
+ header.</p><p><span class="emphasis"><em>Action Group:</em></span> Non-disruptive</p><p>Example: This will sanitise the data in the Authorization
+ header.</p><pre class="programlisting">SecAction log,phase:1,<span class="emphasis"><em>sanitiseRequestHeader:Authorization</em></span></pre><p><span class="emphasis"><em>Note</em></span></p><p>Same note as sanitiseArg.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11A38"></a><code class="literal">sanitiseResponseHeader</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Sanitises a named response
+ header.</p><p><span class="emphasis"><em>Action Group:</em></span> Non-disruptive</p><p>Example: This will sanitise the Set-Cookie data sent to the
+ client.</p><pre class="programlisting">SecAction log,phase:3,<span class="emphasis"><em>sanitiseResponseHeader:Set-Cookie</em></span></pre><p><span class="emphasis"><em>Note</em></span></p><p>Same note as sanitiseArg.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11A51"></a><code class="literal">severity</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Assigns severity to the rule it
+ is placed with.</p><p><span class="emphasis"><em>Action Group:</em></span> Meta-data</p><p>Example:</p><pre class="programlisting">SecRule REQUEST_METHOD "^PUT$" "id:340002,rev:1,<span class="emphasis"><em>severity:CRITICAL</em></span>,msg:'Restricted HTTP function'"</pre><p><span class="emphasis"><em>Note</em></span></p><p>Severity values in ModSecurity follow those of syslog, as
+ below:</p><div class="itemizedlist"><ul type="disc"><li><p>0 - EMERGENCY</p></li><li><p>1 - ALERT</p></li><li><p>2 - CRITICAL</p></li><li><p>3 - ERROR</p></li><li><p>4 - WARNING</p></li><li><p>5 - NOTICE</p></li><li><p>6 - INFO</p></li><li><p>7 - DEBUG</p></li></ul></div><p>It is possible to specify severity levels using either the
+ numerical values or the text values. You should always specify severity
+ levels using the text values. The use of the numerical values is
+ deprecated (as of v2.5.0) and may be removed in one of the susequent
+ major updates.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11A86"></a><code class="literal">setuid</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Special-purpose action that
+ initialises the <code class="literal">USER</code>
+ collection.</p><p><span class="emphasis"><em>Action Group:</em></span> Non-disruptive</p><p>Example:</p><pre class="programlisting">SecAction <span class="emphasis"><em>setuid:%{REMOTE_USER}</em></span>,nolog</pre><p><span class="emphasis"><em>Note</em></span></p><p>After initialisation takes place the variable <code class="literal">USERID</code> will be available for use in the
+ subsequent rules.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11AA8"></a><code class="literal">setsid</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Special-purpose action that
+ initialises the <code class="literal">SESSION</code>
+ collection.</p><p><span class="emphasis"><em>Action Group: </em></span>Non-disruptive</p><p>Example:</p><pre class="programlisting"># Initialise session variables using the session cookie value
+SecRule REQUEST_COOKIES:PHPSESSID !^$ chain,nolog,pass
+SecAction <span class="emphasis"><em>setsid:%{REQUEST_COOKIES.PHPSESSID}</em></span></pre><p><span class="emphasis"><em>Note</em></span></p><p>On first invocation of this action the collection will be empty
+ (not taking the predefined variables into account - see <code class="literal">initcol</code> for more information). On subsequent
+ invocations the contents of the collection (session, in this case) will
+ be retrieved from storage. After initialisation takes place the
+ variable<code class="literal"> SESSIONID</code> will be available
+ for use in the subsequent rules.This action understands each application
+ maintains its own set of sessions. It will utilise the current web
+ application ID to create a session namespace.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11ACD"></a><code class="literal">setenv</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Creates, removes, or updates an
+ environment variable.</p><p><span class="emphasis"><em>Action Group:</em></span> Non-disruptive</p><p>Examples:</p><p>To create a new variable (if you omit the value <code class="literal">1</code> will be used):</p><pre class="programlisting">setenv:name=value</pre><p>To remove a variable:</p><pre class="programlisting">setenv:!name</pre><p><span class="emphasis"><em>Note</em></span></p><p>This action can be used to establish communication with other
+ Apache modules.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11AEF"></a><code class="literal">setvar</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Creates, removes, or updates a
+ variable in the specified collection.</p><p><span class="emphasis"><em>Action Group:</em></span> Non-disruptive</p><p>Examples:</p><p>To create a new variable:</p><pre class="programlisting">setvar:tx.score=10</pre><p>To remove a variable prefix the name with exclamation mark:</p><pre class="programlisting">setvar:!tx.score</pre><p>To increase or decrease variable value use <code class="literal">+</code> and <code class="literal">-</code>
+ characters in front of a numerical value:</p><pre class="programlisting">setvar:tx.score=+5</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11B15"></a><code class="literal">skip</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Skips one or more rules (or
+ chains) on successful match.</p><p><span class="emphasis"><em>Action Group:</em></span> Flow</p><p>Example:</p><p><pre class="programlisting">SecRule REQUEST_URI "^/$" \
+"phase:2,chain,t:none<span class="emphasis"><em>,skip:2</em></span>"
+SecRule REMOTE_ADDR "^127\.0\.0\.1$" "chain"
+SecRule REQUEST_HEADERS:User-Agent "^Apache \(internal dummy connection\)$" "t:none"
+SecRule &REQUEST_HEADERS:Host "@eq 0" \
+ "deny,log,status:400,id:960008,severity:4,msg:'Request Missing a Host Header'"
+SecRule &REQUEST_HEADERS:Accept "@eq 0" \
+ "log,deny,log,status:400,id:960015,msg:'Request Missing an Accept Header'"</pre></p><p><span class="emphasis"><em>Note</em></span></p><p>Skip only applies to the current processing phase and not
+ necessarily the order in which the rules appear in the configuration
+ file. If you group rules by processing phases, then skip should work as
+ expected. This action can not be used to skip rules within one chain.
+ Accepts a single parameter denoting the number of rules (or chains) to
+ skip.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11B30"></a><code class="literal">skipAfter</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Skips rules (or chains) on
+ successful match resuming rule execution after the specified rule ID or
+ marker (see <code class="literal">SecMarker</code>) is found.</p><p><span class="emphasis"><em>Action Group:</em></span> Flow</p><p>Example:</p><p><pre class="programlisting">SecRule REQUEST_URI "^/$" "chain,t:none,<span class="emphasis"><em>skipAfter:960015</em></span>"
+SecRule REMOTE_ADDR "^127\.0\.0\.1$" "chain"
+SecRule REQUEST_HEADERS:User-Agent "^Apache \(internal dummy connection\)$" "t:none"
+SecRule &REQUEST_HEADERS:Host "@eq 0" \
+ "deny,log,status:400,id:960008,severity:4,msg:'Request Missing a Host Header'"
+SecRule &REQUEST_HEADERS:Accept "@eq 0" \
+ "log,deny,log,status:400,id:960015,msg:'Request Missing an Accept Header'"</pre></p><p><span class="emphasis"><em>Note</em></span></p><p><code class="literal">SkipAfter</code> only applies to the current
+ processing phase and not necessarily the order in which the rules appear
+ in the configuration file. If you group rules by processing phases, then
+ skip should work as expected. This action can not be used to skip rules
+ within one chain. Accepts a single parameter denoting the last rule ID
+ to skip.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11B52"></a><code class="literal">status</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Specifies the response status
+ code to use with actions<code class="literal"> deny</code>
+ and<code class="literal"> redirect</code>.</p><p><span class="emphasis"><em>Action Group:</em></span> Data</p><p>Example:</p><pre class="programlisting">SecDefaultAction log,deny,<span class="emphasis"><em>status:403</em></span>,phase:1</pre><p><span class="emphasis"><em>Note</em></span></p><p>Status actions defined in Apache scope locations (such as
+ Directory, Location, etc...) may be superseded by phase:1 action
+ settings. The Apache ErrorDocument directive will be triggered if
+ present in the configuration. Therefore if you have previously defined a
+ custom error page for a given status then it will be executed and its
+ output presented to the user.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11B74"></a><code class="literal">t</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> This action can be used which
+ transformation function should be used against the specified variables
+ before they (or the results, rather) are run against the operator
+ specified in the rule.</p><p><span class="emphasis"><em>Action Group:</em></span> Non-disruptive</p><p>Example:</p><pre class="programlisting">SecDefaultAction log,deny,phase:1,t:removeNulls,t:lowercase
+SecRule REQUEST_COOKIES:SESSIONID "47414e81cbbef3cf8366e84eeacba091" \
+ log,deny,status:403,<span class="emphasis"><em>t:md5,t:hexEncode</em></span></pre><p><span class="emphasis"><em>Note</em></span></p><p>Any transformation functions that you specify in a SecRule will be
+ in addition to previous ones specified in SecDefaultAction. Use of
+ "t:none" will remove all transformation functions for the specified
+ rule.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11B8D"></a><code class="literal">tag</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Assigns custom text to a rule or
+ chain.</p><p><span class="emphasis"><em>Action Group:</em></span> Meta-data</p><p>Example:</p><pre class="programlisting">SecRule REQUEST_FILENAME "\b(?:n(?:map|et|c)|w(?:guest|sh)|cmd(?:32)?|telnet|rcmd|ftp)\.exe\b" \
+ "t:none,t:lowercase,deny,msg:'System Command Access',id:'950002',<span class="emphasis"><em>\
+tag:'WEB_ATTACK/FILE_INJECTION',tag:'OWASP/A2'</em></span>,severity:'2'"</pre><p><span class="emphasis"><em>Note</em></span></p><p>The tag information appears in the error and/or audit log files.
+ Its intent is to be used to automate classification of rules and the
+ alerts generated by rules. Multiple tags can be used per
+ rule/chain.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11BA7"></a><code class="literal">xmlns</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> This action should be used
+ together with an XPath expression to register a namespace.</p><p><span class="emphasis"><em>Action Group:</em></span> Data</p><p>Example:</p><pre class="programlisting">SecRule REQUEST_HEADERS:Content-Type "text/xml" \
+ "phase:1,pass,ctl:requestBodyProcessor=XML,ctl:requestBodyAccess=On,<span class="emphasis"><em> \
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"</em></span>
+SecRule XML:/soap:Envelope/soap:Body/q1:getInput/id() "123" phase:2,deny</pre></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="operators"></a>Operators</h2></div></div><div></div></div><p>A number of operators can be used in rules, as documented below. The
+ operator syntax uses the <code class="literal">@</code> symbol followed by the
+ specific operator name.</p><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11BC6"></a><code class="literal">beginsWith</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> This operator is a string
+ comparison and returns true if the parameter value is found at the
+ beginning of the input. Macro expansion is performed so you may use
+ variable names such as <code class="literal">%{TX.1}</code>, etc.</p><p>Example:</p><pre class="programlisting">SecRule REQUEST_LINE "!<span class="emphasis"><em>@beginsWith GET</em></span>" t:none,deny,status:403
+SecRule REQUEST_ADDR "^(.*)\.\d+$" deny,status:403,capture,chain
+SecRule ARGS:gw "!<span class="emphasis"><em>@beginsWith %{TX.1}</em></span>"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11BDE"></a><code class="literal">contains</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> This operator is a string
+ comparison and returns true if the parameter value is found anywhere in
+ the input. Macro expansion is performed so you may use variable names
+ such as %{TX.1}, etc.</p><p>Example:</p><pre class="programlisting">SecRule REQUEST_LINE "!<span class="emphasis"><em>@contains .php</em></span>" t:none,deny,status:403
+SecRule REQUEST_ADDR "^(.*)$" deny,status:403,capture,chain
+SecRule ARGS:ip "!<span class="emphasis"><em>@contains %{TX.1}</em></span>"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11BF2"></a><code class="literal">endsWith</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> This operator is a string
+ comparison and returns true if the parameter value is found at the end
+ of the input. Macro expansion is performed so you may use variable names
+ such as %{TX.1}, etc.</p><p>Example:</p><pre class="programlisting">SecRule REQUEST_LINE "!<span class="emphasis"><em>@endsWith HTTP/1.1</em></span>" t:none,deny,status:403
+SecRule ARGS:route "!<span class="emphasis"><em>@endsWith %{REQUEST_ADDR}</em></span>" t:none,deny,status:403</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11C06"></a><code class="literal">eq</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> This operator is a numerical
+ comparison and stands for "equal to."</p><p>Example:</p><pre class="programlisting">SecRule &REQUEST_HEADERS_NAMES "<span class="emphasis"><em>@eq</em></span> 15"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11C17"></a><code class="literal">ge</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> This operator is a numerical
+ comparison and stands for "greater than or equal to."</p><p>Example:</p><pre class="programlisting">SecRule &REQUEST_HEADERS_NAMES "<span class="emphasis"><em>@ge</em></span> 15"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11C28"></a><code class="literal">geoLookup</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> This operator looks up various
+ data fields from an IP address or hostname in the target data. The
+ results will be captured in the <code class="literal">GEO</code>
+ collection.</p><p>You must provide a database via <code class="literal">SecGeoLookupDb</code> before this operator can be
+ used.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This operator matches and the action is executed on a <span class="emphasis"><em>
+ successful</em></span> lookup. For this reason, you probably want to
+ use the <span class="emphasis"><em>pass,nolog</em></span> actions. This allows for
+ <code class="literal">setvar</code> and other non-disruptive
+ actions to be executed on a match. If you wish to block on a failed
+ lookup, then do something like this (look for an empty GEO
+ collection):</p><pre class="programlisting">SecGeoLookupDb /usr/local/geo/data/GeoLiteCity.dat
+...
+SecRule REMOTE_ADDR "@geoLookup" "pass,nolog"
+SecRule &GEO "@eq 0" "deny,status:403,msg:'Failed to lookup IP'"</pre></div><p>See the <code class="literal">GEO</code> variable for an
+ example and more information on various fields available.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11C51"></a><code class="literal">gt</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> This operator is a numerical
+ comparison and stands for "greater than."</p><p>Example:</p><pre class="programlisting">SecRule &REQUEST_HEADERS_NAMES "<span class="emphasis"><em>@gt</em></span> 15"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11C62"></a><code class="literal">inspectFile</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Executes the external
+ script/binary given as parameter to the operator against every file
+ extracted from the request. As of v2.5.0, if the supplied filename is
+ not absolute it is treated as relative to the directory in which the
+ configuration file resides. Also as of v2.5.0, if the filename is
+ determined to be a Lua script (based on its extension) the script will
+ be processed by the internal engine. As such it will have full access to
+ the ModSecurity context.</p><p>Example of using an external binary/script:</p><pre class="programlisting"># Execute external script to validate uploaded files.
+SecRule FILES_TMPNAMES "<span class="emphasis"><em>@inspectFile</em></span> /opt/apache/bin/inspect_script.pl"</pre><p>Example of using Lua script:</p><pre class="programlisting">SecRule FILES_TMPNANMES "@inspectFile <span class="emphasis"><em>inspect.lua</em></span>"</pre><p>Script <code class="filename">inspect.lua</code>:</p><pre class="programlisting">function main(filename)
+ -- Do something to the file to verify it. In this example, we
+ -- read up to 10 characters from the beginning of the file.
+ local f = io.open(filename, "rb");
+ local d = f:read(10);
+ f:close();
+
+ -- Return null if there is no reason to believe there is ansything
+ -- wrong with the file (no match). Returning any text will be taken
+ -- to mean a match should be trigerred.
+ return null;
+end</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11C84"></a><code class="literal">le</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> This operator is a numerical
+ comparison and stands for "less than or equal to."</p><p>Example:</p><pre class="programlisting">SecRule &REQUEST_HEADERS_NAMES "<span class="emphasis"><em>@le</em></span> 15"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11C95"></a><code class="literal">lt</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> This operator is a numerical
+ comparison and stands for "less than."</p><p>Example:</p><pre class="programlisting">SecRule &REQUEST_HEADERS_NAMES "<span class="emphasis"><em>@lt</em></span> 15"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11CA6"></a><code class="literal">pm</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Phrase Match operator. This
+ operator uses a set based matching engine (Aho-Corasick) for faster
+ matches of keyword lists. It will match any one of its arguments
+ anywhere in the target value. The match is case insensitive.</p><p>Example:</p><pre class="programlisting">SecRule REQUEST_HEADERS:User-Agent "<span class="emphasis"><em>@pm</em></span> WebZIP WebCopier Webster WebStripper SiteSnagger ProWebWalker CheeseBot" "deny,status:403</pre><p>The above would deny access with 403 if any of the words matched
+ within the User-Agent HTTP header value.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11CB9"></a><code class="literal">pmFromFile</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Phrase Match operator. This
+ operator uses a set based matching engine (Aho-Corasick) for faster
+ matches of keyword lists. This operator is the same as
+ <code class="literal">@pm</code> except that it takes a list of files as
+ arguments. It will match any one of the phrases listed in the file(s)
+ anywhere in the target value.</p><p>Notes:</p><div class="orderedlist"><ol type="1"><li><p>The contents of the files should be one phrase per line. End
+ of line markers will be stripped from the phrases, however,
+ whitespace will not be trimmed from phrases in the file. Empty lines
+ and comment lines (beginning with a '#') are ignored.</p></li><li><p>To allow easier inclusion of phrase files with rulesets,
+ relative paths may be used to the phrase files. In this case, the
+ path of the file containing the rule is prepended to the phrase file
+ path.</p></li></ol></div><p>Example:</p><pre class="programlisting">SecRule REQUEST_HEADERS:User-Agent "<span class="emphasis"><em>@pm</em></span> /path/to/blacklist1 blacklist2" "deny,status:403</pre><p>The above would deny access with 403 if any of the patterns in the
+ two files matched within the User-Agent HTTP header value. The
+ <code class="literal">blacklist2</code> file would need to be placed in the same
+ path as the file containing the rule.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11CDF"></a><code class="literal">rbl</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Look up the parameter in the RBL
+ given as parameter. Parameter can be an IPv4 address, or a
+ hostname.</p><p>Example:</p><pre class="programlisting">SecRule REMOTE_ADDR "<span class="emphasis"><em>@rbl</em></span> sc.surbl.org"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11CF0"></a><code class="literal">rx</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Regular expression operator.
+ This is the default operator, so if the "@" operator is not defined, it
+ is assumed to be rx.</p><p>Example:</p><pre class="programlisting">SecRule REQUEST_HEADERS:User-Agent "<span class="emphasis"><em>@rx</em></span> nikto"</pre><p><span class="emphasis"><em>Note</em></span></p><p>Regular expressions are handled by the PCRE library (<a href="http://www.pcre.org" target="_top">http://www.pcre.org</a>). ModSecurity
+ compiles its regular expressions with the following settings:</p><div class="orderedlist"><ol type="1"><li><p>The entire input is treated as a single line, even when there
+ are newline characters present.</p></li><li><p>All matches are case-sensitive. If you do not care about case
+ sensitivity you either need to implement the <code class="literal">lowercase</code> transformation function, or use
+ the per-pattern<code class="literal">(?i)</code>modifier, as
+ allowed by PCRE.</p></li><li><p>The <code class="literal">PCRE_DOTALL</code> and
+ <code class="literal">PCRE_DOLLAR_ENDONLY</code> flags are set
+ during compilation, meaning a single dot will match any character,
+ including the newlines and a <code class="literal">$</code>
+ end anchor will not match a trailing newline character.</p></li></ol></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11D2A"></a><code class="literal">streq</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> This operator is a string
+ comparison and returns true if the parameter value matches the input
+ exactly. Macro expansion is performed so you may use variable names such
+ as %{TX.1}, etc.</p><p>Example:</p><pre class="programlisting">SecRule ARGS:foo "!<span class="emphasis"><em>@streq bar</em></span>" t:none,deny,status:403
+SecRule REQUEST_ADDR "^(.*)$" deny,status:403,capture,chain
+SecRule REQUEST_HEADERS:Ip-Address "!<span class="emphasis"><em>@streq %{TX.1}</em></span>"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11D3E"></a><code class="literal">validateByteRange</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Validates the byte range used in
+ the variable falls into the specified range.</p><p>Example:</p><pre class="programlisting">SecRule ARGS:text "<span class="emphasis"><em>@validateByteRange</em></span> 10, 13, 32-126"</pre><p><span class="emphasis"><em>Note</em></span></p><p>You can force requests to consist only of bytes from a certain
+ byte range. This can be useful to avoid stack overflow attacks (since
+ they usually contain "random" binary content). Default range values are
+ 0 and 255, i.e. all byte values are allowed. This directive does not
+ check byte range in a POST payload when
+ <code class="literal">multipart/form-data</code> encoding (file upload) is used.
+ Doing so would prevent binary files from being uploaded. However, after
+ the parameters are extracted from such request they are checked for a
+ valid range.</p><p>validateByteRange is similar to the ModSecurity 1.X
+ SecFilterForceByteRange Directive however since it works in a rule
+ context, it has the following differences:</p><div class="itemizedlist"><ul type="disc"><li><p>You can specify a different range for different
+ variables.</p></li><li><p>It has an "event" context (id, msg....)</p></li><li><p>It is executed in the flow of rules rather than being a built
+ in pre-check.</p></li></ul></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11D64"></a><code class="literal">validateDTD</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Validates the DOM tree generated
+ by the XML request body processor against the supplied DTD.</p><p>Example:</p><pre class="programlisting">SecDefaultAction log,deny,status:403,phase:2
+SecRule REQUEST_HEADERS:Content-Type ^text/xml$ \
+ phase:1,t:lowercase,nolog,pass,ctl:requestBodyProcessor=XML
+SecRule REQBODY_PROCESSOR "!^XML$" nolog,pass,skipAfter:12345
+SecRule XML "<span class="emphasis"><em>@validateDTD /path/to/apache2/conf/xml.dtd</em></span>" "deny,id:12345"</pre><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This operator requires request body to be processed as
+ XML.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11D78"></a><code class="literal">validateSchema</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Validates the DOM tree generated
+ by the XML request body processor against the supplied XML
+ Schema.</p><p>Example:</p><pre class="programlisting">SecDefaultAction log,deny,status:403,phase:2
+SecRule REQUEST_HEADERS:Content-Type ^text/xml$ \
+ phase:1,t:lowercase,nolog,pass,ctl:requestBodyProcessor=XML
+SecRule REQBODY_PROCESSOR "!^XML$" nolog,pass,skipAfter:12345
+SecRule XML "<span class="emphasis"><em>@validateSchema /path/to/apache2/conf/xml.xsd</em></span>" "deny,id:12345"</pre><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This operator requires request body to be processed as
+ XML.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11D8C"></a><code class="literal">validateUrlEncoding</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Verifies the encodings used in
+ the variable (if any) are valid.</p><p>Example:</p><pre class="programlisting">SecRule ARGS "<span class="emphasis"><em>@validateUrlEncoding</em></span>"</pre><p><span class="emphasis"><em>Note</em></span></p><p>URL encoding is an HTTP standard for encoding byte values within a
+ URL. The byte is escaped with a % followed by two hexadecimal values
+ (0-F). This directive does not check encoding in a POST payload when the
+ <code class="literal">multipart/form-data</code> encoding (file upload) is used.
+ It is not necessary to do so because URL encoding is not used for this
+ encoding.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11DA6"></a><code class="literal">validateUtf8Encoding</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> Verifies the variable is a valid
+ UTF-8 encoded string.</p><p>Example:</p><pre class="programlisting">SecRule ARGS "<span class="emphasis"><em>@validateUtf8Encoding</em></span>"</pre><p><span class="emphasis"><em>Note</em></span></p><p>UTF-8 encoding is valid on most web servers. Integer values
+ between 0-65535 are encoded in a UTF-8 byte sequence that is escaped by
+ percents. The short form is two bytes in length.</p><p>check for three types of errors:</p><div class="itemizedlist"><ul type="disc"><li><p>Not enough bytes. UTF-8 supports two, three, four, five, and
+ six byte encodings. ModSecurity will locate cases when a byte or
+ more is missing.</p></li><li><p>Invalid encoding. The two most significant bits in most
+ characters are supposed to be fixed to 0x80. Attackers can use this
+ to subvert Unicode decoders.</p></li><li><p>Overlong characters. ASCII characters are mapped directly into
+ the Unicode space and are thus represented with a single byte.
+ However, most ASCII characters can also be encoded with two, three,
+ four, five, and six characters thus tricking the decoder into
+ thinking that the character is something else (and, presumably,
+ avoiding the security check).</p></li></ul></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11DC8"></a><code class="literal">verifyCC</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> This operator verifies a given
+ regular expression as a potential credit card number. It first matches
+ with a single generic regular expression then runs the resulting match
+ through a Luhn checksum algorithm to further verify it as a potential
+ credit card number.</p><p>Example:</p><pre class="programlisting">SecRule ARGS "<span class="emphasis"><em>@verifyCC \d{13,16}</em></span>" \
+ "phase:2,sanitiseMatched,log,auditlog,pass,msg:'Potential credit card number'"</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11DD9"></a><code class="literal">within</code></h3></div></div><div></div></div><p><span class="emphasis"><em>Description:</em></span> This operator is a string
+ comparison and returns true if the input value is found anywhere within
+ the parameter value. Note that this is similar to
+ <code class="literal">@contains</code>, except that the target and match values
+ are reversed. Macro expansion is performed so you may use variable names
+ such as %{TX.1}, etc.</p><p>Example:</p><pre class="programlisting">SecRule REQUEST_METHOD "!<span class="emphasis"><em>@within get,post,head</em></span>" t:lowercase,deny,status:403
+
+SecAction "pass,setvar:'tx.allowed_methods=get,post,head'"
+SecRule REQUEST_METHOD "!<span class="emphasis"><em>@within %{tx.allowed_methods}</em></span>" t:lowercase,deny,status:403</pre></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="N11DF1"></a>Macro Expansion</h2></div></div><div></div></div><p>Macros allow for using place holders in rules that will be expanded
+ out to their values at runtime. Currently only variable expansion is
+ supported, however more options may be added in future versions of
+ ModSecurity.</p><p>Format:</p><pre class="programlisting">%{VARIABLE}
+%{COLLECTION.VARIABLE}</pre><p>Macro expansion can be used in actions such as initcol, setsid,
+ setuid, setvar, setenv, logdata. Operators that are evaluated at runtime
+ support expansion and are noted above. Such operators include @beginsWith,
+ @endsWith, @contains, @within and @streq. You cannot use macro expansion
+ for operators that are "compiled" such as @pm, @rx, etc. as these
+ operators have their values fixed at configure time for efficiency.</p><p>Some values you may want to expand include: TX, REMOTE_ADDR, USERID,
+ HIGHEST_SEVERITY, MATCHED_VAR, MATCHED_VAR_NAME, MULTIPART_STRICT_ERROR,
+ RULE, SESSION, USERID, among others.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="N11DFF"></a>Persistant Storage</h2></div></div><div></div></div><p>At this time it is only possible to have three collections in which
+ data is stored persistantly (i.e. data available to multiple requests).
+ These are: <code class="literal">IP</code>, <code class="literal"> SESSION</code> and <code class="literal">USER</code>.</p><p>Every collection contains several built-in variables that are
+ available and are read-only unless otherwise specified:</p><div class="orderedlist"><ol type="1"><li><p><code class="literal">CREATE_TIME</code> - date/time of
+ the creation of the collection.</p></li><li><p><code class="literal">IS_NEW</code> - set to 1 if the
+ collection is new (not yet persisted) otherwise set to 0.</p></li><li><p><code class="literal">KEY</code> - the value of the
+ initcol variable (the client's IP address in the example).</p></li><li><p><code class="literal">LAST_UPDATE_TIME</code> - date/time
+ of the last update to the collection.</p></li><li><p><code class="literal">TIMEOUT</code> - date/time in
+ seconds when the collection will be updated on disk from memory (if no
+ other updates occur). This variable may be set if you wish to specifiy
+ an explicit expiration time (default is 3600 seconds).</p></li><li><p><code class="literal">UPDATE_COUNTER</code> - how many
+ times the collection has been updated since creation.</p></li><li><p><code class="literal">UPDATE_RATE</code> - is the average
+ rate updates per minute since creation.</p></li></ol></div><p>To create a collection to hold session variables (<code class="literal">SESSION</code>) use action <code class="literal">setsid</code>. To create a collection to hold user
+ variables (<code class="literal">USER</code>) use action <code class="literal">setuid</code>. To create a collection to hold client
+ address variables (<code class="literal">IP</code>) use action
+ <code class="literal">initcol</code>.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>ModSecurity implements atomic updates of persistent variables only
+ for integer variables (counters) at this time. Variables are read from
+ storage whenever <code class="literal">initcol</code> is encountered in the rules
+ and persisted at the end of request processing. Counters are adjusted by
+ applying a delta generated by re-reading the persisted data just before
+ being persisted. This keeps counter data consistent even if the counter
+ was modified and persisted by another thread/process during the
+ transaction.</p></div><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>ModSecurity uses a Berkley Database (SDBM) for persistant storage.
+ This type of database is generally limited to storing a maximum of 1008
+ bytes per key. This may be a limitation if you are attempting to store a
+ considerable amount of data in variables for a single key. Some of this
+ limitation is planned to be reduced in a future version of
+ ModSecurity.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="N11E63"></a>Miscellaneous Topics</h2></div></div><div></div></div><p></p><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N11E67"></a>Impedance Mismatch</h3></div></div><div></div></div><p>Web application firewalls have a difficult job trying to make
+ sense of data that passes by, without any knowledge of the application
+ and its business logic. The protection they provide comes from having an
+ independent layer of security on the outside. Because data validation is
+ done twice, security can be increased without having to touch the
+ application. In some cases, however, the fact that everything is done
+ twice brings problems. Problems can arise in the areas where the
+ communication protocols are not well specified, or where either the
+ device or the application do things that are not in the specification.
+ In such cases it may be possible to design payload that will be
+ interpreted in one way by one device and in another by the other device.
+ This problem is better known as Impedance Mismatch. It can be exploited
+ to evade the security devices.</p><p>While we will continue to enhance ModSecurity to deal with various
+ evasion techniques the problem can only be minimized, but never solved.
+ With so many different application backend chances are some will always
+ do something completely unexpected. The only solution is to be aware of
+ the technologies in the backend when writing rules, adapting the rules
+ to remove the mismatch. See the next section for some examples.</p><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="N11E6E"></a>PHP Peculiarities for ModSecurity Users</h4></div></div><div></div></div><p>When writing rules to protect PHP applications you need to pay
+ attention to the following facts:</p><div class="orderedlist"><ol type="1"><li><p>When "register_globals" is set to "On" request parameters
+ are automatically converted to script variables. In some PHP
+ versions it is even possible to override the $GLOBALS
+ array.</p></li><li><p>Whitespace at the beginning of parameter names is ignored.
+ (This is very dangerous if you are writing rules to target
+ specific named variables.)</p></li><li><p>The remaining whitespace (in parameter names) is converted
+ to underscores. The same applies to dots and to a "[" if the
+ variable name does not contain a matching closing bracket.
+ (Meaning that if you want to exploit a script through a variable
+ that contains an underscore in the name you can send a parameter
+ with a whitespace or a dot instead.)</p></li><li><p>Cookies can be treated as request parameters.</p></li><li><p>The discussion about variable names applies equally to the
+ cookie names.</p></li><li><p>The order in which parameters are taken from the request and
+ the environment is EGPCS (environment, GET, POST, Cookies,
+ built-in variables). This means that a POST parameter will
+ overwrite the parameters transported on the request line (in
+ QUERY_STRING).</p></li><li><p>When "magic_quotes_gpc" is set to "On" PHP will use
+ backslash to escape the following characters: single quote, double
+ quote, backslash, and the nul byte.</p></li><li><p>If "magic_quotes_sybase" is set to "On" only the single
+ quote will be escaped using another single quote. In this case the
+ "magic_quotes_gpc" setting becomes irrelevant. The
+ "magic_quotes_sybase" setting completely overrides the
+ "magic_quotes_gpc" behaviour but "magic_quotes_gpc" still must be
+ set to "On" for the Sybase-specific quoting to be work.</p></li><li><p>PHP will also automatically create nested arrays for you.
+ For example "p[x][y]=1" results in a total of three
+ variables.</p></li></ol></div></div></div></div></div><div align="center" class="copyright">Copyright (C) 2004-2009 <a href="http://www.breach.com">Breach Security</a></div></body></html>
\ No newline at end of file
--- /dev/null
+%PDF-1.3
+%ª«¬
+4 0 obj
+<< /Type /Info
+/Producer (FOP 0.20.5) >>
+endobj
+5 0 obj
+<< /Length 1085 /Filter [ /ASCII85Decode /FlateDecode ]
+ >>
+stream
+Gb"/j9lJcG&;KZM'g+OmRc1/8mVVPmCl5)\>G7C\#?doETsg?2FOU0bP*0BJDNGhR7D6;8SK:?Bc;;A>,,mTGP05EPRYXpQK&XTa`Ir!%=?+,kMA^'*==:"JCPj`Lnh)rGP1*JP0nHap-sIrBgmJl`6-Fp>2CP;a@EL"X;IaSYb1>e*jP%jCfOA'Orp^,>7bR*87h+g,NEJlYi+h'BQH=7+MEfW`Vq?fX0&PE;X_h(j'/X8m@AAZNdH!?l[eXZV0)?Ms(`;9GVck=j$.d8+`]i+&;nAt`'o-SAYf)e"HolW>^@`oR(u.`>\NSX=\0%QoMrYjt@^%&NmH*-Z5M"recL9SQ5Ij:,E%`6@$NiehM23((M:1EB_(.7"Y4[gHeM])KHL@BW+I9(.^r)g@:j`?lGM_6WH$]>Vn:5/2&R;j=mb0ksq!=rr9FlPehR29*-G9"%b@dmS,El*"M-Gr.gf<33Ie2>3Z.Li?0+-aH21&@!g<I*\DkEc""A9n,Yh-h2Y[ZPk"9\i1"T51="Z@VG$r-@[ndh?n+[$EsFdJ^!cE`pQ68g8KX7O<)/G^#ugi?Oub@jlh*:fEV7hmNs+<Vfbn&m*.n1]!^h;gM%9s\kWq]'YDWm\Mj9d@8kGr>'L0CSMl9@"F*gMX_N"HC\lec>mVm.!MEMCV,d.NL"_9l7YuC*t`38^cql`_Xcml:4HiPPa?WVdmlf1Ij8EJ:N/?KeI1?b&H'Ke>nl5?LF,P>If$o*R\L6B&\q!+WrpuJ:N0#LRH.ER;%?>[j3WY1HV5`q/l#dK*67(moSps*PRGAP+eaUmQIQu!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];i`!UY^ZPX.8sVZ$?GLR#Ukn83#hSODto^uSoLUcD[-d95@aQ^YJ0oI]PO9<ke&U=*CQ`%A[V2]R""g:G'8;);Z`GtM7g?cUb9K!Ge$9]5nF0='NJ.5H+CIeY$<uQR[Od0^MW;&D`;Q=[;s6dPq-_#lIDrLht6AS>IPq*-D[K7?+YD?2`I)`R3Dc"&-P91"@3S%5nF/b&-P91"@3S%5nF/b&-P91"@3S%5nF/b&-P91"@3S%5nF/b&-P91"@3S%5nF/b&-P91"@3S%5nF/b&-P91"@3S%5nF/b&-P91"@3S%5nF/b&-P91"@3S%5nF/b&-P91"@3S%5nF/b&-P91"@3S%5nF/b&-P91"@3S%5nF/b&-P91"@3S%5nF/b&-P91"@3S%5nF/b&-P91"@3S%5nF/b&-P91"@3S%5nF/b&-P91"@3S%5nF/b&-P91"@3S%5nF/b&-P91"@:bdrr[^3AS(~>
+endstream
+endobj
+7 0 obj
+<< /Type /Page
+/Parent 1 0 R
+/MediaBox [ 0 0 612 792 ]
+/Resources 3 0 R
+/Contents 5 0 R
+/Annots 8 0 R
+>>
+endobj
+8 0 obj
+[
+9 0 R
+10 0 R
+12 0 R
+14 0 R
+16 0 R
+18 0 R
+20 0 R
+22 0 R
+24 0 R
+26 0 R
+28 0 R
+]
+endobj
+9 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 360.934 317.602 472.804 306.602 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A << /URI (http://www.breach.com)
+/S /URI >>
+/H /I
+>>
+endobj
+10 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 120.0 231.744 174.384 220.744 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 11 0 R
+/H /I
+>>
+endobj
+12 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 216.344 196.815 205.344 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 13 0 R
+/H /I
+>>
+endobj
+14 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 200.944 292.141 189.944 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 15 0 R
+/H /I
+>>
+endobj
+16 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 185.544 290.931 174.544 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 17 0 R
+/H /I
+>>
+endobj
+18 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 170.144 189.5 159.144 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 19 0 R
+/H /I
+>>
+endobj
+20 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 154.744 228.286 143.744 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 21 0 R
+/H /I
+>>
+endobj
+22 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 139.344 220.333 128.344 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 23 0 R
+/H /I
+>>
+endobj
+24 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 123.944 142.453 112.944 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 25 0 R
+/H /I
+>>
+endobj
+26 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 108.544 139.384 97.544 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 27 0 R
+/H /I
+>>
+endobj
+28 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 120.0 93.144 240.164 82.144 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 29 0 R
+/H /I
+>>
+endobj
+30 0 obj
+<< /Length 1915 /Filter [ /ASCII85Decode /FlateDecode ]
+ >>
+stream
+Gb"0WcZ@f"'F4+hIt`s*@3%qJr8ZEpe*0WkAeT'O4h)W52dfKmB/fj=D$"KG@B=]$gC!ct0)^l(KAK;YMu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+65 0 R
+67 0 R
+69 0 R
+71 0 R
+73 0 R
+75 0 R
+77 0 R
+79 0 R
+81 0 R
+83 0 R
+85 0 R
+87 0 R
+89 0 R
+91 0 R
+93 0 R
+95 0 R
+97 0 R
+99 0 R
+101 0 R
+103 0 R
+105 0 R
+107 0 R
+109 0 R
+111 0 R
+113 0 R
+115 0 R
+]
+endobj
+33 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 717.25 139.373 706.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 34 0 R
+/H /I
+>>
+endobj
+35 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 701.85 182.779 690.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 36 0 R
+/H /I
+>>
+endobj
+37 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 120.0 686.45 169.5 675.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 38 0 R
+/H /I
+>>
+endobj
+39 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 120.0 671.05 229.681 660.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 40 0 R
+/H /I
+>>
+endobj
+41 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 655.65 155.4 644.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 42 0 R
+/H /I
+>>
+endobj
+43 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 640.25 228.0 629.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 44 0 R
+/H /I
+>>
+endobj
+45 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 624.85 188.4 613.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 46 0 R
+/H /I
+>>
+endobj
+47 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 609.45 168.6 598.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 48 0 R
+/H /I
+>>
+endobj
+49 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 594.05 175.2 583.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 50 0 R
+/H /I
+>>
+endobj
+51 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 578.65 214.8 567.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 52 0 R
+/H /I
+>>
+endobj
+53 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 563.25 221.4 552.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 54 0 R
+/H /I
+>>
+endobj
+55 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 547.85 201.6 536.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 56 0 R
+/H /I
+>>
+endobj
+57 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 532.45 261.0 521.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 58 0 R
+/H /I
+>>
+endobj
+59 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 517.05 234.6 506.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 60 0 R
+/H /I
+>>
+endobj
+61 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 501.65 195.0 490.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 62 0 R
+/H /I
+>>
+endobj
+63 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 486.25 370.285 475.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 64 0 R
+/H /I
+>>
+endobj
+65 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 470.85 175.2 459.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 66 0 R
+/H /I
+>>
+endobj
+67 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 455.45 234.6 444.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 68 0 R
+/H /I
+>>
+endobj
+69 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 440.05 221.4 429.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 70 0 R
+/H /I
+>>
+endobj
+71 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 424.65 195.0 413.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 72 0 R
+/H /I
+>>
+endobj
+73 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 409.25 162.0 398.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 74 0 R
+/H /I
+>>
+endobj
+75 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 393.85 168.6 382.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 76 0 R
+/H /I
+>>
+endobj
+77 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 378.45 201.6 367.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 78 0 R
+/H /I
+>>
+endobj
+79 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 363.05 201.6 352.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 80 0 R
+/H /I
+>>
+endobj
+81 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 347.65 188.4 336.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 82 0 R
+/H /I
+>>
+endobj
+83 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 332.25 188.4 321.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 84 0 R
+/H /I
+>>
+endobj
+85 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 316.85 155.4 305.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 86 0 R
+/H /I
+>>
+endobj
+87 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 301.45 181.8 290.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 88 0 R
+/H /I
+>>
+endobj
+89 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 286.05 221.4 275.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 90 0 R
+/H /I
+>>
+endobj
+91 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 270.65 221.4 259.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 92 0 R
+/H /I
+>>
+endobj
+93 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 255.25 228.0 244.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 94 0 R
+/H /I
+>>
+endobj
+95 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 239.85 241.2 228.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 96 0 R
+/H /I
+>>
+endobj
+97 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 224.45 228.0 213.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 98 0 R
+/H /I
+>>
+endobj
+99 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 209.05 221.4 198.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 100 0 R
+/H /I
+>>
+endobj
+101 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 193.65 267.6 182.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 102 0 R
+/H /I
+>>
+endobj
+103 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 178.25 274.2 167.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 104 0 R
+/H /I
+>>
+endobj
+105 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 162.85 228.0 151.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 106 0 R
+/H /I
+>>
+endobj
+107 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 147.45 267.6 136.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 108 0 R
+/H /I
+>>
+endobj
+109 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 132.05 247.8 121.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 110 0 R
+/H /I
+>>
+endobj
+111 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 116.65 287.4 105.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 112 0 R
+/H /I
+>>
+endobj
+113 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 101.25 234.6 90.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 114 0 R
+/H /I
+>>
+endobj
+115 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 85.85 142.2 74.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 116 0 R
+/H /I
+>>
+endobj
+117 0 obj
+<< /Length 1897 /Filter [ /ASCII85Decode /FlateDecode ]
+ >>
+stream
+Gb"0W9iL%B(^KOlT-?cg9X`D'Gr^IGAQOs&_6)C5Mdi>jW)@"):6".['2Uc)h8E"Of]'Z9b7Ecmks"as:-V9"DZ"Yl=H6l)/&#g2CYE_YP(#Dli23]',d9Go=n/omcX't=URNdeSq!$ICd"5JjhCDk(&sk369JN4^7768?>o::T.%*1RXT5a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!]C8(]sXIG5[f$Odq1#_F0)mMKa$\`^"/Pb[qdq;Y@Bob)n3%>#].Jd/M]._AB^l>0Aoq<p2=6GJ%:P5p1W\/VNWUiT<hR;A5^b3ft)l\,NP*X"b?g]>tu1.G8jb;RJJ4ioLC/73);i'@nW_&Zpc,]d5@S$Gbo\C5f]HaaBj#)s]-5nJF%a9a=@LH);Zi]''$m[q]>(c5n;"@3US1"OHfa*1OY`C]t%,j`RhIWuo'mJ(a*Rg/ETC4g*u"@3TH_5-RVlJq(bj+EQbE-U5u.Z_g]Ka%u-"@3US!NICYUb^&F:jj=o,hk.4<pt>)eHX7u#_F2oJk<c[eKiO&47%_-_q(K/H<@W?nVLRdd-*b,"Mo;u>%'k1lEoa`:?-N$)9'LGkk&PUrG-UMgB+@IqF(g]#S7-T?b)bk5TOaCos>f2m=TX#7aYAlfa$W"Y$o[>J05-sWl<Pg>&4;,4'[5:CBr\ma7HF>62.T$Q*qt66G&=FErglcafMgPH+l<@lo!ge@CpkcqGrEsk:5Pn$lV)2Jfk?]R0uE/QYg0dpspS=[,GTBMS8?Y=Y9&fFqFEaZ%\H6la$%nUD9h:b*ca<_:/E7EkgNc-@Ing8S7;CI4IB2h7K>sc0di5'Zj"9aSAr<QTCo;c04H7gMj^Jd_!Ra$1I,*@"bBN?jU_7q`A3N9)eokP5eV~>
+endstream
+endobj
+118 0 obj
+<< /Type /Page
+/Parent 1 0 R
+/MediaBox [ 0 0 612 792 ]
+/Resources 3 0 R
+/Contents 117 0 R
+/Annots 119 0 R
+>>
+endobj
+119 0 obj
+[
+120 0 R
+122 0 R
+124 0 R
+126 0 R
+128 0 R
+130 0 R
+132 0 R
+134 0 R
+136 0 R
+138 0 R
+140 0 R
+142 0 R
+144 0 R
+146 0 R
+148 0 R
+150 0 R
+152 0 R
+154 0 R
+156 0 R
+158 0 R
+160 0 R
+162 0 R
+164 0 R
+166 0 R
+168 0 R
+170 0 R
+172 0 R
+174 0 R
+176 0 R
+178 0 R
+180 0 R
+182 0 R
+184 0 R
+186 0 R
+188 0 R
+190 0 R
+192 0 R
+194 0 R
+196 0 R
+198 0 R
+200 0 R
+202 0 R
+]
+endobj
+120 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 717.25 214.8 706.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 121 0 R
+/H /I
+>>
+endobj
+122 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 701.85 181.8 690.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 123 0 R
+/H /I
+>>
+endobj
+124 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 686.45 208.2 675.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 125 0 R
+/H /I
+>>
+endobj
+126 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 671.05 214.8 660.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 127 0 R
+/H /I
+>>
+endobj
+128 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 655.65 251.144 644.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 129 0 R
+/H /I
+>>
+endobj
+130 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 640.25 247.8 629.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 131 0 R
+/H /I
+>>
+endobj
+132 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 624.85 214.8 613.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 133 0 R
+/H /I
+>>
+endobj
+134 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 609.45 155.4 598.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 135 0 R
+/H /I
+>>
+endobj
+136 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 594.05 175.2 583.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 137 0 R
+/H /I
+>>
+endobj
+138 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 578.65 208.2 567.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 139 0 R
+/H /I
+>>
+endobj
+140 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 563.25 214.8 552.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 141 0 R
+/H /I
+>>
+endobj
+142 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 547.85 168.6 536.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 143 0 R
+/H /I
+>>
+endobj
+144 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 120.0 532.45 200.355 521.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 145 0 R
+/H /I
+>>
+endobj
+146 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 517.05 198.641 506.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 147 0 R
+/H /I
+>>
+endobj
+148 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 501.65 186.442 490.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 149 0 R
+/H /I
+>>
+endobj
+150 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 486.25 205.362 475.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 151 0 R
+/H /I
+>>
+endobj
+152 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 470.85 193.163 459.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 153 0 R
+/H /I
+>>
+endobj
+154 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 455.45 161.692 444.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 155 0 R
+/H /I
+>>
+endobj
+156 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 120.0 440.05 162.152 429.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 157 0 R
+/H /I
+>>
+endobj
+158 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 424.65 122.4 413.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 159 0 R
+/H /I
+>>
+endobj
+160 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 409.25 214.8 398.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 161 0 R
+/H /I
+>>
+endobj
+162 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 393.85 162.0 382.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 163 0 R
+/H /I
+>>
+endobj
+164 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 378.45 148.8 367.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 165 0 R
+/H /I
+>>
+endobj
+166 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 363.05 188.4 352.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 167 0 R
+/H /I
+>>
+endobj
+168 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 347.65 155.4 336.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 169 0 R
+/H /I
+>>
+endobj
+170 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 332.25 195.0 321.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 171 0 R
+/H /I
+>>
+endobj
+172 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 316.85 155.4 305.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 173 0 R
+/H /I
+>>
+endobj
+174 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 301.45 115.8 290.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 175 0 R
+/H /I
+>>
+endobj
+176 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 286.05 129.0 275.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 177 0 R
+/H /I
+>>
+endobj
+178 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 270.65 221.4 259.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 179 0 R
+/H /I
+>>
+endobj
+180 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 255.25 168.6 244.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 181 0 R
+/H /I
+>>
+endobj
+182 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 239.85 168.6 228.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 183 0 R
+/H /I
+>>
+endobj
+184 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 224.45 188.4 213.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 185 0 R
+/H /I
+>>
+endobj
+186 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 209.05 115.8 198.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 187 0 R
+/H /I
+>>
+endobj
+188 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 193.65 201.6 182.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 189 0 R
+/H /I
+>>
+endobj
+190 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 178.25 168.6 167.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 191 0 R
+/H /I
+>>
+endobj
+192 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 162.85 201.6 151.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 193 0 R
+/H /I
+>>
+endobj
+194 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 147.45 175.2 136.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 195 0 R
+/H /I
+>>
+endobj
+196 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 132.05 247.8 121.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 197 0 R
+/H /I
+>>
+endobj
+198 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 116.65 241.2 105.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 199 0 R
+/H /I
+>>
+endobj
+200 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 101.25 280.8 90.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 201 0 R
+/H /I
+>>
+endobj
+202 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 85.85 155.4 74.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 203 0 R
+/H /I
+>>
+endobj
+204 0 obj
+<< /Length 1655 /Filter [ /ASCII85Decode /FlateDecode ]
+ >>
+stream
+Gb"0Wc#9@H(ru0YrsFdU6g;Ad@ua;HS%+H;"1YD1XfU((=]K4GC=GE=^Ft&X14[Q+'WoF4YC-17Gn;ceq:Rk4>j%mNho:]>\\cI\7`+s\nf1MS4=?/H^F9c,8h)4ge+rga_b-hflRYhEMq]cF=""$A-k=!+^D)!(;6P)FSF:j_<IXHE*!d^@Y_tr9a@JdS6N9^@`/W!oKiJflY'c(r<6pb5Y:%e5g6P_gW#&VoGR,IG(Vi=.VT*LY9<u/TbI`t^/@9*[&4-XUJ:j"9P&=ApZ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U-h\%SF#\1j24PPH=)Zd6>[r6Al$Y+b]=d==./r3g37W`_MMAOtDkSmnPXEd%\?D#U-h\%SAK@0Qq3p/=RrD[M0*K]uZq!6O4igYJie9.Ullia?E;PG<L\#^!*4E6O4ig-AOuu/B^1)q5h9]kLU(m)Dd$X6?mYn'%gr(DRJ.%p3JcFD#FMfCIK"u)aXfRm*?njWUnNp,N4"i.=[h1gK,.P6)<9q*]q4JS`c"(1jU!EkN11)V!%S_;#G66rgo\\oinm#nG2nSJ,[,2l@eck(I*keB+XKqDOrc4Rnk+aje(](5CJ"\a3i@l!`p.MZ+YGPpc1kgMfWjS^_JM8&<o]]%fuab"T~>
+endstream
+endobj
+205 0 obj
+<< /Type /Page
+/Parent 1 0 R
+/MediaBox [ 0 0 612 792 ]
+/Resources 3 0 R
+/Contents 204 0 R
+/Annots 206 0 R
+>>
+endobj
+206 0 obj
+[
+207 0 R
+209 0 R
+211 0 R
+213 0 R
+215 0 R
+217 0 R
+219 0 R
+221 0 R
+223 0 R
+225 0 R
+227 0 R
+229 0 R
+231 0 R
+233 0 R
+235 0 R
+237 0 R
+239 0 R
+241 0 R
+243 0 R
+245 0 R
+247 0 R
+249 0 R
+251 0 R
+253 0 R
+255 0 R
+257 0 R
+259 0 R
+261 0 R
+263 0 R
+265 0 R
+267 0 R
+269 0 R
+271 0 R
+273 0 R
+275 0 R
+277 0 R
+279 0 R
+281 0 R
+283 0 R
+285 0 R
+287 0 R
+289 0 R
+]
+endobj
+207 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 717.25 175.2 706.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 208 0 R
+/H /I
+>>
+endobj
+209 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 701.85 168.6 690.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 210 0 R
+/H /I
+>>
+endobj
+211 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 686.45 168.6 675.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 212 0 R
+/H /I
+>>
+endobj
+213 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 671.05 168.6 660.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 214 0 R
+/H /I
+>>
+endobj
+215 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 655.65 168.6 644.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 216 0 R
+/H /I
+>>
+endobj
+217 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 640.25 208.2 629.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 218 0 R
+/H /I
+>>
+endobj
+219 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 624.85 247.8 613.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 220 0 R
+/H /I
+>>
+endobj
+221 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 609.45 274.2 598.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 222 0 R
+/H /I
+>>
+endobj
+223 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 594.05 201.6 583.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 224 0 R
+/H /I
+>>
+endobj
+225 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 578.65 175.2 567.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 226 0 R
+/H /I
+>>
+endobj
+227 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 563.25 195.0 552.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 228 0 R
+/H /I
+>>
+endobj
+229 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 547.85 234.6 536.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 230 0 R
+/H /I
+>>
+endobj
+231 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 532.45 201.6 521.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 232 0 R
+/H /I
+>>
+endobj
+233 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 517.05 195.0 506.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 234 0 R
+/H /I
+>>
+endobj
+235 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 501.65 234.6 490.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 236 0 R
+/H /I
+>>
+endobj
+237 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 486.25 175.2 475.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 238 0 R
+/H /I
+>>
+endobj
+239 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 470.85 188.4 459.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 240 0 R
+/H /I
+>>
+endobj
+241 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 455.45 201.6 444.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 242 0 R
+/H /I
+>>
+endobj
+243 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 440.05 168.6 429.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 244 0 R
+/H /I
+>>
+endobj
+245 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 424.65 195.0 413.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 246 0 R
+/H /I
+>>
+endobj
+247 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 409.25 181.8 398.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 248 0 R
+/H /I
+>>
+endobj
+249 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 393.85 247.8 382.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 250 0 R
+/H /I
+>>
+endobj
+251 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 378.45 234.6 367.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 252 0 R
+/H /I
+>>
+endobj
+253 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 363.05 201.6 352.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 254 0 R
+/H /I
+>>
+endobj
+255 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 347.65 241.2 336.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 256 0 R
+/H /I
+>>
+endobj
+257 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 332.25 208.2 321.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 258 0 R
+/H /I
+>>
+endobj
+259 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 316.85 195.0 305.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 260 0 R
+/H /I
+>>
+endobj
+261 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 301.45 122.4 290.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 262 0 R
+/H /I
+>>
+endobj
+263 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 286.05 195.0 275.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 264 0 R
+/H /I
+>>
+endobj
+265 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 270.65 195.0 259.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 266 0 R
+/H /I
+>>
+endobj
+267 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 255.25 162.0 244.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 268 0 R
+/H /I
+>>
+endobj
+269 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 239.85 201.6 228.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 270 0 R
+/H /I
+>>
+endobj
+271 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 224.45 168.6 213.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 272 0 R
+/H /I
+>>
+endobj
+273 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 209.05 162.0 198.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 274 0 R
+/H /I
+>>
+endobj
+275 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 193.65 195.0 182.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 276 0 R
+/H /I
+>>
+endobj
+277 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 178.25 168.6 167.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 278 0 R
+/H /I
+>>
+endobj
+279 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 162.85 168.6 151.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 280 0 R
+/H /I
+>>
+endobj
+281 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 147.45 168.6 136.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 282 0 R
+/H /I
+>>
+endobj
+283 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 132.05 142.2 121.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 284 0 R
+/H /I
+>>
+endobj
+285 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 116.65 155.4 105.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 286 0 R
+/H /I
+>>
+endobj
+287 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 101.25 122.4 90.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 288 0 R
+/H /I
+>>
+endobj
+289 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 85.85 148.8 74.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 290 0 R
+/H /I
+>>
+endobj
+291 0 obj
+<< /Length 1718 /Filter [ /ASCII85Decode /FlateDecode ]
+ >>
+stream
+Gb"0W95if\'SbR0^V\0)d2q0ub?R0Y)'r"3O@f1O'[ai%7UXZ3oM#;^YsCsHS]GtGl)7.f@eCiRo'sSh$6REG_qn0Ra+eH#Q8+p%/E=0O)clL7NAr?C$a&%ih9ZukN'I&k-YLPDEo'$,^Mj$e%"Bj$rQ!?A1->!kFlpF.c>h(T.:/SH+bUE@+sY9Q"#hVBfT5P;5DcR<l34G*\s:clhnL-fKq9C<b;<rS63na!W>(1tAB'm*4?NAcR##Xn8u'ZTKFl#g<6ED"2>q8rp,h?3>bt<\&4-Y2G:M^N(R]Fm0/&K`p:QWj2!Q&I#U/P0V7^o@g0i4Vn\M-s>Ej/r7]f#`+bVV9,1-m9;`gV7K+:gAEg]D!6O4ig18RN`=sMG#V5^#H9j).Vp!7F'1P?<+pd7n)m/8=D_aBb,al)6i.I]L4?DCBT&4-Z]lVK$E6X,Ki>pY72kNC)m],=YL<,'iBKFgK&SP"1lqdSihaNJ%0qKk!-:'Q@Mi;0h\91*e^NaMefND9P.&AATGQZT_0P3uI^C?FR0C")@fZ0DK22%:^^&ABk_PNT>IG!'J$BJms'a`=d+X_5hYr&2=fbhhDE)jg$S`ESqsDSFQNW_WmDe;)J;f5Fqd=g8g[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Er;Rm!e6t23_<Ce<c7BsnCH8@]-#:i4cI04h;Tj*5Ogsf%'J\-a'e\6Bg!Ge0>?\#E+P\V~>
+endstream
+endobj
+292 0 obj
+<< /Type /Page
+/Parent 1 0 R
+/MediaBox [ 0 0 612 792 ]
+/Resources 3 0 R
+/Contents 291 0 R
+/Annots 293 0 R
+>>
+endobj
+293 0 obj
+[
+294 0 R
+296 0 R
+298 0 R
+300 0 R
+302 0 R
+304 0 R
+306 0 R
+308 0 R
+310 0 R
+312 0 R
+314 0 R
+316 0 R
+318 0 R
+320 0 R
+322 0 R
+324 0 R
+326 0 R
+328 0 R
+330 0 R
+332 0 R
+334 0 R
+336 0 R
+338 0 R
+340 0 R
+342 0 R
+344 0 R
+346 0 R
+348 0 R
+350 0 R
+352 0 R
+354 0 R
+356 0 R
+358 0 R
+360 0 R
+362 0 R
+364 0 R
+366 0 R
+368 0 R
+370 0 R
+372 0 R
+374 0 R
+376 0 R
+]
+endobj
+294 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 717.25 162.0 706.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 295 0 R
+/H /I
+>>
+endobj
+296 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 701.85 155.4 690.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 297 0 R
+/H /I
+>>
+endobj
+298 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 686.45 148.8 675.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 299 0 R
+/H /I
+>>
+endobj
+300 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 671.05 148.8 660.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 301 0 R
+/H /I
+>>
+endobj
+302 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 655.65 148.8 644.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 303 0 R
+/H /I
+>>
+endobj
+304 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 640.25 155.4 629.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 305 0 R
+/H /I
+>>
+endobj
+306 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 624.85 155.4 613.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 307 0 R
+/H /I
+>>
+endobj
+308 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 609.45 109.2 598.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 309 0 R
+/H /I
+>>
+endobj
+310 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 594.05 135.6 583.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 311 0 R
+/H /I
+>>
+endobj
+312 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 578.65 148.8 567.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 313 0 R
+/H /I
+>>
+endobj
+314 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 563.25 221.4 552.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 315 0 R
+/H /I
+>>
+endobj
+316 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 547.85 115.8 536.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 317 0 R
+/H /I
+>>
+endobj
+318 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 120.0 532.45 232.123 521.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 319 0 R
+/H /I
+>>
+endobj
+320 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 517.05 175.2 506.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 321 0 R
+/H /I
+>>
+endobj
+322 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 501.65 175.2 490.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 323 0 R
+/H /I
+>>
+endobj
+324 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 486.25 214.8 475.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 325 0 R
+/H /I
+>>
+endobj
+326 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 470.85 143.036 459.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 327 0 R
+/H /I
+>>
+endobj
+328 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 455.45 195.0 444.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 329 0 R
+/H /I
+>>
+endobj
+330 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 440.05 155.4 429.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 331 0 R
+/H /I
+>>
+endobj
+332 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 424.65 155.4 413.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 333 0 R
+/H /I
+>>
+endobj
+334 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 409.25 201.6 398.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 335 0 R
+/H /I
+>>
+endobj
+336 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 393.85 148.8 382.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 337 0 R
+/H /I
+>>
+endobj
+338 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 378.45 135.6 367.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 339 0 R
+/H /I
+>>
+endobj
+340 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 363.05 155.4 352.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 341 0 R
+/H /I
+>>
+endobj
+342 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 347.65 115.8 336.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 343 0 R
+/H /I
+>>
+endobj
+344 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 332.25 122.4 321.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 345 0 R
+/H /I
+>>
+endobj
+346 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 316.85 181.8 305.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 347 0 R
+/H /I
+>>
+endobj
+348 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 301.45 201.6 290.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 349 0 R
+/H /I
+>>
+endobj
+350 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 286.05 188.4 275.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 351 0 R
+/H /I
+>>
+endobj
+352 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 270.65 181.8 259.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 353 0 R
+/H /I
+>>
+endobj
+354 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 255.25 188.4 244.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 355 0 R
+/H /I
+>>
+endobj
+356 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 239.85 168.6 228.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 357 0 R
+/H /I
+>>
+endobj
+358 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 224.45 201.6 213.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 359 0 R
+/H /I
+>>
+endobj
+360 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 209.05 195.0 198.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 361 0 R
+/H /I
+>>
+endobj
+362 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 193.65 175.2 182.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 363 0 R
+/H /I
+>>
+endobj
+364 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 178.25 155.4 167.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 365 0 R
+/H /I
+>>
+endobj
+366 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 162.85 175.2 151.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 367 0 R
+/H /I
+>>
+endobj
+368 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 147.45 155.4 136.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 369 0 R
+/H /I
+>>
+endobj
+370 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 132.05 122.4 121.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 371 0 R
+/H /I
+>>
+endobj
+372 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 116.65 148.8 105.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 373 0 R
+/H /I
+>>
+endobj
+374 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 101.25 155.4 90.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 375 0 R
+/H /I
+>>
+endobj
+376 0 obj
+<< /Type /Annot
+/Subtype /Link
+/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 0 R
+413 0 R
+415 0 R
+417 0 R
+419 0 R
+421 0 R
+423 0 R
+425 0 R
+427 0 R
+429 0 R
+431 0 R
+433 0 R
+435 0 R
+437 0 R
+439 0 R
+441 0 R
+443 0 R
+445 0 R
+447 0 R
+449 0 R
+451 0 R
+453 0 R
+455 0 R
+457 0 R
+459 0 R
+461 0 R
+463 0 R
+]
+endobj
+381 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 120.0 717.25 154.221 706.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 382 0 R
+/H /I
+>>
+endobj
+383 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 701.85 129.0 690.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 384 0 R
+/H /I
+>>
+endobj
+385 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 686.45 127.768 675.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 386 0 R
+/H /I
+>>
+endobj
+387 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 671.05 148.8 660.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 388 0 R
+/H /I
+>>
+endobj
+389 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 655.65 129.0 644.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 390 0 R
+/H /I
+>>
+endobj
+391 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 640.25 142.2 629.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 392 0 R
+/H /I
+>>
+endobj
+393 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 624.85 129.0 613.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 394 0 R
+/H /I
+>>
+endobj
+395 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 609.45 115.8 598.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 396 0 R
+/H /I
+>>
+endobj
+397 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 594.05 122.4 583.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 398 0 R
+/H /I
+>>
+endobj
+399 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 578.65 175.2 567.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 400 0 R
+/H /I
+>>
+endobj
+401 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 563.25 122.4 552.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 402 0 R
+/H /I
+>>
+endobj
+403 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 547.85 122.4 536.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 404 0 R
+/H /I
+>>
+endobj
+405 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 532.45 155.4 521.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 406 0 R
+/H /I
+>>
+endobj
+407 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 517.05 109.2 506.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 408 0 R
+/H /I
+>>
+endobj
+409 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 501.65 142.2 490.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 410 0 R
+/H /I
+>>
+endobj
+411 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 486.25 115.8 475.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 412 0 R
+/H /I
+>>
+endobj
+413 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 470.85 142.2 459.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 414 0 R
+/H /I
+>>
+endobj
+415 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 455.45 115.8 444.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 416 0 R
+/H /I
+>>
+endobj
+417 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 440.05 162.0 429.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 418 0 R
+/H /I
+>>
+endobj
+419 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 424.65 162.0 413.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 420 0 R
+/H /I
+>>
+endobj
+421 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 409.25 129.0 398.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 422 0 R
+/H /I
+>>
+endobj
+423 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 393.85 122.4 382.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 424 0 R
+/H /I
+>>
+endobj
+425 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 378.45 129.0 367.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 426 0 R
+/H /I
+>>
+endobj
+427 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 363.05 129.0 352.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 428 0 R
+/H /I
+>>
+endobj
+429 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 347.65 131.431 336.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 430 0 R
+/H /I
+>>
+endobj
+431 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 332.25 129.0 321.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 432 0 R
+/H /I
+>>
+endobj
+433 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 316.85 148.8 305.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 434 0 R
+/H /I
+>>
+endobj
+435 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 301.45 115.8 290.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 436 0 R
+/H /I
+>>
+endobj
+437 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 286.05 168.6 275.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 438 0 R
+/H /I
+>>
+endobj
+439 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 270.65 195.0 259.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 440 0 R
+/H /I
+>>
+endobj
+441 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 255.25 234.6 244.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 442 0 R
+/H /I
+>>
+endobj
+443 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 239.85 241.2 228.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 444 0 R
+/H /I
+>>
+endobj
+445 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 224.45 148.8 213.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 446 0 R
+/H /I
+>>
+endobj
+447 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 209.05 135.6 198.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 448 0 R
+/H /I
+>>
+endobj
+449 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 193.65 135.6 182.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 450 0 R
+/H /I
+>>
+endobj
+451 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 178.25 135.6 167.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 452 0 R
+/H /I
+>>
+endobj
+453 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 162.85 135.6 151.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 454 0 R
+/H /I
+>>
+endobj
+455 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 147.45 122.4 136.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 456 0 R
+/H /I
+>>
+endobj
+457 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 132.05 155.4 121.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 458 0 R
+/H /I
+>>
+endobj
+459 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 116.65 135.6 105.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 460 0 R
+/H /I
+>>
+endobj
+461 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 101.25 102.6 90.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 462 0 R
+/H /I
+>>
+endobj
+463 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 85.85 115.8 74.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 464 0 R
+/H /I
+>>
+endobj
+465 0 obj
+<< /Length 1317 /Filter [ /ASCII85Decode /FlateDecode ]
+ >>
+stream
+Gb"0W9lle)'Sl4l4pB,S@1(f5gX_3EdnW&C@s,@r\fg3/Ah&@`E,0t#,,Oi6U&d!t8T2OWD>_9kL8+p%"%VQe55Xb#[TqF-XSHo!=K@j*3VCS'ih0Tn3jB]_d$emShqpP7f(naVqSSd%:fmIr<Q>GJGhj#0b.@:/47qg)Z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Pkdu!&_G(M#md,+epn(>?S.Vh'AATfkJboV5GXOh<:H1u`lGYmX'R8knAefeinG^c<\kIk'!;ROt%ae+ahak[5u/aC$*l<d?UK5a5l&!ekckI:bVLAh3cO`Kd~>
+endstream
+endobj
+466 0 obj
+<< /Type /Page
+/Parent 1 0 R
+/MediaBox [ 0 0 612 792 ]
+/Resources 3 0 R
+/Contents 465 0 R
+/Annots 467 0 R
+>>
+endobj
+467 0 obj
+[
+468 0 R
+470 0 R
+472 0 R
+474 0 R
+476 0 R
+478 0 R
+480 0 R
+482 0 R
+484 0 R
+486 0 R
+488 0 R
+490 0 R
+492 0 R
+494 0 R
+496 0 R
+498 0 R
+500 0 R
+502 0 R
+504 0 R
+506 0 R
+508 0 R
+510 0 R
+512 0 R
+514 0 R
+516 0 R
+518 0 R
+520 0 R
+522 0 R
+]
+endobj
+468 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 717.25 129.0 706.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 469 0 R
+/H /I
+>>
+endobj
+470 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 120.0 701.85 163.373 690.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 471 0 R
+/H /I
+>>
+endobj
+472 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 686.45 162.0 675.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 473 0 R
+/H /I
+>>
+endobj
+474 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 671.05 148.8 660.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 475 0 R
+/H /I
+>>
+endobj
+476 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 655.65 148.8 644.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 477 0 R
+/H /I
+>>
+endobj
+478 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 640.25 109.2 629.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 479 0 R
+/H /I
+>>
+endobj
+480 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 624.85 109.2 613.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 481 0 R
+/H /I
+>>
+endobj
+482 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 609.45 155.4 598.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 483 0 R
+/H /I
+>>
+endobj
+484 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 594.05 109.2 583.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 485 0 R
+/H /I
+>>
+endobj
+486 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 578.65 168.6 567.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 487 0 R
+/H /I
+>>
+endobj
+488 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 563.25 109.2 552.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 489 0 R
+/H /I
+>>
+endobj
+490 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 547.85 109.2 536.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 491 0 R
+/H /I
+>>
+endobj
+492 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 532.45 109.2 521.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 493 0 R
+/H /I
+>>
+endobj
+494 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 517.05 162.0 506.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 495 0 R
+/H /I
+>>
+endobj
+496 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 501.65 115.8 490.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 497 0 R
+/H /I
+>>
+endobj
+498 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 486.25 109.2 475.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 499 0 R
+/H /I
+>>
+endobj
+500 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 470.85 129.0 459.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 501 0 R
+/H /I
+>>
+endobj
+502 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 455.45 208.2 444.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 503 0 R
+/H /I
+>>
+endobj
+504 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 440.05 168.6 429.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 505 0 R
+/H /I
+>>
+endobj
+506 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 424.65 188.4 413.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 507 0 R
+/H /I
+>>
+endobj
+508 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 409.25 221.4 398.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 509 0 R
+/H /I
+>>
+endobj
+510 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 393.85 228.0 382.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 511 0 R
+/H /I
+>>
+endobj
+512 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 378.45 148.8 367.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 513 0 R
+/H /I
+>>
+endobj
+514 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 363.05 135.6 352.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 515 0 R
+/H /I
+>>
+endobj
+516 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 120.0 347.65 197.902 336.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 517 0 R
+/H /I
+>>
+endobj
+518 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 120.0 332.25 199.134 321.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 519 0 R
+/H /I
+>>
+endobj
+520 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 120.0 316.85 216.239 305.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 521 0 R
+/H /I
+>>
+endobj
+522 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 301.45 191.007 290.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 523 0 R
+/H /I
+>>
+endobj
+524 0 obj
+<< /Length 3055 /Filter [ /ASCII85Decode /FlateDecode ]
+ >>
+stream
+Gat%&=``Z4&Ur?8R$UcdX!F-$cC).a`NI;(3m)ck>HVc`0I167&[)@'Bd^YZ9jE[4.'HQqRJq._)LYQA+)\giZ!8!D/70Al2u2H\ZWuS\[p3_W^c)'a[b^9cLN`3kgP8PI^)edVqX32!hi#BJY^!i`0(!,_E*;8Nb3_5oQWq)m6XTl1X&04PICH^>MeU/4;#$O=cPM%hn6ouu`U&F&4:0,:=OSD`q=`;7+$[N`&G[UD"f_Kh9;K#lT;ILd^HA^A?qA1D,-DfXCZujem%*@$YH+*?HG=NJ8IC@JrbJgTtE'i=V,#,8"Gf-/!F%;m0SlmG*RB+D"`snfkY!uZ7F)g0`OA<:uTOO.X1Y79qFLYmXU-#8W$7ZF+<VQ)/>ck<6(STun\_RHHC:.Ab@GR_Q4JO$t5Ve<j:4\iE9n0RF5udTCk";si,Le$mXeW8e.`n)NGN3$fQQ9jR34A)oTaeV;m<G+g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okp@Y1SC,SQo;dqF\KO['OfW!]qcdmW:r/@E]>2%D0rp&XZj:-6'L\Y0+IC=0Oe:[,F>OUT#HErkjj(jJ"AYof!9FSIE>!qrG6$Sr,hWQBjeUJPWM$gDq;:KU7TJC115>XSk6q+?qNZU5A[f2iJfS!Ie(ARoUh=I#PLs-IJeLLJD))*XkLaRg!J.sG5Vu*p83HI-nt(M;qM$KFRB*3)Z,I'i@'"e@J][?%:gm,Jc**V'&#Wsg7;tlmF?&L+U)+ordO@qB^'jji\GYp&Oa85G,+&(QYRpQ>1ZGpXpcBfSonsk-^DDnpWRlMk@FCIQg^0%?:Ne`$3&(5Y2R@KBURi8HZ0ehJbJt2(pABp+/+T!hb`h$4$*CZFn>"k#DiiEQe?u/5g^mWW[0b>H)+QlgjHh]>YSWRn6RJf#.cfDe%)[]b;!@f]PrXT@1?./q"=YX77Z*82u:o9]]e7<GotI'O6;qC!cdQXr<#WK58j~>
+endstream
+endobj
+531 0 obj
+<< /Type /Page
+/Parent 1 0 R
+/MediaBox [ 0 0 612 792 ]
+/Resources 3 0 R
+/Contents 530 0 R
+/Annots 532 0 R
+>>
+endobj
+532 0 obj
+[
+533 0 R
+]
+endobj
+533 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 162.768 523.2 352.815 512.2 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A << /URI (http://www.modsecurity.org/projects/rules/)
+/S /URI >>
+/H /I
+>>
+endobj
+534 0 obj
+<< /Length 1978 /Filter [ /ASCII85Decode /FlateDecode ]
+ >>
+stream
+Gasaqfl#h.'Re;/kV3+XZq+pPTFXcE.8lrtketpcBSlg8;)T"h<(&0qqt28CR#<8g#[i<e])0#GFh>1fJ&366JF@?4/)T)f6-kmId#4$^7;2na..K3Bn*fSS9!kBF8]u@$j8J"TI[/-N#N<H\0gaqOc8YqMNX*keGlBt7Y$p_f``o-5]l;4IE>,aR0-+ilSlVug3,4j,94OdU0Egnk(]qec7oih%7PV[jN^E1Q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T)0%Bcf&.1,t:@S&Y2kc136FLlTdjQ!e/nD0F#AYn&/Zn1h:^CPB:%h[*W/$\jn*IZm!hoO_"Bp#)Dj=M+(Q=pp"_k7_HZ^]JY6N-2^aY;p<dcJgF`)JsZ_ENtXG,_aqgA.)5!<5acW2?=VL=6OY\I]lXS<iJK_L3*C[(_[<H;ddo=YY]=NB_>Thr9$:"*o**6?,'UKD/go\O(bL#r/H="QgB,,emRlc(9WL=Ko/(nH(J/*3Yu[]r&sCLFtN$8cI<XB?liCTb/%%%>&>)55((<2m-KbZu&o(b*5]m0-45K=0[dncsu%;24HPYV1__;*R%J3N)I!@3p1KD<_7ol+H0h>LnXsn(GIeHD`-OWkhqZ&Bd6RaU)ifC:Uj3r(5OU[A.;]_/"1O_GOc8F0-guDd@Xsc4@14W=F5'S'^1i^GnUe"CVjN[2l_7Tf'ZZal?Qu$.EX_.FSGl;l1;IOO!7"W+j6YLMauD-BpVSA]<"tbciZG.8]ela:8NUho(4JW9\,YVDaJRA7L\I]%Qm<Riqer#0FeDIcW7qQr.i2?$cJ``ar5VY8/3n.poECLt+R.j#@5kEEIu#n:$4pKjY5d^"J,L5HJYKma`sspPuBfGQZ!o]`+uA$VsE'rs^aoHm!JSqe)?EB1q1,[jHBe7:@>7N":p!YStN9X<Sb=Y>idd>+'Ro\I!GTS2D`&!1"BHB1o4!Kqa?C4["5X6sA#gI/bmc~>
+endstream
+endobj
+535 0 obj
+<< /Type /Page
+/Parent 1 0 R
+/MediaBox [ 0 0 612 792 ]
+/Resources 3 0 R
+/Contents 534 0 R
+/Annots 536 0 R
+>>
+endobj
+536 0 obj
+[
+537 0 R
+538 0 R
+539 0 R
+540 0 R
+541 0 R
+]
+endobj
+537 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 118.0 579.65 212.094 568.65 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A << /URI (http://apr.apache.org/)
+/S /URI >>
+/H /I
+>>
+endobj
+538 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 118.0 544.45 210.268 533.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A << /URI (http://www.pcre.org/)
+/S /URI >>
+/H /I
+>>
+endobj
+539 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 118.0 509.25 268.964 498.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A << /URI (http://xmlsoft.org/downloads.html)
+/S /URI >>
+/H /I
+>>
+endobj
+540 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 118.0 456.45 271.087 445.45 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A << /URI (http://www.lua.org/download.html)
+/S /URI >>
+/H /I
+>>
+endobj
+541 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 118.0 355.25 232.279 344.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A << /URI (http://curl.haxx.se/libcurl/)
+/S /URI >>
+/H /I
+>>
+endobj
+542 0 obj
+<< /Length 2167 /Filter [ /ASCII85Decode /FlateDecode ]
+ >>
+stream
+GauHM=``=U&:XAWi1nah0QE8s>EU<RGO/iY]@YQ'$me4U-Ti(aG4P+6i#r.58NASp5$:thMqu@]h_*j=[qBVtcb>qFhYil7Om`I&Lq(JRJ_rZh.[@J+qsEaX4&<X#,/iQdMg'`-)2N4?m/lXj$kI^@6AZ;P_Rn(*J'Qpf[<h!6leVOIMn"O^\&_ke0I2)#/\'W9&lu)ii!>)t,i3h-$9"ocUEk&:7D;La)g?2)YEL06Cgk#8l4\MT.a";BgS2%YZ!'*\pITi&k]/4)C@K>Nq4Q/FT.+uFVGbL$>]/r6b#a!Vm3$G+p^kAWSZ;GgX:laC!=>]J=]NV-N0+uhS(@:Q>W(iIL-R"]RXVTW,hYB8e<XdO8dJ90jdXhVn\aaXp.k0Qg;N\If_0h:H%[6!3MM\h^/%7S0n^&ng2gKs["(fn39&_"AfuqGS`c.*qb_'#VnPF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 3 0 R
+/Contents 544 0 R
+/Annots 546 0 R
+>>
+endobj
+546 0 obj
+[
+547 0 R
+550 0 R
+]
+endobj
+547 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 564.156 395.95 576.377 384.95 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 549 0 R
+/H /I
+>>
+endobj
+548 0 obj
+<<
+/Type /FileSpec
+/F (http://www.modsecurity.org/documentation/ModSecurity-Migration-Matrix.pdf)
+>>
+endobj
+549 0 obj
+<<
+/S /GoToR
+/F 548 0 R
+/D [ 0 /XYZ null null null ]
+>>
+endobj
+550 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 90.0 380.55 433.728 369.55 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 552 0 R
+/H /I
+>>
+endobj
+551 0 obj
+<<
+/Type /FileSpec
+/F (http://www.modsecurity.org/documentation/ModSecurity-Migration-Matrix.pdf)
+>>
+endobj
+552 0 obj
+<<
+/S /GoToR
+/F 551 0 R
+/D [ 0 /XYZ null null null ]
+>>
+endobj
+553 0 obj
+<< /Length 2881 /Filter [ /ASCII85Decode /FlateDecode ]
+ >>
+stream
+Gatm=h/D%-&qA57+V\$$"VO;^*sM'UBiA7HgYQi-m`Y<#cn]GO.na2s`:Y2>J%q+:MB#fcqlo9O3^8fa_r5u_oWYj:q\V;A86ff4^2fdhQ05[HcZ9^@YW.P4&uX#akPTf-^+.`^e((he<Vb4Voog)U>^tZhb?OtgR^^RlSAi6nA)qm+i2F/2^>#te+qb'9@(4doJVd/857*kGF]B.+JX7=/2Ebt-:17/S(;0"q)'CL<]P*;Geroa+>.q/QX*K%[phDo#Z.:l$ho,Oqg<$Wplk3+IAi/^g(^D=BK/dnSF'<$\aY;O.CkWI-2LK)<&t0`S/$4*I=i0V$1q+:8jON+=bf_s8VTZFcU"VZ8'DDdmOMkR\NURmjgQ!'L*%ZTjZbW2hDf<=WOX86mL*TX>J$*hVeE7hhDD9&AAq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`ISpo/K4h6ce1Wna"<YSL>0RGE4Q\Q4=qXM;&k7.S)Mpg;qkB@aIE^i=B9P_VQ)Zd<1TMqk''la<aD/s9f?TEqD1@AFKd<u/4J;3o[MAKD"YJ.StYsmblqqdDTHOI\pEM/6YC-jK*3*Ke4]bjMeYpii$1@>QpUOhH</OWjXj]YF^3^oiD.$[']umflRu'f^=l45YN'ZYQ)B?9ErYoBbEbuam3*$Z9t30i\63U*'-9`Q<%8De:->-2\W`K4_]$<_&R%]rIf<r>+^t&*EbCQakAbQ*>l[6r*ghdta.T-L0keX<$g$n'?6>Qq^HU,):D1OO9c-5V"^RDhYE/%\!Y>*(#]muF_"++^;30%a'RgbRaR]A'E7K9_lE;%3EBE1VU`"0.!jEk3qWCF6J[kiC6KG9RplX"s?P=u]mf~>
+endstream
+endobj
+574 0 obj
+<< /Type /Page
+/Parent 1 0 R
+/MediaBox [ 0 0 612 792 ]
+/Resources 3 0 R
+/Contents 573 0 R
+/Annots 575 0 R
+>>
+endobj
+575 0 obj
+[
+576 0 R
+577 0 R
+578 0 R
+579 0 R
+]
+endobj
+576 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 598.352 640.416 610.573 629.416 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A << /URI (http://blog.modsecurity.org/2008/07/modsecurity-tri.html)
+/S /URI >>
+/H /I
+>>
+endobj
+577 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 90.0 625.016 334.761 614.016 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A << /URI (http://blog.modsecurity.org/2008/07/modsecurity-tri.html)
+/S /URI >>
+/H /I
+>>
+endobj
+578 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 481.534 157.816 540.494 146.816 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A << /URI (http://www.apachesecurity.net/tools/)
+/S /URI >>
+/H /I
+>>
+endobj
+579 0 obj
+<< /Type /Annot
+/Subtype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D%)h=EZpQ]BeC5365SGgAqH:E+QMS4X[_L+j4D.B+c7F'$!##!4m_,!1&Z-4]U?,`G[ZFU_;PQcafn1[/-Npji?KcTLA5K'`)1fsoA54.60aK0dgs0rmfIERKb)5hI6WLq3FbbcP5!*k[4M]F:6"adV@mYu@*pl!UQ\'Knge3/ubEYJsKuXDrEbgmjL6Qg^F'qh1%1>6>Elk\[6RkYQ>G5aOQ@cj<@5*"W9/(?QS-@'-BDB^38Y(GY*I1g$sDJ].i/*aN(i9\p5b:5l1@5`MkJ/5t#A<=ZY3J_5!NpSPrN-8oY:7c;tm^H(f5M5"s>\;^HiL^/8us+g1NZ%P;>jfI5fnFtoR^[D2!4_/D4*u$UR;8`,>]JBES!;6$bJ(8oJpod]5%=:\H!G39k$3~>
+endstream
+endobj
+607 0 obj
+<< /Type /Page
+/Parent 1 0 R
+/MediaBox [ 0 0 612 792 ]
+/Resources 3 0 R
+/Contents 606 0 R
+/Annots 608 0 R
+>>
+endobj
+608 0 obj
+[
+609 0 R
+610 0 R
+]
+endobj
+609 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 126.16 376.189 212.939 365.189 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A << /URI (http://www.lua.org/)
+/S /URI >>
+/H /I
+>>
+endobj
+610 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 238.181 360.789 377.21 349.789 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A << /URI (http://www.lua.org/manual/5.1/)
+/S /URI >>
+/H /I
+>>
+endobj
+611 0 obj
+<< /Length 2000 /Filter [ /ASCII85Decode /FlateDecode ]
+ >>
+stream
+Gatm<968iI%)2U?BQ@fKj3XOWnh&Ol45&:t]8>8`2LAgWg>YL5<JdaAJ%s@R,diLOD'q+W!@E>X!!n+f?Hj6->Q\JH)QWPT1c@.+R.,k?Cmi*2bn0]ZDlb_ST=6'YN9A_Qj3ht;+5_s/#YAT<-])Ic^T2rUCs?XpXK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Mng`-DtW0K1o!Tr#C2%F62(F)1>TD4o`YNAG<l]dH+E1r#n\\F^T*[\&n#!UY-]$n05(H`_@5f[.pN:&t$sh>eWJ8UgiB/&6!~>
+endstream
+endobj
+616 0 obj
+<< /Type /Page
+/Parent 1 0 R
+/MediaBox [ 0 0 612 792 ]
+/Resources 3 0 R
+/Contents 615 0 R
+>>
+endobj
+617 0 obj
+<< /Length 417 /Filter [ /ASCII85Decode /FlateDecode ]
+ >>
+stream
+Garo=btc/1&;9LtMERgAN1Jkg>,b%8'gr]FLiP2kVH=1KM&fFM*]p0?KSk0Ibc^?ZZ`>Rc^.El16D8,r$N#>S[>R>5=YHZVal=A@%sSC*Z@FG@V:69tB/Nd+1Y3B4*k`DtOF&Y*qlJ@f_nA*=YD"k_lWHm(CXEH0oZf(j<S(YrKTb'Djgm!]+7<bUZLQqR>]4hEIu;9,]L89TN*="I<-RLF(gC0..hWJeK&C!.\0FodN_\dEDXuZ2Hm;7%B[hN8IYfC+BUd!=Gc0X%2oj$\@&JDtg(o%"Ap2qfd#"3P)3O.klRMZLB:;>.Q3eiGOt7tLYlmZskRlP,0j%H=cUKW6;4?.oeB`Q<RM+q[+,;U8[YrSX5J>#JAfTf@D7CR1G7c(+6!=U3l=G^;3^6=E4TQgj^Zbt<3i2E~>
+endstream
+endobj
+618 0 obj
+<< /Type /Page
+/Parent 1 0 R
+/MediaBox [ 0 0 612 792 ]
+/Resources 3 0 R
+/Contents 617 0 R
+>>
+endobj
+619 0 obj
+<< /Length 1292 /Filter [ /ASCII85Decode /FlateDecode ]
+ >>
+stream
+Gat=+968iG&AII3Yaup&)$M>ei^)Jg>&g&Z[Nd5V9[e/u&sCn@8;3l!khgU["t5@O3kB:^fZ1I>h^g.ADlH/FA6[7-`4"51Ct\<qQ6=!'/k:LdCUpkP3.FO6?Y*@WY:lt96qI+Mq:!@,<-D^KBeA4p.V<*oWG9pj@Ma=n6]?mpcc7;5."@kDq4UX'M?i;IrTFM?MNX=-UXOXe1bqk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X]2<0?Q3o*]m0!7K5PW5;=Hmn'ifJ?'mp5IeR!4%e+>;*4pc*~>
+endstream
+endobj
+620 0 obj
+<</Type /XObject
+/Subtype /Image
+/Name /Im2
+/Length 92271
+/Width 1318
+/Height 1008
+/BitsPerComponent 8
+/ColorSpace /DeviceRGB
+/Filter /DCTDecode
+>>
+stream
+ÿØÿà\0\10JFIF\0\ 1\ 1\ 1\0x\0x\0\0ÿÛ\0C\0\b\ 6\ 6\a\ 6\ 5\b\a\a\a \b
+\f\14\r\f\v\v\f\19\12\13\ f\14\1d\1a\1f\1e\1d\1a\1c\1c $.' ",#\1c\1c(7),01444\1f'9=82<.342ÿÛ\0C\ 1 \f\v\f\18\r\r\182!\1c!22222222222222222222222222222222222222222222222222ÿÀ\0\11\b\ 3ð\ 5&\ 3\ 1"\0\ 2\11\ 1\ 3\11\ 1ÿÄ\0\1f\0\0\ 1\ 5\ 1\ 1\ 1\ 1\ 1\ 1\0\0\0\0\0\0\0\0\ 1\ 2\ 3\ 4\ 5\ 6\a\b
+\vÿÄ\0µ\10\0\ 2\ 1\ 3\ 3\ 2\ 4\ 3\ 5\ 5\ 4\ 4\0\0\ 1}\ 1\ 2\ 3\0\ 4\11\ 5\12!1A\ 6\13Qa\a"q\142\81\91¡\b#B±Á\15RÑð$3br\82
+\16\17\18\19\1a%&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz\83\84\85\86\87\88\89\8a\92\93\94\95\96\97\98\99\9a¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖ×ØÙÚáâãäåæçèéêñòóôõö÷øùúÿÄ\0\1f\ 1\0\ 3\ 1\ 1\ 1\ 1\ 1\ 1\ 1\ 1\ 1\0\0\0\0\0\0\ 1\ 2\ 3\ 4\ 5\ 6\a\b
+\vÿÄ\0µ\11\0\ 2\ 1\ 2\ 4\ 4\ 3\ 4\a\ 5\ 4\ 4\0\ 1\ 2w\0\ 1\ 2\ 3\11\ 4\ 5!1\ 6\12AQ\aaq\13"2\81\b\14B\91¡±Á #3Rð\15brÑ
+\16$4á%ñ\17\18\19\1a&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz\82\83\84\85\86\87\88\89\8a\92\93\94\95\96\97\98\99\9a¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖ×ØÙÚâãäåæçèéêòóôõö÷øùúÿÚ\0\f\ 3\ 1\0\ 2\11\ 3\11\0?\0ë<\19áko\10é2Þ^Þ^4Þs\ f\96f\1dþµÑÿ\0¹Òÿ\0çêûþÿ\0·øÔ\1f\vÿ\0ä[\97þ»·ó5ÛÐ\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãGü+\9d/þ~¯¿ïû\7f\8dv\14P\a\1fÿ\0
+çKÿ\0\9f«ïûþßãM\7f\87ZX\8d¿Òï\87\a\9f=¿Æ»*d¿ê_ýÓ@\1c\aÂø\8d´:\95·\9f,Ë\1cì\15¥rÇ\19÷¢\9fðßýn¯ÿ\0_\rüè \v\1f\vÿ\0ä[\97þ»·ó5Û×\11ð¿þE¹\7fë»\7f3]½\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14É\7fÔ¿û¦\9fL\97ýKÿ\0ºh\ 3\83øoþ·Wÿ\0¯\86þtQðßýn¯ÿ\0_\rüè \v\1f\vÿ\0ä[\97þ»·ó5Û×\11ð¿þE¹\7fë»\7f3]½\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QL\94\95\89Èê\ 1 \aÑ^;áO\18ëº\87ÄÛý*êçu\94DìOJö*\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0Éñ&¥u¥hÿ\0h²XMÌ\97VÖÉç\ 2P\19gH²@ \9coÎ2:U_'Æ\1fóý¡ÿ\0à\1cßüv\8f\19\7fÈ\ eÛþºoþ\96Ã]\ 5\0sþO\8c?çûCÿ\0À9¿øí\1eO\8c?çûCÿ\0À9¿øít\14P\a?äøÃþ\7f´?ü\ 3\9bÿ\0\8eÑäøÃþ\7f´?ü\ 3\9bÿ\0\8e×AE\0sþO\8c?çûCÿ\0À9¿øí\1eO\8c?çûCÿ\0À9¿øít\14P\a?äøÃþ\7f´?ü\ 3\9bÿ\0\8eÑäøÃþ\7f´?ü\ 3\9bÿ\0\8e×AE\0sþO\8c?çûCÿ\0À9¿øí\1eO\8c?çûCÿ\0À9¿øít\14P\a?äøÃþ\7f´?ü\ 3\9bÿ\0\8eÑäøÃþ\7f´?ü\ 3\9bÿ\0\8e×AE\0sþO\8c?çûCÿ\0À9¿øí\1eO\8c?çûCÿ\0À9¿øít\14P\a?äøÃþ\7f´?ü\ 3\9bÿ\0\8eÑäøÃþ\7f´?ü\ 3\9bÿ\0\8e×AE\0sþO\8c?çûCÿ\0À9¿øí\1eO\8c?çûCÿ\0À9¿øít\14P\a?äøÃþ\7f´?ü\ 3\9bÿ\0\8eÑäøÃþ\7f´?ü\ 3\9bÿ\0\8e×AE\0sþO\8c?çûCÿ\0À9¿øí\1eO\8c?çûCÿ\0À9¿øít\14P\a?äøÃþ\7f´?ü\ 3\9bÿ\0\8eÑäøÃþ\7f´?ü\ 3\9bÿ\0\8e×AE\0sþO\8c?çûCÿ\0À9¿øí\1eO\8c?çûCÿ\0À9¿øít\14P\a?äøÃþ\7f´?ü\ 3\9bÿ\0\8eÔÞ\1eÔu\vÙ5k]KìÆãO¼\16ûí\91\95\1c\18b\94\1c1$\1fÞã¯jÚ®\7fÃßò\1cñgý\85cÿ\0Ò+Z\0è(¢\8a\0(¢\8a\0)\92ÿ\0©\7f÷M>\99/ú\97ÿ\0tÐ\a\aðßýn¯ÿ\0_\rüè£á¿úÝ_þ¾\eùÑ@\16>\17ÿ\0È·/ýwoæk·®#á\7fü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ã\0ú\9e\95Ë/ÅÏ\10Í¢7\89-ü q'\87C\1c\\eÕ\12\94\a\e¶mÎ2=Ç¿z\0õª*\86\8f¬Ùë\9a%®¯fçì·1 T¸ÚTw\rèAÈ?Jº\8e²(d`Êz\10r(\ 1ÔS<ØÄ\82?1|Ãü9çò¥ó\13Ìò÷®ügnyÇÒ\80\1dE0M\19ß\89\13äûß0ù~¾\95STÔ\1eËJ»º´\80^ÜC\ 3M\1d²H\14Ë\81À\a¶zf\80/Q\\85Ç\8f´Û?\ f\7fkXÍg¨ks$1Úo\ fä\92À\12íÀÀ\a>ÿ\0u\8b,nÛREb\08\a<\1a\0}\14Õ\91\19\99UÔ²ýà\ f#ë\_\8d¼{sáMgGÒ¬´'ÕnõO0D\89r! ®8ä\11Î}GJ\0í¨¯9Ò~)\Iâû_\ ex\8bÂ÷\9a\15Õà?fyf\12¤\8c3Æ@\1e\98ÈÏ8õÍmøcÆÑø\8bXñ\1e\9eöbÐh·\9fe2´Á\84¼°Ý\8c\r¿w§=h\ 3«¢\90\90 \92@\ 3\92M69c\94\13\1c\8aàuÚs@\ f¢\99çGæù^by\9fÝÜ3ùR»¬jYØ*\8e¤\9c
+\0u\14\9bÔ¦ýÃn3»<cÖ©j:Æ\9b¤éϨj\17Ð[Y æi\1c\ 5ú\ fSÇAÍ\0^¢¸\8f\87¿\11!ñüÚË[Y\e{[\19\91!\91\9f-*¶ì1\18ù~ïL\9eµÛÐ\ 1\ÿ\0\87¿ä9âÏû
+Çÿ\0¤VµÐW?áïù\ ex³þ±ÿ\0é\15\0t\14QE\0\14QE\0\14É\7fÔ¿û¦\9fL\97ýKÿ\0ºh\ 3\83øoþ·Wÿ\0¯\86þtQðßýn¯ÿ\0_\rüè \v\1f\vÿ\0ä[\97þ»·ó5Û×\11ð¿þE¹\7fë»\7f3]½\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0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ª¢¹_øY\1e\12ÿ\0 Ý¿çGü,\8f \7fÐnßó \ eª\8aå\7fádxKþ\83vÿ\0\9d\1fð²<%ÿ\0A»\7fÎ\80:ª+\96\1f\11¼$Ç\ 3Z¶üë ±¿µÔ\96âÒe\96\16èËÐÐ\ 5\9a(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\809ÿ\0\19\7fÈ\ eÛþºoþ\96ÃXÿ\0\18\7fä\93ëÿ\0õÊ?ý\18\95±ã/ù\ 1Û\7fØWMÿ\0ÒØkG[Ѭ|C£ÜiZ\94F[;\80\16D\ eT\90\b#\91Èä
+\0ù§X\9aë@KÏ\rZBvø³NÓ$·Çg!C\91õ!\87ã[ÚL÷^\14Ñþ,\9d\19Ú9¬g\86\18\1d~ò(gMÃÐ\85ÉÏlW²\x\13÷Z\8e\8d\7f5\86ë\9d\1e4\8eÉü×\e\15>è<üØÆyÍYÓ¼'£iwzÅ͵ ߬>ûá#\17YOÍü-\90\aÌÜtæ\80<O]ð§\87ü?ð\7fMñ\8e\97{,\1e!Ùop\9a\82ܳ<Ò¹\eÓ®8Ëvþ\ e{ÖÕ¸ñ×Æ=7Iñ\.lbÑ\12ê+\13)Ty\99T¹À ç%\87¯È;
+íì¾\ fx*ÃT[è´¦c\eù\91Á,îñ#g9\bN?<\8aÕñO\80ü=ã\17·\97W³f¸·â)á\90Ç _îî\1dG±é\93\8cf\80<·Â\11hú\ fÄ\1f\88ÐÈ%ºÑílÂJ\83t¬"\ 3\f\9drB\8c¯^\8bPÚønóEðtÞ*ð\a\8f&\87D\89$¸\16\17à\14\uC\92Wq#\18*\ f#\9aõ½\17ÀÞ\1cðõåÝÖ\97¦¤\ fu
+Á2îfVE\18\0\82Hú\9e§½sòü\12ð,·¦ãû.T\8c¶æ·\8eæE\88\9f¦xü\r\0yÿ\0\8a|MªxËFøt\97VFh5yek»(¦ò\12êHØ(Mç <\9c\7fµôo\fÙk\1e\14ñ\ f\8a\eNÓ`Ò¬\97H{\84ÒF¦\97M\15Â(*û\ 1,\ 3};ý+Óu\8f\ 5x{\ÐíôkÝ6#el\aÙÒ<¡\87\ 3\ 3a\1c\8e)\9e\19ðF\85á&¸\93K¶qss\8f:æyZY\\ e\80³vö\14\ 1ä~\17ð\97\84µ\7f\866Þ.×õ{\9b]VK\93-Æ°·gÍ\8aO4¨^àg\83ÈÏÍ\9aÛ¶*\7fi+Y\16c4rè\8aÑÌØÌ£oÞà\ 1Î àWP~\ eø$êÍ\7fý\92Ãsù\86ÜNâ\12Þ»\ 1ÇáÓÚµ<Kðÿ\0þ,»µ»Ôí\1fí6ÃjK\ 4\13lçå%Hã\93@\1eW`Êö\9f\1aÙX2\96\93\ 4\1c\83ÄÕ.\81àí*Ãàe÷\88ü\96\93WºÐî\15î\1dËa\bá@<\0\ 2¨ãßÖ½>Çá÷\86´Û\1dZÊÏO0ÛjÑ\88®ãY_\ e¡J\8cs\91Ã\1e\95¡\1f\86t¨¼*|4\96ì4£nm¼\9f1³å\91\827g=úæ\80<\vPдÍGGøF×\96ÂO¶2ÙÜeØo\84H§o\a\8f¾Ü\8eyë]\97\88VËá\97Å\r\17]@mô+û\ 3§\\0wl1(ÙÉç¢ ä\9cí5Ûê\9f\ e|5«xnÇA¹³\93ì6\18û.É\98<_FÎ\7f:ã¾#ø{\ñ\r\96\9dàm\eì4¸\1a\ 2º¬·\ 3dQ¢í#\a\9c\81õ$væ\804þ\fØNþ\1eÔ<Oz\b¼ñ\ 5ì\97l1\8cF\18\85\18ú\96?B+\17âÒjRüHð"i\13A\ e ^q\ 4\97
+J+|\9c°\1d«Öì, Ótëk\ee+\ 5´K\14`\9c\90ª0?AT5/\féZ¶µ¦j÷¶í%î\98ÌÖ®$e\b[\19È\a\a ë@\1c>\9fð÷Äú\9f\8dtß\11xÏ]³¼þËËZ[YÂUC\1eä\901Î\ frp9®CCð\96\8fâO\10|O\9fV\82K\83k{1\85<æTF&S»\0\8c·Ê95ïÕ\89§øKFÒçÖ&µ¶e}bC%é2±ó\18îÎ2~_¼zb\80<WKÖôû¯\80º-\86¸u;£q¨5¤\16Ös\88Úä\87%QÝ\87 È\1f\82þ\17ü!`Þ\1eø×\r\9aiqh\10O¥<²ØC\7fö\85\\1e\19Ï@xÏ~\05èÒ|0ð\9c¾\16\8fÃ\87Na§Å1\9e &}ñÈz²¹9\1fʤÑþ\excBÕíµk\e9\86£\ 2²\8b\99.$w\93p \97Éù\8e\ f~\9d¨\ 3ÂçÐeÑ4ûÝKYðô\1e ÓþÔÒ·\88´\9dW3/Ì\ er õÆ\b\1dzô5Óø¶êO\15|CðÎ\98ºmƵ¤>\8c·\90ióÝý\9cÎÌ\eçv'\ 5\80\0þ\aÞ»é¾\ fx2kÉ&:|É\f²y\92ZGu"ÀíêP\1c~\1d+cÄ>\ 4ð÷\89àµ\8fP±
+Öcm´¶ìbxG\1c)\`p8é@\1cWÃ\8d\1aêÚßÅú& ±Yè\921X#Ô£¹k êË"\12 ÙÇ÷½>µØé~\fðÚxOMÑ\12\14Ô´«)L¶þ{\89A}ÌrqÃ`³\f\11\8a\9fGðN\81 èwzF\9feåÛ^+\v\96gf\92mÀ\82YÉÉà\9f¦x\r\ fD°ðæ\8do¤é\91\18¬íÁ\11¡rÄe\8b\1eO'\92h\ 3Ì>
+¨_\12|@U\0(Õp\0íóË^¿Xº\1f\854\7f\ e]êW:]³C.¥7\9frL\8cÛß$äd\9c}ãÒ¶¨\0®\7fÃßò\1cñgý\85cÿ\0Ò+Zè+\9fð÷ü\87<Yÿ\0aXÿ\0ô\8aÖ\80:
+(¢\80
+(¢\80
+d¿ê_ýÓO¦Kþ¥ÿ\0Ý4\ 1Áü7ÿ\0[«ÿ\0×Ã\7f:(øoþ·Wÿ\0¯\86þtP\ 5\8f\85ÿ\0ò-Ëÿ\0]Ûù\9aíë\88ø_ÿ\0"Ü¿õÝ¿\99®Þ\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\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 3Ì\7fáFxsÓõ£þ\14g\87=?Zôê(\ 3Ì\7fáFxsÓõ£þ\14g\87=?Zôê(\ 3Ì\7fáFxsÓõ£þ\14g\87=?Zôê(\ 3Ì\7fáFxsÓõ£þ\14g\87=?Zôî;\9cQ@\1f?üJø[£xsÃëyh\b\93v:צü%\e|\vj\acY\7f\1aÿ\0äPO÷«Wá7ü\88ÖßZ\0îh¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢©\ë\1a]\9e~Õ©YÁ\8e¾lê¸üÍ\0]¢°\eÆþ\16V(¾!ÓeqÁHnVF\aÓ
+IÍ'ü&z;\7f©\1a\8dǧÙô»\99AüV2?\1e\94\ 1ÐQ\ÿ\0ü%,ÿ\0ñïáýroûu\11\7fèÆZ?·5¹?ÕxJù?ëæîÙ\7fô \1e\80:
++\9fûg\8bdû\9a&\91\bõ\97T\90\9fûå`ÇëG\97ã \7fåëC¶ÿ\0·i§ÇþDLÐ\ 1ã/ù\ 1Û\7fØWMÿ\0ÒØj_\17ø\88xO·úã[\e\91hªÆ\10û7e\82õÁÇ_JÂñ%\8e½\1e\9fg-þµm<+ªéÛ¡\82ÇÊ\r\9bÈ{\97b0p\7f\ eô|aÿ\0\92O¯ÿ\0×(ÿ\0ôbP\ 64¿\14|O\ 6\8aºÌ¿\ eo?³Z!?\9f\1e \8fû²7nÚ\178Ç5ßh\1aõ\97\88ü=iY3\vK\98üÅó\ 6
+à\90Aú\10Gá^\ fâ3ã\ fáÞ\895ï\88\9e\7f\v^ÚA\rȳ³\8d&¶\89ÐasÕ\86>\äg¡ëZ^8\82Ö\v\ f\87\9e\18Ðc}C÷lÎ [\8f(^ãiUi8\ 3%Ø\91ê{q@\1eî\8e²(d`Êz\10r)\fÑ\ 6e2 e\19a¸d\ fS^/á{\1dc¾#ñ9Ó´Ø4\9b\11¤¼é¥.¤\97m\15¨*û\ 1,\ 3gÓ¿Ò¹«O\fèw\1f\ 2oü_4ò?\88'IZkÓrÅ÷\97(c#8Ã/PF~j\0ú4Í\18Ù\99\13çû¿0ù¾\9e´»ÓÌÙ¹wã;sÎ=kçëÔasðRR0\9b"\ûþë\8aé%¸x\7fh}b[p$\9a\1f\ f3*\ e~a´\81\81ø~t\ 1ë\9el~g\97½wõÛ\9e\7f*Y$\8e%Ý#ª\fã,q_/i\1a5î¿à9üBº@}b[\96\90x\8a}e!0Éæ\f.Öa\8fN\7f½ô\15ÖøËDÖuÏ\10h\9a\83[é>&\9a="?´è¯|¨ñÈT3Ê\8a¬2\ eF\bÏÓ\184\ 1ìºÖµe è\97Z½ë\91io\19\91\8a\rÄ\8faÜ\9aM\ 3Y\83Ä\1a\r\96n¥"»\85eTb\v(a\9c\1cwæ¼:1 ê\7f\a¼_¦Ã¥j67\1a<Æw±½¸2\vi\8e@Øxàa\86\b÷çzwÂ\8d\eNÒ~\1dé\12Ø[\88\9aöÚ+\9b\82\18\9dò\94\0·'\8e\9d\ 5\0[\8bÆk'Ä©¼\1dö\12\1a;/¶}«Íà\8c\81·n=úæ\92ÿ\0Æ\82ÇâF\97á\ f°\177ösö¯;\e6\898Ù·\9f¹×#¯·>w¯i\1a\96·ûAÝÚézäÚ5ÀÒ\15ÍÌ1 PW+\82G\\8fÊ£³ÑuM\ fö\82ðݶ¯ÏLú|Ò,óD#(»e\ep ã \9fÆ\80=Á¥\8d\#:\87n\8aO&\9cΨ¥\9d\82¨êIÀ¯\994Ý6ïÆ:g\8a5CB7ú§Ú¥OíIµu¶û\ 6Ñò\8d\8dÑW=øÀÇ\18®¿_¹\8bRðß\824O\12ZÞk\9aåÀgK\e;ôX.\8ap\1eYy\rÀÎAîÔ\ 1íi"H»£ueõS\91X^0ñ<~\14ð®¡\8bqxl\82\16\81eØNçUë\83\8e¹éÚ¼gòj>\17Ô>#Ûi¶\8b`öº`\9a+\ek³:[>Þ¡¿¼ \92}ø¬ýOÂ~\1f\87ö\7f\8fÄÉ$\8b¬Ü*4\97?hrgc.\1a6\19Á\18ÉéÆÜÐ\aÑ\1af¤\9a\86\89e©²\88\16êÞ9ö³gfõ\a\19ã=qV÷§\97¿rìÆwg\8cz×ϺкÖüYà½\ 6})õ}>?\ fCp\9ai»û2M!B\v\16=p\14qíõ©à°Ôt\9f\87¿\114ùb\86ÛLD\ fkb\9a\82]5¡$î\8cí$¯A×\1d>´\ 1ïK,nÛUÕ\8e7`\1cñëBM\1c¹òäGÇ]¬\ e+Ä´¿\ 2ØAðgûNÛP\8aÃZÕ4¸ãkû»³\1amb\8c#É8QµBñY>\1a·\83Â\9e0ðâk~\10\9bF¹\9eE\86ÛQÒï÷ÃtX\0<ÅÉ\f9ç\aø\8f\1d(\ 3èj(¢\80
+(¢\80
+(¢\80
+çü=ÿ\0!Ï\16\7fØV?ý"µ®\82¹ÿ\0\ f\7fÈsÅ\9fö\15\8fÿ\0Hh\ 3 ¢\8a(\0¢\8a(\0¦Kþ¥ÿ\0Ý4úd¿ê_ýÓ@\1c\1fÃ\7fõº¿ý|7ó¢\8f\86ÿ\0ëu\7fúøoçE\0Xø_ÿ\0"Ü¿õÝ¿\99®Þ¸\8f\85ÿ\0ò-Ëÿ\0]Ûù\9aíè\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8ai\91Gz\0u\15\17\9b\9e\98üMP¾Öl´ï\9aòåcQï@\1a-4jÛYÔ7¡4â}³_?|Yñ¤ë,wz\ 6 L`ü̵Åè\7f\11ü{©]¥µ\9dÌ\97,p6\81Ò\80=ÿ\0â\9bãÁw@\8e¨k\13àWü\88Mÿ\0]MSñ\14:Âü6\9a]fRÓ´d\95=ªçÀ¯ù\10\9bþº\9a\0î¼Ar,ü9\7f9m¥ab\ fá^Yð\98\88/üIt¤®æË{W øö7\97Áº\80@I\11\1câ¸ÿ\0\85\90÷Â\9b»1\82î]HúÐ\aj\9e1ÒeÓ\17PY\97ÊvÚ9ïE×\8c4Ë5\81¥p\16c\80sÒ¼\ 3Wótßì+bË$\12\17njͬ\97\1e ðÝìnÌd²\8fplôÅ\0{l¿\10t\18o\1eÙîPl\19-\9e++Æ\1fØ\1aïöUÍåÓ\bËæ\16\8d° ¯,Ó4\v+ï\85·\9a¥Èf»\0\8dû¹¥Ô7\7fÂ\eá\ f\9d¸\98\fçÞ\80:kÏ\1eÝéÞ;³Ñm\9c\9b`@9=E'Äè\ e\91ã\8d\vT·\ 4$¬\vâ³5\v\ecñ\vM\90§ÎÅrk¦øÈQn4x\867\16\ 1Gã@\1e¥kp·v\91N§!\94W\8füuÿ\0Y§\7f¼?\9dz\9f\87U\93Ãö\8aÃ\r´W\95|z\fÂÁTá\89\18?\8d\0z\87\84\18ÿ\0Â'§\9d¿òÈVÖæþá¯'ðï\86<[7\87,Þ\rx$L\99Tô\15¥ÿ\0\b\9f\8c¿èa\1f\9d\0z6æþá£s\7fp×\9cÿ\0Â'ã/ú\18GçGü"~2ÿ\0¡\84~t\ 1ÜêÚªi\1a{ÞL\84¢u\ 2¹í\eâ_\87µ\87(.Ò\17\a\18\91«\90ñO\86¼Woáùä¹×\ 4±\0r\9eµàºw\84¼Cªß°²µ\99\8eóûÁ\90:õ \ f´âº\8aáCÂáÐôe<W\82|Cmß\1atï`\ 5u?\ e¼'â!¡\9fTÕI¶\18\1eC\1ek\95ø\81ÿ\0%§Oú
+\0÷\9b~làÿ\0pVf§â]/G\90Çyr\91¸\19ÚOZÔµÿ\0\8fK\7f÷Ex¯\8f,!Ô¾(Z[Üî11\0¨8 \ fQÑ<W¥ëåÖÒeÜ\9fysÛÖ©ÜøûC¶ÕF\9egFrvî\a\8c×\8ex\85¿á\ fñýä\1aYhâ{Sò\83íRhÚ-\9d×Ã)µÉÃ5ï\9aHryë@\1eÝ«x£KÑí\16æk\84`Ý\05ÈøçÇ\82ËÂi©éùV~\82¸_ì[ûÿ\0\bÚë;^í"|¼@ö\15µâkÝ\1f^ø\7f\eA\a\92è0bô4\ 1Þ|;×&×ü)\15ÝÁÌÄòkoUÖì4EG¿\9d!W8\ 5\8dyç\875«¿\v|=²\9bLÒ\9fPy\e\f\89Ú¹\8f\8aZ\9dÏ\88ôý\ 1µ\v\19l|ÙFø\89 õ \ f_ÿ\0\84³Iû<\93ý¥<¤\19Ý\9eµ\ 6\89ã]\1f_\9d¡¶\9d\ 3¯bz×\96|P´¶ðþ\8d E§Äû&Û¾0~ýd\éZ\92]YßiZ\\96\b\80\19\e?z\80=\9e÷Çz%\86 ÖrÜ&õûç?v¯7\89ô\81§=ø»\8d A\9c\83Ö¼[AÑ,õ{/\11^Þ\86\92p§\r\9e\86¹ß\9d4ÛM=$qo#a\86zó@\1dGÄ/\10Xx\87ƾ\1e\92Åê°ÉükÝm\aú\f_î\8að?\16h\16\1a.·ácd\9b\19ö\969ÎkÐßÇ:Õ¦£\1d\84^\1c\9aX\0\ 3Ï\19Å\0tz\87\8bt}.O*êê4\938ÚO5\1e©ã\1d#Gµ\86{\89×÷Ã(¹ä\8aò9ôëm{âl\v¨#ìc¸Ç\9e\86 ñC©ø\87\r¡±{È \e#\84\1e\94\ 1íz_\89t½^Áï-îSÊ\8ceùéY\90üDÐ%\99ã7(\85[nIêkÆu+-[Ãþ\1aÔ®a·\92ÎÞyy\8c\9e\80Òø\8bÃÚ|\1f\ e´ýN5au+«3\ 6ëÍ\0{¥Ï\8a´Û]F\v\17qæλ\93\9e¢\9dmâ}>ïS:|n<áɯ\1dÕrÞ6ðÎXçì\8bßÚ\96Úw´ñÅì\88Ä7\94Ýý¨\ 3Ôoþ èZ~¤,d¸F}ÛK\ 3À5\7fRñV\95¥Ú%Ä\97\bÁÆB\83Í|ÿ\0áûWÕôÝP\1d"K¹þÐJÜçîó[\92øSX·ÓcÕî \92å"ë\ 6z-\0u\1f\11>!½¿\86-¯4rUÚP\18\9fJî¼!ª6³á»kÇûì\83wÖ¼\87Ç\97z>©ðæÆ}>\1f%\84Á^?C^¹à¸#·ð¥\9aƸ\ 6%&\809_\8d\7fò('ûÕ©ð¡\95< nÎÁTrI8\ 2²þ5ÿ\0È \9fïQðÓÃZ\16§á+[½CFÓîîF\0\96âÙ$a\8fBÀâ\80;»\9f\11èvyûV³§A\8e¾mÒ.?3T¿á8ðÃ\7f©Öìî?ëÙüìÿ\0ß\19;m\1fK³ÇÙtÛ81ÓÊ\81W\1f\90«´\ 1Ïÿ\0Âc¦7ú\9bmb\7fxô\8b¢?ï£\18\1f\1fð\93\¿ü{øc\\9bþÙÃ\17þ\8c\95k ¢\809ÿ\0í\8f\10Iþ§ÂÒ'ý|ßD\9fú\ 6ú>Ñâùzi\9a%¸ì[P\96Sø\81
+þYük ¢\809ÿ\0³ø¾^º\9e\89n;\85Óå\94þ\ 4Ì¿\9e?
+?±üA'úï\14È\9fõíc\12\7fè{ë ¢\809ÿ\0øFn_þ><O®Mÿ\0m!\8bÿ\0EÄ´\7fÂ\1d¦7úë\9db\7fi5{¢?ï\91 \1f¥t\14P\a?ÿ\0\b?\86\eýv\89gqÿ\0_)çgþûÍ]¶ðæ\87g\8f²èÚt\18éåZ¢ãò\15§E\0"ª¢\85E
+ `\00\ 5-\14P\ 1E\14P\ 1E\14P\a?ã/ù\ 1Û\7fØWMÿ\0ÒØkG[Ѭ|C£ÜiZ\94F[;\80\16D\ eT\90\b#\91Èä
+Îñ\97ü\80í¿ì+¦ÿ\0él5ÐP\ 6sèZl¾\1e\1a\f¶Ë&\9a-\85¯\92ä\9fÝ\85Ú\ 6zç\0s×½a¿Ã_\vKá\98¼=-\83ɧÁ!\96\ 5yÝ\9e\16=J19^ç\19Ç5ÖÑ@\1cï\86|\11¡xI®$Òí\9c\Üãι\9eV\96W\ 3 ,ݽ\85qÞ,øA \r\v[ºÐt\86:¥Ä,màYÈ\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0x\7f:öm\9e\86¼gã¨>f\9c\7fÚ\1fÎ\80=;Â\b?á\13ÓÆ?å\90¯-}+\1fÂ\1fò*ißõÈVÝ\03Ë_J<µô§Ñ@\10\YÁu \8axÃÆz©¨ì´»-=JÚ[G\10=v\8a·P\Nc Ë\9a\0d°´\97\vÇÈ9¯\bø\86\0øѦãû«_@)%\ 1=q^\ 1ñ\13þKN\9bþêÐ\a»Úÿ\0Ç¥¿û¢¼7âbÜ·Ä(~ÆØ\9c\0WÜ×¹[\ 2- ã¢\8aå5\7f\ 2êø\9a=e\9d\84\89ÐP\a\1fá\9f\87º\86¥«Üjþ#\19y¡òÕOa\8eµBO\87Þ"ÓÙ´[2_J\92BŽ\ 1¯mUa\1a¦\ fÊ1NùñÞ\80<ÿ\0Pѵ\8f\ fxUtÍ
+/<ȸqé\9eµ\82\9f\ fu\1føFX0Åä¼²zW®\8dã 4|ùÏ4\ 1Ïx#K\9fDðÔVw#\12©É\15Ï|Oð÷\89¦ÒZÉ7\vyw?ç^\84C\13È4\0à 4\ 1Äø¿Á\87Ä~\1f´PÛo,Ðy\7fQX>\1cðï\8ao®#\8b[\94Åk\17\e\7f¼+Õ0ÙÎ\ eh;Ï\Ð\a\89j^\ 5ñ&\9f©êi¤\82Öw¼}*ŧÃ+ãág\86a\8bäæ3ï^Ì7\8fZO\9f9æ\80< x\17Åz\86¤Ë¨!hìÈä׺[æ;dFê«\8a\93/ïMÚÞ\86\80<ÐxCQÿ\0\85\84\9a¾ÏôpÜ\9a_\1ax3Q\7f\11Ãâ\1d\vþ>\10`Æ;×¥üøÇ4\0à 4\ 1æV^\vÖuÏ\r_[k×\ræÜ\12ê\87øMy\97\8c4_\10è:\fvwùû\1cS(\8c\9eã5ô×ÌNH5ÍxÓÂQøÃMK9Ý\95U\83q@\1c&·àÝCUÓ´=\7fIùîb¶P\13ð«\9e\vð-ø¾\9fR×\17lÒ¡]\87Þ½+K²þÌÒ¬S%`@\80ý*ÑÜz\83@\1e0Þ\vñO\87µ ì´9 °¹\97{·¦k«Ôí<G§h_d°_µI2m\90\9eÙ®ðo\ 3½\ 3xé\9a\0ñKÏ\86z\9c\9e
+\8aÑ\ 17m?\9aééÍzÇ\87í$°Ðíe\18t\8c)?\9f9æ\93k\1eÆ\80<ßã_ü\8a þõjü&ÿ\0\91\1aÛëY_\1aÁÿ\0\84=xþ*ÕøMÿ\0"5·Ö\80;\9a(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\809ÿ\0\19\7fÈ\ eÛþºoþ\96Ã]\ 5aøºÞæçBQim%̱_YÜy1\91¹\96;\98¤ln gj\9eõ\1fü$×_ô+ë\9f÷Ä\1füv\80:
++\9fÿ\0\84\9aëþ\85}sþø\83ÿ\0\8eÑÿ\0 5×ý
+úçýñ\aÿ\0\1d \ e\82\8açÿ\0á&ºÿ\0¡_\ÿ\0¾ ÿ\0ã´\7fÂMuÿ\0B¾¹ÿ\0|Aÿ\0Çh\ 3 ¢¹ÿ\0øI®¿èW×?ï\88?øí\1fð\93]\7fЯ®\7fß\10\7fñÚ\0è(®\7fþ\12k¯ú\15õÏûâ\ fþ;Gü$×_ô+ë\9f÷Ä\1füv\80:
++\9fÿ\0\84\9aëþ\85}sþø\83ÿ\0\8eÑÿ\0 5×ý
+úçýñ\aÿ\0\1d \ e\82\8açÿ\0á&ºÿ\0¡_\ÿ\0¾ ÿ\0ã´\7fÂMuÿ\0B¾¹ÿ\0|Aÿ\0Çh\ 3 ¢¹ÿ\0øI®¿èW×?ï\88?øí\1fð\93]\7fЯ®\7fß\10\7fñÚ\0è(®\7fþ\12k¯ú\15õÏûâ\ fþ;Gü$×_ô+ë\9f÷Ä\1füv\80:
++\9fÿ\0\84\9aëþ\85}sþø\83ÿ\0\8eÑÿ\0 5×ý
+úçýñ\aÿ\0\1d \ e\82\8açÿ\0á&ºÿ\0¡_\ÿ\0¾ ÿ\0ã´\7fÂMuÿ\0B¾¹ÿ\0|Aÿ\0Çh\ 3 ¢¹ÿ\0øI®¿èW×?ï\88?øí\1fð\93]\7fЯ®\7fß\10\7fñÚ\0è(®\7fþ\12k¯ú\15õÏûâ\ fþ;Gü$×_ô+ë\9f÷Ä\1füv\80:
++\9fÿ\0\84\9aëþ\85}sþø\83ÿ\0\8eÑÿ\0 5×ý
+úçýñ\aÿ\0\1d \ e\82¹ÿ\0\ f\7fÈsÅ\9fö\15\8fÿ\0Hhÿ\0\84\9aëþ\85}sþø\83ÿ\0\8eÑá\84ºk\9dzöæÆâÉou\ 5\9a\18®6ï(- \8f$+\10>hÛ¿j\0è(¢\8a\0(¢\8a\0)\92ÿ\0©\7f÷M>\99/ú\97ÿ\0tÐ\a\aðßýn¯ÿ\0_\rüè£á¿úÝ_þ¾\eùÑ@\16>\17ÿ\0È·/ýwoæk·®#á\7fü\8brÿ\0×vþf»z\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\9aÌ\14dÐ\ 3ª6\94\ 3\85äÔ\13Ü,p´²¸H\97©&¸ýKÅÒ]Iö\1d\12\ 3pÏÁ\98\ f¹@\1d&£«ÙéêMÕ£öBy5ÊÉâ\rc_¸0èÖíl\8bÃ<\83\86«\1ao\83\fò\8bnfº\9bª\8cýÚì`µ\8e\18\95\11\15Uz`P\a\1fcðþÃíBöùä\9aì\9c°'+\9aëì ¶@°Â\91\81ýÁ\8a²\14\ e\94´\0\81@¥¢\8a\0(¢\8a\0(¢\8a\0ä>$ÚÏyá\v\98mâide *õ¯\12ðw\8c<Uàí!ôØô\e\96]å\81ØkéÂ\ 1ê3Lò£ÿ\0\9ekùP\a\83\7fÂÚñ\7fý\0.¿ï\83Gü-¯\17ÿ\0Ð\ 2ëþø5ï>T\7fóÍ?ï\91G\95\1füóOûäP\a\83\7fÂÚñ\7fý\0.¿ï\83Gü-¯\17ÿ\0Ð\ 2ëþø5ï>T\7fóÍ?ï\91G\95\1füóOûäP\a\83\7fÂÚñ\7fý\0.¿ï\83Gü-¯\17ÿ\0Ð\ 2ëþø5ï>T\7fóÍ?ï\91G\95\1füóOûäP\a\83\7fÂÚñ\7fý\0.¿ï\83Gü-¯\17ÿ\0Ð\ 2ëþø5ï>T\7fóÍ?ï\91G\95\1füóOûäP\a\83\7fÂÛñ\7fý\0.¿ï\83\¿\8b|Câ\9f\19ÝZ,º\1dÊ,l?\80ú×Ô>T\7fóÍ?ï\91G\95\18þ\ 5ü¨\ 3+±I\ f\86,#\95
+:Ä\ 1SÚ¶(éE\0\14QE\05\9dQrÇ\ 2\93b³\aê{TSÀÓ8\ 4ü\9dÅNª\15B\8e\82\80\16¾xø»m¬ÛüI´Ôôý:k\84\8a0r\8b\91_CÓJ+uP~¢\80<\12?\8b\1e.\8e$OøGî¾Q\8f¸i\7fámx¿þ\80\17_÷Á¯yò£ÿ\0\9eiÿ\0|ÑåGÿ\0<Óþù\14\ 1àßð¶¼_ÿ\0@\v¯ûàÑÿ\0\vkÅÿ\0ô\0ºÿ\0¾\r{Ï\95\1füóOûäQåGÿ\0<Óþù\14\ 1àßð¶¼_ÿ\0@\v¯ûàÑÿ\0\vkÅÿ\0ô\0ºÿ\0¾\r{Ï\95\1füóOûäQåGÿ\0<Óþù\14\ 1àßð¶¼_ÿ\0@\v¯ûàÑÿ\0\vkÅÿ\0ô\0ºÿ\0¾\r{Ï\95\1füóOûäQåGÿ\0<Óþù\14\ 1àßð¶¼_ÿ\0@\v¯ûàÑÿ\0\vkÅÿ\0ô\0ºÿ\0¾\r{Ï\95\1füóOûäQåGÿ\0<Óþù\14\ 1àßð¶¼_ÿ\0@\v¯ûàÑÿ\0\vkÅÿ\0ô\0ºÿ\0¾\r{Ï\95\1füóOûäQåGÿ\0<Óþù\14\ 1à§âç\8bG]\ 6ä\7fÀMWO\8dºü\93ù ¥ÌÓ\7fp/5ïòA\19\a\10Æ~ª+\95Õ¼!o<\8du¦¤v×½wí\14\ 1ægâß\8b\94àè\179ÿ\0tÑÿ\0\vkÅÿ\0ô\0ºÿ\0¾\rw\96^(¸Òn\16Ï\³EU8ûNÎ\rv\90Omq
+Í
+Æñ8ʲ\81@\1e\1fÿ\0\vkÅÿ\0ô\0ºÿ\0¾\r\1fð¶¼_ÿ\0@\v¯ûà×¼\bâa\91\1a~B\97Ê\8fþy§ýò(\ 3Á¿ámx¿þ\80\17_÷Á£þ\16×\8bÿ\0è\ 1uÿ\0|\1a÷\9f*?ùæ\9f÷È£Ê\8fþy§ýò(\ 3Á¿ámx¿þ\80\17_÷Á£þ\16×\8bÿ\0è\ 1uÿ\0|\1a÷\9f*?ùæ\9f÷È£Ê\8fþy§ýò(\ 3Á¿ámx¿þ\80\17_÷Á£þ\16×\8bÿ\0è\ 1uÿ\0|\1a÷\9f*?ùæ\9f÷È£Ê\8fþy§ýò(\ 3æ\7f\17xÏÅ~+ÒÖÅô\e\95\19É;\r{?Âë[\8bO\ 5[Eu\vE(êÔWcåGÿ\0<×ò§\0\0À\18 \ 5¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¦Kþ¥ÿ\0Ý4úd¿ê_ýÓ@\1c\1fÃ\7fõº¿ý|7ó¢\8f\86ÿ\0ëu\7fúøoçE\0Xø_ÿ\0"Ü¿õÝ¿\99®Þ¸\8f\85ÿ\0ò-Ëÿ\0]Ûù\9aíè\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢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 2\8a( \ 2\8a)®ÛV\80\e#ãå\1dk\85ñFµ=íÐÐôÂ|çâb=+WÅ\1aðÒl\8aD<Ë\89þU\ 3ª\9fZ\83Âz\ 1°\84ß^~òúo\9byì\r\0hø{A·Ñ4õ·\85rç\97s×?ZÞU
+0)\11v\8fzu\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\15\ 5Ë>ͨ\ eãÞ¤\96A\14eÏjHdóP>1\9a\0!R\91(ców©(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+ð/\89JñOH\ e¡\86áÁ\1cW¾×\81üIÿ\0\92©¤\7f¼(\ 3Úíì¬\8d¬GìVÿ\0t\7fË1þ\15(±²?òãoÿ\0~×ü)Ößñé\17ÐW\9füLø\85/\82$¶Xàó<Ò(\ 3½û\r\96qö\e\7fûö¿áKö\e,ÿ\0Ç\8d¿ýû_ð®S]ñ\83é_\ ecñ"ŹÚ5}\9f\ÿ\0\85sÖ\9f\13æ¸øqqâCo\87\88ãe\0za±²\1fòãoÿ\0~×ü)>Åcÿ\0>6ÿ\0÷ì\7f\85x]\97ÇmQ#\17Óèîö9Ã8\1c
+ôÈüsk¨ø6M~Än\b¤\94\1d\8d\0u&ÆÈ\7fË\8d¿ýû\1fáIö+/ùò·ÿ\0¿cü+\89øsã¹<i\fï$>_\96Ûk¼r#Vf8U\19'Ú\80!û\15\8füù[ÿ\0ß±þ\14}\8aÇþ|ÿ\0ïØÿ\0
+©c¯éZ\9cï\ 5\95ÚK*\1c2\83Ò´°}(\ 2\ f±Xÿ\0Ï\95¿ýû\1fáGج\7fçÊßþý\8fð©ñI\8a\0\87ìV?óåoÿ\0~ÇøQö+\1fùò·ÿ\0¿cü*lQ\8a\0\87ìV?óåoÿ\0~ÇøR\8b\v#ÒÆßþý¯øTê¹5ä¿\15<gªxoS±\86ÆR\8b+\80Ô\ 1êFÆÈ\1føñ·ÿ\0¿kþ\14}\8aÇþ|ÿ\0ïØÿ\0
+«áû\99/´+{\99Ndu\ 4\9aÑÁ=¨\ 2\ f±Xÿ\0Ï\95¿ýû\1fáGج\7fçÊßþý\8fðª\8dâ\r!5\ 1`÷\88.\8fHóÍq~/ø±\ f\84µè4·±i\8c¤\ 2àt \ eÿ\0ìV?óåoÿ\0~ÇøQö+\1fùò·ÿ\0¿cü)º}ØÔtøo\14`J¹Ç¥XÆ(\ 2\1f±Xÿ\0Ï\95¿ýû\1fáGج\7fçÊßþý\8fð©°h \frÎÉtK¢,ÿ\0Õ·ü³\1e\95å\7f\ 3\0\1a\86®\0\0yÇ\81õ¯Z×\7fä\ 5uÿ\0\ÛùW\92ü\rÿ\0\90\86¯ÿ\0]\8fó \ fp¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¦Kþ¥ÿ\0Ý4úd¿ê_ýÓ@\1c\1fÃ\7fõº¿ý|7ó¢\8f\86ÿ\0ëu\7fúøoçE\0Xø_ÿ\0"Ü¿õÝ¿\99®Þ¸\8f\85ÿ\0ò-Ëÿ\0]Ûù\9aíè\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0<
+ÎÔo\92ÊÒ[\99\18\0\8b\95\a¹«\92¸\ 3\19Àîk\80×®\1fÄ\9aìz\1c\fÂ\18\8eæ\91z\1fj\0O\rØ˯ë\12ë×¹1\ 3µ!n\83Þ½\ 2$ïÛ°ªÖ6qÚÛÇ\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SXdø\85v$U|CÀ?JÐø5\15´þ'×ç!m\9e6\ e}\ 5\0kÚü^ñ\1e¿â\17\87F±Y!\8dñÏqT¾-Ü\ß\hÓÞEå\3\8dÉé\ö½b>\1dø\86-S@¿\8e{i¤8\8d['¯J×ø\89ªÉ¬A ßܨ\8eGeÊÐ\aIüS¹ð¦\91§Xé¶âyÙ@" Ò¾9ê·\9aõ¦\97.\94¨ó0VÈÁ\15Áê,\96\1e9Ò//Çú\18 \9dÝ\r^ºÔ4ÝKãN\9f>\9a\10[\97P6ôÍ\0Tñ\1eµ©[ü^[\98ã&hä\ 5cõ¯Añ\8f\8c!·Õt\96¾Ð¢\96æã\eË\ eV¹mxGÿ\0\vêÍJ®7®Eküd)\1f\8eôµ\18Q\81\81@\e\1e(ø·q`öº_\87ìÖ[\89\17\94Q÷kGÀ¿\14®5¿µÙj°\b/ÁÂú×\94øNHt¿\8a«&«\85\8eLìi:Uí ~Õñ[V¸´!íÃ7Ì\9d(\ 3¡Ô¾=ê\96·\97¶\89¦.è\18¨`+Ð>\18xê\7f\1disÜ\B"\92\16Ú@¯ \81`\92÷Ä\fê\8cÁÛ\ 4ö¯Fý\9dH:N©\8fùé@\1eµ®ÿ\0È
+ëþ¹·ò¯%ø\eÿ\0!\r_þ»\1fç^µ®ÿ\0È
+ëþ¹·ò¯%ø\eÿ\0!\r_þ»\1fç@\1eáE\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1L\97ýKÿ\0ºiôÉ\7fÔ¿û¦\808?\86ÿ\0ëu\7fúøoçE\1f\rÿ\0Öêÿ\0õðßÎ\8a\0±ð¿þE¹\7fë»\7f3]½q\1f\vÿ\0ä[\97þ»·ó5ÛÐ\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1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FËþ~cÿ\0¾\85\0s¾,ø\7f£ø¿cÞÇûÕþ!Ö°¬~\fè\1av¡\1dä!\8b§ \9aïÿ\0´l¿çæ?ûèQý£eÿ\0?1ÿ\0ßB\809\19¾\19é3jòj,§Í\91v\9a\93@øo¤è\17\17²À\bûZ\95\7f¡®«ûFËþ~cÿ\0¾\85\1fÚ6_óó\1fýô(\ 3Ì\93à\86\9a\9aâÞ\19ä\92Ý_x\8dÛ5Ókß\ eô\9dwì¢DÚ¶ØØ\aµtÿ\0Ú6_óó\1fýô(þѲÿ\0\9f\98ÿ\0ï¡@\1c®»ðÏD×ìííîcÇ\90>R:Öf\97ðsAÒ5[}BÜ7\9b\ 1Ê\93]ïö\8d\97üüÇÿ\0}
+?´l¿çæ?ûèP\a+uðãK»ñT~ p~Ó\19\ 4~\15?\89<\ 5§x\9bU·Ô.ÁóaÆߺ?í\e/ùù\8fþú\14\7fhÙ\7fÏÌ\7f÷Ð \ e+Å?
+ô\9f\11Á\ eÑåO\10ºðj×\84¾\1ci\9e\15´\95\10o\9aQ\86sÉ®¯ûFËþ~cÿ\0¾\85\1fÚ6_óó\1fýô(\ 3\8b\8fáV\8f\eÝ°S\9b\92KÖÇ\83ü\19aàËyá±\ 4,Ç&·?´l¿çæ?ûèQý£eÿ\0?1ÿ\0ßB\80 ×\7fä\ 5uÿ\0\ÛùW\92ü\rÿ\0\90\86¯ÿ\0]\8fó¯R×5\v#¡Ý\ 1q\19>[\7f\10ô¯-ø\18C_êä\1c\83)þt\ 1î\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14É\7fÔ¿û¦\9fL\97ýKÿ\0ºh\ 3\83øoþ·Wÿ\0¯\86þtQðßýn¯ÿ\0_\rüè \v\1f\vÿ\0ä[\97þ»·ó5Û×\11ð¿þE¹\7fë»\7f3]½\0\14QE\0\14QE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ª+h¤\¼\8cw\1eÕ,!ÄcÌûÕ%\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QM\96A\14O#}ÔRÇð \aQ^YsñãÂö÷rÛùW.ñ±S´w\15\1fü/Ï\r\7fÏßýó@\1e¯EyGü/Ï\r\7fÏßýóGü/Ï\r\7fÏßýó@\1e¯EyGü/Ï\r\7fÏßýóGü/Ï\r\7fÏßýó@\1e¯A\19\18¯(ÿ\0\85ùá¯ùõ»ÿ\0¾hÿ\0\85ùá¯ùõ»ÿ\0¾h\ 3Gâ\8f\88oü=¡Kök?=$\18Ý\8cí¯\9f¼;âýjóÅZdS_H°\89ÆS<b½¢ûão\845+g¶»°¹\96'\18!\92¼CUºÒ#ñl\1a\8e\8bi:Ù¤\9bØ\11@\1fe@âH\11\94ä\15\ 6¤¯\1f±øíáÛ{8¢{K Ê \1c
+³ÿ\0\vóÃ_óëwÿ\0|Ð\a«Ñ^Qÿ\0\vóÃ_óëwÿ\0|Ñÿ\0\vóÃ_óëwÿ\0|Ð\a«Ñ^Qÿ\0\vóÃ_óëwÿ\0|Ñÿ\0\vóÃ_óëwÿ\0|Ð\a«Ñ^Qÿ\0\vóÃ_óëwÿ\0|Ñÿ\0\vóÃ_óëwÿ\0|Ð\a«Ñ^Qÿ\0\vóÃ_óëwÿ\0|Ñÿ\0\vóÃ_óëwÿ\0|Ð\a«Ñ^Qÿ\0\vóÃ_óëwÿ\0|Ñÿ\0\vóÃ_óëwÿ\0|Ð\a«Ñ^U\17Ç¿\vÉ:Db¹Fv
+2¾µê6ó-Í´s§Ü\91C\ f¡ (¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0)\92ÿ\0©\7f÷M>\99/ú\97ÿ\0tÐ\a\aðßýn¯ÿ\0_\rüè£á¿úÝ_þ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\8aéè\ 3\9dÿ\0\84\vÃ\7fóá\1fýò)?á\ 2ðßüøEÿ\0|\8aèè \ esþ\10/\rÿ\0Ï\84_÷È£þ\10/\rÿ\0Ï\84_÷È®\8e\8a\0ç?á\ 2ðßüøEÿ\0|\8a?á\ 2ðßüøEÿ\0|\8aèè \ esþ\10/\rÿ\0Ï\84_÷È£þ\10/\rÿ\0Ï\84_÷È®\8c\fÖ%×\8b4«=n-"Y±u/Ý\P\ 5\7fø@¼7ÿ\0>\11\7fß"\8fø@¼7ÿ\0>\11\7fß"ºB1I@\1cçü ^\eÿ\0\9f\b¿ï\91J<\ 5á¼\8fô\b¿ï\91]\15*ýáõ \ f\9e~1x\7fLÒ5M4ØÛ¬D̹ÀÇz÷í\eþ@¶?õÁ?\90¯\14øéÿ\0!M7þ»-{^\8dÿ\0 K\1fúà\9fÈP\ 5ê(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+d¿ê_ýÓO¦Kþ¥ÿ\0Ý4\ 1Áü7ÿ\0[«ÿ\0×Ã\7f:(øoþ·Wÿ\0¯\86þtP\ 5\8f\85ÿ\0ò-Ëÿ\0]Ûù\9aíë\88ø_ÿ\0"Ü¿õÝ¿\99®Þ\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\809\9f\17x×Oð|\11Ë|N\1f¦+\8eÿ\0\85í \1e\90ÌG¨ZÌøò\8b$Zr¸\ 4\16\1d~µÖøSÁº\ 4þ\15±\92]>\ 6v@K\15 \f_ø^Ú\ füð\9fþù£þ\17¶\83ÿ\0<'ÿ\0¾k±ÿ\0\84\1fÿô\ e\83þø x\eäñ¦Áÿ\0|P\a\1dÿ\0\vÛAÿ\0\9e\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9cs\80ë\9aÅ»\8d->'ëQÙB"A\ 3|\91\8c\0(\ 3¼ºøÁe\1e«åC\v½§\99å\99Bñ\9aÖñ\aÄ\8d/G´·\96\ 6ó¤\9b\1f*ó^Sàí+TÕü)<HÖkkö\83óI\8dýití-4ß\1cZÚê\12,±\a\18gåh\ 3Ôt_\89ºf«y%¬\99\8eX\97s\821\81\\7f\8eþ%ÚjzF¡§ÛDÏ\ eÂ\ 4\80q\9aÄÖ\92Ý~ ë¿cT\vöS\8f/éMðäV\ 3áf¤÷\v\17Ú~o¿÷¨\ 3ð?\8a,ü'ð²Ê{¦Ì\92±òÐu$Öß\87~'ÙjóM\ 5Üm\ 4±\8c\80Ã\19¯\17\99îO\85<:±\81»í?»ß÷z×q}á\8dJ{Á}y=¤n±\82V\12\ 6F(\ 3²\83â\8e\99y®¦\95l\8eò³`\908\15ÛÝ̶\96\8fpÿ\0u\ 6My\1fÂ{kY|E©;ÛÆÒ/F#\91^£¯ÿ\0È\ 2ïýÓ@\1c-çÆ\1d:9%\16±¼\89\ 1ħ\1d+cPø\8b¥Yxv\rP8g\9cf4îkÍ|+\ e\9eÞ\1fñ'\9c\90îç\96\1c× I\97YУrM nÿ\0w\0{V\8bñ[OÕu;}:Dhîg\19\0\8cU\86ø\9f¥\9djãH\88;ÝBp@\1cW\ 5Çb\9f\154/±¬@lçËúU¿\87VöÒüKñ\vK\ 2HÞa\19aÒ\80:½Cât\10Ü¥µ\94-,¹Ä\80\fâ«Í®h÷^4ÓÒâÍ\ 5û¦ðÄr+/ź\15Ï\83µWñ\1e\9e\90Éf[3#\8açbÕaÖþ)iwÑ(_2\ 2p;q@\1d¾¥ñwO·¹º·¶F\92KgÚø\1d+b\ f\88\1akøUõÙ\1fliÁ\1eõäþ\1f\82ÝåñC<(Íç7$V]Øaà\19ÀÈ\87í#>\9dh\ 3Ô,~0éÒº%Ôo\19\95±\19#¨¯H¶\95g\82)×îÈ\ 3
+ð\9f\19Á¦®\8fáÓl\90ù\85\13%G5íÚ7ü\81l?ë\92ÿ\0*\0ñ\7f\8e\9fò\14Ó\7fë²×µèßò\ 4±ÿ\0® ü\85x§ÇOù
+i¿õÙkÚôoù\ 2Xÿ\0×\ 4þB\80/QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0S%ÿ\0Rÿ\0î\9a}2_õ/þé \ e\ fá¿úÝ_þ¾\eùÑGÃ\7fõº¿ý|7ó¢\80,|/ÿ\0\91n_úîßÌ×o\GÂÿ\0ù\16åÿ\0®íüÍvô\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\ 1âÿ\0\1d¾î\9bþðþuèþ\ fÿ\0\91COÿ\0®b¼ãã·ÝÓ\7fÞ\1fν\1fÁÿ\0ò(iÿ\0õÌP\ 6Õs_\105»\8f\ eøBãR´8\9a2\05sÄþ%³ð¾\95%íË\rë÷SÖ¼Ûž.\9fÅ?\vïn%²6èÌ6\13üT\ 1è^ Õç×|3k}rs$\89\93]\ 5yg\86ü]oáo\0ØnQ%ÃGòÇë[\9e\1aø\91i\87[ÈŬª¥\82\9eô\ 1ÛÑ^hÿ\0\17à\17\93\84´-g\vìi»fµn¾%éöÖ w\80Uþèõ \ eÚ\8aóÝ\eâ\92j\1aÑÓní>ÎÅ7¡?Ä*í\97ÄHoZð,\18\16Ù9õÅ\0v´W\15§üFµ¼ðÔÚÔ\91ì\8e)
+b² ø¿m&£\142Z\94µ\95\82¬Ç¦h\ 3Ò×ï
+ñ_\8e?ñó¥\7f×aüëÚba$qȧ*à0¯\16øãÿ\0\1f:Wýv\1fÎ\80=sÿò\0³ÿ\0®CùV¥eøwþ@\16\7fõÈ\7f*Ô \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a('\ 34\0\8d\9d§\1dqUâbæY3º\9d\1dÁ\92rª¹AüUb\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+)®ÅT\902j½¸\99ؼ\87\ 3° \ 4h$\9a|³b1Ú\ 1\80\0íKE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QHX\ e¦\80\16\90\10s\83QL¯"íC·=é`\8bÊL\13\93ÜÐ\ 4^LÏ.]þOJuèÆ\9dr?é\93\7f#V*½÷ü\83î\7fë\93\7f#@\1e\11ðcþFÍ[þ»\9fç^ñ(Þ\92'÷\86+Áþ\v\8fø«5nGúóüëÞ\98e\8fÌ?:\0âô?\ 36\8fâyµs(a'ðÓ-|\ 2!ñÞ»,\8añ\!F\8fØ×o\8fö\97ó£\1fí/ç@\1eYqð\9eá5mú}óC§4\9bÚ\10ØÍkx\97á¼\1aÅ\9d²YHa¸\84\82d'\93]î?Ú\1f\9d\18ÿ\0i\7f:\0ó-\aádÚnµ6¡{t&\12¦Æ\19Ï\15GSø;quqr-o|«I\81Äyé^·\8fö\87çF?Ú\1f\9d\0p+ðÒÙü\19o¢ÎÀÜ[\1dÑJ;\1a\83Ãÿ\0\rî¬<öÔï\9aáÜa>lâ½\17\1fí/çF?Ú\1f\9d\0r>\12ðcxgPººiC\89»\ eÕ»¯\9ch\17gý\93Z8ÿ\0i\7f:\8aâÝ.mÞ
+\94a\823@\1f<øCÂW~'½Õ µ»ò`f>hÏ^kÓo>\18ØÍá¨të|%Ô#å\96º}\eÃ\96\1a\14²Éfª\8d/-Íkãý¥üè\ 3Êto\84·v\1e ³Õno|Ö·\18Á9Ít^\eð9Ð|I¨j¦PÂí³·Ò»L\7f´?:1þÒþt\ 1Áø£ÁZ·\88®|±|\16Á\8e^2zÕ{_\861Ùx\86ÏS\82P\16Þ=\9b}kÑ1þÐüèÇûKùÐ\a\9eéß\r\9aÄê\87Ï\aí®[é\9a©¨øFÇÃþ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ï\80VóÅ\16\9a³7\10Ä##Ú±õ\9f\84ßhÔZ}>á£\8eSûÁ\9e´\ 1Ãé`7Â;±ü?j?Χñl6\11|1Ò\1e\ 1\10¸ó\97\95<×Qão\rÚxOáºéÖÇäwùÉõ¬\9f\bü3]rÆÖêæéÞÒ6\ e¨Oz\0õ¯\v;¿\87,L\84\96ò\97¯Ò¼¯ã\8fü|é_õØ\7f:öx"H!\8a\18À \1a\85\0{W\8c|qÿ\0\8f\9d+þ»\ fç@\1e¹áßù\0Yÿ\0×!ü«R²ü;ÿ\0 \v?úä?\95jP\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1M,¥¶g\9fJS\9c\1cu¨!\85Ä\86I\ fÍÚ\80&HÖ1\85\18§QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\15\rÄâ\14Î2{SfºXØ \19céS\0\1dA`3ï@\11Û¼\8e\9b¤\g¥ME\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0Q\9cu¦\99\106ÒÃ>\94É£iFÜá{Ð\ 4\81\83t9ªËlÆc#¹ÇaSE\12»T\93õ©(\0¢\8a(\0¨®\90Ëi4k÷\9a6Qø\8a\96\8a\0ù®ÏÀ\1f\11t-jöïK\81BÍ+09ê3Åk\9d?âé9ò\97ó¯}¢\80<\vû;âïüò_Î\8fìï\8b¿óÉ\7f:÷Ú(\ 3À¿³¾.ÿ\0Ï%üèþÎø»ÿ\0<\97ó¯}¢\80<\vû;âïüò_Î\8fìï\8b¿óÉ\7f:÷Ú(\ 3À¿³¾.ÿ\0Ï%üèþÎø»ÿ\0<\97ó¯}¢\80<\vû;âïüò_Î\90éÿ\0\17@ÿ\0R?:÷êFÎ\ e(\ 3æíGRø\99¤ÝÁkw\1e%¸8L\1aÓ[\1f\8b\8c2"\18=ó^\93ãë6}+ûL\1f\9e×\91í[\1e\15Ô_Qðí¥Ó¹fqÎh\ 3È?³¾.ÿ\0Ï%üèþÎø»ÿ\0<\97ó¯}¢\80<\vû;âïüò_Î\8fìï\8b¿óÉ\7f:÷Ú(\ 3À¿³¾.ÿ\0Ï%üèþÎø»ÿ\0<\97ó¯}¢\80<\vû;âïüò_Î\81§ü]\aýRþuï´P\aÍ:¯\80¾$x\8aþÖ]JÝJÅ"·_zú7N\85íôÛX_ïÇ\12«}@«4P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1L\97ýKÿ\0ºiôÉ\7fÔ¿û¦\808?\86ÿ\0ëu\7fúøoçE\1f\rÿ\0Öêÿ\0õðßÎ\8a\0±ð¿þE¹\7fë»\7f3]½q\1f\vÿ\0ä[\97þ»·ó5ÛÐ\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\a\8büvûºoûÃùפø=\ fü":xÿ\0¦`×\1fñ{Â\9a\9f\89mmF\9b\19w\8f\9e+\89²Ò¾'XÙÇk\17\98#\8caG4\ 1ô\ 6Æ¥Úßä×\82ý\93â\97÷¥ýhû'Å/ïKúÐ\a¼ìj61¯\ 6û'Å/ïKúÑöO\8a_Þ\97õ \ fzÚßäѱ«ÀÞ\ f\8a)Õ¤õïPÂß\12®\ 3\18fvÛÁÁé@\1f@ìj]\8dþMx µø¤FCKúÒý\93â\97÷¥ýh\ 3Úµ\8d
+Ï^´\16º\84~d@ä\fÔºv\95o¤Ú-\9am\85z
+ñ\ f²|Rþô¿\1fdø¥ýé\7fZ\0÷ \84\1añ_\8ejVãJ'þ{\ fçYÿ\0dø¥ýé\7fZÊÔ|\19ãï\10j6m©£¼QH\18æ\80=ÿ\0ÿò\0³ÿ\0®CùV¥QÑíÞ×J·\82A\86D\0\8a½@\ 5\14Q@\ 5\14Q@\ 5\14Q@\ 5\14Q@\ 5\14Q@\ 5\14Q@\ 5\1d(¦\19SÌòÉù\8fj\0\85&y.p¿êÅY¦ª*\f(Å:\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+\8fÏC&Àriw \ 1UnE2+t\8cîÆX÷ \a\bP>üsRQE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QQ5Äk Bß1 \19\82\8c±À¤WY\ 6Pæ\994>v\ 18^ãÖ\9e\91¬k\85\18\14\ 1
+Ú¯\9bæ1%»U\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \f\8dzÇûGI¸³Æ|Á\·ÃûúëJíjHÅv\1a¾£\ 6\91a-õÁÄQ©,k稾.Zø\7fÄ7׶0ùé;t \ f¤ÐåE:¹\9f\ 5x\86O\13h먼^X\90d/¥tÔ\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0S%ÿ\0Rÿ\0î\9a}2_õ/þé \ e\ fá¿úÝ_þ¾\eùÑGÃ\7fõº¿ý|7ó¢\80,|/ÿ\0\91n_úîßÌ×o\GÂÿ\0ù\16åÿ\0®íüÍvô\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\ 1\91âMZ=\17F¸»\99\82¨B\ 1÷Åx·Â_\1f\ÝøªóM¸\98´sÈY\vzf»\1f\8cPj\9a\9e\86Úv\9f\e\10Ãs\11^\15àß\rø\86ßY\8eþÂ&Ì\12mr\ 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\9f÷Я\aÿ\0\84\eâ\8fý\ 5cÿ\0¾èÿ\0\84\eâ\8fý\ 5cÿ\0¾è\ 3Þ<Øÿ\0ç¢\7fßB\8f6?ùè\9f÷Я\aÿ\0\84\eâ\8fý\ 5cÿ\0¾èÿ\0\84\eâ\8fý\ 5cÿ\0¾è\ 3Þ<Øÿ\0ç¢\7fßB\8f6?ùè\9f÷Я\aÿ\0\84\eâ\8fý\ 5cÿ\0¾èÿ\0\84\eâ\8fý\ 5cÿ\0¾è\ 3Þ<Øÿ\0ç¢\7fßB\8f6?ùè\9f÷Я\aÿ\0\84\eâ\8fý\ 5cÿ\0¾èÿ\0\84\eâ\8fý\ 5cÿ\0¾è\ 3Þ<Øÿ\0ç¢\7fßB\8f6?ùè\9f÷Я\aÿ\0\84\eâ\8fý\ 5cÿ\0¾èÿ\0\84\eâ\8fý\ 5cÿ\0¾è\ 3Þ<Øÿ\0ç¢\7fßB\8f62qæ/ç^\10<\vñD\9fù
+Çÿ\0}×;\7f{ã_ x£N´Õ¯|Á,À|Ôf\80>\9c¢£\81\8b[ÄÇ©@\7fJ\92\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+d¿ê_ýÓO¦Kþ¥ÿ\0Ý4\ 1Áü7ÿ\0[«ÿ\0×Ã\7f:(øoþ·Wÿ\0¯\86þtP\ 5\8f\85ÿ\0ò-Ëÿ\0]Ûù\9aíë\88ø_ÿ\0"Ü¿õÝ¿\99®Þ\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80*ß\ 5û5ÆUOî\8fQí\\ fÂð¦ßVÊ)ýùí]õ÷üzÜ\7f×#ü«\81ø]ÿ\0\1eú·ýv?Î\80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kA¿á\1d¾ß÷¼\87Ïå@\1e7ð#þ?5\1fúìÕìÚ½Á´Ñ¯n\a\ 68Ù\81¯\19ø\11ÿ\0\1f\9a\8fývjö]fÜÝè\97ÖëËI\e(\14\ 1òþ\95sâ\9f\16j\9aÅõ\8e¡2Gn\18\9c\1e\82¶~\1exÓQÓ´\9d^kûÙgtV ½³\83Xº\1dþµàkíkOm:y\12ä2\82«W|\ 3ákí_EÖ\16Ki#r\19\940ë@\1a\9e\0ÐüCâ\8dE¼K}¨Ì¶\90Ê_nx v¨u{Ý{â'Ä\194½6òXmaùNÓéNøuã\1dOB\94øZöÆP\93Èc\aoJ©ss«|3ø\8bqy\1d\9c\92[Íód/\ 4\1a\0¿ã=jûM\97Nðjê\12 B\ 4Ó\ 3É©ü\r®ßø{Æ\ f¦Cs=í¼\83å2r\ 5fxÆÆ}CVÓ<a-\9cg3\ 3*\ 1È®ËÁZ®\91¬ø\84¾\9f¦H\89\10ûì´\ 1ç¾(Õu=Oâ\15Å\9e¡¨\YÁ¿ É\ 2½#Å\12j^\19øj\ 6\99y%Ù\919\95NH®;â\9eµ¦êÚ\8dÕ©Ò¦Kè\8e"\91\17©®»Ã77^\1døf$Öí$ºI\13\84#$
+\0äþ\15Ù>³ªÛ^I®MçÆÙ\92\17n¦¾\90#h>Ë_)xf\19µ?\88Ö\97\1a\1dµÅ¼\ 6MÒ\f\10+êÄ\f!ØççÛ\82h\ 3æÿ\0\12ëZ×\8f>#\7f`é÷r[Ã\13ìm\86´þ ê\9a§\82´\9b_\rÛÞH÷\17 \ 1.y\19â°u\985O\87\9f\13¤ÖVÕå·\9aBùQZ\7f\12ãÔ<]mcâ\8b+I6Û`\94Ç8\1cÐ\ 6JÍ®|=ñ\ e\95-Æ£4ëx\81\99\18ñÍ'\88õ\7f\11ê¾.XôíBdó\10·\96\e\8cSu-Bçâ/\884Xm¬¦\8cÚÆ\16BÃ\8c\8aÐ\8fM¾µø\8b\1c\7fe\93dp\95ß\8e:P\ 5\8f\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T>\ 2xhÚXM¨\'Ï!Êät \ fp¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¦Kþ¥ÿ\0Ý4úd¿ê_ýÓ@\1c\1fÃ\7fõº¿ý|7ó¢\8f\86ÿ\0ëu\7fúøoçE\0Xø_ÿ\0"Ü¿õÝ¿\99®Þ¸\8f\85ÿ\0ò-Ëÿ\0]Ûù\9aíè\0¢\8a(\0¢¹\e]0ëzÿ\0\88ÚëRÕ#[[ô\82\18íï¤\89\11>Ë\ 3ãj\90>ó±Ï½^ÿ\0\84F×þ\82\9açþ\rgÿ\0â¨\ 3 ¢¹ÿ\0øDm\7fè)®\7fàÖ\7fþ*\8føDm\7fè)®\7fàÖ\7fþ*\80:
++\9fÿ\0\84F×þ\82\9açþ\rgÿ\0â¨ÿ\0\84F×þ\82\9açþ\rgÿ\0â¨\ 3 ¢¹ÿ\0øDm\7fè)®\7fàÖ\7fþ*\8føDm\7fè)®\7fàÖ\7fþ*\80:
++\9fÿ\0\84F×þ\82\9açþ\rgÿ\0â¨ÿ\0\84F×þ\82\9açþ\rgÿ\0â¨\ 3 ¢¹ÿ\0øDm\7fè)®\7fàÖ\7fþ*\8føDm\7fè)®\7fàÖ\7fþ*\80:
++\9fÿ\0\84F×þ\82\9açþ\rgÿ\0â¨ÿ\0\84F×þ\82\9açþ\rgÿ\0â¨\ 3 ¢¹ÿ\0øDm\7fè)®\7fàÖ\7fþ*\8føDm\7fè)®\7fàÖ\7fþ*\80:
++\9fÿ\0\84F×þ\82\9açþ\rgÿ\0â¨ÿ\0\84F×þ\82\9açþ\rgÿ\0â¨\ 3 ¢¹ÿ\0øDm\7fè)®\7fàÖ\7fþ*\8føDm\7fè)®\7fàÖ\7fþ*\80:
++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Ï\8a\9fóä¿\95\1fÛ\9f\15?çÉ\7f*÷\1f\97û¢\8f\97û¢\80<;ûsâ§üù/åGöçÅOùò_ʽÇåþè£åþè \ f\ eþÜø©ÿ\0>KùQý¹ñSþ|\97ò¯o\92X!\19\99\91\a«R«E"î\8fk)èE\0x\7föçÅOùò_Ê\8fí¿\8a\9fóä¿\95{\8fËýÑGËýÑ@\1e\ 3¨Ü|MÕ,d³¸²S\13õ\18£O\9fâV\97i\1dµ®\9e\88\89ÀÀ¯~ù\7fº(ù\7fº(\ 3ÿ·>*\7fÏ\92þT\7fn|Tÿ\0\9f%ü«Üp¿Ý\14â\80\fì\14\ 1á\9fÛ\9f\15?çÉ\7f*?·>*\7fÏ\92þUî?/÷E\1f/÷E\0xwöçÅOùò_Ê\8fíÏ\8a\9fóä¿\95{\8fËýÑGËýÑ@\1e\1dý¹ñSþ|\97ò£ûsâ§üù/å^å°c;\ 5&\17û¢\80<;ûsâ§üù/åGöçÅOùò_ʽÇåþè£åþè \ f\ eþÜø©ÿ\0>KùU]CÅ_\134Ë7ºº³Q\12\f±¯{ù\7fº+\98ø\88\17þ\10Ëï\94\7fª4\ 1Káw\8ao|UáïµÞ\80%\a\ 6»ºò\9f\81_ò*Iÿ\0]\rzµ\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14É\7fÔ¿û¦\9fL\97ýKÿ\0ºh\ 3\83øoþ·Wÿ\0¯\86þtQðßýn¯ÿ\0_\rüè \v\1f\vÿ\0ä[\97þ»·ó5Û×\11ð¿þE¹\7fë»\7f3]½\0\14QE\0sþ\1eÿ\0\90ç\8b?ì+\1fþ\91Z×A\ÿ\0\87¿ä9âÏû
+Çÿ\0¤VµÐP\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\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\e3YºG\89üW¢Ã£Æ'x´ö`\11GF\14\ 1õ\88RN)J\11^/ñ\ 3â\1dô\16:~\9f¥¹K«¥\ 1¤\1fÃX\9e\13ñ¶· ëI¤ê\97\8dx÷#\86';h\ 3è=\86«ÞÜ-\85£ÜI\8d¨2kækÇÞ.\1a¾§ka3´q·Þþè®\93ÁÞ%Ö¼Qðß\\8aâf\92ê\0B± \ fPÑ|oeâ\14»[\15\ f$\0\8c\ fZâ|/ã\1f\15_xîM:úÑÅ\8eò\ 3\1e¼ÿ\0à\95¾±ÿ\0 lï\11o³¢\9f?\9eõ³¤øúêÇâ\ eç\9cÛÄä\ 1\8a\0ú\1c¡Ï\1d)\ 2\13é_:iZÏ\8d<uâ\9b\9bÍ2êH´ëwÉPxÅ3Äþ5ñ>£â¨t\9d\12áÄÐ.$Eþ"(\ 3èÖRªXô\ 35ʧ\8ft××\9bF\}¤\ e\ 6kʼ\ 1ão\11j^9\93HÕ%`V6VCë\5Å®·ÿ\0\vZe·f\17Bã#\9fáÍ\0zÎ¥ã?\15ÃãÈ졲sb[\aé^»\ eé-ãr0Ì \91^\11ªø£P²ø\81ejí÷#\1eg\15SÅ\9e6ñ\ f\8a|Bt¯\ eÜ<\1eJnb\9dè\ 3èB¤\1cRì5à\9e\bø\81ªµ\95þ\8d¨ÎÒ_[¡ýáëÅqw\7f\11<g-\94Ï\fî°Å!Ì\83Ð\1a\0ú¸\8c\1c\1aåþ"\7fÈ\99}ÿ\0\\8dRøU®]x\87Á1^Þ±y³\82Æ®üDÿ\0\912ûþ¹\1a\0åþ\ 5\7fÈ©'ýt5êÕå?\ 2¿äT\93þº\1aõj\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0)\92ÿ\0©\7f÷M>\99/ú\97ÿ\0tÐ\a\aðßýn¯ÿ\0_\rüè£á¿úÝ_þ¾\eùÑ@\16>\17ÿ\0È·/ýwoæk·®#á\7fü\8brÿ\0×vþf»z\0(¢\8a\0çü=ÿ\0!Ï\16\7fØV?ý"µ®\82¹ÿ\0\ f\7fÈsÅ\9fö\15\8fÿ\0Hk \ esǺæ\89àMcSÓå\11]Û[\99"r¡°r;\10A®\vÀ\9f\11õ{\8f\ 5ø¢ëÄ\971K¨é1\v¤o-P4rEº1\85\ 3©\1dqüB»\1f\8a\7fòKüCÿ\0^\8düÅxw\8bì/í¯<;e§\83åø³CÓí%Èþ41\8e?\ 5OÀ\9a\0ô\1f\83>6ñ/\89ïu¸¼Iz\93\vH`\961ä¤{\ 3\86$\9d vÇZê#ø½ài5/°®»\1eýþX\94Äâ"Þ\9ef6þ9Åyö\91¤ÜÏ®üYÒt|Ç9µ\8e\vu^§\bà(ú\81\8fƲßÅ>\1a\93àl~\ f\8aÝÛÄ,«\0Ó\85³y¢ãÌÉ~\9dz\9f^Ô\ 1í¾%ñ§\87ü#\1c\ f¬ê\v\ 3\\1cC\1a£Hòtèª Ç#\9aât_\88×:ÏÄ_\10ç^\rCC³Ò\rݵ¼q\ 5f\95Bdg\e³\92Ã\aקJæõ5\93Á\9f\10<\a«ø ¿ö}¶\8c\96rÜ\18w¬3\84`AÆyË/?àjÏ\85õ\88µ?\8d\1e-Ö|=mç,Ú)\96Ð:\18Öå\94Æ7\fàá\99HÏ~´\ 1[@ñ\17\8düc¢Ki\9e;ÓbÕw1\8bA\16ñ\8cà\9f\93-ÎHÆ\ f#¦O\z¨ñ?ö\1f\83mõ\8f\19y:M [\98Ã\89\a\99\920\9bs»8È\ 3$\ f¡¯\ eÕ5_\86^!ðååö³¦I¢ø°o\rig\1c\88æQ\90\98\18ÙÏË\9càç5g^·ñ\bø_à\rWX{\84\8eÂô½ÔÒCç<1\96ýÓ¼m÷\80QßÔ\ eô\ 1í~\eñÇ\87¼[$ñh÷âYà\ 1¤\81ãhäU=ö°\a\1eþãÔV]Çů\ 4Zêma&¶\9bÒO-åX\9d¢FÎ0d\v·ñÎ+\85У\8bÄþ?»Ô4Ï\15Üêú\94:L\90\e¨tÔ·\83\ e¬\103\86\ 4°b\ fNÃ\9e8Êðw\8c|/á¯\86\13xk_Ó\rα\ 5Û¬ú<\96Ç|îd\ 4\1fºA c¯÷qé@\1e×7\8a´\88<Meáç¹?ÚW°\e\88#T%]\0c\9dÀcøOz\88xÇC:\9e±§\v¦ûV\8f\ f\9fz\9eS~í6îÈ8ÁãÒ¼ÏÄú\8d§\87¾0x/^Õ m+JþÉh~xÎØ\el\83ËùF\ 1]ê0:U\r\eR·Ö<gñGQ³ó\r´úAh\99ã(]DX\f\ 1ç\a\19\1eØ \ eõ>*x[[¶¹µÑu¯ôãc5Änmd" \8aÇs\ 2¸ã\19ÁëÇrÚ§Å\99¼?à\7f\ eL5\18u]GR\95¼ËÃjѯ\92$u.\10(ä`(\1eÙÁ«_\ fìí¿gye\8a5\12O§ÞÉ#àe\8ed\1d~\80\ f¸\9dHù\1f\ 1<\ 5{ "ÞÛV\12Jàgjù\93s\8e´\ 1í\9aO\8f|;êöú]\95ãµÝůÚáI tß\1f¨,\0Ï^:ð}*î\9fâ\8d'U×µ\1d\16Îv\96÷NÛö¥\11°XÉè7c\ 4õà\1eÇÒ¼çâ=ý¬\rá_\89Ú3}¦ÚÊàE<\91\82\f\96ÎH=GL\96\1c÷zÙø7¦O\17\84§×ï\80þÐ×®\9eúfï´\93´}:\91þõ\03âv¿â\1d3]ð\9e\97 j\8b§¶u%¼²5ºL\a1\858aÛqèGZÈ\93Ä^7ðgÄ\r\ 3H×õ\9b-jÇY\94À¢+t\86HÎà\ 3aFz°õ\a\9eô¿\19l#Õ|Wà\1d>i%\8e;\9bébg\85öº\82b\19SØ×Káÿ\0\84þ\1aðö¸\9aÌ\7fm½¿\8c~ê[ë\8f4Æzdp9úç\1d¨\ 3\9f±ø¢\9aO\8e¼]câ]Sn\9fc4qØÄ\96û\9cgqll]Ç\18\1c\9e\95ÝEão\ eMáoøI\97U\84i\0spÀ\8c\1cãi\nÝ\9e1\8c×\rðþ(ßã\ fÄGhÕ\98I
+\82FN\ eì\8f¡Àü«\85ðî·>\87ð#Pº\8bM´¾Îºñ7Úàó£\81J/ï
+ã\9c\1c\ e}h\ 3Ù¼=ñ'ÂÞ'Õ?³tÍE\9aô¦õ\86X\1e"àrvî\ 3<sU®¾-x.ÎúkYurL2yRÌ\96ò<HÞ\85Â\95íë^q¥jÐÞümðµÙñ3káî"\17bÕ`\89_ËlF\80\ 1Ï \9c\93÷\85s×WÖ~\1d´Ö?á\19ñ]Å\92¥Óù¾\19Ö¬\ 3\97|\8e\15~`yàp\ f\ 3'½\0}\ 1¯øÇ@ðÎ\9do\7fªj1Ç\ 5É\ 2ßË\ 6F\9b#? \\96\18#\91Ç#ÔQ¢xËAñ\16\99s¨iz\82Ï\ 5®~Ð6²¼X\19ù\90\8c\8e\ 1íÎ\ f¥y\a\8c®5H|Eà\1f\13j\8dý\83ltÿ\0.IÖÐO\1d\94åOXÏÝÎåÇq\8fök{áçöuÏ\89üUâ(õ«\9d^\16\80Gy9Ó\92\vy\8a\80r\98o\98\80\b?(ê}y\0é|EãÛføU¨ø³Ã×%Õb+m+DF\1f\7f\97\9d¬;\1fQÚ¹Ï\0j\9e3Öõ\8b)¯<s ê6\8a\82[Í>Õc3¨+À;P`\86#<ö-o\ð¾§ð\95µ[/\ e>§áÿ\00\96²\81~Ï\8d®rØ\p\18dã×5ÈÇsáÏ\10üOð|¿\ f-\12#h\1aMF[Kc
+$\1c|¯À\19Æáï¸\fÐ\a¬xËþ@vßö\15Ó\7fô¶\1aè+\9fñ\97ü\80í¿ì+¦ÿ\0él5ÐP\ 1E\14P\ 1E\14P\ 5[ïøõ¸ÿ\0®GùW\ 3ð»þ=õoúì\7f\9dw×ßñëqÿ\0\\8fò®\aáwü{êßõØÿ\0:\0ôX¾à§Ó"û\82\9f@\ 5\14Q@\ 5\14Q@\ 5\14Q@\ 5\14Uk§uÚ¨ ÝÔÐ\ 3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º+oC´ð\9dÞ«\fösMqv\8bÁnpkÚõ\r\aNÕ4ÿ\0°ÝÀ¯\b\18\19\1d+7Dð.\85áòíen77RE\0|ù\0\9ck:þcq\92{WKðyd_ ø\8f(ÊpØȯf\1e\10ÑÖId\10.é~ÿ\0\1djm?Ãzf\97\ 4ÐZB\169¾ø\ 3\0xÿ\0ÀÁ"ê\9aÖäe\awQ\\1c:eΩãnÖ(\9fs;\10q_Oi\9e\1eÓ´w\91ì¢\bÒ}ì
+\8a×ÂÚM\96¢÷ðÀ¢áùc\8e´\ 1á\7f\v¼iià\99õ\1d\13T\8aE\92I\bS\8e¦²\9bQo\büN}næÞCmp¥\90\81ë^÷}ðÿ\0ÃÚ\8eªº\94ö«ö\859È\1dêî¡áM\eTò¾Õj\8då\f/Ë@\1e\ 1ðêøêß\18fÔ\12'HæÜÃp\bÄ¿ð¼$m\8d\8dß{\15íÖ>\11Ñ´ËÁwin©(\18\ 4\fT\83Ã:XÔ\8e£ä\8f´\9ewb\80<#ÅQK'Å\85A\e\1dë\8câ³´ÛÏøWÿ\0\10n®u8_Ê\9e#µ±Å}\ f/\864¹õ\ 5¿\92\10n\17£b¡×¼\e¢ø\965]BÝX¯B\a4\ 1ó×\83íåÔ5ýoZ\86\17û4\88åX\8aÊE\9bþ\10í@yOÌ\8dÆ+ê\r3ÂúN\91¦\1d>ÒÝV\16\18<sP\ f\ 5è\82ÝźùlrF(\ 3\96ø\1c¬¿\ eã\f¥NóÁ®\83â'ü\89\97ßõÈÖæ\99¥ÚèöbÖÍ\ 2D9À\15\87ñ\13þDËïúäh\ 3\97ø\15ÿ\0"¤\9fõÐ׫W\94ü
+ÿ\0\91ROúèkÕ¨\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¦Kþ¥ÿ\0Ý4úd¿ê_ýÓ@\1c\1fÃ\7fõº¿ý|7ó¢\8f\86ÿ\0ëu\7fúøoçE\0Xø_ÿ\0"Ü¿õÝ¿\99®Þ¸\8f\85ÿ\0ò-Ëÿ\0]Ûù\9aíè\0¢\8a(\ 3\9fð÷ü\87<Yÿ\0aXÿ\0ô\8aÖº
+çü=ÿ\0!Ï\16\7fØV?ý"µ®\82\80\11\942\95`
+\9e\b#4Ã\19Ù\98Óäû¿(ù~\9e\94ú(\ 1¡\11Y\99UC7Þ r~µ\1fÙmþÕö\9f³Åö\8cmóv\røôÏZ\9a\8a\0\8ex!¹\88Å<QË\19ê\92(`\7f\ 3N\11Ƹ"\86ÆÜ\81Î=)ÔP\ 5w±´\92ån^Ö\ 6¸_»)\8c\16\1fCÖ§ 2\95`\b#\ 4\1eô´P\ 4VöÐZEå[Ã\1c1ç;#@£?AHÖvÍr.ZÞ\13p\ 6\ 4¥\ 6à=3Ö¦¢\80"\9eÚ\v¤ q\fs ;\82È\81\80>¼Óü¸÷3l\¸Ã\1cuúÓ¨ \ 6¬h±ùj\8a\13¦Ð8ü©\8fm\ 4\96æÝà\8d¡=cd\ 5O~\9d*Z(\ 3\84ñÇ\81õ\7f\174\1ad\1aêiþ\1c(\82æÎ+p^B¬O\rÆ\aÝã¦Ev¶\96°ØÙÁil\828 \8db\8d\aðª\8c\ 1ù
+\9a\8a\0kF\8eÊÌ\8a̼©#8úS«Ïô\9f\13j×_\euÿ\0\ eÍt\eJ´Óã\9e\18<µ\e\\88²wcqûÍÔ÷úWuwwoai5ÝÜÑÁo
+\17\92Y\e
+\8a:\92h\ 2@\88¬Ìª¡\9bï\109?ZoÙá\114B(ü·\ 42m\189ë\91\\86\95ñ[Á\9aÖ©\1e\9de¬©¸\95öEæBñ¬\8dè¬À\ 2j÷\88¼\7fá\9f\v_Cc«jB+¹\86å\828\9eG\vêB\83\81Áë@\eñÚÛÄ\91¤pD\89\1fÜU@\ 2ý=)\1eÊÖK\95¹{hZuû²\98Áaô=k\aHñ÷\86uÛ}NæÃT\8eKm0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{g\84å¥/õ \aÏp \ 3#$ö¥\82V\95rP=£W °\ 4\8au\0S\96ÚáåÈ\9b éV\95p\81O4ê(\ 1ª\8a\9d\0§QE\0\14QE\0\14QE\0\15ÄüTÿ\0\91&ì\ e»MvÕ\9f¬i0k6\ fip>Fë@\1eGð{Æ>\1fÑü\17ö]CR\8e üÒJ?Zï¿ácxCþ\830~uοÀÿ\0\ eHìì§$ç\8aoü(Ï\rÿ\0u¨\ 3¤ÿ\0\85\8dá\ fú\fÁùÑÿ\0\v\eÂ\1fô\19\83ó®oþ\14g\86ÿ\0ºÔ\7fÂ\8cðß÷Z\80:OøXÞ\10ÿ\0 Ì\1f\9d\1fð±¼!ÿ\0A\98?:æÿ\0áFxoûGü(Ï\rÿ\0u¨\ 3¤ÿ\0\85\8dá\ fú\fÁùÑÿ\0\v\eÂ\1fô\19\83ó®oþ\14g\86ÿ\0ºÔ\7fÂ\8cðß÷Z\80:OøXÞ\10ÿ\0 Ì\1f\9d\1fð±¼!ÿ\0A\98?:æÿ\0áFxoûQIðCÃQ«3p \1eô\ 1Õ\1f\88¾\11\1fó\1a\83ó¤ÿ\0\85\8dá\ fú\fÁù×\93x?áV\91«k:\9c3©òalFsÖ»Eø\19á¼r\ fç@\1d/ü,o\b\7fÐf\ fÎ\8føXÞ\10ÿ\0 Ì\1f\9ds\7fð£<7ýÖ£þ\14g\86ÿ\0ºÔ\ 1Ò\7fÂÆð\87ý\ 6`üèÿ\0\85\8dá\ fú\fÁù×7ÿ\0
+3Ã\7fÝj?áFxoû@\1d'ü,o\b\7fÐf\ fÎ\8føXÞ\10ÿ\0 Ì\1f\9ds\7fð£<7ýÖ£þ\14g\86ÿ\0ºÔ\ 1Ò\7fÂÆð\87ý\ 6`üèÿ\0\85\8dá\ fú\fÁù×7ÿ\0
+3Ã\7fÝj?áFxoû@\1d'ü,o\b\7fÐf\ fÎ\8føXÞ\10ÿ\0 Ì\1f\9ds\7fð£<7ýÖ£þ\14g\86ÿ\0ºÔ\ 1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ËEx×ü/Í;þ|¦ÿ\0¾\r\1fð¿4ïùò\9bþø4\ 1ì´W\8d\7fÂüÓ¿çÊoûàÑÿ\0\vóNÿ\0\9f)¿ï\83@\1eËEx×ü/Í;þ|¦ÿ\0¾\r\1fð¿4ïùò\9bþø4\ 1ì´W\8d\7fÂüÓ¿çÊoûàÑÿ\0\vóNÿ\0\9f)¿ï\83@\1eËExä\7f\1e´×\95\11]\ 3\1ce\94\8aõ=\17U\8fXÓc¼\88a\dP\ 6\85\14Q@\ 5\14Q@\ 5\14Q@\ 5\14Q@\ 5\14Q@\ 5\14Q@\ 5\14Q@\ 5\14Q@\ 5\14Q@\ 5\14Q@\ 5\14Q@\ 5\14Q@\ 5\14Q@\ 5\14Q@\ 5\14Q@\ 5\14Q@\ 52_õ/þé§Ó%ÿ\0Rÿ\0î\9a\0àþ\eÿ\0Õÿ\0ëá¿\9d\14|7ÿ\0[«ÿ\0×Ã\7f:(\ 2ÇÂÿ\0ù\16åÿ\0®íüÍvõÄ|/ÿ\0\91n_úîßÌ×o@\ 5\14Q@\1cÙÒ5û=_UºÓ/´Õ\83P¸[\82\976Ò;#\bc\88\8c«\80Gî\81éÞ¤ò|aÿ\0?Ú\1fþ\ 1Íÿ\0Çk ¢\809ÿ\0'Æ\1fóý¡ÿ\0à\1cßüv\8f'Æ\1fóý¡ÿ\0à\1cßüvº
+(\ 3\9fò|aÿ\0?Ú\1fþ\ 1Íÿ\0Çhò|aÿ\0?Ú\1fþ\ 1Íÿ\0Çk ¢\809ÿ\0'Æ\1fóý¡ÿ\0à\1cßüv\8f'Æ\1fóý¡ÿ\0à\1cßüvº
+(\ 3\9fò|aÿ\0?Ú\1fþ\ 1Íÿ\0Çhò|aÿ\0?Ú\1fþ\ 1Íÿ\0Çk ¢\809ÿ\0'Æ\1fóý¡ÿ\0à\1cßüv\8f'Æ\1fóý¡ÿ\0à\1cßüvº
+(\ 3\9fò|aÿ\0?Ú\1fþ\ 1Íÿ\0Çhò|aÿ\0?Ú\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ÅjS]Ò5/#\ 5QÔ\9a\0Íÿ\0\84_Ãÿ\0ô\aµÿ\0¿b\8føEü?ÿ\0@{_ûö*×ö\9d\93Á,ÐÜ$¢ Km9é\w\87¾+èþ#ñ\1c\9a%´.³«\15Üz\1cq@\1d?ü"þ\1fÿ\0 =¯ýû\14\7fÂ/áÿ\0ú\ 3Úÿ\0ß±Z¥H4\94\ 1\97ÿ\0\b¿\87ÿ\0è\ fkÿ\0~Å\1fð\8bø\7fþ\80ö¿÷ìV¥\14\ 1ãß\1ctM*ÃÂVÒZXA\f\86qó"`ö®óáÇü\89¶_î\ få\\8fÇÏù\13?ë¸þ\95×|9ÿ\0\916ËýÁü¨\ 3¬¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¦Kþ¥ÿ\0Ý4úd¿ê_ýÓ@\1c\1fÃ\7fõº¿ý|7ó¢\8f\86ÿ\0ëu\7fúøoçE\0Xø_ÿ\0"Ü¿õÝ¿\99®Þ¸\8f\85ÿ\0ò-Ëÿ\0]Ûù\9aíè\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¨/,µ\vGµ»\85&\85þò0üA\1e\84\1eA\1c\83ÍOE\0sÿ\0j¼ðçË\7f$\97zHû·\87æ\96ÜzKýå\1fóÐr?\88pZ·\91ÒHÖHÙ]\18\ 2¬§ \83Ü\1au`¾\9bu¢H×\1a$bKRKK¦d*û´$ð\8dþÉùIþé$\90\rê*¦\9d©Zê\96Þ}¬\9b\82±GF\ 5^6\1dUÔò¬=\r[ \ 2\8a( \ 2\8a( \ 2\8a(
+·ßñëqÿ\0\\8fò®\aáwü{êßõØÿ\0:ﯿãÖãþ¹\1få\\ fÂïø÷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jº\ 5\83A\14\96êX6àz×\15sq\v|=ÒbW\ 6A0Ê\83ÏZì~+E\1aü4Ðßf×;rOZ\0Íñ\1e½6³ðªÊÞh\19
+\ 1ûÆïW|\15ñ\7fþ\11Ý\ 3MÑM\81a»o\99RøÆ(£ø1¦¼h\15\88\19"¹;Û{xü'áé\91\15di\ 6[Ö\80=ëÅ¿\12,ü3¡[ßy^l·
+
+F:æ¹Ï\aüeþÚÖ£Óu\v#lÓ\7f«-Þ¼÷ÅâAªhFô\9f²ezô©uáhÞ=ÑN\9d·\19\18Øh\ 3»ñ\ fÇ8ôM~çHM-¥\92&Ú\1c\1e¦²|qâ\12h´»½{C3Ëq\82 \8f»\\8e\9bm\15ßƶ\8eõ\ 4\83xÈ5ÒþÐPÅ\ 5ö\86\91 E\ 4p>´\ 1Õj¿\13WÂZ%\81³Ñ^[GO\97\19ùE7Â_\19×ÅZ\99´]%¡\8dFZLä
+¡ã}jÇGøUg\f±£ÜÏ\10T'¨¬¿\85ú,\1a\7f\81o®Ì¨×w\bJ\80y\1cP\ 6\96¡ñæ+-~âÁ4Ó$P1Rã¾*K\8f\8bKâO\ 6jW6Ö\ f\eC\95Æz×\9cøEô\95:Úê¡\rÖ[nîµ£ðõb\93A×T\0bË`P\ 5\8f\83>)¹\9fY»Ón y¢\9dY\99\89ÎÑé]\a\84¼EáDñÕú[é\ 2ÖæÝ\9b3úàÕ_\81vð\19µ©<µ.¡°}+ÎWÏo\12k¿f'Íó\eîõ \ fRÕ¾;Io«J¶ºcIg\vìi\0à×e©|L³±ð<~%\86\ f=\e\ 1£\a¡¯\eðïöxøU«\8b\92\9fnÞØÜy¢ÌH¿\ 1®üÜàÍòçÒ\80:ãûCÁ,Ð$z[(\91\80$ö¯eÓoWQÓ`»N\ 4\88\e\15òDÖ¶©áM>e\8dD¦Eù«ê_\a\7fÈ«eÿ\0\\85\0q\1f\1f?äN´ÿ\0®ãúW]ðçþDÛ/÷\aò®Gãçü\89Ö\9fõÜ\7fJë¾\1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«ùÐ\a\ f«ü8µÕ|#o ´\8c#\84\f0¬Ë\8f\83ö7\1aE\85\81\95¶Ú0e5é~t_óÕ\7f:<è¿çªþt\ 1Æx\9fáÎ\9fâO\ fÁ§ÈvKn1\e\8eµÎø;àä:&°\9a\8dýÃÌñ\1fÝ\869Åz¯\9d\ füõ_Î\834G¬«ùÐ\a\ 1\17ÂûH¼nþ$\127\98Í»oj»ãÏ\87ÖÞ7¹³\96y\19>ÍÓ\1dë²ó¢ÿ\0\9e«ùÑçCÿ\0=Wó \ f7ñ'Â\88|Ikgo=êZ\8c(\ 6\8f
+ü(\8fÃwë8¾\96X\80Ç\94Ç\8aô\8f:/ùê¿\9d\1et_óÕ\7f:\0ò\9d[àn\95¨ë3_%Ì\91 \98³*Ö·\87~\16Yø{N»³\8afe\9f9&½\ 3Î\8bþz¯çG\9d\ füõ_Î\808ï\ 6x\ 2ÛÁæðÀå¾Ó\9cçÞ³´O\85\1a~\95â\v½M\9cÉö\92IVè3^\85çCÿ\0=Wó£Î\8bþz¯ç@\1e3«ü\vK\8daæ³»t´\99÷¼`ñ]\9e£ðãOºðZxr&)\10Á,=k´óâÿ\0\9eÃó¤ó¡ÿ\0\9e«ùÐ\a\97IðbÁô¨,|æÛ\13\ 2\rz>\93`º^\9b\r\9a\1c¬j\14\1aµçEÿ\0=Wó£Í\87þz¯ç@\1e]ñóþDëOúî?¥uß\ e\7fäM²ÿ\0p\7f*ãþ=:7\83íB¸'Ï\1d\ fÒ»\ f\87?ò&Ù\7f¸?\95\0u\94QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14É\7fÔ¿û¦\9fL\97ýKÿ\0ºh\ 3\83øoþ·Wÿ\0¯\86þtQðßýn¯ÿ\0_\rüè \v\1f\vÿ\0ä[\97þ»·ó5Û×\11ð¿þE¹\7fë»\7f3]½\0\14QE\0\14QE\0\14QE\0\14Q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91q\eí55\14\ 1\ 5¼RÆ?y&úY\96f\ 5ªj(\ 1\91ı.Õ\18\14\86\bËn+ÍIE\0\0`b\8c
+( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2±<W£>»¡Ob\8dµ¤\18ÍmÑ@\1e\ 1cð\93ÅúDrA§k\r\f,Äí\ 6¬ÿ\0·ñ÷ý\aßó¯v¢\80<'þ\15¿\8f¿è>ÿ\0\9d\1fðü}ÿ\0A÷üëݨ \ f ÿ\0\85oãïú\ f¿çGü+\7f\1f\7fÐ}ÿ\0:÷j(\ 3Â\7fá[øûþ\83ïùÓ[á×\8f\93þcÏù×¼V~¥}ö\v\19®Î
+Ä3\8fZ\0ð\vï\rxâÒö+XµÇ\95Üá°~ík¯Ã¯\1f7üÇ\9f§z\a\85-\1aöö}n\\94\9c\9d\8a{Wl\80\85æ\80</þ\15¿\8f¿è>ÿ\0\9d\1fðü}ÿ\0A÷üëݨ \ f ÿ\0\85oãïú\ f¿çGü+\7f\1f\7fÐ}ÿ\0:÷j(\ 3Â\7fá[øûþ\83ïùÑÿ\0
+ßÇßô\1f\7fνÚ\8a\0ð\9føVþ>ÿ\0 ûþt\7f·ñ÷ý\aßó¯v¢\80<'þ\15¿\8f¿è>ÿ\0\9d\1fðü}ÿ\0A÷üëݨ \ f ÿ\0\85oãïú\ f¿çGü+\7f\1f\7fÐ}ÿ\0:÷j(\ 3À/¾\11ø¿WX¡Ôµ\86\9a\14`v\93^Ëám!ô=\ e\v\17mÍ\18Ækj\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0)\92ÿ\0©\7f÷M>\99/ú\97ÿ\0tÐ\a\aðßýn¯ÿ\0_\rüè£á¿úÝ_þ¾\eùÑ@\16>\17ÿ\0È·/ýwoæk·®#á\7fü\8brÿ\0×vþf»z\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0*\vßøñ\9fýÃSÔ\17¿ñã?û\86\80<+ágü\94=kþº\1fç^ð\7f\8býÚð\7f\85\9fòPõ¯úè\7f\9d{Áþ/÷h\ 3æO\fÜEiñ£Q\9ec\84I\18Õÿ\0\11|AñV¿¯Þ&\8a6ÚZ7Qß\15\85§[¶¡ñ[V¶\85°ìí\8a~\89ÛøZ÷\Óu\11²Wf
+[½\0wZGÅ\8b¶ð\rõÍÖ?´-r\80z\9aâ¾'øÚ=.M@G\9bf\7f¼k&ÇF¼¼ð^±ªF¬-Ä\85\80þð«\12ø§M»øpºj\ 5K\94`\bîh\ 3¸Ö¾(êVþ\v\85Ó\ 2ölm®j_\89þ5ÒÞÆ;ØÂ$ì»Iî ¬_\11XÍÿ\0\bÞ\97}\83äDT±«>>ñ>\9dâ\16ðòX\ 5Ì\e\15öúñ@\1dÇ\8e<gs§x«E\81,á\93í\11«3°ç&«x»â_\88t\9dz\v-=\ 1G\8b8ô¬?\89,\17ƾ\e\ 4ô\85?¥7Ä\12Gÿ\0\v\ 2Ø6\ fî\a\aé@\1d\ fÃ\7f\89\9aΣ®ÞYê¤l\8e2ãØÖ\11ø\9fâûývþ]6=ÐÀXc°\ 2³¼\13\ 1½ñÞ«\14'\rä·O¥7Â~$°ÑãÖôûÕT\99\8b\85f\1fZ\0õo\84Þ3Õ<Uç\rD\0ÈH8¯GÖxÐï¿ë\93W\8cü\ 5!¥¼qѤ$W³k_ò\ 4¿ÿ\0®M@\1e+ðtÌ<Q©ù8ÎæÎkÕ.tÛédf\90ç\9e\95æ?\ 5¿äkÕ>^ç,±Ä¥¤`\a½\0dhÑM\ 32È\ e;VÇ\96\9b·m\19õ¨à¸\8eáw&*\\8cã4\0´SYÕ\ 6X\80)\12hä8G\aé@\ f¢¡\9eq\0\ailúQ\ 4þp'a_\0MEU\9aYCm\8d\7f\1a\9e=Û\ 6þ´\0ú3\8a¦aºi 2\r¹àU\9b£ÚÔ\0 \10\9c\a\ 4ýi$\90D\85\9b ¨\12Â\18äÞ7gëVYC\f\11\91@\10Cv\93>Õ\añ§O1\88p2jEE_º S°\ fQ@\10Àò:åÆ*9þÕæb,l«TP\ 4q\a\11áúÔ\ f`¯&ÿ\01ǵ[¢\80\1a\14\ 4ÛÔSV\bÔä(ÍIE\0!\0\8c\11@P:\0)h \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a) À&\801<]ª¶\8fá«Û¸ÿ\0Ö¤d§Ö¾~±øËw©½½\96®6ÃæaÈî+Ö>-^¼\1e\17\968ùyW\ 1GS^GðëàýÞ¹4wú²46Á³°\8c\13@\1fDx~k;½.\19,\ 6-\88\ 4VÍRÒôËm"Æ;;UÛ\12\f\0jí\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14É\7fÔ¿û¦\9fL\97ýKÿ\0ºh\ 3\83øoþ·Wÿ\0¯\86þtQðßýn¯ÿ\0_\rüè \v\1f\vÿ\0ä[\97þ»·ó5Û×\11ð¿þE¹\7fë»\7f3]½\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\15\ 5ïüxÏþá©ê½÷üxÏþá \ f\vøYÿ\0%\ fZÿ\0®\87ù×»·Sô¯\9e¾\1eë:~\91ñ\aY7Ó¬`¹ÆN;ײ7\8e|;\9føÿ\0\8fþú\14\0û_\ 6x~ËW}VÞÉVõÎZOZÏ×>\eøs_¼û]Õ ó\89ù\88ïW?á9ðçüÿ\0Çÿ\0}
+?á9ðçüÿ\0Çÿ\0}
+\0ËñF\9bgá\9f\ 3Ï\ e\9d§ ¡Q\86\84\ eµó¦«©ø~÷L6Ö\9aSÛêO \18Úx5ôì\9e6ðÔ±\98ä½\89\90õ\ 5\85bùÿ\0\ e~Ñö\8f"ËÍÎw`g?\9d\0yõظÑ~\1eÚ®£¤µÍ³(-ÇA^w¬Ë¤ëz¶\9b\ f\86ì\1e7Þ"íès_MOâ¿ ]Z}\92{\88\1eß\18òÉ\18¬ÛKÏ\87¶\13ùö±YÅ/÷\94\fÿ\0:\0Ò\8bÁ\9a.«g¦Þj\96K%ä0¨\ ez\83\8aµ7\82¼=qz·\92Ø«N£hojgü'>\1c\0\ 1\7f\1e\aûB\8føN|9ÿ\0?ñÿ\0ßB\80#O\ahz)ºÔôë\ 5[Ã\19É\1d[Ú¾{Ö5Ï\ f\9dCQ]KC{{³¸/ËÔú×Ñ\1fð\9cøs\18û|xÿ\0xV=å÷ÃÝB\7f>î+9eþó\ 1\9fç@\1cwÀm:ê+IîÞ&H\1d\8eÌ\8eÕëÚ×ü\80ï¿ë\93V\1d§\8b|'§À ´¹\82\18\87ER\0¨õ_\exzM\1añ\16þ2Ld\ 1¸s@\1eið~I#ñF§å®ã¹«Ô¯Eü®Þj¶Üñ^cðJhæñ>§$l
+\92Äs^áqum\10ýë
+\0ÌÑ\18\98Þ.CchÅk*>ç\97u6ÊâÞy\eÈ@=êí\02H\96UÚã"\99\15¬P\9c¢â¦¢\80\10¨'\91\9aZ( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2¨ë\1a\9cZ>\95=üÿ\0êá]ÍW«\92ø\9bÿ\0$ûUÿ\0®T\ 1Ê\9f\8eÚ\0êø\ 3Iÿ\0\vãÃÿ\0Ý\7fÈÖ?Á\9f\vh:§\86¼Ûí6\19åÉù\9cf½#þ\10/
+\7fÐ\12Ûþù \ e?þ\17Ç\87ÿ\0ºÿ\0\91£þ\17Ç\87ÿ\0ºÿ\0\91®Ãþ\10/
+\7fÐ\12Ûþù£þ\10/
+\7fÐ\12Ûþù \ e?þ\17Ç\87ÿ\0ºÿ\0\91£þ\17Ç\87ÿ\0ºÿ\0\91®Ãþ\10/
+\7fÐ\12Ûþù£þ\10/
+\7fÐ\12Ûþù \ e?þ\17Ç\87ÿ\0ºÿ\0\91£þ\17Ç\87ÿ\0ºÿ\0\91®Ãþ\10/
+\7fÐ\12Ûþù£þ\10/
+\7fÐ\12Ûþù \ e?þ\17Ç\87ÿ\0ºÿ\0\91£þ\17Ç\87ÿ\0ºÿ\0\91®Ãþ\10/
+\7fÐ\12Ûþù£þ\10?
+\7fÐ\12Ûþù \ e?þ\17Ç\87ÿ\0ºÿ\0\91£þ\17Ç\87ÿ\0ºÿ\0\91®Ãþ\10?
+\7fÐ\12Ûþù£þ\10?
+\7fÐ\12Ûþù \ e?þ\17Ç\87ÿ\0ºÿ\0\91£þ\17Ç\87ÿ\0ºÿ\0\91®Ãþ\10?
+\7fÐ\12Ûþù£þ\10?
+\7fÐ\12Ûþù \ e?þ\17Ç\87ÿ\0ºÿ\0\91¦?Ç}\ 4\8c\ 5oûä×gÿ\0\b\1f\85?è mÿ\0|Ñÿ\0\b\1f\85?è mÿ\0|Ð\a\9e_ü`ð¶¨b7p\19<³\95ÊÕè~9øz$\b±\15P0\0\Wkÿ\0\b\1f\85?è mÿ\0|Òÿ\0Â\ 5áOú\ 2[ÿ\0ß4\ 1Ç\7fÂøðÿ\0÷_ò4\7fÂøðÿ\0÷_ò5Ø\7fÂ\aáOú\ 2[\7fß4\7fÂ\aáOú\ 2[\7fß4\ 1Çÿ\0Âøðÿ\0÷_ò4\7fÂøðÿ\0÷_ò5Ø\7fÂ\aáOú\ 2[\7fß4¿ð\81xSþ\80\96ÿ\0÷Í\0qßð¾<?ý×ü\8d\1fð¾<?ý×ü\8dv\1fð\81øSþ\80\96ß÷Í\1fð\81øSþ\80\96ß÷Í\0qÿ\0ð¾<?ý×ü\8d\1fð¾<?ý×ü\8dv\1fð\81øSþ\80\96ß÷Í\1fð\81øSþ\80\96ß÷Í\0qÿ\0ð¾<?ý×ü\8d\1fð¾<?ý×ü\8dv\1fð\81øSþ\80\96ß÷Í6O\ 1øPA)\1a%·\bOÝö
+~\15ø\95¥øªûì¶\9f~»jùãᵬ\16\9f\15.¢·\8cG\1a¹\ 1Gjú\1e\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+d¿ê_ýÓO¦Kþ¥ÿ\0Ý4\ 1Áü7ÿ\0[«ÿ\0×Ã\7f:(øoþ·Wÿ\0¯\86þtP\ 5\8f\85ÿ\0ò-Ëÿ\0]Ûù\9aíë\88ø_ÿ\0"Ü¿õÝ¿\99®Þ\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+d±\89bhÛ£\f\1a}\14\ 1åÚ\87À¿\ ej\1a\8c×qs\1c²¶æÚj¿ü(\1f\ eÿ\0Ïõççÿ\0ׯY¢\80<\9bþ\14\ f\87\7fçúóóÿ\0ëÑÿ\0
+\aÿóýyùÿ\0õëÖh \ f&ÿ\0\85\ 3áßùþ¼üÿ\0úô\7fÂ\81ðïüÿ\0^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ê\8f\85BEYF%2G4\0ê*\9fÛ\8f\98SÉn½j˾Ø÷m'Ú\80\1fET\8aðË&Ï)\97ÜÕ\89dòÓv3@\ f¢ \86äLûB\91O\96e\88eºP\ 4\94Tqʲ\8c\ f<hØv\ 3ë@\12QH®®»\94\82=i\86â%m¦E\aÒ\80$¢\93pÛ»<zÓ\16x\98à8&\80$®Kâoü\93íWþ¹WXH\ 3'¥r?\12Ý[áöªT\83ûº\0å>\ 4ÿ\0ÈùקÜJ¶öï3\9c*\ 2My\87À\9fù\15¿:ï¼Pþ_\86®Û8ùHÍ\0føOÆ\96^+¹¾\86Û\86´m\9eõ\ 5¿\8fì.¼Pt8Á3\ 3\83^Oðºñ´\ f\12ß´Ïò\nÀõª^\19¸\9a?\8eN$åf\90\95ö\14\ 1í7~7´´ñ\94>\1c`|ùz\1a.<scoãH¼4Ç÷òt=«\82×@\1f\1elN9\v\ß\89L°üY\1a¢ÉòE \ 4Ð\a±ø£Æö>\17½\82Öã%æ .=ê¿\89ü}iá«\e{\99\91\9bÏPT
+ò\ f\8bú\9bÞø\83HÔ!?¹\ 5\ 1\1eù\15ÑüG\96!¥è3Í´FQ '¥\0vþ\18ñññ\1e¢¶¢Êh\95\86C²àWi#Ç\172:¢ú±¬\1f\rë:\rõ\85¬:}ͬ\93\88\94\15\8c\rÀâ¹Ï\8c\1aÄú_\86\17È\8eBûþòÐ\a «£\8cÆá\97ÔR×\90ø+â|6º-´\1a\85\9cÊò0@íÞ»M_Ç\96ZEü6m\ 3K,ª\18\ 5ì(\ 3ª¢¼ïTø½a§Êb\87O\96æE\19u\8c}Ñ[\16\7f\10ô\9b¿\f\7fn}Åéä\9e¤úP\aYEyö\83ñfÃZÔ~Ç-\84¶\9b\8e\11äèÕßË"C\ 3Nì\ 4j»\89ö \ 2C²\17qÔ\f×\9fx3Ç\1a\97\88<mªh÷Q¢ÛÚça\1dM6O\8bVW\1aëhö:t×<í2 Ê\8aóÝ\ fÅ#Â\1f\10uËDz\96é\19r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ûx-ü¼\1fP+¸Õlíü)ðú{\19È\90<e\17>µ\97ð\8fF\1ag\82ïfxöÉ+3\ 2Gj\0ç|'\f\râí\7fpC\88\98|Þ\95çúÄ\93&\9f\146lÂ#tztë]6\97á»\9f\11øãP··¾\92×vC\95=Ezu\8fÂí:×Ã/¥Jþd¹È\98õ\ 6\808Fð\84÷Ï£ÝϨ¤"6V
+§ïW®ø§zx#PØNájpGÒ¸Ý\ 3ádúv ³^j²Ï\14m¹\11\8f\ 2½"xc¹´kY\ 6cuÚGµ\0yOÁ8,Ï\86î¦*\86ô»n-\8c×?á\85VñG\8bÃ*·îÛ¨Íuvÿ\0
+§Ó|Hu\r;T\92\efl´*x5£¥ü<M?SÕ¯\ 4Ä\9bôÚG¥\0yDfDð\9dÒÄH\8c\93»\1fZÜÒü+6«¢é\13Ü_$1¡Ì@\1c\13]þ\91ðæÖÏF»Ó§}ë>~cÚ²4¿\84÷\16z¥¼²êòµ«n\8e"x \ eSáå¤\1fð³u\bµ&\12¼g÷M'ÿ\0^«ümK\97ñ\86\9c\96<\q³mwÞ+ø\\9aÆ©\16£¦^5\94ë\8dÆ>3ROðäÝë\1a^¡urÒÉf>bßÅ@\1c÷\81nlÛº¼\eUu\ 4Sç\93Ô\9cW\10à\7fÂ\e«\7f×_ë^©sðÛf»u}epÑGuþ±\aJ\81þ\15#h÷v"àâvÝ\9fJ\0ä|@\91ÿ\0dx\\84PÞPä
+\93B\8d$ø\89kö\90\vùGnþ\95Üê\1f\ eÖúÓJ\83Î#ì*\a×\15ÍøÓDÐ\8e½g Ô¤²Ô£\8f
+W\80h\ 2\ f\ 4$iñ'Ròð?zs\8e\9dkÚ.?ÔOþáþUá?
+íÚ\1f\17Ý\8f1§Úÿ\04§½{´ÿ\0ê'ÿ\0pÿ\0*\0ðO\87ßòV/?ß5ô\15|ûðûþJÅçûæ¾\82 \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 2\8a( \ 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þ.ÿ\0ÏqùP\a»íoJ6½xGÚþ.ÿ\0ÏqùQö¿\8b¿óÜ~T\ 1îû\ѵ½+Â>×ñwþ{\8fÊ\98o¾.\ 3\8f<gé@\1eÏ®ø~ÛÄViky\91\1a¶á\8aµk¦Åe`,áLD\17m|õ¨ø¿â~\9br\96Ít\1eåÎ<µ\19"´\93Pø¸è\8dçcpÎ1Ò\80=\83Lð\8d\86\93ªI¨[\ 3çÉ÷«p«\13\9cW\83ý¯âïü÷\1f\95/Úþ.ÿ\0ÏqùP\a»íoJ67¥xGÚþ.ÿ\0ÏqùQö¿\8b¿óÜ~T\ 1îû[Ò\8dé^\11ö¿\8b¿óÜ~T}¯âïü÷\1f\95\0{¾Öô£kzW\84}¯âïü÷\1f\95\1fkø»ÿ\0=Çå@\1eïµ\87j6·¥xGÚþ.ÿ\0ÏqùQö¿\8b¿óÜ~T\ 1îûZ\8dé^\11ö¿\8b¿óÜ~T}¯âïü÷\1f\95\0{¾Ö\1d«\9dñ\17\824¿\13H\93^!I\93¤\8bÖ¼«í\7f\17\7fç¸ü¨û_Åßùî?*\0õ¿\ eøCNðÌ,\96I¹\9b«·ZÚ\95[ìÓqÉCü«Â¾×ñwþ{\8fÊ\91®~.²\953\f0Áâ\80#ø|\bø³x\ f÷Í}\ 3^\1fðËÁºþ\9dâÇÕ5pw?,}ëÜ(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¦Kþ¥ÿ\0Ý4úd¿ê_ýÓ@\1c\1fÃ\7fõº¿ý|7ó¢\8f\86ÿ\0ëu\7fúøoçE\0Xø_ÿ\0"Ü¿õÝ¿\99®Þ¸\8f\85ÿ\0ò-Ëÿ\0]Ûù\9aíè\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\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ÿ\0ßB¼;þ\15O\8f\7fèc_ûê\8føU>=ÿ\0¡\8d\7fïª\0÷\1fµÛÿ\0Ïxÿ\0ï¡A¼¶\1dg\8fþú\15áßðª|{ÿ\0C\1aÿ\0ßT\1f\85\1e<#\9f\11¯ýõ@\1eÖ÷Ö¬@\171\8fƼ«âÝåæ
+x\7fMpL§%Áâ±ÿ\0áSxïþ\86%ÿ\0¾¨ÿ\0\85Iã\82ruèË\7fx\9eh\ 3'Âÿ\0\ 2Ĭ$×/\91Tó\84j÷o\rhv~\1fÓ\16ÊÊs4KбÍxÆ¡ð×ÇZv\9f5Ûx\84:Ä¥\8a\86®\93à\8e¯\7f©i×I}1\91âr¹'4\ 1ë\94QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0QÖ5Xt]9¯f\8aiTI\14K\1c*\v»É"Æ\80d\81Ë0\1c\9aÍÿ\0\84\9aëþ\85}sþø\83ÿ\0\8eÑã/ù\ 1Û\7fØWMÿ\0ÒØk \ e\7fþ\12k¯ú\15õÏûâ\ fþ;Gü$×_ô+ë\9f÷Ä\1füvº
+(\ 3\9fÿ\0\84\9aëþ\85}sþø\83ÿ\0\8eÑÿ\0 5×ý
+úçýñ\aÿ\0\1d®\82\8a\0çÿ\0á&ºÿ\0¡_\ÿ\0¾ ÿ\0ã´\7fÂMuÿ\0B¾¹ÿ\0|Aÿ\0Çk ¢\809ÿ\0øI®¿èW×?ï\88?øí\1fð\93]\7fЯ®\7fß\10\7fñÚè( \ e\7fþ\12k¯ú\15õÏûâ\ fþ;Gü$×_ô+ë\9f÷Ä\1füvº
+(\ 3\9fÿ\0\84\9aëþ\85}sþø\83ÿ\0\8eÑÿ\0 5×ý
+úçýñ\aÿ\0\1d®\82\8a\0çÿ\0á&ºÿ\0¡_\ÿ\0¾ ÿ\0ã´\7fÂMuÿ\0B¾¹ÿ\0|Aÿ\0Çk ¢\809ÿ\0øI®¿èW×?ï\88?øí\1fð\93]\7fЯ®\7fß\10\7fñÚè( \ e\7fþ\12k¯ú\15õÏûâ\ fþ;Gü$×_ô+ë\9f÷Ä\1füvº
+(\ 3\9fÿ\0\84\9aëþ\85}sþø\83ÿ\0\8eÑÿ\0 5×ý
+úçýñ\aÿ\0\1d®\82\8a\0çÿ\0á&ºÿ\0¡_\ÿ\0¾ ÿ\0ã´\7fÂMuÿ\0B¾¹ÿ\0|Aÿ\0Çk ¢\809ÿ\0øI®¿èW×?ï\88?øí\1fð\93]\7fЯ®\7fß\10\7fñÚè( \ e\7fþ\12k¯ú\15õÏûâ\ fþ;Gü$×_ô+ë\9f÷Ä\1füvº
+(\ 3\9fÿ\0\84\9aëþ\85}sþø\83ÿ\0\8eÕí\eZ\8fYK½¶·6²ÚOäM\rʨum\89 û¤\8cm\91O^õ¥\ÿ\0\87¿ä9âÏû
+Çÿ\0¤V´\ 1ÐQE\14\0QE\14\0S%ÿ\0Rÿ\0î\9a}2_õ/þé \ e\ fá¿úÝ_þ¾\eùÑGÃ\7fõº¿ý|7ó¢\80,|/ÿ\0\91n_úîßÌ×o\GÂÿ\0ù\16åÿ\0®íüÍvô\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\ 1\14\91ç\90+\8c×ü&ípÚ®\90æÞù9!\7f\8fÚ»\8acF ÈàÐ\a\eá\8f\15\8dA\8d\86 ¾F¡\1f\ 5\e\8cû×`\92voι\9d\7fÂ\96ú«}¦\13ö{ÕäH¼\16¬k/\13_è7)c¯DÂ\16;c\98\ e¿Z\0ôJ*¥½ÒK\1a¼R,\88à ©ÍZ\f\18dP\ 2ÑE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0QE\14\0R\10\ fQKE\05\91]v°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\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\07bç;F~\94\92Ä%]¤\91ô§Ñ@\15ìÒÝ\8b+1Ïfx]ü=x¹\ 23\19ÝôÊÃñ{\81áM@çþY\11@\1e}ðrÚÞ\v\8bÿ\0³¶T±þué:ͪÞè×6îÅU\90ä\8eµäÿ\0\ 2\892ê9$üÇùׯÞ\82Ö3\02J\9e(\ 3À>\19xNÚóĺÝË]Ì\8fdÌP)ûßZ×ð\r½÷\89\9bÅ\16\12ßM»y\11\92ßw\9eÕ\7fán\9f{k¬ø\9d®-Ú5\93~ÂGÞª^\ 1mCãÅ\17ÏháË\9f-q÷¹ \ ewJºÖu\1f\15§\84\9aö_*\ 6ÚÎ\e\93]\1e¢.ôß\8b:N\9a·r\98c\8f\ 5wpÜV\bÑuÍ#X\8bÅð[9i\9b/\1e9o\13¾§kã\1d'Å_Ùò\FÑþñ\14}Ó\8a\0\9bK½¼_\19k\19º\91\95KmRx\15ÏéºM÷\89ô½gU\93R¸I';\15[\8c\ 3[\9e\14µÔ5mGWÖf²\92Ò\17\fU\W3áï\11ÞiúN»¦ÙéÒ]4ó\91½\aL\9a\0¿s¯jzÖ\99\ 5½ä\93®\9d\ e#\92X\8f?Zö\ f\ 1izv\99 (Óo\9eò9>bÎÙ*}+\89Ð\83øcÁSC©iMsö¥-·nHÈ\ f\83ÖWÐYÞË,\12Û[É!)\1c\9dq@\1d\9f\8cgKo ßK&í\8b\11ÎÔ,yã \ 4×\93|\16ñ\ 6\97¦[ß\8bË\9f(´¤\81å±þB½{Å\7fò-^ÿ\0×&þUæ\9f\ 1¿ã×Qÿ\0®Æ\80=#þ\13\9f
+\8f½â\r9\aróª\81õ'\81O\8bƾ\14\99\8aÅâ}\16F\ 3$-üGÿ\0fÚd°Å2\85\964\91AÈ\f Ð\ 6|~#ЦRÑkZt\80\1c\12·H\7fYMJÆD\ e\97¶Ì§¡YT\83úÓ%ÑôÉ\984ºu¤\84\f\ 2Ð)þ\95Yü-áé\1c»è:[1êZÎ2Oé@\1aÔW?ÿ\0\b'\84GÝð¾\8c\87³%\8cJGÐ\85È£þ\10\7f\f\8f¹£ÛÆ}bÊ\13ø©\14\ 1ÐQ\ÿ\0ü!Z\10û\96÷1\8fH¯gAù+\8a?á\rÒ\87ݸÖ\90vTÖï\14\ f \12àP\aAEsÿ\0ð\89[\8eSV×\15»\1fí9[\1f\81$~\94\7fÂ/"ÿ\0«ñ\1e¸\87¹ûB?þ\84\86\80:
++\9fÿ\0\84sP^#ñ~¸\83Óe£~\ 14\7fakC\85ñv @è^ÖØ\9fÇ\11\8fä(\ 3 ¢¹ÿ\0ì¯\11¯+âd'Ñôä#ñÃ\ 3úÑö\ f\16/Üñ\ 6\96Çþ\9aé.Gá¶u \ e\82\8açþÏã\ 5ãûOC\97ý¯ìé\93ôóÛùÑ\8f\18/\e´7Ç|L¹ü2qúÐ\aAEsþ\7f\8c\17\9fìÝ\ eOö\7f´&Lþ>IÇåGÛ¼X¿\7f@Ò[ÓÊÕÜþ{Ö\80:
++\9fþÕñ"ðþ\19\89\8f¬Z\8a\91ú¨?¥\1fÛ\9aÚýï ^\92:ì»· ý2ãõÅ\0t\14W?ÿ\0 \1e¢9\7f\aë\88½Ï\99fߢÎOéGü%\12¯úÏ\rë\89éû\88ß?÷Ë\9fÖ\80\ f\19\7fÈ\ eÛþºoþ\96ÃXÿ\0\18\7fä\93ëÿ\0õÊ?ý\18\94x\93Ä1Þéöv§LÕmä}WNÃOdê\83\17\90\9e_\95\1d=kkÆ~\1eo\15øGPÐÒä[5Ú*\89\8ao\v\86\rÓ#==h\ 3çø5\86ðw\84ü[áÈÝ\96MRÎÊâÅPcq\9e4\12\81ø6?à5·à\eïøW:WÄ\8b\84\85f}&Kx\913Ã8.\83>Û\88&»}Wá\14:¯\88<+ªI¨ \1a-¼\10M\17\91\9f´\88\8eG;¸Éϯ\15¡aðÒÙ&ñ\92jW_j³ñ$ÂF\89\13cB\ 1b0rrA`AÇQÒ\809\výSâ&\81à\8b_\1dÏâK{èÙ"¸¸ÒÍ¢$B)\bÀW\18lüËù\9e½ôu/\16kÞ/ø\83cá\9f\rêÿ\0ØÖ\83MMBâçìë,½U\82á¸èééÔòp\ 58ü(ñ\rþ\9dmáígÆOwá\9bfB\96éj\12gE?*3ç üz\ e8\15³âO\87·\97>$²ñ\1f\85µ\85ѵK{aháà\12Å$# Ú{\8fÇ é\8cÐ\a\19á\e\e«\8f\88ÿ\0\11tísP\8fÎ\96Åmæ¼U\11\82¬\81D\98Î\ 1ÚAÆzÖ|VÞ-ðg\83%Ñ5O
+i¾$ð\9a\av¹²\94\ 6hòX¾W\9e99ÛÇwú\1fÂáa«x\8aïUÕ\9fTMvÔAr\1e\10\8cX\8f\9d\86\ e\a9À\ 3\8e=+\1a/\85¾0²ÑäðÝ\87\8eÌ~\1e\90\14Øö`Ì\88ÝT6s\8f¡\ 3\93Å\0Q×|\7fo¥øOÁ¶>\13¸:.\9f«ïÿ\0J\9a3;YÂ\84\ 6P§q$\12G~\9c{Zð\87Ä+è5wO½ÕÛÄ\1au\96\9cú\85½ÿ\0Ù>Îí°eã#\0wàû~[º\8f¸\ e\81áëM\13S\96ÃPðù/exñ\897\169mëÜ\16çóâ´ü?á]j)õ+\9f\14ø\86M]¯¡ò\r\9cjb¶\8d\bÁÂg©\1døê}h\ 3\8eðô\9f\12üWáË_\16éþ%±\8aK\99ÙâÒdµ\ 2\ f(9R\19ð[<\1fÀuÍkEâmpüvO\ fMv\17N:`\99íP)A&Ü\92\18¨cÏÓéT!øMâ+m=¼9oãYcð¿\9a$X\ 5¸óÐnÝ°8<\f\8cç?\85lø\87áæ¡qâ½;Ä~\eÖ×M¿¶µ\16oö\88<ðñ\f\8còyn{õÀæ\800|_¯<?\15\19µ\17'Fg\1a\7fÈ¿¸À\97\18ã\9fº:ç¥WÑï|guð»Pñv«â1,rhó\98,\85¤`+\ 1\85\91\89_\98\9c1Æ1Èí]\ 6\99ðÂâÃMñ\8d¬ÚçÚ¥ñ\1c`5ÃÛí1¾×\fÄ\ 3\83\92ùÀÅmAàÇ\87áyðwÛ\94¹°{?µy\e\81\e¶çߦh\ 3ÇuõÖ5«_\85W\9fÛ?g\9añÖ8ÊZ§î&ó\172\800\ f\ 5~\\ 1òû×¢&¹økâ®\9f¢kZ±»Òµ-4y2É\1aF¢â5\eÛ§}¤ã'\eÅ7Tø]y?\85</a§kIoªxyÄ\96÷O\ 6QÛ ò¹8è\ f~\95Í|h»´½Ñ´o\ e}¶KÏ\19A4!\ 4\10²³\97L;\f\f\0Ç\a\ 3ØP\agð¿\Ö<Qkk·÷.úuÍû¦\99\v*\8f.\14$d\10\ 6s\9cs\9fºk\99ø¹zú\7fÄo\ 2ÝÇa5ûÄ÷\f-`\¼¿s\80+Ó¼3¢Cá¿\féÚ<\ 1vÚ@±\92½\19º³~,Iük'Ä~\f}{Æ>\e×\96ùa]\1däf\84Ÿ˻\1d\ eF:z\1a\0óÛ}/[ñ\97ÅM\v\\8fÁóørËL%î.'P\8f?R\ 603éßï\1c\9a£áû/\11\ø\9bâ\Ú&¼ºLvÚ\84\92¹[e\95åpd*2Ü*ð}ù¯|®/Að$\9a5ç\8b§mAe\1e \9dåP"Ç\91»\7f\a\9f\9bïût \ ebÃÇ\1aÖ³ð^Ó[m{LÒ5\17\9cÁq¨]®\15B³r\88\14\82ä\ 1Æ1קjþ\añ\8e±?Ä\84Ð\9bÄRëÚUÅ\8bO\1dÅÅ\87Ù\988þï\ 3+ïÏ\7fJ²~\rO\1f\80ôÝ\ e\rqEþ\9b~oîM¿îË\13Ñ\90\93ùçð\8d/À\1aâxæÓÅZÏ\89\12úå-^Úh#¶ò\90)\a\ 22\e+\82s\9e¤ç¥\0yÄ_\11<B×÷1ë\1e2\97ÃúÂ\\95K\eÍ(\e@\99Æ\v\80XqÜûsÎGWã\9f\1eê\16þ+Ò<;o¯Á£[Mb/.õ8-¾Ó¸\9cíXÆ\ fÊJõô=}lê\7f\f|S©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\1e\94\ 1ݬ\8aßZuqö>/·iVÖù\1e+³ÃqÀ®\92+¤p<¹QóØ\1cÐ\ 5Ê*1(þ!\83R\ 2\r\0\15ãÿ\0\17¼]¬h\1a\85¶\971F\94\ e\a{\ 5xWƯù\1a4¿ªÐ\ 58$ø£qm\1cèÒ\15q\90y§ãâ\97¬\9f{f\8cÇû
+Ä÷ò\97ùUß3\1fyÂýh\ 3Á±ñKÖOÖ\8c|Rõ\93õ¯y\12\ 6û²+\1fcFò:\90>´\ 1àØø¥ë'ëF>)zÉú×¼yÉÿ\0=\93ó¥2`e\9dU}OJ\0ðl|Rõ\93õ£\1f\14½dýkÞ\ 4ÊßrT\7f÷Ni|Õ\1de@} \ f\ 6ÇÅ/Y?Z1ñKÖOÖ½çy#!\81\1e¢\8dä\f³\ 5\1e¦\80<\e\1f\14½dýhÇÅ/Y?Z÷\85\99_ý\¨çý\92\r/\99\8f¼á~´\ 1àØø¥ë'ëF>)zÉú×¼ù\87®á\8f^Ô 3÷][é@\1e\r\8f\8a^²~´câ\97¬\9f{Á\9d\14á¦\8c\1fBE/\99ܺãÖ\80<\e\1f\14½dýhÛñKÖOÖ½ãÎSÒT?\8d(s\9e´\ 1ó\86¥â¿\1eøwS¶\8bT\99ÑdaÁ¯¡´k\87ºÑ'\90åä\8c15ã\9f\eÉþØÓ\a`Ë^»áÏù\17,?ë\88 \rJ(¢\80
+(¢\80
+(¢\80
+(Èõ¦\99\14P\ 3¨¨^p\83-\85\1e¦©]êöv\90\99%º\8b\ 3¨V\19 \r"Áz\9a\8cÌ;`{\9aáî¾$i\0´VÉ4\93ô\1f/\19¬¹n|câLEöqkdÝ%^\ e(\ 3¸Ôõý?HM÷÷+\1a{\1c×\ 5âß\1e=æ\83y\ e\8fd×vì¤4¸é[\1agÃÈ q&£y%öy)!È_\10i6v\1e\10Ô\12ÊÕ!\1eY8Q@\1euð\14³}½\98a\89$\8fƽ\9có\90kç_\85þ<Ñ|%=újÆXÙØí!}ëÑ¿ávø7þ{Íÿ\0|P\a ¤\11FI\8e0¥ºàu¦}\92Û\91å.\e¯\1dk\81ÿ\0\85Ûàßùï7ýñGü.ß\ 6ÿ\0Ïy¿ï\8a\0ô\16\86&\88DÑ©\8ct\18¤û<\ 6/(Ä¥=\b¯?ÿ\0\85Ûàßùï7ýñGü.ß\ 6ÿ\0Ïy¿ï\8a\0î5\e`úLööñª\96B\0\ 3\15Ãü,ðß\87ãÕ\ 6¥\0\ 6y\8b&á\9c\8a_ø]Þ\ eÿ\0\9eó\7fß\14\1f\8dþ\ e=g\9bþø \ f@\92\18¥@\92F¬£ Å<\ 5U
+\8a\15G`1^wÿ\0\v·Á¿óÞoûâ\8fø]¾\rÿ\0\9eó\7fß\14\ 1Öø«þE\9bßúäÕæ¿\ 1¿ã×Qÿ\0®Æ®ë¿\18ü%}¢][C,Í$\91\95Q·½Qø\bKØ_Kµ\82¼¤\8c\8a\0ö\9a(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\809ÿ\0\19\7fÈ\ eÛþºoþ\96ÃZz¾¯c¡isêz\9dÀ·³\80\ 3,¥Km\ 4\808\0\9e¤Vg\8c¿ä\amÿ\0a]7ÿ\0Ka¬\7f\8c?òIõÿ\0úå\1fþ\8cJ\0høËðý\88\ 3ÄQsÇ6ó\ fý\92»[{\88ní¢¹¶\95%\82U\ f\1c\88ÙVSÐ\83ÜWϺ·\8du\b¼\ 3¤øvÿ\0Á\16ö£R°\8eÚÓQ½¹C\v~ì(\93!~S\83¸dädVj\7f\r<)àï\a[êÑÚ\]o[OÉó\84\b\eslR9åð8è½³À\aµQ^Aàÿ\0\88\17ñkzæ\9by«·\88tû=9¯íï¾Éöwm\83/\19\18\ 3¿\aÛòÌ\87[ñýßÃkï\1f\ f\13E\1aÉ\1c¯\16\9a¶hR8÷\14È~»\81\ 4\8cç§9Í\0{\95\15ã\17^4ñ
+]ü,EÔ\9c.³\1a\eñå§ïÉòó\9e8ûǦ:Öü\9e*Ôí¾4ê\1aL·nÚ=¶\8anþÌ\11~ø*I\a\19Î3Þ\80="\8aùÑ>'ø\8aïE\9fÄ\91ø²8¯DÅ Ð\17NÝ\eD\e\eL\98ë\8c\9e½ºæº\1f\1cxû\¶Õ´I\1eöû@ðýö\9c\97_kµ²[\8630ÎÆÝÓhê\a>Üð\ 1ìóM\15¼/4Ò$q"\96wv\ 1T\ e¤\93ÐTvw\96ú\85\9c7\96\93$Öó xäC\95u=\b>\95ãZ¶¥©x\8bà\9e½/ü%öz§Ù\98\96¸µ¶ØòB\a\11ʤ\r¬r\ e@íßvß ì¯¬þ\1eiMy©µêOo\14°+D©öxÊ.#\ 4}à=O<Ð\ 5Ýwâ7\84ü5©¶\9d¬jékvª\1cÆa\91¸=\ eUH«\1e\1dñ×\86|W<°h\9a´7sD»Þ0¬\8c\17×\f\ 1#é^_â\e\8dnÛö\81»\93@Ò-õ[Ïì\84\ 6ÞâQ\1a\84Êå²xÈãó¥Ð&º\1f\1cm.¼W¤Å êrÙ4vPZíh®I\a,ò\ 2rq\90\ 6;\ fN@=¢û4\ 6ä\ù\11ùávù»\ 6ìzg®+Ét][Æ\9f\11îõODñ\12hºe\95Ë[ÙAö4\93Îe\19Ì\85¹\0åzg©â³®>-ëw?\ftû«u\82\ f\10]ê\7fÙm0LÆ
+\80L\80\1e:\15\18õ&\80=sSñ\16\95£j\1au\8e¡v!¹Ô¤1Z!Fo1\86\ 62\ 1\ 3ï\ e¸ëZ\95á>+Ó<G¥|Bø{\ 6·®®±\vj\e¢\98Û,.\8fº=Êv\9c\11÷pq\9eµµaãWÃw\1e<Ó|E|nn4\847\9a{È\8a\vÄÜ"ü \ e\18ú± \ f\¢¹\7f\87m¬Íàm6ë_¼{Fê?=ÝÕWj·*¸P\aÝÇã\9aê(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0®\7fÃßò\1cñgý\85cÿ\0Ò+Zè+\9fð÷ü\87<Yÿ\0aXÿ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ð®Ýǽyw\89õ\eý'â¤÷Zd-5À9U^ô\ 1Ûx7â\ 6»¢ø¸xoÄÇ,p\15©>&üEÔå×SÃZ\19Ä\92\10\v\ fzÈð÷\84|Eâ\8f\10Íâ]f\aµ\91\17*\18b²¼8\16ïâÛ5ÈÜèØ\ 4ûP\ 3\86ãO\86z¥´Ú¬ï-¼ì\vn9â½\ 3âo\8cn\ f\82,u}&R\82` Ó?h(£\7f\vÚ»(Üò\9aóífâVøI§#\92QzP\a¢x\vÇ\93ø\83ÀWË+ÿ\0¦Z¡ç<Ö?ÃO\eêréþ!¾½\94È-\ 3\14ɯ4Ñ®¯ü\1f¤\v\96\ 4A¨\8d¹í]·Á\8d9uÛ?\11éá¶\8b\85?7Ö\802tÙ|oñ\ 6öïTÒ®Ý#\81³°\1aõ\7f\15jz¦\89ð¶)årº\82¦\1cû×\93éWúÿ\0Áß\12Ë\ 4лéÎøc\8e\18f½7â&·iâ/\86o\7fhÃk®vúP\a à\96ñß\88f\86ú\19ØÚ\ 3\96Éí_DX¬\8bc
+Íþ´\ 1»ë_9|'ñ\86·c-¾\9b\ 5\93Éjç\ 6@8\15ô\94D´HÇ\82zÐ\a\8aüoÿ\0\90Ö\99þò×®øq\87ü#\9a\7fýq\15ä?\1c?ä1¦ÿ\0¼µ»«øêûÃ^\15±\8eÓI\9aá\9a!\89Tp(\ 3Óî/-í\13uÄÉ\12ú¹Å\10ÝÃr»áq"ÿ\0yzWÇ\1e(ø\85âMzv\8eúâH\906Dc \8aõï\ 1ëÚáðÜqA\ 4\8fò\80\1cÐ\a¶ïÿ\0dÒ\17nÈkÎ~Ïã+â\12\e±\ 1<äö¥ÿ\0\84{Ç\83\83G@\1dì·ÑB3,É\18ÿ\0hÕ\19¼E¥D¤\9dF\ 2Gð\86æ¹h¼\1d¬\\9cj\97þj\1e¡MZ\8fá¦\80\1cJÉ3Ißæ \a_|BÓ¬ù[yn\aý3\19ª-ã«\8dMvi\96\13G!èdZê¬|;§éê\16\vu \7f|f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
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80\eå®s\8að¯\8d+\8f\14é\87\8eYkÝë¾5\7fÈÑ¥ýV\80=\8bEÿ\0\90\15\8fýrZòÿ\0\8f-·Ãð\9d¬ß¼\1d\ 6kÔ4où\0Øÿ\0×%§ÞiÖ:\8al¾µ\8et\1d\ 3\8cÐ\aË\9e#ðô\96þ\eÓ<M\ 22ù{r\0æ½^}}|Mð|Ý*¶ä\8bcqÎq^\93&\8f¦Kf,ä²\89\87H\8añD:F\99ohm!²\89-\8fXÀàÐ\aÍ\1f\ e>"ZøT\9b\e\8d8ÌÒË\80å3\8c\9aö/\12|PµÐ¬Ñîm\vG*d\r¾½«ª\1e\12ðàpãG¶\f\ eAÙÞ\97TðÎ\8f¬@°ÝÙFÊ¿w#¥\0|ûà\98fñgÄYõk\eF\82Ø\1c\9c\f
+³\e\15øÖWËc´à\92¼WÐ\1a^\89¦è°ùv\16±ÃêTu¥þÄÒ¾ÖnþÁ\17ÚOü´ÛÍ\0_*%\80FÀmuæ¾dñÍ\85÷\81¾$\rn(\18Ù³îÈ\1c\1aújªj\1aV\9f«@a¿µ\8eu?Þ\19Å\0|×ã¿\1fÏñ-ì4\9d>ÍÓ\f7\1cu5»ñ#E>\1føW¥Ø<gÎ\ew`W³i\9e\rÐ4\99|Ûm>\11&r\e\1d+N÷M±Ôã\11ßÚÇp\83¢¸È\14\ 1â7þ\18M\7fàu\85Ú¡\12Ú¦à1ÍQý\9f§6INQ\8f\96¹Æ=«ß£±³\8aÏìqÛ¢Úã\1eP\1cb¡³Ñ´88³±\8a\11'ß\b¸Ý@\1e ñ+âe\8f\88ì$Ò"Ó\8b]nÚ\eo Õ\89´k½'àã\9b¥|ºä.+Ø\17Àþ\1d\17æ÷û:\13)9éÞ¶g±³º¶û4öé%¸\18\11\91Å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Æ\ 1\eºU¿øO¼7ÿ\0A(?ïªå¿áEøwûÒÿ\0ßT\7fÂ\8bðï÷æÿ\0¾\8d\0u?ð\9fxoþ\82P\7fßT\7fÂ}á¿ú Aÿ\0}W-ÿ\0
+/ÿß\9bþú4\7fÂ\8bðï÷æÿ\0¾\8d\0u?ð\9fxoþ\82P\7fßT\7fÂ}á¿ú Aÿ\0}W-ÿ\0
+/ÿß\9bþú4\7fÂ\8bðï÷æÿ\0¾\8d\0u?ð\9fxoþ\82P\7fßT\7fÂ}á¿ú Aÿ\0}W-ÿ\0
+/ÿß\9bþú4\7fÂ\8bðï÷æÿ\0¾\8d\0u?ð\9fxoþ\82P\7fßT§Ç\9e\1c^º\8c\ 3þ\ 5\V«ðSÃö\9aEÔñ´Þdq\96Sº¼ûá§\804ï\13j×°_I+$$\81óP\aºÿ\0Â}á¿ú Aÿ\0}Qÿ\0 ÷\86ÿ\0è%\aýõ\·ü(¿\ eÿ\0~oûèÑÿ\0
+/ÿß\9bþú4\ 1Ôÿ\0Â}á¿ú Aÿ\0}Qÿ\0 ÷\86ÿ\0è%\aýõ\·ü(¿\ eÿ\0~oûèÑÿ\0
+/ÿß\9bþú4\ 1Ôÿ\0Â}á¿ú Aÿ\0}Qÿ\0 ÷\86ÿ\0è%\aýõ\·ü(¿\ eÿ\0~oûèÑÿ\0
+/ÿß\9bþú4\ 1Ôÿ\0Â}á¿ú Aÿ\0}P<}á¼ÿ\0ÈJ\ fûê¹oøQ~\1dþüß÷Ñ£þ\14_\87\7f¿7ýôh\ 3\8cø»â\1d/WÖ´ï±]Ç.Ö\í9¯rðçü\8b\96\1fõÄW\9f\9f\81~\1eÜ\1d%\9e9Tå$S\92§×\9c\83ø\8aëí5\19ü9o\15\9e·\12%¤`,z\94
+|\9c\7fÓQÉ\88û\92Wý N(\ 3¥¢\91Y]C+\ 6R2\b9\ 4RÐ\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1E\14P\ 1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8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0(¢«ÞßZé¶\8fuy:C
+c.ç¹à\ 1êIà\ 1É4\ 1b±.5\99ï.d±Ð£\8eyãb\93]É\93\ 5¹î \1f}Ç÷\14ñüExÌ^V£â\1en\ 4Ún\94z@ K\8b\81þÙ\1cƧû£æ=Êòµ·om\ 5\9d´vöÐÇ\f\11¨T\8e5
+ª=\0\1d(\ 2\96\99£A§<\97\r$\97WÒ\8cMw>\f\8e=\ 68U\1d\95@\ 3Ó$\9aÒ¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0)\19\82)cÐrii\b\f\b# Ð\a\râ_\88¾\17µ²¾°\9fRU¸òÊìï\9aò¯\85>1Ðt-_Q\9bQ½XRBv\13Þ³~9øLézùÕ¢M°Ü\1cqÓ5å6\16\8f}}\ 5¬\7fzW
+(\ 3îM\eÄ\1an¿oö\8d6àM\17÷\85i×+ðûéῠÚZl\v.ܱ®ª\80
+(¢\80
+(¢\80
+(¢\80
+\b\ 4\10FAê\r\14P\ 6\ 3h\97:K\19¼=,qG\9c¾\9d1?g\7f÷\bÉ\88ÿ\0º
+õÊäæéÚå½üíi,rYê\b»\9eÎà\0à\7fyqïûJHõÁâµ*\9e£¥YjÐ,W\90\87ØÛãpJ¼Mýäa\82î\b4\ 1r\8açþÑ«h<^,º®\9c?åæ$ÍÌCý´QûÁþÒ\rßì\9eMlÙÞÛj\16©ugq\1cðH2²FÁ\81üh\ 2z(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(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õÏûâ\ fþ;]\ 5\14\ 1Ïÿ\0ÂMuÿ\0B¾¹ÿ\0|Aÿ\0Çhÿ\0\84\9aëþ\85}sþø\83ÿ\0\8e×AE\0sÿ\0ð\93]\7fЯ®\7fß\10\7fñÚ?á&ºÿ\0¡_\ÿ\0¾ ÿ\0ãµÐQ@\1cÿ\0ü$×_ô+ë\9f÷Ä\1füv\8føI®¿èW×?ï\88?øít\14P\a?ÿ\0 5×ý
+úçýñ\aÿ\0\1d£þ\12k¯ú\15õÏûâ\ fþ;]\ 5\14\ 1Ïÿ\0ÂMuÿ\0B¾¹ÿ\0|Aÿ\0Çhÿ\0\84\9aëþ\85}sþø\83ÿ\0\8e×AE\0sÿ\0ð\93]\7fЯ®\7fß\10\7fñÚ\ f\89®\80$x[]>Á ÿ\0ãµÐQ@\1c\1fÛu=VãÎ×<3¬=º6bÓáXL#\a\86\90\99\ 1\91»à\80£Ð\90\1a·?á%ºÿ\0¡[\ÿ\0¾ ÿ\0ãµÐQ@\1cÿ\0ü$×_ô+ë\9f÷Ä\1füv\8føI®¿èW×?ï\88?øít\14P\a?ÿ\0 5×ý
+úçýñ\aÿ\0\1d£þ\12k¯ú\15õÏûâ\ fþ;]\ 5\14\ 1\9b£kQë)w¶ÖæÖ[Iü\89¡¹U\ e±$\1ft\91\8d²)ëÞ´«\9fð÷ü\87<Yÿ\0aXÿ\0ô\8aÖº
+\0(¢\8a\0(¢\8a\0(¢\8a\0óO\88òH\92.Æ#èk\80\17\13ãýc~uß|GR÷\b\8b÷\9b\81\\88ðæ¦T\1f%°FzP\ 5\ f´Oÿ\0=\eó \N\ eD\91ïZ\1fð\8ej\7fóÅ¿*?á\1cÔÿ\0ç\8b~T\ 1±áÿ\0\1c^i\8e"º&XºsÚ½;J×lµxC[Ê¥±Êç¥xÏü#\9a\99ÿ\0\96\rùT\96°jz\1dü\fÅâV=:f\80=Ö\8aÉ]DÃclÏË8\15©\eo@Þ´\0ê(¢\80
+(¢\80
+(¢\80
+(¢\800gñ@MFöÊ×FÕ/ZÎE\8ai-Ò=\81Ìk&>g\ 4ü®§§zoü$×_ô+ë\9f÷Ä\1füv\8f\ f\7fÈsÅ\9fö\15\8fÿ\0Hk \ e\7fþ\12k¯ú\15õÏûâ\ fþ;Gü$×_ô+ë\9f÷Ä\1füvº
+(\ 3\8dÔ®¿´eK\91á\9f\10ÚßÆ1\15åºÀ² ô?¼!\97ý\96\ 5}ªM7ÄÚê#Å©ø[T\91\90á.-Ò%\12\ fVC/È}\81aî:W]E\0sÿ\0ð\93]\7fЯ®\7fß\10\7fñÚ?á&ºÿ\0¡_\ÿ\0¾ ÿ\0ãµÐQ@\1cÿ\0ü$×_ô+ë\9f÷Ä\1füv\8føI®¿èW×?ï\88?øít\14P\a?ÿ\0 5×ý
+úçýñ\aÿ\0\1d£þ\12k¯ú\15õÏûâ\ fþ;]\ 5\14\ 1Ïÿ\0ÂMuÿ\0B¾¹ÿ\0|Aÿ\0Çhÿ\0\84\9aëþ\85}sþø\83ÿ\0\8e×AE\0sÿ\0ð\93]\7fЯ®\7fß\10\7fñÚ?á&ºÿ\0¡_\ÿ\0¾ ÿ\0ãµÐQ@\1cÿ\0ü$×_ô+ë\9f÷Ä\1füv\8føI®¿èW×?ï\88?øít\14P\a?ÿ\0 5×ý
+úçýñ\aÿ\0\1d£þ\12k¯ú\15õÏûâ\ fþ;]\ 5\14\ 1Ïÿ\0ÂMuÿ\0B¾¹ÿ\0|Aÿ\0Çhÿ\0\84\9aëþ\85}sþø\83ÿ\0\8e×AE\0sÿ\0ð\93]\7fЯ®\7fß\10\7fñÚ?á&ºÿ\0¡_\ÿ\0¾ ÿ\0ãµÐQ@\1cÿ\0ü$×_ô+ë\9f÷Ä\1füv\8føI®¿èW×?ï\88?øít\14P\a?ÿ\0 5×ý
+úçýñ\aÿ\0\1d£þ\12k¯ú\15õÏûâ\ fþ;]\ 5\14\ 1ο\8b<\87\87íz\ e¯k\14³Å\a\9d*E±ZGX×;d'\ 5\99GNõÑW?ã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807h¦£¬\88®§*À\10}©Ô\0QE\14\0QE\14\0QYúÞ·§xwH\9fTÕnVÞÎ\0\vÈA=N\0\0rI=\85M¦j6º¾\97k¨ÙHdµº\89e\89Ê\95Ê°È8<\8a\0Éð÷ü\87<Yÿ\0aXÿ\0ô\8aÖº
+çü=ÿ\0!Ï\16\7fØV?ý"µ®\82\80
+(¢\80
+(¢\80
+(¢\80<ßǹþÕµÇ]ão£Ýù\11~ú\ f¸+\9fñÿ\0\1a\95±Æ~aÇ^K\91äÇÿ\0\12©~èç4\ 1§¾ïþ{AFû¿ùí\ 5fý¤\7fÐ*_Î\8f´\8fú\ 5KùÐ\ 6\96û¿ùí\ 5s\1e0i\9a{/5ãa¸}ÊÕûHÿ\0 T¿\9d`x\9aQ%Å\9e-\1e\ f\98rÝè\ 3²¹ÿ\0\90}\87á]\15¿ú\84úW;sÿ\0 û\ fº;\7fõ ô (¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0çü=ÿ\0!Ï\16\7fØV?ý"µ®\82¹ÿ\0\ f\7fÈsÅ\9fö\15\8fÿ\0Hi·~:ðÕ\8f\89cðíΨ\91êÒ:"[\98\9f%\9f\ 5Fí»yÈï@\1d\15\15Îø\87Ç^\1aðä6\9aÖ¨\96·\13&øã1;\96\ã?*\9eâº*\0(¢³õ½sMðæ\97&§«\\8bk8\8a\87\94«6 8\1c('©\14\ 1¡Esº÷\8e¼9á\9b+[WRHRíC[ Fg\90\1cr\14\ 2qÈíG\86|sáÏ\17´É¢êIq4#2BÈÑÈ£8ÎÖ\0ã=Ǩ \ e\8a\8a( \ 2\8a( \ 2\8a+-¼G¤§\89\13ÃÍv\ 6ªðùëo±²cçæÎ1Ø÷ \rJ*µ\9e£g¨yÿ\0c¹\8aàA)\86S\en
+à\ 2T\91Ü\ 6\15f\80
+)®ë\1a3±Â¨$\9fjá¿ás|?ÿ\0¡\8a?ü\ 6\9bÿ\0\88 \ eî\8a½ñ\9f\87´ý\ eÓZ¸Õ"\1amÜ\8b\1c\17\11«H®Ì\ e\aÊ\ e>éëÐ\8cuÚ\0(¢\8a\0(¢\8a\0(¢¹MWâ_\83´MYô½G]·\86ò2\ 3ǵÛa=\89P@?SÅ\0utSb\969¢Ibu\927PÈêr\18\1e\84\1eâ\9d@\1cÿ\0\8c¿ä\amÿ\0a]7ÿ\0Ka®\82¹ÿ\0\19\7fÈ\ eÛþºoþ\96Ã]\ 5\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14É\7fÔ¿û¦\9fL\97ýKÿ\0ºh\ 3\83øoþ·Wÿ\0¯\86þtQðßýn¯ÿ\0_\rüè \v\1f\vÿ\0ä[\97þ»·ó5Û×\11ð¿þE¹\7fë»\7f3]½\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\14QE\0\15ÏøËþ@vßö\15Ó\7fô¶\1aè+\9fñ\97ü\80í¿ì+¦ÿ\0él4\ 1ÐQE\14\ 1ó¯ÅM1ïþ!ø\92î\0~Õ¦hÖ÷а\1c©IS'þù,\7f
+Àø\9bª/\8d¯5?\10ÄU¬ôë\v\18#ÛÑd\9b÷\84gÔeÇá^óqàU»ñ®¯®Ïx\1aßRÒN\9aöÂ<\15\ 4\8c¶ìóÀé\8aãí~\aý\97áÝÿ\0\86WYCsyz\97-wöc\80¨\0 ·wûÇ9ï@\17|Câ?\10j~8Ò¼\11á½F=,\9b\11uy|Ð ]W\1c*\86ãÓþúëÇ1iÞ7×|/®ø\9bÃÞ$¼\8bT\93KÓ[R´¼\10ùM**\83±\95xêzû\1e¼c\7fÄþ\0ºÔõ\9d?Ä\1a\16°t½vÆßìë3B$\8ehùá\94ýO<õéÒ\99áÏ\87-eq¬ê^"Õ\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#\1cp\ e\ e9êk\9aøk£x\92_øNN\99âIbº\86îâ ¿f\8fý"ã\9d²\12s·\91Ó\91ɯRÔ|\1a÷ß\12´\8f\16\8bÕDÓí^ÜÛ\18ò_pq\9dÙãïúv¬\8d\ fÂ\17¾\añ/\885Ö×b\1e\1dº\92[ë\8bO³\12èpX\9dÜ\9c.ON¸é@\1c¤\9f\11õÍOá\8f\87¡Óo\f~*Ôu\ 1¦¼\9eZåY\ fÎØ#\1d\fyãøëÚáF\8a\bãy\1aFU
+]±\96 u8îk¾\1dèº\7f\88>1ë^#ÒL\92ø~ÊY&µw\8fj\e\89@\ f´\1eÜ1éÙkÞ(\ 3æï\87¾ ¼²ð-ö\9b\a\80ï<@$¼\99\96a\10hr@\eIÁ<uüjMwÂú\9f\85?g9,µd\11]M©%Á\806ï(1\0)÷ùsø×°ü=ðkø\1fòér^ãIt÷\1ebdz\e\82\8cc'Ò\9fñ\aÂ\ fã\8f
+I¢¥êÙ³Ê\92y\1eñò\9cã\19\14\ 1ÄÝêÞ/ð\8f\8c<!\1dÿ\0\88cÔ,µÉ\85¼¶\7fdHÒ\1e\10|¬>c\8dã\ 4\9eqÏZg\8e<I¬ZkÚ¤QøòßN0G\9b-7N°7r±ÁÏ\9cv\9d¤\90;ð ôç±ñG\82$ñ\ eµá[ô¿X\ 6\85sç²\18·yÜ¡À9ù~ç¿ZÅo\86\9aů\88µû\8d'Ä\89i¦kîd½\89\ 3̤îÈFÏ\19Üyí\9fQ\9a\0çuo\88>+\7f\85\9e\16×!y!ût®\9a\9dý¥¢Êðª¹PU\ fÊ3\82{\f\8cq\9aØð'\8d^ê-né¼]\a\88,lìÚé!\92×ì÷\91í\19mÀ\0¥{dgøzf¯Yü:×t¿\ 5é\1aF\99âɬﴩ\9dã\9e(\88\86ug-²X÷|Ã'®O~\ ej_\ eü5\92ÛÄWþ ñ\15íýõå«Z46¶¢\bDm÷²\ 1Ë\128Éõú`\ 3Ícø\9fâ94#âdñl\ f~Óï\1e\1e\1ak\18¼ûvy\9bs\9cs\9côï\9aöFM\7fWÖ¼?¬éº\8cvÚ\13[ù·\96R/ï%Þ¹^v\9cc#¸é\\87Ã?\14i6\8b¡iÞ7\9aÛÃÉ7\9b\1aÇo\8b\98×vã\18\90\1e\84÷÷éÚ»KÝ\eU\9bĺMõ¦¹%¾\9bh\8c\976%7ý¤\90B\92Äõ\1c~T\ 1ã\7f\13<Agãw×a\1a¼:V\81\v\b-Ìá^úó¦å\äª\f\81ïõãÕ¾\19]Û]ü8ÐEµÄS\18l¢\8a_-Ãlp\83*ØèFG\a\9ek?Ä? |-¬iWðÚiVvz\85ʶËÁ\11b\8eNwc#5½àï\vÚx?ÃVºMªÆZ5S<¨\9bDÒí\ 1\9f\198'\ 2\80\eáïù\ ex³þ±ÿ\0é\15t\15Ïø{þC\9e,ÿ\0°¬\7fúEk]\ 5\0\14QE\0\14QE\0\14QE\0y¿\8f¿ä)mÎ>aÏ¥l¤\8bäEþ\9eßtv¬o\1fçûNÛhËn\18\ 6µ\10jÞL_è\96øÚ1@\13y\89ÿ\0?íùQæ'üÿ\0·åQcVÿ\0\9f;z1«\7fÏ\9d½\0Kæ'üÿ\0·å\ß\8bX4öX¸2üÃ\82:Vþ5oùó·®wÅ_lûE\97Ú¡\8e1¸ce\0u×?ò\ f°ü+£·ÿ\0P\9fJç.\7fä\1faøWGoþ¡>\94\ 1%\14Q@\ 5\14Q@\ 5\14Q@\ 5\14Q@\1cÿ\0\87¿ä9âÏû
+Çÿ\0¤Vµá\9f\12ì¥\93âo\8aµKn.´\8b[;ø\88\1cåZ ~\9c6\7f
+÷?\ f\7fÈsÅ\9fö\15\8fÿ\0Hk"çáêÞx»ÄzÌ÷Ê`Ö´Ïìó\a\93\93\1fÊ«»9çîç\18 \ f\ eø\93¨Çã\roSñ%»\97±²k\e+}Ý\8c\8aÒ0\1fB\18~5ëZæ½âO\10üL\9fÁ\9e\1fÕ#Ñ °´\177w\9eBÍ#\96Ú@PÜcæ_Nÿ\0JÏ\83à\89·øz|4\9aÌ\7fh}Io¤ºû1Á
+»BmÝúç¹®\8fÄÞ\ 2Ô.üP\9e(ðÆ·ý\91¬\98|\8b\82ð\89b¸NÛ\94ô#\ 3× èFh\ 3\9aµø\87®ø\xÇGñ\f°ê:\86\85l·6\97B0\82u}¡wªð9téê}3\·\8ccñ\8dïÁoíý_Äi}m¨\88&\96Ëì\88\82\15g\f\85\`çî\821ßÛ5éz\1fÃ\vkk\1dxëÚ\84º®¥¯!\8eúëh\8f\v\8e\ 2\ eq\83Èú\ e8®~ãá\17\88¯ü(þ\18¾ñ\9f\9b¥[íû\fkd ®\e#Ì9É\0d\ 1\9fNxÅ\03ÄÞ\1aÖnõ\7f
+ø\97Ã\13i·Z¾\9f§Ç\19Ó/\1d~tÛ\9dÊ \1fß=Æ8Á¤ð§\88-fø\95·Äþ\ e}\13Å\92Z»¥ÌR±\8eá\14\1dß(8<)çæû½r\ 5t\1e"øks\7f¨i:Þ\85®6\95®é¶Ël'\10\87IÔ\fa\97>ç×\83Ó\8a<;ðóS\87Å«â\9f\15x\80êú\9cp´\10G\1c\ 2(¢R\b<\ e¹\ 4ñ\81Ôõ \ f6_\8a\1e Ôô\9bß\11CâÔ²¼\8ef6\9a\12é¾bI\18#\ 1¤ÇR ïÛ·n×Zñ®»¯k\1e\12ðî\81s\1e\91sX\8bû\8b·\8bÌh\93k\12\8aßån¾Ý9§Ûü1ñ&\8doq£x{ÆO§è\13ÎfòÅ°7\10däªH\bô\ 3<~§;^+ø\7fq¬\hú®\8dM§ëºL~T7²¯\9afL`\893×<óßqÈ9 \fJO\1døSÁ~)\9fSÖo\96Ú\ 3&\9d¨$a'\a#!ÓnÞþ§§å\91â/\19ø\86Ïà\87\87uë}IãÔî¦\85f¸\11¦\0|ñ\8cv\1d\ 5tú_붲×Ï\88õéµ;ín\ f"g\8d<¸á]»~DÎ3Àç\ 3¥s²ü ñ\r÷\85`ðíÿ\0\8b£}>ÆUk(\92È\f\0I\ 5ÎrN \0vÏz\0\9fÅzÏ\8bn¾0ÚøWBÖ\86\9fks¦\89]ͺIåa\9c³\80G$\85\0dã\9a\1eï^\8fâÕ\9f\86_Y\r#xtî¼6±\96óþqæ\8e\ 1àó·8®¶_\ 6<\9f\14!ñ\8fÛ\94$v\ 6Ïì¾W$ä\9dÛ³ïÓ\14KàÇ\93â\84>1ûr\84\8eÀÙý\97Êä\9c\93»v}úb\80<§á~\9bâ\7føVþ%¾Ñõù#\95%\9dmí\16Ù\ eg_-Ì\81\8ey`
+íÆ9Û\9f\88:¾¿á?\ 4Zèw¦\ro[¸\11ÜÊ\81\18¢ÅĬW\a\19?7AÀ5¿áo\f\|1\1aÍÝ÷\88#o\fn{\95\80Û|Ñ;\15ù\99\80$à\f`qÎk\91øAáû-Câ\ f\88|M§\87}\16Öy"Ó\19Õ\82î\90å\8a\ 3Ð\ 5ã×\f:P\a·^\7fÇ\95Çýsoå_9x\a^¼\8fá\8bèðx\ 6÷]\12<Án< Ðîn0N ã>ß\85}!4~l\12G\9coR¹ôÈ®gá÷\84\1fÀþ\14\8fE{Õ¼d\95äóV=\83æ9Æ2h\ 3ƼIá\9dWÂ\9f\ 1´m?R
+\97ͤÞK6á\16å|)#é\93\8fS]·öÏ\8aü-ñO@Ñu\7f\10¦«e¬DæHþÈ\90\88\9c\ 3\8d\98ÉÆqÔýk¬ø\83à×ñ¾\85k¦Çz¶\86\eÈî\8c\8d\1eü\85\f1\8c\8fïT^!ð;ë\9e;ðÿ\0\89\16ýa]'v`1n2äÿ\0{#\1f\91 \ e\ fÆ^+Öìõ}tÁãÛx.-7\eM'M°78U\1d&}\87kqórqÏ¥MâO\1ex\99~\1føGX\86i¬áÔ\17:¥õ\9d \99¢À\18·\ 3qÏåÚ´SáN¹fÚþ\9f¦ø©mt]fW\9adû iÁ`r»óÓ\9c\13éé\9cÖ¢ø\ 3]±ð¦\85§é>+\9aËPÒ\ 3(\91#>EÊîÈY"Ý\8e\ 6\ 6yïø\0cøKÇ\93\r\13ÄZ\91ñ]·\88ítû6¹\86'µû=Ò\15\ 4á×\0\15Ï\19\19íÏ8®>\ f\89Þ!¶Òl|B|Z\97÷\92̦çB\1anØÒ"Ç!d\v\9c\80\a~ýûú.\83ðÅ¢Ô5OÄWð^ÞjÖ\86ÎXí-\84\11$Da°;±Àäþµ[Møsâ½>ÞËF_\eÍ\1e\81g(xÒÚ\ f*å\90\12|³ =9>¿N\98\0ënlüAqã\1d3Q´Ôâ\8fÃénÂæÉ\97ç\96B\ek\ 3·¶W¸é\_ÄÏ\v˧xWX>\1aÐmd]O̸Õî¤rÒ¨\ 46ä\fÜ\9f¼p8\18®âïHÕ¦ñ\85\86©\ e´ðépBÉ>\9c\13"g!°Û³Æ2;\7f\rqz§Ã\r\7fíz½¾\83âױѵ\99\19ï-f\83ÍdÝÃ\88Ø\9cà\8c\8cqÆ\ 6M\0uþ\ 2\9fO¸ð\16\86ÚTÒÍd¶\89\1cRL»\ì\eNà2\ 1È<\ 2\7f\1aè«/Ãz\r¯\86<;c¢Ù\17k{Hö+?Þc\92I>ä\92\7f\1aÔ \ e\7fÆ_ò\ 3¶ÿ\0°®\9bÿ\0¥°×A\ÿ\0\8c¿ä\amÿ\0a]7ÿ\0Ka®\82\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+d¿ê_ýÓO¦Kþ¥ÿ\0Ý4\ 1Áü7ÿ\0[«ÿ\0×Ã\7f:(øoþ·Wÿ\0¯\86þtP\ 5\8f\85ÿ\0ò-Ëÿ\0]Ûù\9aíë\88ø_ÿ\0"Ü¿õÝ¿\99®Þ\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+çüeÿ\0 ;oû
+é¿ú[\rt\15ÏøËþ@vßö\15Ó\7fô¶\1a\0è(¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0ÏÖõÍ7Ã\9a\\9a\9er-¬â*\1eR¬Ø$àp \9e¤W*\9f\18þ\1f»ª\ f\11Ä\v\1c\rÐJ\aâJ`U?\8e\9fòIµOúé\aþ\8dZóÿ\0\16x«QÔü;§ø>÷ÁvúeƧ\fQZßß\¡\8f\1c|á\82à\1e\a|\8cÐ\aÐ\91K\1cÑ$±:É\e¨du9\f\ fB\ fqN¯\17ñ>¿¨x"? x\12×[],}\8c5æ¬Ð\19ÙU\ 1\eQpz\95#§÷zsV<+ãÏ\10]'\8a´\98.\87\88n´ûCu¦^\8bC ¸ù~ã&\ 6H$p\a'>Ô\ 1ì\14W\80øSâ\ 6«{©é\8bwãÑ\rûÌ«{¦êÚjÃ\19Éåcu\1c\1cð2WúWIw©xÃZøÇ®xgJñ
+éºu½¤Sn6É+G\94\8fî\ 3ܳw<\fÐ\aR:,\88Èê\19X`©\19\ 4zW\8dX|K×<?áÏ\19ÛëòÁ¨jÞ\1e\95"\82q\1eÁ?\98ÅP°^8 \1eÇ\a\1dy¨µ=[â\ f\84¼%§øÚûÄpj0KåIw¥µ\9a""I\8c\ 5qÎF@ú\9eâ\80=\9e\18!¶\88E\ 4I\14c¢"\85\ 3ð\15%yF³â\1f\12j\9f\16-<=¡ëCOÓïte¹\ eÖË!\8c\92Çz\83üX\0rp2xª¾\1añ\7f\8b\7f³üy¥5Êë:Æ\82ål¤6áZ^\dªðq· uíÍ\0{\r\15àþ\ eñýþ£®iKqãà.d\95RûKÕtÕ\80\12z¬N\83\19Ï\ 3$vãµYÖþ jZ\97\8e5Ý:?\16§\86¬ô\96ò A`n\1aæQ\9c³\9d§\v\90zv#\8e¦\80=¾¹\8d\7fâ\17\85|/¨\8d?ZÕ\92ÒèÆ%\11\98do\94\92\ 1Ê©\1d\8dVøeâ\9bÏ\17x.\rCQ\88G}\1c\8d\ 4åP¨v\a\80=2\b?\×\ 3ã\19õ\8bo\8fÖ²hZT\1a\9dïö0\ 2ÞyDjWsääñÅ\0zW\87ü}áo\15]½¦\8b¬Cup\8b¼Åµ\91¶ú\80Àgð®\92¼/K¹½O\8eZM÷\8bôxô\eÙm\1eÞÆ;P¯\15Ë\90F^@Ç\9c9\1d?»øëi\9a¿\8c¾"kÚüº'\88£Ðô.àÚÛF-\16V\9dÇw-È\a\19ãק\14\ 1ëÕ\97ªø\8bJÑotë=FìAq¨ÍäZ&Æo1ò\ 68\a\1fxuÇZò+\9f\8bºâü,7\81m¢ñ\12ê\9fÙ/&Ì `7\19\ 2ã\19Ç\18é\9eqÚ¢ñn\95âM'Æß\ f"×uôÖ\11õ5+!¶X^7ß\1eáòðTñ\8eüP\a»Q^Ucã\8dKÃ\9e&ñÆ\97â+Ãr\9at\aQÓ\8c\8a«º\1eÉ\95\ 3<²/×5Óü4\9f[¼ð-\86¡â\v·¹¾½\ 6ã.\8a\9b\11¾â\80\0ãn\ fã@\17¼=ÿ\0!Ï\16\7fØV?ý"µ®\82¹ÿ\0\ f\7fÈsÅ\9fö\15\8fÿ\0Hk \ 2\8a( \ 2\8a( \ 2\8a\8d§\89\1fcH¡½ ©(\ 3\8fñg\85ï5¹\92[YU
+\9c\8cÖPðÏ\89Â\85þÑ\\ 1\8f½]íÔRL\9bQ¶Ö\7fö\ÿ\0óÔþt\ 1Éÿ\0Â3â\7fú\b¯ýõGü#>'ÿ\0 \8aÿ\0ßUÖ\7feÍÿ\0=OçGö\ßóÔþt\ 1Éÿ\0Â3â\7fú\b¯ýõPËàÍvòâ'»¾GXÎpMv_Ùs\7fÏSùÑý\977üõ?\9d\0SÔ#\10[ÙÀX3.\ 1Åt\16ÿ\0ê\13éYGGvug|ã¥kD¥#
+{P\ 3è¢\8a\0(¢\8a\0(¢\8a\0(¢\8a\0çü=ÿ\0!Ï\16\7fØV?ý"µª\9aßÄ\9f\bxsT\93LÕµ\94¶¼\88)x\8c26\ 1\19\1cª\91ÐÕ¿\ f\7fÈsÅ\9fö\15\8fÿ\0Hk˵\rORÒ¾>ø\8aãLðëë²\7ffD\1eÝ&XÊ.ØÎï\98\1côÆ\a<Ð\a¨x{Ç^\19ñ\òÁ¢jðÝÍ\12îx²6=@` \1fJèkÃü\ 5+xãâD¾8K\e="×K·{y,ápÓÈä0Ì\80\ 1êy }Ð=q\88¿\14<A©é7¾"\87Å©ey\1cÌm4%Ó|Ä\920F\ 3I\8e¤\13ß·nÀ\1fEÑ^3ã\8f\88\1aí¼~\18¼\8a{½\1fBÔl\96âîúÖÌNñÈF|¼?\0\ e=ÎO\Tö>1Ôäø_â\8dJ×Ŷ\9aÄöIºÖî\eo*x\81éæ£\03Ç\1czòqÀ\a¯Ñ^\es|CÓ~\1céÞ=o\11C:$pÉ>\98ö\88\11âb\17qqÉc\90N1×\8e\95¹©ø·^ñw\8d¬¼1á}Di\10\7fg&¡wxÖë+\80ꬪ¡¸èËéÔóÅ\0zµ\15å\1ag\8b<I§j\1e0ð®±\7f\1díö\93¦=í\9e£\1c"6eØ\bÜ£\8c\8dÊ\7f>µËËâ_\88\10ü'³ñÑñL\7f#\85\16bÉ\b\95L¦<»ã®{\0\ 6\a\0{ý\15ã~>ñεc{áù\93P»Ñô\vë\ 5¹\96úÎÉgo5\86v\1dü\0\ 6\ f¯=ê[o\88wÚgÂís]_\10Øx\8akY\16;Iã·0È\9bØ*ùÑ\900FsïÈÉë@\1e¿PÝÝCcg=ÝËùpA\eK#à\9dª£$àsÐW\87èß\105\9b\1dwÃ¥üYÿ\0 \ 4Z\9cÉ\rý\99Ó|\9f²\97Æ
+8Q\90 Çáùz÷\8b\7fäL×\7fì\1fqÿ\0¢Ú\80&Óµ}/Ä:\12jVS%Ö\9b:¶\1d£ :\82U¾V\19ê\ fj\8bÃzö\8bâ-$]è\17\11Ïc\e\98A\8e6\8dU\80\ 4\80\b\1e£µx÷Ãýkâ\ 5·Ãm>ßHð\9d\95æ\96±J#¹\92ùQ\98o}Çi9\189\1f\85dø3Å·¾\ eø 5ö\9a©öÛ\8daa\92A\95\88²)ÜG|\ 5?\9d\0}\1dExÇ\86|s©ZxëIÒ\1fÅ\aĺv¢¬\92Ètó\ 3ÚÊ\aËÎ\ 6T\9e?>+7ž2ñ\ 6\9cú½Ü\1e>¶7Ö³\13\ 6\95¦iÿ\0h\85c\ 4q$¥x<\9cäÿ\0<\0\ fy¬¶ñ\1e\92\9e$O\ f5Ø\1a«Ãç¾ÆÉ\8f\9f\9b8ÇcÞ¼ãÄ>4ñ\ 6¥yà\9f\ fh×±i·úõ¤w\97W\82\10æ5)¸\84VÈìÿ\0\90äVM\9aê\9a/ÇÄþÜÔ?´¤µÐÝÖéaX\9aXÆãÊ\83\80ÙÜ=ð(\ 3Üh¯\9d\13â\7f\88®ôYüI\1f\8b#\8aôLZ\r\ 1tíÑ´A±´É\8e¸ÉëÛ®kªñ\a\89¼U¬ü@ðÆ\91 j¿Ù0k\1a:ÝȲB²yD\87bpGÞ\0\0;f\80=\86\8añ\ f\18ø§Äþ\16×l4\8dkÄwÖ\1abÙ):½®\9b\1c¿i¸þ"Àð g ç\81ë\9aô\1f\87\1aÅƳá\835×\88,uÉc\99\93ív±\98þ^0\1d\b\18ný\aQש\0먢\8a\0(¢\8a\0çüeÿ\0 ;oû
+é¿ú[\rt\15ÏøËþ@vßö\15Ó\7fô¶\1aè(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¢\8a(\0¦Kþ¥ÿ\0Ý4úd¿ê_ýÓ@\1c\1fÃ\7fõº¿ý|7ó¢\8f\86ÿ\0ëu\7fúøoçE\0Xø_ÿ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\19bz\9cs\9fNÕè´P\a\9bé\1f\fu\16ñ]\8f\88|WâyuË\9d??e\8bìÂ\14CÙ¸=Aç§P=)/>\1cëºv·ª_ø?ÄãI\87V\94Ëwo-¨\94+\9cåÐö<\93\8fÖ½&\8a\0ó©>\10émðäxM/n\15Äÿ\0lûv>sqÓy\19é\8e1\9e\9dóÍTÿ\0\85iâ=OVÐ5_\10ø´_Üé\17i4q D(¤\128#.Ø\±ô¯P¢\80<\vâ\8c:W\8eþ%hZ\1e\8bu4\9a\88y,õO)\18\b¢W\ 4îÎ3\8f\9c÷\1d=«Þ¡\86;x#\82\14 \14j\11\14tP\ 6\0¦Çko\fÒK\1c\11$²rî¨\ 1o©ïRÐ\a?áïù\ ex³þ±ÿ\0é\15t\15Ïø{þC\9e,ÿ\0°¬\7fúEk]\ 5\0\14QE\0\14\8cÊ£$\81õ4\928\8e6vè \93_=x§Æ> ñW\8cçÒü9#,vÊKàúP\ 3üG꺷Æ\18lìï\1e+hØe\14ðkè\b\8eÈ#\ eÃ!@9>Õó\aÃy¦\9bâ\ 5íæªG\9bi\19,Or*Ö¯ã\1f\17xºþòãKv\86ÎÐ\91\95=q@\1fLõ¤, à\91\9fx·\83~)É\a\82î'Õ\9b7\10\ 2\14\9eäV\16\83¨xÛÅ\92]x\8dehì!$\85Ï\ 4
+\0ú\e#ÔRä\1e\86¼\ 3Â\1f\10µ-Zã[{ÙJÇm\e\bð{\8a\7f\84¼{®?\875[ûÆ%Wp\88\9a\0÷½ÃÔQ¹@ÎF>µò\85ßÄ/\19\1d\18Ý´\8c\96ìÄ\aÍ-÷\8f|dº.\9eóÈÉ\ 3°ÚàòÔ\ 1õ~F3\9e)\ 3+t ý\rx®¹ñ"æ˺]\8d\9c\83í÷j\15ÝÏÝ®oBñ\9e¹áO\14Ág{z·\89tyÃd.h\ 3èì\8fQAu
+[pÀêkæ½[â\a\8anuíQtö&\b}úV\9f\80üUâ=sÂ:ó\19KO\12\9d¥\8fN(\ 3Õ´ÿ\0\88\1a>§¯Ë£ÛÊ\1aâ3\83Íu\95ò\9fÂ]\1fYÔüp×ðà¤n~Òÿ\0\8d}X\ 6\0\14\0QE\14\0QE\14\ 1Ïø{þC\9e,ÿ\0°¬\7fúEkTì|\1aö\7f\135O\17\eÕt½³[Qmåà¡]\9cîÏ?sÓ½\ð÷ü\87<Yÿ\0aXÿ\0ô\8aÖº
+\0á?á]µ\97Ħñn\91¨-¬WhSQ±x\8b%Æz\90r0O\a¡äg¹¬{\7f\86>$Ñî4o\ fxÉôý\ 2yÌÞX¶\ 6â\f\9c\95I\ 1\1e\80g\8fÔçÔè \ e7Ä>\14×®gÓ®ü?â\8b\9b9!ò$\82ð\19àº\ct\8b\91óòryÏ\1d1\n³à#áO\87~5Õ//"»Õ5;mÓ´\10\ba\8c\ 3÷Q\a×\93ÿ\0×ϲR2\86R¬\ 1SÁ\ 4u \ f\12Ð>\1ck~&ð\ e\81aqâ§_\fÏo\r̶"Ù|Ðp\18 \93®Ü\9c\8côô8®ÇÄ\7f\ f..5ë?\10ø_VþÆÕí\85¦Z!,RÄ8
+Ê}\a× ô®ð\0ª\15@\0\f\0;RÐ\a\ 1¢|8\9aÊ×Ä\17z¶°Ú\8e¿Û½¼÷\16Ô\8d
+í
+¨\ fAǧ@\0\15\14ÿ\0\f¥\9bá\f^\ 6þÕA$d\7f¥ù\a\a\13\19>îï|u¯D¢\808=GÁ^!\8e=&M\ 3Å/i-\8d\94vsZÜFdµ¸
+»w\18óò\9fÏ ühé\9f\bíSÃ^ Óõkñsw®ºÉq5¼\v\fp²\9dÉå é\83ùûW¥Q@\1e\7f¢ø/ŶÚ\96\98uo\19É>\9b¦q\15½¤\1eK\\ 1\80¢b\ fÌ\ 6\a\1cç\9f\×g¬X\1dSD¿ÓÄ\823um$\ 1ÈÎÝÊW8ïÖ®Ñ@\1cï\83ü0Þ\17ðM\9f\87\9eè\5¼r!\9c&ÐÛ\99\9b8Éþ÷¯jä4ï\83\90ÁðÚ_ ^jÆI\rïÛ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\0ÐÁ¥\7fàl\7fãGü%\9e\eÿ\0¡\83Jÿ\0ÀØÿ\0Æ\806(¬\7føK<7ÿ\0C\ 6\95ÿ\0\81±ÿ\0\8d\1fð\96xoþ\86\r+ÿ\0\ 3cÿ\0\1a\0Ø¢±ÿ\0á,ðßý\f\1aWþ\ 6Çþ4\7fÂYá¿ú\184¯ü\r\8füh\ 3b\8aÇÿ\0\84³Ã\7fô0i_ø\e\1føÑÿ\0 g\86ÿ\0è`Ò¿ð6?ñ \r\8a+\1fþ\12Ï\rÿ\0ÐÁ¥\7fàl\7fãGü%\9e\eÿ\0¡\83Jÿ\0ÀØÿ\0Æ\806(¬\7føK<7ÿ\0C\ 6\95ÿ\0\81±ÿ\0\8d\1fð\96xoþ\86\r+ÿ\0\ 3cÿ\0\1a\0Ø¢±ÿ\0á,ðßý\f\1aWþ\ 6Çþ4\7fÂYá¿ú\184¯ü\r\8füh\ 3b\8aÇÿ\0\84³Ã\7fô0i_ø\e\1føÑÿ\0 g\86ÿ\0è`Ò¿ð6?ñ \r\8a+\1fþ\12Ï\rÿ\0ÐÁ¥\7fàl\7fãGü%\9e\eÿ\0¡\83Jÿ\0ÀØÿ\0Æ\806(¬\7føK<7ÿ\0C\ 6\95ÿ\0\81±ÿ\0\8d\1fð\96xoþ\86\r+ÿ\0\ 3cÿ\0\1a\0Ø¢±ÿ\0á,ðßý\f\1aWþ\ 6Çþ4\7fÂYá¿ú\184¯ü\r\8füh\ 3b\8aÇÿ\0\84³Ã\7fô0i_ø\e\1føÑÿ\0 g\86ÿ\0è`Ò¿ð6?ñ \r\8a+\1fþ\12Ï\rÿ\0ÐÁ¥\7fàl\7fãGü%\9e\eÿ\0¡\83Jÿ\0ÀØÿ\0Æ\806(¬\7føK<7ÿ\0C\ 6\95ÿ\0\81±ÿ\0\8d\1fð\96xoþ\86\r+ÿ\0\ 3cÿ\0\1a\0¯áïù\ ex³þ±ÿ\0é\15t\15ÌøRîÚûSñMÍ¥ÄW\10>ª\9be\89ëbÎØ\1c\11Áä\11øWM@\ 5\14Q@\15µ\0N\9bt\17©\89ñù\1aùSÂ^'_\bx\9fZ\96òÖG\96mê§\1d95õ\9b\0ÊTò\bÁ®vo\ 2xvâåî$Óã2?Þ>´\ 1óç\85,®õ\r/XÕ"\85üÉK\1c\81ØÕ]\ fÆ\16º?\84/t\98ãΣ;²í\1dkéÍ;ÃÚf\95hö¶v©\1cO÷\97\1dk\11>\19xQ5/í\ 5Ó\13í\e·nÏz\0ð\9dkÂwÖ? ¡½x]f\92Mî¸ç\15Óx\eÆöÓü5»Ð´ûwûlP¶â\a¨ë^ç{¥Ùê\16FÎæ\ 5x\bÆÌq\8aÈÑ|\váí\ 2IßN°H\9apD\9dó@\1f+i>"¶Ó4{ë\18ás}p̧\8e¦»=bÒï@øAj^2\93]7*G<×´'Âï\b¦¡öåÒÓÏÝ»w½nê\9e\1dÒõ\9bhïm\96H¢û\8bØP\aÍ\9e#¶ ðÓBµ\8a2.%q¿\8a5Ø\9aDðþ\90\13%Yr+è¹ü#¢ÜC\fRÙ«$?pzR?\83´7»\8aå¬ÔË\17ÜoJ\0ù»ÅZJÙxËN¶ÕËç¶2ý0+§M;Á\r\16¡u£Áu=Å\9ae'rJ潫^ð~\89âTEÕ,Ö]\9ftô"\97Nð\86\89¥i\92iö\96H\96ò\f8<\93øÐ\aÎþ\r\90¿\85<K¨ÜÆLî\ f\96q[^\ 2I4¿\84ÚÝóü²Ì\e\ 3¹¯l·ðv\87mdöqY*Á'Þ_Z\91|)£¦\9cl\16ÑE±ê\9d¨\ 3Ë\7fg\9bIbÒu\v\99Q\94ÌùÉïÍ{eQÓ4\8b-\1eßȱ\81b\8fÐUê\0(¢\8a\0(¢\8a\0çü=ÿ\0!Ï\16\7fØV?ý"µ®\82¹\r/[ÒtÏ\11x®\eýRÊÒVÔãp\93Ü$lWìvÃ8'¦Aü«_þ\12Ï\rÿ\0ÐÁ¥\7fàl\7fã@\e\14V?ü%\9e\eÿ\0¡\83Jÿ\0ÀØÿ\0Æ\8føK<7ÿ\0C\ 6\95ÿ\0\81±ÿ\0\8d\0lQXÿ\0ð\96xoþ\86\r+ÿ\0\ 3cÿ\0\1a?á,ðßý\f\1aWþ\ 6Çþ4\ 1±Ecÿ\0ÂYá¿ú\184¯ü\r\8fühÿ\0\84³Ã\7fô0i_ø\e\1føÐ\ 6Å\15\8fÿ\0 g\86ÿ\0è`Ò¿ð6?ñ£þ\12Ï\rÿ\0ÐÁ¥\7fàl\7fã@\e\14V?ü%\9e\eÿ\0¡\83Jÿ\0ÀØÿ\0Æ\8føK<7ÿ\0C\ 6\95ÿ\0\81±ÿ\0\8d\0lQXÿ\0ð\96xoþ\86\r+ÿ\0\ 3cÿ\0\1a?á,ðßý\f\1aWþ\ 6Çþ4\ 1±Ecÿ\0ÂYá¿ú\184¯ü\r\8fühÿ\0\84³Ã\7fô0i_ø\e\1føÐ\ 6Å\15\8fÿ\0 g\86ÿ\0è`Ò¿ð6?ñ£þ\12Ï\rÿ\0ÐÁ¥\7fàl\7fã@\e\14V?ü%\9e\eÿ\0¡\83Jÿ\0ÀØÿ\0Æ\8føK<7ÿ\0C\ 6\95ÿ\0\81±ÿ\0\8d\0lQXÿ\0ð\96xoþ\86\r+ÿ\0\ 3cÿ\0\1a?á,ðßý\f\1aWþ\ 6Çþ4\ 1±Ecÿ\0ÂYá¿ú\184¯ü\r\8fühÿ\0\84³Ã\7fô0i_ø\e\1føÐ\ 6Å\15\8fÿ\0 g\86ÿ\0è`Ò¿ð6?ñ£þ\12Ï\rÿ\0ÐÁ¥\7fàl\7fã@\e\14V?ü%\9e\eÿ\0¡\83Jÿ\0ÀØÿ\0Æ\8føK<7ÿ\0C\ 6\95ÿ\0\81±ÿ\0\8d\0Wñ\97ü\80í¿ì+¦ÿ\0él5ÐW\eâ\8f\10è\97Úe¥µ\9e±§ÜNú®\9d¶(nQÙ±y 8\0äð ®Ê\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+d¿ê_ýÓO¦Kþ¥ÿ\0Ý4\ 1Áü7ÿ\0[«ÿ\0×Ã\7f:(øoþ·Wÿ\0¯\86þtP\ 5\8f\85ÿ\0ò-Ëÿ\0]Ûù\9aíë\88ø_ÿ\0"Ü¿õÝ¿\99®Þ\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+(¢\80
+k¢È\85\1dC)ê\18d\1au\14\ 1_ì\16\7fóé\aýû\14}\82Ïþ} ÿ\0¿b¬Q@\15þÁgÿ\0>\90\7fß±GØ,ÿ\0çÒ\ fûö*Å\14\ 1_ì\16\7fóé\aýû\14}\82Ïþ} ÿ\0¿b¬Q@\15þÁgÿ\0>\90\7fß±GØ,ÿ\0çÒ\ fûö*Å\14\ 1_ì\16\7fóé\aýû\14}\82Ïþ} ÿ\0¿b¬Q@\15þÁgÿ\0>\90\7fß±GØ,ÿ\0çÒ\ fûö*Å\14\ 1_ì\16\7fóé\aýû\14}\82Ïþ} ÿ\0¿b¬Q@\15þÁgÿ\0>\90\7fß±GØ,ÿ\0çÒ\ fûö*Å\14\ 1_ì\16\7fóé\aýû\14}\82Ïþ} ÿ\0¿b¬Q@\15þÁgÿ\0>\90\7fß±GØ,ÿ\0çÒ\ fûö*Å\14\ 1_ì\16\7fóé\aýû\14}\82Ïþ} ÿ\0¿b¬Q@\15þÁgÿ\0>\90\7fß±GØ,ÿ\0çÒ\ fûö*Å\14\ 1_ì\16\7fóé\aýû\14}\82Ïþ} ÿ\0¿b¬Q@\15þÁgÿ\0>\90\7fß±GØ,ÿ\0çÒ\ fûö*Å\14\0Èâ\8e\15Û\14j\8b×
+0)ôQ@\ 5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\ 1ÞÑ\\17Ú> ÿ\0Ï\eOûæ\8f´|Aÿ\0\9e6\9f÷Í\0w´W\ 5ö\8f\88?óÆÓþù£í\1f\10\7fç\8d§ýó@\1dí\15Á}£â\ füñ´ÿ\0¾hûGÄ\1fùãiÿ\0|Ð\a{Ep_hø\83ÿ\0<m?ï\9a>Ññ\aþxÚ\7fß4\ 1ÞÑ\\17Ú> ÿ\0Ï\eOûæ\8f´|Aÿ\0\9e6\9f÷Í\0w´W\ 5ö\8f\88?óÆÓþù£í\1f\10\7fç\8d§ýó@\1dí\15Á}£â\ füñ´ÿ\0¾hûGÄ\1fùãiÿ\0|Ð\a{Ep_hø\83ÿ\0<m?ï\9a>Ññ\aþxÚ\7fß4\ 1ÞÑ\\17Ú> ÿ\0Ï\eOûæ\8f´|Aÿ\0\9e6\9f÷Í\0w´W\ 5ö\8f\88?óÆÓþù£í\1f\10\7fç\8d§ýó@\1dí\15Á}£â\ füñ´ÿ\0¾hûGÄ\1fùãiÿ\0|Ð\a{Ep_hø\83ÿ\0<m?ï\9a>Ññ\aþxÚ\7fß4\ 1ÞÑ\\17Ú> ÿ\0Ï\eOûæ\8f´|Aÿ\0\9e6\9f÷Í\0w´W\ 5ö\8f\88?óÆÓþù£í\1f\10\7fç\8d§ýó@\1dí\15Á}£â\ füñ´ÿ\0¾hûGÄ\1fùãiÿ\0|Ð\a{Ep_hø\83ÿ\0<m?ï\9a>Ññ\aþxÚ\7fß4\ 1ÞÑ\\17Ú> ÿ\0Ï\eOûæ\8f´|Aÿ\0\9e6\9f÷Í\0w´W\ 5ö\8f\88?óÆÓþù£í\1f\10\7fç\8d§ýó@\1dí\15Á}£â\ füñ´ÿ\0¾hûGÄ\1fùãiÿ\0|Ð\a{Ep_hø\83ÿ\0<m?ï\9a>Ññ\aþxÚ\7fß4\ 1ÞÑ\\17Ú> ÿ\0Ï\eOûæ\8f´|Aÿ\0\9e6\9f÷Í\0w´W\ 5ö\8f\88?óÆÓþù£í\1f\10\7fç\8d§ýó@\1dí\15Á}£â\ füñ´ÿ\0¾hûGÄ\1fùãiÿ\0|Ð\a{Ep_hø\83ÿ\0<m?ï\9a>Ññ\aþxÚ\7fß4\ 1ÞÑ\\17Ú> ÿ\0Ï\eOûæ\8f´|Aÿ\0\9e6\9f÷Í\0w´W\ 5ö\8f\88?óÆÓþù£í\1f\10\7fç\8d§ýó@\1dí\15Á}£â\ füñ´ÿ\0¾hûGÄ\1fùãiÿ\0|Ð\a{Ep_hø\83ÿ\0<m?ï\9a>Ññ\aþxÚ\7fß4\ 1ÞÑ\\17Ú> ÿ\0Ï\eOûæ\8f´|Aÿ\0\9e6\9f÷Í\0w´W\ 5ö\8f\88?óÆÓþù£í\1f\10\7fç\8d§ýó@\1dí\15Á}£â\ füñ´ÿ\0¾hûGÄ\1fùãiÿ\0|Ð\a{Ep_hø\83ÿ\0<m?ï\9a>Ññ\aþxÚ\7fß4\ 1ÞÑ\\17Ú> ÿ\0Ï\eOûæ\8f´|Aÿ\0\9e6\9f÷Í\0w´W\ 5ö\8f\88?óÆÓþù£í\1f\10\7fç\8d§ýó@\1dí\15Á}£â\ füñ´ÿ\0¾hûGÄ\1fùãiÿ\0|Ð\a{Ep_hø\83ÿ\0<m?ï\9a>Ññ\aþxÚ\7fß4\ 1ÞÑ\\17Ú> ÿ\0Ï\eOûæ\8f´|Aÿ\0\9e6\9f÷Í\0w´W\ 5ö\8f\88?óÆÓþù£í\1f\10\7fç\8d§ýó@\1dí\15Á}£â\ füñ´ÿ\0¾hûGÄ\1fùãiÿ\0|Ð\a{Ep_hø\83ÿ\0<m?ï\9a>Ññ\aþxÚ\7fß4\ 1ÞÑ\\17Ú> ÿ\0Ï\eOûæ\8f´|Aÿ\0\9e6\9f÷Í\0w´W\ 5ö\8f\88?óÆÓþù£í\1f\10\7fç\8d§ýó@\1dí\15Á}£â\ füñ´ÿ\0¾hûGÄ\1fùãiÿ\0|Ð\a{Ep_hø\83ÿ\0<m?ï\9a>Ññ\aþxÚ\7fß4\ 1ÞÑ\\17Ú> ÿ\0Ï\eOûæ\8f´|Aÿ\0\9e6\9f÷Í\0w´W\ 5ö\8f\88?óÆÓþù£í\1f\10\7fç\8d§ýó@\1dí\15Á}£â\ füñ´ÿ\0¾hûGÄ\1fùãiÿ\0|Ð\a{Ep_hø\83ÿ\0<m?ï\9a>Ññ\aþxÚ\7fß4\ 1ÞÑ\\17Ú> ÿ\0Ï\eOûæ\8f´|Aÿ\0\9e6\9f÷Í\0w´W\ 5ö\8f\88?óÆÓþù£í\1f\10\7fç\8d§ýó@\1dí\15Á}£â\ füñ´ÿ\0¾hûGÄ\1fùãiÿ\0|Ð\a{Ep_hø\83ÿ\0<m?ï\9a>Ññ\aþxÚ\7fß4\ 1ÞÑ\\17Ú> ÿ\0Ï\eOûæ\8f´|Aÿ\0\9e6\9f÷Í\0w´W\ 5ö\8f\88?óÆÓþù£í\1f\10\7fç\8d§ýó@\1dí\15Á}£â\ füñ´ÿ\0¾hûGÄ\1fùãiÿ\0|Ð\a{Ep_hø\83ÿ\0<m?ï\9a>Ññ\aþxÚ\7fß4\ 1ÞÑ\\17Ú> ÿ\0Ï\eOûæ\8f´|Aÿ\0\9e6\9f÷Í\0w´W\ 5ö\8f\88?óÆÓþù£í\1f\10\7fç\8d§ýó@\1dí\15Á}£â\ füñ´ÿ\0¾hûGÄ\1fùãiÿ\0|Ð\a{Ep_hø\83ÿ\0<m?ï\9a>Ññ\aþxÚ\7fß4\ 1ÞÑ\\17Ú> ÿ\0Ï\eOûæ\8f´|Aÿ\0\9e6\9f÷Í\0w´W\ 5ö\8f\88?óÆÓþù£í\1f\10\7fç\8d§ýó@\1dí\15Á}£â\ füñ´ÿ\0¾hûGÄ\1fùãiÿ\0|Ð\a{Ep_hø\83ÿ\0<m?ï\9a>Ññ\aþxÚ\7fß4\ 1ÞÑ\\17Ú> ÿ\0Ï\eOûæ\8f´|Aÿ\0\9e6\9f÷Í\0w´W\ 5ö\8f\88?óÆÓþù£í\1f\10\7fç\8d§ýó@\1dí\15Á}£â\ füñ´ÿ\0¾hûGÄ\1fùãiÿ\0|Ð\a{Ep_hø\83ÿ\0<m?ï\9a>Ññ\aþxÚ\7fß4\ 1ÞÑ\\17Ú> ÿ\0Ï\eOûæ\8f´|Aÿ\0\9e6\9f÷Í\0w´W\ 5ö\8f\88?óÆÓþù£í\1f\10\7fç\8d§ýó@\1dí\15Á}£â\ füñ´ÿ\0¾hûGÄ\1fùãiÿ\0|Ð\a{Ep_hø\83ÿ\0<m?ï\9a>Ññ\aþxÚ\7fß4\ 1ÞÑ\\17Ú> ÿ\0Ï\eOûæ\8f´|Aÿ\0\9e6\9f÷Í\0w´W\ 5ö\8f\88?óÆÓþù£í\1f\10\7fç\8d§ýó@\1dí\15Á}£â\ füñ´ÿ\0¾hûGÄ\1fùãiÿ\0|Ð\a{Ep_hø\83ÿ\0<m?ï\9a>Ññ\aþxÚ\7fß4\ 1ÞÑ\\17Ú> ÿ\0Ï\eOûæ\8f´|Aÿ\0\9e6\9f÷Í\0w´W\ 5ö\8f\88?óÆÓþù£í\1f\10\7fç\8d§ýó@\1dí2_õOþé®\17í\1f\10\7fç\8d§ýóHÓüA*G\95iÈþí\0'Ã\7fõÚ¿ý|7ó¢´<\a j:-Óên\86ââBä(é\9a(\ 3ÿÙ
+endstream
+endobj
+621 0 obj
+<< /Type /Page
+/Parent 1 0 R
+/MediaBox [ 0 0 612 792 ]
+/Resources 3 0 R
+/Contents 619 0 R
+>>
+endobj
+622 0 obj
+<< /Length 2838 /Filter [ /ASCII85Decode /FlateDecode ]
+ >>
+stream
+Gat=-969.7%DM^@k\+%#D8%I\2NqZa-T0c:9O+Pr76.`OQH0KRk42q`s*gI((B@C>PL;npfK]N])F/qIT5OZ)FS#B(YW1F>!u<HYE6Zg"&kD5:T`2?.Z+p,3c"FU?b9E7sY']pm?%eo'TD$b)E1p;`_M&aIUb%Dp`RAhsn(XtGpZ5gsH!e_jDR#.QLdcTR-]?`-=c%J64V'[[GUkJp$*p:lQkll747n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C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A << /URI (http://www.w3.org/TR/xpath)
+/S /URI >>
+/H /I
+>>
+endobj
+666 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 118.0 396.561 183.692 385.561 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A << /URI (http://www.zvon.org/xxl/XPathTutorial/General/examples.html)
+/S /URI >>
+/H /I
+>>
+endobj
+667 0 obj
+<< /Length 1967 /Filter [ /ASCII85Decode /FlateDecode ]
+ >>
+stream
+Gau0D95iTD&AIV:&.B7lJ2JS:/`2^<%9t_=l>2SM>njZabmMij$:V)Ks1T_?'H`KRk>:rZo8/tRB>,PfG.2bq9BZNko"Ek.j*P,lf^n&4HYEI^Os_YP12hC/rjpl>de*F&*=8q'k*:-*U`$8Eg^d+6,5j%\Df>A#BT,*5KgqmJ#QCYSNDU[m6J[t1*L2:A7QA:gi*CeJbKmO4=N)BL%u_:23mleQ^CR^72V9d/;;Zq?e4-KNNaqC&EV(9n2qK[e`M2`>GMBe_o0_W<-jb+)OJ\9,F&J>!#cj242(=2;ToZL!VfLFO)rB;iOWIa#LhuS#h<(Z,%bQkC$lVttR&8ID]6]9CRCd$AHo"C<KF+C`cujJ"9=1;--pjn*iU/t/aplj$7NNO7PgsQEEf@1WC'0mp@`T!A;.`1kk*/U.RHR7-"`&[YMO<GLd*pE4VUIJ8AS""`6&n9sRjkRdKJ-,S<TLlk)S)c=`/m"?W+s%]?n+S;]@"A&X_apbRTUh[MBr7ocg+NQl*J#8kE0Wp3+85O(kkPK"?LBUd'U5ddQJI_DM*ka1qqZ+UCB4=?i'>t5Uo9Ja69L;#=fLC<PL@M;2l_L$GBV+m2-+Uc7H3dHG@B)[^%p%)GCFQ;u=#+gBV`f)BB@>!ZnAQ[K,%R"1-T-.[U7bfHTLSpbqf.#0U$Yi!_HEX^pX4/'$p;[>79Zi[h'F].GNRUOl?c/14?,U!WI37^5^u4l2-`\<_L!ml'&^50>+/;j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('>?]F/f*V@&f7</r=MmVB*Vcm"jJCSWrlqCg(tc%U8iT)0YE:$V'O'%Lq=3)V8pbM@XABA2=^Ee@ekf^+5ZVF^-;q8DS0bUI>M=kVkNW,j.[J<Y\c<)WVF@tQ"*2DENn2gmtt[ReD/q#$TJAt'A'(\g=YI!baIVLd%0(:rMiE(\2"[r/e$mS:mM5d2<4,M`hnJV!#:KjEbV7uS/h<ac9ZACfD2kK)X($]pd"u!Q6P?Ca:iuJVIK`e=k`=l!H#R\#cQKOh%a-`J[3oo<+(tC=+/d7fJZZ,ALSoC10U\P>cMhe3(pc=p!%Fn8A@)@5@Pd@D>"j'<9TIJp?-NkgNmN1N6u4U$gA#UIrj>1-ap\$3!Nqf8%DUCcD;muBZ<H+*gg7:Ic()'Yc;6unP"TB7X2Smk,_[nHf\?NZ3g*!?=Sc]TK_:fG#@F#%aSZ3./-l0-$"p?[rmq1rY(@"1(,rt[HR&9c;%]Wn#BY!r3g#@\\R[fNH!FS.V:8-r]'^r-FK0oPfYP:V4qAo>,G(HBr\>Cl&?h8'<L*D!q&(1@KlB]/t2JLZc<L#71NGI0%,1f*4s1hMsSgkcP&,5$V1oh!<~>
+endstream
+endobj
+670 0 obj
+<< /Type /Page
+/Parent 1 0 R
+/MediaBox [ 0 0 612 792 ]
+/Resources 3 0 R
+/Contents 669 0 R
+/Annots 671 0 R
+>>
+endobj
+671 0 obj
+[
+672 0 R
+673 0 R
+]
+endobj
+672 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 717.149 717.25 729.37 706.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A << /URI (http://www.w3.org/TR/REC-CSS2/syndata.html)
+/S /URI >>
+/H /I
+>>
+endobj
+673 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 120.0 701.85 325.051 690.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A << /URI (http://www.w3.org/TR/REC-CSS2/syndata.html)
+/S /URI >>
+/H /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(\7.Re];0KRX47OD,`"`KEjt:7eO/^L![-]hY'P7qA+(HN0&Y4^$dU;HD>+V=[:8X,qCsn-^ioh."(1*?K<_qM$Al%Lm@Msj$%^in(Lqk21@(e;[hk5k";_[7!,Z.cT^>>c%a]L@g8#+-XaBLbo:!it'T&o\H]Ud\o3g;,hY"LWFkAK,1B+XA#E6Dl+G0QsY`O/!%Gh"](S9l*_EcpI"9\-&$nn*UWKut)cIg9.Z_H\U0SD9LqkJui?k5[IF)@+0rcfXQ"6)ZgV63M#kc%WHfC0irAC]JbHUanegD.n?n&')bC2M<%MMh.s*k3SKAmoh;h@;_,I.,%Z%lUUT[4uD(R_Ap3iI5@"Wo(acBl6e7H>Mi[(^L:X[sEA)_blAc/%7(%;t4i5?-d"6*pO$-Y3^"fAr59#H_3PSlg(A:oqJmpb*oAAAX9rh%"hp*C3p"1KLfs>ejkt8obr'a\NA)4Glt4"6sK;Ua!,/_B8f7rmOOu[hi("M),Zk&!uAY!7_rDe65CWd.$r.67K1g7EH,HZBf[2AY)_Zj,Daa/*_[ZX&&A$IMMHb<TT$)d`Gl$)A(m<^d,kfpH%M/S"-B;?>K@&;hKO1[mX@=j.5S6C'+8IR7:PB*#@>nB+/HgV7"A,J&=:`"+^Te"Llj"qL1[?5!JK]66N~>
+endstream
+endobj
+695 0 obj
+<< /Type /Page
+/Parent 1 0 R
+/MediaBox [ 0 0 612 792 ]
+/Resources 3 0 R
+/Contents 694 0 R
+/Annots 696 0 R
+>>
+endobj
+696 0 obj
+[
+697 0 R
+698 0 R
+]
+endobj
+697 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 249.054 561.05 307.706 550.05 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A << /URI (http://projects.otaku42.de/wiki/ScallyWhack)
+/S /URI >>
+/H /I
+>>
+endobj
+698 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 299.158 525.85 348.35 514.85 ]
+/C [ 0 0 0 ]
+/Border [ 0 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s8PiFasGY;U`Z!+Q1IH@8B\?'a^NkaLQO*9(HFMQ=f)G;ajj>,%F(U"MNhf(0DIRW!=>j5=m(,<>ed3oO')e!s0u=48=$Do>\e]to5fOc@7mT$bKKj5O/f]:XNL1m4IdX]kH<Tj2qpAV>g'b"_s0Eh$T@Hg=?)'IQ\\hF(*0':ATAGc-]=/Tb/u+5Rk"Z8;8X=S].8hkCEgr@I2H[m&0C&?8D`o.*m:`s+kq(sX=+#97!UXKN:$H#g*PF8RM<$&g`8"NS5$!a;\ojk50L-D*E_4j$kH6R:a!&sUji@i^(ZS~>
+endstream
+endobj
+726 0 obj
+<< /Type /Page
+/Parent 1 0 R
+/MediaBox [ 0 0 612 792 ]
+/Resources 3 0 R
+/Contents 725 0 R
+/Annots 727 0 R
+>>
+endobj
+727 0 obj
+[
+728 0 R
+]
+endobj
+728 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 404.48 112.707 493.69 101.707 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A << /URI (http://www.pcre.org)
+/S /URI >>
+/H /I
+>>
+endobj
+729 0 obj
+<< /Length 2681 /Filter [ /ASCII85Decode /FlateDecode ]
+ >>
+stream
+Gat%%D/\/g')nJ0i<sg[oO,#"7(q^*D0es$HUujra1(8AI9SB@'alNb?AV9`*:CT!8>O0?bBDVAL$'%.*7"Gcn!4c.htn(GOY^.;(XD++!`'g2M^NKE=Qm[OoYS^j48Jg^UGnASG'sTZ>V.lC-qUXpB9br!`NJ/<=f^Gm@[+2e!EAqee^$9,SoTg%SeZ(ASbUD97D3MZMJnk7%+U2d]sO:DYhm`aXuWO>0m4;4iC\(Fs%JaY1,T]_0#G:k>[8R5H/>i_@tZ'H\Wa'Gjm*AV9i+HWJ2OI^%$%AESinl?If,:roY,-8+=U$r.(RUZ5*.soc,$..>1<qEnbj=3=OuclP(EuJ.th,IB%r`M?&YOZ]j[QRDO7[]fE$/ADN(+<M*'b?NGm^pKB!G86@uF79K%1l_CBOo\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B\RP[]6E-6[&p:djY;/R)@[O:i@DJZ9qucaE!1/_m!&b>Xq/H-4M3[?h):aM)lWfc5YT8^0-24qX/&q-MRsfD,2fJ#[.T?%Xk4:C+F+b9KEsKMp16R<L"+=\[s^gn5+VIRJ%ob7(9jD=D*#bLT]L-qbGq,q5fHbV?0`e:N8F&n#thV8VdOf[6r=mQB//BAULVT7uW38:)!Tq+k_D$C;F&^#rNR@\)Z8LphHHA$:kRD8C8rcX<PqTDe,hG`>[ogVF9eFD^8/T:csZW1@AD2>2/:\hE$G<%g52[EOD(F6]W)%a.,p5C*2#3-:)>GX_"0@uTMqKXY,SUc7kcNMq+acIJ=t"l)Aa3m\(S;$a#n7>G\qN<_)Aa!&!S?/U\Q$PpV4C&PJC?T)9U/2Sd%I;>RaU5PgADbJ+*[MW_g[hQ.<8#j?DadFZq[k6g)\_L3,lh.h<QGY;<&PQ&f(Uu"tLgYrOTI0K"gfC'CQRTmHQ<@SWDPRNJH\/h1_Unlo1]:I^gu\JD%4LFT:W`e.qEae-N84En<lInu["aeRS7S(8DUHTqq?KE58AY~>
+endstream
+endobj
+742 0 obj
+<< /Type /Page
+/Parent 1 0 R
+/MediaBox [ 0 0 612 792 ]
+/Resources 3 0 R
+/Contents 741 0 R
+>>
+endobj
+743 0 obj
+<< /Type /Font
+/Subtype /Type1
+/Name /F11
+/BaseFont /Courier-Bold
+/Encoding /WinAnsiEncoding >>
+endobj
+744 0 obj
+<< /Type /Font
+/Subtype /Type1
+/Name /F1
+/BaseFont /Helvetica
+/Encoding /WinAnsiEncoding >>
+endobj
+745 0 obj
+<< /Type /Font
+/Subtype /Type1
+/Name /F10
+/BaseFont /Courier-Oblique
+/Encoding /WinAnsiEncoding >>
+endobj
+746 0 obj
+<< /Type /Font
+/Subtype /Type1
+/Name /F5
+/BaseFont /Times-Roman
+/Encoding /WinAnsiEncoding >>
+endobj
+747 0 obj
+<< /Type /Font
+/Subtype /Type1
+/Name /F3
+/BaseFont /Helvetica-Bold
+/Encoding /WinAnsiEncoding >>
+endobj
+748 0 obj
+<< /Type /Font
+/Subtype /Type1
+/Name /F9
+/BaseFont /Courier
+/Encoding /WinAnsiEncoding >>
+endobj
+749 0 obj
+<< /Type /Font
+/Subtype /Type1
+/Name /F6
+/BaseFont /Times-Italic
+/Encoding /WinAnsiEncoding >>
+endobj
+750 0 obj
+<< /Type /Font
+/Subtype /Type1
+/Name /F7
+/BaseFont /Times-Bold
+/Encoding /WinAnsiEncoding >>
+endobj
+1 0 obj
+<< /Type /Pages
+/Count 98
+/Kids [7 0 R 31 0 R 118 0 R 205 0 R 292 0 R 379 0 R 466 0 R 525 0 R 527 0 R 529 0 R 531 0 R 535 0 R 543 0 R 545 0 R 554 0 R 556 0 R 558 0 R 560 0 R 562 0 R 564 0 R 566 0 R 568 0 R 570 0 R 572 0 R 574 0 R 581 0 R 583 0 R 585 0 R 587 0 R 589 0 R 591 0 R 593 0 R 595 0 R 597 0 R 599 0 R 603 0 R 605 0 R 607 0 R 612 0 R 614 0 R 616 0 R 618 0 R 621 0 R 623 0 R 625 0 R 627 0 R 629 0 R 631 0 R 633 0 R 635 0 R 637 0 R 639 0 R 641 0 R 643 0 R 645 0 R 647 0 R 649 0 R 651 0 R 653 0 R 655 0 R 657 0 R 659 0 R 661 0 R 663 0 R 668 0 R 670 0 R 675 0 R 677 0 R 679 0 R 681 0 R 683 0 R 685 0 R 687 0 R 689 0 R 691 0 R 693 0 R 695 0 R 700 0 R 702 0 R 704 0 R 706 0 R 708 0 R 710 0 R 712 0 R 714 0 R 716 0 R 718 0 R 720 0 R 722 0 R 724 0 R 726 0 R 730 0 R 732 0 R 734 0 R 736 0 R 738 0 R 740 0 R 742 0 R ] >>
+endobj
+2 0 obj
+<< /Type /Catalog
+/Pages 1 0 R
+ >>
+endobj
+3 0 obj
+<<
+/Font << /F1 744 0 R /F11 743 0 R /F10 745 0 R /F5 746 0 R /F3 747 0 R /F9 748 0 R /F6 749 0 R /F7 750 0 R >>
+/ProcSet [ /PDF /ImageC /Text ] /XObject <</Im1 6 0 R
+/Im2 620 0 R
+ >>
+>>
+endobj
+11 0 obj
+<<
+/S /GoTo
+/D [525 0 R /XYZ 67.0 725.0 null]
+>>
+endobj
+13 0 obj
+<<
+/S /GoTo
+/D [525 0 R /XYZ 67.0 596.2 null]
+>>
+endobj
+15 0 obj
+<<
+/S /GoTo
+/D [525 0 R /XYZ 67.0 418.75 null]
+>>
+endobj
+17 0 obj
+<<
+/S /GoTo
+/D [525 0 R /XYZ 67.0 333.7 null]
+>>
+endobj
+19 0 obj
+<<
+/S /GoTo
+/D [527 0 R /XYZ 67.0 659.0 null]
+>>
+endobj
+21 0 obj
+<<
+/S /GoTo
+/D [527 0 R /XYZ 67.0 512.35 null]
+>>
+endobj
+23 0 obj
+<<
+/S /GoTo
+/D [527 0 R /XYZ 67.0 196.3 null]
+>>
+endobj
+25 0 obj
+<<
+/S /GoTo
+/D [529 0 R /XYZ 67.0 725.0 null]
+>>
+endobj
+27 0 obj
+<<
+/S /GoTo
+/D [529 0 R /XYZ 67.0 650.95 null]
+>>
+endobj
+29 0 obj
+<<
+/S /GoTo
+/D [531 0 R /XYZ 67.0 725.0 null]
+>>
+endobj
+34 0 obj
+<<
+/S /GoTo
+/D [531 0 R /XYZ 67.0 690.8 null]
+>>
+endobj
+36 0 obj
+<<
+/S /GoTo
+/D [531 0 R /XYZ 67.0 513.35 null]
+>>
+endobj
+38 0 obj
+<<
+/S /GoTo
+/D [535 0 R /XYZ 67.0 725.0 null]
+>>
+endobj
+40 0 obj
+<<
+/S /GoTo
+/D [554 0 R /XYZ 67.0 725.0 null]
+>>
+endobj
+42 0 obj
+<<
+/S /GoTo
+/D [554 0 R /XYZ 67.0 367.666 null]
+>>
+endobj
+44 0 obj
+<<
+/S /GoTo
+/D [556 0 R /XYZ 67.0 725.0 null]
+>>
+endobj
+46 0 obj
+<<
+/S /GoTo
+/D [556 0 R /XYZ 67.0 481.55 null]
+>>
+endobj
+48 0 obj
+<<
+/S /GoTo
+/D [558 0 R /XYZ 67.0 725.0 null]
+>>
+endobj
+50 0 obj
+<<
+/S /GoTo
+/D [558 0 R /XYZ 67.0 412.019 null]
+>>
+endobj
+52 0 obj
+<<
+/S /GoTo
+/D [558 0 R /XYZ 67.0 205.969 null]
+>>
+endobj
+54 0 obj
+<<
+/S /GoTo
+/D [560 0 R /XYZ 67.0 505.266 null]
+>>
+endobj
+56 0 obj
+<<
+/S /GoTo
+/D [560 0 R /XYZ 67.0 165.282 null]
+>>
+endobj
+58 0 obj
+<<
+/S /GoTo
+/D [564 0 R /XYZ 67.0 725.0 null]
+>>
+endobj
+60 0 obj
+<<
+/S /GoTo
+/D [564 0 R /XYZ 67.0 481.55 null]
+>>
+endobj
+62 0 obj
+<<
+/S /GoTo
+/D [564 0 R /XYZ 67.0 242.5 null]
+>>
+endobj
+64 0 obj
+<<
+/S /GoTo
+/D [566 0 R /XYZ 67.0 588.6 null]
+>>
+endobj
+66 0 obj
+<<
+/S /GoTo
+/D [566 0 R /XYZ 67.0 130.3 null]
+>>
+endobj
+68 0 obj
+<<
+/S /GoTo
+/D [568 0 R /XYZ 67.0 375.2 null]
+>>
+endobj
+70 0 obj
+<<
+/S /GoTo
+/D [568 0 R /XYZ 67.0 184.55 null]
+>>
+endobj
+72 0 obj
+<<
+/S /GoTo
+/D [570 0 R /XYZ 67.0 672.2 null]
+>>
+endobj
+74 0 obj
+<<
+/S /GoTo
+/D [570 0 R /XYZ 67.0 455.15 null]
+>>
+endobj
+76 0 obj
+<<
+/S /GoTo
+/D [570 0 R /XYZ 67.0 297.5 null]
+>>
+endobj
+78 0 obj
+<<
+/S /GoTo
+/D [570 0 R /XYZ 67.0 137.65 null]
+>>
+endobj
+80 0 obj
+<<
+/S /GoTo
+/D [572 0 R /XYZ 67.0 428.0 null]
+>>
+endobj
+82 0 obj
+<<
+/S /GoTo
+/D [574 0 R /XYZ 67.0 610.666 null]
+>>
+endobj
+84 0 obj
+<<
+/S /GoTo
+/D [574 0 R /XYZ 67.0 450.816 null]
+>>
+endobj
+86 0 obj
+<<
+/S /GoTo
+/D [581 0 R /XYZ 67.0 640.069 null]
+>>
+endobj
+88 0 obj
+<<
+/S /GoTo
+/D [581 0 R /XYZ 67.0 283.378 null]
+>>
+endobj
+90 0 obj
+<<
+/S /GoTo
+/D [583 0 R /XYZ 67.0 689.8 null]
+>>
+endobj
+92 0 obj
+<<
+/S /GoTo
+/D [583 0 R /XYZ 67.0 419.95 null]
+>>
+endobj
+94 0 obj
+<<
+/S /GoTo
+/D [583 0 R /XYZ 67.0 198.5 null]
+>>
+endobj
+96 0 obj
+<<
+/S /GoTo
+/D [585 0 R /XYZ 67.0 637.0 null]
+>>
+endobj
+98 0 obj
+<<
+/S /GoTo
+/D [585 0 R /XYZ 67.0 413.35 null]
+>>
+endobj
+100 0 obj
+<<
+/S /GoTo
+/D [585 0 R /XYZ 67.0 134.7 null]
+>>
+endobj
+102 0 obj
+<<
+/S /GoTo
+/D [587 0 R /XYZ 67.0 588.6 null]
+>>
+endobj
+104 0 obj
+<<
+/S /GoTo
+/D [587 0 R /XYZ 67.0 292.35 null]
+>>
+endobj
+106 0 obj
+<<
+/S /GoTo
+/D [589 0 R /XYZ 67.0 725.0 null]
+>>
+endobj
+108 0 obj
+<<
+/S /GoTo
+/D [589 0 R /XYZ 67.0 478.488 null]
+>>
+endobj
+110 0 obj
+<<
+/S /GoTo
+/D [589 0 R /XYZ 67.0 149.238 null]
+>>
+endobj
+112 0 obj
+<<
+/S /GoTo
+/D [591 0 R /XYZ 67.0 567.469 null]
+>>
+endobj
+114 0 obj
+<<
+/S /GoTo
+/D [591 0 R /XYZ 67.0 392.219 null]
+>>
+endobj
+116 0 obj
+<<
+/S /GoTo
+/D [591 0 R /XYZ 67.0 128.969 null]
+>>
+endobj
+121 0 obj
+<<
+/S /GoTo
+/D [597 0 R /XYZ 67.0 236.111 null]
+>>
+endobj
+123 0 obj
+<<
+/S /GoTo
+/D [599 0 R /XYZ 67.0 166.508 null]
+>>
+endobj
+125 0 obj
+<<
+/S /GoTo
+/D [603 0 R /XYZ 67.0 549.0 null]
+>>
+endobj
+127 0 obj
+<<
+/S /GoTo
+/D [603 0 R /XYZ 67.0 321.819 null]
+>>
+endobj
+129 0 obj
+<<
+/S /GoTo
+/D [603 0 R /XYZ 67.0 146.569 null]
+>>
+endobj
+131 0 obj
+<<
+/S /GoTo
+/D [607 0 R /XYZ 67.0 258.705 null]
+>>
+endobj
+133 0 obj
+<<
+/S /GoTo
+/D [612 0 R /XYZ 67.0 578.545 null]
+>>
+endobj
+135 0 obj
+<<
+/S /GoTo
+/D [612 0 R /XYZ 67.0 357.095 null]
+>>
+endobj
+137 0 obj
+<<
+/S /GoTo
+/D [612 0 R /XYZ 67.0 166.445 null]
+>>
+endobj
+139 0 obj
+<<
+/S /GoTo
+/D [614 0 R /XYZ 67.0 639.2 null]
+>>
+endobj
+141 0 obj
+<<
+/S /GoTo
+/D [614 0 R /XYZ 67.0 314.616 null]
+>>
+endobj
+143 0 obj
+<<
+/S /GoTo
+/D [616 0 R /XYZ 67.0 672.2 null]
+>>
+endobj
+145 0 obj
+<<
+/S /GoTo
+/D [621 0 R /XYZ 67.0 725.0 null]
+>>
+endobj
+147 0 obj
+<<
+/S /GoTo
+/D [623 0 R /XYZ 67.0 579.866 null]
+>>
+endobj
+149 0 obj
+<<
+/S /GoTo
+/D [623 0 R /XYZ 67.0 336.416 null]
+>>
+endobj
+151 0 obj
+<<
+/S /GoTo
+/D [623 0 R /XYZ 67.0 161.166 null]
+>>
+endobj
+153 0 obj
+<<
+/S /GoTo
+/D [625 0 R /XYZ 67.0 661.2 null]
+>>
+endobj
+155 0 obj
+<<
+/S /GoTo
+/D [625 0 R /XYZ 67.0 560.75 null]
+>>
+endobj
+157 0 obj
+<<
+/S /GoTo
+/D [627 0 R /XYZ 67.0 725.0 null]
+>>
+endobj
+159 0 obj
+<<
+/S /GoTo
+/D [627 0 R /XYZ 67.0 673.2 null]
+>>
+endobj
+161 0 obj
+<<
+/S /GoTo
+/D [629 0 R /XYZ 67.0 683.0 null]
+>>
+endobj
+163 0 obj
+<<
+/S /GoTo
+/D [629 0 R /XYZ 67.0 505.157 null]
+>>
+endobj
+165 0 obj
+<<
+/S /GoTo
+/D [629 0 R /XYZ 67.0 342.714 null]
+>>
+endobj
+167 0 obj
+<<
+/S /GoTo
+/D [629 0 R /XYZ 67.0 288.464 null]
+>>
+endobj
+169 0 obj
+<<
+/S /GoTo
+/D [629 0 R /XYZ 67.0 218.814 null]
+>>
+endobj
+171 0 obj
+<<
+/S /GoTo
+/D [629 0 R /XYZ 67.0 164.564 null]
+>>
+endobj
+173 0 obj
+<<
+/S /GoTo
+/D [631 0 R /XYZ 67.0 725.0 null]
+>>
+endobj
+175 0 obj
+<<
+/S /GoTo
+/D [631 0 R /XYZ 67.0 579.219 null]
+>>
+endobj
+177 0 obj
+<<
+/S /GoTo
+/D [631 0 R /XYZ 67.0 460.307 null]
+>>
+endobj
+179 0 obj
+<<
+/S /GoTo
+/D [631 0 R /XYZ 67.0 354.126 null]
+>>
+endobj
+181 0 obj
+<<
+/S /GoTo
+/D [631 0 R /XYZ 67.0 247.945 null]
+>>
+endobj
+183 0 obj
+<<
+/S /GoTo
+/D [631 0 R /XYZ 67.0 141.764 null]
+>>
+endobj
+185 0 obj
+<<
+/S /GoTo
+/D [633 0 R /XYZ 67.0 670.869 null]
+>>
+endobj
+187 0 obj
+<<
+/S /GoTo
+/D [633 0 R /XYZ 67.0 549.288 null]
+>>
+endobj
+189 0 obj
+<<
+/S /GoTo
+/D [633 0 R /XYZ 67.0 154.114 null]
+>>
+endobj
+191 0 obj
+<<
+/S /GoTo
+/D [635 0 R /XYZ 67.0 613.935 null]
+>>
+endobj
+193 0 obj
+<<
+/S /GoTo
+/D [635 0 R /XYZ 67.0 466.892 null]
+>>
+endobj
+195 0 obj
+<<
+/S /GoTo
+/D [635 0 R /XYZ 67.0 350.649 null]
+>>
+endobj
+197 0 obj
+<<
+/S /GoTo
+/D [635 0 R /XYZ 67.0 216.337 null]
+>>
+endobj
+199 0 obj
+<<
+/S /GoTo
+/D [637 0 R /XYZ 67.0 692.0 null]
+>>
+endobj
+201 0 obj
+<<
+/S /GoTo
+/D [637 0 R /XYZ 67.0 194.978 null]
+>>
+endobj
+203 0 obj
+<<
+/S /GoTo
+/D [639 0 R /XYZ 67.0 658.138 null]
+>>
+endobj
+208 0 obj
+<<
+/S /GoTo
+/D [639 0 R /XYZ 67.0 551.957 null]
+>>
+endobj
+210 0 obj
+<<
+/S /GoTo
+/D [639 0 R /XYZ 67.0 445.776 null]
+>>
+endobj
+212 0 obj
+<<
+/S /GoTo
+/D [639 0 R /XYZ 67.0 354.995 null]
+>>
+endobj
+214 0 obj
+<<
+/S /GoTo
+/D [639 0 R /XYZ 67.0 218.014 null]
+>>
+endobj
+216 0 obj
+<<
+/S /GoTo
+/D [641 0 R /XYZ 67.0 725.0 null]
+>>
+endobj
+218 0 obj
+<<
+/S /GoTo
+/D [641 0 R /XYZ 67.0 594.619 null]
+>>
+endobj
+220 0 obj
+<<
+/S /GoTo
+/D [641 0 R /XYZ 67.0 491.107 null]
+>>
+endobj
+222 0 obj
+<<
+/S /GoTo
+/D [641 0 R /XYZ 67.0 217.992 null]
+>>
+endobj
+224 0 obj
+<<
+/S /GoTo
+/D [641 0 R /XYZ 67.0 127.211 null]
+>>
+endobj
+226 0 obj
+<<
+/S /GoTo
+/D [643 0 R /XYZ 67.0 580.935 null]
+>>
+endobj
+228 0 obj
+<<
+/S /GoTo
+/D [643 0 R /XYZ 67.0 325.42 null]
+>>
+endobj
+230 0 obj
+<<
+/S /GoTo
+/D [643 0 R /XYZ 67.0 203.839 null]
+>>
+endobj
+232 0 obj
+<<
+/S /GoTo
+/D [645 0 R /XYZ 67.0 725.0 null]
+>>
+endobj
+234 0 obj
+<<
+/S /GoTo
+/D [645 0 R /XYZ 67.0 572.885 null]
+>>
+endobj
+236 0 obj
+<<
+/S /GoTo
+/D [645 0 R /XYZ 67.0 369.042 null]
+>>
+endobj
+238 0 obj
+<<
+/S /GoTo
+/D [645 0 R /XYZ 67.0 265.53 null]
+>>
+endobj
+240 0 obj
+<<
+/S /GoTo
+/D [645 0 R /XYZ 67.0 128.549 null]
+>>
+endobj
+242 0 obj
+<<
+/S /GoTo
+/D [647 0 R /XYZ 67.0 653.269 null]
+>>
+endobj
+244 0 obj
+<<
+/S /GoTo
+/D [647 0 R /XYZ 67.0 562.488 null]
+>>
+endobj
+246 0 obj
+<<
+/S /GoTo
+/D [647 0 R /XYZ 67.0 366.373 null]
+>>
+endobj
+248 0 obj
+<<
+/S /GoTo
+/D [647 0 R /XYZ 67.0 185.658 null]
+>>
+endobj
+250 0 obj
+<<
+/S /GoTo
+/D [649 0 R /XYZ 67.0 725.0 null]
+>>
+endobj
+252 0 obj
+<<
+/S /GoTo
+/D [649 0 R /XYZ 67.0 602.55 null]
+>>
+endobj
+254 0 obj
+<<
+/S /GoTo
+/D [649 0 R /XYZ 67.0 548.3 null]
+>>
+endobj
+256 0 obj
+<<
+/S /GoTo
+/D [649 0 R /XYZ 67.0 360.719 null]
+>>
+endobj
+258 0 obj
+<<
+/S /GoTo
+/D [649 0 R /XYZ 67.0 219.338 null]
+>>
+endobj
+260 0 obj
+<<
+/S /GoTo
+/D [649 0 R /XYZ 67.0 128.557 null]
+>>
+endobj
+262 0 obj
+<<
+/S /GoTo
+/D [651 0 R /XYZ 67.0 604.869 null]
+>>
+endobj
+264 0 obj
+<<
+/S /GoTo
+/D [651 0 R /XYZ 67.0 483.288 null]
+>>
+endobj
+266 0 obj
+<<
+/S /GoTo
+/D [651 0 R /XYZ 67.0 357.307 null]
+>>
+endobj
+268 0 obj
+<<
+/S /GoTo
+/D [651 0 R /XYZ 67.0 215.926 null]
+>>
+endobj
+270 0 obj
+<<
+/S /GoTo
+/D [653 0 R /XYZ 67.0 725.0 null]
+>>
+endobj
+272 0 obj
+<<
+/S /GoTo
+/D [653 0 R /XYZ 67.0 610.019 null]
+>>
+endobj
+274 0 obj
+<<
+/S /GoTo
+/D [653 0 R /XYZ 67.0 468.638 null]
+>>
+endobj
+276 0 obj
+<<
+/S /GoTo
+/D [653 0 R /XYZ 67.0 327.257 null]
+>>
+endobj
+278 0 obj
+<<
+/S /GoTo
+/D [653 0 R /XYZ 67.0 201.276 null]
+>>
+endobj
+280 0 obj
+<<
+/S /GoTo
+/D [655 0 R /XYZ 67.0 725.0 null]
+>>
+endobj
+282 0 obj
+<<
+/S /GoTo
+/D [655 0 R /XYZ 67.0 610.019 null]
+>>
+endobj
+284 0 obj
+<<
+/S /GoTo
+/D [655 0 R /XYZ 67.0 519.238 null]
+>>
+endobj
+286 0 obj
+<<
+/S /GoTo
+/D [655 0 R /XYZ 67.0 318.602 null]
+>>
+endobj
+288 0 obj
+<<
+/S /GoTo
+/D [655 0 R /XYZ 67.0 202.359 null]
+>>
+endobj
+290 0 obj
+<<
+/S /GoTo
+/D [657 0 R /XYZ 67.0 725.0 null]
+>>
+endobj
+295 0 obj
+<<
+/S /GoTo
+/D [657 0 R /XYZ 67.0 629.819 null]
+>>
+endobj
+297 0 obj
+<<
+/S /GoTo
+/D [657 0 R /XYZ 67.0 539.038 null]
+>>
+endobj
+299 0 obj
+<<
+/S /GoTo
+/D [657 0 R /XYZ 67.0 432.857 null]
+>>
+endobj
+301 0 obj
+<<
+/S /GoTo
+/D [657 0 R /XYZ 67.0 326.676 null]
+>>
+endobj
+303 0 obj
+<<
+/S /GoTo
+/D [657 0 R /XYZ 67.0 220.495 null]
+>>
+endobj
+305 0 obj
+<<
+/S /GoTo
+/D [657 0 R /XYZ 67.0 129.714 null]
+>>
+endobj
+307 0 obj
+<<
+/S /GoTo
+/D [659 0 R /XYZ 67.0 655.469 null]
+>>
+endobj
+309 0 obj
+<<
+/S /GoTo
+/D [659 0 R /XYZ 67.0 564.688 null]
+>>
+endobj
+311 0 obj
+<<
+/S /GoTo
+/D [659 0 R /XYZ 67.0 311.576 null]
+>>
+endobj
+313 0 obj
+<<
+/S /GoTo
+/D [659 0 R /XYZ 67.0 208.064 null]
+>>
+endobj
+315 0 obj
+<<
+/S /GoTo
+/D [661 0 R /XYZ 67.0 725.0 null]
+>>
+endobj
+317 0 obj
+<<
+/S /GoTo
+/D [661 0 R /XYZ 67.0 629.819 null]
+>>
+endobj
+319 0 obj
+<<
+/S /GoTo
+/D [668 0 R /XYZ 67.0 725.0 null]
+>>
+endobj
+321 0 obj
+<<
+/S /GoTo
+/D [668 0 R /XYZ 67.0 299.607 null]
+>>
+endobj
+323 0 obj
+<<
+/S /GoTo
+/D [668 0 R /XYZ 67.0 245.357 null]
+>>
+endobj
+325 0 obj
+<<
+/S /GoTo
+/D [668 0 R /XYZ 67.0 191.107 null]
+>>
+endobj
+327 0 obj
+<<
+/S /GoTo
+/D [668 0 R /XYZ 67.0 121.457 null]
+>>
+endobj
+329 0 obj
+<<
+/S /GoTo
+/D [670 0 R /XYZ 67.0 630.4 null]
+>>
+endobj
+331 0 obj
+<<
+/S /GoTo
+/D [670 0 R /XYZ 67.0 560.75 null]
+>>
+endobj
+333 0 obj
+<<
+/S /GoTo
+/D [670 0 R /XYZ 67.0 506.5 null]
+>>
+endobj
+335 0 obj
+<<
+/S /GoTo
+/D [670 0 R /XYZ 67.0 452.25 null]
+>>
+endobj
+337 0 obj
+<<
+/S /GoTo
+/D [670 0 R /XYZ 67.0 239.6 null]
+>>
+endobj
+339 0 obj
+<<
+/S /GoTo
+/D [670 0 R /XYZ 67.0 154.55 null]
+>>
+endobj
+341 0 obj
+<<
+/S /GoTo
+/D [675 0 R /XYZ 67.0 725.0 null]
+>>
+endobj
+343 0 obj
+<<
+/S /GoTo
+/D [675 0 R /XYZ 67.0 681.75 null]
+>>
+endobj
+345 0 obj
+<<
+/S /GoTo
+/D [675 0 R /XYZ 67.0 612.1 null]
+>>
+endobj
+347 0 obj
+<<
+/S /GoTo
+/D [675 0 R /XYZ 67.0 542.45 null]
+>>
+endobj
+349 0 obj
+<<
+/S /GoTo
+/D [675 0 R /XYZ 67.0 472.8 null]
+>>
+endobj
+351 0 obj
+<<
+/S /GoTo
+/D [675 0 R /XYZ 67.0 418.55 null]
+>>
+endobj
+353 0 obj
+<<
+/S /GoTo
+/D [675 0 R /XYZ 67.0 348.9 null]
+>>
+endobj
+355 0 obj
+<<
+/S /GoTo
+/D [675 0 R /XYZ 67.0 279.25 null]
+>>
+endobj
+357 0 obj
+<<
+/S /GoTo
+/D [675 0 R /XYZ 67.0 209.6 null]
+>>
+endobj
+359 0 obj
+<<
+/S /GoTo
+/D [675 0 R /XYZ 67.0 155.35 null]
+>>
+endobj
+361 0 obj
+<<
+/S /GoTo
+/D [677 0 R /XYZ 67.0 725.0 null]
+>>
+endobj
+363 0 obj
+<<
+/S /GoTo
+/D [677 0 R /XYZ 67.0 635.55 null]
+>>
+endobj
+365 0 obj
+<<
+/S /GoTo
+/D [677 0 R /XYZ 67.0 581.3 null]
+>>
+endobj
+367 0 obj
+<<
+/S /GoTo
+/D [677 0 R /XYZ 67.0 450.05 null]
+>>
+endobj
+369 0 obj
+<<
+/S /GoTo
+/D [677 0 R /XYZ 67.0 349.6 null]
+>>
+endobj
+371 0 obj
+<<
+/S /GoTo
+/D [677 0 R /XYZ 67.0 295.35 null]
+>>
+endobj
+373 0 obj
+<<
+/S /GoTo
+/D [677 0 R /XYZ 67.0 225.7 null]
+>>
+endobj
+375 0 obj
+<<
+/S /GoTo
+/D [677 0 R /XYZ 67.0 171.45 null]
+>>
+endobj
+377 0 obj
+<<
+/S /GoTo
+/D [677 0 R /XYZ 67.0 117.2 null]
+>>
+endobj
+382 0 obj
+<<
+/S /GoTo
+/D [681 0 R /XYZ 67.0 725.0 null]
+>>
+endobj
+384 0 obj
+<<
+/S /GoTo
+/D [681 0 R /XYZ 67.0 380.6 null]
+>>
+endobj
+386 0 obj
+<<
+/S /GoTo
+/D [683 0 R /XYZ 67.0 502.483 null]
+>>
+endobj
+388 0 obj
+<<
+/S /GoTo
+/D [683 0 R /XYZ 67.0 240.368 null]
+>>
+endobj
+390 0 obj
+<<
+/S /GoTo
+/D [685 0 R /XYZ 67.0 725.0 null]
+>>
+endobj
+392 0 obj
+<<
+/S /GoTo
+/D [685 0 R /XYZ 67.0 170.854 null]
+>>
+endobj
+394 0 obj
+<<
+/S /GoTo
+/D [687 0 R /XYZ 67.0 587.738 null]
+>>
+endobj
+396 0 obj
+<<
+/S /GoTo
+/D [687 0 R /XYZ 67.0 233.368 null]
+>>
+endobj
+398 0 obj
+<<
+/S /GoTo
+/D [689 0 R /XYZ 67.0 254.2 null]
+>>
+endobj
+400 0 obj
+<<
+/S /GoTo
+/D [689 0 R /XYZ 67.0 128.219 null]
+>>
+endobj
+402 0 obj
+<<
+/S /GoTo
+/D [691 0 R /XYZ 67.0 600.469 null]
+>>
+endobj
+404 0 obj
+<<
+/S /GoTo
+/D [691 0 R /XYZ 67.0 280.564 null]
+>>
+endobj
+406 0 obj
+<<
+/S /GoTo
+/D [693 0 R /XYZ 67.0 503.611 null]
+>>
+endobj
+408 0 obj
+<<
+/S /GoTo
+/D [693 0 R /XYZ 67.0 229.906 null]
+>>
+endobj
+410 0 obj
+<<
+/S /GoTo
+/D [695 0 R /XYZ 67.0 480.8 null]
+>>
+endobj
+412 0 obj
+<<
+/S /GoTo
+/D [695 0 R /XYZ 67.0 222.819 null]
+>>
+endobj
+414 0 obj
+<<
+/S /GoTo
+/D [700 0 R /XYZ 67.0 707.4 null]
+>>
+endobj
+416 0 obj
+<<
+/S /GoTo
+/D [700 0 R /XYZ 67.0 515.419 null]
+>>
+endobj
+418 0 obj
+<<
+/S /GoTo
+/D [700 0 R /XYZ 67.0 326.107 null]
+>>
+endobj
+420 0 obj
+<<
+/S /GoTo
+/D [702 0 R /XYZ 67.0 725.0 null]
+>>
+endobj
+422 0 obj
+<<
+/S /GoTo
+/D [702 0 R /XYZ 67.0 497.819 null]
+>>
+endobj
+424 0 obj
+<<
+/S /GoTo
+/D [702 0 R /XYZ 67.0 336.638 null]
+>>
+endobj
+426 0 obj
+<<
+/S /GoTo
+/D [704 0 R /XYZ 67.0 692.0 null]
+>>
+endobj
+428 0 obj
+<<
+/S /GoTo
+/D [704 0 R /XYZ 67.0 500.019 null]
+>>
+endobj
+430 0 obj
+<<
+/S /GoTo
+/D [704 0 R /XYZ 67.0 295.307 null]
+>>
+endobj
+432 0 obj
+<<
+/S /GoTo
+/D [706 0 R /XYZ 67.0 652.666 null]
+>>
+endobj
+434 0 obj
+<<
+/S /GoTo
+/D [706 0 R /XYZ 67.0 460.685 null]
+>>
+endobj
+436 0 obj
+<<
+/S /GoTo
+/D [706 0 R /XYZ 67.0 271.373 null]
+>>
+endobj
+438 0 obj
+<<
+/S /GoTo
+/D [708 0 R /XYZ 67.0 725.0 null]
+>>
+endobj
+440 0 obj
+<<
+/S /GoTo
+/D [708 0 R /XYZ 67.0 528.619 null]
+>>
+endobj
+442 0 obj
+<<
+/S /GoTo
+/D [708 0 R /XYZ 67.0 321.238 null]
+>>
+endobj
+444 0 obj
+<<
+/S /GoTo
+/D [708 0 R /XYZ 67.0 160.057 null]
+>>
+endobj
+446 0 obj
+<<
+/S /GoTo
+/D [710 0 R /XYZ 67.0 635.669 null]
+>>
+endobj
+448 0 obj
+<<
+/S /GoTo
+/D [710 0 R /XYZ 67.0 280.888 null]
+>>
+endobj
+450 0 obj
+<<
+/S /GoTo
+/D [712 0 R /XYZ 67.0 725.0 null]
+>>
+endobj
+452 0 obj
+<<
+/S /GoTo
+/D [712 0 R /XYZ 67.0 472.357 null]
+>>
+endobj
+454 0 obj
+<<
+/S /GoTo
+/D [712 0 R /XYZ 67.0 239.445 null]
+>>
+endobj
+456 0 obj
+<<
+/S /GoTo
+/D [714 0 R /XYZ 67.0 634.338 null]
+>>
+endobj
+458 0 obj
+<<
+/S /GoTo
+/D [714 0 R /XYZ 67.0 335.64 null]
+>>
+endobj
+460 0 obj
+<<
+/S /GoTo
+/D [716 0 R /XYZ 67.0 676.6 null]
+>>
+endobj
+462 0 obj
+<<
+/S /GoTo
+/D [716 0 R /XYZ 67.0 469.219 null]
+>>
+endobj
+464 0 obj
+<<
+/S /GoTo
+/D [716 0 R /XYZ 67.0 220.976 null]
+>>
+endobj
+469 0 obj
+<<
+/S /GoTo
+/D [718 0 R /XYZ 67.0 659.0 null]
+>>
+endobj
+471 0 obj
+<<
+/S /GoTo
+/D [720 0 R /XYZ 67.0 725.0 null]
+>>
+endobj
+473 0 obj
+<<
+/S /GoTo
+/D [720 0 R /XYZ 67.0 657.8 null]
+>>
+endobj
+475 0 obj
+<<
+/S /GoTo
+/D [720 0 R /XYZ 67.0 493.157 null]
+>>
+endobj
+477 0 obj
+<<
+/S /GoTo
+/D [720 0 R /XYZ 67.0 328.514 null]
+>>
+endobj
+479 0 obj
+<<
+/S /GoTo
+/D [720 0 R /XYZ 67.0 176.602 null]
+>>
+endobj
+481 0 obj
+<<
+/S /GoTo
+/D [722 0 R /XYZ 67.0 725.0 null]
+>>
+endobj
+483 0 obj
+<<
+/S /GoTo
+/D [722 0 R /XYZ 67.0 627.619 null]
+>>
+endobj
+485 0 obj
+<<
+/S /GoTo
+/D [722 0 R /XYZ 67.0 344.911 null]
+>>
+endobj
+487 0 obj
+<<
+/S /GoTo
+/D [722 0 R /XYZ 67.0 236.53 null]
+>>
+endobj
+489 0 obj
+<<
+/S /GoTo
+/D [724 0 R /XYZ 67.0 440.166 null]
+>>
+endobj
+491 0 obj
+<<
+/S /GoTo
+/D [724 0 R /XYZ 67.0 331.785 null]
+>>
+endobj
+493 0 obj
+<<
+/S /GoTo
+/D [724 0 R /XYZ 67.0 223.404 null]
+>>
+endobj
+495 0 obj
+<<
+/S /GoTo
+/D [726 0 R /XYZ 67.0 692.0 null]
+>>
+endobj
+497 0 obj
+<<
+/S /GoTo
+/D [726 0 R /XYZ 67.0 385.619 null]
+>>
+endobj
+499 0 obj
+<<
+/S /GoTo
+/D [726 0 R /XYZ 67.0 261.838 null]
+>>
+endobj
+501 0 obj
+<<
+/S /GoTo
+/D [730 0 R /XYZ 67.0 608.4 null]
+>>
+endobj
+503 0 obj
+<<
+/S /GoTo
+/D [730 0 R /XYZ 67.0 443.757 null]
+>>
+endobj
+505 0 obj
+<<
+/S /GoTo
+/D [730 0 R /XYZ 67.0 132.976 null]
+>>
+endobj
+507 0 obj
+<<
+/S /GoTo
+/D [732 0 R /XYZ 67.0 545.411 null]
+>>
+endobj
+509 0 obj
+<<
+/S /GoTo
+/D [732 0 R /XYZ 67.0 313.772 null]
+>>
+endobj
+511 0 obj
+<<
+/S /GoTo
+/D [732 0 R /XYZ 67.0 123.991 null]
+>>
+endobj
+513 0 obj
+<<
+/S /GoTo
+/D [734 0 R /XYZ 67.0 450.869 null]
+>>
+endobj
+515 0 obj
+<<
+/S /GoTo
+/D [734 0 R /XYZ 67.0 298.957 null]
+>>
+endobj
+517 0 obj
+<<
+/S /GoTo
+/D [736 0 R /XYZ 67.0 725.0 null]
+>>
+endobj
+519 0 obj
+<<
+/S /GoTo
+/D [738 0 R /XYZ 67.0 725.0 null]
+>>
+endobj
+521 0 obj
+<<
+/S /GoTo
+/D [740 0 R /XYZ 67.0 725.0 null]
+>>
+endobj
+523 0 obj
+<<
+/S /GoTo
+/D [740 0 R /XYZ 67.0 688.6 null]
+>>
+endobj
+xref
+0 751
+0000000000 65535 f
+0000452429 00000 n
+0000453263 00000 n
+0000453313 00000 n
+0000000015 00000 n
+0000000071 00000 n
+0000001248 00000 n
+0000103319 00000 n
+0000103439 00000 n
+0000103534 00000 n
+0000103708 00000 n
+0000453520 00000 n
+0000103845 00000 n
+0000453585 00000 n
+0000103981 00000 n
+0000453650 00000 n
+0000104117 00000 n
+0000453716 00000 n
+0000104253 00000 n
+0000453781 00000 n
+0000104387 00000 n
+0000453846 00000 n
+0000104523 00000 n
+0000453912 00000 n
+0000104659 00000 n
+0000453977 00000 n
+0000104795 00000 n
+0000454042 00000 n
+0000104930 00000 n
+0000454108 00000 n
+0000105065 00000 n
+0000107073 00000 n
+0000107196 00000 n
+0000107518 00000 n
+0000454173 00000 n
+0000107652 00000 n
+0000454238 00000 n
+0000107786 00000 n
+0000454304 00000 n
+0000107919 00000 n
+0000454369 00000 n
+0000108054 00000 n
+0000454434 00000 n
+0000108186 00000 n
+0000454501 00000 n
+0000108318 00000 n
+0000454566 00000 n
+0000108450 00000 n
+0000454632 00000 n
+0000108582 00000 n
+0000454697 00000 n
+0000108714 00000 n
+0000454764 00000 n
+0000108846 00000 n
+0000454831 00000 n
+0000108978 00000 n
+0000454898 00000 n
+0000109110 00000 n
+0000454965 00000 n
+0000109242 00000 n
+0000455030 00000 n
+0000109374 00000 n
+0000455096 00000 n
+0000109506 00000 n
+0000455161 00000 n
+0000109640 00000 n
+0000455226 00000 n
+0000109772 00000 n
+0000455291 00000 n
+0000109904 00000 n
+0000455356 00000 n
+0000110036 00000 n
+0000455422 00000 n
+0000110168 00000 n
+0000455487 00000 n
+0000110300 00000 n
+0000455553 00000 n
+0000110432 00000 n
+0000455618 00000 n
+0000110564 00000 n
+0000455684 00000 n
+0000110696 00000 n
+0000455749 00000 n
+0000110828 00000 n
+0000455816 00000 n
+0000110960 00000 n
+0000455883 00000 n
+0000111092 00000 n
+0000455950 00000 n
+0000111224 00000 n
+0000456017 00000 n
+0000111356 00000 n
+0000456082 00000 n
+0000111488 00000 n
+0000456148 00000 n
+0000111620 00000 n
+0000456213 00000 n
+0000111752 00000 n
+0000456278 00000 n
+0000111884 00000 n
+0000456344 00000 n
+0000112017 00000 n
+0000456410 00000 n
+0000112151 00000 n
+0000456476 00000 n
+0000112285 00000 n
+0000456543 00000 n
+0000112419 00000 n
+0000456609 00000 n
+0000112553 00000 n
+0000456677 00000 n
+0000112687 00000 n
+0000456745 00000 n
+0000112821 00000 n
+0000456813 00000 n
+0000112954 00000 n
+0000456881 00000 n
+0000113086 00000 n
+0000115077 00000 n
+0000115203 00000 n
+0000115560 00000 n
+0000456949 00000 n
+0000115694 00000 n
+0000457017 00000 n
+0000115828 00000 n
+0000457085 00000 n
+0000115962 00000 n
+0000457151 00000 n
+0000116096 00000 n
+0000457219 00000 n
+0000116232 00000 n
+0000457287 00000 n
+0000116366 00000 n
+0000457355 00000 n
+0000116500 00000 n
+0000457423 00000 n
+0000116634 00000 n
+0000457491 00000 n
+0000116768 00000 n
+0000457559 00000 n
+0000116902 00000 n
+0000457625 00000 n
+0000117036 00000 n
+0000457693 00000 n
+0000117170 00000 n
+0000457759 00000 n
+0000117307 00000 n
+0000457825 00000 n
+0000117443 00000 n
+0000457893 00000 n
+0000117579 00000 n
+0000457961 00000 n
+0000117715 00000 n
+0000458029 00000 n
+0000117851 00000 n
+0000458095 00000 n
+0000117987 00000 n
+0000458162 00000 n
+0000118124 00000 n
+0000458228 00000 n
+0000118258 00000 n
+0000458294 00000 n
+0000118392 00000 n
+0000458360 00000 n
+0000118526 00000 n
+0000458428 00000 n
+0000118660 00000 n
+0000458496 00000 n
+0000118794 00000 n
+0000458564 00000 n
+0000118928 00000 n
+0000458632 00000 n
+0000119062 00000 n
+0000458700 00000 n
+0000119196 00000 n
+0000458766 00000 n
+0000119330 00000 n
+0000458834 00000 n
+0000119464 00000 n
+0000458902 00000 n
+0000119598 00000 n
+0000458970 00000 n
+0000119732 00000 n
+0000459038 00000 n
+0000119866 00000 n
+0000459106 00000 n
+0000120000 00000 n
+0000459174 00000 n
+0000120134 00000 n
+0000459242 00000 n
+0000120268 00000 n
+0000459310 00000 n
+0000120402 00000 n
+0000459378 00000 n
+0000120536 00000 n
+0000459446 00000 n
+0000120670 00000 n
+0000459514 00000 n
+0000120804 00000 n
+0000459582 00000 n
+0000120938 00000 n
+0000459648 00000 n
+0000121071 00000 n
+0000459716 00000 n
+0000121203 00000 n
+0000122952 00000 n
+0000123078 00000 n
+0000123435 00000 n
+0000459784 00000 n
+0000123569 00000 n
+0000459852 00000 n
+0000123703 00000 n
+0000459920 00000 n
+0000123837 00000 n
+0000459988 00000 n
+0000123971 00000 n
+0000460056 00000 n
+0000124105 00000 n
+0000460122 00000 n
+0000124239 00000 n
+0000460190 00000 n
+0000124373 00000 n
+0000460258 00000 n
+0000124507 00000 n
+0000460326 00000 n
+0000124641 00000 n
+0000460394 00000 n
+0000124775 00000 n
+0000460462 00000 n
+0000124909 00000 n
+0000460529 00000 n
+0000125043 00000 n
+0000460597 00000 n
+0000125177 00000 n
+0000460663 00000 n
+0000125311 00000 n
+0000460731 00000 n
+0000125445 00000 n
+0000460799 00000 n
+0000125579 00000 n
+0000460866 00000 n
+0000125713 00000 n
+0000460934 00000 n
+0000125847 00000 n
+0000461002 00000 n
+0000125981 00000 n
+0000461070 00000 n
+0000126115 00000 n
+0000461138 00000 n
+0000126249 00000 n
+0000461206 00000 n
+0000126383 00000 n
+0000461272 00000 n
+0000126517 00000 n
+0000461339 00000 n
+0000126651 00000 n
+0000461405 00000 n
+0000126785 00000 n
+0000461473 00000 n
+0000126919 00000 n
+0000461541 00000 n
+0000127053 00000 n
+0000461609 00000 n
+0000127187 00000 n
+0000461677 00000 n
+0000127321 00000 n
+0000461745 00000 n
+0000127455 00000 n
+0000461813 00000 n
+0000127589 00000 n
+0000461881 00000 n
+0000127723 00000 n
+0000461947 00000 n
+0000127857 00000 n
+0000462015 00000 n
+0000127991 00000 n
+0000462083 00000 n
+0000128125 00000 n
+0000462151 00000 n
+0000128259 00000 n
+0000462219 00000 n
+0000128393 00000 n
+0000462285 00000 n
+0000128527 00000 n
+0000462353 00000 n
+0000128661 00000 n
+0000462421 00000 n
+0000128795 00000 n
+0000462489 00000 n
+0000128928 00000 n
+0000462557 00000 n
+0000129060 00000 n
+0000130872 00000 n
+0000130998 00000 n
+0000131355 00000 n
+0000462623 00000 n
+0000131489 00000 n
+0000462691 00000 n
+0000131623 00000 n
+0000462759 00000 n
+0000131757 00000 n
+0000462827 00000 n
+0000131891 00000 n
+0000462895 00000 n
+0000132025 00000 n
+0000462963 00000 n
+0000132159 00000 n
+0000463031 00000 n
+0000132293 00000 n
+0000463099 00000 n
+0000132427 00000 n
+0000463167 00000 n
+0000132561 00000 n
+0000463235 00000 n
+0000132695 00000 n
+0000463303 00000 n
+0000132829 00000 n
+0000463369 00000 n
+0000132963 00000 n
+0000463437 00000 n
+0000133100 00000 n
+0000463503 00000 n
+0000133234 00000 n
+0000463571 00000 n
+0000133368 00000 n
+0000463639 00000 n
+0000133502 00000 n
+0000463707 00000 n
+0000133638 00000 n
+0000463775 00000 n
+0000133772 00000 n
+0000463841 00000 n
+0000133906 00000 n
+0000463908 00000 n
+0000134040 00000 n
+0000463974 00000 n
+0000134174 00000 n
+0000464041 00000 n
+0000134308 00000 n
+0000464107 00000 n
+0000134442 00000 n
+0000464174 00000 n
+0000134576 00000 n
+0000464240 00000 n
+0000134710 00000 n
+0000464307 00000 n
+0000134844 00000 n
+0000464373 00000 n
+0000134978 00000 n
+0000464440 00000 n
+0000135112 00000 n
+0000464506 00000 n
+0000135246 00000 n
+0000464573 00000 n
+0000135380 00000 n
+0000464639 00000 n
+0000135514 00000 n
+0000464706 00000 n
+0000135648 00000 n
+0000464772 00000 n
+0000135782 00000 n
+0000464839 00000 n
+0000135916 00000 n
+0000464905 00000 n
+0000136050 00000 n
+0000464972 00000 n
+0000136184 00000 n
+0000465038 00000 n
+0000136318 00000 n
+0000465105 00000 n
+0000136452 00000 n
+0000465171 00000 n
+0000136586 00000 n
+0000465238 00000 n
+0000136720 00000 n
+0000465304 00000 n
+0000136853 00000 n
+0000465371 00000 n
+0000136985 00000 n
+0000138779 00000 n
+0000138905 00000 n
+0000139262 00000 n
+0000465437 00000 n
+0000139399 00000 n
+0000465503 00000 n
+0000139533 00000 n
+0000465569 00000 n
+0000139669 00000 n
+0000465637 00000 n
+0000139803 00000 n
+0000465705 00000 n
+0000139937 00000 n
+0000465771 00000 n
+0000140071 00000 n
+0000465839 00000 n
+0000140205 00000 n
+0000465907 00000 n
+0000140339 00000 n
+0000465975 00000 n
+0000140473 00000 n
+0000466041 00000 n
+0000140607 00000 n
+0000466109 00000 n
+0000140741 00000 n
+0000466177 00000 n
+0000140875 00000 n
+0000466245 00000 n
+0000141009 00000 n
+0000466313 00000 n
+0000141143 00000 n
+0000466381 00000 n
+0000141277 00000 n
+0000466447 00000 n
+0000141411 00000 n
+0000466515 00000 n
+0000141545 00000 n
+0000466581 00000 n
+0000141679 00000 n
+0000466649 00000 n
+0000141813 00000 n
+0000466717 00000 n
+0000141947 00000 n
+0000466783 00000 n
+0000142081 00000 n
+0000466851 00000 n
+0000142215 00000 n
+0000466919 00000 n
+0000142349 00000 n
+0000466985 00000 n
+0000142483 00000 n
+0000467053 00000 n
+0000142619 00000 n
+0000467121 00000 n
+0000142753 00000 n
+0000467189 00000 n
+0000142887 00000 n
+0000467257 00000 n
+0000143021 00000 n
+0000467325 00000 n
+0000143155 00000 n
+0000467391 00000 n
+0000143289 00000 n
+0000467459 00000 n
+0000143423 00000 n
+0000467527 00000 n
+0000143557 00000 n
+0000467595 00000 n
+0000143691 00000 n
+0000467663 00000 n
+0000143825 00000 n
+0000467731 00000 n
+0000143959 00000 n
+0000467797 00000 n
+0000144093 00000 n
+0000467865 00000 n
+0000144227 00000 n
+0000467933 00000 n
+0000144361 00000 n
+0000468001 00000 n
+0000144495 00000 n
+0000468068 00000 n
+0000144629 00000 n
+0000468134 00000 n
+0000144762 00000 n
+0000468202 00000 n
+0000144894 00000 n
+0000146305 00000 n
+0000146431 00000 n
+0000146676 00000 n
+0000468270 00000 n
+0000146810 00000 n
+0000468336 00000 n
+0000146947 00000 n
+0000468402 00000 n
+0000147081 00000 n
+0000468468 00000 n
+0000147215 00000 n
+0000468536 00000 n
+0000147349 00000 n
+0000468604 00000 n
+0000147483 00000 n
+0000468672 00000 n
+0000147617 00000 n
+0000468738 00000 n
+0000147751 00000 n
+0000468806 00000 n
+0000147885 00000 n
+0000468874 00000 n
+0000148019 00000 n
+0000468941 00000 n
+0000148153 00000 n
+0000469009 00000 n
+0000148287 00000 n
+0000469077 00000 n
+0000148421 00000 n
+0000469145 00000 n
+0000148555 00000 n
+0000469211 00000 n
+0000148689 00000 n
+0000469279 00000 n
+0000148823 00000 n
+0000469347 00000 n
+0000148957 00000 n
+0000469413 00000 n
+0000149091 00000 n
+0000469481 00000 n
+0000149225 00000 n
+0000469549 00000 n
+0000149359 00000 n
+0000469617 00000 n
+0000149493 00000 n
+0000469685 00000 n
+0000149627 00000 n
+0000469753 00000 n
+0000149761 00000 n
+0000469821 00000 n
+0000149895 00000 n
+0000469889 00000 n
+0000150032 00000 n
+0000469955 00000 n
+0000150169 00000 n
+0000470021 00000 n
+0000150306 00000 n
+0000470087 00000 n
+0000150442 00000 n
+0000153591 00000 n
+0000153701 00000 n
+0000156757 00000 n
+0000156867 00000 n
+0000158081 00000 n
+0000158191 00000 n
+0000159906 00000 n
+0000160032 00000 n
+0000160061 00000 n
+0000160254 00000 n
+0000162326 00000 n
+0000162452 00000 n
+0000162513 00000 n
+0000162686 00000 n
+0000162857 00000 n
+0000163041 00000 n
+0000163224 00000 n
+0000163403 00000 n
+0000165664 00000 n
+0000165774 00000 n
+0000168039 00000 n
+0000168165 00000 n
+0000168202 00000 n
+0000168341 00000 n
+0000168459 00000 n
+0000168533 00000 n
+0000168669 00000 n
+0000168787 00000 n
+0000168861 00000 n
+0000171836 00000 n
+0000171946 00000 n
+0000174058 00000 n
+0000174168 00000 n
+0000176588 00000 n
+0000176698 00000 n
+0000178749 00000 n
+0000178859 00000 n
+0000181693 00000 n
+0000181803 00000 n
+0000183958 00000 n
+0000184068 00000 n
+0000186554 00000 n
+0000186664 00000 n
+0000189416 00000 n
+0000189526 00000 n
+0000191022 00000 n
+0000191132 00000 n
+0000193399 00000 n
+0000193509 00000 n
+0000196053 00000 n
+0000196179 00000 n
+0000196232 00000 n
+0000196443 00000 n
+0000196651 00000 n
+0000196842 00000 n
+0000197031 00000 n
+0000199387 00000 n
+0000199497 00000 n
+0000201711 00000 n
+0000201821 00000 n
+0000203761 00000 n
+0000203871 00000 n
+0000206176 00000 n
+0000206286 00000 n
+0000208948 00000 n
+0000209058 00000 n
+0000210862 00000 n
+0000210972 00000 n
+0000213238 00000 n
+0000213348 00000 n
+0000216202 00000 n
+0000216312 00000 n
+0000218611 00000 n
+0000218721 00000 n
+0000220917 00000 n
+0000221043 00000 n
+0000221072 00000 n
+0000221273 00000 n
+0000223244 00000 n
+0000223354 00000 n
+0000225516 00000 n
+0000225626 00000 n
+0000227950 00000 n
+0000228076 00000 n
+0000228113 00000 n
+0000228286 00000 n
+0000228470 00000 n
+0000230564 00000 n
+0000230674 00000 n
+0000232750 00000 n
+0000232860 00000 n
+0000235131 00000 n
+0000235241 00000 n
+0000235751 00000 n
+0000235861 00000 n
+0000237247 00000 n
+0000329702 00000 n
+0000329812 00000 n
+0000332744 00000 n
+0000332854 00000 n
+0000334570 00000 n
+0000334680 00000 n
+0000337147 00000 n
+0000337257 00000 n
+0000339498 00000 n
+0000339608 00000 n
+0000341544 00000 n
+0000341654 00000 n
+0000343935 00000 n
+0000344045 00000 n
+0000346382 00000 n
+0000346492 00000 n
+0000349413 00000 n
+0000349523 00000 n
+0000351627 00000 n
+0000351737 00000 n
+0000353957 00000 n
+0000354067 00000 n
+0000356513 00000 n
+0000356623 00000 n
+0000358765 00000 n
+0000358875 00000 n
+0000360666 00000 n
+0000360776 00000 n
+0000362770 00000 n
+0000362880 00000 n
+0000364709 00000 n
+0000364819 00000 n
+0000366130 00000 n
+0000366240 00000 n
+0000368081 00000 n
+0000368191 00000 n
+0000369597 00000 n
+0000369707 00000 n
+0000371926 00000 n
+0000372036 00000 n
+0000374142 00000 n
+0000374252 00000 n
+0000375310 00000 n
+0000375436 00000 n
+0000375473 00000 n
+0000375652 00000 n
+0000375864 00000 n
+0000377925 00000 n
+0000378035 00000 n
+0000380454 00000 n
+0000380580 00000 n
+0000380617 00000 n
+0000380811 00000 n
+0000381004 00000 n
+0000382606 00000 n
+0000382716 00000 n
+0000384923 00000 n
+0000385033 00000 n
+0000385427 00000 n
+0000385537 00000 n
+0000388394 00000 n
+0000388504 00000 n
+0000390623 00000 n
+0000390733 00000 n
+0000393319 00000 n
+0000393429 00000 n
+0000395815 00000 n
+0000395925 00000 n
+0000398394 00000 n
+0000398504 00000 n
+0000401106 00000 n
+0000401216 00000 n
+0000403745 00000 n
+0000403855 00000 n
+0000405924 00000 n
+0000406050 00000 n
+0000406087 00000 n
+0000406283 00000 n
+0000406477 00000 n
+0000408433 00000 n
+0000408543 00000 n
+0000410519 00000 n
+0000410629 00000 n
+0000412918 00000 n
+0000413028 00000 n
+0000414925 00000 n
+0000415035 00000 n
+0000416746 00000 n
+0000416856 00000 n
+0000418611 00000 n
+0000418721 00000 n
+0000420630 00000 n
+0000420740 00000 n
+0000422739 00000 n
+0000422849 00000 n
+0000425210 00000 n
+0000425320 00000 n
+0000426426 00000 n
+0000426536 00000 n
+0000428328 00000 n
+0000428438 00000 n
+0000430859 00000 n
+0000430969 00000 n
+0000432796 00000 n
+0000432906 00000 n
+0000435307 00000 n
+0000435433 00000 n
+0000435462 00000 n
+0000435634 00000 n
+0000438409 00000 n
+0000438519 00000 n
+0000440325 00000 n
+0000440435 00000 n
+0000442970 00000 n
+0000443080 00000 n
+0000444457 00000 n
+0000444567 00000 n
+0000447284 00000 n
+0000447394 00000 n
+0000450583 00000 n
+0000450693 00000 n
+0000451427 00000 n
+0000451537 00000 n
+0000451650 00000 n
+0000451759 00000 n
+0000451875 00000 n
+0000451986 00000 n
+0000452100 00000 n
+0000452207 00000 n
+0000452319 00000 n
+trailer
+<<
+/Size 751
+/Root 2 0 R
+/Info 4 0 R
+>>
+startxref
+470153
+%%EOF
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
+"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
+<article>
+ <title><trademark class="registered">ModSecurity</trademark> Reference
+ Manual</title>
+
+ <articleinfo>
+ <releaseinfo>Version 2.5.11 (Nov 4, 2009)</releaseinfo>
+
+ <copyright>
+ <year>2004-2009</year>
+
+ <holder>Breach Security, Inc. (<ulink
+ url="http://www.breach.com">http://www.breach.com</ulink>)</holder>
+ </copyright>
+ </articleinfo>
+
+ <section id="introduction">
+ <title>Introduction</title>
+
+ <para>ModSecurity is a web application firewall (WAF). With over 70% of
+ attacks now carried out over the web application level, organisations need
+ all the help they can get in making their systems secure. WAFs are
+ deployed to establish an increased external security layer to detect
+ and/or prevent attacks before they reach web applications. ModSecurity
+ provides protection from a range of attacks against web applications and
+ allows for HTTP traffic monitoring and real-time analysis with little or
+ no changes to existing infrastructure.</para>
+
+ <section>
+ <title>HTTP Traffic Logging</title>
+
+ <para>Web servers are typically well-equipped to log traffic in a form
+ useful for marketing analyses, but fall short logging traffic to web
+ applications. In particular, most are not capable of logging the request
+ bodies. Your adversaries know this, and that is why most attacks are now
+ carried out via POST requests, rendering your systems blind. ModSecurity
+ makes full HTTP transaction logging possible, allowing complete requests
+ and responses to be logged. Its logging facilities also allow
+ fine-grained decisions to be made about exactly what is logged and when,
+ ensuring only the relevant data is recorded. As some of the request
+ and/or response may contain sensitive data in certain fields,
+ ModSecurity can be configured to mask these fields before they are
+ written to the audit log.</para>
+ </section>
+
+ <section>
+ <title>Real-Time Monitoring and Attack Detection</title>
+
+ <para>In addition to providing logging facilities, ModSecurity can
+ monitor the HTTP traffic in real time in order to detect attacks. In
+ this case, ModSecurity operates as a web intrusion detection tool,
+ allowing you to react to suspicious events that take place at your web
+ systems.</para>
+ </section>
+
+ <section>
+ <title>Attack Prevention and Just-in-time Patching</title>
+
+ <para>ModSecurity can also act immediately to prevent attacks from
+ reaching your web applications. There are three commonly used
+ approaches:</para>
+
+ <orderedlist continuation="restarts" inheritnum="ignore">
+ <listitem>
+ <para>Negative security model. A negative security model monitors
+ requests for anomalies, unusual behaviour, and common web
+ application attacks. It keeps anomaly scores for each request, IP
+ addresses, application sessions, and user accounts. Requests with
+ high anomaly scores are either logged or rejected altogether.</para>
+ </listitem>
+
+ <listitem>
+ <para>Positive security model. When a positive security model is
+ deployed, only requests that are known to be valid are accepted,
+ with everything else rejected. This model requires knownledge of the
+ web applications you are protecting. Therefore a positive security
+ model works best with applications that are heavily used but rarely
+ updated so that maintenance of the model is minimized.</para>
+ </listitem>
+
+ <listitem>
+ <para>Known weaknesses and vulnerabilities. Its rule language makes
+ ModSecurity an ideal external patching tool. External patching
+ (sometimes referred to as Virtual Patching) is about reducing the
+ window of opportunity. Time needed to patch application
+ vulnerabilities often runs to weeks in many organisations. With
+ ModSecurity, applications can be patched from the outside, without
+ touching the application source code (and even without any access to
+ it), making your systems secure until a proper patch is applied to
+ the application.</para>
+ </listitem>
+ </orderedlist>
+ </section>
+
+ <section>
+ <title>Flexible Rule Engine</title>
+
+ <para>A flexible rule engine sits in the heart of ModSecurity. It
+ implements the ModSecurity Rule Language, which is a specialised
+ programming language designed to work with HTTP transaction data. The
+ ModSecurity Rule Language is designed to be easy to use, yet flexible:
+ common operations are simple while complex operations are possible.
+ Certified ModSecurity Rules, included with ModSecurity, contain a
+ comprehensive set of rules that implement general-purpose hardening,
+ protocol validation and detection of common web application security
+ issues. Heavily commented, these rules can be used as a learning
+ tool.</para>
+ </section>
+
+ <section>
+ <title>Embedded-mode Deployment</title>
+
+ <para>ModSecurity is an embeddable web application firewall, which means
+ it can be deployed as part of your existing web server infrastructure
+ provided your web servers are Apache-based. This deployment method has
+ certain advantages:</para>
+
+ <orderedlist continuation="restarts" inheritnum="ignore">
+ <listitem>
+ <para>No changes to existing network. It only takes a few minutes to
+ add ModSecurity to your existing web servers. And because it was
+ designed to be completely passive by default, you are free to deploy
+ it incrementally and only use the features you need. It is equally
+ easy to remove or deactivate it if required.</para>
+ </listitem>
+
+ <listitem>
+ <para>No single point of failure. Unlike with network-based
+ deployments, you will not be introducing a new point of failure to
+ your system.</para>
+ </listitem>
+
+ <listitem>
+ <para>Implicit load balancing and scaling. Because it works embedded
+ in web servers, ModSecurity will automatically take advantage of the
+ additional load balancing and scalability features. You will not
+ need to think of load balancing and scaling unless your existing
+ system needs them.</para>
+ </listitem>
+
+ <listitem>
+ <para>Minimal overhead. Because it works from inside the web server
+ process there is no overhead for network communication and minimal
+ overhead in parsing and data exchange.</para>
+ </listitem>
+
+ <listitem>
+ <para>No problem with encrypted or compressed content. Many IDS
+ systems have difficulties analysing SSL traffic. This is not a
+ problem for ModSecurity because it is positioned to work when the
+ traffic is decrypted and decompressed.</para>
+ </listitem>
+ </orderedlist>
+ </section>
+
+ <section>
+ <title>Network-based Deployment</title>
+
+ <para>ModSecurity works equally well when deployed as part of an
+ Apache-based reverse proxy server, and many of our customers choose to
+ do so. In this scenario, one installation of ModSecurity can protect any
+ number of web servers (even the non-Apache ones).</para>
+ </section>
+
+ <section>
+ <title>Portability</title>
+
+ <para>ModSecurity is known to work well on a wide range of operating
+ systems. Our customers are successfully running it on Linux, Windows,
+ Solaris, FreeBSD, OpenBSD, NetBSD, AIX, Mac OS X, and HP-UX.</para>
+ </section>
+
+ <section id="licensing">
+ <title>Licensing</title>
+
+ <para>ModSecurity is available under two licenses. Users can choose to
+ use the software under the terms of the GNU General Public License
+ version 2 (licence text is included with the distribution), as an Open
+ Source / Free Software product. A range of commercial licenses is also
+ available, together with a range of commercial support contracts. For
+ more information on commercial licensing please contact Breach
+ Security.</para>
+
+ <note>
+ <para>ModSecurity, mod_security, ModSecurity Pro, and ModSecurity Core
+ Rules are trademarks or registered trademarks of Breach Security,
+ Inc.</para>
+ </note>
+ </section>
+ </section>
+
+ <section>
+ <title><trademark>ModSecurity Core Rules</trademark></title>
+
+ <section>
+ <title>Overview</title>
+
+ <para>ModSecurity is a web application firewall engine that provides
+ very little protection on its own. In order to become useful,
+ ModSecurity must be configured with rules. In order to enable users to
+ take full advantage of ModSecurity out of the box, Breach Security, Inc.
+ is providing a free certified rule set for ModSecurity 2.x. Unlike
+ intrusion detection and prevention systems, which rely on signatures
+ specific to known vulnerabilities, the Core Rules provide generic
+ protection from unknown vulnerabilities often found in web applications,
+ which are in most cases custom coded. The Core Rules are heavily
+ commented to allow it to be used as a step-by-step deployment guide for
+ ModSecurity. The latest Core Rules can be found at the ModSecurity
+ website - <ulink
+ url="http://www.modsecurity.org/projects/rules/">http://www.modsecurity.org/projects/rules/</ulink>.</para>
+ </section>
+
+ <section>
+ <title>Core Rules Content</title>
+
+ <para>In order to provide generic web applications protection, the Core
+ Rules use the following techniques:</para>
+
+ <itemizedlist>
+ <listitem>
+ <para>HTTP protection - detecting violations of the HTTP protocol
+ and a locally defined usage policy.</para>
+ </listitem>
+
+ <listitem>
+ <para>Common Web Attacks Protection - detecting common web
+ application security attack.</para>
+ </listitem>
+
+ <listitem>
+ <para>Automation detection - Detecting bots, crawlers, scanners and
+ other surface malicious activity.</para>
+ </listitem>
+
+ <listitem>
+ <para>Trojan Protection - Detecting access to Trojans horses.</para>
+ </listitem>
+
+ <listitem>
+ <para>Error Hiding - Disguising error messages sent by the
+ server.</para>
+ </listitem>
+ </itemizedlist>
+ </section>
+ </section>
+
+ <section id="installation">
+ <title>Installation</title>
+
+ <para>ModSecurity installation requirements:</para>
+
+ <orderedlist continuation="restarts" inheritnum="ignore">
+ <listitem>
+ <para>ModSecurity 2.x works only with Apache 2.0.x or higher. Version
+ 2.2.x is highly recommended.</para>
+ </listitem>
+
+ <listitem>
+ <para>Make sure you have <literal
+ moreinfo="none">mod_unique_id</literal> installed.</para>
+
+ <para>mod_unique_id is packaged with Apache httpd.</para>
+ </listitem>
+
+ <listitem>
+ <para>libapr and libapr-util</para>
+
+ <para><ulink type=""
+ url="http://apr.apache.org/">http://apr.apache.org/</ulink></para>
+ </listitem>
+
+ <listitem>
+ <para>libpcre</para>
+
+ <para><ulink type=""
+ url="http://www.pcre.org/">http://www.pcre.org/</ulink></para>
+ </listitem>
+
+ <listitem>
+ <para>libxml2</para>
+
+ <para><ulink type=""
+ url="http://xmlsoft.org/downloads.html">http://xmlsoft.org/downloads.html</ulink></para>
+ </listitem>
+
+ <listitem>
+ <para>liblua v5.1.x</para>
+
+ <para>This library is optional and only needed if you will be using
+ the new Lua engine.</para>
+
+ <para><ulink type=""
+ url="http://www.lua.org/download.html">http://www.lua.org/download.html</ulink></para>
+
+ <para>Note that ModSecurity requires the dynamic libraries. These are
+ not built by default in the source distribution, so the binary
+ distribution is recommended.</para>
+ </listitem>
+
+ <listitem>
+ <para>libcurl v7.15.1 or higher</para>
+
+ <para>If you will be using the ModSecurity Log Collector (mlogc) to
+ send audit logs to a central repository, then you will also need the
+ curl library.</para>
+
+ <para><ulink type=""
+ url="http://curl.haxx.se/libcurl/">http://curl.haxx.se/libcurl/</ulink></para>
+ <note>
+ <para>Many have had issues with libcurl linked with the GnuTLS
+ library for SSL/TLS support. It is recommended that the
+ openssl library be used for SSL/TLS support in libcurl.</para>
+ </note>
+
+ </listitem>
+ </orderedlist>
+
+ <para>ModSecurity installation consists of the following steps:</para>
+
+ <orderedlist continuation="restarts" inheritnum="ignore">
+ <listitem>
+ <para>Stop Apache httpd</para>
+ </listitem>
+
+ <listitem>
+ <para>Unpack the ModSecurity archive</para>
+ </listitem>
+
+ <listitem>
+ <para>Building differs for UNIX (or UNIX-like) operating systems and
+ Windows.</para>
+
+ <itemizedlist>
+ <listitem>
+ <para>UNIX</para>
+
+ <orderedlist>
+ <listitem>
+ <para>Run the configure script to generate a Makefile.
+ Typically no options are needed.</para>
+
+ <para><literal>./configure</literal></para>
+
+ <para>Options are available for more customization (use
+ <literal>./configure --help</literal> for a full list), but
+ typically you will only need to specify the location of the
+ <literal>apxs</literal> command installed by Apache httpd with
+ the <literal>--with-apxs</literal> option.</para>
+
+ <para><literal>./configure
+ --with-apxs=/path/to/httpd-2.x.y/bin/apxs</literal></para>
+
+ <note>
+ <para>There are certain configure options that are meant for
+ debugging an other development use. If enabled, these
+ options can substantially impact performance. These options
+ include all <literal>--debug-*</literal> options as well as
+ the <literal>--enable-performance-measurements</literal>
+ options.</para>
+ </note>
+ </listitem>
+
+ <listitem>
+ <para>Compile with: <literal>make</literal></para>
+ </listitem>
+
+ <listitem>
+ <para>Optionally test with: <literal>make
+ test</literal></para>
+
+ <note>
+ <para>This is step is still a bit experimental. If you have
+ problems, please send the full output and error from the
+ build to the support list. Most common issues are related to
+ not finding the required headers and/or libraries.</para>
+ </note>
+ </listitem>
+
+ <listitem>
+ <para>Optionally build the ModSecurity Log Collector with:
+ <literal>make mlogc</literal></para>
+ </listitem>
+
+ <listitem>
+ <para>Optionally install <literal>mlogc</literal>: Review the
+ <literal>INSTALL</literal> file included in the
+ apache2/mlogc-src directory in the distribution.</para>
+ </listitem>
+
+ <listitem>
+ <para>Install the ModSecurity module with: <literal>make
+ install</literal></para>
+ </listitem>
+ </orderedlist>
+ </listitem>
+
+ <listitem>
+ <para>Windows (MS VC++ 8)</para>
+
+ <orderedlist>
+ <listitem>
+ <para>Edit <literal>Makefile.win</literal> to configure the
+ Apache base and library paths.</para>
+ </listitem>
+
+ <listitem>
+ <para>Compile with: <literal>nmake -f
+ Makefile.win</literal></para>
+ </listitem>
+
+ <listitem>
+ <para>Install the ModSecurity module with: <literal>nmake -f
+ Makefile.win install</literal></para>
+ </listitem>
+
+ <listitem>
+ <para>Copy the <literal>libxml2.dll</literal> and
+ <literal>lua5.1.dll</literal> to the Apache
+ <literal>bin</literal> directory. Alternatively you can follow
+ the step below for using LoadFile to load these
+ libraries.</para>
+ </listitem>
+ </orderedlist>
+ </listitem>
+ </itemizedlist>
+ </listitem>
+
+ <listitem>
+ <para>Edit the main Apache httpd config file (usually
+ <literal>httpd.conf</literal>)</para>
+
+ <para>On UNIX (and Windows if you did not copy the DLLs as stated
+ above) you must load libxml2 and lua5.1 before ModSecurity with
+ something like this:</para>
+
+ <para><programlisting>LoadFile /usr/lib/libxml2.so
+LoadFile /usr/lib/liblua5.1.so</programlisting></para>
+
+ <para>Load the ModSecurity module with:<programlisting>LoadModule security2_module modules/mod_security2.so</programlisting></para>
+ </listitem>
+
+ <listitem>
+ <para>Configure ModSecurity</para>
+ </listitem>
+
+ <listitem>
+ <para>Start Apache httpd</para>
+ </listitem>
+
+ <listitem>
+ <para>You should now have ModSecurity 2.x up and running.</para>
+ </listitem>
+ </orderedlist>
+
+ <note>
+ <para>If you have compiled Apache yourself you might experience problems
+ compiling ModSecurity against PCRE. This is because Apache bundles PCRE
+ but this library is also typically provided by the operating system. I
+ would expect most (all) vendor-packaged Apache distributions to be
+ configured to use an external PCRE library (so this should not be a
+ problem).</para>
+
+ <para>You want to avoid Apache using the bundled PCRE library and
+ ModSecurity linking against the one provided by the operating system.
+ The easiest way to do this is to compile Apache against the PCRE library
+ provided by the operating system (or you can compile it against the
+ latest PCRE version you downloaded from the main PCRE distribution
+ site). You can do this at configure time using the<literal
+ moreinfo="none"> --with-pcre</literal> switch. If you are not in a
+ position to recompile Apache, then, to compile ModSecurity successfully,
+ you'd still need to have access to the bundled PCRE headers (they are
+ available only in the Apache source code) and change the include path
+ for ModSecurity (as you did in step 7 above) to point to them (via the
+ <literal>--with-pcre</literal> ModSecurity configure option).</para>
+
+ <para>Do note that if your Apache is using an external PCRE library you
+ can compile ModSecurity with <literal
+ moreinfo="none">WITH_PCRE_STUDY</literal> defined,which would possibly
+ give you a slight performance edge in regular expression
+ processing.</para>
+
+ <para>Non-gcc compilers may have problems running out-of-the-box as the
+ current build system was designed around the gcc compiler and some
+ compiler/linker flags may differ. To use a non-gcc compiler you may need
+ some manual Makefile tweaks if issues cannot be solved by exporting
+ custom CFLAGS and CPPFLAGS environment variables.</para>
+
+ <para>If you are upgrading from ModSecurity 1.x, please refer to the
+ migration matrix at <ulink type=""
+ url="http://www.modsecurity.org/documentation/ModSecurity-Migration-Matrix.pdf">http://www.modsecurity.org/documentation/ModSecurity-Migration-Matrix.pdf</ulink></para>
+ </note>
+ </section>
+
+ <section id="configuration-directives">
+ <title>Configuration Directives</title>
+
+ <para>The following section outlines all of the ModSecurity directives.
+ Most of the ModSecurity directives can be used inside the various Apache
+ Scope Directives such as <literal>VirtualHost</literal>,
+ <literal>Location</literal>, <literal>LocationMatch</literal>,
+ <literal>Directory</literal>, etc... There are others, however, that can
+ only be used once in the main configuration file. This information is
+ specified in the Scope sections below. The first version to use a given
+ directive is given in the Version sections below.</para>
+
+ <para>These rules, along with the Core rules files, should be contained is
+ files outside of the httpd.conf file and called up with Apache "Include"
+ directives. This allows for easier updating/migration of the rules. If you
+ create your own custom rules that you would like to use with the Core
+ rules, you should create a file called -
+ <filename>modsecurity_crs_15_customrules.conf</filename> and place it in
+ the same directory as the Core rules files. By using this file name, your
+ custom rules will be called up after the standard ModSecurity Core rules
+ configuration file but before the other Core rules. This allows your rules
+ to be evaluated first which can be useful if you need to implement
+ specific "allow" rules or to correct any false positives in the Core rules
+ as they are applied to your site.</para>
+
+ <note>
+ <para>It is highly encouraged that you do not edit the Core rules files
+ themselves but rather place all changes (such as
+ <literal>SecRuleRemoveByID</literal>, etc...) in your custom rules file.
+ This will allow for easier upgrading as newer Core rules are released by
+ Breach Security on the ModSecurity website.</para>
+ </note>
+
+ <section>
+ <title><literal>SecAction</literal></title>
+
+ <para><emphasis>Description:</emphasis> Unconditionally processes the
+ action list it receives as the first and only parameter. It accepts one
+ parameter, the syntax of which is identical to the third parameter
+ of<literal moreinfo="none"> SecRule</literal>.</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal moreinfo="none">SecAction
+ action1,action2,action3</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecAction
+ nolog,phase:1,initcol:RESOURCE=%{REQUEST_FILENAME}</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> Any</para>
+
+ <para><emphasis>Scope:</emphasis> Any</para>
+
+ <para><emphasis>Version:</emphasis> 2.0.0</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> None</para>
+
+ <para>SecAction is best used when you unconditionally execute an action.
+ This is explicit triggering whereas the normal Actions are conditional
+ based on data inspection of the request/response. This is a useful
+ directive when you want to run certain actions such as
+ <literal>initcol</literal> to initialize collections.</para>
+ </section>
+
+ <section>
+ <title><literal>SecArgumentSeparator</literal></title>
+
+ <para><emphasis>Description:</emphasis> Specifies which character to use
+ as separator for<literal moreinfo="none">
+ application/x-www-form-urlencoded</literal> content. Defaults to
+ <literal moreinfo="none">&</literal>. Applications are sometimes
+ (very rarely) written to use a semicolon (<literal
+ moreinfo="none">;</literal>).</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal
+ moreinfo="none">SecArgumentSeparator character</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecArgumentSeparator ;</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> Any</para>
+
+ <para><emphasis>Scope:</emphasis> Main</para>
+
+ <para><emphasis>Version:</emphasis> 2.0.0</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> None</para>
+
+ <para>This directive is needed if a backend web application is using a
+ non-standard argument separator. If this directive is not set properly
+ for each web application, then ModSecurity will not be able to parse the
+ arguments appropriately and the effectiveness of the rule matching will
+ be significantly decreased.</para>
+ </section>
+
+ <section>
+ <title><literal>SecAuditEngine</literal></title>
+
+ <para><emphasis>Description:</emphasis> Configures the audit logging
+ engine.</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal
+ moreinfo="none">SecAuditEngine On|Off|RelevantOnly</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecAuditEngine On</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> N/A</para>
+
+ <para><emphasis>Scope:</emphasis> Any</para>
+
+ <para><emphasis>Version:</emphasis> 2.0.0</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> Can be set/changed with
+ the "<literal>ctl</literal>" action for the current transaction.</para>
+
+ <para>Example: The following example shows the various audit directives
+ used together.</para>
+
+ <programlisting format="linespecific"><emphasis>SecAuditEngine RelevantOnly</emphasis>
+SecAuditLog logs/audit/audit.log
+SecAuditLogParts ABCFHZ
+SecAuditLogType concurrent
+SecAuditLogStorageDir logs/audit
+<emphasis>SecAuditLogRelevantStatus ^(?:5|4\d[^4])</emphasis></programlisting>
+
+ <para>Possible values are:</para>
+
+ <itemizedlist>
+ <listitem>
+ <para><literal moreinfo="none">On</literal> - log all transactions
+ by default.</para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">Off</literal> - do not log
+ transactions by default.</para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">RelevantOnly</literal> - by default
+ only log transactions that have triggered a warning or an error, or
+ have a status code that is considered to be relevant (see<literal
+ moreinfo="none"> SecAuditLogRelevantStatus</literal>).</para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
+ <section>
+ <title><literal>SecAuditLog</literal></title>
+
+ <para><emphasis>Description:</emphasis> Defines the path to the main
+ audit log file.</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal moreinfo="none">SecAuditLog
+ /path/to/auditlog</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecAuditLog
+ /usr/local/apache/logs/audit.log</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> N/A</para>
+
+ <para><emphasis>Scope:</emphasis> Any</para>
+
+ <para><emphasis>Version:</emphasis> 2.0.0</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> This file is open on
+ startup when the server typically still runs as<emphasis>
+ root</emphasis>. You should not allow non-root users to have write
+ privileges for this file or for the directory it is stored in..</para>
+
+ <para>This file will be used to store the audit log entries if serial
+ audit logging format is used. If concurrent audit logging format is used
+ this file will be used as an index, and contain a record of all audit
+ log files created. If you are planning to use Concurrent audit logging
+ and sending your audit log data off to a remote Console host or
+ commercial ModSecurity Management Appliance, then you will need to
+ configure and use the ModSecurity Log Collector (mlogc) and use the
+ following format for the audit log:</para>
+
+ <para><programlisting format="linespecific">SecAuditLog "|/path/to/mlogc /path/to/mlogc.conf"</programlisting></para>
+ </section>
+
+ <section>
+ <title><literal>SecAuditLog2</literal></title>
+
+ <para><emphasis>Description:</emphasis> Defines the path to the
+ secondary audit log index file when concurrent logging is enabled. See
+ <literal moreinfo="none">SecAuditLog2</literal> for more details.</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal moreinfo="none">SecAuditLog2
+ /path/to/auditlog2</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecAuditLog2
+ /usr/local/apache/logs/audit2.log</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> N/A</para>
+
+ <para><emphasis>Scope:</emphasis> Any</para>
+
+ <para><emphasis>Version:</emphasis> 2.1.2</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> A main audit log must be
+ defined via <literal moreinfo="none">SecAuditLog</literal> before this
+ directive may be used. Additionally, this log is only used for
+ replicating the main audit log index file when concurrent audit logging
+ is used. It will <emphasis>not</emphasis> be used for non-concurrent
+ audit logging.</para>
+ </section>
+
+ <section>
+ <title><literal>SecAuditLogDirMode</literal></title>
+
+ <para><emphasis>Description:</emphasis> Configures the mode
+ (permissions) of any directories created for concurrent audit logs using
+ an octal mode (as used in chmod). See <literal
+ moreinfo="none">SecAuditLogFileMode</literal> for controlling the mode
+ of audit log files.</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal
+ moreinfo="none">SecAuditLogDirMode octal_mode|"default"</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecAuditLogDirMode 02750</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> N/A</para>
+
+ <para><emphasis>Scope:</emphasis> Any</para>
+
+ <para><emphasis>Version:</emphasis> 2.5.10</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> This feature is not
+ available on operating systems not supporting octal file modes. The
+ default mode (0600) only grants read/write access to the account writing
+ the file. If access from another account is needed (using mpm-itk is a
+ good example), then this directive may be required. However, use this
+ directive with caution to avoid exposing potentially sensitive data to
+ unauthorized users. Using the value "default" will revert back to the
+ default setting.</para>
+
+ <note>
+ <para>The process umask may still limit the mode if it is being more
+ restrictive than the mode set using this directive.</para>
+ </note>
+ </section>
+
+ <section>
+ <title><literal>SecAuditLogFileMode</literal></title>
+
+ <para><emphasis>Description:</emphasis> Configures the mode
+ (permissions) of any files created for concurrent audit logs using an
+ octal mode (as used in chmod). See <literal
+ moreinfo="none">SecAuditLogDirMode</literal> for controlling the mode of
+ created audit log directories.</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal
+ moreinfo="none">SecAuditLogFileMode
+ octal_mode|"default"</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecAuditLogFileMode 00640</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> N/A</para>
+
+ <para><emphasis>Scope:</emphasis> Any</para>
+
+ <para><emphasis>Version:</emphasis> 2.5.10</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> This feature is not
+ available on operating systems not supporting octal file modes. The
+ default mode (0600) only grants read/write access to the account writing
+ the file. If access from another account is needed (using mpm-itk is a
+ good example), then this directive may be required. However, use this
+ directive with caution to avoid exposing potentially sensitive data to
+ unauthorized users. Using the value "default" will revert back to the
+ default setting.</para>
+
+ <note>
+ <para>The process umask may still limit the mode if it is being more
+ restrictive than the mode set using this directive.</para>
+ </note>
+ </section>
+
+ <section>
+ <title><literal>SecAuditLogParts</literal></title>
+
+ <para><emphasis>Description:</emphasis> Defines which part of each
+ transaction are going to be recorded in audit log. Each part is assigned
+ a single letter. If a letter appears in the list then the equivalent
+ part of each transactions will be recorded. See below for the list of
+ all parts.</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal
+ moreinfo="none">SecAuditLogParts PARTS</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecAuditLogParts ABCFHZ</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> N/A</para>
+
+ <para><emphasis>Scope:</emphasis> Any</para>
+
+ <para><emphasis>Version:</emphasis> 2.0.0</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> At this time ModSecurity
+ does not log response bodies of stock Apache responses (e.g. <literal
+ moreinfo="none">404</literal>), or the <literal
+ moreinfo="none">Server</literal> and <literal
+ moreinfo="none">Date</literal> response headers.</para>
+
+ <para>Default:<literal moreinfo="none"> ABCFHZ</literal>.</para>
+
+ <note>
+ <para>Please refer to the ModSecurity Data Formats document for a
+ detailed description of every available part.</para>
+ </note>
+
+ <para>Available audit log parts:</para>
+
+ <itemizedlist>
+ <listitem>
+ <para><literal moreinfo="none">A</literal> - audit log header
+ (mandatory)</para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">B</literal> - request headers</para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">C</literal> - request body (present
+ only if the request body exists and ModSecurity is configured to
+ intercept it)</para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">D</literal> - RESERVED for
+ intermediary response headers, not implemented yet.</para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">E</literal> - intermediary response
+ body (present only if ModSecurity is configured to intercept
+ response bodies, and if the audit log engine is configured to record
+ it). Intermediary response body is the same as the actual response
+ body unless ModSecurity intercepts the intermediary response body,
+ in which case the actual response body will contain the error
+ message (either the Apache default error message, or the
+ ErrorDocument page).</para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">F</literal> - final response headers
+ (excluding the Date and Server headers, which are always added by
+ Apache in the late stage of content delivery).</para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">G</literal> - RESERVED for the actual
+ response body, not implemented yet.</para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">H</literal> - audit log
+ trailer</para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">I</literal> - This part is a
+ replacement for part C. It will log the same data as C in all cases
+ except when <literal moreinfo="none">multipart/form-data</literal>
+ encoding in used. In this case it will log a fake <literal
+ moreinfo="none">application/x-www-form-urlencoded</literal> body
+ that contains the information about parameters but not about the
+ files. This is handy if you don't want to have (often large) files
+ stored in your audit logs.</para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">J</literal> - RESERVED. This part,
+ when implemented, will contain information about the files uploaded
+ using <literal>multipart/form-data</literal> encoding.</para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">K</literal> - This part contains a
+ full list of every rule that matched (one per line) in the order
+ they were matched. The rules are fully qualified and will thus show
+ inherited actions and default operators. Supported as of
+ v2.5.0</para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">Z</literal> - final boundary,
+ signifies the end of the entry (mandatory)</para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
+ <section>
+ <title><literal>SecAuditLogRelevantStatus</literal></title>
+
+ <para><emphasis>Description:</emphasis> Configures which response status
+ code is to be considered relevant for the purpose of audit
+ logging.</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal
+ moreinfo="none">SecAuditLogRelevantStatus REGEX</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecAuditLogRelevantStatus
+ ^(?:5|4\d[^4])</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> N/A</para>
+
+ <para><emphasis>Scope:</emphasis> Any</para>
+
+ <para><emphasis>Version:</emphasis> 2.0.0</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> Must have the
+ <literal>SecAuditEngine</literal> set to
+ <literal>RelevantOnly</literal>. The parameter is a regular
+ expression.</para>
+
+ <para>The main purpose of this directive is to allow you to configure
+ audit logging for only transactions that generate the specified HTTP
+ Response Status Code. This directive is often used to the decrease the
+ total size of the audit log file. Keep in mind that if this parameter is
+ used, then successful attacks that result in a 200 OK status code will
+ not be logged.</para>
+ </section>
+
+ <section>
+ <title><literal>SecAuditLogStorageDir</literal></title>
+
+ <para><emphasis>Description:</emphasis> Configures the storage directory
+ where concurrent audit log entries are to be stored.</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal
+ moreinfo="none">SecAuditLogStorageDir
+ /path/to/storage/dir</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecAuditLogStorageDir
+ /usr/local/apache/logs/audit</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> N/A</para>
+
+ <para><emphasis>Scope:</emphasis> Any</para>
+
+ <para><emphasis>Version:</emphasis> 2.0.0</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> SecAuditLogType must be
+ set to Concurrent. The directory must already be created before starting
+ Apache and it must be writable by the web server user as new files are
+ generated at runtime.</para>
+
+ <para>As with all logging mechanisms, ensure that you specify a file
+ system location that has adequate disk space and is not on the root
+ partition.</para>
+ </section>
+
+ <section>
+ <title><literal>SecAuditLogType</literal></title>
+
+ <para><emphasis>Description:</emphasis> Configures the type of audit
+ logging mechanism to be used.</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal
+ moreinfo="none">SecAuditLogType Serial|Concurrent</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecAuditLogType Serial</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> N/A</para>
+
+ <para><emphasis>Scope:</emphasis> Any</para>
+
+ <para><emphasis>Version:</emphasis> 2.0.0</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> Must specify
+ <literal>SecAuditLogStorageDir</literal> if you use concurrent
+ logging.</para>
+
+ <para>Possible values are:</para>
+
+ <orderedlist continuation="restarts" inheritnum="ignore">
+ <listitem>
+ <para><literal moreinfo="none">Serial</literal> - all audit log
+ entries will be stored in the main audit logging file. This is more
+ convenient for casual use but it is slower as only one audit log
+ entry can be written to the file at any one file.</para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">Concurrent</literal> - audit log
+ entries will be stored in separate files, one for each transaction.
+ Concurrent logging is the mode to use if you are going to send the
+ audit log data off to a remote ModSecurity Console host.</para>
+ </listitem>
+ </orderedlist>
+ </section>
+
+ <section>
+ <title><literal>SecCacheTransformations</literal>
+ (Deprecated/Experimental)</title>
+
+ <para><emphasis>Description:</emphasis> Controls caching of
+ transformations. Caching is off by default starting with 2.5.6, when it
+ was deprecated and downgraded back to experimental.</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal
+ moreinfo="none">SecCacheTransformations On|Off
+ [options]</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecCacheTransformations On
+ "minlen:64,maxlen:0"</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> N/A</para>
+
+ <para><emphasis>Scope:</emphasis> Any</para>
+
+ <para><emphasis>Version:</emphasis> 2.5.0</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> N/A</para>
+
+ <para>First parameter:</para>
+
+ <itemizedlist>
+ <listitem>
+ <para><literal moreinfo="none">On</literal> - cache transformations
+ (per transaction, per phase) allowing identical transformations to
+ be performed only once. (default)</para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">Off</literal> - do not cache any
+ transformations, forcing all transformations to be performed for
+ each rule executed.</para>
+ </listitem>
+ </itemizedlist>
+
+ <para>The following options are allowed (comma separated):</para>
+
+ <itemizedlist>
+ <listitem>
+ <para><literal moreinfo="none">incremental:on|off</literal> -
+ enabling this option will cache every transformation instead of just
+ the final transformation. (default: off)</para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">maxitems:N</literal> - do not allow
+ more than N transformations to be cached. The cache will then be
+ disabled. A zero value is interpreted as "unlimited". This option
+ may be useful to limit caching for a form with a large number of
+ ARGS. (default: 512)</para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">minlen:N</literal> - do not cache the
+ transformation if the value's length is less than N bytes. (default:
+ 32)</para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">maxlen:N</literal> - do not cache the
+ transformation if the value's length is more than N bytes. A zero
+ value is interpreted as "unlimited". (default: 1024)</para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
+ <section>
+ <title><literal>SecChrootDir</literal></title>
+
+ <para><emphasis>Description:</emphasis> Configures the directory path
+ that will be used to jail the web server process.</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal moreinfo="none">SecChrootDir
+ /path/to/chroot/dir</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecChrootDir /chroot</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> N/A</para>
+
+ <para><emphasis>Scope:</emphasis> Main</para>
+
+ <para><emphasis>Version:</emphasis> 2.0.0</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> This feature is not
+ available on Windows builds. The internal chroot functionality provided
+ by ModSecurity works great for simple setups. One example of a simple
+ setup is Apache serving static files only, or running scripts using
+ modules.builds. Some problems you might encounter with more complex
+ setups:</para>
+
+ <orderedlist>
+ <listitem>
+ <para>DNS lookups do not work (this is because this feature requires
+ a shared library that is loaded on demand, after chroot takes
+ place).</para>
+ </listitem>
+
+ <listitem>
+ <para>You cannot send email from PHP because it uses sendmail and
+ sendmail is outside the jail.</para>
+ </listitem>
+
+ <listitem>
+ <para>In some cases Apache graceful (reload) no longer works.</para>
+ </listitem>
+ </orderedlist>
+
+ <para>You should be aware that the internal chroot feature might not be
+ 100% reliable. Due to the large number of default and third-party
+ modules available for the Apache web server, it is not possible to
+ verify the internal chroot works reliably with all of them. A module,
+ working from within Apache, can do things that make it easy to break out
+ of the jail. In particular, if you are using any of the modules that
+ fork in the module initialisation phase (e.g.
+ <literal>mod_fastcgi</literal>, <literal>mod_fcgid</literal>,
+ <literal>mod_cgid</literal>), you are advised to examine each Apache
+ process and observe its current working directory, process root, and the
+ list of open files. Consider what your options are and make your own
+ decision.</para>
+ </section>
+
+ <section>
+ <title><literal>SecComponentSignature</literal></title>
+
+ <para><emphasis>Description</emphasis>: Appends component signature to
+ the ModSecurity signature.</para>
+
+ <para><emphasis>Syntax</emphasis>: <literal>SecComponentSignature
+ "COMPONENT_NAME/X.Y.Z (COMMENT)"</literal></para>
+
+ <para><emphasis>Example usage</emphasis>: <literal>SecComponentSignature
+ "Core Rules/1.2.3"</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> N/A</para>
+
+ <para><emphasis>Scope</emphasis>: Main</para>
+
+ <para><emphasis>Version</emphasis>: 2.5.0</para>
+
+ <para><emphasis>Dependencies/Notes</emphasis>: This directive should be
+ used to make the presence of significant ModSecurity components known.
+ The entire signature will be recorded in transaction audit log. It
+ should be used by ModSecurity module and rule set writers to make
+ debugging easier.</para>
+ </section>
+
+ <section>
+ <title><literal>SecContentInjection</literal></title>
+
+ <para><emphasis>Description:</emphasis> Enables content injection using
+ actions <literal>append</literal> and <literal>prepend</literal>.</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal>SecContentInjection
+ (On|Off)</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal>SecContentInjection
+ On</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> N/A</para>
+
+ <para><emphasis>Scope</emphasis>: Any</para>
+
+ <para><emphasis>Version</emphasis>: 2.5.0</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> N/A</para>
+ </section>
+
+ <section>
+ <title><literal>SecCookieFormat</literal></title>
+
+ <para><emphasis>Description:</emphasis> Selects the cookie format that
+ will be used in the current configuration context.</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal
+ moreinfo="none">SecCookieFormat 0|1</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecCookieFormat 0</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> N/A</para>
+
+ <para><emphasis>Scope:</emphasis> Any</para>
+
+ <para><emphasis>Version:</emphasis> 2.0.0</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> None</para>
+
+ <para>Possible values are:</para>
+
+ <itemizedlist>
+ <listitem>
+ <para><literal moreinfo="none">0</literal> - use version 0
+ (Netscape) cookies. This is what most applications use. It is the
+ default value.</para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">1</literal> - use version 1
+ cookies.</para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
+ <section>
+ <title><literal>SecDataDir</literal></title>
+
+ <para><emphasis>Description:</emphasis> Path where persistent data (e.g.
+ IP address data, session data, etc) is to be stored.</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal moreinfo="none">SecDataDir
+ /path/to/dir</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecDataDir /usr/local/apache/logs/data</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> N/A</para>
+
+ <para><emphasis>Scope:</emphasis> Main</para>
+
+ <para><emphasis>Dependencies/Notes: </emphasis> This directive is needed
+ when initcol, setsid an setuid are used. Must be writable by the web
+ server user.</para>
+ </section>
+
+ <section>
+ <title><literal>SecDebugLog</literal></title>
+
+ <para><emphasis>Description:</emphasis> Path to the ModSecurity debug
+ log file.</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal moreinfo="none">SecDebugLog
+ /path/to/modsec-debug.log</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecDebugLog
+ /usr/local/apache/logs/modsec-debug.log</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> N/A</para>
+
+ <para><emphasis>Scope:</emphasis> Any</para>
+
+ <para><emphasis>Version:</emphasis> 2.0.0</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> None</para>
+ </section>
+
+ <section>
+ <title><literal>SecDebugLogLevel</literal></title>
+
+ <para><emphasis>Description:</emphasis> Configures the verboseness of
+ the debug log data.</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal
+ moreinfo="none">SecDebugLogLevel 0|1|2|3|4|5|6|7|8|9</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecDebugLogLevel 4</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> N/A</para>
+
+ <para><emphasis>Scope:</emphasis> Any</para>
+
+ <para><emphasis>Version:</emphasis> 2.0.0</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> Levels <literal
+ moreinfo="none">1 - 3</literal> are always sent to the Apache error log.
+ Therefore you can always use level <literal moreinfo="none">0</literal>
+ as the default logging level in production. Level <literal
+ moreinfo="none">5</literal> is useful when debugging. It is not
+ advisable to use higher logging levels in production as excessive
+ logging can slow down server significantly.</para>
+
+ <para>Possible values are:</para>
+
+ <itemizedlist>
+ <listitem>
+ <para><literal moreinfo="none">0</literal> - no logging.</para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">1</literal> - errors (intercepted
+ requests) only.</para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">2</literal> - warnings.</para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">3</literal> - notices.</para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">4</literal> - details of how
+ transactions are handled.</para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">5</literal> - as above, but including
+ information about each piece of information handled.</para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">9</literal> - log everything,
+ including very detailed debugging information.</para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
+ <section>
+ <title><literal>SecDefaultAction</literal></title>
+
+ <para><emphasis>Description:</emphasis> Defines the default action to
+ take on a rule match.</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal
+ moreinfo="none">SecDefaultAction
+ action1,action2,action3</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecDefaultAction
+ log,auditlog,deny,status:403,phase:2</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> Any</para>
+
+ <para><emphasis>Scope:</emphasis> Any</para>
+
+ <para><emphasis>Version:</emphasis> 2.0.0</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> Rules following a
+ <literal>SecDefaultAction</literal> directive will inherit this setting
+ unless a specific action is specified for an individual rule or until
+ another <literal>SecDefaultAction</literal> is specified. Take special
+ note that in the logging disruptive actions are not allowed, but this
+ can inadvertently be inherited using a disruptive action in
+ <literal>SecDefaultAction</literal>.</para>
+
+ <para>The default value is minimal (differing from previous
+ versions):</para>
+
+ <programlisting format="linespecific">SecDefaultAction phase:2,log,auditlog,pass</programlisting>
+
+ <note>
+ <para><literal>SecDefaultAction</literal> must specify a disruptive
+ action and a processing phase and cannot contain metadata
+ actions.</para>
+ </note>
+
+ <warning>
+ <para><literal>SecDefaultAction</literal> is <emphasis>not</emphasis>
+ inherited across configuration contexts. (For an example of why this
+ may be a problem for you, read the following ModSecurity Blog entry
+ <ulink
+ url="http://blog.modsecurity.org/2008/07/modsecurity-tri.html">http://blog.modsecurity.org/2008/07/modsecurity-tri.html</ulink>).</para>
+ </warning>
+ </section>
+
+ <section>
+ <title><literal>SecGeoLookupDb</literal></title>
+
+ <para><emphasis>Description:</emphasis> Defines the path to the
+ geographical database file.</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal
+ moreinfo="none">SecGeoLookupDb /path/to/db</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecGeoLookupDb
+ /usr/local/geo/data/GeoLiteCity.dat</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> N/A</para>
+
+ <para><emphasis>Scope:</emphasis> Any</para>
+
+ <para><emphasis>Version:</emphasis> 2.5.0</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> Check out
+ <literal>maxmind.com</literal> for free database files.</para>
+ </section>
+
+ <section>
+ <title><literal>SecGuardianLog</literal></title>
+
+ <para><emphasis>Description:</emphasis> Configuration directive to use
+ the httpd-guardian script to monitor for Denial of Service (DoS)
+ attacks.</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal
+ moreinfo="none">SecGuardianLog |/path/to/httpd-guardian</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecGuardianLog
+ |/usr/local/apache/bin/httpd-guardian</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> N/A</para>
+
+ <para><emphasis>Scope:</emphasis> Main</para>
+
+ <para><emphasis>Version:</emphasis> 2.0.0</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> By default httpd-guardian
+ will defend against clients that send more than 120 requests in a
+ minute, or more than 360 requests in five minutes.</para>
+
+ <para>Since 1.9, ModSecurity supports a new directive, SecGuardianLog,
+ that is designed to send all access data to another program using the
+ piped logging feature. Since Apache is typically deployed in a
+ multi-process fashion, making information sharing difficult, the idea is
+ to deploy a single external process to observe all requests in a
+ stateful manner, providing additional protection.</para>
+
+ <para>Development of a state of the art external protection tool will be
+ a focus of subsequent ModSecurity releases. However, a fully functional
+ tool is already available as part of the <ulink type=""
+ url="http://www.apachesecurity.net/tools/">Apache httpd tools
+ project</ulink>. The tool is called httpd-guardian and can be used to
+ defend against Denial of Service attacks. It uses the blacklist tool
+ (from the same project) to interact with an iptables-based (Linux) or
+ pf-based (*BSD) firewall, dynamically blacklisting the offending IP
+ addresses. It can also interact with SnortSam (http://www.snortsam.net).
+ Assuming httpd-guardian is already configured (look into the source code
+ for the detailed instructions) you only need to add one line to your
+ Apache configuration to deploy it:</para>
+
+ <programlisting format="linespecific">SecGuardianLog |/path/to/httpd-guardian</programlisting>
+ </section>
+
+ <section>
+ <title><literal>SecMarker</literal></title>
+
+ <para><emphasis>Description:</emphasis> Adds a fixed rule marker in the
+ ruleset to be used as a target in a <literal>skipAfter</literal> action.
+ A <literal>SecMarker</literal> directive essentially creates a rule that
+ does nothing and whose only purpose it to carry the given ID.</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal moreinfo="none">SecMarker
+ ID</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecMarker 9999</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> Any</para>
+
+ <para><emphasis>Scope:</emphasis> Any</para>
+
+ <para><emphasis>Version:</emphasis> 2.5.0</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> None</para>
+
+ <para><programlisting format="linespecific">SecRule REQUEST_URI "^/$" \
+ "chain,t:none,t:urlDecode,t:lowercase,t:normalisePath,<emphasis>skipAfter:99</emphasis>"
+SecRule REMOTE_ADDR "^127\.0\.0\.1$" "chain"
+SecRule REQUEST_HEADERS:User-Agent \
+ "^Apache \(internal dummy connection\)$" "t:none"
+SecRule &REQUEST_HEADERS:Host "@eq 0" \
+ "deny,log,status:400,id:08,severity:4,msg:'Missing a Host Header'"
+SecRule &REQUEST_HEADERS:Accept "@eq 0" \
+ "log,deny,log,status:400,id:15,msg:'Request Missing an Accept Header'"
+<emphasis>
+SecMarker 99</emphasis></programlisting></para>
+ </section>
+
+ <section>
+ <title><literal>SecPdfProtect</literal></title>
+
+ <para><emphasis>Description:</emphasis> Enables the PDF XSS protection
+ functionality. Once enabled access to PDF files is tracked. Direct
+ access attempts are redirected to links that contain one-time tokens.
+ Requests with valid tokens are allowed through unmodified. Requests with
+ invalid tokens are also allowed through but with forced download of the
+ PDF files. This implementation uses response headers to detect PDF files
+ and thus can be used with dynamically generated PDF files that do not
+ have the <filename>.pdf</filename> extension in the request URI.</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal
+ moreinfo="none">SecPdfProtect On|Off</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecPdfProtect On</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> N/A</para>
+
+ <para><emphasis>Scope:</emphasis> Any</para>
+
+ <para><emphasis>Version:</emphasis> 2.5.0</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> None</para>
+ </section>
+
+ <section>
+ <title><literal>SecPdfProtectMethod</literal></title>
+
+ <para><emphasis>Description:</emphasis> Configure desired protection
+ method to be used when requests for PDF files are detected. Possible
+ values are <literal>TokenRedirection</literal> and
+ <literal>ForcedDownload</literal>. The token redirection approach will
+ attempt to redirect with tokens where possible. This allows PDF files to
+ continue to be opened inline but only works for GET requests. Forced
+ download always causes PDF files to be delivered as opaque binaries and
+ attachments. The latter will always be used for non-GET requests. Forced
+ download is considered to be more secure but may cause usability
+ problems for users ("This PDF won't open anymore!").</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal
+ moreinfo="none">SecPdfProtectMethod method</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecPdfProtectMethod TokenRedirection</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> N/A</para>
+
+ <para><emphasis>Scope:</emphasis> Any</para>
+
+ <para><emphasis>Version:</emphasis> 2.5.0</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> None</para>
+
+ <para><emphasis>Default:</emphasis>
+ <literal>TokenRedirection</literal></para>
+ </section>
+
+ <section>
+ <title><literal>SecPdfProtectSecret</literal></title>
+
+ <para><emphasis>Description:</emphasis> Defines the secret that will be
+ used to construct one-time tokens. You should use a reasonably long
+ value for the secret (e.g. 16 characters is good). Once selected the
+ secret should not be changed as it will break the tokens that were sent
+ prior to change. But it's not a big deal even if you change it. It will
+ just force download of PDF files with tokens that were issued in the
+ last few seconds.</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal
+ moreinfo="none">SecPdfProtectSecret secret</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecPdfProtectSecret
+ MyRandomSecretString</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> N/A</para>
+
+ <para><emphasis>Scope:</emphasis> Any</para>
+
+ <para><emphasis>Version:</emphasis> 2.5.0</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> None</para>
+ </section>
+
+ <section>
+ <title><literal>SecPdfProtectTimeout</literal></title>
+
+ <para><emphasis>Description:</emphasis> Defines the token timeout. After
+ token expires it can no longer be used to allow access to PDF file.
+ Request will be allowed through but the PDF will be delivered as
+ attachment.</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal
+ moreinfo="none">SecPdfProtectTimeout timeout</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecPdfProtectTimeout 10</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> N/A</para>
+
+ <para><emphasis>Scope:</emphasis> Any</para>
+
+ <para><emphasis>Version:</emphasis> 2.5.0</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> None</para>
+
+ <para><emphasis>Default:</emphasis> <literal>10</literal></para>
+ </section>
+
+ <section>
+ <title><literal>SecPdfProtectTokenName</literal></title>
+
+ <para><emphasis>Description:</emphasis> Defines the name of the token.
+ The only reason you would want to change the name of the token is if you
+ wanted to hide the fact you are running ModSecurity. It's a good reason
+ but it won't really help as the adversary can look into the algorithm
+ used for PDF protection and figure it out anyway. It does raise the bar
+ slightly so go ahead if you want to.</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal
+ moreinfo="none">SecPdfProtectTokenName name</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecPdfProtectTokenName PDFTOKEN</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> N/A</para>
+
+ <para><emphasis>Scope:</emphasis> Any</para>
+
+ <para><emphasis>Version:</emphasis> 2.5.0</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> None</para>
+
+ <para><emphasis>Default:</emphasis> <literal>PDFTOKEN</literal></para>
+ </section>
+
+ <section>
+ <title><literal>SecRequestBodyAccess</literal></title>
+
+ <para><emphasis>Description:</emphasis> Configures whether request
+ bodies will be buffered and processed by ModSecurity by default.</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal
+ moreinfo="none">SecRequestBodyAccess On|Off</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecRequestBodyAccess On</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> N/A</para>
+
+ <para><emphasis>Scope:</emphasis> Any</para>
+
+ <para><emphasis>Version:</emphasis> 2.0.0</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> This directive is
+ required if you plan to inspect <literal>POST_PAYLOAD</literal>. This
+ directive must be used along with the "phase:2" processing phase action
+ and <literal>REQUEST_BODY</literal> variable/location. If any of these 3
+ parts are not configured, you will not be able to inspect the request
+ bodies.</para>
+
+ <para>Possible values are:</para>
+
+ <itemizedlist>
+ <listitem>
+ <para><literal moreinfo="none">On</literal> - access request
+ bodies.</para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">Off</literal> - do not attempt to
+ access request bodies.</para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
+ <section>
+ <title><literal>SecRequestBodyLimit</literal></title>
+
+ <para><emphasis>Description:</emphasis> Configures the maximum request
+ body size ModSecurity will accept for buffering.</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal
+ moreinfo="none">SecRequestBodyLimit NUMBER_IN_BYTES</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecRequestBodyLimit 134217728</literal></para>
+
+ <para><emphasis>Scope:</emphasis> Any</para>
+
+ <para><emphasis>Version:</emphasis> 2.0.0</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> 131072 KB (134217728
+ bytes) is the default setting. Anything over this limit will be rejected
+ with status code 413 Request Entity Too Large. There is a hard limit of
+ 1 GB.</para>
+ </section>
+
+ <section>
+ <title><literal>SecRequestBodyNoFilesLimit</literal></title>
+
+ <para><emphasis>Description:</emphasis> Configures the maximum request
+ body size ModSecurity will accept for buffering, excluding the size of
+ files being transported in the request. This directive comes handy to
+ further reduce susceptibility to DoS attacks when someone is sending
+ request bodies of very large sizes. Web applications that require file
+ uploads must configure <literal>SecRequestBodyLimit</literal> to a high
+ value. Since large files are streamed to disk file uploads will not
+ increase memory consumption. However, it's still possible for someone to
+ take advantage of a large request body limit and send non-upload
+ requests with large body sizes. This directive eliminates that
+ loophole.</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal
+ moreinfo="none">SecRequestBodyNoFilesLimit
+ NUMBER_IN_BYTES</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecRequestBodyLimit 131072</literal></para>
+
+ <para><emphasis>Scope:</emphasis> Any</para>
+
+ <para><emphasis>Version:</emphasis> 2.5.0</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> 1 MB (1048576 bytes) is
+ the default setting. This value is very conservative. For most
+ applications you should be able to reduce it down to 128 KB or lower.
+ Anything over the limit will be rejected with status code <literal>413
+ Request Entity Too Large</literal>. There is a hard limit of 1
+ GB.</para>
+ </section>
+
+ <section>
+ <title><literal>SecRequestBodyInMemoryLimit</literal></title>
+
+ <para><emphasis>Description:</emphasis> Configures the maximum request
+ body size ModSecurity will store in memory.</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal
+ moreinfo="none">SecRequestBodyInMemoryLimit
+ NUMBER_IN_BYTES</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecRequestBodyInMemoryLimit 131072</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> N/A</para>
+
+ <para><emphasis>Scope:</emphasis> Any</para>
+
+ <para><emphasis>Version:</emphasis> 2.0.0</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> None</para>
+
+ <para>By default the limit is 128 KB:</para>
+
+ <programlisting format="linespecific"># Store up to 128 KB in memory
+SecRequestBodyInMemoryLimit 131072</programlisting>
+ </section>
+
+ <section>
+ <title><literal>SecResponseBodyLimit</literal></title>
+
+ <para><emphasis>Description:</emphasis> Configures the maximum response
+ body size that will be accepted for buffering.</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal
+ moreinfo="none">SecResponseBodyLimit NUMBER_IN_BYTES</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecResponseBodyLimit 524228</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> N/A</para>
+
+ <para><emphasis>Scope:</emphasis> Any</para>
+
+ <para><emphasis>Version:</emphasis> 2.0.0</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> Anything over this limit
+ will be rejected with status code 500 Internal Server Error. This
+ setting will not affect the responses with MIME types that are not
+ marked for buffering. There is a hard limit of 1 GB.</para>
+
+ <para>By default this limit is configured to 512 KB:</para>
+
+ <programlisting format="linespecific"># Buffer response bodies of up to 512 KB in length
+SecResponseBodyLimit 524288</programlisting>
+ </section>
+
+ <section>
+ <title><literal>SecResponseBodyLimitAction</literal></title>
+
+ <para><emphasis>Description</emphasis>: Controls what happens once a
+ response body limit, configured with
+ <literal>SecResponseBodyLimit</literal>, is encountered. By default
+ ModSecurity will reject a response body that is longer than specified.
+ Some web sites, however, will produce very long responses making it
+ difficult to come up with a reasonable limit. Such sites would have to
+ raise the limit significantly to function properly defying the purpose
+ of having the limit in the first place (to control memory consumption).
+ With the ability to choose what happens once a limit is reached site
+ administrators can choose to inspect only the first part of the
+ response, the part that can fit into the desired limit, and let the rest
+ through. Some could argue that allowing parts of responses to go
+ uninspected is a weakness. This is true in theory but only applies to
+ cases where the attacker controls the output (e.g. can make it arbitrary
+ long). In such cases, however, it is not possible to prevent leakage
+ anyway. The attacker could compress, obfuscate, or even encrypt data
+ before it is sent back, and therefore bypass any monitoring
+ device.</para>
+
+ <para><emphasis>Syntax</emphasis>: <literal>SecResponseBodyLimitAction
+ Reject|ProcessPartial</literal></para>
+
+ <para><emphasis>Example Usage</emphasis>:
+ <literal>SecResponseBodyLimitAction ProcessPartial</literal></para>
+
+ <para><emphasis>Processing Phase</emphasis>: N/A</para>
+
+ <para><emphasis>Scope</emphasis>: Any</para>
+
+ <para><emphasis>Version:</emphasis> 2.5.0</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> None</para>
+ </section>
+
+ <section>
+ <title><literal>SecResponseBodyMimeType</literal></title>
+
+ <para><emphasis>Description:</emphasis> Configures which<literal
+ moreinfo="none"> MIME</literal> types are to be considered for response
+ body buffering.</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal
+ moreinfo="none">SecResponseBodyMimeType mime/type</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecResponseBodyMimeType text/plain
+ text/html</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> N/A</para>
+
+ <para><emphasis>Scope:</emphasis> Any</para>
+
+ <para><emphasis>Version:</emphasis> 2.0.0</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> Multiple<literal
+ moreinfo="none"> SecResponseBodyMimeType</literal> directives can be
+ used to add<literal moreinfo="none"> MIME</literal> types.</para>
+
+ <para>The default value is <literal
+ moreinfo="none">text/plaintext/html</literal>:</para>
+
+ <programlisting format="linespecific">SecResponseBodyMimeType text/plain text/html</programlisting>
+ </section>
+
+ <section>
+ <title><literal>SecResponseBodyMimeTypesClear</literal></title>
+
+ <para><emphasis>Description:</emphasis> Clears the list of <literal
+ moreinfo="none">MIME</literal> types considered for response body
+ buffering, allowing you to start populating the list from
+ scratch.</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal
+ moreinfo="none">SecResponseBodyMimeTypesClear</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecResponseBodyMimeTypesClear</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> N/A</para>
+
+ <para><emphasis>Scope:</emphasis> Any</para>
+
+ <para><emphasis>Version:</emphasis> 2.0.0</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> None</para>
+ </section>
+
+ <section>
+ <title><literal>SecResponseBodyAccess</literal></title>
+
+ <para><emphasis>Description:</emphasis> Configures whether response
+ bodies are to be buffer and analysed or not.</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal
+ moreinfo="none">SecResponseBodyAccess On|Off</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecResponseBodyAccess On</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> N/A</para>
+
+ <para><emphasis>Scope:</emphasis> Any</para>
+
+ <para><emphasis>Version:</emphasis> 2.0.0</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> This directive is
+ required if you plan to inspect HTML responses. This directive must be
+ used along with the "phase:4" processing phase action and RESPONSE_BODY
+ variable/location. If any of these 3 parts are not configured, you will
+ not be able to inspect the response bodies.</para>
+
+ <para>Possible values are:</para>
+
+ <itemizedlist>
+ <listitem>
+ <para><literal moreinfo="none">On</literal> - access response bodies
+ (but only if the MIME type matches, see above).</para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">Off</literal> - do not attempt to
+ access response bodies.</para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
+ <section>
+ <title><literal>SecRule</literal></title>
+
+ <para><emphasis>Description:</emphasis> <literal
+ moreinfo="none">SecRule</literal> is the main ModSecurity directive. It
+ is used to analyse data and perform actions based on the results.</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal moreinfo="none">SecRule
+ VARIABLES OPERATOR [ACTIONS]</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecRule REQUEST_URI "attack" \</literal></para>
+
+ <para><literal>
+ "phase:1,t:none,t:urlDecode,t:lowercase,t:normalisePath"</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> Any</para>
+
+ <para><emphasis>Scope:</emphasis> Any</para>
+
+ <para><emphasis>Version:</emphasis> 2.0.0</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> None</para>
+
+ <para>In general, the format of this rule is as follows:</para>
+
+ <programlisting format="linespecific">SecRule VARIABLES OPERATOR [ACTIONS]</programlisting>
+
+ <para>The second part, <literal moreinfo="none">OPERATOR</literal>,
+ specifies how they are going to be checked. The third (optional) part,
+ <literal moreinfo="none">ACTIONS</literal>, specifies what to do
+ whenever the operator used performs a successful match against a
+ variable.</para>
+
+ <section>
+ <title>Variables in rules</title>
+
+ <para>The first part,<literal moreinfo="none"> VARIABLES</literal>,
+ specifies which variables are to be checked. For example, the
+ following rule will reject a transaction that has the word<emphasis>
+ dirty</emphasis> in the URI:</para>
+
+ <programlisting format="linespecific">SecRule ARGS dirty</programlisting>
+
+ <para>Each rule can specify one or more variables:</para>
+
+ <programlisting format="linespecific">SecRule ARGS|REQUEST_HEADERS:User-Agent dirty</programlisting>
+
+ <para>There is a third format supported by the selection operator -
+ XPath expression. XPath expressions can only used against the special
+ variable XML, which is available only of the request body was
+ processed as XML.</para>
+
+ <programlisting format="linespecific">SecRule XML:/xPath/Expression dirty</programlisting>
+
+ <note>
+ <para>Not all collections support all selection operator format
+ types. You should refer to the documentation of each collection to
+ determine what is and isn't supported.</para>
+ </note>
+ </section>
+
+ <section>
+ <title>Collections</title>
+
+ <para>A variable can contain one or many pieces of data, depending on
+ the nature of the variable and the way it is used. We've seen examples
+ of both approaches in the previous section. When a variable can
+ contain more than one value we refer to it as a
+ <emphasis>collection</emphasis>.</para>
+
+ <para>Collections are always expanded before a rule is run. For
+ example, the following rule:</para>
+
+ <programlisting>SecRule ARGS dirty</programlisting>
+
+ <para>will be expanded to:</para>
+
+ <programlisting>SecRule ARGS:p dirty
+SecRule ARGS:q dirty</programlisting>
+
+ <para>in a requests that has only two parameters, named
+ <literal>p</literal> and <literal>q</literal>.</para>
+
+ <para>Collections come in several flavours:</para>
+
+ <variablelist>
+ <varlistentry>
+ <term>Read-only</term>
+
+ <listitem>
+ <para>Created at runtime using transaction data. For example:
+ <literal>ARGS</literal> (contains a list of all request
+ parameter values) and <literal>REQUEST_HEADERS</literal>
+ (contains a list of all request header values).</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term>Transient Read/Write</term>
+
+ <listitem>
+ <para>The <literal>TX</literal> collection is created (empty)
+ for every transaction. Rules can read from it and write to it
+ (using the <literal>setvar</literal> action, for example), but
+ the information stored in this collection will not survive the
+ end of transaction.</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term>Persistent Read/Write</term>
+
+ <listitem>
+ <para>There are several collections that can be written to, but
+ which are persisted to the storage backend. These collections
+ are used to track clients across transactions. Examples of
+ collections that fall into this type are <literal>IP</literal>,
+ <literal>SESSION</literal> and <literal>USER</literal>.</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </section>
+
+ <section>
+ <title>Operators in rules</title>
+
+ <para>In the simplest possible case you will use a regular expression
+ pattern as the second rule parameter. This is what we've done in the
+ examples above. If you do this ModSecurity assumes you want to use the
+ <literal moreinfo="none">rx</literal> (regular expression) operator.
+ You can also explicitly specify the operator you want to use by using
+ <literal moreinfo="none">@</literal>, followed by the name of an
+ operator, at the beginning of the second <literal>SecRule</literal>
+ parameter:</para>
+
+ <programlisting format="linespecific">SecRule ARGS "@rx dirty"</programlisting>
+
+ <para>Note how we had to use double quotes to delimit the second rule
+ parameter. This is because the second parameter now has whitespace in
+ it. Any number of whitespace characters can follow the name of the
+ operator. If there are any non-whitespace characters there, they will
+ all be treated as a special parameter to the operator. In the case of
+ the regular expression operator the special parameter is the pattern
+ that will be used for comparison.</para>
+
+ <para>The @ can be the second character if you are using negation to
+ negate the result returned by the operator:</para>
+
+ <programlisting format="linespecific">SecRule &ARGS "!@rx ^0$"</programlisting>
+ </section>
+
+ <section>
+ <title>Operator negation</title>
+
+ <para>Operator results can be negated by using an exclamation mark at
+ the beginning of the second parameter. The following rule matches if
+ the word <literal>dirty</literal> does <emphasis>not</emphasis> appear
+ in the <literal>User-Agent</literal> request header:</para>
+
+ <programlisting>SecRule REQUEST_HEADERS:User-Agent !dirty</programlisting>
+
+ <para>You can use the exclamation mark in combination with any
+ parameter. If you do, the exclamation mark needs to go first, followed
+ by the explicit operator reference. The following rule has the same
+ effect as the previous example:</para>
+
+ <programlisting>SecRule REQUEST_HEADERS:User-Agent "!@rx dirty"</programlisting>
+
+ <para>If you need to use negation in a rule that is going to be
+ applied to several variables then it may not be immediately clear what
+ will happen. Consider the following example:</para>
+
+ <programlisting>SecRule ARGS:p|ARGS:q !dirty</programlisting>
+
+ <para>The above rule is identical to:</para>
+
+ <programlisting>SecRule ARGS:p !dirty
+SecRule ARGS:q !dirty</programlisting>
+
+ <warning>
+ <para>Negation is applied to operations against individual
+ operations, not agains the entire variable list.</para>
+ </warning>
+ </section>
+
+ <section>
+ <title>Actions in rules</title>
+
+ <para>The third parameter, <literal moreinfo="none">ACTIONS</literal>,
+ can be omitted only because there is a helper feature that specifies
+ the default action list. If the parameter isn't omitted the actions
+ specified in the parameter will be merged with the default action list
+ to create the actual list of actions that will be processed on a rule
+ match.</para>
+ </section>
+ </section>
+
+ <section>
+ <title><literal>SecRuleInheritance</literal></title>
+
+ <para><emphasis>Description:</emphasis> Configures whether the current
+ context will inherit rules from the parent context (configuration
+ options are inherited in most cases - you should look up the
+ documentation for every directive to determine if it is inherited or
+ not).</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal
+ moreinfo="none">SecRuleInheritance On|Off</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecRuleInheritance Off</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> Any</para>
+
+ <para><emphasis>Scope:</emphasis> Any</para>
+
+ <para><emphasis>Version:</emphasis> 2.0.0</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> Resource-specific
+ contexts (e.g.<literal moreinfo="none"> Location</literal>, <literal
+ moreinfo="none">Directory</literal>, etc) cannot override
+ <emphasis>phase1</emphasis> rules configured in the main server or in
+ the virtual server. This is because phase 1 is run early in the request
+ processing process, before Apache maps request to resource. Virtual host
+ context can override phase 1 rules configured in the main server.</para>
+
+ <para>Example: The following example shows where ModSecurity may be
+ enabled in the main Apache configuration scope, however you might want
+ to configure your VirtualHosts differently. In the first example, the
+ first VirtualHost is not inheriting the ModSecurity main config
+ directives and in the second one it is.</para>
+
+ <programlisting format="linespecific">SecRuleEngine On
+SecDefaultAction log,pass,phase:2
+...
+
+<VirtualHost *:80>
+ServerName app1.com
+ServerAlias www.app1.com<emphasis>
+SecRuleInheritance Off</emphasis>
+SecDefaultAction log,deny,phase:1,redirect:http://www.site2.com
+...
+</VirtualHost>
+
+<VirtualHost *:80>
+ServerName app2.com
+ServerAlias www.app2.com
+<emphasis>SecRuleInheritance On</emphasis> SecRule ARGS "attack"
+...
+</VirtualHost></programlisting>
+
+ <para>Possible values are:</para>
+
+ <itemizedlist>
+ <listitem>
+ <para><literal moreinfo="none">On</literal> - inherit rules from the
+ parent context.</para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">Off</literal> - do not inherit rules
+ from the parent context.</para>
+
+ <note>
+ <para>Configuration contexts are an Apache concept. Directives
+ <literal><Directory></literal>,
+ <literal><Files></literal>,
+ <literal><Location></literal> and
+ <literal><VirtualHost></literal> are all used to create
+ configuration contexts. For more information please go to the
+ Apache documentation section <ulink
+ url="http://httpd.apache.org/docs/2.0/sections.html">Configuration
+ Sections</ulink>.</para>
+ </note>
+ </listitem>
+ </itemizedlist>
+ </section>
+
+ <section>
+ <title><literal>SecRuleEngine</literal></title>
+
+ <para><emphasis>Description:</emphasis> Configures the rules
+ engine.</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal
+ moreinfo="none">SecRuleEngine On|Off|DetectionOnly</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecRuleEngine On</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> Any</para>
+
+ <para><emphasis>Scope:</emphasis> Any</para>
+
+ <para><emphasis>Version:</emphasis> 2.0.0</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> This directive can also
+ be controlled by the ctl action (ctl:ruleEngine=off) for per rule
+ processing.</para>
+
+ <para>Possible values are:</para>
+
+ <itemizedlist>
+ <listitem>
+ <para><literal moreinfo="none">On</literal> - process rules.</para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">Off</literal> - do not process
+ rules.</para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">DetectionOnly</literal> - process
+ rules but never intercept transactions, even when rules are
+ configured to do so.</para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
+ <section>
+ <title><literal>SecRuleRemoveById</literal></title>
+
+ <para><emphasis>Description:</emphasis> Removes matching rules from the
+ parent contexts.</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal
+ moreinfo="none">SecRuleUpdateActionById RULEID
+ ACTIONLIST</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecRuleRemoveByID 1 2 "9000-9010"</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> Any</para>
+
+ <para><emphasis>Scope:</emphasis> Any</para>
+
+ <para><emphasis>Version:</emphasis> 2.0.0</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> This directive supports
+ multiple parameters, where each parameter can either be a rule ID, or a
+ range. Parameters that contain spaces must be delimited using double
+ quotes.</para>
+
+ <programlisting format="linespecific">SecRuleRemoveById 1 2 5 10-20 "400-556" 673</programlisting>
+ </section>
+
+ <section>
+ <title><literal>SecRuleRemoveByMsg</literal></title>
+
+ <para><emphasis>Description:</emphasis> Removes matching rules from the
+ parent contexts.</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal
+ moreinfo="none">SecRuleRemoveByMsg REGEX</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecRuleRemoveByMsg "FAIL"</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> Any</para>
+
+ <para><emphasis>Scope:</emphasis> Any</para>
+
+ <para><emphasis>Version:</emphasis> 2.0.0</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> This directive supports
+ multiple parameters. Each parameter is a regular expression that will be
+ applied to the message (specified using the <literal
+ moreinfo="none">msg</literal> action).</para>
+ </section>
+
+ <section>
+ <title><literal>SecRuleScript</literal> (Experimental)</title>
+
+ <para><emphasis>Description:</emphasis> This directive creates a special
+ rule that executes a Lua script to decide whether to match or not. The
+ main difference from <literal>SecRule</literal> is that there are no
+ targets nor operators. The script can fetch any variable from the
+ ModSecurity context and use any (Lua) operator to test them. The second
+ optional parameter is the list of actions whose meaning is identical to
+ that of <literal>SecRule</literal>.</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal>SecRuleScript
+ /path/to/script.lua [ACTIONS]</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecRuleScript "/path/to/file.lua"
+ "block"</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> Any</para>
+
+ <para><emphasis>Scope:</emphasis> Any</para>
+
+ <para><emphasis>Version:</emphasis> 2.5.0</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> None</para>
+
+ <note>
+ <para>All Lua scripts are compiled at configuration time and cached in
+ memory. To reload scripts you must reload the entire ModSecurity
+ configuration by restarting Apache.</para>
+ </note>
+
+ <para>Example script:</para>
+
+ <programlisting>-- Your script must define the <emphasis>main</emphasis> entry
+-- point, as below.
+function main()
+ -- Log something at level 1. Normally you shouldn't be
+ -- logging anything, especially not at level 1, but this is
+ -- just to show you can. Useful for debugging.
+ m.log(1, "Hello world!");
+
+ -- Retrieve one variable.
+ local var1 = m.getvar("REMOTE_ADDR");
+
+ -- Retrieve one variable, applying one transformation function.
+ -- The second parameter is a string.
+ local var2 = m.getvar("ARGS", "lowercase");
+
+ -- Retrieve one variable, applying several transformation functions.
+ -- The second parameter is now a list. You should note that m.getvar()
+ -- requires the use of comma to separate collection names from
+ -- variable names. This is because only one variable is returned.
+ local var3 = m.getvar("ARGS.p", { "lowercase", "compressWhitespace" } );
+
+ -- If you want this rule to match return a string
+ -- containing the error message. The message <emphasis>must</emphasis> contain the name
+ -- of the variable where the problem is located.
+ -- return "Variable ARGS:p looks suspicious!"
+
+ -- Otherwise, simply return nil.
+ return nil;
+end</programlisting>
+
+ <para>In this first example we were only retrieving one variable at the
+ time. In this case the name of the variable is known to you. In many
+ cases, however, you will want to examine variables whose names you won't
+ know in advance, for example script parameters.</para>
+
+ <para>Example showing use of <literal>m.getvars()</literal> to retrieve
+ many variables at once:</para>
+
+ <programlisting>function main()
+ -- Retrieve script parameters.
+ local d = m.getvars("ARGS", { "lowercase", "htmlEntityDecode" } );
+
+ -- Loop through the paramters.
+ for i = 1, #d do
+ -- Examine parameter value.
+ if (string.find(d[i].value, "<script")) then
+ -- Always specify the name of the variable where the
+ -- problem is located in the error message.
+ return ("Suspected XSS in variable " .. d[i].name .. ".");
+ end
+ end
+
+ -- Nothing wrong found.
+ return nil;
+end</programlisting>
+
+ <note>
+ <para>Go to <ulink
+ url="http://www.lua.org/">http://www.lua.org/</ulink> to find more
+ about the Lua programming language. The reference manual too is
+ available online, at <ulink
+ url="http://www.lua.org/manual/5.1/">http://www.lua.org/manual/5.1/</ulink>.</para>
+ </note>
+
+ <note>
+ <para>Lua support is marked as <emphasis>experimental</emphasis> as
+ the way the progamming interface may continue to evolve while we are
+ working for the best implementation style. Any user input into the
+ programming interface is appreciated.</para>
+ </note>
+ </section>
+
+ <section>
+ <title><literal>SecRuleUpdateActionById</literal></title>
+
+ <para><emphasis>Description:</emphasis> Updates the action list of the
+ specified rule.</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal
+ moreinfo="none">SecRuleRemoveById RULEID ACTIONLIST</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecRuleUpdateActionById 12345
+ deny,status:403</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> Any</para>
+
+ <para><emphasis>Scope:</emphasis> Any</para>
+
+ <para><emphasis>Version:</emphasis> 2.5.0</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> This directive merges the
+ specified action list with the rule's action list. There are two
+ limitations. The rule ID cannot be changed, nor can the phase. Further
+ note that actions that may be specified multiple times are appended to
+ the original.</para>
+
+ <programlisting format="linespecific">SecAction \
+ "t:lowercase,phase:2,id:12345,pass,msg:'The Message',log,auditlog"
+SecRuleUpdateActionById 12345 "t:compressWhitespace,deny,status:403,msg:'A new message'</programlisting>
+
+ <para>The example above will cause the rule to be executed as if it was
+ specified as follows:</para>
+
+ <programlisting format="linespecific">SecAction \
+ "t:lowercase,phase:2,id:12345,log,auditlog,t:compressWhitespace,deny,status:403,msg:'A new message'"</programlisting>
+ </section>
+
+ <section>
+ <title><literal>SecServerSignature</literal></title>
+
+ <para><emphasis>Description:</emphasis> Instructs ModSecurity to change
+ the data presented in the "Server:" response header token.</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal
+ moreinfo="none">SecServerSignature "WEB SERVER
+ SOFTWARE"</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecServerSignature
+ "Netscape-Enterprise/6.0"</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> N/A</para>
+
+ <para><emphasis>Scope:</emphasis> Main</para>
+
+ <para><emphasis>Version:</emphasis> 2.0.0</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> In order for this
+ directive to work, you must set the Apache ServerTokens directive to
+ Full. ModSecurity will overwrite the server signature data held in this
+ memory space with the data set in this directive. If ServerTokens is not
+ set to Full, then the memory space is most likely not large enough to
+ hold the new data we are looking to insert.</para>
+ </section>
+
+ <section>
+ <title><literal>SecTmpDir</literal></title>
+
+ <para><emphasis>Description:</emphasis> Configures the directory where
+ temporary files will be created.</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal moreinfo="none">SecTmpDir
+ /path/to/dir</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecTmpDir /tmp</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> N/A</para>
+
+ <para><emphasis>Scope:</emphasis> Any</para>
+
+ <para><emphasis>Version:</emphasis> 2.0.0</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> Needs to be writable by
+ the Apache user process. This is the directory location where Apache
+ will swap data to disk if it runs out of memory (more data than what was
+ specified in the SecRequestBodyInMemoryLimit directive) during
+ inspection.</para>
+ </section>
+
+ <section>
+ <title><literal>SecUploadDir</literal></title>
+
+ <para><emphasis>Description:</emphasis> Configures the directory where
+ intercepted files will be stored.</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal moreinfo="none">SecUploadDir
+ /path/to/dir</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecUploadDir /tmp</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> N/A</para>
+
+ <para><emphasis>Scope:</emphasis> Any</para>
+
+ <para><emphasis>Version:</emphasis> 2.0.0</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> This directory must be on
+ the same filesystem as the temporary directory defined with <literal
+ moreinfo="none">SecTmpDir</literal>. This directive is used with
+ <literal>SecUploadKeepFiles</literal>.</para>
+ </section>
+
+ <section>
+ <title><literal>SecUploadFileMode</literal></title>
+
+ <para><emphasis>Description:</emphasis> Configures the mode
+ (permissions) of any uploaded files using an octal mode (as used in
+ chmod).</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal
+ moreinfo="none">SecUploadFileMode octal_mode|"default"</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecUploadFileMode 0640</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> N/A</para>
+
+ <para><emphasis>Scope:</emphasis> Any</para>
+
+ <para><emphasis>Version:</emphasis> 2.1.6</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> This feature is not
+ available on operating systems not supporting octal file modes. The
+ default mode (0600) only grants read/write access to the account writing
+ the file. If access from another account is needed (using clamd is a
+ good example), then this directive may be required. However, use this
+ directive with caution to avoid exposing potentially sensitive data to
+ unauthorized users. Using the value "default" will revert back to the
+ default setting.</para>
+
+ <note>
+ <para>The process umask may still limit the mode if it is being more
+ restrictive than the mode set using this directive.</para>
+ </note>
+ </section>
+
+ <section>
+ <title><literal>SecUploadKeepFiles</literal></title>
+
+ <para><emphasis>Description:</emphasis> Configures whether or not the
+ intercepted files will be kept after transaction is processed.</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal
+ moreinfo="none">SecUploadKeepFiles On|Off|RelevantOnly</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecUploadKeepFiles On</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> N/A</para>
+
+ <para><emphasis>Scope:</emphasis> Any</para>
+
+ <para><emphasis>Version:</emphasis> 2.0.0</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> This directive requires
+ the storage directory to be defined (using <literal
+ moreinfo="none">SecUploadDir</literal>).</para>
+
+ <para>Possible values are:</para>
+
+ <itemizedlist>
+ <listitem>
+ <para><literal moreinfo="none">On</literal> - Keep uploaded
+ files.</para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">Off</literal> - Do not keep uploaded
+ files.</para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">RelevantOnly</literal> - This will
+ keep only those files that belong to requests that are deemed
+ relevant.</para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
+ <section>
+ <title><literal>SecWebAppId</literal></title>
+
+ <para><emphasis>Description:</emphasis> Creates a partition on the
+ server that belongs to one web application.</para>
+
+ <para><emphasis>Syntax:</emphasis> <literal moreinfo="none">SecWebAppId
+ "NAME"</literal></para>
+
+ <para><emphasis>Example Usage:</emphasis> <literal
+ moreinfo="none">SecWebAppId "WebApp1"</literal></para>
+
+ <para><emphasis>Processing Phase:</emphasis> N/A</para>
+
+ <para><emphasis>Scope:</emphasis> Any</para>
+
+ <para><emphasis>Version:</emphasis> 2.0.0</para>
+
+ <para><emphasis>Dependencies/Notes:</emphasis> Partitions are used to
+ avoid collisions between session IDs and user IDs. This directive must
+ be used if there are multiple applications deployed on the same server.
+ If it isn't used, a collision between session IDs might occur. The
+ default value is<literal moreinfo="none"> default</literal>.
+ Example:</para>
+
+ <programlisting format="linespecific"><VirtualHost *:80>
+ServerName app1.com
+ServerAlias www.app1.com
+<emphasis>SecWebAppId "App1"</emphasis>
+SecRule REQUEST_COOKIES:PHPSESSID !^$ chain,nolog,pass
+SecAction setsid:%{REQUEST_COOKIES.PHPSESSID}
+...
+</VirtualHost>
+
+<VirtualHost *:80>
+ServerName app2.com
+ServerAlias www.app2.com<emphasis>
+SecWebAppId "App2"</emphasis>
+SecRule REQUEST_COOKIES:PHPSESSID !^$ chain,nolog,pass
+SecAction setsid:%{REQUEST_COOKIES.PHPSESSID}
+...
+</VirtualHost></programlisting>
+
+ <para>In the two examples configurations shown, SecWebAppId is being
+ used in conjunction with the Apache VirtualHost directives. What this
+ achieves is to create more unique collection names when being hosted on
+ one server. Normally, when setsid is used, ModSecurity will create a
+ collection with the name "SESSION" and it will hold the value specified.
+ With using SecWebAppId as shown in the examples, however, the name of
+ the collection would become "App1_SESSION" and "App2_SESSION".</para>
+
+ <para>SecWebAppId is relevant in two cases:</para>
+
+ <orderedlist continuation="restarts" inheritnum="ignore">
+ <listitem>
+ <para>You are logging transactions/alerts to the ModSecurity Console
+ and you want to use the web application ID to search only the
+ transactions belonging to that application.</para>
+ </listitem>
+
+ <listitem>
+ <para>You are using the data persistence facility (collections
+ SESSION and USER) and you need to avoid collisions between sessions
+ and users belonging to different applications.</para>
+ </listitem>
+ </orderedlist>
+ </section>
+ </section>
+
+ <section id="processing-phases">
+ <title>Processing Phases</title>
+
+ <para>ModSecurity 2.x allows rules to be placed in one of the following
+ five phases:</para>
+
+ <orderedlist continuation="restarts" inheritnum="ignore">
+ <listitem>
+ <para>Request headers (<literal>REQUEST_HEADERS</literal>)</para>
+ </listitem>
+
+ <listitem>
+ <para>Request body (<literal>REQUEST_BODY</literal>)</para>
+ </listitem>
+
+ <listitem>
+ <para>Response headers (<literal>RESPONSE_HEADERS</literal>)</para>
+ </listitem>
+
+ <listitem>
+ <para>Response body (<literal>RESPONSE_BODY</literal>)</para>
+ </listitem>
+
+ <listitem>
+ <para>Logging (<literal>LOGGING</literal>)</para>
+ </listitem>
+ </orderedlist>
+
+ <para>Below is a diagram of the standard Apache Request Cycle. In the
+ diagram, the 5 ModSecurity processing phases are shown.</para>
+
+ <para><graphic contentwidth="5.5in"
+ fileref="apache_request_cycle-modsecurity.jpg" role="" scale=""
+ scalefit="" /></para>
+
+ <para>In order to select the phase a rule executes during, use the phase
+ action either directly in the rule or in using the
+ <literal>SecDefaultAction</literal> directive:</para>
+
+ <programlisting format="linespecific">SecDefaultAction "log,pass,<emphasis>phase:2</emphasis>"
+SecRule REQUEST_HEADERS:Host "!^$" "deny,<emphasis>phase:1</emphasis>"</programlisting>
+
+ <note>
+ <para>Keep in mind that rules are executed according to phases, so even
+ if two rules are adjacent in a configuration file, but are set to
+ execute in different phases, they would not happen one after the other.
+ The order of rules in the configuration file is important only within
+ the rules of each phase. This is especially important when using the
+ <literal>skip</literal> and <literal>skipAfter</literal> actions.</para>
+ </note>
+
+ <note>
+ <para>The <literal>LOGGING</literal> phase is special. It is executed at
+ the end of each transaction no matter what happened in the previous
+ phases. This means it will be processed even if the request was
+ intercepted or the <literal>allow</literal> action was used to pass the
+ transaction through.</para>
+ </note>
+
+ <section>
+ <title>Phase Request Headers</title>
+
+ <para>Rules in this phase are processed immediately after Apache
+ completes reading the request headers (post-read-request phase). At this
+ point the request body has not been read yet, meaning not all request
+ arguments are available. Rules should be placed in this phase if you
+ need to have them run early (before Apache does something with the
+ request), to do something before the request body has been read,
+ determine whether or not the request body should be buffered, or decide
+ how you want the request body to be processed (e.g. whether to parse it
+ as XML or not).</para>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>Rules in this phase can not leverage Apache scope directives
+ (Directory, Location, LocationMatch, etc...) as the post-read-request
+ hook does not have this information yet. The exception here is the
+ VirtualHost directive. If you want to use ModSecurity rules inside
+ Apache locations, then they should run in Phase 2. Refer to the Apache
+ Request Cycle/ModSecurity Processing Phases diagram.</para>
+ </section>
+
+ <section>
+ <title>Phase Request Body</title>
+
+ <para>This is the general-purpose input analysis phase. Most of the
+ application-oriented rules should go here. In this phase you are
+ guaranteed to have received the request arguments (provided the request
+ body has been read). ModSecurity supports three encoding types for the
+ request body phase:</para>
+
+ <itemizedlist>
+ <listitem>
+ <para><literal>application/x-www-form-urlencoded</literal> - used to
+ transfer form data</para>
+ </listitem>
+
+ <listitem>
+ <para><literal>multipart/form-data</literal> - used for file
+ transfers</para>
+ </listitem>
+
+ <listitem>
+ <para><literal>text/xml</literal> - used for passing XML data</para>
+ </listitem>
+ </itemizedlist>
+
+ <para>Other encodings are not used by most web applications.</para>
+ </section>
+
+ <section>
+ <title>Phase Response Headers</title>
+
+ <para>This phase takes place just before response headers are sent back
+ to the client. Run here if you want to observe the response before that
+ happens, and if you want to use the response headers to determine if you
+ want to buffer the response body. Note that some response status codes
+ (such as 404) are handled earlier in the request cycle by Apache and my
+ not be able to be triggered as expected. Additionally, there are some
+ response headers that are added by Apache at a later hook (such as Date,
+ Server and Connection) that we would not be able to trigger on or
+ sanitize. This should work appropriately in a proxy setup or within
+ phase:5 (logging).</para>
+ </section>
+
+ <section>
+ <title>Phase Response Body</title>
+
+ <para>This is the general-purpose output analysis phase. At this point
+ you can run rules against the response body (provided it was buffered,
+ of course). This is the phase where you would want to inspect the
+ outbound HTML for information disclosure, error messages or failed
+ authentication text.</para>
+ </section>
+
+ <section>
+ <title>Phase Logging</title>
+
+ <para>This phase is run just before logging takes place. The rules
+ placed into this phase can only affect how the logging is performed.
+ This phase can be used to inspect the error messages logged by Apache.
+ You cannot deny/block connections in this phase as it is too late. This
+ phase also allows for inspection of other response headers that weren't
+ available during phase:3 or phase:4. Note that you must be careful not
+ to inherit a disruptive action into a rule in this phase as this is a
+ configuration error in ModSecurity 2.5.0 and later versions.</para>
+ </section>
+ </section>
+
+ <section id="variables">
+ <title>Variables</title>
+
+ <para>The following variables are supported in ModSecurity 2.x:</para>
+
+ <section>
+ <title><literal moreinfo="none">ARGS</literal></title>
+
+ <para><literal>ARGS</literal> is a collection and can be used on its own
+ (means all arguments including the POST Payload), with a static
+ parameter (matches arguments with that name), or with a regular
+ expression (matches all arguments with name that matches the regular
+ expression). To look at only the query string or body arguments, see the
+ <literal>ARGS_GET</literal> and <literal>ARGS_POST</literal>
+ collections.</para>
+
+ <para>Some variables are actually collections, which are expanded into
+ more variables at runtime. The following example will examine all
+ request arguments:<programlisting format="linespecific">SecRule ARGS dirty</programlisting>
+ Sometimes, however, you will want to look only at parts of a collection.
+ This can be achieved with the help of the <emphasis>selection
+ operator</emphasis>(colon). The following example will only look at the
+ arguments named<literal moreinfo="none"> p</literal> (do note that, in
+ general, requests can contain multiple arguments with the same name):
+ <programlisting format="linespecific">SecRule ARGS:p dirty</programlisting>
+ It is also possible to specify exclusions. The following will examine
+ all request arguments for the word<emphasis> dirty</emphasis>, except
+ the ones named <literal moreinfo="none">z</literal> (again, there can be
+ zero or more arguments named<literal moreinfo="none"> z</literal>):
+ <programlisting format="linespecific">SecRule ARGS|!ARGS:z dirty</programlisting>
+ There is a special operator that allows you to count how many variables
+ there are in a collection. The following rule will trigger if there is
+ more than zero arguments in the request (ignore the second parameter for
+ the time being): <programlisting format="linespecific">SecRule &ARGS !^0$</programlisting>
+ And sometimes you need to look at an array of parameters, each with a
+ slightly different name. In this case you can specify a regular
+ expression in the selection operator itself. The following rule will
+ look into all arguments whose names begin with <literal
+ moreinfo="none">id_</literal>: <programlisting format="linespecific">SecRule ARGS:/^id_/ dirty</programlisting></para>
+
+ <note>
+ <para>Using <literal>ARGS:p</literal> will not result in any
+ invocations against the operator if argument p does not exist.</para>
+
+ <para>In ModSecurity 1.X, the <literal>ARGS</literal> variable stood
+ for <literal>QUERY_STRING</literal> + <literal>POST_PAYLOAD</literal>,
+ whereas now it expands to individual variables.</para>
+ </note>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">ARGS_COMBINED_SIZE</literal></title>
+
+ <para>This variable allows you to set more targeted evaluations on the
+ total size of the Arguments as compared with normal Apache LimitRequest
+ directives. For example, you could create a rule to ensure that the
+ total size of the argument data is below a certain threshold (to help
+ prevent buffer overflow issues). Example: Block request if the size of
+ the arguments is above 25 characters.</para>
+
+ <programlisting format="linespecific">SecRule REQUEST_FILENAME "^/cgi-bin/login\.php" \
+ "chain,log,deny,phase:2,t:none,t:lowercase,t:normalisePath"
+SecRule <emphasis>ARGS_COMBINED_SIZE</emphasis> "@gt 25"</programlisting>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">ARGS_NAMES</literal></title>
+
+ <para>Is a collection of the argument names. You can search for specific
+ argument names that you want to block. In a positive policy scenario,
+ you can also whitelist (using an inverted rule with the ! character)
+ only authorized argument names. Example: This example rule will only
+ allow 2 argument names - p and a. If any other argument names are
+ injected, it will be blocked.</para>
+
+ <programlisting format="linespecific">SecRule REQUEST_FILENAME "/index.php" \
+ "chain,log,deny,status:403,phase:2,t:none,t:lowercase,t:normalisePath"
+SecRule<emphasis> ARGS_NAMES</emphasis> "!^(p|a)$" "t:none,t:lowercase"</programlisting>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">ARGS_GET</literal></title>
+
+ <para><literal>ARGS_GET</literal> is similar to <literal>ARGS</literal>,
+ but only contains arguments from the query string.</para>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">ARGS_GET_NAMES</literal></title>
+
+ <para><literal>ARGS_GET_NAMES</literal> is similar to
+ <literal>ARGS_NAMES</literal>, but only contains argument names from the
+ query string.</para>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">ARGS_POST</literal></title>
+
+ <para><literal>ARGS_POST</literal> is similar to
+ <literal>ARGS</literal>, but only contains arguments from the POST
+ body.</para>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">ARGS_POST_NAMES</literal></title>
+
+ <para><literal>ARGS_POST_NAMES</literal> is similar to
+ <literal>ARGS_NAMES</literal>, but only contains argument names from the
+ POST body.</para>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">AUTH_TYPE</literal></title>
+
+ <para>This variable holds the authentication method used to validate a
+ user. Example:</para>
+
+ <programlisting format="linespecific">SecRule <emphasis>AUTH_TYPE</emphasis> "basic" log,deny,status:403,phase:1,t:lowercase</programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>This data will not be available in a proxy-mode deployment as the
+ authentication is not local. In a proxy-mode deployment, you would need
+ to inspect the <literal>REQUEST_HEADERS:Authorization</literal>
+ header.</para>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">ENV</literal></title>
+
+ <para>Collection, requires a single parameter (after colon). The
+ <literal>ENV</literal> variable is set with setenv and does not give
+ access to the CGI environment variables. Example:</para>
+
+ <programlisting format="linespecific">SecRule REQUEST_FILENAME "printenv" pass,<emphasis>setenv:tag=suspicious</emphasis>
+SecRule <emphasis>ENV:tag</emphasis> "suspicious"</programlisting>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">FILES</literal></title>
+
+ <para>Collection. Contains a collection of original file names (as they
+ were called on the remote user's file system). Note: only available if
+ files were extracted from the request body. Example:</para>
+
+ <programlisting format="linespecific">SecRule<emphasis> FILES</emphasis> "\.conf$" log,deny,status:403,phase:2</programlisting>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">FILES_COMBINED_SIZE</literal></title>
+
+ <para>Single value. Total size of the uploaded files. Note: only
+ available if files were extracted from the request body. Example:</para>
+
+ <programlisting format="linespecific">SecRule <emphasis>FILES_COMBINED_SIZE</emphasis> "@gt 1000" log,deny,status:403,phase:2</programlisting>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">FILES_NAMES</literal></title>
+
+ <para>Collection w/o parameter. Contains a list of form fields that were
+ used for file upload. Note: only available if files were extracted from
+ the request body. Example:</para>
+
+ <programlisting format="linespecific">SecRule<emphasis> FILES_NAMES</emphasis> "^upfile$" log,deny,status:403,phase:2</programlisting>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">FILES_SIZES</literal></title>
+
+ <para>Collection. Contains a list of file sizes. Useful for implementing
+ a size limitation on individual uploaded files. Note: only available if
+ files were extracted from the request body. Example:</para>
+
+ <programlisting format="linespecific">SecRule <emphasis>FILES_SIZES</emphasis> "@gt 100" log,deny,status:403,phase:2</programlisting>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">FILES_TMPNAMES</literal></title>
+
+ <para>Collection. Contains a collection of temporary files' names on the
+ disk. Useful when used together with <literal
+ moreinfo="none">@inspectFile.</literal> Note: only available if files
+ were extracted from the request body. Example:</para>
+
+ <programlisting format="linespecific">SecRule <emphasis>FILES_TMPNAMES</emphasis> "@inspectFile /path/to/inspect_script.pl"</programlisting>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">GEO</literal></title>
+
+ <para><literal>GEO</literal> is a collection populated by the results of
+ the last <literal moreinfo="none">@geoLookup</literal> operator. The
+ collection can be used to match geographical fields looked from an IP
+ address or hostname.</para>
+
+ <para>Available since ModSecurity 2.5.0.</para>
+
+ <para>Fields:</para>
+
+ <itemizedlist>
+ <listitem>
+ <para><emphasis>COUNTRY_CODE:</emphasis> Two character country code.
+ EX: US, GB, etc.</para>
+ </listitem>
+
+ <listitem>
+ <para><emphasis>COUNTRY_CODE3:</emphasis> Up to three character
+ country code.</para>
+ </listitem>
+
+ <listitem>
+ <para><emphasis>COUNTRY_NAME:</emphasis> The full country
+ name.</para>
+ </listitem>
+
+ <listitem>
+ <para><emphasis>COUNTRY_CONTINENT:</emphasis> The two character
+ continent that the country is located. EX: EU</para>
+ </listitem>
+
+ <listitem>
+ <para><emphasis>REGION:</emphasis> The two character region. For US,
+ this is state. For Canada, providence, etc.</para>
+ </listitem>
+
+ <listitem>
+ <para><emphasis>CITY:</emphasis> The city name if supported by the
+ database.</para>
+ </listitem>
+
+ <listitem>
+ <para><emphasis>POSTAL_CODE:</emphasis> The postal code if supported
+ by the database.</para>
+ </listitem>
+
+ <listitem>
+ <para><emphasis>LATITUDE:</emphasis> The latitude if supported by
+ the database.</para>
+ </listitem>
+
+ <listitem>
+ <para><emphasis>LONGITUDE:</emphasis> The longitude if supported by
+ the database.</para>
+ </listitem>
+
+ <listitem>
+ <para><emphasis>DMA_CODE:</emphasis> The metropolitan area code if
+ supported by the database. (US only)</para>
+ </listitem>
+
+ <listitem>
+ <para><emphasis>AREA_CODE:</emphasis> The phone system area code.
+ (US only)</para>
+ </listitem>
+ </itemizedlist>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecGeoLookupDb /usr/local/geo/data/GeoLiteCity.dat
+...
+SecRule REMOTE_ADDR "<emphasis>@geoLookup</emphasis>" "chain,drop,msg:'Non-GB IP address'"
+SecRule GEO:COUNTRY_CODE "!@streq GB"</programlisting>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">HIGHEST_SEVERITY</literal></title>
+
+ <para>This variable holds the highest severity of any rules that have
+ matched so far. Severities are numeric values and thus can be used with
+ comparison operators such as <literal moreinfo="none">@lt</literal>,
+ etc.</para>
+
+ <note>
+ <para>Higher severities have a lower numeric value.</para>
+
+ <para>A value of 255 indicates no severity has been set.</para>
+ </note>
+
+ <programlisting format="linespecific">SecRule HIGHEST_SEVERITY "@le 2" "phase:2,deny,status:500,msg:'severity %{HIGHEST_SEVERITY}'"</programlisting>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">MATCHED_VAR</literal></title>
+
+ <para>This variable holds the value of the variable that was matched
+ against. It is similar to the TX:0, except it can be used for all
+ operators and does not require that the <literal
+ moreinfo="none">capture</literal> action be specified.</para>
+
+ <programlisting format="linespecific">SecRule ARGS pattern chain,deny
+...
+SecRule <emphasis>MATCHED_VAR</emphasis> "further scrutiny"</programlisting>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">MATCHED_VAR_NAME</literal></title>
+
+ <para>This variable holds the full name of the variable that was matched
+ against.</para>
+
+ <programlisting format="linespecific">SecRule ARGS pattern setvar:tx.mymatch=%{MATCHED_VAR_NAME}
+...
+SecRule <emphasis>TX:MYMATCH</emphasis> "@eq ARGS:param" deny</programlisting>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">MODSEC_BUILD</literal></title>
+
+ <para>This variable holds the ModSecurity build number. This variable is
+ intended to be used to check the build number prior to using a feature
+ that is available only in a certain build. Example:</para>
+
+ <programlisting format="linespecific">SecRule <emphasis>MODSEC_BUILD</emphasis> "!@ge 02050102" skipAfter:12345
+SecRule ARGS "@pm some key words" id:12345,deny,status:500</programlisting>
+ </section>
+
+ <section>
+ <title><literal>MULTIPART_CRLF_LF_LINES</literal></title>
+
+ <para>This flag variable will be set to <literal>1</literal> whenever a
+ multi-part request uses mixed line terminators. The
+ <literal>multipart/form-data</literal> RFC requires
+ <literal>CRLF</literal> sequence to be used to terminate lines. Since
+ some client implementations use only <literal>LF</literal> to terminate
+ lines you might want to allow them to proceed under certain
+ circumstances (if you want to do this you will need to stop using
+ <literal>MULTIPART_STRICT_ERROR</literal> and check each multi-part flag
+ variable individually, avoiding <literal>MULTIPART_LF_LINE</literal>).
+ However, mixing <literal>CRLF</literal> and <literal>LF</literal> line
+ terminators is dangerous as it can allow for evasion. Therefore, in such
+ cases, you will have to add a check for
+ <literal>MULTIPART_CRLF_LF_LINES</literal>.</para>
+ </section>
+
+ <section>
+ <title><literal>MULTIPART_STRICT_ERROR</literal></title>
+
+ <para><literal>MULTIPART_STRICT_ERROR</literal> will be set to
+ <literal>1</literal> when any of the following variables is also set to
+ <literal>1</literal>: <literal>REQBODY_PROCESSOR_ERROR</literal>,
+ <literal>MULTIPART_BOUNDARY_QUOTED</literal>,
+ <literal>MULTIPART_BOUNDARY_WHITESPACE</literal>,
+ <literal>MULTIPART_DATA_BEFORE</literal>,
+ <literal>MULTIPART_DATA_AFTER</literal>,
+ <literal>MULTIPART_HEADER_FOLDING</literal>,
+ <literal>MULTIPART_LF_LINE</literal>,
+ <literal>MULTIPART_SEMICOLON_MISSING</literal>
+ <literal>MULTIPART_INVALID_QUOTING</literal>. Each of these variables
+ covers one unusual (although sometimes legal) aspect of the request body
+ in <literal>multipart/form-data format</literal>. Your policies should
+ <emphasis>always</emphasis> contain a rule to check either this variable
+ (easier) or one or more individual variables (if you know exactly what
+ you want to accomplish). Depending on the rate of false positives and
+ your default policy you should decide whether to block or just warn when
+ the rule is triggered.</para>
+
+ <para>The best way to use this variable is as in the example
+ below:</para>
+
+ <programlisting>SecRule MULTIPART_STRICT_ERROR "!@eq 0" \
+"phase:2,t:none,log,deny,msg:'Multipart request body \
+failed strict validation: \
+PE %{REQBODY_PROCESSOR_ERROR}, \
+BQ %{MULTIPART_BOUNDARY_QUOTED}, \
+BW %{MULTIPART_BOUNDARY_WHITESPACE}, \
+DB %{MULTIPART_DATA_BEFORE}, \
+DA %{MULTIPART_DATA_AFTER}, \
+HF %{MULTIPART_HEADER_FOLDING}, \
+LF %{MULTIPART_LF_LINE}, \
+SM %{MULTIPART_SEMICOLON_MISSING}, \
+IQ %{MULTIPART_INVALID_QUOTING}'"</programlisting>
+
+ <para>The <literal>multipart/form-data</literal> parser was upgraded in
+ ModSecurity v2.1.3 to actively look for signs of evasion. Many variables
+ (as listed above) were added to expose various facts discovered during
+ the parsing process. The <literal>MULTIPART_STRICT_ERROR</literal>
+ variable is handy to check on all abnormalities at once. The individual
+ variables allow detection to be fine-tuned according to your
+ circumstances in order to reduce the number of false positives. Detailed
+ analysis of various evasion techniques covered will be released as a
+ separated document at a later date.</para>
+ </section>
+
+ <section>
+ <title><literal>MULTIPART_UNMATCHED_BOUNDARY</literal></title>
+
+ <para>Set to <literal>1</literal> when, during the parsing phase of a
+ <literal>multipart/request-body</literal>, ModSecurity encounters what
+ feels like a boundary but it is not. Such an event may occur when
+ evasion of ModSecurity is attempted.</para>
+
+ <para>The best way to use this variable is as in the example
+ below:</para>
+
+ <programlisting>SecRule MULTIPART_UNMATCHED_BOUNDARY "!@eq 0" \
+"phase:2,t:none,log,deny,msg:'Multipart parser detected a possible unmatched boundary.'"</programlisting>
+
+ <para>Change the rule from blocking to logging-only if many false
+ positives are encountered.</para>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">PATH_INFO</literal></title>
+
+ <para>Besides passing query information to a script/handler, you can
+ also pass additional data, known as extra path information, as part of
+ the URL. Example:</para>
+
+ <programlisting format="linespecific">SecRule<emphasis> PATH_INFO</emphasis> "^/(bin|etc|sbin|opt|usr)"</programlisting>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">QUERY_STRING</literal></title>
+
+ <para>This variable holds form data passed to the script/handler by
+ appending data after a question mark. Warning: Not URL-decoded.
+ Example:</para>
+
+ <programlisting format="linespecific">SecRule <emphasis>QUERY_STRING</emphasis> "attack"</programlisting>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">REMOTE_ADDR</literal></title>
+
+ <para>This variable holds the IP address of the remote client.
+ Example:</para>
+
+ <programlisting format="linespecific">SecRule <emphasis>REMOTE_ADDR</emphasis> "^192\.168\.1\.101$"</programlisting>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">REMOTE_HOST</literal></title>
+
+ <para>If HostnameLookUps are set to On, then this variable will hold the
+ DNS resolved remote host name. If it is set to Off, then it will hold
+ the remote IP address. Possible uses for this variable would be to deny
+ known bad client hosts or network blocks, or conversely, to allow in
+ authorized hosts. Example:</para>
+
+ <programlisting format="linespecific">SecRule <emphasis>REMOTE_HOST</emphasis> "\.evil\.network\org$"</programlisting>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">REMOTE_PORT</literal></title>
+
+ <para>This variable holds information on the source port that the client
+ used when initiating the connection to our web server. Example: in this
+ example, we are evaluating to see if the <literal>REMOTE_PORT</literal>
+ is less than 1024, which would indicate that the user is a privileged
+ user (root).</para>
+
+ <programlisting format="linespecific">SecRule <emphasis>REMOTE_PORT</emphasis> "@lt 1024" phase:1,log,pass,setenv:remote_port=privileged</programlisting>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">REMOTE_USER</literal></title>
+
+ <para>This variable holds the username of the authenticated user. If
+ there are no password (basic|digest) access controls in place, then this
+ variable will be empty. Example:</para>
+
+ <programlisting format="linespecific">SecRule <emphasis>REMOTE_USER</emphasis> "admin"</programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>This data will not be available in a proxy-mode deployment as the
+ authentication is not local.</para>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">REQBODY_PROCESSOR</literal></title>
+
+ <para>Built-in processors are <literal
+ moreinfo="none">URLENCODED</literal>,<literal moreinfo="none">
+ MULTIPART</literal>, and <literal moreinfo="none">XML</literal>.
+ Example:</para>
+
+ <programlisting format="linespecific">SecRule<emphasis> REQBODY_PROCESSOR</emphasis> "^XML$ chain
+SecRule XML "@validateDTD /opt/apache-frontend/conf/xml.dtd"</programlisting>
+ </section>
+
+ <section>
+ <title><literal
+ moreinfo="none">REQBODY_PROCESSOR_ERROR</literal></title>
+
+ <para>Possible values are 0 (no error) or 1 (error). This variable will
+ be set by request body processors (typically the
+ <classname>multipart/request-data</classname> parser or the XML parser)
+ when they fail to properly parse a request payload.</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecRule<emphasis> REQBODY_PROCESSOR_ERROR</emphasis> "@eq 1" deny,phase:2</programlisting>
+
+ <note>
+ <para>Your policies <emphasis>must</emphasis> have a rule to check
+ REQBODY_PROCESSOR_ERROR at the beginning of phase 2. Failure to do so
+ will leave the door open for impedance mismatch attacks. It is
+ possible, for example, that a payload that cannot be parsed by
+ ModSecurity can be successfully parsed by more tolerant parser
+ operating in the application. If your policy dictates blocking then
+ you should reject the request if error is detected. When operating in
+ detection-only mode your rule should alert with high severity when
+ request body processing fails.</para>
+ </note>
+ </section>
+
+ <section>
+ <title><literal
+ moreinfo="none">REQBODY_PROCESSOR_ERROR_MSG</literal></title>
+
+ <para>Empty, or contains the error message from the processor.
+ Example:</para>
+
+ <programlisting format="linespecific">SecRule<emphasis> REQBODY_PROCESSOR_ERROR_MSG</emphasis> "failed to parse" t:lowercase</programlisting>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">REQUEST_BASENAME</literal></title>
+
+ <para>This variable holds just the filename part of
+ <literal>REQUEST_FILENAME</literal> (e.g. index.php).</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecRule <emphasis>REQUEST_BASENAME</emphasis> "^login\.php$" phase:2,t:none,t:lowercase</programlisting>
+
+ <note>
+ <para>Please note that anti-evasion transformations are not applied to
+ this variable by default. <literal>REQUEST_BASENAME</literal> will
+ recognise both <literal>/</literal> and <literal>\</literal> as path
+ separators.</para>
+ </note>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">REQUEST_BODY</literal></title>
+
+ <para>This variable holds the data in the request body (including
+ <literal>POST_PAYLOAD</literal> data). <literal>REQUEST_BODY</literal>
+ should be used if the original order of the arguments is important
+ (<literal>ARGS</literal> should be used in all other cases).
+ Example:</para>
+
+ <programlisting format="linespecific">SecRule <emphasis>REQUEST_BODY</emphasis> "^username=\w{25,}\&password=\w{25,}\&Submit\=login$"</programlisting>
+
+ <note>
+ <para>This variable is only available if the
+ <literal>URLENCODED</literal> request body processor parsed a request
+ body. This will occur by default when an
+ <literal>application/x-www-form-urlencoded</literal> is detected, or
+ the <literal>URLENCODED</literal> request body parser is forced. As of
+ 2.5.7 it is possible to force the presence of the
+ <literal>REQUEST_BODY</literal> variable, but only when there is no
+ request body processor defined, using the
+ <literal>ctl:forceRequestBodyVariable</literal> option in the
+ <literal>REQUEST_HEADERS</literal> phase.</para>
+ </note>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">REQUEST_COOKIES</literal></title>
+
+ <para>This variable is a collection of all of the cookie data. Example:
+ the following example is using the Ampersand special operator to count
+ how many variables are in the collection. In this rule, it would trigger
+ if the request does not include any Cookie headers.</para>
+
+ <programlisting format="linespecific">SecRule<emphasis> &REQUEST_COOKIES</emphasis> "@eq 0"</programlisting>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">REQUEST_COOKIES_NAMES</literal></title>
+
+ <para>This variable is a collection of the cookie names in the request
+ headers. Example: the following rule will trigger if the JSESSIONID
+ cookie is not present.</para>
+
+ <programlisting format="linespecific">SecRule<emphasis> &REQUEST_COOKIES_NAMES:JSESSIONID</emphasis> "@eq 0"</programlisting>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">REQUEST_FILENAME</literal></title>
+
+ <para>This variable holds the relative <literal>REQUEST_URI</literal>
+ minus the <literal>QUERY_STRING</literal> part (e.g. /index.php).
+ Example:</para>
+
+ <programlisting format="linespecific">SecRule <emphasis>REQUEST_FILENAME</emphasis> "^/cgi-bin/login\.php$" phase:2,t:none,t:normalisePath</programlisting>
+
+ <note>
+ <para>Please note that anti-evasion transformations are not used on
+ <literal>REQUEST_FILENAME</literal> by default.</para>
+ </note>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">REQUEST_HEADERS</literal></title>
+
+ <para>This variable can be used as either a collection of all of the
+ request headers or can be used to specify individual headers (by using
+ REQUEST_HEADERS<emphasis>:Header-Name</emphasis>). Example: the first
+ example uses <literal>REQUEST_HEADERS</literal> as a collection and is
+ applying the <literal>validateUrlEncoding</literal> operator against all
+ headers.</para>
+
+ <programlisting format="linespecific">SecRule <emphasis>REQUEST_HEADERS</emphasis> "@validateUrlEncoding"</programlisting>
+
+ <para>Example: the second example is targeting only the
+ <literal>Host</literal> header.</para>
+
+ <programlisting format="linespecific">SecRule <emphasis>REQUEST_HEADERS:Host</emphasis> "^[\d\.]+$" \
+ "deny,log,status:400,msg:'Host header is a numeric IP address'"</programlisting>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">REQUEST_HEADERS_NAMES</literal></title>
+
+ <para>This variable is a collection of the names of all of the request
+ headers. Example:</para>
+
+ <programlisting format="linespecific">SecRule <emphasis>REQUEST_HEADERS_NAMES</emphasis> "^x-forwarded-for" \
+ "log,deny,status:403,t:lowercase,msg:'Proxy Server Used'"</programlisting>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">REQUEST_LINE</literal></title>
+
+ <para>This variable holds the complete request line sent to the server
+ (including the REQUEST_METHOD and HTTP version data). Example: this
+ example rule will trigger if the request method is something other than
+ GET, HEAD, POST or if the HTTP is something other than HTTP/0.9, 1.0 or
+ 1.1.</para>
+
+ <programlisting format="linespecific">SecRule <emphasis>REQUEST_LINE</emphasis> "!(^((?:(?:pos|ge)t|head))|http/(0\.9|1\.0|1\.1)$)" t:none,t:lowercase</programlisting>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">REQUEST_METHOD</literal></title>
+
+ <para>This variable holds the request method used by the client.</para>
+
+ <para>The following example will trigger if the request method is either
+ <literal>CONNECT</literal> or TRACE.</para>
+
+ <programlisting format="linespecific">SecRule <emphasis>REQUEST_METHOD</emphasis> "^((?:connect|trace))$" t:none,t:lowercase</programlisting>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">REQUEST_PROTOCOL</literal></title>
+
+ <para>This variable holds the request protocol version information.
+ Example:</para>
+
+ <programlisting format="linespecific">SecRule <emphasis>REQUEST_PROTOCOL</emphasis> "!^http/(0\.9|1\.0|1\.1)$" t:none,t:lowercase</programlisting>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">REQUEST_URI</literal></title>
+
+ <para>This variable holds the full URL including the
+ <literal>QUERY_STRING</literal> data (e.g. /index.php?p=X), however it
+ will never contain a domain name, even if it was provided on the request
+ line. It also does not include either the
+ <literal>REQUEST_METHOD</literal> or the HTTP version info.</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecRule <emphasis>REQUEST_URI</emphasis> "attack" phase:1,t:none,t:urlDecode,t:lowercase,t:normalisePath</programlisting>
+
+ <note>
+ <para>Please note that anti-evasion transformations are not used on
+ <literal>REQUEST_URI</literal> by default.</para>
+ </note>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">REQUEST_URI_RAW</literal></title>
+
+ <para>Same as <literal>REQUEST_URI</literal> but will contain the domain
+ name if it was provided on the request line (e.g.
+ http://www.example.com/index.php?p=X).</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecRule<emphasis> REQUEST_URI_RAW</emphasis> "http:/" phase:1,t:none,t:urlDecode,t:lowercase,t:normalisePath</programlisting>
+
+ <note>
+ <para>Please note that anti-evasion transformations are not used on
+ <literal>REQUEST_URI_RAW</literal> by default.</para>
+ </note>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">RESPONSE_BODY</literal></title>
+
+ <para>This variable holds the data for the response payload.</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecRule<emphasis> RESPONSE_BODY</emphasis> "ODBC Error Code"</programlisting>
+ </section>
+
+ <section>
+ <title><literal>RESPONSE_CONTENT_LENGTH</literal></title>
+
+ <para>Response body length in bytes. Can be available starting with
+ phase 3 but it does not have to be (as the length of response body is
+ not always known in advance.) If the size is not known this variable
+ will contain a zero. If <literal>RESPONSE_CONTENT_LENGTH</literal>
+ contains a zero in phase 5 that means the actual size of the response
+ body was 0.</para>
+
+ <para>The value of this variable can change between phases if the body
+ is modified. For example, in embedded mode
+ <literal>mod_deflate</literal> can compress the response body between
+ phases 4 and 5.</para>
+ </section>
+
+ <section>
+ <title><literal>RESPONSE_CONTENT_TYPE</literal></title>
+
+ <para>Response content type. Only available starting with phase
+ 3.</para>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">RESPONSE_HEADERS</literal></title>
+
+ <para>This variable is similar to the REQUEST_HEADERS variable and can
+ be used in the same manner. Example:</para>
+
+ <programlisting format="linespecific">SecRule<emphasis> RESPONSE_HEADERS</emphasis><emphasis>:X-Cache</emphasis> "MISS"</programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>This variable may not have access to some headers when running in
+ embedded-mode. Headers such as Server, Date, Connection and Content-Type
+ are added during a later Apache hook just prior to sending the data to
+ the client. This data should be available, however, either during
+ ModSecurity phase:5 (logging) or when running in proxy-mode.</para>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">RESPONSE_HEADERS_NAMES</literal></title>
+
+ <para>This variable is a collection of the response header names.
+ Example:</para>
+
+ <programlisting format="linespecific">SecRule <emphasis>RESPONSE_HEADERS_NAMES</emphasis> "Set-Cookie"</programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>Same limitations as RESPONSE_HEADERS with regards to access to
+ some headers in embedded-mode.</para>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">RESPONSE_PROTOCOL</literal></title>
+
+ <para>This variable holds the HTTP response protocol information.
+ Example:</para>
+
+ <programlisting format="linespecific">SecRule <emphasis>RESPONSE_PROTOCOL</emphasis> "^HTTP\/0\.9"</programlisting>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">RESPONSE_STATUS</literal></title>
+
+ <para>This variable holds the HTTP response status code as generated by
+ Apache. Example:</para>
+
+ <programlisting format="linespecific">SecRule <emphasis>RESPONSE_STATUS</emphasis> "^[45]"</programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>This directive may not work as expected in embedded-mode as Apache
+ handles many of the stock response codes (404, 401, etc...) earlier in
+ Phase 2. This variable should work as expected in a proxy-mode
+ deployment.</para>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">RULE</literal></title>
+
+ <para>This variable provides access to the <literal
+ moreinfo="none">id</literal>, <literal moreinfo="none">rev</literal>,
+ <literal moreinfo="none">severity</literal>, <literal
+ moreinfo="none">logdata</literal>, and <literal
+ moreinfo="none">msg</literal> fields of the rule that triggered the
+ action. Only available for expansion in action strings (e.g.<literal
+ moreinfo="none">setvar:tx.varname=%{rule.id}</literal>). Example:</para>
+
+ <programlisting format="linespecific">SecRule &REQUEST_HEADERS:Host "@eq 0" "log,deny,setvar:tx.varname=<emphasis>%{rule.id}</emphasis>"</programlisting>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">SCRIPT_BASENAME</literal></title>
+
+ <para>This variable holds just the local filename part of
+ SCRIPT_FILENAME. Example:</para>
+
+ <programlisting format="linespecific">SecRule <emphasis>SCRIPT_BASENAME</emphasis> "^login\.php$"</programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>This variable is not available in proxy mode.</para>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">SCRIPT_FILENAME</literal></title>
+
+ <para>This variable holds the full path on the server to the requested
+ script. (e.g. SCRIPT_NAME plus the server path). Example:</para>
+
+ <programlisting format="linespecific">SecRule <emphasis>SCRIPT_FILENAME</emphasis> "^/usr/local/apache/cgi-bin/login\.php$"</programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>This variable is not available in proxy mode.</para>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">SCRIPT_GID</literal></title>
+
+ <para>This variable holds the group id (numerical value) of the group
+ owner of the script. Example:</para>
+
+ <programlisting format="linespecific">SecRule <emphasis>SCRIPT_GID</emphasis> "!^46$"</programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>This variable is not available in proxy mode.</para>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">SCRIPT_GROUPNAME</literal></title>
+
+ <para>This variable holds the group name of the group owner of the
+ script. Example:</para>
+
+ <programlisting format="linespecific">SecRule<emphasis> SCRIPT_GROUPNAME</emphasis> "!^apache$"</programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>This variable is not available in proxy mode.</para>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">SCRIPT_MODE</literal></title>
+
+ <para>This variable holds the script's permissions mode data (numerical
+ - 1=execute, 2=write, 4=read and 7=read/write/execute). Example: will
+ trigger if the script has the WRITE permissions set.</para>
+
+ <programlisting format="linespecific">SecRule <emphasis>SCRIPT_MODE</emphasis> "^(2|3|6|7)$"</programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>This variable is not available in proxy mode.</para>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">SCRIPT_UID</literal></title>
+
+ <para>This variable holds the user id (numerical value) of the owner of
+ the script. Example: the example rule below will trigger if the UID is
+ not 46 (the Apache user).</para>
+
+ <programlisting format="linespecific">SecRule<emphasis> SCRIPT_UID</emphasis> "!^46$"</programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>This variable is not available in proxy mode.</para>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">SCRIPT_USERNAME</literal></title>
+
+ <para>This variable holds the username of the owner of the script.
+ Example:</para>
+
+ <programlisting format="linespecific">SecRule <emphasis>SCRIPT_USERNAME</emphasis> "!^apache$"</programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>This variable is not available in proxy mode.</para>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">SERVER_ADDR</literal></title>
+
+ <para>This variable contains the IP address of the server.
+ Example:</para>
+
+ <programlisting format="linespecific">SecRule<emphasis> SERVER_ADDR</emphasis> "^192\.168\.1\.100$"</programlisting>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">SERVER_NAME</literal></title>
+
+ <para>This variable contains the server's hostname or IP address.
+ Example:</para>
+
+ <programlisting format="linespecific">SecRule <emphasis>SERVER_NAME</emphasis> "hostname\.com$"</programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>This data is taken from the Host header submitted in the client
+ request.</para>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">SERVER_PORT</literal></title>
+
+ <para>This variable contains the local port that the web server is
+ listening on. Example:</para>
+
+ <programlisting format="linespecific">SecRule <emphasis>SERVER_PORT</emphasis> "^80$"</programlisting>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">SESSION</literal></title>
+
+ <para>This variable is a collection, available only after <literal
+ moreinfo="none">setsid</literal> is executed. Example: the following
+ example shows how to initialize a SESSION collection with setsid, how to
+ use setvar to increase the session.score values, how to set the
+ session.blocked variable and finally how to deny the connection based on
+ the session:blocked value.</para>
+
+ <programlisting format="linespecific">SecRule REQUEST_COOKIES:PHPSESSID !^$ chain,nolog,pass
+SecAction setsid:%{REQUEST_COOKIES.PHPSESSID}
+SecRule REQUEST_URI "^/cgi-bin/finger$" \
+ "phase:2,t:none,t:lowercase,t:normalisePath,pass,log,setvar:<emphasis>session.score</emphasis>=+10"
+SecRule<emphasis> SESSION:SCORE</emphasis> "@gt 50" "pass,log,setvar:<emphasis>session.blocked</emphasis>=1"
+SecRule<emphasis> SESSION:BLOCKED</emphasis> "@eq 1" "log,deny,status:403"</programlisting>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">SESSIONID</literal></title>
+
+ <para>This variable is the value set with <literal
+ moreinfo="none">setsid</literal>. Example:</para>
+
+ <programlisting format="linespecific">SecRule <emphasis>SESSIONID</emphasis> !^$ chain,nolog,pass
+SecRule REQUEST_COOKIES:PHPSESSID !^$
+SecAction setsid:%{REQUEST_COOKIES.PHPSESSID}</programlisting>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">TIME</literal></title>
+
+ <para>This variable holds a formatted string representing the time
+ (hour:minute:second). Example:</para>
+
+ <programlisting format="linespecific">SecRule<emphasis> TIME</emphasis> "^(([1](8|9))|([2](0|1|2|3))):\d{2}:\d{2}$"</programlisting>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">TIME_DAY</literal></title>
+
+ <para>This variable holds the current date (1-31). Example: this rule
+ would trigger anytime between the 10th and 20th days of the
+ month.</para>
+
+ <programlisting format="linespecific">SecRule <emphasis>TIME_DAY</emphasis> "^(([1](0|1|2|3|4|5|6|7|8|9))|20)$"</programlisting>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">TIME_EPOCH</literal></title>
+
+ <para>This variable holds the time in seconds since 1970.
+ Example:</para>
+
+ <programlisting format="linespecific">SecRule <emphasis>TIME_EPOCH</emphasis> "@gt 1000"</programlisting>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">TIME_HOUR</literal></title>
+
+ <para>This variable holds the current hour (0-23). Example: this rule
+ would trigger during "off hours".</para>
+
+ <programlisting format="linespecific">SecRule<emphasis> TIME_HOUR</emphasis> "^(0|1|2|3|4|5|6|[1](8|9)|[2](0|1|2|3))$"</programlisting>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">TIME_MIN</literal></title>
+
+ <para>This variable holds the current minute (0-59). Example: this rule
+ would trigger during the last half hour of every hour.</para>
+
+ <programlisting format="linespecific">SecRule <emphasis>TIME_MIN</emphasis> "^(3|4|5)"</programlisting>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">TIME_MON</literal></title>
+
+ <para>This variable holds the current month (0-11). Example: this rule
+ would match if the month was either November (10) or December
+ (11).</para>
+
+ <programlisting format="linespecific">SecRule<emphasis> TIME_MON</emphasis> "^1"</programlisting>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">TIME_SEC</literal></title>
+
+ <para>This variable holds the current second count (0-59).
+ Example:</para>
+
+ <programlisting format="linespecific">SecRule <emphasis>TIME_SEC</emphasis> "@gt 30"</programlisting>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">TIME_WDAY</literal></title>
+
+ <para>This variable holds the current weekday (0-6). Example: this rule
+ would trigger only on week-ends (Saturday and Sunday).</para>
+
+ <programlisting format="linespecific">SecRule <emphasis>TIME_WDAY</emphasis> "^(0|6)$"</programlisting>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">TIME_YEAR</literal></title>
+
+ <para>This variable holds the current four-digit year data.
+ Example:</para>
+
+ <programlisting format="linespecific">SecRule <emphasis>TIME_YEAR</emphasis> "^2006$"</programlisting>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">TX</literal></title>
+
+ <para>Transaction Collection. This is used to store pieces of data,
+ create a transaction anomaly score, and so on. Transaction variables are
+ set for 1 request/response cycle. The scoring and evaluation will not
+ last past the current request/response process. Example: In this
+ example, we are using setvar to increase the tx.score value by 5 points.
+ We then have a follow-up run that will evaluate the transactional score
+ this request and then it will decided whether or not to allow/deny the
+ request through.</para>
+
+ <para>The following is a list of reserved names in the TX
+ collection:</para>
+
+ <itemizedlist>
+ <listitem>
+ <para><literal moreinfo="none">TX:0</literal> - The matching value
+ when using the <literal moreinfo="none">@rx</literal> or <literal
+ moreinfo="none">@pm</literal> operator with the <literal
+ moreinfo="none">capture</literal> action.</para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">TX:1-TX:9</literal> - The captured
+ subexpression value when using the <literal
+ moreinfo="none">@rx</literal> operator with capturing parens and the
+ <literal moreinfo="none">capture</literal> action.</para>
+ </listitem>
+ </itemizedlist>
+
+ <programlisting format="linespecific">SecRule WEBSERVER_ERROR_LOG "does not exist" "phase:5,pass,<emphasis>setvar:tx.score=+5</emphasis>"
+SecRule<emphasis> TX:SCORE</emphasis> "@gt 20" deny,log</programlisting>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">USERID</literal></title>
+
+ <para>This variable is the value set with <literal
+ moreinfo="none">setuid</literal>. Example:</para>
+
+ <programlisting format="linespecific">SecAction setuid:%{REMOTE_USER},nolog
+SecRule<emphasis> USERID</emphasis> "Admin"</programlisting>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">WEBAPPID</literal></title>
+
+ <para>This variable is the value set with <literal
+ moreinfo="none">SecWebAppId</literal>. Example:</para>
+
+ <programlisting format="linespecific">SecWebAppId "WebApp1"
+SecRule<emphasis> WEBAPPID</emphasis> "WebApp1" "chain,log,deny,status:403"
+SecRule REQUEST_HEADERS:Transfer-Encoding "!^$"</programlisting>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">WEBSERVER_ERROR_LOG</literal></title>
+
+ <para>Contains zero or more error messages produced by the web server.
+ Access to this variable is in phase:5 (logging). Example:</para>
+
+ <programlisting format="linespecific">SecRule<emphasis> WEBSERVER_ERROR_LOG</emphasis> "File does not exist" "phase:5,setvar:tx.score=+5"</programlisting>
+ </section>
+
+ <section>
+ <title><literal moreinfo="none">XML</literal></title>
+
+ <para>Can be used standalone (as a target for
+ <literal>validateDTD</literal> and <literal>validateSchema</literal>) or
+ with an XPath expression parameter (which makes it a valid target for
+ any function that accepts plain text). Example using XPath:</para>
+
+ <programlisting format="linespecific">SecDefaultAction log,deny,status:403,phase:2
+SecRule REQUEST_HEADERS:Content-Type ^text/xml$ \
+ phase:1,t:lowercase,nolog,pass,ctl:requestBodyProcessor=<emphasis>XML</emphasis>
+SecRule REQBODY_PROCESSOR "<emphasis>!^XML$</emphasis>" skipAfter:12345
+SecRule <emphasis>XML:/employees/employee/name/text()</emphasis> Fred
+SecRule <emphasis>XML:/xq:employees/employee/name/text()</emphasis> Fred \
+ id:12345,xmlns:xq=http://www.example.com/employees</programlisting>
+
+ <para>The first XPath expression does not use namespaces. It would match
+ against payload such as this one:</para>
+
+ <programlisting><employees>
+ <employee>
+ <name>Fred Jones</name>
+ <address location="home">
+ <street>900 Aurora Ave.</street>
+ <city>Seattle</city>
+ <state>WA</state>
+ <zip>98115</zip>
+ </address>
+ <address location="work">
+ <street>2011 152nd Avenue NE</street>
+ <city>Redmond</city>
+ <state>WA</state>
+ <zip>98052</zip>
+ </address>
+ <phone location="work">(425)555-5665</phone>
+ <phone location="home">(206)555-5555</phone>
+ <phone location="mobile">(206)555-4321</phone>
+ </employee>
+</employees></programlisting>
+
+ <para>The second XPath expression does use namespaces. It would match
+ the following payload:</para>
+
+ <programlisting><xq:employees xmlns:xq="http://www.example.com/employees">
+ <employee>
+ <name>Fred Jones</name>
+ <address location="home">
+ <street>900 Aurora Ave.</street>
+ <city>Seattle</city>
+ <state>WA</state>
+ <zip>98115</zip>
+ </address>
+ <address location="work">
+ <street>2011 152nd Avenue NE</street>
+ <city>Redmond</city>
+ <state>WA</state>
+ <zip>98052</zip>
+ </address>
+ <phone location="work">(425)555-5665</phone>
+ <phone location="home">(206)555-5555</phone>
+ <phone location="mobile">(206)555-4321</phone>
+ </employee>
+</xq:employees></programlisting>
+
+ <para>Note the different namespace used in the second example.</para>
+
+ <para>To learn more about XPath we suggest the following
+ resources:</para>
+
+ <orderedlist>
+ <listitem>
+ <para><ulink url="http://www.w3.org/TR/xpath">XPath
+ Standard</ulink></para>
+ </listitem>
+
+ <listitem>
+ <para><ulink
+ url="http://www.zvon.org/xxl/XPathTutorial/General/examples.html">XPath
+ Tutorial</ulink></para>
+ </listitem>
+ </orderedlist>
+ </section>
+ </section>
+
+ <section id="transformation-functions">
+ <title>Transformation functions</title>
+
+ <para>When ModSecurity receives request or response information, it makes
+ a copy of this data and places it into memory. It is on this data in
+ memory that transformation functions are applied. The raw request/response
+ data is never altered. Transformation functions are used to transform a
+ variable before testing it in a rule.</para>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>There are no default transformation functions as there were in
+ previous versions of ModSecurity.</para>
+
+ <para>The following rule will ensure that an attacker does not use mixed
+ case in order to evade the ModSecurity rule:</para>
+
+ <para><programlisting format="linespecific">SecRule ARGS:p "xp_cmdshell" <emphasis>"t:lowercase"</emphasis></programlisting>
+ multiple transformation actions can be used in the same rule, for example
+ the following rule also ensures that an attacker does not use URL encoding
+ (%xx encoding) for evasion. Note the order of the transformation
+ functions, which ensures that a URL encoded letter is first decoded and
+ than translated to lower case.</para>
+
+ <para><programlisting format="linespecific">SecRule ARGS:p "xp_cmdshell" <emphasis>"t:urlDecode,t:lowercase"</emphasis></programlisting></para>
+
+ <para>One can use the SecDefaultAction command to ensure the translation
+ occurs for every rule until the next. Note that transformation actions are
+ additive, so if a rule explicitly list actions, the translation actions
+ set by SecDefaultAction are still performed.</para>
+
+ <para><programlisting format="linespecific">SecDefaultAction <emphasis>t:urlDecode,t:lowercase</emphasis></programlisting></para>
+
+ <para>The following transformation functions are supported:</para>
+
+ <section>
+ <title><literal>base64Decode</literal></title>
+
+ <para>This function decodes a base64-encoded string.</para>
+ </section>
+
+ <section>
+ <title><literal>base64Encode</literal></title>
+
+ <para>This function encodes input string using base64 encoding.</para>
+ </section>
+
+ <section>
+ <title><literal>compressWhitespace</literal></title>
+
+ <para>It converts whitespace characters (32, \f, \t, \n, \r, \v, 160) to
+ spaces (ASCII 32) and then compresses multiple consecutive space
+ characters into one.</para>
+ </section>
+
+ <section>
+ <title>cssDecode</title>
+
+ <para>Decodes CSS-encoded characters, as specified at <ulink
+ url="http://www.w3.org/TR/REC-CSS2/syndata.html">http://www.w3.org/TR/REC-CSS2/syndata.html</ulink>.
+ This function uses only up to two bytes in the decoding process, meaning
+ it is useful to uncover ASCII characters (that wouldn't normally be
+ encoded) encoded using CSS encoding, or to counter evasion which is a
+ combination of a backslash and non-hexadecimal characters (e.g.
+ <literal>ja\vascript</literal> is equivalent to
+ <literal>javascript</literal>).</para>
+ </section>
+
+ <section>
+ <title><literal>escapeSeqDecode</literal></title>
+
+ <para>This function decode ANSI C escape sequences:<literal
+ moreinfo="none"> \a</literal>,<literal moreinfo="none"> \b</literal>,
+ <literal moreinfo="none">\f</literal>, <literal
+ moreinfo="none">\n</literal>, <literal moreinfo="none">\r</literal>,
+ <literal moreinfo="none">\t</literal>, <literal
+ moreinfo="none">\v</literal>, <literal moreinfo="none">\\</literal>,
+ <literal moreinfo="none">\?</literal>, <literal
+ moreinfo="none">\'</literal>, <literal moreinfo="none">\"</literal>,
+ <literal moreinfo="none">\xHH</literal> (hexadecimal), <literal
+ moreinfo="none">\0OOO</literal> (octal). Invalid encodings are left in
+ the output.</para>
+ </section>
+
+ <section>
+ <title><literal>hexDecode</literal></title>
+
+ <para>This function decodes a hex-encoded string.</para>
+ </section>
+
+ <section>
+ <title><literal>hexEncode</literal></title>
+
+ <para>This function encodes input as hex-encoded string.</para>
+ </section>
+
+ <section>
+ <title><literal>htmlEntityDecode</literal></title>
+
+ <para>This function decodes HTML entities present in input. The
+ following variants are supported:</para>
+
+ <itemizedlist>
+ <listitem>
+ <para><literal moreinfo="none">&#xHH</literal> and <literal
+ moreinfo="none">&#xHH;</literal> (where H is any hexadecimal
+ number)</para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">&#DDD</literal> and <literal
+ moreinfo="none">&#DDD;</literal> (where D is any decimal
+ number)</para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">&quot</literal> and <literal
+ moreinfo="none">&quot;</literal></para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">&nbsp</literal> and <literal
+ moreinfo="none">&nbsp;</literal></para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">&lt</literal> and <literal
+ moreinfo="none">&lt;</literal></para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">&gt</literal> and <literal
+ moreinfo="none">&gt;</literal></para>
+ </listitem>
+ </itemizedlist>
+
+ <para>This function will convert any entity into a single byte only,
+ possibly resulting in a loss of information. It is thus useful to
+ uncover bytes that would otherwise not need to be encoded, but it cannot
+ do anything with the characters from the range above 255.</para>
+ </section>
+
+ <section>
+ <title><literal>jsDecode</literal></title>
+
+ <para>Decodes JavaScript escape sequences. If a
+ <literal>\uHHHH</literal> code is in the range of
+ <literal>FF01</literal>-<literal>FF5E</literal> (the full width ASCII
+ codes), then the higher byte is used to detect and adjust the lower
+ byte. Otherwise, only the lower byte will be used and the higher byte
+ zeroed.</para>
+ </section>
+
+ <section>
+ <title><literal>length</literal></title>
+
+ <para>This function converts the input to its numeric length (count of
+ bytes).</para>
+ </section>
+
+ <section>
+ <title><literal>lowercase</literal></title>
+
+ <para>This function converts all characters to lowercase using the
+ current C locale.</para>
+ </section>
+
+ <section>
+ <title><literal>md5</literal></title>
+
+ <para>This function calculates an MD5 hash from input. Note that the
+ computed hash is in a raw binary form and may need encoded into text to
+ be usable (for example: <literal>t:md5,t:hexEncode</literal>).</para>
+ </section>
+
+ <section>
+ <title><literal><literal>none</literal></literal></title>
+
+ <para>Not an actual transformation function, but an instruction to
+ ModSecurity to remove all transformation functions associated with the
+ current rule.</para>
+ </section>
+
+ <section>
+ <title><literal>normalisePath</literal></title>
+
+ <para>This function will remove multiple slashes, self-references and
+ directory back-references (except when they are at the beginning of the
+ input).</para>
+ </section>
+
+ <section>
+ <title><literal>normalisePathWin</literal></title>
+
+ <para>Same as <literal>normalisePath</literal>, but will first convert
+ backslash characters to forward slashes.</para>
+ </section>
+
+ <section>
+ <title><literal>parityEven7bit</literal></title>
+
+ <para>This function calculates even parity of 7-bit data replacing the
+ 8th bit of each target byte with the calculated parity bit.</para>
+ </section>
+
+ <section>
+ <title><literal>parityOdd7bit</literal></title>
+
+ <para>This function calculates odd parity of 7-bit data replacing the
+ 8th bit of each target byte with the calculated parity bit.</para>
+ </section>
+
+ <section>
+ <title><literal>parityZero7bit</literal></title>
+
+ <para>This function calculates zero parity of 7-bit data replacing the
+ 8th bit of each target byte with a zero parity bit which allows
+ inspection of even/odd parity 7bit data as ASCII7 data.</para>
+ </section>
+
+ <section>
+ <title><literal>removeNulls</literal></title>
+
+ <para>This function removes NULL bytes from input.</para>
+ </section>
+
+ <section>
+ <title><literal>removeWhitespace</literal></title>
+
+ <para>This function removes all whitespace characters from input.</para>
+ </section>
+
+ <section>
+ <title><literal>replaceComments</literal></title>
+
+ <para>This function replaces each occurrence of a C-style comments
+ (<literal moreinfo="none">/* ... */</literal>) with a single space
+ (multiple consecutive occurrences of a space will not be compressed).
+ Unterminated comments will too be replaced with a space (ASCII 32).
+ However, a standalone termination of a comment (<literal
+ moreinfo="none">*/</literal>) will not be acted upon.</para>
+ </section>
+
+ <section>
+ <title><literal>replaceNulls</literal></title>
+
+ <para>This function is enabled by default. It replaces NULL bytes in
+ input with spaces (ASCII 32).</para>
+ </section>
+
+ <section>
+ <title><literal>urlDecode</literal></title>
+
+ <para>This function decodes an URL-encoded input string. Invalid
+ encodings (i.e. the ones that use non-hexadecimal characters, or the
+ ones that are at the end of string and have one or two characters
+ missing) will not be converted. If you want to detect invalid encodings
+ use the <literal moreinfo="none">@validateUrlEncoding</literal>
+ operator. The transformation function should not be used against
+ variables that have already been URL-decoded unless it is your intention
+ to perform URL decoding twice!</para>
+ </section>
+
+ <section>
+ <title><literal>urlDecodeUni</literal></title>
+
+ <para>In addition to decoding <literal>%xx</literal> like <literal
+ moreinfo="none">urlDecode, urlDecodeUni</literal> also decodes <literal
+ moreinfo="none">%uXXXX</literal> encoding. If the code is in the range
+ of <literal>FF01</literal>-<literal>FF5E</literal> (the full width ASCII
+ codes), then the higher byte is used to detect and adjust the lower
+ byte. Otherwise, only the lower byte will be used and the higher byte
+ zeroed.</para>
+ </section>
+
+ <section>
+ <title><literal>urlEncode</literal></title>
+
+ <para>This function encodes input using URL encoding.</para>
+ </section>
+
+ <section>
+ <title><literal>sha1</literal></title>
+
+ <para>This function calculates a SHA1 hash from input. Note that the
+ computed hash is in a raw binary form and may need encoded to be usable
+ (for example: <literal>t:sha1,t:hexEncode</literal>).</para>
+ </section>
+
+ <section>
+ <title><literal>trimLeft</literal></title>
+
+ <para>This function removes whitespace from the left side of
+ input.</para>
+ </section>
+
+ <section>
+ <title><literal>trimRight</literal></title>
+
+ <para>This function removes whitespace from the right side of
+ input.</para>
+ </section>
+
+ <section>
+ <title><literal>trim</literal></title>
+
+ <para>This function removes whitespace from both the left and right
+ sides of input.</para>
+ </section>
+ </section>
+
+ <section id="actions">
+ <title>Actions</title>
+
+ <para>Each action belongs to one of five groups:</para>
+
+ <variablelist>
+ <varlistentry>
+ <term>Disruptive actions</term>
+
+ <listitem>
+ <para>Cause ModSecurity to do something. In many cases something
+ means block transaction, but not in all. For example, the allow
+ action is classified as a disruptive action, but it does the
+ opposite of blocking. There can only be one disruptive action per
+ rule (if there are multiple disruptive actions present, or
+ inherited, only the last one will take effect), or rule chain (in a
+ chain, a disruptive action can only appear in the first
+ rule).</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term>Non-disruptive actions</term>
+
+ <listitem>
+ <para>Do something, but that something does not and cannot affect
+ the rule processing flow. Setting a variable, or changing its value
+ is an example of a non-disruptive action. Non-disruptive action can
+ appear in any rule, including each rule belonging to a chain.</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term>Flow actions</term>
+
+ <listitem>
+ <para>These actions affect the rule flow (for example
+ <literal>skip</literal> or <literal>skipAfter</literal>).</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term>Meta-data actions</term>
+
+ <listitem>
+ <para>Meta-data actions are used to provide more information about
+ rules. Examples include <literal>id</literal>,
+ <literal>rev</literal>, <literal>severity</literal> and
+ <literal>msg</literal>.</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term>Data actions</term>
+
+ <listitem>
+ <para>Not really actions, these are mere containers that hold data
+ used by other actions. For example, the <literal>status</literal>
+ action holds the status that will be used for blocking (if it takes
+ place).</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+
+ <section>
+ <title><literal>allow</literal></title>
+
+ <para><emphasis>Description:</emphasis> Stops rule processing on a
+ successful match and allows the transaction to proceed.</para>
+
+ <para><emphasis>Action Group:</emphasis> Disruptive</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecRule REMOTE_ADDR "^192\.168\.1\.100$" nolog,phase:1,<emphasis>allow</emphasis></programlisting>
+
+ <para>Prior to ModSecurity 2.5 the <literal>allow</literal> action would
+ only affect the current phase. An <literal>allow</literal> in phase 1
+ would skip processing the remaining rules in phase 1 but the rules from
+ phase 2 would execute. Starting with v2.5.0 <literal>allow</literal> was
+ enhanced to allow for fine-grained control of what is done. The
+ following rules now apply:</para>
+
+ <orderedlist>
+ <listitem>
+ <para>If used one its own, like in the example above,
+ <literal>allow</literal> will affect the entire transaction,
+ stopping processing of the current phase but also skipping over all
+ other phases apart from the logging phase. (The logging phase is
+ special; it is designed to always execute.)</para>
+ </listitem>
+
+ <listitem>
+ <para>If used with parameter "phase", <literal>allow</literal> will
+ cause the engine to stop processing the current phase. Other phases
+ will continue as normal.</para>
+ </listitem>
+
+ <listitem>
+ <para>If used with parameter "request", <literal>allow</literal>
+ will cause the engine to stop processing the current phase. The next
+ phase to be processed will be phase
+ <literal>RESPONSE_HEADERS</literal>.</para>
+ </listitem>
+ </orderedlist>
+
+ <para>Examples:</para>
+
+ <programlisting># Do not process request but process response.
+SecAction phase:1,allow:request
+
+# Do not process transaction (request and response).
+SecAction phase:1,allow
+</programlisting>
+
+ <para>If you want to allow a response through, put a rule in phase
+ <literal>RESPONSE_HEADERS</literal> and simply use
+ <literal>allow</literal> on its own:</para>
+
+ <programlisting># Allow response through.
+SecAction phase:3,allow</programlisting>
+ </section>
+
+ <section>
+ <title>append</title>
+
+ <para><emphasis>Description:</emphasis> Appends text given as parameter
+ to the end of response body. For this action to work content injection
+ must be enabled by setting <literal>SecContentInjection</literal> to
+ <literal>On</literal>. Also make sure you check the content type of the
+ response before you make changes to it (e.g. you don't want to inject
+ stuff into images).</para>
+
+ <para><emphasis>Action Group:</emphasis> Non-disruptive</para>
+
+ <para><emphasis>Processing Phases:</emphasis> 3 and 4.</para>
+
+ <para>Example:</para>
+
+ <programlisting>SecRule RESPONSE_CONTENT_TYPE "^text/html" "nolog,pass,<emphasis>append:'<hr>Footer'</emphasis>"</programlisting>
+
+ <note>
+ <para>While macro expansion is allowed in the additional content, you
+ are strongly cautioned against inserting user defined data
+ fields.</para>
+ </note>
+ </section>
+
+ <section>
+ <title><literal>auditlog</literal></title>
+
+ <para><emphasis>Description:</emphasis> Marks the transaction for
+ logging in the audit log.</para>
+
+ <para><emphasis>Action Group:</emphasis> Non-disruptive</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecRule REMOTE_ADDR "^192\.168\.1\.100$" <emphasis>auditlog</emphasis>,phase:1,allow</programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>The auditlog action is now explicit if log is already
+ specified.</para>
+ </section>
+
+ <section>
+ <title><literal>block</literal></title>
+
+ <para><emphasis>Description:</emphasis> Performs the default disruptive
+ action.</para>
+
+ <para><emphasis>Action Group:</emphasis> Disruptive</para>
+
+ <para>It is intended to be used by ruleset writers to signify that the
+ rule was intended to block and leaves the "how" up to the administrator.
+ This action is currently a placeholder which will just be replaced by
+ the action from the last <literal>SecDefaultAction</literal> in the same
+ context. Using the <literal>block</literal> action with the
+ <literal>SecRuleUpdateActionById</literal> directive allows a rule to be
+ reverted back to the previous <literal>SecDefaultAction</literal>
+ disruptive action.</para>
+
+ <para>In future versions of ModSecurity, more control and functionality
+ will be added to define "how" to block.</para>
+
+ <para>Examples:</para>
+
+ <para>In the following example, the second rule will "deny" because of
+ the SecDefaultAction disruptive action. The intent being that the
+ administrator could easily change this to another disruptive action
+ without editing the actual rules.</para>
+
+ <programlisting format="linespecific">### Administrator defines "how" to block (deny,status:403)...
+SecDefaultAction phase:2,deny,status:403,log,auditlog
+
+### Included from a rulest...
+# Intent is to warn for this User Agent
+SecRule REQUEST_HEADERS:User-Agent "perl" "phase:2,<emphasis>pass</emphasis>,msg:'Perl based user agent identified'"
+# Intent is to block for this User Agent, "how" described in SecDefaultAction
+SecRule REQUEST_HEADERS:User-Agent "nikto" "phase:2,<emphasis>block</emphasis>,msg:'Nikto Scanners Identified'"</programlisting>
+
+ <para>In the following example, The rule is reverted back to the
+ <literal>pass</literal> action defined in the SecDefaultAction directive
+ by using the <literal>SecRuleUpdateActionById</literal> directive in
+ conjuction with the <literal>block</literal> action. This allows an
+ administrator to override an action in a 3rd party rule without
+ modifying the rule itself.</para>
+
+ <programlisting format="linespecific">### Administrator defines "how" to block (deny,status:403)...
+SecDefaultAction phase:2,pass,log,auditlog
+
+### Included from a rulest...
+SecRule REQUEST_HEADERS:User-Agent "nikto" "id:1,phase:2,<emphasis>deny</emphasis>,msg:'Nikto Scanners Identified'"
+
+### Added by the administrator
+SecRuleUpdateActionById 1 "<emphasis>block</emphasis>"</programlisting>
+ </section>
+
+ <section>
+ <title><literal>capture</literal></title>
+
+ <para><emphasis>Description:</emphasis> When used together with the
+ regular expression operator, capture action will create copies of
+ regular expression captures and place them into the transaction variable
+ collection. Up to ten captures will be copied on a successful pattern
+ match, each with a name consisting of a digit from 0 to 9.</para>
+
+ <para><emphasis>Action Group:</emphasis> Non-disruptive</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecRule REQUEST_BODY "^username=(\w{25,})" phase:2,<emphasis>capture</emphasis>,t:none,chain
+SecRule TX:1 "(?:(?:a(dmin|nonymous)))"</programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>The 0 data captures the entire REGEX match and 1 captures the data
+ in the first parens, etc...</para>
+ </section>
+
+ <section>
+ <title><literal>chain</literal></title>
+
+ <para><emphasis>Description:</emphasis> Chains the rule where the action
+ is placed with the rule that immediately follows it. The result is
+ called a<emphasis> rule chain</emphasis>. Chained rules allow for more
+ complex rule matches where you want to use a number of different
+ VARIABLES to create a better rule and to help prevent false
+ positives.</para>
+
+ <para><emphasis>Action Group:</emphasis> Flow</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific"># Refuse to accept POST requests that do
+# not specify request body length. Do note that
+# this rule should be preceeded by a rule that verifies
+# only valid request methods (e.g. GET, HEAD and POST) are used.
+SecRule REQUEST_METHOD ^POST$<emphasis> chain</emphasis>,t:none
+SecRule REQUEST_HEADERS:Content-Length ^$ t:none</programlisting>
+
+ <note>
+ <para>In programming language concepts, think of chained rules
+ somewhat similar to AND conditional statements. The actions specified
+ in the first portion of the chained rule will only be triggered if all
+ of the variable checks return positive hits. If one aspect of the
+ chained rule is negative, then the entire rule chain is negative. Also
+ note that disruptive actions, execution phases, metadata actions (id,
+ rev, msg), skip and skipAfter actions can only be specified on by the
+ chain starter rule.</para>
+ </note>
+ </section>
+
+ <section>
+ <title><literal>ctl</literal></title>
+
+ <para><emphasis>Description:</emphasis> The ctl action allows
+ configuration options to be updated for the transaction.</para>
+
+ <para><emphasis>Action Group:</emphasis> Non-disruptive</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific"># Parse requests with Content-Type "text/xml" as XML
+SecRule REQUEST_CONTENT_TYPE ^text/xml nolog,pass,<emphasis>ctl:requestBodyProcessor=XML</emphasis></programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>The following configuration options are supported:</para>
+
+ <orderedlist continuation="restarts" inheritnum="ignore">
+ <listitem>
+ <para><literal moreinfo="none">auditEngine</literal></para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">auditLogParts</literal></para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">debugLogLevel</literal></para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">ruleRemoveById</literal> (single rule
+ ID, or a single rule ID range accepted as parameter)</para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">requestBodyAccess</literal></para>
+ </listitem>
+
+ <listitem>
+ <para><literal
+ moreinfo="none">forceRequestBodyVariable</literal></para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">requestBodyLimit</literal></para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">requestBodyProcessor</literal></para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">responseBodyAccess</literal></para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">responseBodyLimit</literal></para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">ruleEngine</literal></para>
+ </listitem>
+ </orderedlist>
+
+ <para>With the exception of<literal moreinfo="none">
+ requestBodyProcessor</literal> and <literal moreinfo="none">
+ forceRequestBodyVariable</literal>, each configuration option
+ corresponds to one configuration directive and the usage is
+ identical.</para>
+
+ <para>The <literal>requestBodyProcessor</literal> option allows you to
+ configure the request body processor. By default ModSecurity will use
+ the <literal moreinfo="none">URLENCODED</literal> and<literal
+ moreinfo="none"> MULTIPART</literal> processors to process an <literal
+ moreinfo="none">application/x-www-form-urlencoded</literal> and a
+ <literal moreinfo="none">multipart/form-data</literal> bodies,
+ respectively. A third processor, <literal>XML</literal>, is also
+ supported, but it is never used implicitly. Instead you must tell
+ ModSecurity to use it by placing a few rules in the<literal
+ moreinfo="none"> REQUEST_HEADERS</literal> processing phase. After the
+ request body was processed as XML you will be able to use the
+ XML-related features to inspect it.</para>
+
+ <para>Request body processors will not interrupt a transaction if an
+ error occurs during parsing. Instead they will set variables<literal
+ moreinfo="none"> REQBODY_PROCESSOR_ERROR</literal> and<literal
+ moreinfo="none"> REQBODY_PROCESSOR_ERROR_MSG</literal>. These variables
+ should be inspected in the <literal
+ moreinfo="none">REQUEST_BODY</literal> phase and an appropriate action
+ taken.</para>
+
+ <para>The <literal>forceRequestBodyVariable</literal> option allows you
+ to configure the <literal>REQUEST_BODY</literal> variable to be set when
+ there is no request body processor configured. This allows for
+ inspection of request bodies of unknown types.</para>
+ </section>
+
+ <section>
+ <title><literal>deny</literal></title>
+
+ <para><emphasis>Description:</emphasis> Stops rule processing and
+ intercepts transaction.</para>
+
+ <para><emphasis>Action Group:</emphasis> Disruptive</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecRule REQUEST_HEADERS:User-Agent "nikto" "log,<emphasis>deny</emphasis>,msg:'Nikto Scanners Identified'"</programlisting>
+ </section>
+
+ <section>
+ <title><literal>deprecatevar</literal></title>
+
+ <para><emphasis>Description:</emphasis> Decrement counter based on its
+ age.</para>
+
+ <para><emphasis>Action Group:</emphasis> Non-Disruptive</para>
+
+ <para>Example: The following example will decrement the counter by 60
+ every 300 seconds.</para>
+
+ <programlisting format="linespecific">SecAction deprecatevar:session.score=60/300</programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>Counter values are always positive, meaning the value will never
+ go below zero.</para>
+ </section>
+
+ <section>
+ <title><literal>drop</literal></title>
+
+ <para><emphasis>Description:</emphasis> Immediately initiate a
+ "connection close" action to tear down the TCP connection by sending a
+ FIN packet.</para>
+
+ <para><emphasis>Action Group:</emphasis> Disruptive</para>
+
+ <para>Example: The following example initiates an IP collection for
+ tracking Basic Authentication attempts. If the client goes over the
+ threshold of more than 25 attempts in 2 minutes, it will DROP subsequent
+ connections.</para>
+
+ <programlisting format="linespecific">SecAction phase:1,initcol:ip=%{REMOTE_ADDR},nolog
+SecRule ARGS:login "!^$" \
+ nolog,phase:1,setvar:ip.auth_attempt=+1,deprecatevar:ip.auth_attempt=20/120
+SecRule IP:AUTH_ATTEMPT "@gt 25" \
+ "log,<emphasis>drop</emphasis>,phase:1,msg:'Possible Brute Force Attack'"</programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>This action is currently not available on Windows based builds.
+ This action is extremely useful when responding to both Brute Force and
+ Denial of Service attacks in that, in both cases, you want to minimize
+ both the network bandwidth and the data returned to the client. This
+ action causes error message to appear in the log "(9)Bad file
+ descriptor: core_output_filter: writing data to the network"</para>
+ </section>
+
+ <section>
+ <title><literal>exec</literal></title>
+
+ <para><emphasis>Description:</emphasis> Executes an external
+ script/binary supplied as parameter. As of v2.5.0, if the parameter
+ supplied to <literal>exec</literal> is a Lua script (detected by the
+ <filename>.lua</filename> extension) the script will be processed
+ <emphasis>internally</emphasis>. This means you will get direct access
+ to the internal request context from the script. Please read the
+ <literal>SecRuleScript</literal> documentation for more details on how
+ to write Lua scripts.</para>
+
+ <para><emphasis>Action Group:</emphasis> Non-disruptive</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific"># The following is going to execute /usr/local/apache/bin/test.sh
+# as a shell script on rule match.
+SecRule REQUEST_URI "^/cgi-bin/script\.pl" \
+ "phase:2,t:none,t:lowercase,t:normalisePath,log,<emphasis>exec:/usr/local/apache/bin/test.sh</emphasis>"
+
+# The following is going to process /usr/local/apache/conf/exec.lua
+# internally as a Lua script on rule match.
+SecRule ARGS:p attack log,<emphasis>exec:/usr/local/apache/conf/exec.lua</emphasis></programlisting>
+
+ <note>
+ <para>The exec action is executed independently from any disruptive
+ actions. External scripts will always be called with no parameters.
+ Some transaction information will be placed in environment variables.
+ All the usual CGI environment variables will be there. You should be
+ aware that forking a threaded process results in all threads being
+ replicated in the new process. Forking can therefore incur larger
+ overhead in multi-threaded operation. The script you execute must
+ write something (anything) to stdout. If it doesn't ModSecurity will
+ assume execution didn't work.</para>
+ </note>
+ </section>
+
+ <section>
+ <title><literal>expirevar</literal></title>
+
+ <para><emphasis>Description:</emphasis> Configures a collection variable
+ to expire after the given time in seconds.</para>
+
+ <para><emphasis>Action Group:</emphasis> Non-disruptive</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecRule REQUEST_COOKIES:JSESSIONID "!^$" nolog,phase:1,pass,chain
+SecAction setsid:%{REQUEST_COOKIES:JSESSIONID}
+SecRule REQUEST_URI "^/cgi-bin/script\.pl" \
+ "phase:2,t:none,t:lowercase,t:normalisePath,log,allow,\
+setvar:session.suspicious=1,<emphasis>expirevar:session.suspicious=3600</emphasis>,phase:1"</programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>You should use expirevar actions at the same time that you use
+ setvar actions in order to keep the indented expiration time. If they
+ are used on their own (perhaps in a SecAction directive) the expire time
+ could get re-set. When variables are removed from collections, and there
+ are no other changes, collections are not written to disk at the end of
+ request. This is because the variables can always be expired again when
+ the collection is read again on a subsequent request.</para>
+ </section>
+
+ <section>
+ <title><literal>id</literal></title>
+
+ <para><emphasis>Description:</emphasis> Assigns a unique ID to the rule
+ or chain.</para>
+
+ <para><emphasis>Action Group:</emphasis> Meta-data</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecRule &REQUEST_HEADERS:Host "@eq 0" \
+ "log,<emphasis>id:60008</emphasis>,severity:2,msg:'Request Missing a Host Header'"</programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>These are the reserved ranges:</para>
+
+ <itemizedlist>
+ <listitem>
+ <para>1-99,999; reserved for local (internal) use. Use as you see
+ fit but do not use this range for rules that are distributed to
+ others.</para>
+ </listitem>
+
+ <listitem>
+ <para>100,000-199,999; reserved for internal use of the engine, to
+ assign to rules that do not have explicit IDs.</para>
+ </listitem>
+
+ <listitem>
+ <para>200,000-299,999; reserved for rules published at
+ modsecurity.org.</para>
+ </listitem>
+
+ <listitem>
+ <para>300,000-399,999; reserved for rules published at
+ gotroot.com.</para>
+ </listitem>
+
+ <listitem>
+ <para>400,000-419,999; unused (available for reservation).</para>
+ </listitem>
+
+ <listitem>
+ <para>420,000-429,999; reserved for <ulink type=""
+ url="http://projects.otaku42.de/wiki/ScallyWhack">ScallyWhack</ulink>.</para>
+ </listitem>
+
+ <listitem>
+ <para>430,000-899,999; unused (available for reservation).</para>
+ </listitem>
+
+ <listitem>
+ <para>900,000-999,999; reserved for the <ulink
+ url="http://www.modsecurity.org/projects/rules/">Core Rules</ulink>
+ project.</para>
+ </listitem>
+
+ <listitem>
+ <para>1,000,000 and above; unused (available for
+ reservation).</para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
+ <section>
+ <title><literal>initcol</literal></title>
+
+ <para><emphasis>Description:</emphasis> Initialises a named persistent
+ collection, either by loading data from storage or by creating a new
+ collection in memory.</para>
+
+ <para><emphasis>Action Group:</emphasis> Non-disruptive</para>
+
+ <para>Example: The following example initiates IP address
+ tracking.</para>
+
+ <programlisting format="linespecific">SecAction <emphasis>phase:1,initcol:ip=%{REMOTE_ADDR}</emphasis>,nolog</programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>Normally you will want to use <emphasis>phase:1</emphasis> along
+ with <emphasis>initcol</emphasis> so that the collection is available in
+ all phases.</para>
+
+ <para>Collections are loaded into memory when the initcol action is
+ encountered. The collection in storage will be persisted (and the
+ appropriate counters increased) <emphasis>only</emphasis> if it was
+ changed during transaction processing.</para>
+
+ <para>See the "Persistant Storage" section for further details.</para>
+ </section>
+
+ <section>
+ <title><literal>log</literal></title>
+
+ <para><emphasis>Description:</emphasis> Indicates that a successful
+ match of the rule needs to be logged.</para>
+
+ <para><emphasis>Action Group:</emphasis> Non-disruptive</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecAction phase:1,initcol:ip=%{REMOTE_ADDR},<emphasis>log</emphasis></programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>This action will log matches to the Apache error log file and the
+ ModSecurity audit log.</para>
+ </section>
+
+ <section>
+ <title><literal>logdata</literal></title>
+
+ <para><emphasis>Description:</emphasis> Allows a data fragment to be
+ logged as part of the alert message.</para>
+
+ <para><emphasis>Action Group:</emphasis> Non-disruptive</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecRule &ARGS:p "@eq 0" "log,<emphasis>logdata:'%{TX.0}'"</emphasis></programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>The logdata information appears in the error and/or audit log
+ files and is not sent back to the client in response headers. Macro
+ expansion is preformed so you may use variable names such as %{TX.0},
+ etc. The information is properly escaped for use with logging binary
+ data.</para>
+ </section>
+
+ <section>
+ <title><literal>msg</literal></title>
+
+ <para><emphasis>Description:</emphasis> Assigns a custom message to the
+ rule or chain.</para>
+
+ <para><emphasis>Action Group:</emphasis> Meta-data</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecRule &REQUEST_HEADERS:Host "@eq 0" \
+ "log,id:60008<emphasis>,</emphasis>severity:2,<emphasis>msg:'Request Missing a Host Header'"</emphasis></programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>The msg information appears in the error and/or audit log files
+ and is not sent back to the client in response headers.</para>
+ </section>
+
+ <section>
+ <title><literal>multiMatch</literal></title>
+
+ <para><emphasis>Description:</emphasis> If enabled ModSecurity will
+ perform multiple operator invocations for every target, before and after
+ every anti-evasion transformation is performed.</para>
+
+ <para><emphasis>Action Group:</emphasis> Non-disruptive</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecDefaultAction log,deny,phase:1,t:removeNulls,t:lowercase
+SecRule ARGS "attack" <emphasis>multiMatch</emphasis></programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>Normally, variables are evaluated once, only after all
+ transformation functions have completed. With multiMatch, variables are
+ checked against the operator before and after every transformation
+ function that changes the input.</para>
+ </section>
+
+ <section>
+ <title><literal>noauditlog</literal></title>
+
+ <para><emphasis>Description:</emphasis> Indicates that a successful
+ match of the rule should not be used as criteria whether the transaction
+ should be logged to the audit log.</para>
+
+ <para><emphasis>Action Group:</emphasis> Non-disruptive</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecRule REQUEST_HEADERS:User-Agent "Test" allow,<emphasis>noauditlog</emphasis></programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>If the SecAuditEngine is set to On, all of the transactions will
+ be logged. If it is set to RelevantOnly, then you can control it with
+ the noauditlog action. Even if the noauditlog action is applied to a
+ specific rule and a rule either before or after triggered an audit
+ event, then the transaction will be logged to the audit log. The correct
+ way to disable audit logging for the entire transaction is to use
+ "<literal moreinfo="none">ctl:auditEngine=Off</literal>"</para>
+ </section>
+
+ <section>
+ <title><literal>nolog</literal></title>
+
+ <para><emphasis>Description:</emphasis> Prevents rule matches from
+ appearing in both the error and audit logs.</para>
+
+ <para><emphasis>Action Group:</emphasis> Non-disruptive</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecRule REQUEST_HEADERS:User-Agent "Test" allow,<emphasis>nolog</emphasis></programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>The nolog action also implies noauditlog.</para>
+ </section>
+
+ <section>
+ <title><literal>pass</literal></title>
+
+ <para><emphasis>Description:</emphasis> Continues processing with the
+ next rule in spite of a successful match.</para>
+
+ <para><emphasis>Action Group:</emphasis> Disruptive</para>
+
+ <para>Example1:</para>
+
+ <programlisting format="linespecific">SecRule REQUEST_HEADERS:User-Agent "Test" log,<emphasis>pass</emphasis></programlisting>
+
+ <para>When using <emphasis>pass</emphasis> with SecRule with multiple
+ targets, <emphasis>all</emphasis> targets will be processed and
+ <emphasis>all</emphasis> non-disruptive actions will trigger for
+ <emphasis>every</emphasis> match found. In the second example the
+ TX:test target would be incremented by 1 for each matching
+ argument.</para>
+
+ <para>Example2:</para>
+
+ <programlisting format="linespecific">SecRule ARGS "test" log,<emphasis>pass</emphasis>,setvar:TX.test=+1</programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>The transaction will not be interrupted but a log will be
+ generated for each matching target (unless logging has been
+ suppressed).</para>
+ </section>
+
+ <section>
+ <title><literal>pause</literal></title>
+
+ <para><emphasis>Description:</emphasis> Pauses transaction processing
+ for the specified number of milliseconds.</para>
+
+ <para><emphasis>Action Group:</emphasis> Non-disruptive</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecRule REQUEST_HEADERS:User-Agent "Test" log,deny,status:403,<emphasis>pause:5000</emphasis></programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>This feature can be of limited benefit for slowing down Brute
+ Force Scanners, however use with care. If you are under a Denial of
+ Service type of attack, the pause feature may make matters worse as this
+ feature will cause child processes to sit idle until the pause is
+ completed.</para>
+ </section>
+
+ <section>
+ <title><literal>phase</literal></title>
+
+ <para><emphasis>Description:</emphasis> Places the rule (or the rule
+ chain) into one of five available processing phases.</para>
+
+ <para><emphasis>Action Group:</emphasis> Meta-data</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecDefaultAction log,deny,<emphasis>phase:1</emphasis>,t:removeNulls,t:lowercase
+SecRule REQUEST_HEADERS:User-Agent "Test" log,deny,status:403</programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>Keep in mind that is you specify the incorrect phase, the target
+ variable that you specify may be empty. This could lead to a false
+ negative situation where your variable and operator (RegEx) may be
+ correct, but it misses malicious data because you specified the wrong
+ phase.</para>
+ </section>
+
+ <section>
+ <title>prepend</title>
+
+ <para><emphasis>Description:</emphasis> Prepends text given as parameter
+ to the response body. For this action to work content injection must be
+ enabled by setting <literal>SecContentInjection</literal> to
+ <literal>On</literal>. Also make sure you check the content type of the
+ response before you make changes to it (e.g. you don't want to inject
+ stuff into images).</para>
+
+ <para><emphasis>Action Group:</emphasis> Non-disruptive</para>
+
+ <para><emphasis>Processing Phases:</emphasis> 3 and 4.</para>
+
+ <para>Example:</para>
+
+ <programlisting>SecRule RESPONSE_CONTENT_TYPE ^text/html "phase:3,nolog,pass,<emphasis>prepend:'Header<br>'</emphasis>"</programlisting>
+
+ <note>
+ <para>While macro expansion is allowed in the additional content, you
+ are strongly cautioned against inserting user defined data
+ fields.</para>
+ </note>
+ </section>
+
+ <section>
+ <title><literal>proxy</literal></title>
+
+ <para><emphasis>Description:</emphasis> Intercepts transaction by
+ forwarding request to another web server using the proxy backend.</para>
+
+ <para><emphasis>Action Group:</emphasis> Disruptive</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecRule REQUEST_HEADERS:User-Agent "Test" log,<emphasis>proxy:http://www.honeypothost.com/</emphasis></programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>For this action to work, mod_proxy must also be installed. This
+ action is useful if you would like to proxy matching requests onto a
+ honeypot webserver.</para>
+ </section>
+
+ <section>
+ <title><literal>redirect</literal></title>
+
+ <para><emphasis>Description:</emphasis> Intercepts transaction by
+ issuing a redirect to the given location.</para>
+
+ <para><emphasis>Action Group:</emphasis> Disruptive</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecRule REQUEST_HEADERS:User-Agent "Test" \
+ log,<emphasis>redirect:http://www.hostname.com/failed.html</emphasis></programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>If the <literal moreinfo="none">status</literal> action is present
+ and its value is acceptable (301, 302, 303, or 307) it will be used for
+ the redirection. Otherwise status code 302 will be used.</para>
+ </section>
+
+ <section>
+ <title><literal>rev</literal></title>
+
+ <para><emphasis>Description:</emphasis> Specifies rule revision.</para>
+
+ <para><emphasis>Action Group:</emphasis> Meta-data</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecRule REQUEST_METHOD "^PUT$" "id:340002,<emphasis>rev:1</emphasis>,severity:2,msg:'Restricted HTTP function'"</programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>This action is used in combination with the <literal
+ moreinfo="none">id</literal> action to allow the same rule ID to be used
+ after changes take place but to still provide some indication the rule
+ changed.</para>
+ </section>
+
+ <section>
+ <title><literal>sanitiseArg</literal></title>
+
+ <para><emphasis>Description:</emphasis> Sanitises (replaces each byte
+ with an asterisk) a named request argument prior to audit
+ logging.</para>
+
+ <para><emphasis>Action Group:</emphasis> Non-disruptive</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecAction nolog,phase:2,<emphasis>sanitiseArg:password</emphasis></programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>The sanitize actions do not sanitize any data within the actual
+ raw requests but only on the copy of data within memory that is set to
+ log to the audit log. It will not sanitize the data in the
+ modsec_debug.log file (if the log level is set high enough to capture
+ this data).</para>
+ </section>
+
+ <section>
+ <title><literal>sanitiseMatched</literal></title>
+
+ <para><emphasis>Description:</emphasis> Sanitises the variable (request
+ argument, request header, or response header) that caused a rule
+ match.</para>
+
+ <para><emphasis>Action Group:</emphasis> Non-disruptive</para>
+
+ <para>Example: This action can be used to sanitise arbitrary transaction
+ elements when they match a condition. For example, the example below
+ will sanitise any argument that contains the word<emphasis>
+ password</emphasis> in the name.</para>
+
+ <programlisting format="linespecific">SecRule ARGS_NAMES password nolog,pass,<emphasis>sanitiseMatched</emphasis></programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>Same note as sanitiseArg.</para>
+ </section>
+
+ <section>
+ <title><literal>sanitiseRequestHeader</literal></title>
+
+ <para><emphasis>Description:</emphasis> Sanitises a named request
+ header.</para>
+
+ <para><emphasis>Action Group:</emphasis> Non-disruptive</para>
+
+ <para>Example: This will sanitise the data in the Authorization
+ header.</para>
+
+ <programlisting format="linespecific">SecAction log,phase:1,<emphasis>sanitiseRequestHeader:Authorization</emphasis></programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>Same note as sanitiseArg.</para>
+ </section>
+
+ <section>
+ <title><literal>sanitiseResponseHeader</literal></title>
+
+ <para><emphasis>Description:</emphasis> Sanitises a named response
+ header.</para>
+
+ <para><emphasis>Action Group:</emphasis> Non-disruptive</para>
+
+ <para>Example: This will sanitise the Set-Cookie data sent to the
+ client.</para>
+
+ <programlisting format="linespecific">SecAction log,phase:3,<emphasis>sanitiseResponseHeader:Set-Cookie</emphasis></programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>Same note as sanitiseArg.</para>
+ </section>
+
+ <section>
+ <title><literal>severity</literal></title>
+
+ <para><emphasis>Description:</emphasis> Assigns severity to the rule it
+ is placed with.</para>
+
+ <para><emphasis>Action Group:</emphasis> Meta-data</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecRule REQUEST_METHOD "^PUT$" "id:340002,rev:1,<emphasis>severity:CRITICAL</emphasis>,msg:'Restricted HTTP function'"</programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>Severity values in ModSecurity follow those of syslog, as
+ below:</para>
+
+ <itemizedlist>
+ <listitem>
+ <para>0 - EMERGENCY</para>
+ </listitem>
+
+ <listitem>
+ <para>1 - ALERT</para>
+ </listitem>
+
+ <listitem>
+ <para>2 - CRITICAL</para>
+ </listitem>
+
+ <listitem>
+ <para>3 - ERROR</para>
+ </listitem>
+
+ <listitem>
+ <para>4 - WARNING</para>
+ </listitem>
+
+ <listitem>
+ <para>5 - NOTICE</para>
+ </listitem>
+
+ <listitem>
+ <para>6 - INFO</para>
+ </listitem>
+
+ <listitem>
+ <para>7 - DEBUG</para>
+ </listitem>
+ </itemizedlist>
+
+ <para>It is possible to specify severity levels using either the
+ numerical values or the text values. You should always specify severity
+ levels using the text values. The use of the numerical values is
+ deprecated (as of v2.5.0) and may be removed in one of the susequent
+ major updates.</para>
+ </section>
+
+ <section>
+ <title><literal>setuid</literal></title>
+
+ <para><emphasis>Description:</emphasis> Special-purpose action that
+ initialises the <literal moreinfo="none">USER</literal>
+ collection.</para>
+
+ <para><emphasis>Action Group:</emphasis> Non-disruptive</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecAction <emphasis>setuid:%{REMOTE_USER}</emphasis>,nolog</programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>After initialisation takes place the variable <literal
+ moreinfo="none">USERID</literal> will be available for use in the
+ subsequent rules.</para>
+ </section>
+
+ <section>
+ <title><literal>setsid</literal></title>
+
+ <para><emphasis>Description:</emphasis> Special-purpose action that
+ initialises the <literal moreinfo="none">SESSION</literal>
+ collection.</para>
+
+ <para><emphasis>Action Group: </emphasis>Non-disruptive</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific"># Initialise session variables using the session cookie value
+SecRule REQUEST_COOKIES:PHPSESSID !^$ chain,nolog,pass
+SecAction <emphasis>setsid:%{REQUEST_COOKIES.PHPSESSID}</emphasis></programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>On first invocation of this action the collection will be empty
+ (not taking the predefined variables into account - see <literal
+ moreinfo="none">initcol</literal> for more information). On subsequent
+ invocations the contents of the collection (session, in this case) will
+ be retrieved from storage. After initialisation takes place the
+ variable<literal moreinfo="none"> SESSIONID</literal> will be available
+ for use in the subsequent rules.This action understands each application
+ maintains its own set of sessions. It will utilise the current web
+ application ID to create a session namespace.</para>
+ </section>
+
+ <section>
+ <title><literal>setenv</literal></title>
+
+ <para><emphasis>Description:</emphasis> Creates, removes, or updates an
+ environment variable.</para>
+
+ <para><emphasis>Action Group:</emphasis> Non-disruptive</para>
+
+ <para>Examples:</para>
+
+ <para>To create a new variable (if you omit the value <literal
+ moreinfo="none">1</literal> will be used):</para>
+
+ <programlisting format="linespecific">setenv:name=value</programlisting>
+
+ <para>To remove a variable:</para>
+
+ <programlisting format="linespecific">setenv:!name</programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>This action can be used to establish communication with other
+ Apache modules.</para>
+ </section>
+
+ <section>
+ <title><literal>setvar</literal></title>
+
+ <para><emphasis>Description:</emphasis> Creates, removes, or updates a
+ variable in the specified collection.</para>
+
+ <para><emphasis>Action Group:</emphasis> Non-disruptive</para>
+
+ <para>Examples:</para>
+
+ <para>To create a new variable:</para>
+
+ <programlisting format="linespecific">setvar:tx.score=10</programlisting>
+
+ <para>To remove a variable prefix the name with exclamation mark:</para>
+
+ <programlisting format="linespecific">setvar:!tx.score</programlisting>
+
+ <para>To increase or decrease variable value use <literal
+ moreinfo="none">+</literal> and <literal moreinfo="none">-</literal>
+ characters in front of a numerical value:</para>
+
+ <programlisting format="linespecific">setvar:tx.score=+5</programlisting>
+ </section>
+
+ <section>
+ <title><literal>skip</literal></title>
+
+ <para><emphasis>Description:</emphasis> Skips one or more rules (or
+ chains) on successful match.</para>
+
+ <para><emphasis>Action Group:</emphasis> Flow</para>
+
+ <para>Example:</para>
+
+ <para><programlisting format="linespecific">SecRule REQUEST_URI "^/$" \
+"phase:2,chain,t:none<emphasis>,skip:2</emphasis>"
+SecRule REMOTE_ADDR "^127\.0\.0\.1$" "chain"
+SecRule REQUEST_HEADERS:User-Agent "^Apache \(internal dummy connection\)$" "t:none"
+SecRule &REQUEST_HEADERS:Host "@eq 0" \
+ "deny,log,status:400,id:960008,severity:4,msg:'Request Missing a Host Header'"
+SecRule &REQUEST_HEADERS:Accept "@eq 0" \
+ "log,deny,log,status:400,id:960015,msg:'Request Missing an Accept Header'"</programlisting></para>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>Skip only applies to the current processing phase and not
+ necessarily the order in which the rules appear in the configuration
+ file. If you group rules by processing phases, then skip should work as
+ expected. This action can not be used to skip rules within one chain.
+ Accepts a single parameter denoting the number of rules (or chains) to
+ skip.</para>
+ </section>
+
+ <section>
+ <title><literal>skipAfter</literal></title>
+
+ <para><emphasis>Description:</emphasis> Skips rules (or chains) on
+ successful match resuming rule execution after the specified rule ID or
+ marker (see <literal>SecMarker</literal>) is found.</para>
+
+ <para><emphasis>Action Group:</emphasis> Flow</para>
+
+ <para>Example:</para>
+
+ <para><programlisting format="linespecific">SecRule REQUEST_URI "^/$" "chain,t:none,<emphasis>skipAfter:960015</emphasis>"
+SecRule REMOTE_ADDR "^127\.0\.0\.1$" "chain"
+SecRule REQUEST_HEADERS:User-Agent "^Apache \(internal dummy connection\)$" "t:none"
+SecRule &REQUEST_HEADERS:Host "@eq 0" \
+ "deny,log,status:400,id:960008,severity:4,msg:'Request Missing a Host Header'"
+SecRule &REQUEST_HEADERS:Accept "@eq 0" \
+ "log,deny,log,status:400,id:960015,msg:'Request Missing an Accept Header'"</programlisting></para>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para><literal>SkipAfter</literal> only applies to the current
+ processing phase and not necessarily the order in which the rules appear
+ in the configuration file. If you group rules by processing phases, then
+ skip should work as expected. This action can not be used to skip rules
+ within one chain. Accepts a single parameter denoting the last rule ID
+ to skip.</para>
+ </section>
+
+ <section>
+ <title><literal>status</literal></title>
+
+ <para><emphasis>Description:</emphasis> Specifies the response status
+ code to use with actions<literal moreinfo="none"> deny</literal>
+ and<literal moreinfo="none"> redirect</literal>.</para>
+
+ <para><emphasis>Action Group:</emphasis> Data</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecDefaultAction log,deny,<emphasis>status:403</emphasis>,phase:1</programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>Status actions defined in Apache scope locations (such as
+ Directory, Location, etc...) may be superseded by phase:1 action
+ settings. The Apache ErrorDocument directive will be triggered if
+ present in the configuration. Therefore if you have previously defined a
+ custom error page for a given status then it will be executed and its
+ output presented to the user.</para>
+ </section>
+
+ <section>
+ <title><literal>t</literal></title>
+
+ <para><emphasis>Description:</emphasis> This action can be used which
+ transformation function should be used against the specified variables
+ before they (or the results, rather) are run against the operator
+ specified in the rule.</para>
+
+ <para><emphasis>Action Group:</emphasis> Non-disruptive</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecDefaultAction log,deny,phase:1,t:removeNulls,t:lowercase
+SecRule REQUEST_COOKIES:SESSIONID "47414e81cbbef3cf8366e84eeacba091" \
+ log,deny,status:403,<emphasis>t:md5,t:hexEncode</emphasis></programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>Any transformation functions that you specify in a SecRule will be
+ in addition to previous ones specified in SecDefaultAction. Use of
+ "t:none" will remove all transformation functions for the specified
+ rule.</para>
+ </section>
+
+ <section>
+ <title><literal>tag</literal></title>
+
+ <para><emphasis>Description:</emphasis> Assigns custom text to a rule or
+ chain.</para>
+
+ <para><emphasis>Action Group:</emphasis> Meta-data</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecRule REQUEST_FILENAME "\b(?:n(?:map|et|c)|w(?:guest|sh)|cmd(?:32)?|telnet|rcmd|ftp)\.exe\b" \
+ "t:none,t:lowercase,deny,msg:'System Command Access',id:'950002',<emphasis>\
+tag:'WEB_ATTACK/FILE_INJECTION',tag:'OWASP/A2'</emphasis>,severity:'2'"</programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>The tag information appears in the error and/or audit log files.
+ Its intent is to be used to automate classification of rules and the
+ alerts generated by rules. Multiple tags can be used per
+ rule/chain.</para>
+ </section>
+
+ <section>
+ <title><literal>xmlns</literal></title>
+
+ <para><emphasis>Description:</emphasis> This action should be used
+ together with an XPath expression to register a namespace.</para>
+
+ <para><emphasis>Action Group:</emphasis> Data</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecRule REQUEST_HEADERS:Content-Type "text/xml" \
+ "phase:1,pass,ctl:requestBodyProcessor=XML,ctl:requestBodyAccess=On,<emphasis> \
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"</emphasis>
+SecRule XML:/soap:Envelope/soap:Body/q1:getInput/id() "123" phase:2,deny</programlisting>
+ </section>
+ </section>
+
+ <section id="operators">
+ <title>Operators</title>
+
+ <para>A number of operators can be used in rules, as documented below. The
+ operator syntax uses the <literal>@</literal> symbol followed by the
+ specific operator name.</para>
+
+ <section>
+ <title><literal>beginsWith</literal></title>
+
+ <para><emphasis>Description:</emphasis> This operator is a string
+ comparison and returns true if the parameter value is found at the
+ beginning of the input. Macro expansion is performed so you may use
+ variable names such as <literal>%{TX.1}</literal>, etc.</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecRule REQUEST_LINE "!<emphasis>@beginsWith GET</emphasis>" t:none,deny,status:403
+SecRule REQUEST_ADDR "^(.*)\.\d+$" deny,status:403,capture,chain
+SecRule ARGS:gw "!<emphasis>@beginsWith %{TX.1}</emphasis>"</programlisting>
+ </section>
+
+ <section>
+ <title><literal>contains</literal></title>
+
+ <para><emphasis>Description:</emphasis> This operator is a string
+ comparison and returns true if the parameter value is found anywhere in
+ the input. Macro expansion is performed so you may use variable names
+ such as %{TX.1}, etc.</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecRule REQUEST_LINE "!<emphasis>@contains .php</emphasis>" t:none,deny,status:403
+SecRule REQUEST_ADDR "^(.*)$" deny,status:403,capture,chain
+SecRule ARGS:ip "!<emphasis>@contains %{TX.1}</emphasis>"</programlisting>
+ </section>
+
+ <section>
+ <title><literal>endsWith</literal></title>
+
+ <para><emphasis>Description:</emphasis> This operator is a string
+ comparison and returns true if the parameter value is found at the end
+ of the input. Macro expansion is performed so you may use variable names
+ such as %{TX.1}, etc.</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecRule REQUEST_LINE "!<emphasis>@endsWith HTTP/1.1</emphasis>" t:none,deny,status:403
+SecRule ARGS:route "!<emphasis>@endsWith %{REQUEST_ADDR}</emphasis>" t:none,deny,status:403</programlisting>
+ </section>
+
+ <section>
+ <title><literal>eq</literal></title>
+
+ <para><emphasis>Description:</emphasis> This operator is a numerical
+ comparison and stands for "equal to."</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecRule &REQUEST_HEADERS_NAMES "<emphasis>@eq</emphasis> 15"</programlisting>
+ </section>
+
+ <section>
+ <title><literal>ge</literal></title>
+
+ <para><emphasis>Description:</emphasis> This operator is a numerical
+ comparison and stands for "greater than or equal to."</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecRule &REQUEST_HEADERS_NAMES "<emphasis>@ge</emphasis> 15"</programlisting>
+ </section>
+
+ <section>
+ <title><literal>geoLookup</literal></title>
+
+ <para><emphasis>Description:</emphasis> This operator looks up various
+ data fields from an IP address or hostname in the target data. The
+ results will be captured in the <literal moreinfo="none">GEO</literal>
+ collection.</para>
+
+ <para>You must provide a database via <literal
+ moreinfo="none">SecGeoLookupDb</literal> before this operator can be
+ used.</para>
+
+ <note>
+ <para>This operator matches and the action is executed on a <emphasis>
+ successful</emphasis> lookup. For this reason, you probably want to
+ use the <emphasis>pass,nolog</emphasis> actions. This allows for
+ <literal moreinfo="none">setvar</literal> and other non-disruptive
+ actions to be executed on a match. If you wish to block on a failed
+ lookup, then do something like this (look for an empty GEO
+ collection):</para>
+
+ <programlisting format="linespecific">SecGeoLookupDb /usr/local/geo/data/GeoLiteCity.dat
+...
+SecRule REMOTE_ADDR "@geoLookup" "pass,nolog"
+SecRule &GEO "@eq 0" "deny,status:403,msg:'Failed to lookup IP'"</programlisting>
+ </note>
+
+ <para>See the <literal moreinfo="none">GEO</literal> variable for an
+ example and more information on various fields available.</para>
+ </section>
+
+ <section>
+ <title><literal>gt</literal></title>
+
+ <para><emphasis>Description:</emphasis> This operator is a numerical
+ comparison and stands for "greater than."</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecRule &REQUEST_HEADERS_NAMES "<emphasis>@gt</emphasis> 15"</programlisting>
+ </section>
+
+ <section>
+ <title><literal>inspectFile</literal></title>
+
+ <para><emphasis>Description:</emphasis> Executes the external
+ script/binary given as parameter to the operator against every file
+ extracted from the request. As of v2.5.0, if the supplied filename is
+ not absolute it is treated as relative to the directory in which the
+ configuration file resides. Also as of v2.5.0, if the filename is
+ determined to be a Lua script (based on its extension) the script will
+ be processed by the internal engine. As such it will have full access to
+ the ModSecurity context.</para>
+
+ <para>Example of using an external binary/script:</para>
+
+ <programlisting format="linespecific"># Execute external script to validate uploaded files.
+SecRule FILES_TMPNAMES "<emphasis>@inspectFile</emphasis> /opt/apache/bin/inspect_script.pl"</programlisting>
+
+ <para>Example of using Lua script:</para>
+
+ <programlisting>SecRule FILES_TMPNANMES "@inspectFile <emphasis>inspect.lua</emphasis>"</programlisting>
+
+ <para>Script <filename>inspect.lua</filename>:</para>
+
+ <programlisting>function main(filename)
+ -- Do something to the file to verify it. In this example, we
+ -- read up to 10 characters from the beginning of the file.
+ local f = io.open(filename, "rb");
+ local d = f:read(10);
+ f:close();
+
+ -- Return null if there is no reason to believe there is ansything
+ -- wrong with the file (no match). Returning any text will be taken
+ -- to mean a match should be trigerred.
+ return null;
+end</programlisting>
+ </section>
+
+ <section>
+ <title><literal>le</literal></title>
+
+ <para><emphasis>Description:</emphasis> This operator is a numerical
+ comparison and stands for "less than or equal to."</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecRule &REQUEST_HEADERS_NAMES "<emphasis>@le</emphasis> 15"</programlisting>
+ </section>
+
+ <section>
+ <title><literal>lt</literal></title>
+
+ <para><emphasis>Description:</emphasis> This operator is a numerical
+ comparison and stands for "less than."</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecRule &REQUEST_HEADERS_NAMES "<emphasis>@lt</emphasis> 15"</programlisting>
+ </section>
+
+ <section>
+ <title><literal>pm</literal></title>
+
+ <para><emphasis>Description:</emphasis> Phrase Match operator. This
+ operator uses a set based matching engine (Aho-Corasick) for faster
+ matches of keyword lists. It will match any one of its arguments
+ anywhere in the target value. The match is case insensitive.</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecRule REQUEST_HEADERS:User-Agent "<emphasis>@pm</emphasis> WebZIP WebCopier Webster WebStripper SiteSnagger ProWebWalker CheeseBot" "deny,status:403</programlisting>
+
+ <para>The above would deny access with 403 if any of the words matched
+ within the User-Agent HTTP header value.</para>
+ </section>
+
+ <section>
+ <title><literal>pmFromFile</literal></title>
+
+ <para><emphasis>Description:</emphasis> Phrase Match operator. This
+ operator uses a set based matching engine (Aho-Corasick) for faster
+ matches of keyword lists. This operator is the same as
+ <literal>@pm</literal> except that it takes a list of files as
+ arguments. It will match any one of the phrases listed in the file(s)
+ anywhere in the target value.</para>
+
+ <para>Notes:</para>
+
+ <orderedlist continuation="restarts" inheritnum="ignore">
+ <listitem>
+ <para>The contents of the files should be one phrase per line. End
+ of line markers will be stripped from the phrases, however,
+ whitespace will not be trimmed from phrases in the file. Empty lines
+ and comment lines (beginning with a '#') are ignored.</para>
+ </listitem>
+
+ <listitem>
+ <para>To allow easier inclusion of phrase files with rulesets,
+ relative paths may be used to the phrase files. In this case, the
+ path of the file containing the rule is prepended to the phrase file
+ path.</para>
+ </listitem>
+ </orderedlist>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecRule REQUEST_HEADERS:User-Agent "<emphasis>@pm</emphasis> /path/to/blacklist1 blacklist2" "deny,status:403</programlisting>
+
+ <para>The above would deny access with 403 if any of the patterns in the
+ two files matched within the User-Agent HTTP header value. The
+ <literal>blacklist2</literal> file would need to be placed in the same
+ path as the file containing the rule.</para>
+ </section>
+
+ <section>
+ <title><literal>rbl</literal></title>
+
+ <para><emphasis>Description:</emphasis> Look up the parameter in the RBL
+ given as parameter. Parameter can be an IPv4 address, or a
+ hostname.</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecRule REMOTE_ADDR "<emphasis>@rbl</emphasis> sc.surbl.org"</programlisting>
+ </section>
+
+ <section>
+ <title><literal>rx</literal></title>
+
+ <para><emphasis>Description:</emphasis> Regular expression operator.
+ This is the default operator, so if the "@" operator is not defined, it
+ is assumed to be rx.</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecRule REQUEST_HEADERS:User-Agent "<emphasis>@rx</emphasis> nikto"</programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>Regular expressions are handled by the PCRE library (<ulink
+ url="http://www.pcre.org">http://www.pcre.org</ulink>). ModSecurity
+ compiles its regular expressions with the following settings:</para>
+
+ <orderedlist continuation="restarts" inheritnum="ignore">
+ <listitem>
+ <para>The entire input is treated as a single line, even when there
+ are newline characters present.</para>
+ </listitem>
+
+ <listitem>
+ <para>All matches are case-sensitive. If you do not care about case
+ sensitivity you either need to implement the <literal
+ moreinfo="none">lowercase</literal> transformation function, or use
+ the per-pattern<literal moreinfo="none">(?i)</literal>modifier, as
+ allowed by PCRE.</para>
+ </listitem>
+
+ <listitem>
+ <para>The <literal moreinfo="none">PCRE_DOTALL</literal> and
+ <literal moreinfo="none">PCRE_DOLLAR_ENDONLY</literal> flags are set
+ during compilation, meaning a single dot will match any character,
+ including the newlines and a <literal moreinfo="none">$</literal>
+ end anchor will not match a trailing newline character.</para>
+ </listitem>
+ </orderedlist>
+ </section>
+
+ <section>
+ <title><literal>streq</literal></title>
+
+ <para><emphasis>Description:</emphasis> This operator is a string
+ comparison and returns true if the parameter value matches the input
+ exactly. Macro expansion is performed so you may use variable names such
+ as %{TX.1}, etc.</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecRule ARGS:foo "!<emphasis>@streq bar</emphasis>" t:none,deny,status:403
+SecRule REQUEST_ADDR "^(.*)$" deny,status:403,capture,chain
+SecRule REQUEST_HEADERS:Ip-Address "!<emphasis>@streq %{TX.1}</emphasis>"</programlisting>
+ </section>
+
+ <section>
+ <title><literal>validateByteRange</literal></title>
+
+ <para><emphasis>Description:</emphasis> Validates the byte range used in
+ the variable falls into the specified range.</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecRule ARGS:text "<emphasis>@validateByteRange</emphasis> 10, 13, 32-126"</programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>You can force requests to consist only of bytes from a certain
+ byte range. This can be useful to avoid stack overflow attacks (since
+ they usually contain "random" binary content). Default range values are
+ 0 and 255, i.e. all byte values are allowed. This directive does not
+ check byte range in a POST payload when
+ <literal>multipart/form-data</literal> encoding (file upload) is used.
+ Doing so would prevent binary files from being uploaded. However, after
+ the parameters are extracted from such request they are checked for a
+ valid range.</para>
+
+ <para>validateByteRange is similar to the ModSecurity 1.X
+ SecFilterForceByteRange Directive however since it works in a rule
+ context, it has the following differences:</para>
+
+ <itemizedlist>
+ <listitem>
+ <para>You can specify a different range for different
+ variables.</para>
+ </listitem>
+
+ <listitem>
+ <para>It has an "event" context (id, msg....)</para>
+ </listitem>
+
+ <listitem>
+ <para>It is executed in the flow of rules rather than being a built
+ in pre-check.</para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
+ <section>
+ <title><literal>validateDTD</literal></title>
+
+ <para><emphasis>Description:</emphasis> Validates the DOM tree generated
+ by the XML request body processor against the supplied DTD.</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecDefaultAction log,deny,status:403,phase:2
+SecRule REQUEST_HEADERS:Content-Type ^text/xml$ \
+ phase:1,t:lowercase,nolog,pass,ctl:requestBodyProcessor=XML
+SecRule REQBODY_PROCESSOR "!^XML$" nolog,pass,skipAfter:12345
+SecRule XML "<emphasis>@validateDTD /path/to/apache2/conf/xml.dtd</emphasis>" "deny,id:12345"</programlisting>
+
+ <note>
+ <para>This operator requires request body to be processed as
+ XML.</para>
+ </note>
+ </section>
+
+ <section>
+ <title><literal>validateSchema</literal></title>
+
+ <para><emphasis>Description:</emphasis> Validates the DOM tree generated
+ by the XML request body processor against the supplied XML
+ Schema.</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecDefaultAction log,deny,status:403,phase:2
+SecRule REQUEST_HEADERS:Content-Type ^text/xml$ \
+ phase:1,t:lowercase,nolog,pass,ctl:requestBodyProcessor=XML
+SecRule REQBODY_PROCESSOR "!^XML$" nolog,pass,skipAfter:12345
+SecRule XML "<emphasis>@validateSchema /path/to/apache2/conf/xml.xsd</emphasis>" "deny,id:12345"</programlisting>
+
+ <note>
+ <para>This operator requires request body to be processed as
+ XML.</para>
+ </note>
+ </section>
+
+ <section>
+ <title><literal>validateUrlEncoding</literal></title>
+
+ <para><emphasis>Description:</emphasis> Verifies the encodings used in
+ the variable (if any) are valid.</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecRule ARGS "<emphasis>@validateUrlEncoding</emphasis>"</programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>URL encoding is an HTTP standard for encoding byte values within a
+ URL. The byte is escaped with a % followed by two hexadecimal values
+ (0-F). This directive does not check encoding in a POST payload when the
+ <literal>multipart/form-data</literal> encoding (file upload) is used.
+ It is not necessary to do so because URL encoding is not used for this
+ encoding.</para>
+ </section>
+
+ <section>
+ <title><literal>validateUtf8Encoding</literal></title>
+
+ <para><emphasis>Description:</emphasis> Verifies the variable is a valid
+ UTF-8 encoded string.</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecRule ARGS "<emphasis>@validateUtf8Encoding</emphasis>"</programlisting>
+
+ <para><emphasis>Note</emphasis></para>
+
+ <para>UTF-8 encoding is valid on most web servers. Integer values
+ between 0-65535 are encoded in a UTF-8 byte sequence that is escaped by
+ percents. The short form is two bytes in length.</para>
+
+ <para>check for three types of errors:</para>
+
+ <itemizedlist>
+ <listitem>
+ <para>Not enough bytes. UTF-8 supports two, three, four, five, and
+ six byte encodings. ModSecurity will locate cases when a byte or
+ more is missing.</para>
+ </listitem>
+
+ <listitem>
+ <para>Invalid encoding. The two most significant bits in most
+ characters are supposed to be fixed to 0x80. Attackers can use this
+ to subvert Unicode decoders.</para>
+ </listitem>
+
+ <listitem>
+ <para>Overlong characters. ASCII characters are mapped directly into
+ the Unicode space and are thus represented with a single byte.
+ However, most ASCII characters can also be encoded with two, three,
+ four, five, and six characters thus tricking the decoder into
+ thinking that the character is something else (and, presumably,
+ avoiding the security check).</para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
+ <section>
+ <title><literal>verifyCC</literal></title>
+
+ <para><emphasis>Description:</emphasis> This operator verifies a given
+ regular expression as a potential credit card number. It first matches
+ with a single generic regular expression then runs the resulting match
+ through a Luhn checksum algorithm to further verify it as a potential
+ credit card number.</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecRule ARGS "<emphasis>@verifyCC \d{13,16}</emphasis>" \
+ "phase:2,sanitiseMatched,log,auditlog,pass,msg:'Potential credit card number'"</programlisting>
+ </section>
+
+ <section>
+ <title><literal>within</literal></title>
+
+ <para><emphasis>Description:</emphasis> This operator is a string
+ comparison and returns true if the input value is found anywhere within
+ the parameter value. Note that this is similar to
+ <literal>@contains</literal>, except that the target and match values
+ are reversed. Macro expansion is performed so you may use variable names
+ such as %{TX.1}, etc.</para>
+
+ <para>Example:</para>
+
+ <programlisting format="linespecific">SecRule REQUEST_METHOD "!<emphasis>@within get,post,head</emphasis>" t:lowercase,deny,status:403
+
+SecAction "pass,setvar:'tx.allowed_methods=get,post,head'"
+SecRule REQUEST_METHOD "!<emphasis>@within %{tx.allowed_methods}</emphasis>" t:lowercase,deny,status:403</programlisting>
+ </section>
+ </section>
+
+ <section>
+ <title>Macro Expansion</title>
+
+ <para>Macros allow for using place holders in rules that will be expanded
+ out to their values at runtime. Currently only variable expansion is
+ supported, however more options may be added in future versions of
+ ModSecurity.</para>
+
+ <para>Format:</para>
+
+ <programlisting format="linespecific">%{VARIABLE}
+%{COLLECTION.VARIABLE}</programlisting>
+
+ <para>Macro expansion can be used in actions such as initcol, setsid,
+ setuid, setvar, setenv, logdata. Operators that are evaluated at runtime
+ support expansion and are noted above. Such operators include @beginsWith,
+ @endsWith, @contains, @within and @streq. You cannot use macro expansion
+ for operators that are "compiled" such as @pm, @rx, etc. as these
+ operators have their values fixed at configure time for efficiency.</para>
+
+ <para>Some values you may want to expand include: TX, REMOTE_ADDR, USERID,
+ HIGHEST_SEVERITY, MATCHED_VAR, MATCHED_VAR_NAME, MULTIPART_STRICT_ERROR,
+ RULE, SESSION, USERID, among others.</para>
+ </section>
+
+ <section>
+ <title>Persistant Storage</title>
+
+ <para>At this time it is only possible to have three collections in which
+ data is stored persistantly (i.e. data available to multiple requests).
+ These are: <literal moreinfo="none">IP</literal>, <literal
+ moreinfo="none"> SESSION</literal> and <literal
+ moreinfo="none">USER</literal>.</para>
+
+ <para>Every collection contains several built-in variables that are
+ available and are read-only unless otherwise specified:</para>
+
+ <orderedlist continuation="restarts" inheritnum="ignore">
+ <listitem>
+ <para><literal moreinfo="none">CREATE_TIME</literal> - date/time of
+ the creation of the collection.</para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">IS_NEW</literal> - set to 1 if the
+ collection is new (not yet persisted) otherwise set to 0.</para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">KEY</literal> - the value of the
+ initcol variable (the client's IP address in the example).</para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">LAST_UPDATE_TIME</literal> - date/time
+ of the last update to the collection.</para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">TIMEOUT</literal> - date/time in
+ seconds when the collection will be updated on disk from memory (if no
+ other updates occur). This variable may be set if you wish to specifiy
+ an explicit expiration time (default is 3600 seconds).</para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">UPDATE_COUNTER</literal> - how many
+ times the collection has been updated since creation.</para>
+ </listitem>
+
+ <listitem>
+ <para><literal moreinfo="none">UPDATE_RATE</literal> - is the average
+ rate updates per minute since creation.</para>
+ </listitem>
+ </orderedlist>
+
+ <para>To create a collection to hold session variables (<literal
+ moreinfo="none">SESSION</literal>) use action <literal
+ moreinfo="none">setsid</literal>. To create a collection to hold user
+ variables (<literal moreinfo="none">USER</literal>) use action <literal
+ moreinfo="none">setuid</literal>. To create a collection to hold client
+ address variables (<literal moreinfo="none">IP</literal>) use action
+ <literal moreinfo="none">initcol</literal>.</para>
+
+ <note>
+ <para>ModSecurity implements atomic updates of persistent variables only
+ for integer variables (counters) at this time. Variables are read from
+ storage whenever <literal>initcol</literal> is encountered in the rules
+ and persisted at the end of request processing. Counters are adjusted by
+ applying a delta generated by re-reading the persisted data just before
+ being persisted. This keeps counter data consistent even if the counter
+ was modified and persisted by another thread/process during the
+ transaction.</para>
+ </note>
+
+ <note>
+ <para>ModSecurity uses a Berkley Database (SDBM) for persistant storage.
+ This type of database is generally limited to storing a maximum of 1008
+ bytes per key. This may be a limitation if you are attempting to store a
+ considerable amount of data in variables for a single key. Some of this
+ limitation is planned to be reduced in a future version of
+ ModSecurity.</para>
+ </note>
+ </section>
+
+ <section>
+ <title>Miscellaneous Topics</title>
+
+ <para></para>
+
+ <section>
+ <title>Impedance Mismatch</title>
+
+ <para>Web application firewalls have a difficult job trying to make
+ sense of data that passes by, without any knowledge of the application
+ and its business logic. The protection they provide comes from having an
+ independent layer of security on the outside. Because data validation is
+ done twice, security can be increased without having to touch the
+ application. In some cases, however, the fact that everything is done
+ twice brings problems. Problems can arise in the areas where the
+ communication protocols are not well specified, or where either the
+ device or the application do things that are not in the specification.
+ In such cases it may be possible to design payload that will be
+ interpreted in one way by one device and in another by the other device.
+ This problem is better known as Impedance Mismatch. It can be exploited
+ to evade the security devices.</para>
+
+ <para>While we will continue to enhance ModSecurity to deal with various
+ evasion techniques the problem can only be minimized, but never solved.
+ With so many different application backend chances are some will always
+ do something completely unexpected. The only solution is to be aware of
+ the technologies in the backend when writing rules, adapting the rules
+ to remove the mismatch. See the next section for some examples.</para>
+
+ <section>
+ <title>PHP Peculiarities for ModSecurity Users</title>
+
+ <para>When writing rules to protect PHP applications you need to pay
+ attention to the following facts:</para>
+
+ <orderedlist>
+ <listitem>
+ <para>When "register_globals" is set to "On" request parameters
+ are automatically converted to script variables. In some PHP
+ versions it is even possible to override the $GLOBALS
+ array.</para>
+ </listitem>
+
+ <listitem>
+ <para>Whitespace at the beginning of parameter names is ignored.
+ (This is very dangerous if you are writing rules to target
+ specific named variables.)</para>
+ </listitem>
+
+ <listitem>
+ <para>The remaining whitespace (in parameter names) is converted
+ to underscores. The same applies to dots and to a "[" if the
+ variable name does not contain a matching closing bracket.
+ (Meaning that if you want to exploit a script through a variable
+ that contains an underscore in the name you can send a parameter
+ with a whitespace or a dot instead.)</para>
+ </listitem>
+
+ <listitem>
+ <para>Cookies can be treated as request parameters.</para>
+ </listitem>
+
+ <listitem>
+ <para>The discussion about variable names applies equally to the
+ cookie names.</para>
+ </listitem>
+
+ <listitem>
+ <para>The order in which parameters are taken from the request and
+ the environment is EGPCS (environment, GET, POST, Cookies,
+ built-in variables). This means that a POST parameter will
+ overwrite the parameters transported on the request line (in
+ QUERY_STRING).</para>
+ </listitem>
+
+ <listitem>
+ <para>When "magic_quotes_gpc" is set to "On" PHP will use
+ backslash to escape the following characters: single quote, double
+ quote, backslash, and the nul byte.</para>
+ </listitem>
+
+ <listitem>
+ <para>If "magic_quotes_sybase" is set to "On" only the single
+ quote will be escaped using another single quote. In this case the
+ "magic_quotes_gpc" setting becomes irrelevant. The
+ "magic_quotes_sybase" setting completely overrides the
+ "magic_quotes_gpc" behaviour but "magic_quotes_gpc" still must be
+ set to "On" for the Sybase-specific quoting to be work.</para>
+ </listitem>
+
+ <listitem>
+ <para>PHP will also automatically create nested arrays for you.
+ For example "p[x][y]=1" results in a total of three
+ variables.</para>
+ </listitem>
+ </orderedlist>
+ </section>
+ </section>
+ </section>
+</article>
--- /dev/null
+<html><head><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>ModSecurity 2 Data Formats</title><link href="modsecurity-reference.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.69.1" name="generator"><link rel="start" href="#N10001" title="ModSecurity 2 Data Formats"><link rel="next" href="#N10016" title="Alerts"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div style="background:#F5F5F5;width:100%;border-top:1px solid #DDDDDD;border-bottom:1px solid #DDDDDD"><table width="100%" cellspacing="0" cellpadding="0"><tr><td><a href="http://www.modsecurity.org"><img style="margin:4px" src="modsecurity.gif" width="120" height="36" alt="ModSecurity" border="0"></a></td><td align="right"><a href="http://www.breach.com"><img style="margin:6px" src="breach-logo-small.gif" height="36" width="100" border="0"></a></td></tr></table></div><div class="article" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="N10001"></a>ModSecurity 2 Data Formats</h2></div><div><p class="releaseinfo">Version 2.5.10-dev1 (March 24, 2009)</p></div><div><p class="copyright">Copyright © 2004-2009 Breach Security, Inc. (<a href="http://www.breach.com" target="_top">http://www.breach.com</a>)</p></div></div><div></div><hr size="1"></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="#N10016">Alerts</a></span></dt><dd><dl><dt><span class="section"><a href="#N1002C">Alert Action Description</a></span></dt><dt><span class="section"><a href="#N10073">Alert Justification Description</a></span></dt><dt><span class="section"><a href="#N10152">Meta-data</a></span></dt><dt><span class="section"><a href="#N101C7">Escaping</a></span></dt><dt><span class="section"><a href="#N10233">Alerts in the Apache Error Log</a></span></dt><dt><span class="section"><a href="#N10254">Alerts in Audit Logs</a></span></dt></dl></dd><dt><span class="section"><a href="#N10269">Audit Log</a></span></dt><dd><dl><dt><span class="section"><a href="#N10290">Parts</a></span></dt><dt><span class="section"><a href="#N104AE">Storage Formats</a></span></dt><dt><span class="section"><a href="#N10517">Transport Protocol</a></span></dt></dl></dd></dl></div><p>The purpose of this document is to describe the formats of the ModSecurity alert messages,
+ transaction logs and communication protocols, which would not only allow for a better
+ understanding what ModSecurity does but also for an easy integration with third-party tools
+ and products.</p><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="N10016"></a>Alerts</h2></div></div><div></div></div><p>As part of its operations ModSecurity will emit alerts, which are either
+ <span class="emphasis"><em>warnings</em></span> (non-fatal) or <span class="emphasis"><em>errors</em></span> (fatal,
+ usually leading to the interception of the transaction in question). Below is an example
+ of a ModSecurity alert entry:</p><pre class="programlisting">Access denied with code 505 (phase 1). Match of "rx
+ ^HTTP/(0\\\\.9|1\\\\.[01])$" against "REQUEST_PROTOCOL" required.
+ [id "960034"] [msg "HTTP protocol version is not allowed by policy"]
+ [severity "CRITICAL"] [uri "/"] [unique_id "PQaTTVBEUOkAAFwKXrYAAAAM"]</pre><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Alerts will only ever contain one line of text but we've broken the above example
+ into multiple lines to make it fit into the page.</p></div><p>Each alert entry begins with the engine message, which describes what ModSecurity did
+ and why. For
+ example:<pre class="programlisting">Access denied with code 505 (phase 1). Match of "rx
+ ^HTTP/(0\\\\.9|1\\\\.[01])$" against "REQUEST_PROTOCOL" required.</pre></p><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1002C"></a>Alert Action Description</h3></div></div><div></div></div><p>The first part of the engine message tells you whether ModSecurity acted to
+ interrupt transaction or rule processing:</p><div class="orderedlist"><ol type="1"><li><p>If the alert is only a warning, the first sentence will simply say
+ <span class="emphasis"><em>Warning</em></span>.</p></li><li><p>If the transaction was intercepted, the first sentence will begin with
+ <span class="emphasis"><em>Access denied</em></span>. What follows is the list of possible
+ messages related to transaction interception:</p><div class="itemizedlist"><ul type="disc"><li><p><span class="emphasis"><em>Access denied with code %0</em></span> - a response with
+ status code <code class="literal">%0</code> was sent.</p></li><li><p><span class="emphasis"><em>Access denied with connection close</em></span> -
+ connection was abruptly closed.</p></li><li><p><span class="emphasis"><em>Access denied with redirection to %0 using status
+ %1</em></span> - a redirection to URI <code class="literal">%0</code> was
+ issued using status <code class="literal">%1</code>.</p></li></ul></div></li><li><p>There is also a special message that ModSecurity emits where an <code class="literal">allow</code> action is executed. There are three variations of this
+ type of message:</p><div class="itemizedlist"><ul type="disc"><li><p><span class="emphasis"><em>Access allowed</em></span> - rule engine stopped
+ processing rules (transaction was unaffected).</p></li><li><p><span class="emphasis"><em>Access to phase allowed</em></span> - rule engine stopped
+ processing rules in the current phase only. Subsequent phases will
+ be processed normally. Transaction was not affected by this rule but
+ it may be affected by any of the rules in the subsequent
+ phase.</p></li><li><p><span class="emphasis"><em>Access to request allowed</em></span> - rule engine
+ stopped processing rules in the current phase. Phases prior to
+ request execution in the backend (currently phases 1 and 2) will not
+ be processed. The response phases (currently phases 3 and 4) and
+ others (currently phase 5) will be processed as normal. Transaction
+ was not affected by this rule but it may be affected by any of the
+ rules in the subsequent phase.</p></li></ul></div></li></ol></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10073"></a>Alert Justification Description</h3></div></div><div></div></div><p>The second part of the engine message explains <span class="emphasis"><em>why</em></span> the alert
+ was generated. Since it is automatically generated from the rules it will be very
+ technical in nature, talking about operators and their parameters and give you
+ insight into what the rule looked like. But this message cannot give you insight
+ into the reasoning behind the rule. A well-written rule will always specify a
+ human-readable message (using the <code class="literal">msg</code> action) to provide further
+ information.</p><p>The format of the second part of the engine message depends on whether it was
+ generated by the operator (which happens on a match) or by the rule processor (which
+ happens where there is not a match, but the negation was used):</p><div class="itemizedlist"><ul type="disc"><li><p><code class="literal">@beginsWith</code> - <span class="emphasis"><em>String match %0 at
+ %1.</em></span></p></li><li><p><code class="literal">@contains</code> - <span class="emphasis"><em>String match %0 at
+ %1.</em></span></p></li><li><p><code class="literal">@containsWord</code> - <span class="emphasis"><em>String match %0 at
+ %1.</em></span></p></li><li><p><code class="literal">@endsWith</code> - <span class="emphasis"><em>String match %0 at
+ %1.</em></span></p></li><li><p><code class="literal">@eq</code> - <span class="emphasis"><em>Operator EQ matched %0 at
+ %1.</em></span></p></li><li><p><code class="literal">@ge</code> - <span class="emphasis"><em>Operator GE matched %0 at
+ %1.</em></span></p></li><li><p><code class="literal">@geoLookup</code> - <span class="emphasis"><em>Geo lookup for %0 succeeded at
+ %1.</em></span></p></li><li><p><code class="literal">@inspectFile</code> - <span class="emphasis"><em>File %0 rejected by the
+ approver script %1: %2</em></span></p></li><li><p><code class="literal">@le</code> - <span class="emphasis"><em>Operator LE matched %0 at
+ %1.</em></span></p></li><li><p><code class="literal">@lt</code> - <span class="emphasis"><em>Operator LT matched %0 at
+ %1.</em></span></p></li><li><p><code class="literal">@rbl</code> - <span class="emphasis"><em>RBL lookup of %0 succeeded at
+ %1.</em></span></p></li><li><p><code class="literal">@rx</code> - <span class="emphasis"><em>Pattern match %0 at
+ %1.</em></span></p></li><li><p><code class="literal">@streq</code> - <span class="emphasis"><em>String match %0 at
+ %1.</em></span></p></li><li><p><code class="literal">@validateByteRange</code> - <span class="emphasis"><em>Found %0 byte(s) in %1
+ outside range: %2.</em></span></p></li><li><p><code class="literal">@validateDTD</code> - <span class="emphasis"><em>XML: DTD validation
+ failed.</em></span></p></li><li><p><code class="literal">@validateSchema</code> - <span class="emphasis"><em>XML: Schema validation
+ failed.</em></span></p></li><li><p><code class="literal">@validateUrlEncoding</code></p><div class="itemizedlist"><ul type="circle"><li><p><span class="emphasis"><em>Invalid URL Encoding: Non-hexadecimal digits used at
+ %0.</em></span></p></li><li><p><span class="emphasis"><em>Invalid URL Encoding: Not enough characters at the end
+ of input at %0.</em></span></p></li></ul></div></li><li><p><code class="literal">@validateUtf8Encoding</code></p><div class="itemizedlist"><ul type="circle"><li><p><span class="emphasis"><em>Invalid UTF-8 encoding: not enough bytes in character at
+ %0.</em></span></p></li><li><p><span class="emphasis"><em>Invalid UTF-8 encoding: invalid byte value in character
+ at %0.</em></span></p></li><li><p><span class="emphasis"><em>Invalid UTF-8 encoding: overlong character detected at
+ %0.</em></span></p></li><li><p><span class="emphasis"><em>Invalid UTF-8 encoding: use of restricted character at
+ %0.</em></span></p></li><li><p><span class="emphasis"><em>Invalid UTF-8 encoding: decoding error at
+ %0.</em></span></p></li></ul></div></li><li><p><code class="literal">@verifyCC</code> - <span class="emphasis"><em>CC# match %0 at
+ %1.</em></span></p></li></ul></div><p>Messages not related to operators:</p><div class="itemizedlist"><ul type="disc"><li><p>When <code class="literal">SecAction</code> directive is processed -
+ <span class="emphasis"><em>Unconditional match in SecAction.</em></span></p></li><li><p>When <code class="literal">SecRule</code> does not match but negation is used -
+ <span class="emphasis"><em>Match of %0 against %1 required.</em></span></p></li></ul></div><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>The parameters to the operators <code class="literal">@rx</code> and <code class="literal">@pm</code> (regular expression and text pattern, respectively) will be
+ truncated to 252 bytes if they are longer than this limit. In this case the
+ parameter in the alert message will be terminated with three dots.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10152"></a>Meta-data</h3></div></div><div></div></div><p>The metadata fields are always placed at the end of the alert entry. Each metadata
+ field is a text fragment that consists of an open bracket followed by the metadata
+ field name, followed by the value and the closing bracket. What follows is the text
+ fragment that makes up the <code class="literal">id</code> metadata field.</p><pre class="programlisting">[id "960034"]</pre><p>The following metadata fields are currently used:</p><div class="orderedlist"><ol type="1"><li><p><code class="literal">offset</code> - The byte offset where a match occured within
+ the target data. This is not always available.</p></li><li><p><code class="literal">id</code> - Unique rule ID, as specified by the <code class="literal">id</code> action.</p></li><li><p><code class="literal">rev</code> - Rule revision, as specified by the <code class="literal">rev</code> action.</p></li><li><p><code class="literal">msg</code> - Human-readable message, as specified by the
+ <code class="literal">msg</code> action.</p></li><li><p><code class="literal">severity</code> - Event severity as text, as specified by the
+ <code class="literal">severity</code> action. The possible values (with their
+ corresponding numberical values in brackets) are <code class="literal">EMERGENCY</code> (0), <code class="literal">ALERT</code> (1), <code class="literal">CRITICAL</code> (2), <code class="literal">ERROR</code> (3), <code class="literal">WARNING</code> (4), <code class="literal">NOTICE</code> (5), <code class="literal">INFO</code> (6) and <code class="literal">DEBUG</code> (7).</p></li><li><p><code class="literal">unique_id</code> - Unique event ID, generated
+ automatically.</p></li><li><p><code class="literal">uri</code> - Request URI.</p></li><li><p><code class="literal">logdata</code> - contains transaction data fragment, as
+ specified by the <code class="literal">logdata</code> action.</p></li></ol></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N101C7"></a>Escaping</h3></div></div><div></div></div><p>ModSecurity alerts will always contain text fragments that were taken from
+ configuration or the transaction. Such text fragments escaped before they are user
+ in messages, in order to sanitise the potentially dangerous characters. They are
+ also sometimes surrounded using double quotes. The escaping algorithm is as
+ follows:<div class="orderedlist"><ol type="1"><li><p>Characters <code class="literal">0x08</code> (<code class="literal">BACKSPACE</code>),
+ <code class="literal">0x0a</code> (<code class="literal">NEWLINE</code>), <code class="literal">0x10</code> (<code class="literal">CARRIAGE RETURN</code>), <code class="literal">0x09</code> (<code class="literal">HORIZONTAL TAB</code>) and <code class="literal">0x0b</code> (<code class="literal">VERTICAL TAB</code>) will be
+ represented as <code class="literal">\b</code>, <code class="literal">\n</code>, <code class="literal">\r</code>, <code class="literal">\t</code> and <code class="literal">\v</code>,
+ respectively.</p></li><li><p>Bytes from the ranges <code class="literal">0-0x1f</code> and <code class="literal">0x7f-0xff</code> (inclusive) will be represented as <code class="literal">\xHH</code>, where <code class="literal">HH</code> is the hexadecimal
+ value of the byte.</p></li><li><p>Backslash characters (<code class="literal">\</code>) will be represented as
+ <code class="literal">\\</code>.</p></li><li><p>Each double quote character will be represented as <code class="literal">\"</code>, but only if the entire fragment is surrounded with
+ double quotes.</p></li></ol></div></p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10233"></a>Alerts in the Apache Error Log</h3></div></div><div></div></div><p>Every ModSecurity alert conforms to the following format when it appears in the
+ Apache error log:</p><pre class="programlisting">[Sun Jun 24 10:19:58 2007] [error] [client 192.168.0.1]
+ ModSecurity: ALERT_MESSAGE</pre><p>The above is a standard Apache error log format. The <code class="literal">ModSecurity:
+ </code> prefix is specific to ModSecurity. It is used to allow quick
+ identification of ModSecurity alert messages when they appear in the same file next
+ to other Apache messages.</p><p>The actual message (<code class="literal">ALERT_MESSAGE</code> in the example above) is in
+ the same format as described in the <span class="emphasis"><em>Alerts</em></span> section.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Apache further escapes ModSecurity alert messages before writing them to the
+ error log. This means that all backslash characters will be doubled in the error
+ log. In practice, since ModSecurity will already represent a single backslash
+ within an untrusted text fragment as two backslashes, the end result in the
+ Apache error log will be <span class="emphasis"><em>four</em></span> backslashes. Thus, if you
+ need to interpret a ModSecurity message from the error log, you should decode
+ the message part after the <code class="literal">ModSecurity:</code> prefix first. This
+ step will peel the first encoding layer.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10254"></a>Alerts in Audit Logs</h3></div></div><div></div></div><p>Alerts are transported in the <code class="literal">H</code> section of the ModSecurity
+ Audit Log. Alerts will appear each on a separate line and in the order they were
+ generated by ModSecurity. Each line will be in the following format:</p><pre class="programlisting">Message: ALERT_MESSAGE</pre><p>Below is an example of an <code class="literal">H</code> section that contains two alert
+ messages:</p><pre class="programlisting">--c7036611-H--
+Message: Warning. Match of "rx ^apache.*perl" against
+ "REQUEST_HEADERS:User-Agent" required. [id "990011"] [msg "Request
+ Indicates an automated program explored the site"] [severity "NOTICE"]
+Message: Warning. Pattern match "(?:\\b(?:(?:s(?:elect\\b(?:.{1,100}?\\b
+ (?:(?:length|count|top)\\b.{1,100}?\\bfrom|from\\b.{1,100}?\\bwhere)
+ |.*?\\b(?:d(?:ump\\b.*\\bfrom|ata_type)|(?:to_(?:numbe|cha)|inst)r))|p_
+ (?:(?:addextendedpro|sqlexe)c|(?:oacreat|prepar)e|execute(?:sql)?|
+ makewebt ..." at ARGS:c. [id "950001"] [msg "SQL Injection Attack.
+ Matched signature: union select"] [severity "CRITICAL"]
+Stopwatch: 1199881676978327 2514 (396 2224 -)
+Producer: ModSecurity v2.x.x (Apache 2.x)
+Server: Apache/2.x.x
+
+--c7036611-Z--</pre></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="N10269"></a>Audit Log</h2></div></div><div></div></div><p>ModSecurity records one transaction in a single audit log file. Below is an
+ example:</p><pre class="programlisting">--c7036611-A--
+[09/Jan/2008:12:27:56 +0000] OSD4l1BEUOkAAHZ8Y3QAAAAH 209.90.77.54 64995
+ 80.68.80.233 80
+--c7036611-B--
+GET //EvilBoard_0.1a/index.php?c='/**/union/**/select/**/1,concat(username,
+ char(77),password,char(77),email_address,char(77),info,char(77),user_level,
+ char(77))/**/from/**/eb_members/**/where/**/userid=1/*http://kamloopstutor.
+ com/images/banners/on.txt? HTTP/1.1
+TE: deflate,gzip;q=0.3
+Connection: TE, cslose
+Host: www.example.com
+User-Agent: libwww-perl/5.808
+
+--c7036611-F--
+HTTP/1.1 404 Not Found
+Content-Length: 223
+Connection: close
+Content-Type: text/html; charset=iso-8859-1
+
+--c7036611-H--
+Message: Warning. Match of "rx ^apache.*perl" against
+ "REQUEST_HEADERS:User-Agent" required. [id "990011"] [msg "Request
+ Indicates an automated program explored the site"] [severity "NOTICE"]
+Message: Warning. Pattern match "(?:\\b(?:(?:s(?:elect\\b(?:.{1,100}?\\b
+ (?:(?:length|count|top)\\b.{1,100}?\\bfrom|from\\b.{1,100}?\\bwhere)
+ |.*?\\b(?:d(?:ump\\b.*\\bfrom|ata_type)|(?:to_(?:numbe|cha)|inst)r))|p_
+ (?:(?:addextendedpro|sqlexe)c|(?:oacreat|prepar)e|execute(?:sql)?|
+ makewebt ..." at ARGS:c. [id "950001"] [msg "SQL Injection Attack.
+ Matched signature: union select"] [severity "CRITICAL"]
+Stopwatch: 1199881676978327 2514 (396 2224 -)
+Producer: ModSecurity v2.x.x (Apache 2.x)
+Server: Apache/2.x.x
+
+--c7036611-Z--
+</pre><p>The file consist of multiple sections, each in different format. Separators are used
+ to define sections:</p><pre class="programlisting">--c7036611-A--</pre><p>A separator always begins on a new line and conforms to the following format:</p><div class="orderedlist"><ol type="1"><li><p>Two dashes</p></li><li><p>Unique boundary, which consists from several hexadecimal characters.</p></li><li><p>One dash character.</p></li><li><p>Section identifier, currently a single uppercase letter.</p></li><li><p>Two trailing dashes.</p></li></ol></div><p>Refer to the documentation for <code class="literal">SecAuditLogParts</code> for the explanation
+ of each part.</p><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10290"></a>Parts</h3></div></div><div></div></div><p>This section documents the audit log parts available in ModSecurity 2.x. They are: <div class="itemizedlist"><ul type="disc"><li><p><code class="literal">A</code> - audit log header</p></li><li><p><code class="literal">B</code> - request headers</p></li><li><p><code class="literal">C</code> - request body</p></li><li><p><code class="literal">D</code> - intended response headers (NOT
+ IMPLEMENTED)</p></li><li><p><code class="literal">E</code> - intended response body</p></li><li><p><code class="literal">F</code> - response headers</p></li><li><p><code class="literal">G</code> - response body (NOT
+ IMPLEMENTED)</p></li><li><p><code class="literal">H</code> - audit log trailer</p></li><li><p><code class="literal">I</code> - reduced multipart request
+ body</p></li><li><p><code class="literal">J</code> - multipart files information
+ (NOT IMPLEMENTED)</p></li><li><p><code class="literal">K</code> - matched rules
+ information</p></li><li><p><code class="literal">Z</code> - audit log footer</p></li></ul></div></p><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="N102DE"></a>Audit Log Header (<code class="literal">A</code>)</h4></div></div><div></div></div><p>ModSecurity 2.x audit log entries always begin with the header part. For
+ example:</p><pre class="programlisting">--c7036611-A--
+[09/Jan/2008:12:27:56 +0000] OSD4l1BEUOkAAHZ8Y3QAAAAH 209.90.77.54 64995
+ 80.68.80.233 80</pre><p>The header contains only one line, with the following information on
+ it:</p><div class="orderedlist"><ol type="1"><li><p>Timestamp</p></li><li><p>Unique transaction ID</p></li><li><p>Source IP address (IPv4 or IPv6)</p></li><li><p>Source port</p></li><li><p>Destination IP address (IPv4 or IPv6)</p></li><li><p>Destination port</p></li></ol></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="N10301"></a>Request Headers (<code class="literal">B</code>)</h4></div></div><div></div></div><p>The request headers part contains the request line and the request headers.
+ The information present in this part will not be identical to that sent by the
+ client responsible for the transaction. ModSecurity 2.x for Apache does not have
+ access to the raw data; it sees what Apache itself sees. While the end result
+ may be identical to the raw request, differences are possible in some
+ areas:</p><div class="orderedlist"><ol type="1"><li><p>If any of the fields are <code class="literal">NUL</code>-terminated, Apache
+ will only see the content prior to the NUL.</p></li><li><p>Headers that span multiple lines (feature known as header folding)
+ will be collapsed into a single line.</p></li><li><p>Multiple headers with the same name will be combined into a single
+ header (as allowed by the HTTP RFC).</p></li></ol></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="N1031A"></a>Request Body (<code class="literal">C</code>)</h4></div></div><div></div></div><p>This part contains the request body of the transaction, after dechunking and
+ decompression (if applicable).</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="N10323"></a>Intended Response Headers (<code class="literal">D</code>)</h4></div></div><div></div></div><p>This part contains the status line and the request headers that would have
+ been delivered to the client had ModSecurity not intervened. Thus this part
+ makes sense only for transactions where ModSecurity altered the data flow. By
+ differentiating before the intended and the final response headers, we are able
+ to record what was internally ready for sending, but also what was actually
+ sent.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This part is reserved for future use. It is not implemented in ModSecurity
+ 2.x.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="N1032F"></a>Intended Response Body (<code class="literal">E</code>)</h4></div></div><div></div></div><p>This part contains the transaction response body (before compression and
+ chunking, where used) that was either sent or would have been sent had
+ ModSecurity not intervened. You can find whether interception took place by
+ looking at the <code class="literal">Action</code> header of the part <code class="literal">H</code>. If that header is present, and the interception took place in
+ phase 3 or 4 then the <code class="literal">E</code> part contains the intended response
+ body. Otherwise, it contains the actual response body.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Once the <code class="literal">G</code> (actual response body) part is implemented,
+ part <code class="literal">E</code> will be present only in audit logs that contain a
+ transaction that was intercepted, and there will be no need for further
+ analsys.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="N1034F"></a>Response Headers (<code class="literal">F</code>)</h4></div></div><div></div></div><p>This part contains the actual response headers sent to the client. Since
+ ModSecurity 2.x for Apache does not access the raw connection data, it
+ constructs part <code class="literal">F</code> out of the internal Apache data structures
+ that hold the response headers.</p><p>Some headers (the <code class="literal">Date</code> and <code class="literal">Server</code>
+ response headers) are generated just before they are sent and ModSecurity is not
+ able to record those. You should note than ModSecurity is working as part of a
+ reverse proxy, the backend web server will have generated these two servers, and
+ in that case they will be recorded. </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="N10366"></a>Response Body (G)</h4></div></div><div></div></div><p>When implemented, this part will contain the actual response body before
+ compression and chunking.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This part is reserved for future use. It is not implemented in ModSecurity
+ 2.x.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="N1036E"></a>Audit Log Trailer (H)</h4></div></div><div></div></div><p>Part <code class="literal">H</code> contains additional transaction meta-data that was
+ obtained from the web server or from ModSecurity itself. The part contains a
+ number of trailer headers, which are similar to HTTP headers (without support
+ for header folding):<div class="orderedlist"><ol type="1"><li><p>Action</p></li><li><p>Apache-Error</p></li><li><p>Message</p></li><li><p>Producer</p></li><li><p>Response-Body-Transformed</p></li><li><p>Sanitised-Args</p></li><li><p>Sanitised-Request-Headers</p></li><li><p>Sanitised-Response-Headers</p></li><li><p>Server</p></li><li><p>Stopwatch</p></li><li><p>WebApp-Info</p></li></ol></div></p><div class="section" lang="en"><div class="titlepage"><div><div><h5 class="title"><a name="N1039B"></a>Action</h5></div></div><div></div></div><p>The <code class="literal">Action</code> header is present only for the transactions
+ that were intercepted:</p><pre class="programlisting">Action: Intercepted (phase 2)</pre><p>The phase information documents the phase in which the decision to
+ intercept took place.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h5 class="title"><a name="N103A9"></a>Apache-Error</h5></div></div><div></div></div><p>The Apache-Error header contains Apache error log messages observed by
+ ModSecurity, excluding those sent by ModSecurity itself. For example:</p><pre class="programlisting">Apache-Error: [file "/tmp/buildd/apache2-2.0.54/build-tree/apache2/server/
+ core.c"] [line 3505] [level 3] File does not exist: /var/www/www.
+ modsecurity.org/fst/documentation/modsecurity-apache/2.5.0-dev2</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h5 class="title"><a name="N103B1"></a>Message</h5></div></div><div></div></div><p>Zero or more <code class="literal">Message</code> headers can be present in any
+ trailer, and each such header will represent a single ModSecurity warning or
+ error, displayed in the order they were raised.</p><p>The example below was broken into multiple lines to make it fit this
+ page:</p><pre class="programlisting">Message: Access denied with code 400 (phase 2). Pattern match "^\w+:/" at
+ REQUEST_URI_RAW. [file "/etc/apache2/rules-1.6.1/modsecurity_crs_20_
+ protocol_violations.conf"] [line "74"] [id "960014"] [msg "Proxy access
+ attempt"] [severity "CRITICAL"] [tag "PROTOCOL_VIOLATION/PROXY_ACCESS"]</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h5 class="title"><a name="N103BF"></a>Producer</h5></div></div><div></div></div><p>The <code class="literal">Producer</code> header identifies the product that
+ generated the audit log. For example:</p><pre class="programlisting">Producer: ModSecurity for Apache/2.5.5 (http://www.modsecurity.org/).</pre><p>ModSecurity allows rule sets to add their own signatures to the <code class="literal">Producer</code> information (this is done using the <code class="literal">SecComponentSignature</code> directive). Below is an example of the
+ <code class="literal">Producer</code> header with the signature of one component
+ (all one line):</p><pre class="programlisting">Producer: ModSecurity for Apache/2.5.5 (http://www.modsecurity.org/);
+ MyComponent/1.0.0 (Beta).</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h5 class="title"><a name="N103DC"></a>Response-Body-Transformed</h5></div></div><div></div></div><p>This header will appear in every audit log that contains a response
+ body:</p><pre class="programlisting">Response-Body-Transformed: Dechunked</pre><p>The contents of the header is constant at present, so the header is only
+ useful as a reminder that the recorded response body is not identical to the
+ one sent to the client. The actual content is the same, except that Apache
+ may further compress the body and deliver it in chunks.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h5 class="title"><a name="N103E6"></a>Sanitised-Args</h5></div></div><div></div></div><p>The <code class="literal">Sanitised-Args</code> header contains a list of arguments
+ that were sanitised (each byte of their content replaced with an asterisk)
+ before logging. For example:</p><pre class="programlisting">Sanitised-Args: "old_password", "new_password", "new_password_repeat".</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h5 class="title"><a name="N103F2"></a>Sanitised-Request-Headers</h5></div></div><div></div></div><p>The <code class="literal">Sanitised-Request-Headers</code> header contains a list of
+ request headers that were sanitised before logging. For example:</p><pre class="programlisting">Sanitised-Request-Headers: "Authentication".</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h5 class="title"><a name="N103FE"></a>Sanitised-Response-Headers</h5></div></div><div></div></div><p>The <code class="literal">Sanitised-Response-Headers</code> header contains a list
+ of response headers that were sanitised before logging. For example:</p><pre class="programlisting">Sanitised-Response-Headers: "My-Custom-Header".</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h5 class="title"><a name="N1040A"></a>Server</h5></div></div><div></div></div><p>The <code class="literal">Server</code> header identifies the web server. For
+ example:</p><pre class="programlisting">Server: Apache/2.0.54 (Debian GNU/Linux) mod_ssl/2.0.54 OpenSSL/0.9.7e</pre><p>This information may sometimes be present in any of the parts that contain
+ response headers, but there are a few cases when it isn't:<div class="orderedlist"><ol type="1"><li><p>None of the response headers were recoreded.</p></li><li><p>The information in the response headers is not accurate
+ because server signature masking was used.</p></li></ol></div></p></div><div class="section" lang="en"><div class="titlepage"><div><div><h5 class="title"><a name="N10421"></a>Stopwatch</h5></div></div><div></div></div><p>The <code class="literal">Stopwatch</code> header provides certain diagnostic
+ information that allows you to determine the performance of the web server
+ and of ModSecurity itself. It will typically look like this:</p><pre class="programlisting">Stopwatch: 1222945098201902 2118976 (770* 4400 -)</pre><p>Each line can contain up to 5 different values. Some values can be absent;
+ each absent value will be replaced with a dash.</p><p>The meanings of the values are as follows (all values are in
+ microseconds):<div class="orderedlist"><ol type="1"><li><p>Transaction timestamp in microseconds since January 1st,
+ 1970.</p></li><li><p>Transaction duration.</p></li><li><p>The time between the moment Apache started processing the
+ request and until phase 2 of ModSecurity began. If an asterisk
+ is present that means the time includes the time it took
+ ModSecurity to read the request body from the client (typically
+ slow). This value can be used to provide a rough estimate of the
+ client speed, but only with larger request bodies (the smaller
+ request bodies may arrive in a single TCP/IP packet).</p></li><li><p>The time between the start of processing and until phase 2 was
+ completed. If you substract the previous value from this value
+ you will get the exact duration of phase 2 (which is the main
+ rule processing phase).</p></li><li><p>The time between the start of request processing and util we
+ began sending a fully-buffered response body to the client. If
+ you substract this value from the total transaction duration and
+ divide with the response body size you may get a rough estimate
+ of the client speed, but only for larger response bodies.</p></li></ol></div></p></div><div class="section" lang="en"><div class="titlepage"><div><div><h5 class="title"><a name="N10443"></a>WebApp-Info</h5></div></div><div></div></div><p>The <code class="literal">WebApp-Info</code> header contains information on the
+ application to which the recorded transaction belongs. This information will
+ appear only if it is known, which will happen if <code class="literal">SecWebAppId</code> was set, or <code class="literal">setsid</code> or <code class="literal">setuid</code> executed in the transaction.</p><p>The header uses the following format:</p><pre class="programlisting">WebApp-Info: "WEBAPPID" "SESSIONID" "USERID"</pre><p>Each unknown value is replaced with a dash.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="N1045F"></a>Reduced Multipart Request Body (<code class="literal">I</code>)</h4></div></div><div></div></div><p>Transactions that deal with file uploads tend to be large, yet the file
+ contents is not always relevant from the security point of view. The <code class="literal">I</code> part was designed to avoid recording raw <code class="literal">multipart/form-data</code> request bodies, replacing them with a
+ simulated <code class="literal">application/x-www-form-urlencoded</code> body that
+ contains the same key-value parameters.</p><p>The reduced multipart request body will not contain any file information. The
+ <code class="literal">J</code> part (currently not implemented) is intended to carry
+ the file metadata.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="N1047A"></a>Multipart Files Information (<code class="literal">J</code>)</h4></div></div><div></div></div><p>The purpose of part <code class="literal">J</code> is to record the information on the
+ files contained in a <code class="literal">multipart/form-data</code> request body. This
+ is handy in the cases when the original request body was not recorded, or when
+ only a reduced version was recorded (e.g. when part <code class="literal">I</code> was
+ used instead of part <code class="literal">C</code>).</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This part is reserved for future use. It is not implemented in ModSecurity
+ 2.x.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="N10496"></a>Matched Rules (<code class="literal">K</code>)</h4></div></div><div></div></div><p>The matched rules part contains a record of all ModSecurity rules that matched
+ during transaction processing. You should note that if a rule that belongs to a
+ chain matches then the entire chain will be recorded. This is because, even
+ though the disruptive action may not have executed, other per-rule actions have,
+ and you will need to see the entire chain in order to understand the
+ rules.</p><p>This part is available starting with ModSecurity 2.5.x.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="N104A1"></a>Audit Log Footer (<code class="literal">Z</code>)</h4></div></div><div></div></div><p>Part <code class="literal">Z</code> is a special part that only has a boundary but no
+ content. Its only purpose is to signal the end of an audit log.</p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N104AE"></a>Storage Formats</h3></div></div><div></div></div><p>ModSecurity supports two audit log storage formats:<div class="orderedlist"><ol type="1"><li><p><span class="emphasis"><em>Serial</em></span> audit log format - multiple audit log
+ files stored in the same file.</p></li><li><p><span class="emphasis"><em>Concurrent</em></span> audit log format - one file is used
+ for every audit log.</p></li></ol></div></p><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="N104C0"></a>Serial Audit Log Format</h4></div></div><div></div></div><p>The serial audit log format stores multiple audit log entries within the same
+ file (one after another). This is often very convinent (audit log entries are
+ easy to find) but this format is only suitable for light logging in the current
+ ModSecurity implementation because writing to the file is serialised: only one
+ audit log entry can be written at any one time.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="N104C5"></a>Concurrent Audit Log Format</h4></div></div><div></div></div><p>The concurrent audit log format uses one file per audit log entry, and allows
+ many transactions to be recorded at once. A hierarchical directory structure is
+ used to ensure that the number of files created in any one directory remains
+ relatively small. For example:</p><pre class="programlisting">$LOGGING-HOME/20081128/20081128-1414/20081128-141417-
+ egDKy38AAAEAAAyMHXsAAAAA</pre><p>The current time is used to work out the directory structure. The file name is
+ constructed using the current time and the transaction ID.</p><p>The creation of every audit log in concurrent format is recorded with an entry
+ in the concurrent audit log <span class="emphasis"><em>index file</em></span>. The format of each
+ line resembles the common web server access log format. For example:</p><pre class="programlisting">192.168.0.111 192.168.0.1 - - [28/Nov/2008:15:06:32 +0000]
+ "GET /?p=\\ HTTP/1.1" 200 69 "-" "-" NOfRx38AAAEAAAzcCU4AAAAA
+ "-" /20081128/20081128-1506/20081128-150632-NOfRx38AAAEAAAzcCU4AAAAA
+ 0 1183 md5:ffee2d414cd43c2f8ae151652910ed96</pre><p>The tokens on the line are as follows:</p><div class="orderedlist"><ol type="1"><li><p>Hostname (or IP address, if the hostname is not known)</p></li><li><p>Source IP address</p></li><li><p>Remote user (from HTTP Authentication)</p></li><li><p>Local user (from identd)</p></li><li><p>Timestamp</p></li><li><p>Request line</p></li><li><p>Response status</p></li><li><p>Bytes sent (in the response body)</p></li><li><p>Referrer information</p></li><li><p>User-Agent information</p></li><li><p>Transaction ID</p></li><li><p>Session ID</p></li><li><p>Audit log file name (relative to the audit logging home, as configured
+ using the <code class="literal">SecAuditLogStorageDir</code> directive)</p></li><li><p>Audit log offset</p></li><li><p>Audit log size</p></li><li><p>Audit log hash (the has begins with the name of the algorithm used,
+ followed by a colon, followed by the hexadecimal representation of the
+ hash itself); this hash can be used to verify that the transaction was
+ correctly recorded and that it hasn't been modified since.</p></li></ol></div><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Lines in the index file will be up to 3980 bytes long, and the information
+ logged will be reduced to fit where necessary. Reduction will occur within
+ the individual fields, but the overall format will remain the same. The
+ character <code class="literal">L</code> will appear as the last character on a
+ reduced line. A space will be the last character on a line that was not
+ reduced to stay within the limit.</p></div></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10517"></a>Transport Protocol</h3></div></div><div></div></div><p>Audit logs generated in multi-sensor deployments are of little use if left on the
+ sensors. More commonly, they will be transported to a central logging server using
+ the transport protocol described in this section:</p><div class="orderedlist"><ol type="1"><li><p>The transport protocol is based on the HTTP protocol.</p></li><li><p>The server end is an SSL-enabled web server with HTTP Basic Authentication
+ configured.</p></li><li><p>Clients will open a connection to the centralisation web server and
+ authenticate (given the end-point URI, the username and the
+ password).</p></li><li><p>Clients will submit every audit log in a single <code class="literal">PUT</code>
+ transaction, placing the file in the body of the request and additional
+ information in the request headers (see below for details).</p></li><li><p>Server will process each submission and respond with an appropriate status
+ code: </p><div class="orderedlist"><ol type="a"><li><p>200 (OK) - the submission was processed; the client can delete the
+ corresponding audit log entry if it so desires. The same audit log
+ entry must not be submitted again.</p></li><li><p>409 (Conflict) - if the submission is in invalid format and cannot
+ be processed. The client should attempt to fix the problem with the
+ submission and attempt delivery again at a later time. This error is
+ generally going to occur due to a programming error in the protocol
+ implementation, and not because of the content of the audit log
+ entry that is being transported. </p></li><li><p>500 (Internal Server Error) - if the server was unable to
+ correctly process the submission, due to its own fault. The client
+ should re-attempt delivery at a later time. A client that starts
+ receiving 500 reponses to all its submission should suspend its
+ operations for a period of time before continuing.</p></li></ol></div></li></ol></div><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Server implementations are advised to accept all submissions that correctly
+ implement the protocol. Clients are unlikely to be able to overcome problems
+ within audit log entries, so such problems are best resolved on the server
+ side.</p></div><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>When en error occurs, the server may place an explanation of the problem in
+ the text part of the response line.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="N10544"></a>Request Headers Information</h4></div></div><div></div></div><p>Each audit log entry submission must contain additional information in the
+ request headers:</p><div class="orderedlist"><ol type="1"><li><p>Header <code class="literal">X-Content-Hash</code> must contain the audit log
+ entry hash. Clients should expect the audit log entries to be validated
+ against the hash by the server.</p></li><li><p>Header <code class="literal">X-ForensicLog-Summary</code> must contain the
+ entire concurrent format index line.</p></li><li><p>The <code class="literal">Content-Lenght</code> header must be present and
+ contain the length of the audit log entry.</p></li></ol></div></div></div></div></div><div align="center" class="copyright">Copyright (C) 2004-2009 <a href="http://www.breach.com">Breach Security</a></div></body></html>
\ No newline at end of file
--- /dev/null
+%PDF-1.3
+%ª«¬
+4 0 obj
+<< /Type /Info
+/Producer (FOP 0.20.5) >>
+endobj
+5 0 obj
+<< /Length 982 /Filter [ /ASCII85Decode /FlateDecode ]
+ >>
+stream
+Gb"/k?#Q2d'Sc)P'ttsAin-Ho@X%('e7t7,(%#Vh"XPE[C-kDRWr;hJ5Q\<,Vb*/>:.IheO(8(^!:jopK2:Lb4:ZfC;Hq;"5<s21\0XVS"GelL+@s'N-C65XcALOQE"WD>$Qqc6COsFqJ@V1i)DJH&G[1P%**do^J?fk56fJjV(1%f`Rk/t9oBOq`N.iuCZ7OEL'LOuUWaqK;;3\,Wg5a6u&mmZZY(#eUcM.#8#7<p5!(O)I)M;D'Egmm2\h<GX.&`l1NG$p?hBh$5f1DA_Hb&3m*\\AcN`sVsGD[jM!\C(#ai<%KZ2%D^Me0;7VL$feDAC]J=RK3<reb>N16`Y</E9n[a1c7n6VkiUl$K\Ie3..kf.$+a4X0mNL!-LMI%3kO+!9`Q>mX5`<Vt\1FaqHBTu-NX<^.h3q341oXuNu(cZ]%XECn#V5/>WV?"N?YXZUQ^KXWMfj!B47eP>S>d[(gZ$WIsO86@qtW:;,F&J5Te&cYK,8L*@-5sffO(3(QUVj>P)4&ARWLT2YJRTAeuW8Y(!S!NlI9pACi2/#fVjY%f%+sQ$9aomcUaqnUJl=!oYo/o`R<=:bUPtENS<,Np)+sOa"m.K*'@'AtLlZTu8F]KgK=gLH[QNV<pNeiLILkth*:Xq`oe\]F?X/G.81tgsU`Q0]deHPbG3J3-DLkpk3%/<>4Q0(ou7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uPC?<6,B9/%!`30UjenXaTg:+$_];i`!UY^ZPX.8sVZ$?GLR#Ukn83#hSODto^uSoLUcD[-d95@aQ^YJ0oI]PO9<ke&U=*CQ`%A[V2]R""g:G'8;);Z`GtM7g?cUb9K!Ge$9]5nF0='NJ.5H+CIeY$<uQR[Od0^MW;&D`;Q=[;s6dPq-_#lIDrLht6AS>IPq*-D[K7?+YD?2`I)`R3Dc"&-P91"@3S%5nF/b&-P91"@3S%5nF/b&-P91"@3S%5nF/b&-P91"@3S%5nF/b&-P91"@3S%5nF/b&-P91"@3S%5nF/b&-P91"@3S%5nF/b&-P91"@3S%5nF/b&-P91"@3S%5nF/b&-P91"@3S%5nF/b&-P91"@3S%5nF/b&-P91"@3S%5nF/b&-P91"@3S%5nF/b&-P91"@3S%5nF/b&-P91"@3S%5nF/b&-P91"@3S%5nF/b&-P91"@3S%5nF/b&-P91"@3S%5nF/b&-P91"@:bdrr[^3AS(~>
+endstream
+endobj
+7 0 obj
+<< /Type /Page
+/Parent 1 0 R
+/MediaBox [ 0 0 612 792 ]
+/Resources 3 0 R
+/Contents 5 0 R
+/Annots 8 0 R
+>>
+endobj
+8 0 obj
+[
+9 0 R
+10 0 R
+12 0 R
+14 0 R
+16 0 R
+18 0 R
+20 0 R
+22 0 R
+24 0 R
+26 0 R
+28 0 R
+]
+endobj
+9 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 360.934 317.602 472.804 306.602 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A << /URI (http://www.breach.com)
+/S /URI >>
+/H /I
+>>
+endobj
+10 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 120.0 231.744 146.884 220.744 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 11 0 R
+/H /I
+>>
+endobj
+12 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 216.344 205.373 205.344 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 13 0 R
+/H /I
+>>
+endobj
+14 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 200.944 229.21 189.944 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 15 0 R
+/H /I
+>>
+endobj
+16 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 185.544 140.594 174.544 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 17 0 R
+/H /I
+>>
+endobj
+18 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 170.144 136.326 159.144 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 19 0 R
+/H /I
+>>
+endobj
+20 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 154.744 233.159 143.744 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 21 0 R
+/H /I
+>>
+endobj
+22 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 139.344 186.75 128.344 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 23 0 R
+/H /I
+>>
+endobj
+24 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 120.0 123.944 165.529 112.944 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 25 0 R
+/H /I
+>>
+endobj
+26 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 108.544 118.0 97.544 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 27 0 R
+/H /I
+>>
+endobj
+28 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 93.144 168.413 82.144 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 29 0 R
+/H /I
+>>
+endobj
+30 0 obj
+<< /Length 610 /Filter [ /ASCII85Decode /FlateDecode ]
+ >>
+stream
+Gb"/%9on$O&A@sBE6Lo`jhplR]%Yt-V+RlT>L`h\M/C?=(U0Y4pVh!>A6;M'!u;^0@tkjBTUFsmq>;QNV3mq@S.O0s'Tk't.^QqPUr5:>;)P)?LWW6V-=cuf3\j"<o&6&qhUH-C$niGE,q01C^l&623=@(fi=:(A_]A17,:j,_):&AYfb=49W\:g_7+kIIZ@ZS8X$E4Z.SZ4<ObttcLM=2\E=lp1&GrVSOD.BOO%Oc?``Cqa?HUg,5H/o%Lc?>89(2bG;rmW%1d=r&gYT]_"Z[tM,s!O=A?4L`D8ie#Q`FSEWS+TN^!Vc57>XZ8;KNaLlMr)N")r+sERoOi5IaJ?R_ON*TJ'SXGE=QN!&rHJ")RW!%^QuVEres2'3YBX;Vip;0^D3]j0g^p@Bh<BHoQ/MgYeS7^:#Y\:3t!sMg8E<N,k"?c&o1LS:So!j#icDLm<'ZS6gQmg@ZL.F7"A\RIJXAF.B%cF7gm8<uea'(5_4AXs/S3DW]Y7Ho6>SP2Cc$`1/F8@7i4Bl13]R!YHuF<Tos#:S+WAVC\QP2408J,7,[0[Z]u@I?@jmdG+Mi2DPPfJqjJd0\m5b_h"4@,/n)PcL*dm!B_>l\,~>
+endstream
+endobj
+31 0 obj
+<< /Type /Page
+/Parent 1 0 R
+/MediaBox [ 0 0 612 792 ]
+/Resources 3 0 R
+/Contents 30 0 R
+/Annots 32 0 R
+>>
+endobj
+32 0 obj
+[
+33 0 R
+]
+endobj
+33 0 obj
+<< /Type /Annot
+/Subtype /Link
+/Rect [ 96.0 717.25 178.797 706.25 ]
+/C [ 0 0 0 ]
+/Border [ 0 0 0 ]
+/A 34 0 R
+/H /I
+>>
+endobj
+35 0 obj
+<< /Length 2810 /Filter [ /ASCII85Decode /FlateDecode ]
+ >>
+stream
+Gb!#^l]9dY'*#[qKb.M:%1k=i7(rG6PO@;(f3DY-[>-^nBUcUL,"mqAa(q>tI/+I:[&e*39:Gp4Au$;bI[hdVBCh%Z2fTB@'F+0`M_MZQ^d6'AiZO.=0.g(dV0OcP"s5J$.b==Lj5=E$s+uX[!QIaULu9Zq10K3l37BY\qcT0&.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ms)#m3aekYL"7UlEVt[edFDn%Wq4XIOn<6Nt\0b@R2Iq(8+T95o#&D0P&ak"e,1`jmM@=lY\#OQ2_s`:J%STGc?&n\)ssL2gQI5mglK8-+mKbC!7(&PFZkr'\/_5PH3j_eC7`Ds%1J#68RLE.XYa&KI$7im,I@)(7o@0+Gqi.@='pk%@cq[El$h$A?k1U68P=I!P-'m,JpDIe_=WN<1hi<<q<0]TnLNZi.a9@C6Q!)phS+#'J:,1HegtpG^HCMCQqX&lcl];Q>EYK)nUod0Qke1=^1kVR5Mo0XboG@F'J1oZoi[Pb`b2DIfb0;,q6t-bZX[PKEUcpW5e!"koX2Va!%QO=sY5YYJ2g6N-%.ZHWZ7MM$Se8ZEr/;5+_Ta*lD=4LBjgKoE,Fmp,2~>
+endstream
+endobj
+64 0 obj
+<< /Type /Page
+/Parent 1 0 R
+/MediaBox [ 0 0 612 792 ]
+/Resources 3 0 R
+/Contents 63 0 R
+>>
+endobj
+65 0 obj
+<< /Type /Font
+/Subtype /Type1
+/Name /F11
+/BaseFont /Courier-Bold
+/Encoding /WinAnsiEncoding >>
+endobj
+66 0 obj
+<< /Type /Font
+/Subtype /Type1
+/Name /F1
+/BaseFont /Helvetica
+/Encoding /WinAnsiEncoding >>
+endobj
+67 0 obj
+<< /Type /Font
+/Subtype /Type1
+/Name /F5
+/BaseFont /Times-Roman
+/Encoding /WinAnsiEncoding >>
+endobj
+68 0 obj
+<< /Type /Font
+/Subtype /Type1
+/Name /F3
+/BaseFont /Helvetica-Bold
+/Encoding /WinAnsiEncoding >>
+endobj
+69 0 obj
+<< /Type /Font
+/Subtype /Type1
+/Name /F9
+/BaseFont /Courier
+/Encoding /WinAnsiEncoding >>
+endobj
+70 0 obj
+<< /Type /Font
+/Subtype /Type1
+/Name /F6
+/BaseFont /Times-Italic
+/Encoding /WinAnsiEncoding >>
+endobj
+71 0 obj
+<< /Type /Font
+/Subtype /Type1
+/Name /F7
+/BaseFont /Times-Bold
+/Encoding /WinAnsiEncoding >>
+endobj
+1 0 obj
+<< /Type /Pages
+/Count 17
+/Kids [7 0 R 31 0 R 36 0 R 38 0 R 40 0 R 42 0 R 44 0 R 46 0 R 48 0 R 50 0 R 52 0 R 54 0 R 56 0 R 58 0 R 60 0 R 62 0 R 64 0 R ] >>
+endobj
+2 0 obj
+<< /Type /Catalog
+/Pages 1 0 R
+ >>
+endobj
+3 0 obj
+<<
+/Font << /F1 66 0 R /F11 65 0 R /F5 67 0 R /F3 68 0 R /F9 69 0 R /F6 70 0 R /F7 71 0 R >>
+/ProcSet [ /PDF /ImageC /Text ] /XObject <</Im1 6 0 R
+ >>
+>>
+endobj
+11 0 obj
+<<
+/S /GoTo
+/D [36 0 R /XYZ 67.0 725.0 null]
+>>
+endobj
+13 0 obj
+<<
+/S /GoTo
+/D [36 0 R /XYZ 67.0 413.08 null]
+>>
+endobj
+15 0 obj
+<<
+/S /GoTo
+/D [38 0 R /XYZ 67.0 687.6 null]
+>>
+endobj
+17 0 obj
+<<
+/S /GoTo
+/D [40 0 R /XYZ 67.0 560.266 null]
+>>
+endobj
+19 0 obj
+<<
+/S /GoTo
+/D [40 0 R /XYZ 67.0 214.285 null]
+>>
+endobj
+21 0 obj
+<<
+/S /GoTo
+/D [42 0 R /XYZ 67.0 619.4 null]
+>>
+endobj
+23 0 obj
+<<
+/S /GoTo
+/D [42 0 R /XYZ 67.0 285.154 null]
+>>
+endobj
+25 0 obj
+<<
+/S /GoTo
+/D [46 0 R /XYZ 67.0 725.0 null]
+>>
+endobj
+27 0 obj
+<<
+/S /GoTo
+/D [48 0 R /XYZ 67.0 652.4 null]
+>>
+endobj
+29 0 obj
+<<
+/S /GoTo
+/D [60 0 R /XYZ 67.0 661.05 null]
+>>
+endobj
+34 0 obj
+<<
+/S /GoTo
+/D [62 0 R /XYZ 67.0 379.866 null]
+>>
+endobj
+xref
+0 72
+0000000000 65535 f
+0000144156 00000 n
+0000144327 00000 n
+0000144377 00000 n
+0000000015 00000 n
+0000000071 00000 n
+0000001144 00000 n
+0000103215 00000 n
+0000103335 00000 n
+0000103430 00000 n
+0000103604 00000 n
+0000144550 00000 n
+0000103741 00000 n
+0000144614 00000 n
+0000103877 00000 n
+0000144679 00000 n
+0000104012 00000 n
+0000144743 00000 n
+0000104148 00000 n
+0000144809 00000 n
+0000104284 00000 n
+0000144875 00000 n
+0000104420 00000 n
+0000144939 00000 n
+0000104555 00000 n
+0000145005 00000 n
+0000104692 00000 n
+0000145069 00000 n
+0000104825 00000 n
+0000145133 00000 n
+0000104959 00000 n
+0000105661 00000 n
+0000105784 00000 n
+0000105811 00000 n
+0000145198 00000 n
+0000105945 00000 n
+0000108848 00000 n
+0000108956 00000 n
+0000111400 00000 n
+0000111508 00000 n
+0000114766 00000 n
+0000114874 00000 n
+0000117795 00000 n
+0000117903 00000 n
+0000118832 00000 n
+0000118940 00000 n
+0000121190 00000 n
+0000121298 00000 n
+0000123083 00000 n
+0000123191 00000 n
+0000126052 00000 n
+0000126160 00000 n
+0000128116 00000 n
+0000128224 00000 n
+0000130603 00000 n
+0000130711 00000 n
+0000133070 00000 n
+0000133178 00000 n
+0000136076 00000 n
+0000136184 00000 n
+0000138603 00000 n
+0000138711 00000 n
+0000141537 00000 n
+0000141645 00000 n
+0000143279 00000 n
+0000143387 00000 n
+0000143499 00000 n
+0000143607 00000 n
+0000143717 00000 n
+0000143830 00000 n
+0000143936 00000 n
+0000144047 00000 n
+trailer
+<<
+/Size 72
+/Root 2 0 R
+/Info 4 0 R
+>>
+startxref
+145264
+%%EOF
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
+ "http://www.docbook.org/xml/4.4/docbookx.dtd">
+<article>
+ <title>ModSecurity 2 Data Formats</title>
+ <articleinfo>
+ <releaseinfo>Version 2.5.10-dev1 (March 24, 2009)</releaseinfo>
+ <copyright>
+ <year>2004-2009</year>
+ <holder>Breach Security, Inc. (<ulink url="http://www.breach.com"
+ >http://www.breach.com</ulink>)</holder>
+ </copyright>
+ </articleinfo>
+ <para>The purpose of this document is to describe the formats of the ModSecurity alert messages,
+ transaction logs and communication protocols, which would not only allow for a better
+ understanding what ModSecurity does but also for an easy integration with third-party tools
+ and products.</para>
+ <section>
+ <title>Alerts</title>
+ <para>As part of its operations ModSecurity will emit alerts, which are either
+ <emphasis>warnings</emphasis> (non-fatal) or <emphasis>errors</emphasis> (fatal,
+ usually leading to the interception of the transaction in question). Below is an example
+ of a ModSecurity alert entry:</para>
+ <programlisting>Access denied with code 505 (phase 1). Match of "rx
+ ^HTTP/(0\\\\.9|1\\\\.[01])$" against "REQUEST_PROTOCOL" required.
+ [id "960034"] [msg "HTTP protocol version is not allowed by policy"]
+ [severity "CRITICAL"] [uri "/"] [unique_id "PQaTTVBEUOkAAFwKXrYAAAAM"]</programlisting>
+ <note>
+ <para>Alerts will only ever contain one line of text but we've broken the above example
+ into multiple lines to make it fit into the page.</para>
+ </note>
+ <para>Each alert entry begins with the engine message, which describes what ModSecurity did
+ and why. For
+ example:<programlisting>Access denied with code 505 (phase 1). Match of "rx
+ ^HTTP/(0\\\\.9|1\\\\.[01])$" against "REQUEST_PROTOCOL" required.</programlisting></para>
+ <section>
+ <title>Alert Action Description</title>
+ <para>The first part of the engine message tells you whether ModSecurity acted to
+ interrupt transaction or rule processing:</para>
+ <orderedlist>
+ <listitem>
+ <para>If the alert is only a warning, the first sentence will simply say
+ <emphasis>Warning</emphasis>.</para>
+ </listitem>
+ <listitem>
+ <para>If the transaction was intercepted, the first sentence will begin with
+ <emphasis>Access denied</emphasis>. What follows is the list of possible
+ messages related to transaction interception:</para>
+ <itemizedlist>
+ <listitem>
+ <para><emphasis>Access denied with code %0</emphasis> - a response with
+ status code <literal>%0</literal> was sent.</para>
+ </listitem>
+ <listitem>
+ <para><emphasis>Access denied with connection close</emphasis> -
+ connection was abruptly closed.</para>
+ </listitem>
+ <listitem>
+ <para><emphasis>Access denied with redirection to %0 using status
+ %1</emphasis> - a redirection to URI <literal>%0</literal> was
+ issued using status <literal>%1</literal>.</para>
+ </listitem>
+ </itemizedlist>
+ </listitem>
+ <listitem>
+ <para>There is also a special message that ModSecurity emits where an <literal
+ >allow</literal> action is executed. There are three variations of this
+ type of message:</para>
+ <itemizedlist>
+ <listitem>
+ <para><emphasis>Access allowed</emphasis> - rule engine stopped
+ processing rules (transaction was unaffected).</para>
+ </listitem>
+ <listitem>
+ <para><emphasis>Access to phase allowed</emphasis> - rule engine stopped
+ processing rules in the current phase only. Subsequent phases will
+ be processed normally. Transaction was not affected by this rule but
+ it may be affected by any of the rules in the subsequent
+ phase.</para>
+ </listitem>
+ <listitem>
+ <para><emphasis>Access to request allowed</emphasis> - rule engine
+ stopped processing rules in the current phase. Phases prior to
+ request execution in the backend (currently phases 1 and 2) will not
+ be processed. The response phases (currently phases 3 and 4) and
+ others (currently phase 5) will be processed as normal. Transaction
+ was not affected by this rule but it may be affected by any of the
+ rules in the subsequent phase.</para>
+ </listitem>
+ </itemizedlist>
+ </listitem>
+ </orderedlist>
+ </section>
+ <section>
+ <title>Alert Justification Description</title>
+ <para>The second part of the engine message explains <emphasis>why</emphasis> the alert
+ was generated. Since it is automatically generated from the rules it will be very
+ technical in nature, talking about operators and their parameters and give you
+ insight into what the rule looked like. But this message cannot give you insight
+ into the reasoning behind the rule. A well-written rule will always specify a
+ human-readable message (using the <literal>msg</literal> action) to provide further
+ information.</para>
+ <para>The format of the second part of the engine message depends on whether it was
+ generated by the operator (which happens on a match) or by the rule processor (which
+ happens where there is not a match, but the negation was used):</para>
+ <itemizedlist>
+ <listitem>
+ <para><literal>@beginsWith</literal> - <emphasis>String match %0 at
+ %1.</emphasis></para>
+ </listitem>
+ <listitem>
+ <para><literal>@contains</literal> - <emphasis>String match %0 at
+ %1.</emphasis></para>
+ </listitem>
+ <listitem>
+ <para><literal>@containsWord</literal> - <emphasis>String match %0 at
+ %1.</emphasis></para>
+ </listitem>
+ <listitem>
+ <para><literal>@endsWith</literal> - <emphasis>String match %0 at
+ %1.</emphasis></para>
+ </listitem>
+ <listitem>
+ <para><literal>@eq</literal> - <emphasis>Operator EQ matched %0 at
+ %1.</emphasis></para>
+ </listitem>
+ <listitem>
+ <para><literal>@ge</literal> - <emphasis>Operator GE matched %0 at
+ %1.</emphasis></para>
+ </listitem>
+ <listitem>
+ <para><literal>@geoLookup</literal> - <emphasis>Geo lookup for %0 succeeded at
+ %1.</emphasis></para>
+ </listitem>
+ <listitem>
+ <para><literal>@inspectFile</literal> - <emphasis>File %0 rejected by the
+ approver script %1: %2</emphasis></para>
+ </listitem>
+ <listitem>
+ <para><literal>@le</literal> - <emphasis>Operator LE matched %0 at
+ %1.</emphasis></para>
+ </listitem>
+ <listitem>
+ <para><literal>@lt</literal> - <emphasis>Operator LT matched %0 at
+ %1.</emphasis></para>
+ </listitem>
+ <listitem>
+ <para><literal>@rbl</literal> - <emphasis>RBL lookup of %0 succeeded at
+ %1.</emphasis></para>
+ </listitem>
+ <listitem>
+ <para><literal>@rx</literal> - <emphasis>Pattern match %0 at
+ %1.</emphasis></para>
+ </listitem>
+ <listitem>
+ <para><literal>@streq</literal> - <emphasis>String match %0 at
+ %1.</emphasis></para>
+ </listitem>
+ <listitem>
+ <para><literal>@validateByteRange</literal> - <emphasis>Found %0 byte(s) in %1
+ outside range: %2.</emphasis></para>
+ </listitem>
+ <listitem>
+ <para><literal>@validateDTD</literal> - <emphasis>XML: DTD validation
+ failed.</emphasis></para>
+ </listitem>
+ <listitem>
+ <para><literal>@validateSchema</literal> - <emphasis>XML: Schema validation
+ failed.</emphasis></para>
+ </listitem>
+ <listitem>
+ <para><literal>@validateUrlEncoding</literal></para>
+ <itemizedlist>
+ <listitem>
+ <para><emphasis>Invalid URL Encoding: Non-hexadecimal digits used at
+ %0.</emphasis></para>
+ </listitem>
+ <listitem>
+ <para><emphasis>Invalid URL Encoding: Not enough characters at the end
+ of input at %0.</emphasis></para>
+ </listitem>
+ </itemizedlist>
+ </listitem>
+ <listitem>
+ <para><literal>@validateUtf8Encoding</literal></para>
+ <itemizedlist>
+ <listitem>
+ <para><emphasis>Invalid UTF-8 encoding: not enough bytes in character at
+ %0.</emphasis></para>
+ </listitem>
+ <listitem>
+ <para><emphasis>Invalid UTF-8 encoding: invalid byte value in character
+ at %0.</emphasis></para>
+ </listitem>
+ <listitem>
+ <para><emphasis>Invalid UTF-8 encoding: overlong character detected at
+ %0.</emphasis></para>
+ </listitem>
+ <listitem>
+ <para><emphasis>Invalid UTF-8 encoding: use of restricted character at
+ %0.</emphasis></para>
+ </listitem>
+ <listitem>
+ <para><emphasis>Invalid UTF-8 encoding: decoding error at
+ %0.</emphasis></para>
+ </listitem>
+ </itemizedlist>
+ </listitem>
+ <listitem>
+ <para><literal>@verifyCC</literal> - <emphasis>CC# match %0 at
+ %1.</emphasis></para>
+ </listitem>
+ </itemizedlist>
+ <para>Messages not related to operators:</para>
+ <itemizedlist>
+ <listitem>
+ <para>When <literal>SecAction</literal> directive is processed -
+ <emphasis>Unconditional match in SecAction.</emphasis></para>
+ </listitem>
+ <listitem>
+ <para>When <literal>SecRule</literal> does not match but negation is used -
+ <emphasis>Match of %0 against %1 required.</emphasis></para>
+ </listitem>
+ </itemizedlist>
+ <note>
+ <para>The parameters to the operators <literal>@rx</literal> and <literal
+ >@pm</literal> (regular expression and text pattern, respectively) will be
+ truncated to 252 bytes if they are longer than this limit. In this case the
+ parameter in the alert message will be terminated with three dots.</para>
+ </note>
+ </section>
+ <section>
+ <title>Meta-data</title>
+ <para>The metadata fields are always placed at the end of the alert entry. Each metadata
+ field is a text fragment that consists of an open bracket followed by the metadata
+ field name, followed by the value and the closing bracket. What follows is the text
+ fragment that makes up the <literal>id</literal> metadata field.</para>
+ <programlisting>[id "960034"]</programlisting>
+ <para>The following metadata fields are currently used:</para>
+ <orderedlist>
+ <listitem>
+ <para><literal>offset</literal> - The byte offset where a match occured within
+ the target data. This is not always available.</para>
+ </listitem>
+ <listitem>
+ <para><literal>id</literal> - Unique rule ID, as specified by the <literal
+ >id</literal> action.</para>
+ </listitem>
+ <listitem>
+ <para><literal>rev</literal> - Rule revision, as specified by the <literal
+ >rev</literal> action.</para>
+ </listitem>
+ <listitem>
+ <para><literal>msg</literal> - Human-readable message, as specified by the
+ <literal>msg</literal> action.</para>
+ </listitem>
+ <listitem>
+ <para><literal>severity</literal> - Event severity as text, as specified by the
+ <literal>severity</literal> action. The possible values (with their
+ corresponding numberical values in brackets) are <literal
+ >EMERGENCY</literal> (0), <literal>ALERT</literal> (1), <literal
+ >CRITICAL</literal> (2), <literal>ERROR</literal> (3), <literal
+ >WARNING</literal> (4), <literal>NOTICE</literal> (5), <literal
+ >INFO</literal> (6) and <literal>DEBUG</literal> (7).</para>
+ </listitem>
+ <listitem>
+ <para><literal>unique_id</literal> - Unique event ID, generated
+ automatically.</para>
+ </listitem>
+ <listitem>
+ <para><literal>uri</literal> - Request URI.</para>
+ </listitem>
+ <listitem>
+ <para><literal>logdata</literal> - contains transaction data fragment, as
+ specified by the <literal>logdata</literal> action.</para>
+ </listitem>
+ </orderedlist>
+ </section>
+ <section>
+ <title>Escaping</title>
+ <para>ModSecurity alerts will always contain text fragments that were taken from
+ configuration or the transaction. Such text fragments escaped before they are user
+ in messages, in order to sanitise the potentially dangerous characters. They are
+ also sometimes surrounded using double quotes. The escaping algorithm is as
+ follows:<orderedlist>
+ <listitem>
+ <para>Characters <literal>0x08</literal> (<literal>BACKSPACE</literal>),
+ <literal>0x0a</literal> (<literal>NEWLINE</literal>), <literal
+ >0x10</literal> (<literal>CARRIAGE RETURN</literal>), <literal
+ >0x09</literal> (<literal>HORIZONTAL TAB</literal>) and <literal
+ >0x0b</literal> (<literal>VERTICAL TAB</literal>) will be
+ represented as <literal>\b</literal>, <literal>\n</literal>, <literal
+ >\r</literal>, <literal>\t</literal> and <literal>\v</literal>,
+ respectively.</para>
+ </listitem>
+ <listitem>
+ <para>Bytes from the ranges <literal>0-0x1f</literal> and <literal
+ >0x7f-0xff</literal> (inclusive) will be represented as <literal
+ >\xHH</literal>, where <literal>HH</literal> is the hexadecimal
+ value of the byte.</para>
+ </listitem>
+ <listitem>
+ <para>Backslash characters (<literal>\</literal>) will be represented as
+ <literal>\\</literal>.</para>
+ </listitem>
+ <listitem>
+ <para>Each double quote character will be represented as <literal
+ >\"</literal>, but only if the entire fragment is surrounded with
+ double quotes.</para>
+ </listitem>
+ </orderedlist></para>
+ </section>
+ <section>
+ <title>Alerts in the Apache Error Log</title>
+ <para>Every ModSecurity alert conforms to the following format when it appears in the
+ Apache error log:</para>
+ <programlisting>[Sun Jun 24 10:19:58 2007] [error] [client 192.168.0.1]
+ ModSecurity: ALERT_MESSAGE</programlisting>
+ <para>The above is a standard Apache error log format. The <literal>ModSecurity:
+ </literal> prefix is specific to ModSecurity. It is used to allow quick
+ identification of ModSecurity alert messages when they appear in the same file next
+ to other Apache messages.</para>
+ <para>The actual message (<literal>ALERT_MESSAGE</literal> in the example above) is in
+ the same format as described in the <emphasis>Alerts</emphasis> section.</para>
+ <note>
+ <para>Apache further escapes ModSecurity alert messages before writing them to the
+ error log. This means that all backslash characters will be doubled in the error
+ log. In practice, since ModSecurity will already represent a single backslash
+ within an untrusted text fragment as two backslashes, the end result in the
+ Apache error log will be <emphasis>four</emphasis> backslashes. Thus, if you
+ need to interpret a ModSecurity message from the error log, you should decode
+ the message part after the <literal>ModSecurity:</literal> prefix first. This
+ step will peel the first encoding layer.</para>
+ </note>
+ </section>
+ <section>
+ <title>Alerts in Audit Logs</title>
+ <para>Alerts are transported in the <literal>H</literal> section of the ModSecurity
+ Audit Log. Alerts will appear each on a separate line and in the order they were
+ generated by ModSecurity. Each line will be in the following format:</para>
+ <programlisting>Message: ALERT_MESSAGE</programlisting>
+ <para>Below is an example of an <literal>H</literal> section that contains two alert
+ messages:</para>
+ <programlisting>--c7036611-H--
+Message: Warning. Match of "rx ^apache.*perl" against
+ "REQUEST_HEADERS:User-Agent" required. [id "990011"] [msg "Request
+ Indicates an automated program explored the site"] [severity "NOTICE"]
+Message: Warning. Pattern match "(?:\\b(?:(?:s(?:elect\\b(?:.{1,100}?\\b
+ (?:(?:length|count|top)\\b.{1,100}?\\bfrom|from\\b.{1,100}?\\bwhere)
+ |.*?\\b(?:d(?:ump\\b.*\\bfrom|ata_type)|(?:to_(?:numbe|cha)|inst)r))|p_
+ (?:(?:addextendedpro|sqlexe)c|(?:oacreat|prepar)e|execute(?:sql)?|
+ makewebt ..." at ARGS:c. [id "950001"] [msg "SQL Injection Attack.
+ Matched signature: union select"] [severity "CRITICAL"]
+Stopwatch: 1199881676978327 2514 (396 2224 -)
+Producer: ModSecurity v2.x.x (Apache 2.x)
+Server: Apache/2.x.x
+
+--c7036611-Z--</programlisting>
+ </section>
+ </section>
+ <section>
+ <title>Audit Log</title>
+ <para>ModSecurity records one transaction in a single audit log file. Below is an
+ example:</para>
+ <programlisting>--c7036611-A--
+[09/Jan/2008:12:27:56 +0000] OSD4l1BEUOkAAHZ8Y3QAAAAH 209.90.77.54 64995
+ 80.68.80.233 80
+--c7036611-B--
+GET //EvilBoard_0.1a/index.php?c='/**/union/**/select/**/1,concat(username,
+ char(77),password,char(77),email_address,char(77),info,char(77),user_level,
+ char(77))/**/from/**/eb_members/**/where/**/userid=1/*http://kamloopstutor.
+ com/images/banners/on.txt? HTTP/1.1
+TE: deflate,gzip;q=0.3
+Connection: TE, cslose
+Host: www.example.com
+User-Agent: libwww-perl/5.808
+
+--c7036611-F--
+HTTP/1.1 404 Not Found
+Content-Length: 223
+Connection: close
+Content-Type: text/html; charset=iso-8859-1
+
+--c7036611-H--
+Message: Warning. Match of "rx ^apache.*perl" against
+ "REQUEST_HEADERS:User-Agent" required. [id "990011"] [msg "Request
+ Indicates an automated program explored the site"] [severity "NOTICE"]
+Message: Warning. Pattern match "(?:\\b(?:(?:s(?:elect\\b(?:.{1,100}?\\b
+ (?:(?:length|count|top)\\b.{1,100}?\\bfrom|from\\b.{1,100}?\\bwhere)
+ |.*?\\b(?:d(?:ump\\b.*\\bfrom|ata_type)|(?:to_(?:numbe|cha)|inst)r))|p_
+ (?:(?:addextendedpro|sqlexe)c|(?:oacreat|prepar)e|execute(?:sql)?|
+ makewebt ..." at ARGS:c. [id "950001"] [msg "SQL Injection Attack.
+ Matched signature: union select"] [severity "CRITICAL"]
+Stopwatch: 1199881676978327 2514 (396 2224 -)
+Producer: ModSecurity v2.x.x (Apache 2.x)
+Server: Apache/2.x.x
+
+--c7036611-Z--
+</programlisting>
+ <para>The file consist of multiple sections, each in different format. Separators are used
+ to define sections:</para>
+ <programlisting>--c7036611-A--</programlisting>
+ <para>A separator always begins on a new line and conforms to the following format:</para>
+ <orderedlist>
+ <listitem>
+ <para>Two dashes</para>
+ </listitem>
+ <listitem>
+ <para>Unique boundary, which consists from several hexadecimal characters.</para>
+ </listitem>
+ <listitem>
+ <para>One dash character.</para>
+ </listitem>
+ <listitem>
+ <para>Section identifier, currently a single uppercase letter.</para>
+ </listitem>
+ <listitem>
+ <para>Two trailing dashes.</para>
+ </listitem>
+ </orderedlist>
+ <para>Refer to the documentation for <literal>SecAuditLogParts</literal> for the explanation
+ of each part.</para>
+ <section>
+ <title>Parts</title>
+ <para>This section documents the audit log parts available in ModSecurity 2.x. They are: <itemizedlist>
+ <listitem>
+ <para><literal moreinfo="none">A</literal> - audit log header</para>
+ </listitem>
+ <listitem>
+ <para><literal moreinfo="none">B</literal> - request headers</para>
+ </listitem>
+ <listitem>
+ <para><literal moreinfo="none">C</literal> - request body</para>
+ </listitem>
+ <listitem>
+ <para><literal moreinfo="none">D</literal> - intended response headers (NOT
+ IMPLEMENTED)</para>
+ </listitem>
+ <listitem>
+ <para><literal moreinfo="none">E</literal> - intended response body</para>
+ </listitem>
+ <listitem>
+ <para><literal moreinfo="none">F</literal> - response headers</para>
+ </listitem>
+ <listitem>
+ <para><literal moreinfo="none">G</literal> - response body (NOT
+ IMPLEMENTED)</para>
+ </listitem>
+ <listitem>
+ <para><literal moreinfo="none">H</literal> - audit log trailer</para>
+ </listitem>
+ <listitem>
+ <para><literal moreinfo="none">I</literal> - reduced multipart request
+ body</para>
+ </listitem>
+ <listitem>
+ <para><literal moreinfo="none">J</literal> - multipart files information
+ (NOT IMPLEMENTED)</para>
+ </listitem>
+ <listitem>
+ <para><literal moreinfo="none">K</literal> - matched rules
+ information</para>
+ </listitem>
+ <listitem>
+ <para><literal moreinfo="none">Z</literal> - audit log footer</para>
+ </listitem>
+ </itemizedlist></para>
+ <section>
+ <title>Audit Log Header (<literal>A</literal>)</title>
+ <para>ModSecurity 2.x audit log entries always begin with the header part. For
+ example:</para>
+ <programlisting>--c7036611-A--
+[09/Jan/2008:12:27:56 +0000] OSD4l1BEUOkAAHZ8Y3QAAAAH 209.90.77.54 64995
+ 80.68.80.233 80</programlisting>
+ <para>The header contains only one line, with the following information on
+ it:</para>
+ <orderedlist>
+ <listitem>
+ <para>Timestamp</para>
+ </listitem>
+ <listitem>
+ <para>Unique transaction ID</para>
+ </listitem>
+ <listitem>
+ <para>Source IP address (IPv4 or IPv6)</para>
+ </listitem>
+ <listitem>
+ <para>Source port</para>
+ </listitem>
+ <listitem>
+ <para>Destination IP address (IPv4 or IPv6)</para>
+ </listitem>
+ <listitem>
+ <para>Destination port</para>
+ </listitem>
+ </orderedlist>
+ </section>
+ <section>
+ <title>Request Headers (<literal>B</literal>)</title>
+ <para>The request headers part contains the request line and the request headers.
+ The information present in this part will not be identical to that sent by the
+ client responsible for the transaction. ModSecurity 2.x for Apache does not have
+ access to the raw data; it sees what Apache itself sees. While the end result
+ may be identical to the raw request, differences are possible in some
+ areas:</para>
+ <orderedlist>
+ <listitem>
+ <para>If any of the fields are <literal>NUL</literal>-terminated, Apache
+ will only see the content prior to the NUL.</para>
+ </listitem>
+ <listitem>
+ <para>Headers that span multiple lines (feature known as header folding)
+ will be collapsed into a single line.</para>
+ </listitem>
+ <listitem>
+ <para>Multiple headers with the same name will be combined into a single
+ header (as allowed by the HTTP RFC).</para>
+ </listitem>
+ </orderedlist>
+ </section>
+ <section>
+ <title>Request Body (<literal>C</literal>)</title>
+ <para>This part contains the request body of the transaction, after dechunking and
+ decompression (if applicable).</para>
+ </section>
+ <section>
+ <title>Intended Response Headers (<literal>D</literal>)</title>
+ <para>This part contains the status line and the request headers that would have
+ been delivered to the client had ModSecurity not intervened. Thus this part
+ makes sense only for transactions where ModSecurity altered the data flow. By
+ differentiating before the intended and the final response headers, we are able
+ to record what was internally ready for sending, but also what was actually
+ sent.</para>
+ <note>
+ <para>This part is reserved for future use. It is not implemented in ModSecurity
+ 2.x.</para>
+ </note>
+ </section>
+ <section>
+ <title>Intended Response Body (<literal>E</literal>)</title>
+ <para>This part contains the transaction response body (before compression and
+ chunking, where used) that was either sent or would have been sent had
+ ModSecurity not intervened. You can find whether interception took place by
+ looking at the <literal>Action</literal> header of the part <literal
+ >H</literal>. If that header is present, and the interception took place in
+ phase 3 or 4 then the <literal>E</literal> part contains the intended response
+ body. Otherwise, it contains the actual response body.</para>
+ <note>
+ <para>Once the <literal>G</literal> (actual response body) part is implemented,
+ part <literal>E</literal> will be present only in audit logs that contain a
+ transaction that was intercepted, and there will be no need for further
+ analsys.</para>
+ </note>
+ </section>
+ <section>
+ <title>Response Headers (<literal>F</literal>)</title>
+ <para>This part contains the actual response headers sent to the client. Since
+ ModSecurity 2.x for Apache does not access the raw connection data, it
+ constructs part <literal>F</literal> out of the internal Apache data structures
+ that hold the response headers.</para>
+ <para>Some headers (the <literal>Date</literal> and <literal>Server</literal>
+ response headers) are generated just before they are sent and ModSecurity is not
+ able to record those. You should note than ModSecurity is working as part of a
+ reverse proxy, the backend web server will have generated these two servers, and
+ in that case they will be recorded. </para>
+ </section>
+ <section>
+ <title>Response Body (G)</title>
+ <para>When implemented, this part will contain the actual response body before
+ compression and chunking.</para>
+ <note>
+ <para>This part is reserved for future use. It is not implemented in ModSecurity
+ 2.x.</para>
+ </note>
+ </section>
+ <section>
+ <title>Audit Log Trailer (H)</title>
+ <para>Part <literal>H</literal> contains additional transaction meta-data that was
+ obtained from the web server or from ModSecurity itself. The part contains a
+ number of trailer headers, which are similar to HTTP headers (without support
+ for header folding):<orderedlist>
+ <listitem>
+ <para>Action</para>
+ </listitem>
+ <listitem>
+ <para>Apache-Error</para>
+ </listitem>
+ <listitem>
+ <para>Message</para>
+ </listitem>
+ <listitem>
+ <para>Producer</para>
+ </listitem>
+ <listitem>
+ <para>Response-Body-Transformed</para>
+ </listitem>
+ <listitem>
+ <para>Sanitised-Args</para>
+ </listitem>
+ <listitem>
+ <para>Sanitised-Request-Headers</para>
+ </listitem>
+ <listitem>
+ <para>Sanitised-Response-Headers</para>
+ </listitem>
+ <listitem>
+ <para>Server</para>
+ </listitem>
+ <listitem>
+ <para>Stopwatch</para>
+ </listitem>
+ <listitem>
+ <para>WebApp-Info</para>
+ </listitem>
+ </orderedlist></para>
+ <section>
+ <title>Action</title>
+ <para>The <literal>Action</literal> header is present only for the transactions
+ that were intercepted:</para>
+ <programlisting>Action: Intercepted (phase 2)</programlisting>
+ <para>The phase information documents the phase in which the decision to
+ intercept took place.</para>
+ </section>
+ <section>
+ <title>Apache-Error</title>
+ <para>The Apache-Error header contains Apache error log messages observed by
+ ModSecurity, excluding those sent by ModSecurity itself. For example:</para>
+ <programlisting>Apache-Error: [file "/tmp/buildd/apache2-2.0.54/build-tree/apache2/server/
+ core.c"] [line 3505] [level 3] File does not exist: /var/www/www.
+ modsecurity.org/fst/documentation/modsecurity-apache/2.5.0-dev2</programlisting>
+ </section>
+ <section>
+ <title>Message</title>
+ <para>Zero or more <literal>Message</literal> headers can be present in any
+ trailer, and each such header will represent a single ModSecurity warning or
+ error, displayed in the order they were raised.</para>
+ <para>The example below was broken into multiple lines to make it fit this
+ page:</para>
+ <programlisting>Message: Access denied with code 400 (phase 2). Pattern match "^\w+:/" at
+ REQUEST_URI_RAW. [file "/etc/apache2/rules-1.6.1/modsecurity_crs_20_
+ protocol_violations.conf"] [line "74"] [id "960014"] [msg "Proxy access
+ attempt"] [severity "CRITICAL"] [tag "PROTOCOL_VIOLATION/PROXY_ACCESS"]</programlisting>
+ </section>
+ <section>
+ <title>Producer</title>
+ <para>The <literal>Producer</literal> header identifies the product that
+ generated the audit log. For example:</para>
+ <programlisting>Producer: ModSecurity for Apache/2.5.5 (http://www.modsecurity.org/).</programlisting>
+ <para>ModSecurity allows rule sets to add their own signatures to the <literal
+ >Producer</literal> information (this is done using the <literal
+ >SecComponentSignature</literal> directive). Below is an example of the
+ <literal>Producer</literal> header with the signature of one component
+ (all one line):</para>
+ <programlisting>Producer: ModSecurity for Apache/2.5.5 (http://www.modsecurity.org/);
+ MyComponent/1.0.0 (Beta).</programlisting>
+ </section>
+ <section>
+ <title>Response-Body-Transformed</title>
+ <para>This header will appear in every audit log that contains a response
+ body:</para>
+ <programlisting>Response-Body-Transformed: Dechunked</programlisting>
+ <para>The contents of the header is constant at present, so the header is only
+ useful as a reminder that the recorded response body is not identical to the
+ one sent to the client. The actual content is the same, except that Apache
+ may further compress the body and deliver it in chunks.</para>
+ </section>
+ <section>
+ <title>Sanitised-Args</title>
+ <para>The <literal>Sanitised-Args</literal> header contains a list of arguments
+ that were sanitised (each byte of their content replaced with an asterisk)
+ before logging. For example:</para>
+ <programlisting>Sanitised-Args: "old_password", "new_password", "new_password_repeat".</programlisting>
+ </section>
+ <section>
+ <title>Sanitised-Request-Headers</title>
+ <para>The <literal>Sanitised-Request-Headers</literal> header contains a list of
+ request headers that were sanitised before logging. For example:</para>
+ <programlisting>Sanitised-Request-Headers: "Authentication".</programlisting>
+ </section>
+ <section>
+ <title>Sanitised-Response-Headers</title>
+ <para>The <literal>Sanitised-Response-Headers</literal> header contains a list
+ of response headers that were sanitised before logging. For example:</para>
+ <programlisting>Sanitised-Response-Headers: "My-Custom-Header".</programlisting>
+ </section>
+ <section>
+ <title>Server</title>
+ <para>The <literal>Server</literal> header identifies the web server. For
+ example:</para>
+ <programlisting>Server: Apache/2.0.54 (Debian GNU/Linux) mod_ssl/2.0.54 OpenSSL/0.9.7e</programlisting>
+ <para>This information may sometimes be present in any of the parts that contain
+ response headers, but there are a few cases when it isn't:<orderedlist>
+ <listitem>
+ <para>None of the response headers were recoreded.</para>
+ </listitem>
+ <listitem>
+ <para>The information in the response headers is not accurate
+ because server signature masking was used.</para>
+ </listitem>
+ </orderedlist></para>
+ </section>
+ <section>
+ <title>Stopwatch</title>
+ <para>The <literal>Stopwatch</literal> header provides certain diagnostic
+ information that allows you to determine the performance of the web server
+ and of ModSecurity itself. It will typically look like this:</para>
+ <programlisting>Stopwatch: 1222945098201902 2118976 (770* 4400 -)</programlisting>
+ <para>Each line can contain up to 5 different values. Some values can be absent;
+ each absent value will be replaced with a dash.</para>
+ <para>The meanings of the values are as follows (all values are in
+ microseconds):<orderedlist>
+ <listitem>
+ <para>Transaction timestamp in microseconds since January 1st,
+ 1970.</para>
+ </listitem>
+ <listitem>
+ <para>Transaction duration.</para>
+ </listitem>
+ <listitem>
+ <para>The time between the moment Apache started processing the
+ request and until phase 2 of ModSecurity began. If an asterisk
+ is present that means the time includes the time it took
+ ModSecurity to read the request body from the client (typically
+ slow). This value can be used to provide a rough estimate of the
+ client speed, but only with larger request bodies (the smaller
+ request bodies may arrive in a single TCP/IP packet).</para>
+ </listitem>
+ <listitem>
+ <para>The time between the start of processing and until phase 2 was
+ completed. If you substract the previous value from this value
+ you will get the exact duration of phase 2 (which is the main
+ rule processing phase).</para>
+ </listitem>
+ <listitem>
+ <para>The time between the start of request processing and util we
+ began sending a fully-buffered response body to the client. If
+ you substract this value from the total transaction duration and
+ divide with the response body size you may get a rough estimate
+ of the client speed, but only for larger response bodies.</para>
+ </listitem>
+ </orderedlist></para>
+ </section>
+ <section>
+ <title>WebApp-Info</title>
+ <para>The <literal>WebApp-Info</literal> header contains information on the
+ application to which the recorded transaction belongs. This information will
+ appear only if it is known, which will happen if <literal
+ >SecWebAppId</literal> was set, or <literal>setsid</literal> or <literal
+ >setuid</literal> executed in the transaction.</para>
+ <para>The header uses the following format:</para>
+ <programlisting>WebApp-Info: "WEBAPPID" "SESSIONID" "USERID"</programlisting>
+ <para>Each unknown value is replaced with a dash.</para>
+ </section>
+ </section>
+ <section>
+ <title>Reduced Multipart Request Body (<literal>I</literal>)</title>
+ <para>Transactions that deal with file uploads tend to be large, yet the file
+ contents is not always relevant from the security point of view. The <literal
+ >I</literal> part was designed to avoid recording raw <literal
+ >multipart/form-data</literal> request bodies, replacing them with a
+ simulated <literal>application/x-www-form-urlencoded</literal> body that
+ contains the same key-value parameters.</para>
+ <para>The reduced multipart request body will not contain any file information. The
+ <literal>J</literal> part (currently not implemented) is intended to carry
+ the file metadata.</para>
+ </section>
+ <section>
+ <title>Multipart Files Information (<literal>J</literal>)</title>
+ <para>The purpose of part <literal>J</literal> is to record the information on the
+ files contained in a <literal>multipart/form-data</literal> request body. This
+ is handy in the cases when the original request body was not recorded, or when
+ only a reduced version was recorded (e.g. when part <literal>I</literal> was
+ used instead of part <literal>C</literal>).</para>
+ <note>
+ <para>This part is reserved for future use. It is not implemented in ModSecurity
+ 2.x.</para>
+ </note>
+ </section>
+ <section>
+ <title>Matched Rules (<literal>K</literal>)</title>
+ <para>The matched rules part contains a record of all ModSecurity rules that matched
+ during transaction processing. You should note that if a rule that belongs to a
+ chain matches then the entire chain will be recorded. This is because, even
+ though the disruptive action may not have executed, other per-rule actions have,
+ and you will need to see the entire chain in order to understand the
+ rules.</para>
+ <para>This part is available starting with ModSecurity 2.5.x.</para>
+ </section>
+ <section>
+ <title>Audit Log Footer (<literal>Z</literal>)</title>
+ <para>Part <literal>Z</literal> is a special part that only has a boundary but no
+ content. Its only purpose is to signal the end of an audit log.</para>
+ </section>
+ </section>
+ <section>
+ <title>Storage Formats</title>
+ <para>ModSecurity supports two audit log storage formats:<orderedlist>
+ <listitem>
+ <para><emphasis>Serial</emphasis> audit log format - multiple audit log
+ files stored in the same file.</para>
+ </listitem>
+ <listitem>
+ <para><emphasis>Concurrent</emphasis> audit log format - one file is used
+ for every audit log.</para>
+ </listitem>
+ </orderedlist></para>
+ <section>
+ <title>Serial Audit Log Format</title>
+ <para>The serial audit log format stores multiple audit log entries within the same
+ file (one after another). This is often very convinent (audit log entries are
+ easy to find) but this format is only suitable for light logging in the current
+ ModSecurity implementation because writing to the file is serialised: only one
+ audit log entry can be written at any one time.</para>
+ </section>
+ <section>
+ <title>Concurrent Audit Log Format</title>
+ <para>The concurrent audit log format uses one file per audit log entry, and allows
+ many transactions to be recorded at once. A hierarchical directory structure is
+ used to ensure that the number of files created in any one directory remains
+ relatively small. For example:</para>
+ <programlisting>$LOGGING-HOME/20081128/20081128-1414/20081128-141417-
+ egDKy38AAAEAAAyMHXsAAAAA</programlisting>
+ <para>The current time is used to work out the directory structure. The file name is
+ constructed using the current time and the transaction ID.</para>
+ <para>The creation of every audit log in concurrent format is recorded with an entry
+ in the concurrent audit log <emphasis>index file</emphasis>. The format of each
+ line resembles the common web server access log format. For example:</para>
+ <programlisting>192.168.0.111 192.168.0.1 - - [28/Nov/2008:15:06:32 +0000]
+ "GET /?p=\\ HTTP/1.1" 200 69 "-" "-" NOfRx38AAAEAAAzcCU4AAAAA
+ "-" /20081128/20081128-1506/20081128-150632-NOfRx38AAAEAAAzcCU4AAAAA
+ 0 1183 md5:ffee2d414cd43c2f8ae151652910ed96</programlisting>
+ <para>The tokens on the line are as follows:</para>
+ <orderedlist>
+ <listitem>
+ <para>Hostname (or IP address, if the hostname is not known)</para>
+ </listitem>
+ <listitem>
+ <para>Source IP address</para>
+ </listitem>
+ <listitem>
+ <para>Remote user (from HTTP Authentication)</para>
+ </listitem>
+ <listitem>
+ <para>Local user (from identd)</para>
+ </listitem>
+ <listitem>
+ <para>Timestamp</para>
+ </listitem>
+ <listitem>
+ <para>Request line</para>
+ </listitem>
+ <listitem>
+ <para>Response status</para>
+ </listitem>
+ <listitem>
+ <para>Bytes sent (in the response body)</para>
+ </listitem>
+ <listitem>
+ <para>Referrer information</para>
+ </listitem>
+ <listitem>
+ <para>User-Agent information</para>
+ </listitem>
+ <listitem>
+ <para>Transaction ID</para>
+ </listitem>
+ <listitem>
+ <para>Session ID</para>
+ </listitem>
+ <listitem>
+ <para>Audit log file name (relative to the audit logging home, as configured
+ using the <literal>SecAuditLogStorageDir</literal> directive)</para>
+ </listitem>
+ <listitem>
+ <para>Audit log offset</para>
+ </listitem>
+ <listitem>
+ <para>Audit log size</para>
+ </listitem>
+ <listitem>
+ <para>Audit log hash (the has begins with the name of the algorithm used,
+ followed by a colon, followed by the hexadecimal representation of the
+ hash itself); this hash can be used to verify that the transaction was
+ correctly recorded and that it hasn't been modified since.</para>
+ </listitem>
+ </orderedlist>
+ <note>
+ <para>Lines in the index file will be up to 3980 bytes long, and the information
+ logged will be reduced to fit where necessary. Reduction will occur within
+ the individual fields, but the overall format will remain the same. The
+ character <literal>L</literal> will appear as the last character on a
+ reduced line. A space will be the last character on a line that was not
+ reduced to stay within the limit.</para>
+ </note>
+ </section>
+ </section>
+ <section>
+ <title>Transport Protocol</title>
+ <para>Audit logs generated in multi-sensor deployments are of little use if left on the
+ sensors. More commonly, they will be transported to a central logging server using
+ the transport protocol described in this section:</para>
+ <orderedlist>
+ <listitem>
+ <para>The transport protocol is based on the HTTP protocol.</para>
+ </listitem>
+ <listitem>
+ <para>The server end is an SSL-enabled web server with HTTP Basic Authentication
+ configured.</para>
+ </listitem>
+ <listitem>
+ <para>Clients will open a connection to the centralisation web server and
+ authenticate (given the end-point URI, the username and the
+ password).</para>
+ </listitem>
+ <listitem>
+ <para>Clients will submit every audit log in a single <literal>PUT</literal>
+ transaction, placing the file in the body of the request and additional
+ information in the request headers (see below for details).</para>
+ </listitem>
+ <listitem>
+ <para>Server will process each submission and respond with an appropriate status
+ code: </para>
+ <orderedlist>
+ <listitem>
+ <para>200 (OK) - the submission was processed; the client can delete the
+ corresponding audit log entry if it so desires. The same audit log
+ entry must not be submitted again.</para>
+ </listitem>
+ <listitem>
+ <para>409 (Conflict) - if the submission is in invalid format and cannot
+ be processed. The client should attempt to fix the problem with the
+ submission and attempt delivery again at a later time. This error is
+ generally going to occur due to a programming error in the protocol
+ implementation, and not because of the content of the audit log
+ entry that is being transported. </para>
+ </listitem>
+ <listitem>
+ <para>500 (Internal Server Error) - if the server was unable to
+ correctly process the submission, due to its own fault. The client
+ should re-attempt delivery at a later time. A client that starts
+ receiving 500 reponses to all its submission should suspend its
+ operations for a period of time before continuing.</para>
+ </listitem>
+ </orderedlist>
+ </listitem>
+ </orderedlist>
+ <note>
+ <para>Server implementations are advised to accept all submissions that correctly
+ implement the protocol. Clients are unlikely to be able to overcome problems
+ within audit log entries, so such problems are best resolved on the server
+ side.</para>
+ </note>
+ <note>
+ <para>When en error occurs, the server may place an explanation of the problem in
+ the text part of the response line.</para>
+ </note>
+ <section>
+ <title>Request Headers Information</title>
+ <para>Each audit log entry submission must contain additional information in the
+ request headers:</para>
+ <orderedlist>
+ <listitem>
+ <para>Header <literal>X-Content-Hash</literal> must contain the audit log
+ entry hash. Clients should expect the audit log entries to be validated
+ against the hash by the server.</para>
+ </listitem>
+ <listitem>
+ <para>Header <literal>X-ForensicLog-Summary</literal> must contain the
+ entire concurrent format index line.</para>
+ </listitem>
+ <listitem>
+ <para>The <literal>Content-Lenght</literal> header must be present and
+ contain the length of the audit log entry.</para>
+ </listitem>
+ </orderedlist>
+ </section>
+ </section>
+ </section>
+</article>
--- /dev/null
+
+# Basic configuration options
+SecRuleEngine On
+SecRequestBodyAccess On
+SecResponseBodyAccess Off
+
+# Handling of file uploads
+# TODO Choose a folder private to Apache.
+# SecUploadDir /opt/apache-frontend/tmp/
+SecUploadKeepFiles Off
+
+# Debug log
+SecDebugLog logs/modsec_debug.log
+SecDebugLogLevel 0
+
+# Serial audit log
+SecAuditEngine RelevantOnly
+SecAuditLogRelevantStatus ^5
+SecAuditLogParts ABIFHZ
+SecAuditLogType Serial
+SecAuditLog logs/modsec_audit.log
+
+# Maximum request body size we will
+# accept for buffering
+SecRequestBodyLimit 131072
+
+# Store up to 128 KB in memory
+SecRequestBodyInMemoryLimit 131072
+
+# Buffer response bodies of up to
+# 512 KB in length
+SecResponseBodyLimit 524288
+
+# Verify that we've correctly processed the request body.
+# As a rule of thumb, when failing to process a request body
+# you should reject the request (when deployed in blocking mode)
+# or log a high-severity alert (when deployed in detection-only mode).
+SecRule REQBODY_PROCESSOR_ERROR "!@eq 0" \
+"phase:2,t:none,log,deny,msg:'Failed to parse request body.',severity:2"
+
+# By default be strict with what we accept in the multipart/form-data
+# request body. If the rule below proves to be too strict for your
+# environment consider changing it to detection-only. You are encouraged
+# _not_ to remove it altogether.
+SecRule MULTIPART_STRICT_ERROR "!@eq 0" \
+"phase:2,t:none,log,deny,msg:'Multipart request body \
+failed strict validation: \
+PE %{REQBODY_PROCESSOR_ERROR}, \
+BQ %{MULTIPART_BOUNDARY_QUOTED}, \
+BW %{MULTIPART_BOUNDARY_WHITESPACE}, \
+DB %{MULTIPART_DATA_BEFORE}, \
+DA %{MULTIPART_DATA_AFTER}, \
+HF %{MULTIPART_HEADER_FOLDING}, \
+LF %{MULTIPART_LF_LINE}, \
+SM %{MULTIPART_SEMICOLON_MISSING}, \
+IQ %{MULTIPART_INVALID_QUOTING}'"
+
+# Did we see anything that might be a boundary?
+SecRule MULTIPART_UNMATCHED_BOUNDARY "!@eq 0" \
+"phase:2,t:none,log,deny,msg:'Multipart parser detected a possible unmatched boundary.'"
--- /dev/null
+--------------------------
+ModSecurity JIRA CHANGELOG
+--------------------------
+https://www.modsecurity.org/tracker/browse/CORERULES?report=com.atlassian.jira.plugin.system.project:changelog-panel
+
+--------------------------
+Version 2.0.3 - 11/05/2009
+--------------------------
+
+Improvements:
+- Updated converted PHPIDS signatures (https://svn.php-ids.org/svn/trunk/lib/IDS/default_filter.xml)
+- Create a new PHPIDS Converter rules file (https://svn.php-ids.org/svn/trunk/lib/IDS/Converter.php)
+- Added new rules to identify multipart/form-data bypass attempts
+- Increased anomaly scoring (+100) for REQBODY_PROCESSOR_ERROR alerts
+
+Bug Fixes:
+- Added t:urlDecodeUni transformation function to phpids rules to fix both false positives/negatives
+ https://www.modsecurity.org/tracker/browse/CORERULES-17
+- Added new variable locations to the phpids filters
+ https://www.modsecurity.org/tracker/browse/CORERULES-19
+- Use of transformation functions can cause false negatives - added multiMatch action to phpids rules
+ https://www.modsecurity.org/tracker/browse/CORERULES-20
+- Fixed multipart parsing evasion issues by adding strict parsing rules
+ https://www.modsecurity.org/tracker/browse/CORERULES-21
+- Fixed typo in xss rules (missing |)
+ https://www.modsecurity.org/tracker/browse/CORERULES-22
+- Fixed regex text in IE8 XSS filters (changed to lowercase)
+ https://www.modsecurity.org/tracker/browse/CORERULES-23
+
+--------------------------
+Version 2.0.2 - 09/11/2009
+--------------------------
+
+Improvements:
+- Added converted PHPIDS signatures (https://svn.php-ids.org/svn/trunk/lib/IDS/default_filter.xml)
+ https://www.modsecurity.org/tracker/browse/CORERULES-13
+
+Bug Fixes:
+- Rule 958297 - Fixed Comment SPAM UA false positive that triggered only on mozilla.
+ https://www.modsecurity.org/tracker/browse/CORERULES-15
+
+--------------------------
+Version 2.0.1 - 08/07/2009
+--------------------------
+
+Improvements:
+- Updated the transformation functions used in the XSS/SQLi rules to improve performance
+ https://www.modsecurity.org/tracker/browse/CORERULES-10
+
+- Updated the variable/target list in the XSS rules
+ https://www.modsecurity.org/tracker/browse/CORERULES-11
+
+- Added XSS Filters from IE8
+ https://www.modsecurity.org/tracker/browse/CORERULES-12
+
+Bug Fixes:
+- Rule 958297 - Fixed unescaped double-quote issue in Comment SPAM UA rule.
+ https://www.modsecurity.org/tracker/browse/CORERULES-9
+
+--------------------------
+Version 2.0.0 - 07/29/2009
+--------------------------
+
+New Rules & Features:
+- Fine Grained Policy
+ The rules have been split to having one signature per rule instead of having
+ all signatures combined into one optimized regular expression.
+ This should allow you to modify/disable events based on specific patterns
+ instead of having to deal with the whole rule.
+- Converted Snort Rules
+ Emerging Threat web attack rules have been converted.
+ http://www.emergingthreats.net/
+- Anomaly Scoring Mode Option
+ The rules have been updated to include anomaly scoring variables which allow
+ you to evaluate the score at the end of phase:2 and phase:5 and decide on what
+ logging and disruptive actions to take based on the score.
+- Correlated Events
+ There are rules in phase:5 that will provide some correlation between inbound
+ events and outbound events and will provide a result of successful atttack or
+ attempted attack.
+- Updated Severity Ratings
+ The severity ratings in the rules have been updated to the following:
+ - 0: Emergency - is generated from correlation where there is an inbound attack and
+ an outbound leakage.
+ - 1: Alert - is generated from correlation where there is an inbound attack and an
+ outbound application level error.
+ - 2: Critical - is the highest severity level possible without correlation. It is
+ normally generated by the web attack rules (40 level files).
+ - 3: Error - is generated mostly from outbound leakabe rules (50 level files).
+ - 4: Warning - is generated by malicious client rules (35 level files).
+ - 5: Notice - is generated by the Protocol policy and anomaly files.
+ - 6: Info - is generated by the search engine clients (55 marketing file).
+- Updated Comment SPAM Protections
+ Updated rules to include RBL lookups and client fingerprinting concepts from
+ Bad Behavior (www.bad-behavior.ioerror.us)
+- Creation of Global Collection
+ Automatically create a Global collection in the *10* config file. Other rules
+ can then access it.
+- Use of Block Action
+ Updated the rules to use the "block" action. This allows the Admin to globally
+ set the desired block action once with SecDefaultAction in the *10* config file
+ rather than having to edit the disruptive actions in all of the rules or for
+ the need to have multiple versions of the rules (blocking vs. non-blocking).
+- "Possible HTTP Parameter Pollution Attack: Multiple Parameters with the same Name."
+ http://tacticalwebappsec.blogspot.com/2009/05/http-parameter-pollution.html
+- Added new generic RFI detection rules.
+ http://tacticalwebappsec.blogspot.com/2009/06/generic-remote-file-inclusion-attack.html
+- "Possibly malicious iframe tag in output" (Rules 981001,981002)
+ Planting invisible iframes in a site can be used by attackers to point users
+ from the victim site to their malicious site. This is actually as if the
+ user was visiting the attacker's site himself, causing the user's browser to
+ process the content in the attacker's site.
+
+New Events:
+- Rule 960019 - Expect Header Not Allowed.
+- Rule 960020 - Pragma Header Requires Cache-Control Header
+- Rule 958290 - Invalid Character in Request - Browsers should not send the (#) character
+ as it is reserved for use as a fragment identifier within the html page.
+- Rule 958291 - Range: field exists and begins with 0.
+- Rule 958292 - Invalid Request Header Found.
+- Rule 958293 - Lowercase Via Request Header Found.
+- Rule 958294 - Common SPAM Proxies found in Via Request Header.
+- Rule 958295 - Multiple/Conflicting Connection Header Data Found.
+- Rule 958296 - Request Indicates a SPAM client accessed the Site.
+- Rule 958297 - Common SPAM/Email Harvester crawler.
+- Rule 958298 - Common SPAM/Email Harvester crawler
+
+Bug Fixes:
+- Rule 950107 - Split the rule into 2 separate rules to factor in the
+ Content-Type when inspecting the REQUEST_BODY variable.
+- Rule 960017 - Bug fix for when having port in the host header.
+- Rule 960014 - Bug fix to correlate the SERVER_NAME variable.
+- Rule 950801 - Increased the logic so that the rule will only run if the web site
+ uses UTF-8 Encoding.
+- Rules 999210,999211 - Bug fix to move ctl actions to last rule, add OPTIONS and
+ allow the IPv6 loopback address
+- Rule 950117 - Updated the RFI logic to factor in both a trailing "?" in the ARG
+ and to identify offsite hosts by comparing the ARG URI to the Host
+ header. Due to this rule now being stronger, moved it from optional
+ tight security rule to *40* generic attacks file.
+
+Other Fixes:
+- Added more HTTP Protocol violations to *20* file.
+- Set the SecDefaultAction in the *10* config file to log/pass (This was the
+ default setting, however this sets it explicitly.
+- Added SecResponseBodyLimitAction ProcessPartial to the *10* config file. This
+ was added so that when running the SecRuleEngine in DetectionOnly mode, it will
+ not deny response bodies that go over the size restrictions.
+- Changed SecServerSignature to "Apache/1.3.28"
+- Fixed the use of SkipAfter and SecMarkers to make it consistent. Now have
+ BEGIN and END SecMarkers for rule groups to more accurately allow moving to
+ proper locations.
+- Fixed the @pm/@pmFromFile pre-qualifier logic to allow for operator inversion.
+ This removes the need for some SecAction/SkipAfter rules.
+- Updated rule formatting to easily show rule containers (SecMarkers, pre-qualifier
+ rules and chained rules).
+
+--------------------------
+Version 1.6.1 - 2008/04/22
+--------------------------
+
+- Fixed a bug where phases and transformations where not specified explicitly
+ in rules. The issue affected a significant number of rules, and we strongly
+ recommend to upgrade.
+
+--------------------------
+Version 1.6.0 - 2008/02/19
+--------------------------
+
+New Rulesets & Features:
+- 42 - Tight Security
+ This ruleset contains currently 2 rules which are considered highly prone
+ to FPs. They take care of Path Traversal attacks, and RFI attacks. This
+ ruleset is included in the optional_rulesets dir
+- 42 - Comment Spam
+ Comment Spam is used by the spammers to increase their rating in search
+ engines by posting links to their site in other sites that allow posting
+ of comments and messages. The rules in this ruleset will work against that.
+ (Requires ModSecurity 2.5)
+- Tags
+ A single type of attack is often detected by multiple rules. The new alert
+ classification tags solve this issue by providing an alternative alert type
+ indication and can serve for filtering and analysis of audit logs.
+ The classification tags are hierarchical with slashes separating levels.
+ Usually there are two levels with the top level describing the alert group
+ and the lower level denoting the alert type itself, for example:
+ WEB_ATTACK/SQL_INJECTION.
+
+False Positives Fixes:
+- Rule 960903 - Moved to phase 4 instead of 5 to avoid FPs
+- Rule 950107 - Will look for invalid url decoding in variables that are not
+ automatically url decoded
+
+Additional rules logic:
+- Using the new "logdata" action for logging the matched signature in rules
+- When logging an event once, init the collection only if the alert needs to log
+- Using the new operator @pm as a qualifier before large rules to enhance
+ performance (Requires ModSecurity 2.5)
+- SQL injection - A smarter regexp is used to detect 1=1,2=2,etc.. and not
+ only 1=1. (Thanks to Marc Stern for the idea)
+- New XSS signatures - iframe & flash XSS
+
+
+-------------------------
+Version 1.5.1 - 2007/12/6
+-------------------------
+
+False Positives Fixes:
+- Protocol Anomalies (file 21) - exception for Apache SSL pinger (Request: GET /)
+
+New Events:
+- 960019 - Detect HTTP/0.9 Requests
+ HTTP/0.9 request are not common these days. This rule will log by default,
+ and block in the blocking version of file 21
+
+Other Fixes:
+- File 40, Rules 950004,950005 - Repaired the correction for the double
+ url decoding problem
+- File 55 contained empty regular expressions. Fixed.
+
+------------------------
+Version 1.5 - 2007/11/23
+------------------------
+
+New Rulesets:
+- 23 - Request Limits
+ "Judging by appearances". This rulesets contains rules blocking based on
+ the size of the request, for example, a request with too many arguments
+ will be denied.
+
+Default policy changes:
+- XML protection off by default
+- BLOCKING dir renamed to optional_rules
+- Ruleset 55 (marketing) is now optional (added to the optional_rules dir)
+- Ruleset 21 - The exception for apache internal monitor will not log anymore
+
+New Events:
+- 960912 - Invalid request body
+ Malformed content will not be parsed by modsecurity, but still there might
+ be applications that will parse it, ignoring the errors.
+- 960913 - Invalid Request
+ Will trigger a security event when request was rejected by apache with
+ code 400, without going through ModSecurity rules.
+
+Additional rules logic:
+- 950001 - New signature: delete from
+- 950007 - New signature: waitfor delay
+
+False Positives Fixes:
+- 950006 - Will not be looking for /cc pattern in User-Agent header
+- 950002 - "Internet Explorer" signature removed
+- Double decoding bug used to cause FPs. Some of the parameters are already
+ url-decoded by apache. This caused FPs when the rule performed another
+ url-decoding transformation. The rules have been split so that parameters
+ already decoded by apache will not be decoded by the rules anymore.
+- 960911 - Expression is much more permissive now
+- 950801 - Commented out entirely. NOTE: If your system uses UTF8 encoding,
+ then you should uncomment this rule (in file 20)
+
+--------------------------
+version 1.4.3 - 2007/07/21
+--------------------------
+
+New Events:
+- 950012 - HTTP Request Smuggling
+ For more info on this attack:
+ http://www.cgisecurity.com/lib/HTTP-Request-Smuggling.pdf
+- 960912 - Invalid request body
+ Malformed content will not be parsed by modsecurity, but still there might
+ be applications that will parse it, ignoring the errors.
+- 960913 - Invalid Request
+ Will trigger a security event when request was rejected by apache with
+ code 400, without going through ModSecurity rules.
+
+False Positives Fixes:
+- 950107 - Will allow a % sign in the middle of a string as well
+- 960911 - A more accurate expression based on the rfc:
+ http://www.ietf.org/rfc/rfc2396.txt
+- 950015 - Will not look for http/ pattern in the request headers
+
+Additional rules logic:
+- Since Apache applies scope directives only after ModSecurity phase 1
+ this directives cannot be used to exclude phase 1 rules. Therefore
+ we moved all inspection rules to phase 2.
+
+
+--------------------------------
+version 1.4 build 2 - 2007/05/17
+--------------------------------
+
+New Feature:
+- Search for signatures in XML content
+ XML Content will be parsed and ispected for signatures
+
+New Events:
+- 950116 - Unicode Full/Half Width Abuse Attack Attempt
+ Full-width unicode can by used to bypass content inspection. Such encoding will be forbidden
+ http://www.kb.cert.org/vuls/id/739224
+- 960911 - Invalid HTTP request line
+ Enforce request line to be valid, i.e.: <METHOD> <path> <HTTP version>
+- 960904 - Request Missing Content-Type (when there is content)
+ When a request contains content, the content-type must be specified. If not, the content will not be inspected
+- 970018 - IIS installed in default location (any drive)
+ Log once if IIS in installed in the /Inetpub directory (on any drive, not only C)
+- 950019 - Email Injection
+ Web forms used for sending mail (such as "tell a friend") are often manipulated by spammers for sending anonymous emails
+
+Regular expressions fixes:
+- Further optimization of some regular expressions (using the non-greediness operator)
+ The non-greediness operator, <?>, prevents excessive backtracking
+
+FP fixes:
+- Rule 950107 - Will allow a parameter to end in a % sign from now on
+
+------------------------
+version 1.4 - 2007/05/02
+------------------------
+
+New Events:
+- 970021 - WebLogic information disclosure
+ Matching of "<title>JSP compile error</title>" in the response body, will trigger this rule, with severity 4 (Warning)
+- 950015,950910,950911 - HTTP Response Splitting
+ Looking for HTTP Response Splitting patterns as described in Amit Klein's excellent white paper:
+ http://www.packetstormsecurity.org/papers/general/whitepaper_httpresponse.pdf
+ModSecurity does not support compressed content at the moment. Thus, the following rules have been added:
+- 960902 - Content-Encoding in request not supported
+ Any incoming compressed request will be denied
+- 960903 - Content-Encoding in response not suppoted
+ An outgoing compressed response will be logged to alert, but ONLY ONCE.
+
+False Positives Fixes:
+- Removed <.exe>,<.shtml> from restricted extensions
+- Will not be looking for SQL Injection signatures <root@>,<coalesce> in the Via request header
+- Excluded Referer header from SQL injection, XSS and command injection rules
+- Excluded X-OS-Prefs header from command injection rule
+- Will be looking for command injection signatures in
+ REQUEST_COOKIES|REQUEST_COOKIES_NAMES instead of REQUEST_HEADERS:Cookie.
+- Allowing charset specification in the <application/x-www-form-urlencoded> Content-Type
+
+Additional rules logic:
+- Corrected match of OPTIONS method in event 960015
+- Changed location for event 960014 (proxy access) to REQUEST_URI_RAW
+- Moved all rules apart from method inspection from phase 1 to phase 2 -
+ This will enable viewing content if such a rule triggers as well as setting
+ exceptions using Apache scope tags.
+- Added match for double quote in addition to single quote for <or x=x> signature (SQL Injection)
+- Added 1=1 signature (SQL Injection)
+
+--------------------------------
+version 1.3.2 build 4 2007/01/17
+--------------------------------
+
+Fixed apache 2.4 dummy requests exclusion
+Added persistent PDF UXSS detection rule
+
+--------------------------------
+Version 1.3.2 build 3 2007/01/10
+--------------------------------
+
+Fixed regular expression in rule 960010 (file #30) to allow multipart form data
+content
+
+--------------------------
+Version 1.3.2 - 2006/12/27
+--------------------------
+
+New events:
+- 960037 Directory is restricted by policy
+- 960038 HTTP header is restricted by policy
+
+Regular expressions fixes:
+- Regular expressions with @ at end of beginning (for example "@import)
+- Regular expressions with un-escaped "."
+- Command Injections now always require certain characters both before and after the command. Important since many are common English words (finger, mail)
+- The command injection wget is not searched in the UA header as it has different meaning there.
+- LDAP Fixed to reduce FPs:
+ + More accurate regular expressions
+ + high bit characters not accpeted between signature tokens.
+- Do not detect <?xml as a PHP tag in both PHP injection and PHP source leakage
+- Removed Java from automation UA
+- When validating encoding, added regexp based chained rule that accepts both %xx and %uxxxxx encoding bypassing a limitation of "@validateUrlEncoding"
+
+Additional rules logic:
+- Checks for empty headers in addition to missing ones (Host, Accept and User-Agent)
+- OPTIONS method does not require an accept header.
+- Apache keep alive request exception.
+- PROPFIND and OPTIONS can be used without content-encoding (like HEAD and GET)
+- Validate byte range checks by default only that no NULL char exists.
+- Added CSS to allowed extensions in strict rule sets.
+- Changed default action in file #50 to pass instead of deny.
+- Moved IP host header from protocol violations to protocol anomalies.
+
+Modified descriptions:
+- 950107: URL Encoding Abuse Attack Attempt
+- 950801: UTF8 Encoding Abuse Attack Attempt
+- Added matched pattern in many events using capture and %{TX.0}
+- Added ctl:auditLogParts=+E for outbound events and attacks to collect response.
+
+------------------------
+Version 1.2 - 2006/11/19
+------------------------
+
+Changes:
++ Move all events to the range of events allocated to Thinking Stone, now Breach
+by prefixing all event IDs with "9".
++ Reverse severities to follow the Syslog format used by ModSecurity, now 1 is
+the highest and 5 the lowest.
+
+Bug fixes:
++ Removed quotes from list of mime types inspected on exit (directive
+SecResponseBodyMimeType)
++ Corrected "cd .." signature. Now the periods are escaped.
++ Too many FPs with events 950903 & 950905. Commented them out until fixed.
+
+------------------------
+Version 1.1 - 2006/10/18
+------------------------
+
+Initial version
--- /dev/null
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it. (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.) You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must show them these terms so they know their
+rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary. To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License. The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+ 1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+ 2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in
+ whole or in part contains or is derived from the Program or any
+ part thereof, to be licensed as a whole at no charge to all third
+ parties under the terms of this License.
+
+ c) If the modified program normally reads commands interactively
+ when run, you must cause it, when started running for such
+ interactive use in the most ordinary way, to print or display an
+ announcement including an appropriate copyright notice and a
+ notice that there is no warranty (or else, saying that you provide
+ a warranty) and that users may redistribute the program under
+ these conditions, and telling the user how to view a copy of this
+ License. (Exception: if the Program itself is interactive but
+ does not normally print such an announcement, your work based on
+ the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of Sections
+ 1 and 2 above on a medium customarily used for software interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three
+ years, to give any third party, for a charge no more than your
+ cost of physically performing source distribution, a complete
+ machine-readable copy of the corresponding source code, to be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer
+ to distribute corresponding source code. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form with such
+ an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable. However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+ 5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all. For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded. In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+ 9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation. If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+ 10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission. For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this. Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+ Gnomovision version 69, Copyright (C) year name of author
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+ <signature of Ty Coon>, 1 April 1989
+ Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs. If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
--- /dev/null
+
+==============================
+ModSecurity Core Rule Set
+==============================
+
+(c) 2006-2009 Breach Secuiry Inc.
+
+The ModSecurity Core Rule Set is provided to you under the terms and
+conditions of GPL version 2
+
+This directory contains the files for Core ModSecurity Rule Set
+The rules are compatible with ModSecurity 2.5 (as of version 1.4.3)
+
+
+Overview
+========
+
+Using ModSecurity requires rules. In order to enable users to take full
+advantage of ModSecurity immediately, Breach Security Inc. is providing a free
+Core rule set. Unlike intrusion detection and prevention systems which
+rely on signature specific to known vulnerabilities, the Core Rule Set
+provides generic protection from unknown vulnerabilities often found in web
+application that are in most cases custom coded.
+
+Keep in mind that a predefined rule set is only part of the work required to
+protect your web site. We strongly urge you to consult Ivan Ristic's book,
+"Apache Security" in order to harden your Apache web server. You may also
+consider writing custom rules for providing a positive security envelope to
+your application or critical parts of it. Breach Security can provide you with
+training and professional services to assist you in doing that. The Core
+Rule Set is heavily commented to allow it to be used as a step-by-step
+deployment guide for ModSecurity.
+
+For more information refer to the Core Rule Set page at
+http://www.owasp.org/index.php/Category:OWASP_ModSecurity_Core_Rule_Set_Project
+
+Core Rules Mail-list -
+Suscribe here: https://lists.owasp.org/mailman/listinfo/owasp-modsecurity-core-rule-set
+Archive: https://lists.owasp.org/pipermail/owasp-modsecurity-core-rule-set/
+
+Core Rule Set Structure & Usage
+====================================
+
+To activate the rules for your web server installation:
+
+ 1) The modsecurity_crs_10_global_config.conf file includes directives that
+ can only be initiated once by Apache and thus this should be included
+ within the main httpd.conf file context.
+
+ The modsecurity_crs_10_config.conf, on the other hand, includes directives
+ that can be included within virtual host containers. Pay attention to
+ the SecRuleEngine setting (On by default) and that the SecDefaultAction
+ directive is set to "pass". All of the rules use the "block" action which
+ inherits this setting. The effectively means that you can toggle the
+ SecDefaultAction setting to decide if you would like to deny on a rule
+ match or if you want to run in anomaly scoring/correlation mode (which is
+ the new default).
+
+ Should also update the appropriate anomaly scoring level in the
+ modsecurity_crs_49_enforcement.conf and modsecurity_crs_60_correlation.conf
+ files. This will determine when you log and block events.
+
+ Additionally you may want to edit modsecurity_crs_30_http_policy.conf
+ which enforces an application specific HTTP protocol usage.
+
+ 2) Add the following line to your httpd.conf (assuming
+ you've placed the rule files into conf/modsecurity/):
+
+ Include conf/modsecurity/*.conf
+ Include conf/modsecurity/base_rules/*conf
+
+ 3) Restart web server.
+
+ 4) Make sure your web sites are still running fine.
+
+ 5) Simulate an attack against the web server. Then check
+ the attack was correctly logged in the Apache error log,
+ ModSecurity debug log (if you enabled it) and ModSecurity
+ audit log (if you enabled it).
+
+ 6) If you configured your audit log entries to be transported
+ to ModSecurity Console in real time, check the alert was
+ correctly recorded there too.
+
+
+Known Issues
+===============
+
+Apache requests rejection and phase 2 rules
+-------------------------------------------
+
+Since now all inspection rules are executed in phase 2, several protocol
+validation is done by Apache prior to ModSecurity. This is by no means a
+security issue as Apache would block the requests, but the alert would appear
+in the ModSecurity audit log as a generic event "Invalid Request (960913)"
+
+Here's a list of the events that modsecurity might not log due to this issue:
+- Validate encoding - 950107
+ When invalid encoding is found in the URI
+- Validate utf-8 encoding - 950801
+ When invalid encoding is found in the URI
+- Method not allowed by policy - 960032
+ When the request uses a method that Apache doesn't know such as: CONNECT, SUBSCRIBE, etc.
+
+
+Google Analytics
+----------------
+
+For Google Analytics account activation, you will need to disable
+the Core Rules temporarily, then enable them after your Google account is
+activated. More info can be found in the mod-security-mailing-list:
+http://sourceforge.net/mailarchive/message.php?msg_name=1179692394.26994.10.camel%40localhost
+
+
+About Regular Expressions
+============================
+
+One of the advantages of the Core Rule Set, being a set of text files is your
+ability to modify it. However you will find that the regular expressions used
+are very complex.
+
+Since regular expressions are much more efficient if assembled into a single
+expression and optimized, a generation script takes a list of patterns that
+are required for a rule and optimize them into a most efficient regular
+expression.
+
+We plan to release the optimization script shortly to allow much easier editing
+of regular expressions.
+
+
+Core Rule Set Content
+=========================
+
+In order to provide generic web applications protection, the Core Rule Set
+uses the following techniques:
+
+1. HTTP protection - detecting violations of the HTTP protocol and a locally
+defined usage policy.
+
+2. Common Web Attacks Protection - detecting common web application security
+attack.
+
+3. Automation detection - Detecting bots, crawlers, scanners and other surface
+malicious activity.
+
+4. Trojan Protection - Detecting access to Trojans horses.
+
+5. Errors Hiding - Disguising error messages sent by the server
+
+In addition the rule set also hints at the power of ModSecurity beyond
+providing security by reporting access from the major search engines to your
+site.
+
+
+HTTP Protection - This first line of protection ensures that all abnormal HTTP
+requests are detected. This line of defense eliminates a large number of
+automated and non targeted attacks as well as protects the web server itself.
+Common Web Attacks Protection Rules on the second level address the common web
+application security attack methods. These are the issues that can appear in
+any web application. Some of the issues addressed are:
+
+- SQL Injection
+- Cross-Site Scripting (XSS)
+- OS Command execution
+- Remote code inclusion
+- LDAP Injection
+- SSI Injection
+- Information leak
+- Buffer overflows
+- File disclosure
+
+Automation Detection - Automated clients are both a security risk and a
+commercial risk. Automated crawlers collect information from your site, consume
+bandwidth and might also search for vulnerabilities on the web site. Automation
+detection is especially useful for generic detection of comments spam.
+
+
+Trojan Protection - ModSecurity Core Rule Set detects access to back doors
+installed on a web server. This feature is very important in a hosting
+environment when some of this backdoors may be uploaded in a legitimate way and
+used maliciously. In addition the Core Rule Set includes a hook for adding
+an Anti-Virus program such as ClamAV for checking file uploads.
+
+Errors Hiding - If all fails, the Core Rule Set will detect errors sent by
+the web server. Detecting and blocking errors prevents attackers from
+collecting reconnaissance information about the web application and also server
+as a last line of defense in case an attack was not detected eariler.
+
+
+Few Word of Caution
+-------------------
+
+As with every new technology, using the ModSecurity Core Rule Set requires some caution:
+
+- Every Rule Set can have false positive in new environments and any new
+installation should initially use the log only Rule Set version or if no such
+version is available, set ModSecurity to Detection only using the SecRuleEngine
+DetectionOnly command.
+
+After running ModSecurity in a detection only mode for a while review the evens
+generated and decide if any modification to the rule set should be made before
+moving to protection mode.
+
+- Freely available wide spread signatures have their down side as attackers may
+examine them and find ways to bypass them. Especially note that the automation
+detection signatures are relatively easy to evade and should not be viewed as a
+security mechanism but only as a "nuisance reduction" mechanism.
+
+
+Road Map
+--------
+
+This rule set is both young and old. Breach Security has a long experience with
+rules and signatures for application security protection and the Core Rule
+Set is based on this experience. On the other hand, this is a first cut of a
+ModSecurity rule set so your feedback and remarks, either directly or through
+the ModSecurity mailing list would be greatly appreciated.
+
+Going forward we plan to:
+
+- Utilize ModSecurity 2.0 support for events correlation to detect denial of
+service attacks, brute force attacks and attack reconnaissance
+
+- Add a framework for validating SOAP requests.
+
+- Add signatures for key known vulnerabilities.
+
+Anything else you would want?
+
--- /dev/null
+set-cookie
+.cookie
+expiressys.user_objects
+sys.user_triggers
+@@spid
+msysaces
+instr
+sys.user_views
+sys.tab
+charindex
+locate
+sys.user_catalog
+constraint_type
+msysobjects
+attnotnull
+select
+sys.user_tables
+sys.user_constraints
+sys.user_tab_columns
+waitfor
+mysql.user
+sys.all_tables
+msysrelationships
+msyscolumns
+msysqueriessubstr
+xtype
+textpos
+all_objects
+rownum
+sysfilegroups
+sysprocesses
+user_group
+sysobjects
+systables
+user_tables
+pg_attribute
+column_id
+user_password
+user_users
+attrelid
+user_tab_columns
+table_name
+pg_class
+user_constraints
+user_objects
+object_type
+sysconstraints
+mb_users
+column_name
+atttypid
+substring
+object_id
+syscat
+sysibm
+user_ind_columns
+syscolumns
+sysdba
+object_namexp_enumdsn
+insert
+infile
+autonomous_transaction
+nvarchar
+openrowset
+print
+data_type
+outfile
+castb
+shutdown
+inner
+tbcreator
+xp_filelist
+@@version
+sql_longvarchar
+sp_prepare
+xp_regenumkeys
+xp_dirtree
+xp_loginconfig
+ifnull
+sp_addextendedproc
+xp_regaddmultistring
+delete
+sp_sqlexec
+sp_oacreate
+sp_execute
+xp_ntsec
+xp_regdeletekey
+drop
+xp_execresultset
+varchar
+dba_users
+to_number
+having
+xp_regenumvalues
+utl_file
+xp_terminate
+xp_availablemedia
+xp_regdeletevalue
+sql_variant
+dumpfile
+isnull
+'sa'
+select
+xp_regremovemultistring
+xp_makecab
+xp_cmdshell
+'msdasql'
+sp_executesql
+openquery
+'sqloledb'
+'dbo'
+sp_makewebtask
+utl_http
+dbms_java
+benchmark
+xp_regread
+xp_regwritejscript
+onsubmit
+copyparentfolder
+javascript
+meta
+onchange
+onmove
+onkeydown
+onkeyup
+activexobject
+onerror
+onmouseup
+ecmascript
+bexpression
+onmouseover
+vbscript:
+<![cdata[
+http:
+.innerhtml
+settimeout
+shell:
+onabort
+asfunction:
+onkeypress
+onmousedown
+onclick
+.fromcharcode
+background-image:
+.cookie
+x-javascript
+ondragdrop
+onblur
+mocha:
+javascript:
+onfocus
+lowsrc
+getparentfolder
+onresize
+@import
+alert
+script
+onselect
+onmouseout
+application
+onmousemove
+background
+.execscript
+livescript:
+vbscript
+getspecialfolder
+.addimport
+iframe
+onunload
+createtextrange
+<input
+onload.www_acl
+.htpasswd
+.htaccess
+httpd.conf
+boot.ini
+/etc/
+.htgroup
+global.asa
+.wwwaclnet.exe
+cmd.exe
+cmd
+telnet.exe
+wguest.exe
+ftp.exe
+nmap.exe
+wsh.exe
+rcmd.exe
+nc.exe
+cmd32.exechgrp
+cmd32
+uname
+kill
+localgroup
+wguest.exe
+nasm
+rcmd.exe
+nc.exe
+id
+nc
+tclsh
+finger
+tftp
+cmd
+chown
+chsh
+ping
+nmap.exe
+ps
+net.exe
+telnet.exe
+ls
+tclsh8
+ftp.exe
+ftp
+lsof
+xterm
+mail
+echo
+tracert
+nmap
+cmd.exe
+rm
+python
+cd
+traceroute
+chmod
+perl
+passwd
+wsh.exe
+cpp
+telnet
+gcc
+g++chgrp
+cmd32
+uname
+kill
+localgroup
+wguest.exe
+nasm
+rcmd.exe
+nc.exe
+id
+nc
+tclsh
+finger
+tftp
+cmd
+chown
+chsh
+ping
+nmap.exe
+ps
+net.exe
+telnet.exe
+ls
+tclsh8
+ftp.exe
+ftp
+lsof
+xterm
+mail
+echo
+tracert
+nmap
+cmd.exe
+rm
+python
+cd
+traceroute
+chmod
+perl
+passwd
+wsh.exe
+cpp
+telnet
+gcc
+g++<?
--- /dev/null
+sys.user_objects
+sys.user_triggers
+@@spid
+msysaces
+instr
+sys.user_views
+sys.tab
+charindex
+locate
+sys.user_catalog
+constraint_type
+msysobjects
+attnotnull
+select
+sys.user_tables
+sys.user_constraints
+sys.user_tab_columns
+waitfor
+mysql.user
+sys.all_tables
+msysrelationships
+msyscolumns
+msysqueriessubstr
+xtype
+textpos
+all_objects
+rownum
+sysfilegroups
+sysprocesses
+user_group
+sysobjects
+systables
+user_tables
+pg_attribute
+column_id
+user_password
+user_users
+attrelid
+user_tab_columns
+table_name
+pg_class
+user_constraints
+user_objects
+object_type
+sysconstraints
+mb_users
+column_name
+atttypid
+substring
+object_id
+syscat
+sysibm
+user_ind_columns
+syscolumns
+sysdba
+object_namexp_enumdsn
+insert
+infile
+autonomous_transaction
+nvarchar
+openrowset
+print
+data_type
+outfile
+castb
+shutdown
+inner
+tbcreator
+xp_filelist
+@@version
+sql_longvarchar
+sp_prepare
+xp_regenumkeys
+xp_dirtree
+xp_loginconfig
+ifnull
+sp_addextendedproc
+xp_regaddmultistring
+delete
+sp_sqlexec
+sp_oacreate
+sp_execute
+xp_ntsec
+xp_regdeletekey
+drop
+xp_execresultset
+varchar
+dba_users
+to_number
+having
+xp_regenumvalues
+utl_file
+xp_terminate
+xp_availablemedia
+xp_regdeletevalue
+sql_variant
+dumpfile
+isnull
+'sa'
+select
+xp_regremovemultistring
+xp_makecab
+xp_cmdshell
+'msdasql'
+sp_executesql
+openquery
+'sqloledb'
+'dbo'
+sp_makewebtask
+utl_http
+dbms_java
+benchmark
+xp_regread
+xp_regwrite
--- /dev/null
+/ASPKAT.ASP
+/DocPay.w2b
+/G_Display.php
+/HABERLER.ASP
+/HaberDetay.asp
+/News/page.asp
+/OmegaMw7.asp
+/ProductDetails.asp
+/Search/DisplayResults.php
+/SecureLoginManager/list.asp
+/SelGruFra.asp
+/Types.asp
+/ViewBugs.php
+/ViewCat.php
+/ViewReport.php
+/account_change.php
+/activeNews_categories.asp
+/activeNews_comments.asp
+/activenews_search.asp
+/activenews_view.asp
+/actualpic.asp
+/ad.asp
+/add2.php
+/add_comment.php
+/addrating.php
+/admin.asp
+/admin.php
+/admin/admin_acronyms.php
+/admin/admin_annonce/changeannonce.php
+/admin/admin_annonce/okvalannonce.php
+/admin/admin_mail_adressee.asp
+/admin/admin_membre/fiche_membre.php
+/admin/cms/opentree.php
+/admin/config.php
+/admin/edit.asp
+/admin/memberlist.php
+/admin/modules/modules.php
+/admin_check_user.asp
+/admin_hacks_list.php
+/admincp/attachment.php
+/administration/administre2.php
+/albmgr.php
+/applications/SecureLoginManager/inc_secureloginmanager.asp
+/aramayap.asp
+/archives.php
+/articles.asp
+/artreplydelete.asp
+/auth.php
+/badword.asp
+/banner.php
+/bb-includes/formatting-functions.php
+/blocks/block-Old_Articles.php
+/boxx/ShowAppendix.asp
+/bry.asp
+/bt-trackback.php
+/bus_details.asp
+/calendar_detail.asp
+/cart.inc.php
+/cat.asp
+/categoria.php
+/category.php
+/cats.asp
+/cgi-bin/reorder2.asp
+/check_vote.php
+/class/debug/debug_show.php
+/class/table_broken.php
+/classes/class.news.php
+/classes/class_session.php
+/code/guestadd.php
+/com_comment.php
+/comersus_optReviewReadExec.asp
+/comment.php
+/comments.php
+/compareHomes.asp
+/compare_product.php
+/connexion.php
+/content.asp
+/content.php
+/coupon_detail.asp
+/dagent/downloadreport.asp
+/database/table/user.php
+/db_ecard.php
+/default.asp
+/default2.asp
+/detail.asp
+/detail.php
+/details.asp
+/dettaglio.asp
+/devami.asp
+/diary.php
+/dirSub.asp
+/dircat.asp
+/directions.php
+/directory.php
+/dispimage.asp
+/displayCalendar.asp
+/display_review.php
+/displaypic.asp
+/dl.php
+/dlwallpaper.php
+/down.asp
+/down_indir.asp
+/download_image.asp
+/duyuru.asp
+/eWebQuiz.asp
+/edit.asp
+/edit_day.php
+/email.php
+/error.asp
+/etkinlikbak.asp
+/example.php
+/faq.php
+/faqDsp.asp
+/filecheck.php
+/filelist.asp
+/forgotpass.asp
+/forum.asp
+/forum.php
+/forum/include/error/autherror.cfm
+/forum/modules/gallery/post.php
+/forum/pop_up_member_search.asp
+/forum2.asp
+/forums.php
+/functions.php
+/functions/functions_filters.asp
+/gallery.asp
+/gallery.php
+/game.php
+/game_listing.php
+/getnewsitem.php
+/giris.asp
+/giris_yap.asp
+/glossaire-p-f.php
+/gmail.php
+/goster.asp
+/guestbook.php
+/h_goster.asp
+/haber.asp
+/haberdetay.asp
+/haberoku.asp
+/home.php
+/homeDetail.asp
+/i-search.php
+/inc/class_users.php
+/inc/common.php
+/inc_listnews.asp
+/include.php
+/includes/a_register.asp
+/includes/mambo.php
+/includes/nsbypass.php
+/includes/rating.php
+/index.asp
+/index.cfm
+/index.php
+/index1.asp
+/info_book.asp
+/info_user.asp
+/inlinemod.php
+/inout/status.asp
+/inout/update.asp
+/install.php
+/item.asp
+/item.php
+/item_list.asp
+/item_show.asp
+/ixm_ixpnews.php
+/journal.php
+/jump.php
+/kategori.asp
+/kernel/group.php
+/kullanicilistesi.asp
+/letterman.class.php
+/lib/entry_reply_entry.php
+/linkslist.asp
+/lire-avis.php
+/list.asp
+/list.php
+/list_comments.php
+/listfull.asp
+/listings.asp
+/listmain.asp
+/listmembers.php
+/listpics.asp
+/login.asp
+/login.php
+/login/register.asp
+/logon_user.php
+/low.php
+/mailer.w2b
+/main.asp
+/main/auth/my_progress.php
+/main_page.php
+/mainfile.php
+/manufacturer.php
+/meal_rest.asp
+/members.asp
+/mesajkutum.asp
+/mezungiris.asp
+/mod.php
+/mod_banners.php
+/models/category.php
+/modules.php
+/modules/Advertising/admin/index.php
+/modules/News/index.php
+/modules/admin/modules/gallery.php
+/modules/mod_mainmenu/menu.php
+/moscomment.php
+/mystats.php
+/navigacija.php
+/news.asp
+/news.php
+/news_detail.asp
+/news_page.asp
+/newsdetail.asp
+/newsletters/edition.php
+/nickpage.php
+/nukesentinel.php
+/ogretmenkontrol.asp
+/oku.asp
+/openPolicy.asp
+/open_tree.php
+/openlink.asp
+/orange.asp
+/order-track.php
+/outputs.php
+/page.asp
+/page.php
+/pages/addcomment2.php
+/pfs/pfs.edit.inc.php
+/philboard_forum.asp
+/phonemessage.asp
+/php-stats.recphp.php
+/plugins/authentication/ldap.php
+/plugins/ipsearch/ipsearch.admin.php
+/plugins/mp3playlist/mp3playlist.php
+/plugins/search/categories.php
+/plugins/search/contacts.php
+/plugins/search/content.php
+/plugins/search/sections.php
+/plugins/search/weblinks.php
+/plugins/user/example.php
+/pms.php
+/pollmentorres.asp
+/polls.php
+/pop_profile.asp
+/post.php
+/postingdetails.php
+/preferences.asp
+/prikazInformacije.php
+/print.asp
+/print.php
+/printarticle.asp
+/printmain.asp
+/printview.php
+/process.php
+/prodList.asp
+/product.asp
+/product_review.php
+/productdetail.asp
+/products.asp
+/public/code/cp_downloads.php
+/publication_view.asp
+/publications_list.asp
+/question.php
+/rating.asp
+/read/index.php
+/recipe.php
+/register.php
+/repass.php
+/res_details.asp
+/result.asp
+/result.php
+/rss.asp
+/rss/show_webfeed.php
+/save.php
+/search.asp
+/search.php
+/search_listing.asp
+/searchkey.asp
+/searchmain.asp
+/searchoption.asp
+/section/default.asp
+/send_password_preferences.asp
+/sendarticle.asp
+/set_preferences.asp
+/shared/code/cp_authorization.php
+/shared/code/cp_functions_downloads.php
+/shopgiftregsearch.asp
+/show_joined.php
+/show_news.php
+/show_owned.php
+/showfile.asp
+/simplog/archive.php
+/simplog/index.php
+/slideshow.asp
+/sptrees/default.aspx
+/style.php
+/stylesheet.php
+/subcat.php
+/system/core/users/users.register.inc.php
+/system/index.php
+/templates/modif.html
+/thread.php
+/thumbnails.asp
+/thumbnails.php
+/topic_title.php
+/torrents.php
+/tracking/courseLog.php
+/types.asp
+/update_profile.php
+/urunbak.asp
+/user.asp
+/user.php
+/user_confirm.asp
+/user_pages/page.asp
+/userdetail.php
+/usergroups.php
+/usermgr.php
+/users.php
+/utilities/usermessages.asp
+/uye_giris_islem.asp
+/vBSupport.php
+/vdateUsr.asp
+/vehiclelistings.asp
+/verify.php
+/vf_memberdetail.asp
+/view.php
+/view_gallery.asp
+/view_profile.php
+/view_recent.asp
+/viewad.asp
+/viewcat.php
+/viewimage.php
+/viewlinks.asp
+/viewthread.php
+/virtuemart_parser.php
+/visu_user.asp
+/voirannonce.php
+/wallpaper.php
+/wbsearch.aspx
+/windows.asp
+/wp-admin/admin-ajax.php
+/wp-admin/admin-functions.php
+/wp-trackback.php
+/xNews.php
+/xmlrpc.php
\ No newline at end of file
--- /dev/null
+.aspx
+.php
+/CCMAdmin/serverlist.asp
+/OpenView5.exe
+/WindowManager.dll
+/apage.cgi
+/awstats.pl
+/cfexec.cfm
+/class.csv.php
+/cmd-asp-5.1.asp
+/cmd.exe
+/cmd.php
+/cmdasp.asp
+/cmdasp.aspx
+/cmdjsp.jsp
+/contact/contact/index.php
+/default.aspx
+/functionen/ref_kd_rubrik.php
+/grab_globals.lib.php
+/graph_image.php
+/help_text_vars.php
+/hg_referenz_jobgalerie.php
+/include/sessionRegister.php
+/index.php
+/jsp-reverse.jsp
+/misc.php
+/module/referenz.php
+/nquser.php
+/passwiki.php
+/perlcmd.cgi
+/php-backdoor.php
+/piranha/secure/control.php3
+/pmwiki.php
+/prod.php
+/produkte_nach_serie.php
+/produkte_nach_serie_alle.php
+/ref_kd_rubrik.php
+/simple-backdoor.php
+/site_conf.php
+/standard/1/lay.php
+/standard/3/lay.php
+/surfer_aendern.php
+/surfer_anmeldung_NWL.php
+/tiki-featured_link.php
+/wf_startpage.js
+/wf_startqs.htm
+/whcsh_home.htm
+/whstart.js
+/wp-login.php
+/wps_shop.cgi
+?Redirect
+forumdisplay.php
+graph_view.php
+tree.php
+webmail.exe
\ No newline at end of file
--- /dev/null
+<TITLE>Index of
+><br>
+<title>Index ofMicrosoft VBScript runtime (0x8
+error '800
+Application uses a value of the wrong type for the current operation
+Microsoft VBScript compilation (0x8
+Microsoft VBScript compilation error
+Microsoft .NET Framework Version:
+A trappable error occurred in an external object. The script cannot continue running
+rror
+Microsoft VBScript runtime Error
+>error 'ASP
+ADODB.Command
+Object required: '
+<b>Version Information:</b> does not match with a table name or alias name used in the query
+Either BOF or EOF is True, or the current record has been deleted; the operation
+PostgreSQL query failed:
+You have an error in your SQL syntax near '
+ORA-
+select list because it is not contained in either an aggregate function or the GROUP BY clause
+Syntax error converting the
+supplied argument is not a valid MS SQL
+supplied argument is not a valid Oracle
+Unclosed quotation mark before the character string
+Warning: mysql_connect():
+Unable to connect to PostgreSQL server:
+SQL Server does not exist or access denied
+microsoft jet database engine error '8
+supplied argument is not a valid PostgreSQL result
+Microsoft OLE DB Provider for
+You have an error in your SQL syntax;
+Either BOF or EOF is True, or the current record has been deleted
+supplied argument is not a valid ODBC
+supplied argument is not a valid MySQL
+[Microsoft][ODBC
+error '800a01b8'
+ data type as an argument.
+select list because it is not contained in an aggregate function and there is no GROUP BY clause
+' in sysservers. execute sp_addlinkedserver
+incorrect syntax near These statistics were produced by PeLAB
+This analysis was produced by
+These statistics were produced by getstats
+This report was generated by WebLog
+ebalizer
+This summary was generated byfgets
+move_uploaded_file
+$_session
+ftp_fget
+ftp_put
+readfile
+ftp_nb_put
+gzencode
+bzopen
+fopen
+readdir
+$_post
+gzread
+ftp_nb_fput
+ftp_nb_fget
+ftp_get
+$_get
+scandir
+fscanf
+readgzfile
+fread
+fgetc
+proc_open
+ftp_fput
+fgetss
+ftp_nb_get
+fwrite
+session_start
+gzopen
+gzcompress
+gzwriteserver.urlencode
+server.createobject
+scripting.filesystemobject
+server.execute
+wscript.shell
+<jsp:
+.createtextfile
+.addheader
+wscript.network
+javax.servlet
+.loadfromfile
+server.mappath
+vbscript.encode
+server.htmlencode
+response.write
+response.binarywrite
+.getfile
--- /dev/null
+# ---------------------------------------------------------------
+# Core ModSecurity Rule Set ver.2.0.3
+# Copyright (C) 2006-2009 Breach Security Inc. All rights reserved.
+#
+# The ModSecuirty Core Rule Set is distributed under GPL version 2
+# Please see the enclosed LICENCE file for full details.
+# ---------------------------------------------------------------
+
+
+#
+# TODO in some cases a valid client (usually automated) generates requests that
+# violates the HTTP protocol. Create exceptions for those clients, but try
+# to limit the exception to a source IP or other additional properties of
+# the request such as URL and not allow the violation generally.
+#
+#
+
+# Validate request line
+#
+SecRule REQUEST_LINE "!^(?:(?:[a-z]{3,10}\s+(?:\w{3,7}?://[\w\-\./]*(?::\d+)?)?/[^?#]*(?:\?[^#\s]*)?(?:#[\S]*)?|connect (?:\d{1,3}\.){3}\d{1,3}\.?(?::\d+)?|options \*)\s+[\w\./]+|get /[^?#]*(?:\?[^#\s]*)?(?:#[\S]*)?)$" \
+ "t:none,t:lowercase,phase:2,block,nolog,auditlog,status:400,msg:'Invalid HTTP Request Line',id:'960911',severity:'4',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+5,setvar:tx.protocol_violation_score=+1,setvar:'tx.%{rule.id}-PROTOCOL_VIOLATION/INVALID_REQ-%{matched_var_name}=%{matched_var}'"
+
+
+# Block request with malformed content.
+# ModSecurity will not inspect these, but the server application might do so
+#
+SecRule REQBODY_PROCESSOR_ERROR "!@eq 0" "t:none,phase:2,block,nolog,auditlog,status:400,msg:'Request Body Parsing Failed. %{REQBODY_PROCESSOR_ERROR_MSG}',id:'960912',severity:'4',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+100,setvar:tx.protocol_violation_score=+1,setvar:tx.%{rule.id}-PROTOCOL_VIOLATION/INVALID_REQ-%{matched_var_name}=%{matched_var}"
+
+# By default be strict with what we accept in the multipart/form-data
+# request body. If the rule below proves to be too strict for your
+# environment consider changing it to detection-only. You are encouraged
+# _not_ to remove it altogether.
+SecRule MULTIPART_STRICT_ERROR "!@eq 0" \
+"phase:2,t:none,block,nolog,auditlog,msg:'Multipart request body \
+failed strict validation: \
+PE %{REQBODY_PROCESSOR_ERROR}, \
+BQ %{MULTIPART_BOUNDARY_QUOTED}, \
+BW %{MULTIPART_BOUNDARY_WHITESPACE}, \
+DB %{MULTIPART_DATA_BEFORE}, \
+DA %{MULTIPART_DATA_AFTER}, \
+HF %{MULTIPART_HEADER_FOLDING}, \
+LF %{MULTIPART_LF_LINE}, \
+SM %{MULTIPART_SEMICOLON_MISSING}, \
+IQ %{MULTIPART_INVALID_QUOTING}',id:960914,severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+90,setvar:tx.protocol_violation_score=+1,setvar:tx.%{rule.id}-PROTOCOL_VIOLATION/INVALID_REQ-%{matched_var_name}=%{matched_var}"
+
+# Did we see anything that might be a boundary?
+SecRule MULTIPART_UNMATCHED_BOUNDARY "!@eq 0" \
+"phase:2,block,t:none,nolog,auditlog,msg:'Multipart parser detected a possible unmatched boundary.',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.protocol_violation_score=+1,setvar:tx.%{rule.id}-PROTOCOL_VIOLATION/INVALID_REQ-%{matched_var_name}=%{matched_var}"
+
+# Identify multipart/form-data name evasion attempts
+SecRule FILES "['\";=]" "phase:2,block,t:none,nolog,auditlog,msg:'Attempted multipart/form-data bypass',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.protocol_violation_score=+1,setvar:tx.%{rule.id}-PROTOCOL_VIOLATION/INVALID_REQ-%{matched_var_name}=%{matched_var}"
+SecRule FILES_NAMES "['\";=]" "phase:2,block,t:none,nolog,auditlog,msg:'Attempted multipart/form-data bypass',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.protocol_violation_score=+1,setvar:tx.%{rule.id}-PROTOCOL_VIOLATION/INVALID_REQ-%{matched_var_name}=%{matched_var}"
+
+# Accept only digits in content length
+#
+SecRule REQUEST_HEADERS:Content-Length "!^\d+$" "phase:2,t:none,block,nolog,auditlog,status:400,msg:'Content-Length HTTP header is not numeric', severity:'2',id:'960016',tag:'PROTOCOL_VIOLATION/INVALID_HREQ',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+5,setvar:tx.policy_score=+1,setvar:tx.%{rule.id}-POLICY/IP_HOST-%{matched_var_name}=%{matched_var}"
+
+# Do not accept GET or HEAD requests with bodies
+# HTTP standard allows GET requests to have a body but this
+# feature is not used in real life. Attackers could try to force
+# a request body on an unsuspecting web applications.
+#
+SecRule REQUEST_METHOD "^(?:GET|HEAD)$" "chain,phase:2,t:none,block,nolog,auditlog,status:400,msg:'GET or HEAD requests with bodies', severity:'2',id:'960011',tag:'PROTOCOL_VIOLATION/EVASION'"
+ SecRule REQUEST_HEADERS:Content-Length "!^0?$" "t:none,setvar:'tx.msg=%{rule.msg}',setvar:tx.protocol_violation_score=+1,setvar:tx.anomaly_score=+5,setvar:tx.%{rule.id}-PROTOCOL_VIOLATION/INVALID_HREQ-%{matched_var_name}=%{matched_var}"
+
+# Require Content-Length to be provided with every POST request.
+#
+SecRule REQUEST_METHOD "^POST$" "chain,phase:2,t:none,block,nolog,auditlog,status:400,msg:'POST request must have a Content-Length header',id:'960012',tag:'PROTOCOL_VIOLATION/EVASION',severity:'4'"
+ SecRule &REQUEST_HEADERS:Content-Length "@eq 0" "t:none,setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+5,setvar:tx.protocol_violation_score=+1,setvar:tx.%{rule.id}-PROTOCOL_VIOLATION/INVALID_HREQ-%{matched_var_name}=%{matched_var}"
+
+# Don't accept transfer encodings we know we don't know how to handle
+#
+# NOTE ModSecurity does not support chunked transfer encodings at
+# this time. You MUST reject all such requests.
+#
+SecRule REQUEST_HEADERS:Transfer-Encoding "!^$" "phase:2,t:none,block,nolog,auditlog,status:501,msg:'ModSecurity does not support transfer encodings',id:'960013',tag:'PROTOCOL_VIOLATION/EVASION',severity:'4',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+5,setvar:tx.protocol_violation_score=+1,setvar:tx.%{rule.id}-PROTOCOL_VIOLATION/INVALID_HREQ-%{matched_var_name}=%{matched_var}"
+
+# Expect header is an HTTP/1.1 protocol feature
+#
+SecRule REQUEST_HEADERS:Expect "100-continue" "chain,phase:2,t:none,nolog,block,auditlog,msg:'Expect Header Not Allowed.',severity:'5',id:'960021',tag:'PROTOCOL_VIOLATION/INVALID_HREQ'"
+ SecRule REQUEST_PROTOCOL "@streq HTTP/1.0" "setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+5,setvar:tx.protocol_violation_score=+1,setvar:tx.%{rule.id}-PROTOCOL_VIOLATION/INVALID_HREQ-%{matched_var_name}=%{matched_var}"
+
+# Pragma Header requires a Cache-Control Header
+#
+SecRule &REQUEST_HEADERS:Pragma "@eq 1" "chain,phase:2,t:none,block,nolog,auditlog,msg:'Pragma Header requires Cache-Control Header for HTTP/1.1 requests.',severity:'5',id:'960020',tag:'PROTOCOL_VIOLATION/INVALID_HREQ'"
+ SecRule &REQUEST_HEADERS:Cache-Control "@eq 0" "chain"
+ SecRule REQUEST_PROTOCOL "@streq HTTP/1.1" "setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+5,setvar:tx.protocol_violation_score=+1,setvar:tx.%{rule.id}-PROTOCOL_VIOLATION/INVALID_HREQ-%{matched_var_name}=%{matched_var}"
+
+# Range Header exists and begins with 0 - normal browsers don't do this.
+#
+SecRule REQUEST_HEADERS:Range "@contains =0-" "phase:2,t:none,block,nolog,auditlog,msg:'Range: field exists and begins with 0.',severity:'5',id:'958291',tag:'PROTOCOL_VIOLATION/INVALID_HREQ',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+5,setvar:tx.protocol_violation_score=+1,setvar:tx.%{rule.id}-PROTOCOL_VIOLATION/INVALID_HREQ-%{matched_var_name}=%{matched_var}"
+
+# Broken/Malicous clients often have duplicate or conflicting headers
+#
+SecRule REQUEST_HEADERS:Connection "\b(keep-alive|close),\s?(keep-alive|close)\b" "phase:2,t:none,block,nolog,auditlog,status:400,msg:'Multiple/Conflicting Connection Header Data Found.',id:'958295',tag:'PROTOCOL_VIOLATION/INVALID_HREQ',severity:'5',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+5,setvar:tx.protocol_violation_score=+1,setvar:tx.%{rule.id}-PROTOCOL_VIOLATION/INVALID_HREQ-%{matched_var_name}=%{matched_var}"
+
+# Check encodings
+SecRule REQUEST_URI "\%(?!$|\W|[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})" \
+ "chain,phase:2,t:none,block,nolog,auditlog,status:400,msg:'URL Encoding Abuse Attack Attempt',id:'950107',tag:'PROTOCOL_VIOLATION/EVASION',severity:'5'"
+ SecRule REQUEST_URI "@validateUrlEncoding" "setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+5,setvar:tx.protocol_violation_score=+1,setvar:tx.%{rule.id}-PROTOCOL_VIOLATION/EVASION-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_HEADERS:Content-Type "^application\/x-www-form-urlencoded(?:;(?:\s?charset\s?=\s?[\w\d\-]{1,18})?)??$" \
+ "chain,phase:2,t:none,block,nolog,auditlog,status:400,msg:'URL Encoding Abuse Attack Attempt',id:'950108',tag:'PROTOCOL_VIOLATION/EVASION',severity:'5'"
+ SecRule REQUEST_BODY "\%(?!$|\W|[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})" "chain"
+ SecRule REQUEST_BODY "@validateUrlEncoding" "setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+5,setvar:tx.protocol_violation_score=+1,setvar:tx.%{rule.id}-PROTOCOL_VIOLATION/EVASION-%{matched_var_name}=%{matched_var}"
+
+# Check UTF enconding
+# This rule checks to see if your system uses UTF encoding.
+SecRule RESPONSE_HEADERS:Content-Type "charset=utf-8" \
+ "phase:3,t:none,pass,nolog,setvar:global.utf8_encoding_used=1"
+
+# If UTF-8 encoding was detected in the server's respone headers, run this rule on inbound data.
+SecRule GLOBAL:UTF8_ENCODING_USED "@eq 1" "chain,phase:2,t:none,block,nolog,auditlog,status:400,msg:'UTF8 Encoding Abuse Attack Attempt',id:'950801',tag:'PROTOCOL_VIOLATION/EVASION',severity:'5'"
+ SecRule REQUEST_URI|REQUEST_BODY|REQUEST_HEADERS|XML:/*|!REQUEST_HEADERS:Referer "@validateUtf8Encoding" "setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+5,setvar:tx.protocol_violation_score=+1,setvar:tx.%{rule.id}-PROTOCOL_VIOLATION/EVASION-%{matched_var_name}=%{matched_var}"
+
+
+# Disallow use of full-width unicode
+SecRule REQUEST_URI|REQUEST_BODY|REQUEST_HEADERS|XML:/*|!REQUEST_HEADERS:Referer "\%u[fF]{2}[0-9a-fA-F]{2}" \
+ "t:none,phase:2,block,nolog,auditlog,status:400,msg:'Unicode Full/Half Width Abuse Attack Attempt',id:'950116',severity:'5',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+5,setvar:tx.protocol_violation_score=+1,setvar:tx.%{rule.id}-PROTOCOL_VIOLATION/EVASION-%{matched_var_name}=%{matched_var}"
+
+# Proxy access attempt
+# NOTE Apache blocks such access by default if not set as a proxy. The rule is
+# included in case Apache proxy is misconfigured.
+# NOTE There are some clients (mobile devices) that will send a full URI even when connecting to
+# your local application and this rule allows it.
+# NOTE Need to have UseCononicalName On in Apache config to properly set the SERVER_NAME variable.
+SecRule REQUEST_URI_RAW ^\w+:/ "chain,phase:2,t:none,block,nolog,auditlog,status:400,msg:'Proxy access attempt', severity:'2',id:'960014',tag:'PROTOCOL_VIOLATION/PROXY_ACCESS'"
+ SecRule MATCHED_VAR "!@beginsWith http://%{SERVER_NAME}" "setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+5,setvar:tx.protocol_violation_score=+1,setvar:tx.%{rule.id}-PROTOCOL_VIOLATION/PROXY_ACCESS-%{matched_var_name}=%{matched_var}"
+
+#
+# Restrict type of characters sent
+#
+# NOTE In order to be broad and support localized applications this rule
+# only validates that NULL Is not used.
+#
+# The strict policy version also validates that protocol and application
+# generated fields are limited to printable ASCII.
+#
+# TODO If your application use the range 32-126 for parameters.
+#
+#SecRule REQUEST_FILENAME|REQUEST_HEADERS_NAMES|REQUEST_HEADERS|!REQUEST_HEADERS:Referer \
+# "@validateByteRange 32-126" \
+# "phase:2,block,nolog,auditlog,status:400,msg:'Invalid character in request',id:'960018',tag:'PROTOCOL_VIOLATION/EVASION',severity:'4',t:none,t:urlDecodeUni,setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+5,setvar:tx.protocol_violation_score=+1,setvar:tx.%{rule.id}-PROTOCOL_VIOLATION/EVASION-%{matched_var_name}=%{matchedvar}"
+
+SecRule ARGS|ARGS_NAMES|REQUEST_HEADERS:Referer "@validateByteRange 1-255" \
+ "phase:2,block,nolog,auditlog,status:400,msg:'Invalid character in request',id:'960901',tag:'PROTOCOL_VIOLATION/EVASION',severity:'4',t:none,t:urlDecodeUni,setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+5,setvar:tx.protocol_violation_score=+1,setvar:tx.%{rule.id}-PROTOCOL_VIOLATION/EVASION-%{matched_var_name}=%{matched_var}"
--- /dev/null
+# ---------------------------------------------------------------
+# Core ModSecurity Rule Set ver.2.0.3
+# Copyright (C) 2006-2009 Breach Security Inc. All rights reserved.
+#
+# The ModSecuirty Core Rule Set is distributed under GPL version 2
+# Please see the enclosed LICENCE file for full details.
+# ---------------------------------------------------------------
+
+
+#
+# TODO in some cases a valid client (usually automated) generates requests that
+# violates the HTTP protocol. Create exceptions for those clients, but try
+# to limit the exception to a source IP or other additional properties of
+# the request such as URL and not allow the violation generally.
+#
+
+# Do not accept requests without common headers.
+# Implies either an attacker or a legitimate automation client.
+#
+
+# Detect HTTP/0.9 Requests
+SecRule REQUEST_PROTOCOL ^HTTP/0.9$ "t:none,phase:2,nolog,auditlog,msg:'HTTP/0.9 Request Detected',id:'960019',severity:'4',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+5,setvar:tx.protocol_violation_score=+1,setvar:tx.%{rule.id}-PROTOCOL_VIOLATION/INVALID_REQ-%{matched_var_name}=%{matched_var}"
+
+SecMarker BEGIN_HOST_CHECK
+
+ SecRule &REQUEST_HEADERS:Host "@eq 0" \
+ "skipAfter:END_HOST_CHECK,phase:2,t:none,nolog,auditlog,msg:'Request Missing a Host Header',id:'960008',tag:'PROTOCOL_VIOLATION/MISSING_HEADER',severity:'5',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+5,setvar:tx.protocol_violation_score=+1,setvar:tx.%{rule.id}-PROTOCOL_VIOLATION/MISSING_HEADER-%{matched_var_name}=%{matched_var}"
+ SecRule REQUEST_HEADERS:Host "^$" \
+ "phase:2,t:none,nolog,auditlog,msg:'Request Missing a Host Header',id:'960008',tag:'PROTOCOL_VIOLATION/MISSING_HEADER',severity:'5',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+5,setvar:tx.protocol_violation_score=+1,setvar:tx.%{rule.id}-PROTOCOL_VIOLATION/MISSING_HEADER-%{matched_var_name}=%{matched_var}"
+
+SecMarker END_HOST_CHECK
+
+
+SecMarker BEGIN_ACCEPT_CHECK
+
+ SecRule &REQUEST_HEADERS:Accept "@eq 0" \
+ "chain,phase:2,t:none,nolog,auditlog,msg:'Request Missing an Accept Header', severity:'2',id:'960015',tag:'PROTOCOL_VIOLATION/MISSING_HEADER'"
+ SecRule REQUEST_METHOD "!^OPTIONS$" "skipAfter:END_ACCEPT_CHECK,t:none,setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+5,setvar:tx.protocol_violation_score=+1,setvar:tx.%{rule.id}-PROTOCOL_VIOLATION/MISSING_HEADER-%{matched_var_name}=%{matched_var}"
+ SecRule REQUEST_HEADERS:Accept "^$" \
+ "chain,phase:2,t:none,nolog,auditlog,msg:'Request Has an Empty Accept Header', severity:'2',id:'960021',tag:'PROTOCOL_VIOLATION/MISSING_HEADER'"
+ SecRule REQUEST_METHOD "!^OPTIONS$" "t:none,setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+5,setvar:tx.protocol_violation_score=+1,setvar:tx.%{rule.id}-PROTOCOL_VIOLATION/MISSING_HEADER-%{matched_var_name}=%{matched_var}"
+
+SecMarker END_ACCEPT_CHECK
+
+SecMarker BEGIN_UA_CHECK
+
+ SecRule &REQUEST_HEADERS:User-Agent "@eq 0" \
+ "skipAfter:END_UA_CHECK,phase:2,t:none,nolog,auditlog,msg:'Request Missing a User Agent Header',id:'960009',tag:'PROTOCOL_VIOLATION/MISSING_HEADER',severity:'5',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+5,setvar:tx.protocol_violation_score=+1,setvar:tx.%{rule.id}-PROTOCOL_VIOLATION/MISSING_HEADER-%{matched_var_name}=%{matched_var}"
+ SecRule REQUEST_HEADERS:User-Agent "^$" \
+ "t:none,nolog,auditlog,msg:'Request Missing a User Agent Header',id:'960009',tag:'PROTOCOL_VIOLATION/MISSING_HEADER',severity:'5',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+5,setvar:tx.protocol_violation_score=+1,setvar:tx.%{rule.id}-PROTOCOL_VIOLATION/MISSING_HEADER-%{matched_var_name}=%{matched_var}"
+
+SecMarker END_UA_CHECK
+
+
+SecRule &REQUEST_HEADERS:Content-Type "@eq 0" \
+ "chain,phase:2,t:none,nolog,auditlog,msg:'Request Containing Content, but Missing Content-Type header',id:'960904',severity:'5'"
+ SecRule REQUEST_HEADERS:Content-Length "!^0$" "t:none,setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+5,setvar:tx.protocol_violation_score=+1,setvar:tx.%{rule.id}-PROTOCOL_VIOLATION/MISSING_HEADER-%{matched_var_name}=%{matched_var}"
+
+
+# Check that the host header is not an IP address
+#
+SecRule REQUEST_HEADERS:Host "^[\d.:]+$" "phase:2,t:none,block,nolog,auditlog,status:400,msg:'Host header is a numeric IP address', severity:'2',id:'960017',tag:'PROTOCOL_VIOLATION/IP_HOST',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+5,setvar:tx.policy_score=+1,setvar:tx.%{rule.id}-POLICY/IP_HOST-%{matched_var_name}=%{matched_var}'"
+
+
+# Log a security event when the request is rejected by apache
+#
+# You must patch mod_unique_id for this to work correctly. See the following
+# mod-security-users mail-list post for the patch details -
+# http://article.gmane.org/gmane.comp.apache.mod-security.user/5808
+#
+SecRule RESPONSE_STATUS ^400$ "t:none,phase:5,chain,nolog,auditlog,pass,msg:'Invalid request',id:'960913',severity:'4'"
+ SecRule WEBSERVER_ERROR_LOG !ModSecurity "t:none,setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+5,setvar:tx.leakage_score=+1,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+
--- /dev/null
+# ---------------------------------------------------------------
+# Core ModSecurity Rule Set ver.2.0.3
+# Copyright (C) 2006-2009 Breach Security Inc. All rights reserved.
+#
+# The ModSecuirty Core Rule Set is distributed under GPL version 2
+# Please see the enclosed LICENCE file for full details.
+# ---------------------------------------------------------------
+
+
+
+# In most cases, you should expect a certain volume of each a request on your
+# website. For example, a request with 400 arguments, can be suspicious.
+# This file creates limitations on the request.
+# TODO Look at the rules in this file, and define the sizes you'd like to enforce.
+# Note that most of the rules are commented out by default.
+# Uncomment the rules you need
+#
+
+## -- Arguments limits --
+
+# Limit argument name length
+#SecRule ARGS_NAMES "@gt 100" "phase:2,t:none,t:length,block,nolog,auditlog,status:403,msg:'Argument name too long',id:'960209',severity:'4',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+5,setvar:tx.policy_score=+1,setvar:tx.%{rule.id}-POLICY/SIZE_LIMIT-%{matched_var_name}=%{matched_var}"
+
+# Limit value name length
+#SecRule ARGS "@gt 400" "phase:2,t:none,t:length,block,nolog,auditlog,status:403,msg:'Argument value too long',id:'960208',severity:'4',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+5,setvar:tx.policy_score=+1,setvar:tx.%{rule.id}-POLICY/SIZE_LIMIT-%{matched_var_name}=%{matched_var}"
+
+# Maximum number of arguments in request limited
+SecRule &ARGS "@gt 255" "phase:2,t:none,block,nolog,auditlog,status:403,msg:'Too many arguments in request',id:'960335',severity:'4',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+5,setvar:tx.policy_score=+1,setvar:tx.%{rule.id}-POLICY/SIZE_LIMIT-%{matched_var_name}=%{matched_var}"
+
+# Limit arguments total length
+#SecRule ARGS_COMBINED_SIZE "@gt 64000" "phase:2,t:none,block,nolog,auditlog,status:403,msg:'Total arguments size exceeded',id:'960341',severity:'4',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+5,setvar:tx.policy_score=+1,setvar:tx.%{rule.id}-POLICY/SIZE_LIMIT-%{matched_var_name}=%{matched_var}"
+
+
+## -- File upload limits --
+
+# Individual file size is limited
+#SecRule FILES_SIZES "@gt 1048576" "phase:2,t:none,block,nolog,auditlog,status:403,msg:'Uploaded file size too large',id:'960342',severity:'4',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+5,setvar:tx.policy_score=+1,setvar:tx.%{rule.id}-POLICY/SIZE_LIMIT-%{matched_var_name}=%{matched_var}"
+
+# Combined file size is limited
+#SecRule FILES_COMBINED_SIZE "@gt 1048576" "phase:2,t:none,block,nolog,auditlog,status:403,msg:'Total uploaded files size too large',id:'960343',severity:'4',setvar:tx.%{rule.id}-POLICY/SIZE_LIMIT-%{matched_var_name}=%{matched_var}"
+
+
+
+## -- Apache Limits --
+
+# These are Apache limit directives, but we are including them here because
+# they are often forgotten. If you already have these configured leave this
+# section entirely commented-out. Otherwise review the limits and uncomment
+# the directives.
+
+# Maximum size of the request body.
+#
+# NOTE If your application allows file uploads the value below will
+# most likely be way to low.
+#
+#LimitRequestBody 64000
+
+# Maximum number of request headers in a request.
+#
+#LimitRequestFields 32
+
+# Maximum size of request header lines.
+#
+#LimitRequestFieldSize 8000
+
+# Maximum size of the request line.
+#
+#LimitRequestLine 4000
+
--- /dev/null
+# ---------------------------------------------------------------
+# Core ModSecurity Rule Set ver.2.0.3
+# Copyright (C) 2006-2009 Breach Security Inc. All rights reserved.
+#
+# The ModSecuirty Core Rule Set is distributed under GPL version 2
+# Please see the enclosed LICENCE file for full details.
+# ---------------------------------------------------------------
+
+
+# HTTP policy enforcement
+# The HTTP policy enforcement rule set sets limitations on the use of HTTP by clients.
+
+# Few applications require the breadth and depth of the HTTP protocol. On the
+# other hand many attacks abuse valid but rare HTTP use patterns. Restricting
+# HTTP protocol usage is effective in therefore effective in blocking many
+# application layer attacks.
+#
+# TODO Many automation programs use non standard HTTP requests. While you may
+# want to allow some of those, try not to create exceptions only for the
+# automated program based on properties such as their source IP address or
+# the URL they access.
+#
+
+# allow request methods
+#
+# TODO Most applications only use GET, HEAD, and POST request
+# methods. If that is not the case with your environment, you are advised
+# to edit the line or uncomment it.
+#
+SecRule REQUEST_METHOD "!^((?:(?:POS|GE)T|OPTIONS|HEAD))$" "phase:2,t:none,block,nolog,auditlog,status:501,msg:'Method is not allowed by policy', severity:'2',id:'960032',tag:'POLICY/METHOD_NOT_ALLOWED',setvar:tx.anomaly_score=+5,setvar:tx.policy_score=+1,setvar:tx.%{rule.id}-POLICY/METHOD_NOT_ALLOWED-%{matched_var_name}=%{matched_var}"
+
+
+# Restrict which content-types we accept.
+#
+# TODO Most applications support only two types for request bodies
+# because that is all browsers know how to produce. If you are using
+# automated tools to talk to the application you may be using other
+# content types and would want to change the list of supported types.
+#
+# Note though that ModSecurity parses only three content types:
+# application/x-www-form-urlencoded, multipart/form-data request and
+# text/xml. The protection provided for any other type is inferior.
+#
+# TODO There are many applications that are not using multipart/form-data
+# types (typically only used for file uploads). This content type
+# can be disabled if not used.
+#
+# NOTE We allow any content type to be specified with GET or HEAD
+# because some tools incorrectly supply content type information
+# even when the body is not present. There is a rule further in
+# the file to prevent GET and HEAD requests to have bodies to we're
+# safe in that respect.
+#
+# NOTE Use of WebDAV requires "text/xml" content type.
+#
+# NOTE Philippe Bourcier (pbourcier AT citali DOT com) reports
+# applications running on the PocketPC and AvantGo platforms use
+# non-standard content types:
+#
+# M-Business iAnywhere application/x-mal-client-data
+# UltraLite iAnywhere application/octet-stream
+#
+SecRule REQUEST_METHOD "!^(?:GET|HEAD|PROPFIND|OPTIONS)$" "phase:2,chain,t:none,block,nolog,auditlog,status:501,msg:'Request content type is not allowed by policy',id:'960010',tag:'POLICY/ENCODING_NOT_ALLOWED',severity:'4'"
+ SecRule REQUEST_HEADERS:Content-Type "!(?:^(?:application\/x-www-form-urlencoded(?:;(?:\s?charset\s?=\s?[\w\d\-]{1,18})?)??$|multipart/form-data;)|text/xml)" "t:none,setvar:tx.anomaly_score=+5,setvar:tx.policy_score=+1,setvar:tx.%{rule.id}-POLICY/CONTENT_TYPE_NOT_ALLOWED-%{matched_var_name}=%{matched_var}"
+
+# Restrict protocol versions.
+#
+# TODO All modern browsers use HTTP version 1.1. For tight security, allow only
+# this version.
+#
+# NOTE Automation programs, both malicious and non malicious many times use
+# other HTTP versions. If you want to allow a specific automated program
+# to use your site, try to create a narrower expection and not allow any
+# client to send HTTP requests in a version lower than 1.1
+#
+SecRule REQUEST_PROTOCOL "!^HTTP/(0\.9|1\.[01])$" "phase:2,t:none,block,nolog,auditlog,status:505,msg:'HTTP protocol version is not allowed by policy', severity:'2',id:'960034',tag:'POLICY/PROTOCOL_NOT_ALLOWED',setvar:tx.anomaly_score=+5,setvar:tx.policy_score=+1,setvar:tx.%{rule.id}-POLICY/PROTOCOL_NOT_ALLOWED-%{matched_var_name}=%{matched_var}"
+
+# Restrict file extension
+#
+# TODO the list of file extensions below are virtually always considered unsafe
+# and not in use in any valid program. If your application uses one of
+# these extensions, please remove it from the list of blocked extensions.
+# You may need to use ModSecurity Core Rule Set Templates to do so, otherwise
+# comment the whole rule.
+#
+SecRule REQUEST_BASENAME "\.(?:c(?:o(?:nf(?:ig)?|m)|s(?:proj|r)?|dx|er|fg|md)|p(?:rinter|ass|db|ol|wd)|v(?:b(?:proj|s)?|sdisco)|a(?:s(?:ax?|cx)|xd)|d(?:bf?|at|ll|os)|i(?:d[acq]|n[ci])|ba(?:[kt]|ckup)|res(?:ources|x)|s(?:h?tm|ql|ys)|l(?:icx|nk|og)|\w{0,5}~|webinfo|ht[rw]|xs[dx]|key|mdb|old)$" "phase:2,t:none,t:urlDecodeUni,t:lowercase,block,nolog,auditlog,status:500,msg:'URL file extension is restricted by policy', severity:'2',id:'960035',tag:'POLICY/EXT_RESTRICTED',setvar:tx.anomaly_score=+5,setvar:tx.policy_score=+1,setvar:tx.%{rule.id}-POLICY/EXT_RESTRICTED-%{matched_var_name}=%{matched_var}"
+
+
+
+# Restricted HTTP headers
+#
+# TODO the list of HTTP headers below are considered unsafe for your environment.
+# If your application uses one of these directories, please remove it from
+# the list of blocked extensions. You may need to use ModSecurity Core Rule
+# Set Templates to do so, otherwise comment the whole rule.
+#
+SecRule REQUEST_HEADERS_NAMES "(?:(?:Proxy-Connectio|Lock-Toke)n|(?:Content-Rang|Translat)e|via|if)$" "phase:2,t:none,block,nolog,auditlog,status:500,msg:'HTTP header is restricted by policy',id:'960038',tag:'POLICY/HEADER_RESTRICTED',tag:'POLICY/FILES_NOT_ALLOWED',severity:'4',setvar:tx.anomaly_score=+5,setvar:tx.policy_score=+1,setvar:tx.%{rule.id}-POLICY/HEADERS_RESTRICTED-%{matched_var_name}=%{matched_var}"
+
+
+# Restricted Content Encodings
+#
+# ModSecurity does not support compressed content. Therefore, the following
+# action will be taken:
+# - Inbound compressed content will be denied
+# - Outbound compressed content will be logged once, to alert the user
+# Deny inbound compressed content
+SecRule REQUEST_HEADERS:Content-Encoding "!^Identity$" "phase:2,t:none,block,nolog,auditlog,status:501,msg:'ModSecurity does not support content encodings',id:'960902',severity:'4',setvar:tx.anomaly_score=+5,setvar:tx.policy_score=+1,setvar:tx.%{rule.id}-POLICY/ENCODING_RESTRICTED-%{matched_var_name}=%{matched_var}"
+# Log outbound compressed content (log once)
+SecRule RESPONSE_HEADERS:Content-Encoding "!^Identity$" "phase:4,t:none,pass,nolog,auditlog,msg:'ModSecurity does not support content encodings',id:'960903',severity:'4',chain,initcol:global=global"
+ SecRule &GLOBAL:alerted_960903_compression "@eq 0" "setvar:global.alerted_960903_compression,setvar:tx.anomaly_score=+5,setvar:tx.policy_score=+1,setvar:tx.%{rule.id}-POLICY/ENCODING_RESTRICTED-%{matched_var_name}=%{matched_var}"
+
--- /dev/null
+# ---------------------------------------------------------------
+# Core ModSecurity Rule Set ver.2.0.3
+# Copyright (C) 2006-2009 Breach Security Inc. All rights reserved.
+#
+# The ModSecuirty Core Rule Set is distributed under GPL version 2
+# Please see the enclosed LICENCE file for full details.
+# ---------------------------------------------------------------
+
+
+#
+# NOTE Bad robots detection is based on checking elements easily
+# controlled by the client. As such a determined attacked can bypass
+# those checks. Therefore bad robots detection should not be viewed as
+# a security mechanism against targeted attacks but rather as a nuisance
+# reduction, eliminating most of the random attacks against your web
+# site.
+
+SecRule REQUEST_HEADERS:User-Agent "(?:\b(?:m(?:ozilla\/4\.0 \(compatible\)|etis)|webtrends security analyzer|pmafind)\b|n(?:-stealth|sauditor|essus|ikto)|b(?:lack ?widow|rutus|ilbo)|(?:jaascoi|paro)s|webinspect|\.nasl)" \
+ "phase:2,t:none,t:lowercase,block,nolog,auditlog,status:404,msg:'Request Indicates a Security Scanner Scanned the Site',id:'990002',tag:'AUTOMATION/SECURITY_SCANNER',severity:'4',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+10,setvar:tx.automation_score=+1,setvar:tx.%{rule.id}-AUTOMATION/SECURITY_SCANNER-%{matched_var_name}=%{matched_var}"
+SecRule REQUEST_HEADERS_NAMES "\bacunetix-product\b" \
+ "phase:2,t:none,t:lowercase,block,nolog,auditlog,status:404,msg:'Request Indicates a Security Scanner Scanned the Site',id:'990901',tag:'AUTOMATION/SECURITY_SCANNER',severity:'4',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+10,setvar:tx.automation_score=+1,setvar:tx.%{rule.id}-AUTOMATION/SECURITY_SCANNER-%{matched_var_name}=%{matched_var}"
+SecRule REQUEST_FILENAME "^/nessustest" \
+ "phase:2,t:none,t:lowercase,block,nolog,auditlog,status:404,msg:'Request Indicates a Security Scanner Scanned the Site',id:'990902',tag:'AUTOMATION/SECURITY_SCANNER',severity:'4',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+10,setvar:tx.automation_score=+1,setvar:tx.%{rule.id}-AUTOMATION/SECURITY_SCANNER-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_HEADERS:User-Agent "(?:e(?:mail(?:(?:collec|harves|magne)t|(?: extracto|reape)r|siphon|wolf)|(?:collecto|irgrabbe)r|xtractorpro|o browse)|w(?:eb(?:emailextrac| by mail|altbot)|i(?:se(?:nut)?bot|ndows xp 5)|ordpress\/4\.01|3mir)|a(?:t(?:tache|hens)|utoemailspider|dsarobot| href=)|m(?:ailto:craftbot\@yahoo\.com|urzillo compatible)|p(?:(?:oe-component-clien|ackra)t|cbrowser|surf)|c(?:ompatible(?: ; msie|-)|hinaclaw)|f(?:astlwspider|loodgate)|t(?:uring machine|akeout)|g(?:rub-client|ecko\/25)|h(?:hjhj@yahoo|anzoweb)|d(?:igout4u|ts )agent|larbin@unspecified|(?:; widow|zeu)s|\bdatacha0s\b|user-agent:|rsync|shai|\\r)" \
+ "phase:2,t:none,t:lowercase,block,nolog,auditlog,status:404,msg:'Rogue web site crawler',id:'990012',tag:'AUTOMATION/MALICIOUS',severity:'4',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+10,setvar:tx.automation_score=+1,setvar:tx.%{rule.id}-AUTOMATION/MALICIOUS-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_HEADERS:User-Agent "(?:\b(?:(?:indy librar|snoop)y|microsoft url control|lynx)\b|mozilla\/2\.0 \(compatible; newt activex; win32\)|w(?:3mirror|get)|download demon|l(?:ibwww|wp)|p(?:avuk|erl)|big brother|autohttp|netants|eCatch|curl)" \
+ "chain,phase:2,t:none,t:lowercase,nolog,auditlog,msg:'Request Indicates an automated program explored the site',id:'990011',tag:'AUTOMATION/MISC',severity:'5'"
+SecRule REQUEST_HEADERS:User-Agent "!^apache.*perl" "t:none,t:lowercase,setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+5,setvar:tx.automation_score=+1,setvar:tx.%{rule.id}-AUTOMATION/MISC-%{matched_var_name}=%{matched_var}"
+
--- /dev/null
+# ---------------------------------------------------------------
+# Core ModSecurity Rule Set ver.2.0.3
+# Copyright (C) 2006-2009 Breach Security Inc. All rights reserved.
+#
+# The ModSecuirty Core Rule Set is distributed under GPL version 2
+# Please see the enclosed LICENCE file for full details.
+# ---------------------------------------------------------------
+
+
+#
+# TODO While some of the pattern groups such as command injection are usually
+# safe of false positives, other pattern groups such as SQL injection and
+# XSS may require setting exceptions and therefore are set to log only by
+# default.
+#
+# Start ModSecurity in monitoring only mode and check whether your
+# application requires exceptions for a specific URL, Pattern or source IP
+# before moving to blocking mode.
+
+#
+# Begin RegEx Checks for rules that could not use @pm prequalifications
+#
+
+#
+# HTTP Parameter Pollution
+#
+SecRule ARGS_NAMES ".*" \
+ "chain,phase:2,t:none,nolog,auditlog,pass,capture,setvar:'tx.arg_name_%{tx.0}=+1',msg:'Possible HTTP Parameter Pollution Attack: Multiple Parameters with the same Name.'"
+ SecRule TX:/ARG_NAME_*/ "@gt 1" "t:none,setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+
+SecRule ARGS "(?:(?:[\;\|\`]\W*?\bcc|\bwget)\b|\/cc(?:[\'\"\|\;\`\-\s]|$))" \
+ "phase:2,capture,t:none,t:htmlEntityDecode,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'950907',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+SecRule "REQUEST_HEADERS|XML:/*|!REQUEST_HEADERS:'/^(Cookie|Referer|X-OS-Prefs|User-Agent)$/'|REQUEST_COOKIES|REQUEST_COOKIES_NAMES" \
+ "(?:(?:[\;\|\`]\W*?\bcc|\bwget)\b|\/cc(?:[\'\"\|\;\`\-\s]|$))" \
+ "phase:2,capture,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'959907',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+
+#
+# Coldfusion injection
+#
+SecRule REQUEST_HEADERS|XML:/* "\bcf(?:usion_(?:d(?:bconnections_flush|ecrypt)|set(?:tings_refresh|odbcini)|getodbc(?:dsn|ini)|verifymail|encrypt)|_(?:(?:iscoldfusiondatasourc|getdatasourceusernam)e|setdatasource(?:password|username))|newinternal(?:adminsecurit|registr)y|admin_registry_(?:delete|set)|internaldebug)\b" \
+ "phase:2,capture,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'Injection of Undocumented ColdFusion Tags',id:'950008',tag:'WEB_ATTACK/CF_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/CF_INJECTION-%{matched_var_name}=%{matched_var}"
+
+
+#
+# LDAP injection
+#
+SecRule REQUEST_HEADERS|XML:/*|!REQUEST_HEADERS:Referer "(?:\((?:\W*?(?:objectc(?:ategory|lass)|homedirectory|[gu]idnumber|cn)\b\W*?=|[^\w\x80-\xFF]*?[\!\&\|][^\w\x80-\xFF]*?\()|\)[^\w\x80-\xFF]*?\([^\w\x80-\xFF]*?[\!\&\|])" \
+ "phase:2,capture,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'LDAP Injection Attack',id:'950010',tag:'WEB_ATTACK/LDAP_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/LDAP_INJECTION-%{matched_var_name}=%{matched_var}"
+
+
+#
+# SSI injection
+#
+SecRule REQUEST_HEADERS|XML:/* "<!--\W*?#\W*?(?:e(?:cho|xec)|printenv|include|cmd)" \
+ "phase:2,capture,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'SSI injection Attack',id:'950011',tag:'WEB_ATTACK/SSI_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/SSI_INJECTION-%{matched_var_name}=%{matched_var}"
+
+
+
+#
+# UPDF XSS
+#
+SecRule REQUEST_HEADERS|XML:/* "http:\/\/[\w\.]+?\/.*?\.pdf\b[^\x0d\x0a]*#" \
+ "phase:2,capture,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'Persistent Universal PDF XSS attack',id:'950018',tag:'WEB_ATTACK/UPDF_XSS',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/UPDF_XSS-%{matched_var_name}=%{matched_var}"
+
+
+#
+# Email Injection
+#
+SecRule REQUEST_HEADERS|XML:/* "[\n\r]\s*\b(?:to|b?cc)\b\s*:.*?\@" \
+ "phase:2,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:lowercase,capture,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Email Injection Attack',id:'950019',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/EMAIL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+
+# HTTP Request Smuggling
+#
+SecRule REQUEST_HEADERS:'/(Content-Length|Transfer-Encoding)/' "," "phase:2,t:none,block,nolog,auditlog,status:400,msg:'HTTP Request Smuggling Attack.',id:'950012',tag:'WEB_ATTACK/REQUEST_SMUGGLING',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/REQUEST_SMUGGLING-%{matched_var_name}=%{matched_var}"
+
+#
+# HTTP Response Splitting
+#
+SecRule REQUEST_URI|REQUEST_HEADERS|REQUEST_HEADERS_NAMES "%0[ad]" \
+ "phase:2,t:none,t:lowercase,capture,ctl:auditLogParts=+E,block,nolog,auditlog,status:400,msg:'HTTP Response Splitting Attack',id:'950910',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/RESPONSE_SPLITTING-%{matched_var_name}=%{matched_var}"
+SecRule REQUEST_URI|REQUEST_BODY|XML:/* "(?:\bhttp\/(?:0\.9|1\.[01])|<(?:html|meta)\b)" \
+ "phase:2,capture,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,status:400,msg:'HTTP Response Splitting Attack',id:'950911',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/RESPONSE_SPLITTING-%{matched_var_name}=%{matched_var}"
+
+
+#
+# RFI Attack
+#
+# See - http://tacticalwebappsec.blogspot.com/2009/06/generic-remote-file-inclusion-attack.html
+#
+SecRule ARGS "^(?:ht|f)tps?:\/\/([\d\.]+)" \
+ "phase:2,t:none,t:htmlEntityDecode,t:lowercase,capture,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'Remote File Inclusion Attack',id:'950117',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/RFI-%{matched_var_name}=%{matched_var}"
+
+SecRule ARGS "(?:\binclude\s*\([^)]*(ht|f)tps?:\/\/)" \
+ "phase:2,t:none,t:htmlEntityDecode,t:lowercase,capture,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'Remote File Inclusion Attack',id:'950118',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/RFI-%{matched_var_name}=%{matched_var}"
+
+SecRule ARGS "(?:ft|htt)ps?.*\?+$" \
+ "phase:2,t:none,t:htmlEntityDecode,t:lowercase,capture,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'Remote File Inclusion Attack',id:'950119',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/RFI-%{matched_var_name}=%{matched_var}"
+
+SecRule ARGS "^(?:ht|f)tps?://(.*)\?$" \
+ "chain,phase:2,t:none,t:htmlEntityDecode,t:lowercase,capture,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'Remote File Inclusion Attack',id:'950120',severity:'2'"
+ SecRule TX:1 "!@beginsWith %{request_headers.host}" "setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/RFI-%{matched_var_name}=%{matched_var}"
+
+#
+# Prequalify Request Matches
+#
+SecRule REQUEST_URI|REQUEST_BODY|REQUEST_HEADERS|XML:/*|!REQUEST_HEADERS:Referer "@pmFromFile modsecurity_40_generic_attacks.data" \
+ "phase:2,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:compressWhiteSpace,t:lowercase,nolog,pass,setvar:tx.pm_score=+1,setvar:tx.pm_data_%{matched_var_name}=%{matched_var}"
+
+SecRule TX:PM_SCORE "@eq 0" "phase:2,t:none,pass,skipAfter:END_PM_CHECK,nolog"
+
+#
+# Begin RegEx Checks for target locations that matched the prequalifier checks
+#
+ #
+ # Session fixation
+ #
+ SecRule TX:/PM_DATA_*/ "\.cookie\b.*?\;\W*?expires\W*?\=" \
+ "phase:2,t:none,capture,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Session Fixation',id:'950301',tag:'WEB_ATTACK/SESSION_FIXATION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/SSI_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/PM_DATA_*/ "\.cookie\b.*?\;\W*?domain\W*?\=" \
+ "phase:2,t:none,capture,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Session Fixation',id:'950300',tag:'WEB_ATTACK/SESSION_FIXATION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/SSI_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/PM_DATA_*/ "\bhttp-equiv\W+set-cookie\b" \
+ "phase:2,t:none,capture,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Session Fixation',id:'950302',tag:'WEB_ATTACK/SESSION_FIXATION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/SSI_INJECTION-%{matched_var_name}=%{matched_var}"
+
+
+
+ #
+ # File Injection
+ #
+ SecRule TX:/PM_DATA_*/ "\bboot\.ini\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'Remote File Access Attempt',id:'958711',tag:'WEB_ATTACK/FILE_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/FILE_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/PM_DATA_*/ "\/etc\/" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'Remote File Access Attempt',id:'958700',tag:'WEB_ATTACK/FILE_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/FILE_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/PM_DATA_*/ "\b\.htaccess\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'Remote File Access Attempt',id:'958706',tag:'WEB_ATTACK/FILE_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/FILE_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/PM_DATA_*/ "\b\.htpasswd\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'Remote File Access Attempt',id:'958708',tag:'WEB_ATTACK/FILE_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/FILE_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/PM_DATA_*/ "\bhttpd\.conf\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'Remote File Access Attempt',id:'958705',tag:'WEB_ATTACK/FILE_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/FILE_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/PM_DATA_*/ "\bglobal\.asa\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'Remote File Access Attempt',id:'958712',tag:'WEB_ATTACK/FILE_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/FILE_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/PM_DATA_*/ "\b\.wwwacl\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'Remote File Access Attempt',id:'958710',tag:'WEB_ATTACK/FILE_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/FILE_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/PM_DATA_*/ "\b\.www_acl\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'Remote File Access Attempt',id:'958709',tag:'WEB_ATTACK/FILE_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/FILE_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/PM_DATA_*/ "\b\.htgroup\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'Remote File Access Attempt',id:'958707',tag:'WEB_ATTACK/FILE_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/FILE_INJECTION-%{matched_var_name}=%{matched_var}"
+
+
+ #
+ # Command access
+ #
+ SecRule TX:/PM_DATA_*/ "\bnc\.exe\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Access',id:'958503',tag:'WEB_ATTACK/FILE_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/FILE_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "\bcmd\.exe\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Access',id:'958500',tag:'WEB_ATTACK/FILE_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/FILE_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "\bnet\.exe\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Access',id:'958504',tag:'WEB_ATTACK/FILE_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/FILE_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "\btelnet\.exe\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Access',id:'972022',tag:'WEB_ATTACK/FILE_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/FILE_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "\bwsh\.exe\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Access',id:'972032',tag:'WEB_ATTACK/FILE_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/FILE_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "\bftp\.exe\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Access',id:'958502',tag:'WEB_ATTACK/FILE_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/FILE_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "\bcmd\b\W*?\/c" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Access',id:'972030',tag:'WEB_ATTACK/FILE_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/FILE_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "\bnmap\.exe\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Access',id:'972029',tag:'WEB_ATTACK/FILE_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/FILE_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "\bwguest\.exe\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Access',id:'972031',tag:'WEB_ATTACK/FILE_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/FILE_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "\bcmd32\.exe\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Access',id:'958501',tag:'WEB_ATTACK/FILE_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/FILE_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "\brcmd\.exe\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Access',id:'958505',tag:'WEB_ATTACK/FILE_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/FILE_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ #
+ # Command injection
+ #
+ SecRule TX:/PM_DATA_*/ "\btclsh8\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958929',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "\bnmap\.exe\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958870',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "[\;\|\`]\W*?\bperl\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958873',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "[\;\|\`]\W*?\bcpp\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958928',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "[\;\|\`]\W*?\bpython\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958887',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "\bnc\.exe\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958828',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "[\;\|\`]\W*?\buname\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958898',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "[\;\|\`]\W*?\bpasswd\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958888',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "\bnet\b\W+?\blocalgroup\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958830',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "[\;\|\`]\W*?\bls\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958883',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "[\;\|\`]\W*?\bchown\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958877',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "\brcmd\.exe\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958832',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "[\;\|\`]\W*?\bnc\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958891',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "[\;\|\`]\W*?\brm\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958894',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "\bwsh\.exe\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958839',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "[\;\|\`]\W*?\bfinger\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958881',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "[\;\|\`]\W*?\bftp\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958890',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "[\;\|\`]\W*?\becho\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958872',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "[\;\|\`]\W*?\bxterm\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958879',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "[\;\|\`]\W*?\bkill\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958884',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "[\;\|\`]\W*?\bchsh\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958927',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "[\;\|\`]\W*?\bping\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958893',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "\bcd\b\W*?[\\/]" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958821',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "[\;\|\`]\W*?\btelnet\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958889',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "[\;\|\`]\W*?\bchmod\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958876',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "\bwguest\.exe\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958838',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "\bcmd\b\W*?\/c" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958871',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "\bnet\.exe\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958829',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "[\;\|\`]\W*?\bg\+\+" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958875',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "[\;\|\`]\W*?\bnasm\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958882',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "\bcmd32\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958824',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "[\;\|\`]\W*?\blsof\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958897',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "[\;\|\`]\W*?\bid\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958885',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "\btelnet\.exe\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958834',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "\btracert\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958926',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "[\;\|\`]\W*?\bnmap\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958896',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "\becho\b\W*?\by+\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958826',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "\btraceroute\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958837',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "\btftp\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958836',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "[\;\|\`]\W*?\bgcc\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958874',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "\bchmod.{0,40}?\+.{0,3}x" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958822',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "[\;\|\`]\W*?\bps\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958886',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "\bftp\.exe\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958827',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "[\;\|\`]\W*?\bcmd\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958892',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "\btclsh\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958833',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "[\;\|\`]\W*?\bmail\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958895',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "[\;\|\`]\W*?\bchgrp\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958878',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "\bcd\W*?\.\." \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958925',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+ SecRule TX:/PM_DATA_*/ "\bcmd\.exe\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'System Command Injection',id:'958823',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/COMMAND_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ #
+ # PHP injection
+ #
+
+ SecRule TX:/PM_DATA_*/ "<\?(?!xml)" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'PHP Injection Attack',id:'959151',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/PHP_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/PM_DATA_*/ "\bproc_open\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'PHP Injection Attack',id:'958976',tag:'WEB_ATTACK/PHP_INJECTION',tag:'WEB_ATTACK/HTTP_RESPONSSE_SPLITTING',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/PHP_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/PM_DATA_*/ "\bgzread\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'PHP Injection Attack',id:'958972',tag:'WEB_ATTACK/PHP_INJECTION',tag:'WEB_ATTACK/HTTP_RESPONSSE_SPLITTING',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/PHP_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/PM_DATA_*/ "\bftp_nb_fget\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'PHP Injection Attack',id:'958963',tag:'WEB_ATTACK/PHP_INJECTION',tag:'WEB_ATTACK/HTTP_RESPONSSE_SPLITTING',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/PHP_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/PM_DATA_*/ "\bftp_nb_get\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'PHP Injection Attack',id:'958965',tag:'WEB_ATTACK/PHP_INJECTION',tag:'WEB_ATTACK/HTTP_RESPONSSE_SPLITTING',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/PHP_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/PM_DATA_*/ "\bfscanf\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'PHP Injection Attack',id:'958959',tag:'WEB_ATTACK/PHP_INJECTION',tag:'WEB_ATTACK/HTTP_RESPONSSE_SPLITTING',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/PHP_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/PM_DATA_*/ "\breadfile\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'PHP Injection Attack',id:'958978',tag:'WEB_ATTACK/PHP_INJECTION',tag:'WEB_ATTACK/HTTP_RESPONSSE_SPLITTING',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/PHP_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/PM_DATA_*/ "\bfgetss\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'PHP Injection Attack',id:'958955',tag:'WEB_ATTACK/PHP_INJECTION',tag:'WEB_ATTACK/HTTP_RESPONSSE_SPLITTING',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/PHP_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/PM_DATA_*/ "\$_post\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'PHP Injection Attack',id:'958941',tag:'WEB_ATTACK/PHP_INJECTION',tag:'WEB_ATTACK/HTTP_RESPONSSE_SPLITTING',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/PHP_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/PM_DATA_*/ "\bsession_start\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'PHP Injection Attack',id:'958982',tag:'WEB_ATTACK/PHP_INJECTION',tag:'WEB_ATTACK/HTTP_RESPONSSE_SPLITTING',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/PHP_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/PM_DATA_*/ "\breaddir\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'PHP Injection Attack',id:'958977',tag:'WEB_ATTACK/PHP_INJECTION',tag:'WEB_ATTACK/HTTP_RESPONSSE_SPLITTING',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/PHP_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/PM_DATA_*/ "\bgzwrite\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'PHP Injection Attack',id:'958973',tag:'WEB_ATTACK/PHP_INJECTION',tag:'WEB_ATTACK/HTTP_RESPONSSE_SPLITTING',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/PHP_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/PM_DATA_*/ "\bscandir\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'PHP Injection Attack',id:'958981',tag:'WEB_ATTACK/PHP_INJECTION',tag:'WEB_ATTACK/HTTP_RESPONSSE_SPLITTING',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/PHP_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/PM_DATA_*/ "\bftp_get\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'PHP Injection Attack',id:'958962',tag:'WEB_ATTACK/PHP_INJECTION',tag:'WEB_ATTACK/HTTP_RESPONSSE_SPLITTING',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/PHP_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/PM_DATA_*/ "\bfread\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'PHP Injection Attack',id:'958958',tag:'WEB_ATTACK/PHP_INJECTION',tag:'WEB_ATTACK/HTTP_RESPONSSE_SPLITTING',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/PHP_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/PM_DATA_*/ "\breadgzfile\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'PHP Injection Attack',id:'958979',tag:'WEB_ATTACK/PHP_INJECTION',tag:'WEB_ATTACK/HTTP_RESPONSSE_SPLITTING',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/PHP_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/PM_DATA_*/ "\bftp_put\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'PHP Injection Attack',id:'958967',tag:'WEB_ATTACK/PHP_INJECTION',tag:'WEB_ATTACK/HTTP_RESPONSSE_SPLITTING',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/PHP_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/PM_DATA_*/ "\bfwrite\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'PHP Injection Attack',id:'958968',tag:'WEB_ATTACK/PHP_INJECTION',tag:'WEB_ATTACK/HTTP_RESPONSSE_SPLITTING',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/PHP_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/PM_DATA_*/ "\bgzencode\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'PHP Injection Attack',id:'958970',tag:'WEB_ATTACK/PHP_INJECTION',tag:'WEB_ATTACK/HTTP_RESPONSSE_SPLITTING',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/PHP_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/PM_DATA_*/ "\bfopen\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'PHP Injection Attack',id:'958957',tag:'WEB_ATTACK/PHP_INJECTION',tag:'WEB_ATTACK/HTTP_RESPONSSE_SPLITTING',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/PHP_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/PM_DATA_*/ "\$_session\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'PHP Injection Attack',id:'958942',tag:'WEB_ATTACK/PHP_INJECTION',tag:'WEB_ATTACK/HTTP_RESPONSSE_SPLITTING',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/PHP_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/PM_DATA_*/ "\bftp_nb_fput\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'PHP Injection Attack',id:'958964',tag:'WEB_ATTACK/PHP_INJECTION',tag:'WEB_ATTACK/HTTP_RESPONSSE_SPLITTING',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/PHP_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/PM_DATA_*/ "\bftp_fput\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'PHP Injection Attack',id:'958961',tag:'WEB_ATTACK/PHP_INJECTION',tag:'WEB_ATTACK/HTTP_RESPONSSE_SPLITTING',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/PHP_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/PM_DATA_*/ "\bgzcompress\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'PHP Injection Attack',id:'958969',tag:'WEB_ATTACK/PHP_INJECTION',tag:'WEB_ATTACK/HTTP_RESPONSSE_SPLITTING',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/PHP_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/PM_DATA_*/ "\bbzopen\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'PHP Injection Attack',id:'958946',tag:'WEB_ATTACK/PHP_INJECTION',tag:'WEB_ATTACK/HTTP_RESPONSSE_SPLITTING',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/PHP_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/PM_DATA_*/ "\bgzopen\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'PHP Injection Attack',id:'958971',tag:'WEB_ATTACK/PHP_INJECTION',tag:'WEB_ATTACK/HTTP_RESPONSSE_SPLITTING',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/PHP_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/PM_DATA_*/ "\bfgetc\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'PHP Injection Attack',id:'958953',tag:'WEB_ATTACK/PHP_INJECTION',tag:'WEB_ATTACK/HTTP_RESPONSSE_SPLITTING',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/PHP_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/PM_DATA_*/ "\bmove_uploaded_file\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'PHP Injection Attack',id:'958975',tag:'WEB_ATTACK/PHP_INJECTION',tag:'WEB_ATTACK/HTTP_RESPONSSE_SPLITTING',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/PHP_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/PM_DATA_*/ "\bftp_nb_put\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'PHP Injection Attack',id:'958966',tag:'WEB_ATTACK/PHP_INJECTION',tag:'WEB_ATTACK/HTTP_RESPONSSE_SPLITTING',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/PHP_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/PM_DATA_*/ "\$_get\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'PHP Injection Attack',id:'958940',tag:'WEB_ATTACK/PHP_INJECTION',tag:'WEB_ATTACK/HTTP_RESPONSSE_SPLITTING',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/PHP_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/PM_DATA_*/ "\bfgets\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'PHP Injection Attack',id:'958954',tag:'WEB_ATTACK/PHP_INJECTION',tag:'WEB_ATTACK/HTTP_RESPONSSE_SPLITTING',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/PHP_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/PM_DATA_*/ "\bftp_fget\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'PHP Injection Attack',id:'958960',tag:'WEB_ATTACK/PHP_INJECTION',tag:'WEB_ATTACK/HTTP_RESPONSSE_SPLITTING',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.web_attack_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/PHP_INJECTION-%{matched_var_name}=%{matched_var}"
+
+
+SecMarker END_PM_CHECK
--- /dev/null
+# ---------------------------------------------------------------
+# Core ModSecurity Rule Set ver.2.0.3
+# Copyright (C) 2006-2009 Breach Security Inc. All rights reserved.
+#
+# The ModSecuirty Core Rule Set is distributed under GPL version 2
+# Please see the enclosed LICENCE file for full details.
+# ---------------------------------------------------------------
+
+
+#
+# PHP-IDS rules (www.php-ids.org)
+# Converter.php Section
+# https://svn.php-ids.org/svn/trunk/lib/IDS/Converter.php
+#
+
+#
+# Make sure the value to normalize and monitor doesn't contain
+# possibilities for a regex DoS.
+# http://www.checkmarx.com/Upload/Documents/PDF/Checkmarx_OWASP_IL_2009_ReDoS.pdf
+#
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:(.{2,})\1{32,})|(?:[+=|\-@\s]{128,})" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Possible RegEx DoS Payload',tag:'WEB_ATTACK/EVASION',logdata:'%{TX.0}',severity:'4',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+10,setvar:tx.%{rule.id}-WEB_ATTACK/EVASION-%{matched_var_name}=%{matched_var}"
+
+#
+# Identify Comment Evasion Attempts
+#
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:\<!-|-->|\/\*|\*\/|\/\/\W*\w+\s*$)" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Comment Evasion Attempt',tag:'WEB_ATTACK/EVASION',logdata:'%{TX.0}',severity:'4',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+10,setvar:tx.%{rule.id}-WEB_ATTACK/EVASION-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:--[^-]*-)" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Comment Evasion Attempt',tag:'WEB_ATTACK/EVASION',logdata:'%{TX.0}',severity:'4',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+10,setvar:tx.%{rule.id}-WEB_ATTACK/EVASION-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:(?:<!)(?:(?:--(?:[^-]*(?:-[^-]+)*)--\s*)*)(?:>))" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Comment Evasion Attempt',tag:'WEB_ATTACK/EVASION',logdata:'%{TX.0}',severity:'4',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+10,setvar:tx.%{rule.id}-WEB_ATTACK/EVASION-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:(?:\/\*\/*[^\/\*]*)+\*\/)" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Comment Evasion Attempt',tag:'WEB_ATTACK/EVASION',logdata:'%{TX.0}',severity:'4',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+10,setvar:tx.%{rule.id}-WEB_ATTACK/EVASION-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:--[^-]*-)" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Comment Evasion Attempt',tag:'WEB_ATTACK/EVASION',logdata:'%{TX.0}',severity:'4',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+10,setvar:tx.%{rule.id}-WEB_ATTACK/EVASION-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(<\w+)\/+(\w+=?)" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Comment Evasion Attempt',tag:'WEB_ATTACK/EVASION',logdata:'%{TX.0}',severity:'4',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+10,setvar:tx.%{rule.id}-WEB_ATTACK/EVASION-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "[^\\\:]\/\/(.*)$" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Comment Evasion Attempt',tag:'WEB_ATTACK/EVASION',logdata:'%{TX.0}',severity:'4',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+10,setvar:tx.%{rule.id}-WEB_ATTACK/EVASION-%{matched_var_name}=%{matched_var}"
+
+#
+# Checks for common charcode patterns
+#
+# check if value matches typical charCode pattern
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:[\d+-=\/\* ]+(?:\s?,\s?[\d+-=\/\* ]+)){4,}" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Basic Charcode Pattern Found',tag:'WEB_ATTACK/EVASION',logdata:'%{TX.0}',severity:'4',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+10,setvar:tx.%{rule.id}-WEB_ATTACK/EVASION-%{matched_var_name}=%{matched_var}"
+
+#
+# check for octal charcode pattern
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:(?:[\\\]+\d+[ \t]*){8,})" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Octal Charcode Pattern Found',tag:'WEB_ATTACK/EVASION',logdata:'%{TX.0}',severity:'4',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+10,setvar:tx.%{rule.id}-WEB_ATTACK/EVASION-%{matched_var_name}=%{matched_var}"
+
+#
+# check for hexadecimal charcode pattern
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:(?:[\\\]+\w+\s*){8,})" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Hexadecimal Charcode Pattern Found',tag:'WEB_ATTACK/EVASION',logdata:'%{TX.0}',severity:'4',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+10,setvar:tx.%{rule.id}-WEB_ATTACK/EVASION-%{matched_var_name}=%{matched_var}"
+
+
--- /dev/null
+# ---------------------------------------------------------------
+# Core ModSecurity Rule Set ver.2.0.3
+# Copyright (C) 2006-2009 Breach Security Inc. All rights reserved.
+#
+# The ModSecuirty Core Rule Set is distributed under GPL version 2
+# Please see the enclosed LICENCE file for full details.
+# ---------------------------------------------------------------
+
+
+
+# PHP-IDS rules (www.php-ids.org)
+# https://svn.php-ids.org/svn/trunk/lib/IDS/default_filter.xml
+#
+# Attack Signatures
+#
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:\<\w*:?\s(?:[^\>]*)t(?!rong))|(?:\<scri)|(<\w+:\w+)" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects obfuscated script tags and XML wrapped HTML',id:'phpids-33',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:[^\w\s=]on(?!g\>)\w+[^=_+-]*=[^$]+(?:\W|\>)?)" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects possible event handlers',id:'phpids-32',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:[\w.-]+@[\w.-]+%(?:[01][\db-ce-f])+\w+:)" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects common mail header injections',id:'phpids-63',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:,\s*(?:alert|showmodaldialog|eval)\s*,)|(?::\s*eval\s*[^\s])|([^:\s\w,.\/?+-]\s*)?(?<![a-z\/_@])(\s*return\s*)?(?:(?:document\s*\.)?(?:.+\/)?(?:alert|eval|msgbox|showmodaldialog|prompt|write(?:ln)?|confirm|dialog|open))\s*(?(1)[^\w]|(?:\s*[^\s\w,.@\/+-]))|(?:java[\s\/]*\.[\s\/]*lang)|(?:\w\s*=\s*new\s+\w+)|(?:&\s*\w+\s*\)[^,])|(?:\+[\W\d]*new\s+\w+[\W\d]*\+)|(?:document\.\w)" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects very basic XSS probings',id:'phpids-21',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:\d\s*[|&]{2}\s*\w)|(?:[=(].+\?.+:)|(?:with\([^)]*\)\))|(?:\.\s*source\W)|(?:\?[^:=]+:[^;]+(;|$))" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects JavaScript with(), ternary operators and XML predicate attacks',id:'phpids-7',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:[^:\s\w]+\s*[^\w\/](href|protocol|host|hostname|pathname|hash|port|cookie)[^\w])" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects JavaScript cookie stealing and redirection attempts',id:'phpids-26',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "([^*:\s\w,.\/?+-]\s*)?(?<![a-z]\s)(?<![a-z\/_@>\-\|])(\s*return\s*)?(?:join|pop|push|reverse|reduce|concat|map|shift|sp?lice|sort|unshift)(?(1)[^\w%\"]|(?:\s*[^@\s\w%,.+\-]))" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects JavaScript array properties and methods',id:'phpids-18',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "([^*\s\w,.\/?+-]\s*)?(?<![a-mo-z]\s)(?<![a-z\/_@>\-\|])(\s*return\s*)?(?:alert|inputbox|showmodaldialog|infinity|isnan|isnull|msgbox|expression|prompt|write(?:ln)?|confirm|dialog|urn|(?:un)?eval|exec|execscript|tostring|status|execute|window|unescape|navigate|jquery|getscript|extend|prototype)(?(1)[^\w%\"]|(?:\s*[^@\s\w%\",.:\/+\-]))" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects possible includes and typical script methods',id:'phpids-16',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:\d\"\s+\"\s+\d)|(?:^admin\s*\"|(\/\*)+\"+\s?(?:--|#|\/\*|{)?)|(?:\"\s*or[\w\s-]+\s*[+<>=(),-]\s*[\d\"])|(?:\"\s*[^\w\s]?=\s*\")|(?:\"\W*[+=]+\W*\")|(?:\"\s*[!=|][\d\s!=+-]+.*[\"(].*$)|(?:\"\s*[!=|][\d\s!=]+.*\d+$)|(?:\"\s*like\W+[\w\"(])|(?:\sis\s*0\W)|(?:where\s[\s\w\.,-]+\s=)|(?:\"[<>~]+\")" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects basic SQL authentication bypass attempts 1/3',id:'phpids-44',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:from\s+information_schema\W)|(?:(?:(?:current_)?user|database|schema|connection_id)\s*\([^\)]*)|(?:\";?\s*(?:select|union|having)\s*[\"(\d])|(?:\wiif\s*\()|(?:exec\s+master\.)|(?:union select @)|(?:union[\w(\s]*select)|(?:select.*\w?user\()|(?:into[\s+]+(?:dump|out)file\s*\")" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects MSSQL code execution and information gathering attempts',id:'phpids-55',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:data:.*,)|(?:\w+\s*=\W*(?!https?)\w+:)|(jar:\w+:)|(=\s*\"?\s*vbs(?:ript)?:)|(language\s*=\s?\"?\s*vbs(?:ript)?)|on\w+\s*=\*\w+\-\"?" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects data: URL injections, VBS injections and common URI schemes',id:'phpids-27',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:select\s*\*\s*from)|((?:select|create|rename|truncate|load|alter|delete|update|insert|desc)\s*\(\s*space\s*\()" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects MySQL comment-/space-obfuscated injections',id:'phpids-57',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:\w+]?(?<!href)(?<!src)(?<!longdesc)(?<!returnurl)=(?:https?|ftp):)|(?:\{\s*\$\s*\{)" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects url injections and RFE attempts',id:'phpids-61',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "([^*:\s\w,.\/?+-]\s*)?(?<![a-z]\s)(?<![a-z_@>\|])(\s*return\s*)?(?:globalstorage|sessionstorage|postmessage|callee|constructor|content|domain|prototype|try|catch|top|call|apply|url|function|object|array|string|math|if|elseif|case|switch|regex|boolean|location|settimeout|setinterval|void|setexpression|namespace|while)(?(1)[^\w%\"]|(?:\s*[^@\s\w%\",.+\-]))" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects JavaScript language constructs',id:'phpids-20',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:(?:\/|\\\\)?\.+(\/|\\\\)(?:\.+)?)|(?:\w+\.exe\??\s)|(?:;\s*\w+\s*\/[\w*-]+\/)|(?:\d\.\dx\|)|(?:%(?:c0\.|af\.|5c\.))|(?:\/(?:%2e){2})" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects basic directory traversal',id:'phpids-10',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:=\s*\d*\.\d*\?\d*\.\d*)|(?:[|&]{2,}\s*\")|(?:!\d+\.\d*\?\")|(?:\/:[\w.]+,)|(?:=[\d\W\s]*\[[^]]+\])|(?:\?\w+:\w+)" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects common XSS concatenation patterns 2/2',id:'phpids-31',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:--[^\n]*$)|(?:\<!-|-->)|(?:[^*]\/\*|\*\/[^*])|(?:(?:[\W\d]#|--|{)$)|(?:\/{3,}.*$)|(?:<!\[\W)|(?:\]!>)" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects common comment types',id:'phpids-35',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:%c0%ae\/)|(?:(?:\/|\\\\)(home|conf|usr|etc|proc|opt|s?bin|local|dev|tmp|kern|[br]oot|sys|system|windows|winnt|program|%[a-z_-]{3,}%)(?:\/|\\\\))|(?:(?:\/|\\\\)inetpub|localstart\.asp|boot\.ini)" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects specific directory and path traversal',id:'phpids-11',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:\/\w+;?\s+(?:having|and|or|select))|(?:\d\s+group\s+by.+\()|(?:(?:;|#|--)\s*(?:drop|alter))|(?:(?:;|#|--)\s*(?:update|insert)\s*\w{2,})|(?:[^\w]SET\s*@\w+)|(?:(?:n?and|x?or|not |\|\||\&\&)\s+\w+[!=+]+[\s\d]*[\"=(])" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects chained SQL injection attempts 1/2',id:'phpids-48',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:(^|\W)const\s+[\w\-]+\s*=)|(?:(?:do|for|while)\s*\([^;]+;+\))|(?:(?:^|\W)on\w+\s*=[\w\W]*(?:on\w+|alert|eval|print|confirm|prompt))|(?:groups=\d+\(\w+\))|(?:(.)\1{128,})" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects basic XSS DoS attempts',id:'phpids-65',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:binding\s?=|moz-binding|behavior\s?=)|(?:[\s\/]style\s*=\s*[-\\\\])" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects bindings and behavior injections',id:'phpids-29',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:(select|;)\s+(?:benchmark|if|sleep)\s?\(\s?\(?\s?\w+)" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects SQL benchmark and sleep injection attempts including conditional queries',id:'phpids-50',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:\\\\x[01fe][\db-ce-f])|(?:%[01fe][\db-ce-f])|(?:&#[01fe][\db-ce-f])|(?:\\\\[01fe][\db-ce-f])|(?:&#x[01fe][\db-ce-f])" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects nullbytes and other dangerous characters',id:'phpids-39',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:\.pl\?\w+=\w?\|\w+;)|(?:\|\(\w+=\*)|(?:\*\s*\)+\s*;)" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects perl echo shellcode injection and LDAP vectors',id:'phpids-64',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:@[\w-]+\s*\()|(?:]\s*\(\s*[\"!]\s*\w)|(?:<[?%](?:php)?.*(?:[?%]>)?)|(?:;[\s\w|]*\$\w+\s*=)|(?:\$\w+\s*=(?:(?:\s*\$?\w+\s*[(;])|\s*\".*\"))|(?:;\s*\{\W*\w+\s*\()" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects code injection attempts 1/3',id:'phpids-58',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:\)\s*like\s*\()|(?:having\s+[\d\w\-\"]+\s*[(=<>~])|(?:if\s?\([\d\w]\s*[=<>~])" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects conditional SQL injection attempts',id:'phpids-41',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:etc\/\W*passwd)" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects etc/passwd inclusion attempts',id:'phpids-12',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "([^*:\s\w,.\/?+-]\s*)?(?<![a-z]\s)(?<![a-z\/_@>\-\|])(\s*return\s*)?(?:create(?:element|attribute|textnode)|[a-z]+events?|setattribute|getelement\w+|appendchild|createrange|createcontextualfragment|removenode|parentnode|decodeuricomponent|\wettimeout|option|useragent)(?(1)[^\w%\"]|(?:\s*[^@\s\w%\",.+\-]))" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects JavaScript DOM/miscellaneous properties and methods',id:'phpids-15',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:alter\s*\w+.*character\s+set\s+\w+)|(\";\s*waitfor\s+time\s+\")|(?:\";.*:\s*goto)" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects MySQL charset switch and MSSQL DoS attempts',id:'phpids-52',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:(?:[;]+|(<[?%](?:php)?)).*[^\w](?:echo|print|print_r|var_dump|[fp]open))|(?:;\s*rm\s+-\w+\s+)|(?:;.*{.*\$\w+\s*=)|(?:\$\w+\s*\[\]\s*=\s*)" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects code injection attempts 3/3',id:'phpids-60',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:merge.*using\s*\()|(execute\s*immediate\s*\")|(?:\W+\d*\s+having\s+\d)|(?:match\s*[\w(),+-]+\s*against\s*\()" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects MATCH AGAINST, MERGE, EXECUTE IMMEDIATE and HAVING injections',id:'phpids-56',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:union\s*(?:all|distinct|[(!@]*)?\s*[([]\s*select)|(?:\w+\s+like\s+\")|(?:like\s*\"\%)|(?:\"\s*like\W*[\"\d])|(?:\"\s*(?:n?and|x?or|not |\|\||\&\&)\s+[\s\w]+=\s*\w+\s*having)|(?:\"\s*\*\s*\w+\W+\")|(?:\"\s*[^?\w\s=.,;)(]+\s*[(@\"]*\s*\w+\W+\w)|(?:select\s*[\[\]()\s\w\.,-]+from)" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects basic SQL authentication bypass attempts 2/3',id:'phpids-45',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "([^*:\s\w,.\/?+-]\s*)?(?<![a-z]\s)(?<![a-z\/_@>\-\|])(\s*return\s*)?(?:set|atob|btoa|charat|charcodeat|charset|concat|crypto|frames|fromcharcode|indexof|lastindexof|match|navigator|toolbar|menubar|replace|regexp|slice|split|substr|substring|escape|\w+codeuri\w*)(?(1)[^\w%\"]|(?:\s*[^@\s\w%,.+\-]))" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects JavaScript string properties and methods',id:'phpids-19',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:function[^(]*\([^)]*\))|(?:(?:delete|void|throw|instanceof|new|typeof)\W+\w+\s*[([])|([)\]]\s*\.\s*\w+\s*=)|(?:\(\s*new\s+\w+\s*\)\.)" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects common function declarations and special JS operators',id:'phpids-62',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:select\s*pg_sleep)|(?:waitfor\s*delay\s?\"+\s?\d)|(?:;\s*shutdown\s*(?:;|--|#|\/\*|{))" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts',id:'phpids-54',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:\({2,}\+{2,}:{2,})|(?:\({2,}\+{2,}:+)|(?:\({3,}\++:{2,})|(?:\$\[!!!\])" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects unknown attack vectors based on PHPIDS Centrifuge detection',id:'phpids-67',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:[\s\/\"]+[-\w\/\\\\\*]+\s*=.+(?:\/\s*>))" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'finds attribute breaking injections including obfuscated attributes',id:'phpids-68',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:\"+.*[<=]\s*\"[^\"]+\")|(?:\"\w+\s*=)|(?:>\w=\/)|(?:#.+\)[\"\s]*>)|(?:\"\s*(?:src|style|on\w+)\s*=\s*\")|(?:[^\"]?\"[,;\s]+\w*[\[\(])" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'finds attribute breaking injections including whitespace attacks',id:'phpids-2',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "([^*:\s\w,.\/?+-]\s*)?(?<![a-z]\s)(?<![a-z\/_@>\|])(\s*return\s*)?(?:hash|name|href|navigateandfind|source|pathname|close|constructor|port|protocol|assign|replace|back|forward|document|ownerdocument|window|self|parent|frames|_?content|date|cookie|innerhtml|innertext|csstext+?|outerhtml|print|moveby|resizeto|createstylesheet|stylesheets)(?(1)[^\w%\"]|(?:\s*[^@\/\s\w%,.+\-]))" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects JavaScript object properties and methods',id:'phpids-17',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:\"[^\"]*[^-]?>)|(?:[^\w\s]\s*\/>)|(?:>\")" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'finds html breaking injections including whitespace attacks',id:'phpids-1',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:\+=\s*\(\s\")|(?:!+\s*[\d.,]+\w?\d*\s*\?)|(?:=\s*\[s*\])|(?:\"\s*\+\s*\")|(?:[^\s]\[\s*\d+\s*\]\s*[;+])|(?:\"\s*[&|]+\s*\")|(?:\/\s*\?\s*\")|(?:\/\s*\)\s*\[)|(?:\d\?.+:\d)|(?:]\s*\[\W*\w)|(?:[^\s]\s*=\s*\/)" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects common XSS concatenation patterns 1/2',id:'phpids-30',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:=\s*[$\w]\s*[\(\[])|(?:\(\s*(?:this|top|window|self|parent|_?content)\s*\))|(?:src\s*=s*(?:\w+:|\/\/))|(?:\w+\[(\"\w+\"|\w+\|\|))|(?:[\d\W]\|\|[\d\W]|\W=\w+,)|(?:\/\s*\+\s*[a-z\"])|(?:=\s*\$[^([]*\()|(?:=\s*\(\s*\")" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects obfuscated JavaScript script injections',id:'phpids-25',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:firefoxurl:\w+\|)|(?:(?:file|res|telnet|nntp|news|mailto|chrome)\s*:\s*[\%&#xu\/]+)|(wyciwyg|firefoxurl\s*:\s*\/\s*\/)" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects IE firefoxurl injections, cache poisoning attempts and local file inclusion/execution',id:'phpids-28',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:\"\s*(?:#|--|{))|(?:\/\*!\s?\d+)|(?:ch(?:a)?r\s*\(\s*\d)|(?:(?:(n?and|x?or|not)\s+|\|\||\&\&)\s*\w+\()" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects MySQL comments, conditions and ch(a)r injections',id:'phpids-40',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:\w+script:|@import[^\w]|;base64|base64,)|(?:\w+\s*\([\w\s]+,[\w\s]+,[\w\s]+,[\w\s]+,[\w\s]+,[\w\s]+\))" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects possible includes and packed functions',id:'phpids-14',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:(?:msgbox|eval)\s*\+|(?:language\s*=\*vbscript))" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'finds basic VBScript injection attempts',id:'phpids-69',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:(?:[;]+|(<[?%](?:php)?)).*(?:define|eval|file_get_contents|include|require|require_once|set|shell_exec|phpinfo|system|passthru|preg_\w+|execute)\s*[\"(@])" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects code injection attempts 2/3',id:'phpids-59',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:\*\/from)|(?:\+\s*\d+\s*\+\s*@)|(?:\w\"\s*(?:[-+=|@]+\s*)+[\d(])|(?:coalesce\s*\(|@@\w+\s*[^\w\s])|(?:\W!+\"\w)|(?:\";\s*(?:if|while|begin))|(?:\"[\s\d]+=\s*\d)|(?:order\s+by\s+if\w*\s*\()" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects chained SQL injection attempts 2/2',id:'phpids-49',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:[\".]script\s*\()|(?:\$\$?\s*\(\s*[\w\"])|(?:\/[\w\s]+\/\.)|(?:=\s*\/\w+\/\s*\.)|(?:(?:this|window|top|parent|frames|self|content)\[\s*[(,\"]*\s*[\w\$])|(?:,\s*new\s+\w+\s*[,;)])" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects basic obfuscated JavaScript script injections',id:'phpids-24',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:procedure\s+analyse\s*\()|(?:;\s*(declare|open)\s+[\w-]+)|(?:create\s+(procedure|function)\s*\w+\s*\(\s*\)\s*-)|(?:declare[^\w]+[@#]\s*\w+)|(exec\s*\(\s*@)" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects MySQL and PostgreSQL stored procedure/function injections',id:'phpids-53',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:[^\s]\s*=\s*script)|(?:\.\s*constructor)|(?:default\s+xml\s+namespace\s*=)|(?:\/\s*\+[^+]+\s*\+\s*\/)" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects advanced XSS probings via Script(), RexExp, constructors and XML namespaces',id:'phpids-22',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:\\\\x(?:23|27|3d))|(?:^.?\"$)|(?:^.*\\\\\".+(?<!\\\\)\")|(?:(?:^[\"\\\\]*(?:[\d\"]+|[^\"]+\"))+\s*(?:n?and|x?or|not|\|\||\&\&)\s*[\w\"[+&!@(),.-])|(?:[^\w\s]\w+\s*[|-]\s*\"\s*\w)|(?:@\w+\s+(and|or)\s*[\"\d]+)|(?:@[\w-]+\s(and|or)\s*[^\w\s])|(?:[^\w\s:]\s*\d\W+[^\w\s]\s*\".)" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects classic SQL injection probings 1/2',id:'phpids-42',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:(?:n?and|x?or|not |\|\||\&\&)\s+[\s\w+]+(?:regexp\s*\(|sounds\s+like\s*\"|[=\d]+x))|(\"\s*\d\s*(?:--|#))|(?:\"[\%&<>^=]+\d\s*(=|or))|(?:\"\W+[\w+-]+\s*=\s*\d\W+\")|(?:\"\s*is\s*\d.+\"?\w)|(?:\"\|?[\w-]{3,}[^\w\s.,]+\")|(?:\"\s*is\s*[\d.]+\s*\W.*\")" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects basic SQL authentication bypass attempts 3/3',id:'phpids-46',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:\.\s*\w+\W*=)|(?:\W\s*(?:location|document)\s*\W[^({[;]+[({[;])|(?:\(\w+\?[:\w]+\))|(?:\w{2,}\s*=\s*\d+[^&\w]\w+)|(?:\]\s*\(\s*\w+)" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects JavaScript location/document property access and window access obfuscation',id:'phpids-23',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:%u(?:ff|00|e\d)\w\w)|(?:(?:%(?:e\w|c[^3\W]|))(?:%\w\w)(?:%\w\w)?)" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects halfwidth/fullwidth encoded unicode HTML breaking attempts',id:'phpids-13',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:with\s*\(\s*.+\s*\)\s*\w+\s*\()|(?:(?:do|while|for)\s*\([^)]*\)\s*\{)|(?:\/[\w\s]*\[\W*\w)" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects self contained xss via with(), common loops and regex to string conversion',id:'phpids-6',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:^>[\w\s]*<\/?\w{2,}>)" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'finds unquoted attribute breaking injections',id:'phpids-3',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:\\\\u00[a-f0-9]{2})|(?:\\\\x0*[a-f0-9]{2})|(?:\\\\\d{2,3})" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects the IE octal, hex and unicode entities',id:'phpids-9',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:create\s+function\s+\w+\s+returns)|(?:;\s*(?:select|create|rename|truncate|load|alter|delete|update|insert|desc)\s*[\[(]?\w{2,})" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects MySQL UDF injection and other data/structure manipulation attempts',id:'phpids-51',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:^\s*[;>\"]\s*(?:union|select|create|rename|truncate|load|alter|delete|update|insert|desc))|(?:(?:select|create|rename|truncate|load|alter|delete|update|insert|desc)\s+(?:concat|char|load_file)\s?\(?)|(?:end\s*\);)|(\"\s+regexp\W)" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects concatenated basic SQL injection and SQLLFI attempts',id:'phpids-47',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:\([\w\s]+\([\w\s]+\)[\w\s]+\))|(?:(?<!(?:mozilla\/\d\.\d\s))\([^)[]+\[[^\]]+\][^)]*\))|(?:[^\s!][{([][^({[]+[{([][^}\])]+[}\])][\s+\",\d]*[}\])])|(?:\"\)?\]\W*\[)|(?:=\s*[^\s:;]+\s*[{([][^}\])]+[}\])];)" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects self-executing JavaScript functions',id:'phpids-8',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:\<[\/]?(?:[i]?frame|applet|isindex|marquee|keygen|script|audio|video|input|button|textarea|style|base|body|meta|link|object|embed|param|plaintext|xm\w+|image|im(?:g|port)))" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects possibly malicious html elements including some attributes',id:'phpids-38',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:[+\/]\s*name[\W\d]*[)+])|(?:;\W*url\s*=)|(?:[^\w\s\/?:>]\s*(?:location|referrer|name)\s*[^\/\w\s-])" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects url-, name-, JSON, and referrer-contained payload attacks',id:'phpids-4',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:\<\/\w+\s\w+)|(?:@(?:cc_on|set)[\s@,\"=])" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects attributes in closing tags and conditional compilation tokens',id:'phpids-34',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:\<base\s+)|(?:<!(?:element|entity|\[CDATA))" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects base href injections and XML entity injections',id:'phpids-37',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:\"\s*\*.+(?:or|id)\W*\"\d)|(?:\^\")|(?:^[\w\s\"-]+(?<=and\s)(?<=or\s)(?<=xor\s)(?<=nand\s)(?<=not\s)(?<=\|\|)(?<=\&\&)\w+\()|(?:\"[\s\d]*[^\w\s]+\W*\d\W*.*[\"\d])|(?:\"\s*[^\w\s?]+\s*[^\w\s]+\s*\")|(?:\"\s*[^\w\s]+\s*[\W\d].*(?:#|--))|(?:\".*\*\s*\d)|(?:\"\s*or\s[\w-]+.*\d)|(?:[()*<>%+-][\w-]+[^\w\s]+\"[^,])" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects classic SQL injection probings 2/2',id:'phpids-43',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_BODY|REQUEST_URI_RAW|ARGS|ARGS_NAMES|FILES|FILES_NAMES|XML:/* "(?:\W\s*hash\s*[^\w\s-])|(?:\w+=\W*[^,]*,[^\s(]\s*\()|(?:\?\"[^\s\"]\":)|(?:(?<!\/)__[a-z]+__)|(?:(?:^|[\s)\]\}])(?:s|g)etter\s*=)" "phase:2,capture,multiMatch,t:none,t:urlDecodeUni,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Detects hash-contained xss payload attacks, setter usage and property overloading',id:'phpids-5',tag:'WEB_ATTACK',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}"
+
--- /dev/null
+# ---------------------------------------------------------------
+# Core ModSecurity Rule Set ver.2.0.3
+# Copyright (C) 2006-2009 Breach Security Inc. All rights reserved.
+#
+# The ModSecuirty Core Rule Set is distributed under GPL version 2
+# Please see the enclosed LICENCE file for full details.
+# ---------------------------------------------------------------
+
+
+#
+# TODO While some of the pattern groups such as command injection are usually
+# safe of false positives, other pattern groups such as SQL injection and
+# XSS may require setting exceptions and therefore are set to log only by
+# default.
+#
+# Start ModSecurity in monitoring only mode and check whether your
+# application requires exceptions for a specific URL, Pattern or source IP
+# before moving to blocking mode.
+
+#
+# Prequalify Request Matches
+#
+SecRule REQUEST_URI|REQUEST_BODY|REQUEST_HEADERS|XML:/*|!REQUEST_HEADERS:Referer "@pmFromFile modsecurity_41_sql_injection_attacks.data" \
+ "phase:2,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:lowercase,t:replaceComments,t:compressWhiteSpace,nolog,pass,setvar:tx.pm_sqli_score=+1,setvar:tx.pm_sqli_data_%{matched_var_name}=%{matched_var}"
+
+SecRule TX:PM_SQLI_SCORE "@eq 0" "phase:2,t:none,pass,skipAfter:END_SQL_INJECTION_PM,nolog"
+
+#
+# Begin RegEx Checks for target locations that matched the prequalifier checks
+#
+
+ #
+ # Blind SQL injection
+ #
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bsys\.user_catalog\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959517',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bconstraint_type\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959503',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bsys\.user_tables\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959521',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bmsysqueries\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959509',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bmsysaces\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959506',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\@\@spid\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959500',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bcharindex\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959502',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bsys\.all_tables\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959515',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bsys\.user_constraints\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959518',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bselect\b.{0,40}buser\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959514',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bwaitfor\b\W*?\bdelay\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959538',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bmsyscolumns\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959507',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bselect\b.{0,40}\bsubstring\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959513',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bsys\.user_triggers\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959522',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\blocate\W+\(" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959505',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bmsysrelationships\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959510',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bsys\.user_tab_columns\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959520',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\battnotnull\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959501',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bmsysobjects\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959508',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bsys\.tab\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959516',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bselect\b.{0,40}\bascii\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959512',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bsys\.user_views\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959523',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\binstr\W+\(" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959504',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bsys\.user_objects\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959519',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bmysql\.user\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959511',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\buser_tables\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959918',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\buser_tab_columns\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959536',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\ball_objects\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959900',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bpg_class\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959910',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bsyscat\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959524',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bsubstr\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959912',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bsysdba\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959527',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\btextpos\W+\(" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959533',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\battrelid\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959901',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bpg_attribute\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959909',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\buser_password\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959917',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\buser_users\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959919',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\buser_constraints\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959534',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bxtype\W+\bchar\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959537',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\buser_objects\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959916',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bcolumn_name\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959904',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bsysfilegroups\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959528',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bsyscolumns\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959525',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bsubstring\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959913',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bsysobjects\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959530',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bobject_type\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959908',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bobject_id\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959906',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bsysibm\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959529',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\buser_ind_columns\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959535',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bcolumn_id\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959903',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bsysprocesses\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959531',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bmb_users\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959905',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\btable_name\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959914',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bsystables\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959532',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bobject_name\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959907',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\brownum\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959911',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bsysconstraints\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959526',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\batttypid\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959902',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\buser_group\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'959915',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+
+
+ #
+ # SQL injection
+ #
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\'msdasql\'" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959020',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bxp_makecab\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959058',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\butl_http\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959049',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bselect\b.*?\bto_number\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959035',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\btbcreator\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959046',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bsp_execute\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959038',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bgroup\b.*\bbyb.{1,100}?\bhaving\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959011',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bselect\b.*?\bdata_type\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959027',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bxp_cmdshell\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959052',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bisnull\b\W*?\(" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959018',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bopenrowset\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959023',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bunion\b.{1,100}?\bselect\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959047',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\binsert\b\W*?\binto\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959015',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bselect\b.{1,100}?\bcount\b.{1,100}?\bfrom\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959032',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\;\W*?\bdrop\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959001',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bxp_execresultset\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959055',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bxp_regaddmultistring\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959060',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\@\@version\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959004',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bxp_regread\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959065',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bloadb\W*?\bdata\b.*\binfile\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959019',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bselect\b.*?\bto_char\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959034',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bdbms_java\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959009',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bxp_enumdsn\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959054',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bxp_availablemedia\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959051',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bsp_prepare\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959042',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bnvarchar\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959021',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\butl_file\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959048',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\binner\b\W*?\bjoin\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959014',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bxp_regdeletekey\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959061',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bxp_loginconfig\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959057',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bsp_sqlexec\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959043',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bprint\b\W*?\@\@" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959024',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bselect\b.{1,100}?\bfrom\b.{1,100}?\bwhere\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959031',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bxp_regremovemultistring\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959066',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bxp_regwrite\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959067',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bvarchar\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959050',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bintob\W*?\bdumpfile\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959016',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bifb\W*?\(\W*?\bbenchmark\W*?\(" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959012',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bopenquery\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959022',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bselect\b.{1,100}?\blength\b.{1,100}?\bfrom\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959033',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bcastb\W*?\(" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959006',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bdelete\b\W*?\bfrom\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959075',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bxp_regdeletevalue\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959062',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\'sqloledb\'" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959003',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bsp_addextendedproc\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959037',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bsql_longvarchar\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959044',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bxp_dirtree\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959053',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bxp_regenumkeys\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959063',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bselect\b.*?\bdump\b.*\bfrom\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959028',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bxp_filelist\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959056',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\'sa\'" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959026',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bxp_terminate\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959068',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bsp_executesql\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959039',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bifnull\b\W*?\(" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959013',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bintob\W*?\boutfile\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959017',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bsp_makewebtask\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959040',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\'dbo\'" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959010',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bsql_variant\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959045',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bxp_ntsec\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959059',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\;\W*?\bshutdown\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959002',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bselect\b.*?\binstr\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959029',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bautonomous_transaction\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959005',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bdba_users\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959007',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bsp_oacreate\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959041',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bselect\b.{1,100}?\btop\b.{1,100}?\bfrom\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959036',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/^PM_SQLI_DATA_*/ "\bxp_regenumvalues\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'959064',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+
+SecMarker END_SQL_INJECTION_PM
+
+SecRule REQUEST_HEADERS|XML:/*|!REQUEST_HEADERS:Referer "\b(\d+) ?= ?\1\b|[\'\"](\w+)[\'\"] ?= ?[\'\"]\2\b" \
+ "phase:2,capture,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'950001',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_HEADERS|XML:/*|!REQUEST_HEADERS:Referer|!REQUEST_HEADERS:via "\b(?:coalesce\b|root\@)" \
+ "phase:2,capture,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,id:'950908',tag:'WEB_ATTACK/SQL_INJECTION',setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+SecMarker BEGIN_SQL_INJECTION_WEAK
+SecRule &TX:/SQL_INJECTION/ "@eq 0" "phase:2,t:none,nolog,pass,skipAfter:END_SQL_INJECTION_WEAK"
+
+ SecRule TX:/SQL_INJECTION/ "\b(?:rel(?:(?:nam|typ)e|kind)|a(?:ttn(?:ame|um)|scii)|c(?:o(?:nver|un)t|ha?r)|s(?:hutdown|elect)|to_(?:numbe|cha)r|u(?:pdate|nion)|d(?:elete|rop)|group\b\W*\bby|having|insert|length|where)\b" \
+ "phase:2,chain,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'SQL Injection Attack',id:'950001',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2'"
+ SecRule MATCHED_VAR "(?:[\\\(\)\%#]|--)" \
+ "t:none,setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+ SecRule TX:/SQL_INJECTION/ "\b(?:benchmark|encode)\b" \
+ "phase:2,chain,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Blind SQL Injection Attack',id:'950007',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2'"
+ SecRule MATCHED_VAR "(?:[\\\(\)\%#]|--)" "t:none,setvar:'tx.msg=%{rule.msg}',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+SecMarker END_SQL_INJECTION_WEAK
--- /dev/null
+# ---------------------------------------------------------------
+# Core ModSecurity Rule Set ver.2.0.3
+# Copyright (C) 2006-2009 Breach Security Inc. All rights reserved.
+#
+# The ModSecuirty Core Rule Set is distributed under GPL version 2
+# Please see the enclosed LICENCE file for full details.
+# ---------------------------------------------------------------
+
+
+#
+# XSS
+#
+SecRule REQUEST_URI|REQUEST_BODY|REQUEST_HEADERS|XML:/*|!REQUEST_HEADERS:Referer "@pm jscript onsubmit copyparentfolder javascript meta onchange onmove onkeydown onkeyup activexobject onerror onmouseup ecmascript bexpression onmouseover vbscript: <![cdata[ http: .innerhtml settimeout shell: onabort asfunction: onkeypress onmousedown onclick .fromcharcode background-image: .cookie x-javascript ondragdrop onblur mocha: javascript: onfocus lowsrc getparentfolder onresize @import alert script onselect onmouseout application onmousemove background .execscript livescript: vbscript getspecialfolder .addimport iframe onunload createtextrange <input onload" \
+ "phase:2,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:compressWhiteSpace,t:lowercase,pass,nolog,skip:1,setvar:tx.pm_xss_data_%{matched_var_name}=%{matched_var}"
+SecAction phase:2,pass,nolog,skipAfter:END_XSS_REGEX
+
+
+SecRule TX:/^PM_XSS_DATA_*/ "\bgetparentfolder\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958016',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\bonmousedown\b\W*?\=" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958414',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\bsrc\b\W*?\bshell:" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958032',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\bmocha:" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958026',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\bonabort\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958027',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\blowsrc\b\W*?\bhttp:" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958054',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\bonmouseup\b\W*?\=" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958418',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\bstyle\b\W*\=.*bexpression\b\W*\(" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958034',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\bhref\b\W*?\bshell:" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958019',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\bcreatetextrange\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958013',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\bondragdrop\b\W*?\=" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958408',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\bcopyparentfolder\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958012',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\bonunload\b\W*?\=" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958423',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\.execscript\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958002',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\bgetspecialfolder\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958017',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "<body\b.*?\bonload\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958007',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\burl\b\W*?\bvbscript:" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958047',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\bonkeydown\b\W*?\=" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958410',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\bonmousemove\b\W*?\=" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958415',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\blivescript:" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958022',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\bonblur\b\W*?\=" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958405',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\bonmove\b\W*?\=" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958419',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\bsettimeout\b\W*?\(" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958028',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\< ?iframe" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958057',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\bsrc\b\W*?\bjavascript:" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958031',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "<body\b.*?\bbackground\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958006',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\bsrc\b\W*?\bvbscript:" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958033',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\btype\b\W*?\btext\b\W*?\becmascript\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958038',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\bonfocus\b\W*?\=" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958409',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\.cookie\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958001',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\<\!\[cdata\[" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958005',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\bonerror\b\W*?\=" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958404',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\blowsrc\b\W*?\bjavascript:" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958023',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\bactivexobject\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958010',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\bonkeypress\b\W*?\=" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958411',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\bonsubmit\b\W*?\=" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958422',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\btype\b\W*?\bapplication\b\W*?\bx-javascript\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958036',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\.addimport\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958000',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\bhref\b\W*?\bjavascript:" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958018',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\bonchange\b\W*?\=" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958406',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\btype\b\W*?\btext\b\W*?\bjscript\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958040',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\balert\b\W*?\(" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958052',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\btype\b\W*?\bapplication\b\W*?\bx-vbscript\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958037',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\< ?meta\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958049',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\bsrc\b\W*?\bhttp:" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958030',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\btype\b\W*?\btext\b\W*?\bvbscript\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958041',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\bonmouseout\b\W*?\=" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958416',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\blowsrc\b\W*?\bshell:" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958024',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\basfunction:" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958059',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\bonmouseover\b\W*?\=" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958417',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\bhref\b\W*?\bvbscript:" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958020',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\burl\b\W*?\bjavascript:" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958045',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\.innerhtml\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958004',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\bonselect\b\W*?\=" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958421',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\@import\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958009',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\blowsrc\b\W*?\bvbscript:" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958025',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\bonload\b\W*?\=" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958413',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\< ?script\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958051',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\bonresize\b\W*?\=" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958420',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\bonclick\b\W*?\=" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958407',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\biframe\b.{0,100}?\bsrc\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958056',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\bbackground-image:" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958011',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\bonkeyup\b\W*?\=" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958412',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "<input\b.*?\btype\b\W*?\bimage\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958008',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\burl\b\W*?\bshell:" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958046',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\btype\b\W*?\btext\b\W*?\bjavascript\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958039',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule TX:/^PM_XSS_DATA_*/ "\.fromcharcode\b" \
+ "phase:2,capture,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,msg:'Cross-site Scripting (XSS) Attack',id:'958003',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+
+SecMarker END_XSS_REGEX
+
+# Detect tags that are the most common direct HTML injection points.
+#
+# <a href=javascript:...
+# <applet src="..." type=text/html>
+# <applet src="data:text/html;base64,PHNjcmlwdD5hbGVydCgvWFNTLyk8L3NjcmlwdD4" type=text/html>
+# <base href=javascript:...
+# <base href=... // change base URL to something else to exploit relative filename inclusion
+# <bgsound src=javascript:...
+# <body background=javascript:...
+# <body onload=...
+# <embed src=http://www.example.com/flash.swf allowScriptAccess=always
+# <embed src="data:image/svg+xml;
+# <frameset><frame src="javascript:..."></frameset>
+# <iframe src=javascript:...
+# <img src=x onerror=...
+# <input type=image src=javascript:...
+# <layer src=...
+# <link href="javascript:..." rel="stylesheet" type="text/css"
+# <link href="http://www.example.com/xss.css" rel="stylesheet" type="text/css"
+# <meta http-equiv="refresh" content="0;url=javascript:..."
+# <meta http-equiv="refresh" content="0;url=http://;javascript:..." // evasion
+# <meta http-equiv="link" rel=stylesheet content="http://www.example.com/xss.css">
+# <meta http-equiv="Set-Cookie" content="NEW_COOKIE_VALUE">
+# <object data=http://www.example.com
+# <object type=text/x-scriptlet data=...
+# <object type=application/x-shockwave-flash data=xss.swf>
+# <object classid=clsid:ae24fdae-03c6-11d1-8b76-0080c744f389><param name=url value=javascript:...></object> // not verified
+# <script>...</script>
+# <script src=http://www.example.com/xss.js></script> - TODO add another rule for this
+# <script src="data:text/javascript,alert(1)"></script>
+# <script src="data:text/javascript;base64,PHNjcmlwdD5hbGVydChkb2N1bWVudC5jb29raWUpOzwvc2NyaXB0Pg=="></script>
+# <style>STYLE</style>
+# <style type=text/css>STYLE</style>
+# <style type=text/javascript>alert('xss')</style>
+# <table background=javascript:...
+# <td background=javascript:
+#
+#
+# NOTES
+#
+# - Reference the WASC Script Mapping Project - http://projects.webappsec.org/Script-Mapping
+#
+# - Not using closing brackets because they are not needed for the
+# attacks to succeed. The following seems to work in FF: <body/s/onload=...
+#
+# - Also, browsers sometimes tend to translate < into >, in order to "repair"
+# what they think was a mistake made by the programmer/template designer.
+#
+# - Browsers are flexible when it comes to what they accept as separator between
+# tag names and attributes. The following is commonly used in payloads: <img/src=...
+# A better example: <BODY onload!#$%&()*~+-_.,:;?@[/|\]^=alert("XSS")>
+#
+# - Grave accents are sometimes used as an evasion technique (as a replacement for quotes),
+# but I don't believe we need to look for quotes anywhere.
+#
+# - Links do not have to be fully qualified. For example, the following works:
+# <script src="//ha.ckers.org/.j">
+#
+SecRule REQUEST_URI_RAW|REQUEST_BODY "<(a|abbr|acronym|address|applet|area|audioscope|b|base|basefront|bdo|bgsound|big|blackface|blink|blockquote|body|bq|br|button|caption|center|cite|code|col|colgroup|comment|dd|del|dfn|dir|div|dl|dt|em|embed|fieldset|fn|font|form|frame|frameset|h1|head|hr|html|i|iframe|ilayer|img|input|ins|isindex|kdb|keygen|label|layer|legend|li|limittext|link|listing|map|marquee|menu|meta|multicol|nobr|noembed|noframes|noscript|nosmartquotes|object|ol|optgroup|option|p|param|plaintext|pre|q|rt|ruby|s|samp|script|select|server|shadow|sidebar|small|spacer|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|ul|var|wbr|xml|xmp)\W" \
+ "phase:2,t:none,t:jsDecode,t:lowercase,block,nolog,auditlog,msg:'XSS Attack Detected',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_URI_RAW|REQUEST_BODY "\ballowscriptaccess\b|\brel\b\W*?=" \
+ "phase:2,t:none,t:lowercase,block,nolog,auditlog,msg:'XSS Attack Detected',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+20,setvar:tx.anomaly_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+# TODO Would evasion such as null and whitespace work here?
+#
+SecRule REQUEST_URI_RAW|REQUEST_BODY "application/x-shockwave-flash|image/svg\+xml|text/(css|html|ecmascript|javascript|vbscript|x-(javascript|scriptlet|vbscript))" \
+ "phase:2,t:none,t:htmlEntityDecode,t:lowercase,block,nolog,auditlog,msg:'XSS Attack Detected',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+20,setvar:tx.anomaly_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+# Detect event handler names
+#
+# <body onload=...>
+# <img src=x onerror=...>
+#
+SecRule REQUEST_URI_RAW|REQUEST_BODY "\bon(abort|blur|change|click|dblclick|dragdrop|error|\
+focus|keydown|keypress|keyup|load|mousedown|mousemove|mouseout\
+|mouseover|mouseup|move|readystatechange|reset|resize|select|submit|unload)\b\W*?=" \
+ "phase:2,t:none,t:lowercase,block,nolog,auditlog,msg:'XSS Attack Detected',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+# Detect usage of common URI attributes (e.g. src)
+#
+# <a href="javascript:...">Link</a>
+# <base href="javascript:...">
+# <bgsound src="javascript:...">
+# <body background="javascript:...">
+# <frameset><frame src="javascript:..."></frameset>
+# <iframe src=javascript:...>
+# <img dynsrc=javascript:...>
+# <img lowsrc=javascript:...>
+# <img src=javascript:...>
+# <input type=image src=javascript:...>
+#
+SecRule REQUEST_URI_RAW|REQUEST_BODY "\b(background|dynsrc|href|lowsrc|src)\b\W*?=" \
+ "phase:2,t:none,t:lowercase,block,nolog,auditlog,msg:'XSS Attack Detected',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+# As above, but try to catch the other bit that is necessary to execute the attack.
+#
+# <meta http-equiv="refresh" content="0;url=data:text/html;base64,PHNjcmlwdD5hbGVydCgnWFNTJyk8L3NjcmlwdD4K">
+# <img src=jaVaScrIpt:...>
+# <img src=a;avascript:...> (not evasion)
+# <img src="jav ascript:..."> (embedded tab; null byte, other whitespace characters work too)
+# <img src="jaa	ascript:..."> (the combination of the above two)
+#
+# NOTES
+#
+# - htmlEntityDecode needs to be applied because this content appears in HTML
+# attributes, so it's not evasion.
+#
+# TODO I think asfunction only work in HTML files handled by Flash. Needs verifying.
+#
+SecRule REQUEST_URI_RAW|REQUEST_BODY "(asfunction|javascript|vbscript|data|mocha|livescript):" \
+ "phase:2,t:none,t:htmlEntityDecode,t:lowercase,t:removeNulls,t:removeWhitespace,block,nolog,auditlog,msg:'XSS Attack Detected',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+# Detect attempts to use the style attribute, which works with any tag in at
+# least one major browser.
+#
+# <div style="background-image: url(javascript:...)">
+#
+SecRule REQUEST_URI_RAW|REQUEST_BODY "\bstyle\b\W*?=" \
+ "phase:2,t:none,t:lowercase,block,nolog,auditlog,msg:'XSS Attack Detected',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+# -- JavaScript fragments --
+#
+# TODO Need more fragments.
+#
+# TODO What about JavaScript code hidden behind CSS?
+#
+# TODO There is a bunch of DOM-manipulation stuff that we want to cover here.
+#
+# alert(String.fromCharCode(88,83,83)
+# - window.name
+# - document.cookie
+# - document.location
+# - document.write
+# - document.styleSheets[0].addImport('yourstylesheet.css', 2);
+# - window.execScript("alert('test');", "JavaScript");
+# - document.body.innerHTML = ''
+# - newObj = new ActiveXObject(servername.typename[, location])
+# - A list of keywords here: http://technet.microsoft.com/en-gb/library/bb794749.aspx
+# - setTimeout("alert('xss')", 1000)
+# - xmlHttp.onreadystatechange=function() {}
+# - eval(location.hash.substr(1)) // used to execute JavaScript in fragment identifier
+#
+# NOTES:
+#
+# - JavaScript evasion:
+#
+# http://www.thespanner.co.uk/2007/09/19/javascript-for-hackers/
+# http://www.thespanner.co.uk/2007/12/12/javascript-for-hackers-part-2/
+#
+SecRule REQUEST_URI_RAW|REQUEST_BODY "(fromcharcode|alert|eval)\s*\(" \
+ "phase:2,t:none,t:htmlEntityDecode,t:jsDecode,t:lowercase,block,nolog,auditlog,msg:'XSS Attack Detected',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+20,setvar:tx.anomaly_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+
+# -- CSS attack fragments --
+
+# <div style="background-image: url(javascript:...)">
+# <div style="background-image: url(javascript:alert('XSS'))"> // not used
+# <div style="width: expression(...);">
+# <img style="x:expression(document.write(1))">
+# <xss style="behavior: url(http://ha.ckers.org/xss.htc);">
+# - <style>li {list-style-image: url("javascript:alert('XSS')");}</style><ul><li>xss
+# <style>@import url(...);</style>
+# -moz-binding:url(...)
+# background:url("javascript:...")
+# </xss/*-*/style=xss:e/**/xpression(alert(1337))> (comment evasion) // TODO Verify
+# <style type="text/css">@i\m\p\o\rt url(...);</style> (css escaping evasion)
+# <li style="behavior:url(hilite.htc)">xss
+#
+# Interesting CSS injection: http://www.thespanner.co.uk/2007/11/26/ultimate-xss-css-injection/
+#
+# Ref: http://crawlmsdn.microsoft.com/en-us/library/ms531078(vs.85).aspx (DHTML Behaviors)
+#
+# Note: A lot of these seem to need to use the "javascript:" prefix to execute anything. Requiring
+# a match of that before we do anything might help us reduce the FP rate.
+#
+SecRule REQUEST_URI_RAW|REQUEST_BODY "background\b\W*?:\W*?url|background-image\b\W*?:|behavior\b\W*?:\W*?url|-moz-binding\b|@import\b|expression\b\W*?\(" \
+ "phase:2,t:none,t:htmlEntityDecode,t:cssDecode,t:replaceComments,t:removeWhitespace,t:lowercase,block,nolog,auditlog,msg:'XSS Attack Detected',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+# <C><![CDATA[<IMG SRC="javas]]><![CDATA[cript:alert('XSS');">]]></C> // evasion
+SecRule REQUEST_URI_RAW|REQUEST_BODY "<!\[cdata\[|\]\]>" \
+ "phase:2,t:none,t:lowercase,block,nolog,auditlog,msg:'XSS Attack Detected',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+
+# -- Misc --
+
+# alert('xss')
+# alert("xss")
+# alert(/xss/)
+# <xss>
+#
+SecRule REQUEST_URI_RAW|REQUEST_BODY "[/'\"<]xss[/'\">]" \
+ "phase:2,t:none,t:lowercase,block,nolog,auditlog,msg:'XSS Attack Detected',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+# String.fromCharCode(88,83,83)
+#
+SecRule REQUEST_URI_RAW|REQUEST_BODY "(88,83,83)" \
+ "phase:2,t:none,t:lowercase,block,nolog,auditlog,msg:'XSS Attack Detected',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+# '';!--"<XSS>=&{()}
+#
+SecRule REQUEST_URI_RAW|REQUEST_BODY "'';!--\"<xss>=&{()}" \
+ "phase:2,t:none,t:lowercase,block,nolog,auditlog,msg:'XSS Attack Detected',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+# Handle &{alert('xss')} which is supposed to work in Netscape 4.
+#
+SecRule REQUEST_URI_RAW|REQUEST_BODY "&{" \
+ "phase:2,t:none,block,nolog,auditlog,msg:'XSS Attack Detected',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+
+# <!DOCTYPE html [
+# <!ENTITY inject "<script>alert(1)</script>">
+# ]>
+# <html xmlns="http://www.w3.org/1999/xhtml">
+# <head>
+# <title>Test</title>
+# </head>
+#
+# <body>
+# &inject;
+# </body>
+# </html>
+#
+SecRule REQUEST_URI_RAW|REQUEST_BODY "<!(doctype|entity)" \
+ "phase:2,t:none,t:lowercase,block,nolog,auditlog,msg:'XSS Attack Detected',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+#
+# XSS Filters from IE8
+# http://blogs.technet.com/srd/archive/2008/08/18/ie-8-xss-filter-architecture-implementation.aspx
+#
+SecRule REQUEST_URI_RAW|REQUEST_BODY "(?i:<style.*?>.*?((@[i\\\\])|(([:=]|(&[#\(\)=]x?0*((58)|(3A)|(61)|(3D));?)).*?([(\\\\]|(&[#()=]x?0*((40)|(28)|(92)|(5C));?)))))" "phase:2,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:compressWhiteSpace,t:lowercase,block,nolog,auditlog,msg:'IE XSS Filters - Attack Detected',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+20,setvar:tx.anomaly_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_URI_RAW|REQUEST_BODY "(?i:[ /+\t\"\'`]style[ /+\t]*?=.*?([:=]|(&[#()=]x?0*((58)|(3A)|(61)|(3D));?)).*?([(\\\\]|(&[#()=]x?0*((40)|(28)|(92)|(5C));?)))" "phase:2,t:none,t:lowercase,block,nolog,auditlog,msg:'IE XSS Filters - Attack Detected',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+20,setvar:tx.anomaly_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_URI_RAW|REQUEST_BODY "(?i:<object[ /+\t].*?((type)|(codetype)|(classid)|(code)|(data))[ /+\t]*=)" "phase:2,t:none,t:lowercase,block,nolog,auditlog,msg:'IE XSS Filters - Attack Detected',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+20,setvar:tx.anomaly_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_URI_RAW|REQUEST_BODY "(?i:<applet[ /+\t].*?code[ /+\t]*=)" "phase:2,t:none,t:lowercase,block,nolog,auditlog,msg:'IE XSS Filters - Attack Detected',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+20,setvar:tx.anomaly_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_URI_RAW|REQUEST_BODY "(?i:[ /+\t\"\'`]datasrc[ +\t]*?=.)" "phase:2,t:none,t:lowercase,block,nolog,auditlog,msg:'IE XSS Filters - Attack Detected',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+20,setvar:tx.anomaly_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_URI_RAW|REQUEST_BODY "(?i:<base[ /+\t].*?href[ /+\t]*=)" "phase:2,t:none,t:lowercase,block,nolog,auditlog,msg:'IE XSS Filters - Attack Detected',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+20,setvar:tx.anomaly_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_URI_RAW|REQUEST_BODY "(?i:<link[ /+\t].*?href[ /+\t]*=)" "phase:2,t:none,t:lowercase,block,nolog,auditlog,msg:'IE XSS Filters - Attack Detected',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+20,setvar:tx.anomaly_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_URI_RAW|REQUEST_BODY "(?i:<meta[ /+\t].*?http-equiv[ /+\t]*=)" "phase:2,t:none,t:lowercase,block,nolog,auditlog,msg:'IE XSS Filters - Attack Detected',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+20,setvar:tx.anomaly_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_URI_RAW|REQUEST_BODY "(?i:<\?import[ /+\t].*?implementation[ /+\t]*=)" "phase:2,t:none,t:lowercase,block,nolog,auditlog,msg:'IE XSS Filters - Attack Detected',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+20,setvar:tx.anomaly_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_URI_RAW|REQUEST_BODY "(?i:<embed[ /+\t].*?SRC.*?=)" "phase:2,t:none,t:lowercase,block,nolog,auditlog,msg:'IE XSS Filters - Attack Detected',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+20,setvar:tx.anomaly_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_URI_RAW|REQUEST_BODY "(?i:[ /+\t\"\'`]on\c\c\c+?[ +\t]*?=.)" "phase:2,t:none,t:lowercase,block,nolog,auditlog,msg:'IE XSS Filters - Attack Detected',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+20,setvar:tx.anomaly_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_URI_RAW|REQUEST_BODY "(?i:<.*[:]vmlframe.*?[ /+\t]*?src[ /+\t]*=)" "phase:2,t:none,t:lowercase,block,nolog,auditlog,msg:'IE XSS Filters - Attack Detected',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+20,setvar:tx.anomaly_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_URI_RAW|REQUEST_BODY "(?i:<[i]?frame.*?[ /+\t]*?src[ /+\t]*=)" "phase:2,t:none,t:lowercase,block,nolog,auditlog,msg:'IE XSS Filters - Attack Detected',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+20,setvar:tx.anomaly_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_URI_RAW|REQUEST_BODY "(?i:<isindex[ /+\t>])" "phase:2,t:none,t:lowercase,block,nolog,auditlog,msg:'IE XSS Filters - Attack Detected',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+20,setvar:tx.anomaly_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_URI_RAW|REQUEST_BODY "(?i:<form.*?>)" "phase:2,t:none,t:lowercase,block,nolog,auditlog,msg:'IE XSS Filters - Attack Detected',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+20,setvar:tx.anomaly_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_URI_RAW|REQUEST_BODY "(?i:<script.*?[ /+\t]*?src[ /+\t]*=)" "phase:2,t:none,t:lowercase,block,nolog,auditlog,msg:'IE XSS Filters - Attack Detected',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+20,setvar:tx.anomaly_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_URI_RAW|REQUEST_BODY "(?i:<script.*?>)" "phase:2,t:none,t:lowercase,block,nolog,auditlog,msg:'IE XSS Filters - Attack Detected',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+20,setvar:tx.anomaly_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_URI_RAW|REQUEST_BODY "(?i:[\"\'][ ]*(([^a-z0-9~_:\'\" ])|(in)).*?(((l|(\\\\u006C))(o|(\\\\u006F))(c|(\\\\u0063))(a|(\\\\u0061))(t|(\\\\u0074))(i|(\\\\u0069))(o|(\\\\u006F))(n|(\\\\u006E)))|((n|(\\\\u006E))(a|(\\\\u0061))(m|(\\\\u006D))(e|(\\\\u0065)))).*?=)" "phase:2,t:none,t:lowercase,block,nolog,auditlog,msg:'IE XSS Filters - Attack Detected',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+20,setvar:tx.anomaly_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_URI_RAW|REQUEST_BODY "(?i:[\"\'][ ]*(([^a-z0-9~_:\'\" ])|(in)).+?(([.].+?)|([\[].*?[\]].*?))=)" "phase:2,t:none,t:lowercase,block,nolog,auditlog,msg:'IE XSS Filters - Attack Detected',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+20,setvar:tx.anomaly_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_URI_RAW|REQUEST_BODY "(?i:[\"\'].*?\[ ]*(([^a-z0-9~_:\'\" ])|(in)).+?\()" "phase:2,t:none,t:lowercase,block,nolog,auditlog,msg:'IE XSS Filters - Attack Detected',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+20,setvar:tx.anomaly_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
+SecRule REQUEST_URI_RAW|REQUEST_BODY "(?i:[\"\'][ ]*(([^a-z0-9~_:\'\" ])|(in)).+?\(.*?\))" "phase:2,t:none,t:lowercase,block,nolog,auditlog,msg:'IE XSS Filters - Attack Detected',setvar:'tx.msg=%{rule.msg}',setvar:tx.xss_score=+20,setvar:tx.anomaly_score=+1,setvar:tx.%{rule.id}-WEB_ATTACK/XSS-%{matched_var_name}=%{matched_var}"
+
--- /dev/null
+# ---------------------------------------------------------------
+# Core ModSecurity Rule Set ver.2.0.3
+# Copyright (C) 2006-2009 Breach Security Inc. All rights reserved.
+#
+# The ModSecuirty Core Rule Set is distributed under GPL version 2
+# Please see the enclosed LICENCE file for full details.
+# ---------------------------------------------------------------
+
+
+# The trojan access detection rules detects access to known Trojans already
+# installed on a server. Uploading of Trojans is part of the Anti-Virus rules
+# and uses external Anti Virus program when uploading files.
+#
+# Detection of Trojans access is especially important in a hosting environment
+# where the actual Trojan upload may be done through valid methods and not
+# through hacking.
+# --
+#
+# NOTE Trojans detection is based on checking elements controlled by the client.
+# A determined attacked can bypass those checks. We are working on
+# enchaining the checks so it would require a major change in the Trojan
+# to overcome.
+#
+# NOTE We found out that Trojan horses are not detected easily by Anti-Virus
+# software when uploading as the signature set of AV software is not tuned
+# for this purpose. We are working on adding signature tuned to detect
+# Trojans upload to file uploading inspection.
+#
+
+SecRule REQUEST_HEADERS_NAMES "x_(?:key|file)\b" "phase:2,t:none,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,status:404,msg:'Backdoor access',id:'950110',tag:'MALICIOUS_SOFTWARE/TROJAN',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.trojan_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-MALICIOUS_SOFTWARE/TROJAN-%{matched_var_name}=%{matched_var}"
+SecRule REQUEST_FILENAME "root\.exe" \
+ "phase:2,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,status:404,msg:'Backdoor access',id:'950921',tag:'MALICIOUS_SOFTWARE/TROJAN',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.trojan_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-MALICIOUS_SOFTWARE/TROJAN-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "(?:<title>[^<]*?(?:\b(?:(?:c(?:ehennemden|gi-telnet)|gamma web shell)\b|imhabirligi phpftp)|(?:r(?:emote explorer|57shell)|aventis klasvayv|zehir)\b|\.::(?:news remote php shell injection::\.| rhtools\b)|ph(?:p(?:(?: commander|-terminal)\b|remoteview)|vayv)|myshell)|\b(?:(?:(?:microsoft windows\b.{0,10}?\bversion\b.{0,20}?\(c\) copyright 1985-.{0,10}?\bmicrosoft corp|ntdaddy v1\.9 - obzerve \| fux0r inc)\.|(?:www\.sanalteror\.org - indexer and read|haxplor)er|php(?:konsole| shell)|c99shell)\b|aventgrup\.<br>|drwxr))" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:404,msg:'Backdoor access',id:'950922',tag:'MALICIOUS_SOFTWARE/TROJAN',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.trojan_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-MALICIOUS_SOFTWARE/TROJAN-%{matched_var_name}=%{matched_var}"
--- /dev/null
+SecRule REQUEST_FILENAME "!@pmFromFile modsecurity_46_et_sql_injection.data" "phase:2,nolog,pass,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,skipAfter:END_ET_SQLI_RULES"
+
+# (sid 2007508) ET WEB_SPECIFIC 20/20 Auto Gallery SQL Injection Attempt -- vehiclelistings.asp vehicleID
+SecRule REQUEST_URI_RAW "(?i:\/vehiclelistings\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007508,rev:3,msg:'ET WEB_SPECIFIC 20/20 Auto Gallery SQL Injection Attempt -- vehiclelistings.asp vehicleID ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_2020_Auto_gallery'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:vehicleID/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC 20/20 Auto Gallery SQL Injection Attempt -- vehiclelistings.asp vehicleID ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007514) ET WEB_SPECIFIC 20/20 Auto Gallery SQL Injection Attempt -- vehiclelistings.asp categoryID_list
+SecRule REQUEST_URI_RAW "(?i:\/vehiclelistings\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007514,rev:3,msg:'ET WEB_SPECIFIC 20/20 Auto Gallery SQL Injection Attempt -- vehiclelistings.asp categoryID_list ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_2020_Auto_gallery'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:categoryID_list/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC 20/20 Auto Gallery SQL Injection Attempt -- vehiclelistings.asp categoryID_list ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007520) ET WEB_SPECIFIC 20/20 Auto Gallery SQL Injection Attempt -- vehiclelistings.asp sale_type
+SecRule REQUEST_URI_RAW "(?i:\/vehiclelistings\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007520,rev:3,msg:'ET WEB_SPECIFIC 20/20 Auto Gallery SQL Injection Attempt -- vehiclelistings.asp sale_type ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_2020_Auto_gallery'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:sale_type/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC 20/20 Auto Gallery SQL Injection Attempt -- vehiclelistings.asp sale_type ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007526) ET WEB_SPECIFIC 20/20 Auto Gallery SQL Injection Attempt -- vehiclelistings.asp stock_number
+SecRule REQUEST_URI_RAW "(?i:\/vehiclelistings\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007526,rev:3,msg:'ET WEB_SPECIFIC 20/20 Auto Gallery SQL Injection Attempt -- vehiclelistings.asp stock_number ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_2020_Auto_gallery'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:stock_number/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC 20/20 Auto Gallery SQL Injection Attempt -- vehiclelistings.asp stock_number ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007532) ET WEB_SPECIFIC 20/20 Auto Gallery SQL Injection Attempt -- vehiclelistings.asp manufacturer
+SecRule REQUEST_URI_RAW "(?i:\/vehiclelistings\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007532,rev:3,msg:'ET WEB_SPECIFIC 20/20 Auto Gallery SQL Injection Attempt -- vehiclelistings.asp manufacturer ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_2020_Auto_gallery'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:manufacturer/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC 20/20 Auto Gallery SQL Injection Attempt -- vehiclelistings.asp manufacturer ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007538) ET WEB_SPECIFIC 20/20 Auto Gallery SQL Injection Attempt -- vehiclelistings.asp model
+SecRule REQUEST_URI_RAW "(?i:\/vehiclelistings\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007538,rev:3,msg:'ET WEB_SPECIFIC 20/20 Auto Gallery SQL Injection Attempt -- vehiclelistings.asp model ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_2020_Auto_gallery'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:model/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC 20/20 Auto Gallery SQL Injection Attempt -- vehiclelistings.asp model ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007544) ET WEB_SPECIFIC 20/20 Auto Gallery SQL Injection Attempt -- vehiclelistings.asp vehicleID
+SecRule REQUEST_URI_RAW "(?i:\/vehiclelistings\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007544,rev:3,msg:'ET WEB_SPECIFIC 20/20 Auto Gallery SQL Injection Attempt -- vehiclelistings.asp vehicleID ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_2020_Auto_gallery'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:vehicleID/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC 20/20 Auto Gallery SQL Injection Attempt -- vehiclelistings.asp vehicleID ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007550) ET WEB_SPECIFIC 20/20 Auto Gallery SQL Injection Attempt -- vehiclelistings.asp year
+SecRule REQUEST_URI_RAW "(?i:\/vehiclelistings\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007550,rev:3,msg:'ET WEB_SPECIFIC 20/20 Auto Gallery SQL Injection Attempt -- vehiclelistings.asp year ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_2020_Auto_gallery'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:year/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC 20/20 Auto Gallery SQL Injection Attempt -- vehiclelistings.asp year ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007556) ET WEB_SPECIFIC 20/20 Auto Gallery SQL Injection Attempt -- vehiclelistings.asp vin
+SecRule REQUEST_URI_RAW "(?i:\/vehiclelistings\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007556,rev:3,msg:'ET WEB_SPECIFIC 20/20 Auto Gallery SQL Injection Attempt -- vehiclelistings.asp vin ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_2020_Auto_gallery'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:vin/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC 20/20 Auto Gallery SQL Injection Attempt -- vehiclelistings.asp vin ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007562) ET WEB_SPECIFIC 20/20 Auto Gallery SQL Injection Attempt -- vehiclelistings.asp listing_price
+SecRule REQUEST_URI_RAW "(?i:\/vehiclelistings\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007562,rev:3,msg:'ET WEB_SPECIFIC 20/20 Auto Gallery SQL Injection Attempt -- vehiclelistings.asp listing_price ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_2020_Auto_gallery'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:listing_price/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC 20/20 Auto Gallery SQL Injection Attempt -- vehiclelistings.asp listing_price ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004063) ET WEB_SPECIFIC 2z Project SQL Injection Attempt -- rating.php rating
+SecRule REQUEST_URI_RAW "(?i:\/includes\/rating\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004063,rev:4,msg:'ET WEB_SPECIFIC 2z Project SQL Injection Attempt -- rating.php rating ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_2z_project'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:rating/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC 2z Project SQL Injection Attempt -- rating.php rating ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004075) ET WEB_SPECIFIC 2z Project SQL Injection Attempt -- rating.php post_id
+SecRule REQUEST_URI_RAW "(?i:\/includes\/rating\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004075,rev:4,msg:'ET WEB_SPECIFIC 2z Project SQL Injection Attempt -- rating.php post_id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_2z_project'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:post_id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC 2z Project SQL Injection Attempt -- rating.php post_id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007221) ET WEB_SPECIFIC 8pixel.net simpleblog SQL Injection Attempt -- edit.asp id
+SecRule REQUEST_URI_RAW "(?i:\/admin\/edit\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007221,rev:3,msg:'ET WEB_SPECIFIC 8pixel.net simpleblog SQL Injection Attempt -- edit.asp id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_8pixel'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC 8pixel.net simpleblog SQL Injection Attempt -- edit.asp id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005061) ET WEB_SPECIFIC ACGVannu SQL Injection Attempt -- modif.html id_mod
+SecRule REQUEST_URI_RAW "(?i:\/templates\/modif\.html)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005061,rev:4,msg:'ET WEB_SPECIFIC ACGVannu SQL Injection Attempt -- modif.html id_mod ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_ACGVannu'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id_mod/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC ACGVannu SQL Injection Attempt -- modif.html id_mod ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005577) ET WEB_SPECIFIC All In One Control Panel (AIOCP) SQL Injection Attempt -- cp_authorization.php xuser_name
+SecRule REQUEST_URI_RAW "(?i:\/shared\/code\/cp_authorization\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005577,rev:3,msg:'ET WEB_SPECIFIC All In One Control Panel (AIOCP) SQL Injection Attempt -- cp_authorization.php xuser_name ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_AIOCP'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:xuser_name/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC All In One Control Panel (AIOCP) SQL Injection Attempt -- cp_authorization.php xuser_name ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005583) ET WEB_SPECIFIC All In One Control Panel (AIOCP) SQL Injection Attempt -- cp_downloads.php did
+SecRule REQUEST_URI_RAW "(?i:\/public\/code\/cp_downloads\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005583,rev:3,msg:'ET WEB_SPECIFIC All In One Control Panel (AIOCP) SQL Injection Attempt -- cp_downloads.php did ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_AIOCP'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:did/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC All In One Control Panel (AIOCP) SQL Injection Attempt -- cp_downloads.php did ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004533) ET WEB_SPECIFIC AJ Auction SQL Injection Attempt -- subcat.php cate_id
+SecRule REQUEST_URI_RAW "(?i:\/subcat\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004533,rev:4,msg:'ET WEB_SPECIFIC AJ Auction SQL Injection Attempt -- subcat.php cate_id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_AJ'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:cate_id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC AJ Auction SQL Injection Attempt -- subcat.php cate_id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004539) ET WEB_SPECIFIC AJDating SQL Injection Attempt -- view_profile.php user_id
+SecRule REQUEST_URI_RAW "(?i:\/view_profile\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004539,rev:4,msg:'ET WEB_SPECIFIC AJDating SQL Injection Attempt -- view_profile.php user_id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_AJ'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:user_id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC AJDating SQL Injection Attempt -- view_profile.php user_id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004545) ET WEB_SPECIFIC AJ Classifieds SQL Injection Attempt -- postingdetails.php postingid
+SecRule REQUEST_URI_RAW "(?i:\/postingdetails\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004545,rev:4,msg:'ET WEB_SPECIFIC AJ Classifieds SQL Injection Attempt -- postingdetails.php postingid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_AJ'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:postingid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC AJ Classifieds SQL Injection Attempt -- postingdetails.php postingid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004550) ET WEB_SPECIFIC AJ Forum SQL Injection Attempt -- topic_title.php td_id
+SecRule REQUEST_URI_RAW "(?i:\/topic_title\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004550,rev:4,msg:'ET WEB_SPECIFIC AJ Forum SQL Injection Attempt -- topic_title.php td_id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_AJ'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:td_id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC AJ Forum SQL Injection Attempt -- topic_title.php td_id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006823) ET WEB_SPECIFIC ASPMForum SQL Injection Attempt -- forum2.asp soruid
+SecRule REQUEST_URI_RAW "(?i:\/forum2\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006823,rev:3,msg:'ET WEB_SPECIFIC ASPMForum SQL Injection Attempt -- forum2.asp soruid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_ASPMForum'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:soruid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC ASPMForum SQL Injection Attempt -- forum2.asp soruid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006829) ET WEB_SPECIFIC ASPMForum SQL Injection Attempt -- kullanicilistesi.asp ak
+SecRule REQUEST_URI_RAW "(?i:\/kullanicilistesi\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006829,rev:3,msg:'ET WEB_SPECIFIC ASPMForum SQL Injection Attempt -- kullanicilistesi.asp ak ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_ASPMForum'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:ak/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC ASPMForum SQL Injection Attempt -- kullanicilistesi.asp ak ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006835) ET WEB_SPECIFIC ASPMForum SQL Injection Attempt -- aramayap.asp kelimeler
+SecRule REQUEST_URI_RAW "(?i:\/aramayap\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006835,rev:3,msg:'ET WEB_SPECIFIC ASPMForum SQL Injection Attempt -- aramayap.asp kelimeler ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_ASPMForum'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:kelimeler/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC ASPMForum SQL Injection Attempt -- aramayap.asp kelimeler ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006841) ET WEB_SPECIFIC ASPMForum SQL Injection Attempt -- giris.asp kullaniciadi
+SecRule REQUEST_URI_RAW "(?i:\/giris\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006841,rev:3,msg:'ET WEB_SPECIFIC ASPMForum SQL Injection Attempt -- giris.asp kullaniciadi ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_ASPMForum'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:kullaniciadi/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC ASPMForum SQL Injection Attempt -- giris.asp kullaniciadi ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006847) ET WEB_SPECIFIC ASPMForum SQL Injection Attempt -- mesajkutum.asp mesajno
+SecRule REQUEST_URI_RAW "(?i:\/mesajkutum\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006847,rev:3,msg:'ET WEB_SPECIFIC ASPMForum SQL Injection Attempt -- mesajkutum.asp mesajno ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_ASPMForum'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:mesajno/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC ASPMForum SQL Injection Attempt -- mesajkutum.asp mesajno ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006853) ET WEB_SPECIFIC ASPMForum SQL Injection Attempt -- kullanicilistesi.asp harf
+SecRule REQUEST_URI_RAW "(?i:\/kullanicilistesi\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006853,rev:3,msg:'ET WEB_SPECIFIC ASPMForum SQL Injection Attempt -- kullanicilistesi.asp harf ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_ASPMForum'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:harf/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC ASPMForum SQL Injection Attempt -- kullanicilistesi.asp harf ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006859) ET WEB_SPECIFIC ASPMForum SQL Injection Attempt -- forum.asp baslik
+SecRule REQUEST_URI_RAW "(?i:\/forum\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006859,rev:3,msg:'ET WEB_SPECIFIC ASPMForum SQL Injection Attempt -- forum.asp baslik ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_ASPMForum'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:baslik/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC ASPMForum SQL Injection Attempt -- forum.asp baslik ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005109) ET WEB_SPECIFIC ASP EDGE SQL Injection Attempt -- artreplydelete.asp username
+SecRule REQUEST_URI_RAW "(?i:\/artreplydelete\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005109,rev:4,msg:'ET WEB_SPECIFIC ASP EDGE SQL Injection Attempt -- artreplydelete.asp username ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_ASP_EDGE'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:username/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC ASP EDGE SQL Injection Attempt -- artreplydelete.asp username ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005168) ET WEB_SPECIFIC ASP NEWS SQL Injection Attempt -- news_detail.asp id
+SecRule REQUEST_URI_RAW "(?i:\/news_detail\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005168,rev:4,msg:'ET WEB_SPECIFIC ASP NEWS SQL Injection Attempt -- news_detail.asp id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_ASP_NEWS'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC ASP NEWS SQL Injection Attempt -- news_detail.asp id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005174) ET WEB_SPECIFIC ASP EDGE SQL Injection Attempt -- user.asp user
+SecRule REQUEST_URI_RAW "(?i:\/user\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005174,rev:4,msg:'ET WEB_SPECIFIC ASP EDGE SQL Injection Attempt -- user.asp user ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_ASP_NEWS'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:user/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC ASP EDGE SQL Injection Attempt -- user.asp user ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005887) ET WEB_SPECIFIC ASP SiteWare autoDealer SQL Injection Attempt -- detail.asp iPro
+SecRule REQUEST_URI_RAW "(?i:\/detail\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005887,rev:4,msg:'ET WEB_SPECIFIC ASP SiteWare autoDealer SQL Injection Attempt -- detail.asp iPro ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_ASP_Siteware'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:iPro/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC ASP SiteWare autoDealer SQL Injection Attempt -- detail.asp iPro ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007004) ET WEB_SPECIFIC ASP ListPics SQL Injection Attempt -- listpics.asp ID
+SecRule REQUEST_URI_RAW "(?i:\/listpics\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007004,rev:3,msg:'ET WEB_SPECIFIC ASP ListPics SQL Injection Attempt -- listpics.asp ID ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_ASP_listpics'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:ID/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC ASP ListPics SQL Injection Attempt -- listpics.asp ID ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004323) ET WEB_SPECIFIC Absolute Image Gallery SQL Injection Attempt -- gallery.asp categoryid
+SecRule REQUEST_URI_RAW "(?i:\/gallery\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004323,rev:3,msg:'ET WEB_SPECIFIC Absolute Image Gallery SQL Injection Attempt -- gallery.asp categoryid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Absolute_Image_Gallery'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:categoryid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Absolute Image Gallery SQL Injection Attempt -- gallery.asp categoryid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007396) ET WEB_SPECIFIC Alan Ward A-Cart Pro SQL Injection Attempt -- product.asp productid
+SecRule REQUEST_URI_RAW "(?i:\/product\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007396,rev:3,msg:'ET WEB_SPECIFIC Alan Ward A-Cart Pro SQL Injection Attempt -- product.asp productid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Acart'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:productid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Alan Ward A-Cart Pro SQL Injection Attempt -- product.asp productid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007402) ET WEB_SPECIFIC Alan Ward A-Cart Pro SQL Injection Attempt -- search.asp search
+SecRule REQUEST_URI_RAW "(?i:\/search\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007402,rev:3,msg:'ET WEB_SPECIFIC Alan Ward A-Cart Pro SQL Injection Attempt -- search.asp search ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Acart'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:search/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Alan Ward A-Cart Pro SQL Injection Attempt -- search.asp search ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007480) ET WEB_SPECIFIC ActiveNews Manager SQL Injection Attempt -- activenews_view.asp articleID
+SecRule REQUEST_URI_RAW "(?i:\/activenews_view\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007480,rev:3,msg:'ET WEB_SPECIFIC ActiveNews Manager SQL Injection Attempt -- activenews_view.asp articleID ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_ActiveNews'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:articleID/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC ActiveNews Manager SQL Injection Attempt -- activenews_view.asp articleID ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007485) ET WEB_SPECIFIC ActiveNews Manager SQL Injection Attempt -- default.asp page
+SecRule REQUEST_URI_RAW "(?i:\/default\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007485,rev:3,msg:'ET WEB_SPECIFIC ActiveNews Manager SQL Injection Attempt -- default.asp page ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_ActiveNews'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:page/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC ActiveNews Manager SQL Injection Attempt -- default.asp page ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007491) ET WEB_SPECIFIC ActiveNews Manager SQL Injection Attempt -- activeNews_categories.asp catID
+SecRule REQUEST_URI_RAW "(?i:\/activeNews_categories\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007491,rev:3,msg:'ET WEB_SPECIFIC ActiveNews Manager SQL Injection Attempt -- activeNews_categories.asp catID ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_ActiveNews'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:catID/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC ActiveNews Manager SQL Injection Attempt -- activeNews_categories.asp catID ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007497) ET WEB_SPECIFIC ActiveNews Manager SQL Injection Attempt -- activeNews_comments.asp articleID
+SecRule REQUEST_URI_RAW "(?i:\/activeNews_comments\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007497,rev:3,msg:'ET WEB_SPECIFIC ActiveNews Manager SQL Injection Attempt -- activeNews_comments.asp articleID ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_ActiveNews'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:articleID/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC ActiveNews Manager SQL Injection Attempt -- activeNews_comments.asp articleID ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007503) ET WEB_SPECIFIC ActiveNews Manager SQL Injection Attempt -- activenews_search.asp query
+SecRule REQUEST_URI_RAW "(?i:\/activenews_search\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007503,rev:3,msg:'ET WEB_SPECIFIC ActiveNews Manager SQL Injection Attempt -- activenews_search.asp query ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_ActiveNews'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:query/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC ActiveNews Manager SQL Injection Attempt -- activenews_search.asp query ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004891) ET WEB_SPECIFIC Aktueldownload Haber script SQL Injection Attempt -- HaberDetay.asp id
+SecRule REQUEST_URI_RAW "(?i:\/HaberDetay\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004891,rev:4,msg:'ET WEB_SPECIFIC Aktueldownload Haber script SQL Injection Attempt -- HaberDetay.asp id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Aktueldownload_Haber_script'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Aktueldownload Haber script SQL Injection Attempt -- HaberDetay.asp id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004897) ET WEB_SPECIFIC Aktueldownload Haber script SQL Injection Attempt -- rss.asp kid
+SecRule REQUEST_URI_RAW "(?i:\/rss\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004897,rev:4,msg:'ET WEB_SPECIFIC Aktueldownload Haber script SQL Injection Attempt -- rss.asp kid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Aktueldownload_Haber_script'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:kid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Aktueldownload Haber script SQL Injection Attempt -- rss.asp kid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005776) ET WEB_SPECIFIC @lex Guestbook SQL Injection Attempt -- index.php lang
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005776,rev:4,msg:'ET WEB_SPECIFIC @lex Guestbook SQL Injection Attempt -- index.php lang ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Alex_Guestbook'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:lang/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC @lex Guestbook SQL Injection Attempt -- index.php lang ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004021) ET WEB_SPECIFIC AlstraSoft E-Friends SQL Injection Attempt -- index.php pack
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004021,rev:4,msg:'ET WEB_SPECIFIC AlstraSoft E-Friends SQL Injection Attempt -- index.php pack ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Alstrasoft'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:pack/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC AlstraSoft E-Friends SQL Injection Attempt -- index.php pack ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004721) ET WEB_SPECIFIC ANGEL Learning Management Suite (LMS) SQL Injection Attempt -- default.asp id
+SecRule REQUEST_URI_RAW "(?i:\/section\/default\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004721,rev:4,msg:'ET WEB_SPECIFIC ANGEL Learning Management Suite (LMS) SQL Injection Attempt -- default.asp id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Angel_Learning_Mgmt'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC ANGEL Learning Management Suite (LMS) SQL Injection Attempt -- default.asp id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006565) ET WEB_SPECIFIC AnnonceScriptHP SQL Injection Attempt -- email.php id
+SecRule REQUEST_URI_RAW "(?i:\/email\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006565,rev:3,msg:'ET WEB_SPECIFIC AnnonceScriptHP SQL Injection Attempt -- email.php id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_AnnounceScriptHP'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC AnnonceScriptHP SQL Injection Attempt -- email.php id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006571) ET WEB_SPECIFIC AnnonceScriptHP SQL Injection Attempt -- voirannonce.php no
+SecRule REQUEST_URI_RAW "(?i:\/voirannonce\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006571,rev:3,msg:'ET WEB_SPECIFIC AnnonceScriptHP SQL Injection Attempt -- voirannonce.php no ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_AnnounceScriptHP'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:no/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC AnnonceScriptHP SQL Injection Attempt -- voirannonce.php no ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006577) ET WEB_SPECIFIC AnnonceScriptHP SQL Injection Attempt -- fiche_membre.php idmembre
+SecRule REQUEST_URI_RAW "(?i:\/admin\/admin_membre\/fiche_membre\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006577,rev:3,msg:'ET WEB_SPECIFIC AnnonceScriptHP SQL Injection Attempt -- fiche_membre.php idmembre ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_AnnounceScriptHP'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:idmembre/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC AnnonceScriptHP SQL Injection Attempt -- fiche_membre.php idmembre ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006583) ET WEB_SPECIFIC AnnonceScriptHP SQL Injection Attempt -- okvalannonce.php idannonce
+SecRule REQUEST_URI_RAW "(?i:\/admin\/admin_annonce\/okvalannonce\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006583,rev:3,msg:'ET WEB_SPECIFIC AnnonceScriptHP SQL Injection Attempt -- okvalannonce.php idannonce ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_AnnounceScriptHP'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:idannonce/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC AnnonceScriptHP SQL Injection Attempt -- okvalannonce.php idannonce ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006589) ET WEB_SPECIFIC AnnonceScriptHP SQL Injection Attempt -- changeannonce.php idannonce
+SecRule REQUEST_URI_RAW "(?i:\/admin\/admin_annonce\/changeannonce\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006589,rev:3,msg:'ET WEB_SPECIFIC AnnonceScriptHP SQL Injection Attempt -- changeannonce.php idannonce ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_AnnounceScriptHP'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:idannonce/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC AnnonceScriptHP SQL Injection Attempt -- changeannonce.php idannonce ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006787) ET WEB_SPECIFIC Aspee and Dogantepe Ziyaretci Defteri SQL Injection Attempt -- giris.asp kullanici
+SecRule REQUEST_URI_RAW "(?i:\/giris\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006787,rev:3,msg:'ET WEB_SPECIFIC Aspee and Dogantepe Ziyaretci Defteri SQL Injection Attempt -- giris.asp kullanici ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Aspee'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:kullanici/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Aspee and Dogantepe Ziyaretci Defteri SQL Injection Attempt -- giris.asp kullanici ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006793) ET WEB_SPECIFIC Aspee and Dogantepe Ziyaretci Defteri SQL Injection Attempt -- giris.asp parola
+SecRule REQUEST_URI_RAW "(?i:\/giris\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006793,rev:3,msg:'ET WEB_SPECIFIC Aspee and Dogantepe Ziyaretci Defteri SQL Injection Attempt -- giris.asp parola ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Aspee'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:parola/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Aspee and Dogantepe Ziyaretci Defteri SQL Injection Attempt -- giris.asp parola ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004728) ET WEB_SPECIFIC Audins Audiens SQL Injection Attempt -- index.php PHPSESSID
+SecRule REQUEST_URI_RAW "(?i:\/system\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004728,rev:4,msg:'ET WEB_SPECIFIC Audins Audiens SQL Injection Attempt -- index.php PHPSESSID ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Audins'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:PHPSESSID/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Audins Audiens SQL Injection Attempt -- index.php PHPSESSID ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007456) ET WEB_SPECIFIC BPG-InfoTech Content Management System SQL Injection Attempt -- publications_list.asp vjob
+SecRule REQUEST_URI_RAW "(?i:\/publications_list\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007456,rev:3,msg:'ET WEB_SPECIFIC BPG-InfoTech Content Management System SQL Injection Attempt -- publications_list.asp vjob ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_BPG_Infotech'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:vjob/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC BPG-InfoTech Content Management System SQL Injection Attempt -- publications_list.asp vjob ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007462) ET WEB_SPECIFIC BPG-InfoTech Content Management System SQL Injection Attempt -- publication_view.asp InfoID
+SecRule REQUEST_URI_RAW "(?i:\/publication_view\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007462,rev:3,msg:'ET WEB_SPECIFIC BPG-InfoTech Content Management System SQL Injection Attempt -- publication_view.asp InfoID ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_BPG_Infotech'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:InfoID/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC BPG-InfoTech Content Management System SQL Injection Attempt -- publication_view.asp InfoID ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004335) ET WEB_SPECIFIC BP Blog SQL Injection Attempt -- default.asp layout
+SecRule REQUEST_URI_RAW "(?i:\/default\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004335,rev:4,msg:'ET WEB_SPECIFIC BP Blog SQL Injection Attempt -- default.asp layout ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_BP_Blog'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:layout/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC BP Blog SQL Injection Attempt -- default.asp layout ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007215) ET WEB_SPECIFIC BasicForum SQL Injection Attempt -- edit.asp id
+SecRule REQUEST_URI_RAW "(?i:\/edit\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007215,rev:3,msg:'ET WEB_SPECIFIC BasicForum SQL Injection Attempt -- edit.asp id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Basicforum'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC BasicForum SQL Injection Attempt -- edit.asp id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006337) ET WEB_SPECIFIC Bluetrait SQL Injection Attempt -- bt-trackback.php
+SecRule REQUEST_URI_RAW "(?i:\/bt\-trackback\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006337,rev:4,msg:'ET WEB_SPECIFIC Bluetrait SQL Injection Attempt -- bt-trackback.php ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Bluetrait'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:\(.+SELECT)"
+
+# (sid 2004832) ET WEB_SPECIFIC Bookmark4U SQL Injection Attempt -- config.php sqlcmd
+SecRule REQUEST_URI_RAW "(?i:\/admin\/config\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004832,rev:4,msg:'ET WEB_SPECIFIC Bookmark4U SQL Injection Attempt -- config.php sqlcmd ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Bookmark4U'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:sqlcmd/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Bookmark4U SQL Injection Attempt -- config.php sqlcmd ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004027) ET WEB_SPECIFIC BtiTracker SQL Injection Attempt -- account_change.php style
+SecRule REQUEST_URI_RAW "(?i:\/account_change\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004027,rev:4,msg:'ET WEB_SPECIFIC BtiTracker SQL Injection Attempt -- account_change.php style ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_BtiTracker'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:style/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC BtiTracker SQL Injection Attempt -- account_change.php style ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004033) ET WEB_SPECIFIC BtiTracker SQL Injection Attempt -- account_change.php langue
+SecRule REQUEST_URI_RAW "(?i:\/account_change\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004033,rev:4,msg:'ET WEB_SPECIFIC BtiTracker SQL Injection Attempt -- account_change.php langue ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_BtiTracker'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:langue/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC BtiTracker SQL Injection Attempt -- account_change.php langue ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004989) ET WEB_SPECIFIC BtitTracker SQL Injection Attempt -- torrents.php by
+SecRule REQUEST_URI_RAW "(?i:\/torrents\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004989,rev:4,msg:'ET WEB_SPECIFIC BtitTracker SQL Injection Attempt -- torrents.php by ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_BtitTracker'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:by/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC BtitTracker SQL Injection Attempt -- torrents.php by ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004995) ET WEB_SPECIFIC BtitTracker SQL Injection Attempt -- torrents.php order
+SecRule REQUEST_URI_RAW "(?i:\/torrents\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004995,rev:4,msg:'ET WEB_SPECIFIC BtitTracker SQL Injection Attempt -- torrents.php order ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_BtitTracker'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:order/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC BtitTracker SQL Injection Attempt -- torrents.php order ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2003780) ET WEB_SPECIFIC Burak Yilmaz Blog SQL Injection Attempt -- bry.asp id
+SecRule REQUEST_URI_RAW "(?i:\/bry\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2003780,rev:4,msg:'ET WEB_SPECIFIC Burak Yilmaz Blog SQL Injection Attempt -- bry.asp id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Burak'"
+SecRule REQUEST_URI_RAW "@contains (" "chain"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Burak Yilmaz Blog SQL Injection Attempt -- bry.asp id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006253) ET WEB_SPECIFIC Burak Yylmaz Download Portal SQL Injection Attempt -- HABERLER.ASP kid
+SecRule REQUEST_URI_RAW "(?i:\/HABERLER\.ASP)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006253,rev:4,msg:'ET WEB_SPECIFIC Burak Yylmaz Download Portal SQL Injection Attempt -- HABERLER.ASP kid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Burak'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:kid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Burak Yylmaz Download Portal SQL Injection Attempt -- HABERLER.ASP kid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006259) ET WEB_SPECIFIC Burak Yylmaz Download Portal SQL Injection Attempt -- HABERLER.ASP id
+SecRule REQUEST_URI_RAW "(?i:\/HABERLER\.ASP)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006259,rev:4,msg:'ET WEB_SPECIFIC Burak Yylmaz Download Portal SQL Injection Attempt -- HABERLER.ASP id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Burak'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Burak Yylmaz Download Portal SQL Injection Attempt -- HABERLER.ASP id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006265) ET WEB_SPECIFIC Burak Yylmaz Download Portal SQL Injection Attempt -- ASPKAT.ASP id
+SecRule REQUEST_URI_RAW "(?i:\/ASPKAT\.ASP)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006265,rev:4,msg:'ET WEB_SPECIFIC Burak Yylmaz Download Portal SQL Injection Attempt -- ASPKAT.ASP id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Burak'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Burak Yylmaz Download Portal SQL Injection Attempt -- ASPKAT.ASP id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006271) ET WEB_SPECIFIC Burak Yylmaz Download Portal SQL Injection Attempt -- ASPKAT.ASP kid
+SecRule REQUEST_URI_RAW "(?i:\/ASPKAT\.ASP)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006271,rev:4,msg:'ET WEB_SPECIFIC Burak Yylmaz Download Portal SQL Injection Attempt -- ASPKAT.ASP kid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Burak'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:kid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Burak Yylmaz Download Portal SQL Injection Attempt -- ASPKAT.ASP kid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006277) ET WEB_SPECIFIC Burak Yylmaz Download Portal SQL Injection Attempt -- down.asp id
+SecRule REQUEST_URI_RAW "(?i:\/down\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006277,rev:4,msg:'ET WEB_SPECIFIC Burak Yylmaz Download Portal SQL Injection Attempt -- down.asp id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Burak'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Burak Yylmaz Download Portal SQL Injection Attempt -- down.asp id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2003797) ET WEB_SPECIFIC CMS Made Simple SQL Injection Attempt -- stylesheet.php templateid
+SecRule REQUEST_URI_RAW "(?i:\/stylesheet\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2003797,rev:5,msg:'ET WEB_SPECIFIC CMS Made Simple SQL Injection Attempt -- stylesheet.php templateid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_CMS_Made_Simple'"
+SecRule REQUEST_URI_RAW "@contains (" "chain"
+SecRule &TX:'/SQL_INJECTION.*ARGS:templateid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC CMS Made Simple SQL Injection Attempt -- stylesheet.php templateid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006169) ET WEB_SPECIFIC Calendar MX BASIC SQL Injection Attempt -- calendar_detail.asp ID
+SecRule REQUEST_URI_RAW "(?i:\/calendar_detail\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006169,rev:4,msg:'ET WEB_SPECIFIC Calendar MX BASIC SQL Injection Attempt -- calendar_detail.asp ID ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Calendar_MX'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:ID/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Calendar MX BASIC SQL Injection Attempt -- calendar_detail.asp ID ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006187) ET WEB_SPECIFIC Newsletter MX SQL Injection Attempt -- admin_mail_adressee.asp ID
+SecRule REQUEST_URI_RAW "(?i:\/admin\/admin_mail_adressee\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006187,rev:4,msg:'ET WEB_SPECIFIC Newsletter MX SQL Injection Attempt -- admin_mail_adressee.asp ID ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Calendar_MX'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:ID/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Newsletter MX SQL Injection Attempt -- admin_mail_adressee.asp ID ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007468) ET WEB_SPECIFIC CandyPress Store SQL Injection Attempt -- openPolicy.asp policy
+SecRule REQUEST_URI_RAW "(?i:\/openPolicy\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007468,rev:3,msg:'ET WEB_SPECIFIC CandyPress Store SQL Injection Attempt -- openPolicy.asp policy ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_CandyPress'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:policy/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC CandyPress Store SQL Injection Attempt -- openPolicy.asp policy ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007474) ET WEB_SPECIFIC CandyPress Store SQL Injection Attempt -- prodList.asp brand
+SecRule REQUEST_URI_RAW "(?i:\/prodList\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007474,rev:3,msg:'ET WEB_SPECIFIC CandyPress Store SQL Injection Attempt -- prodList.asp brand ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_CandyPress'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:brand/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC CandyPress Store SQL Injection Attempt -- prodList.asp brand ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007227) ET WEB_SPECIFIC ClickTech Click Blog SQL Injection Attempt -- displayCalendar.asp date
+SecRule REQUEST_URI_RAW "(?i:\/displayCalendar\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007227,rev:3,msg:'ET WEB_SPECIFIC ClickTech Click Blog SQL Injection Attempt -- displayCalendar.asp date ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Clicktech'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:date/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC ClickTech Click Blog SQL Injection Attempt -- displayCalendar.asp date ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007233) ET WEB_SPECIFIC ClickTech Click Gallery SQL Injection Attempt -- view_gallery.asp currentpage
+SecRule REQUEST_URI_RAW "(?i:\/view_gallery\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007233,rev:3,msg:'ET WEB_SPECIFIC ClickTech Click Gallery SQL Injection Attempt -- view_gallery.asp currentpage ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Clicktech'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:currentpage/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC ClickTech Click Gallery SQL Injection Attempt -- view_gallery.asp currentpage ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007239) ET WEB_SPECIFIC ClickTech Click Gallery SQL Injection Attempt -- view_gallery.asp gallery_id
+SecRule REQUEST_URI_RAW "(?i:\/view_gallery\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007239,rev:3,msg:'ET WEB_SPECIFIC ClickTech Click Gallery SQL Injection Attempt -- view_gallery.asp gallery_id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Clicktech'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:gallery_id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC ClickTech Click Gallery SQL Injection Attempt -- view_gallery.asp gallery_id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007245) ET WEB_SPECIFIC ClickTech Click Gallery SQL Injection Attempt -- download_image.asp image_id
+SecRule REQUEST_URI_RAW "(?i:\/download_image\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007245,rev:3,msg:'ET WEB_SPECIFIC ClickTech Click Gallery SQL Injection Attempt -- download_image.asp image_id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Clicktech'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:image_id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC ClickTech Click Gallery SQL Injection Attempt -- download_image.asp image_id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007251) ET WEB_SPECIFIC ClickTech Click Gallery SQL Injection Attempt -- gallery.asp currentpage
+SecRule REQUEST_URI_RAW "(?i:\/gallery\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007251,rev:3,msg:'ET WEB_SPECIFIC ClickTech Click Gallery SQL Injection Attempt -- gallery.asp currentpage ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Clicktech'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:currentpage/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC ClickTech Click Gallery SQL Injection Attempt -- gallery.asp currentpage ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007257) ET WEB_SPECIFIC ClickTech Click Gallery SQL Injection Attempt -- gallery.asp orderby
+SecRule REQUEST_URI_RAW "(?i:\/gallery\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007257,rev:3,msg:'ET WEB_SPECIFIC ClickTech Click Gallery SQL Injection Attempt -- gallery.asp orderby ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Clicktech'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:orderby/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC ClickTech Click Gallery SQL Injection Attempt -- gallery.asp orderby ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007263) ET WEB_SPECIFIC ClickTech Click Gallery SQL Injection Attempt -- view_recent.asp currentpage
+SecRule REQUEST_URI_RAW "(?i:\/view_recent\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007263,rev:3,msg:'ET WEB_SPECIFIC ClickTech Click Gallery SQL Injection Attempt -- view_recent.asp currentpage ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Clicktech'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:currentpage/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC ClickTech Click Gallery SQL Injection Attempt -- view_recent.asp currentpage ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007269) ET WEB_SPECIFIC ClickTech ClickContact SQL Injection Attempt -- default.asp AlphaSort
+SecRule REQUEST_URI_RAW "(?i:\/default\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007269,rev:3,msg:'ET WEB_SPECIFIC ClickTech ClickContact SQL Injection Attempt -- default.asp AlphaSort ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Clicktech'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:AlphaSort/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC ClickTech ClickContact SQL Injection Attempt -- default.asp AlphaSort ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007275) ET WEB_SPECIFIC ClickTech ClickContact SQL Injection Attempt -- default.asp In
+SecRule REQUEST_URI_RAW "(?i:\/default\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007275,rev:3,msg:'ET WEB_SPECIFIC ClickTech ClickContact SQL Injection Attempt -- default.asp In ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Clicktech'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:In/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC ClickTech ClickContact SQL Injection Attempt -- default.asp In ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007281) ET WEB_SPECIFIC ClickTech ClickContact SQL Injection Attempt -- default.asp orderby
+SecRule REQUEST_URI_RAW "(?i:\/default\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007281,rev:3,msg:'ET WEB_SPECIFIC ClickTech ClickContact SQL Injection Attempt -- default.asp orderby ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Clicktech'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:orderby/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC ClickTech ClickContact SQL Injection Attempt -- default.asp orderby ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004879) ET WEB_SPECIFIC CodeAvalanche News SQL Injection Attempt -- inc_listnews.asp CAT_ID
+SecRule REQUEST_URI_RAW "(?i:\/inc_listnews\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004879,rev:4,msg:'ET WEB_SPECIFIC CodeAvalanche News SQL Injection Attempt -- inc_listnews.asp CAT_ID ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_CodeAvalance'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:CAT_ID/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC CodeAvalanche News SQL Injection Attempt -- inc_listnews.asp CAT_ID ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006508) ET WEB_SPECIFIC Comersus Shop Cart SQL Injection Attempt -- comersus_optReviewReadExec.asp idProduct
+SecRule REQUEST_URI_RAW "(?i:\/comersus_optReviewReadExec\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006508,rev:4,msg:'ET WEB_SPECIFIC Comersus Shop Cart SQL Injection Attempt -- comersus_optReviewReadExec.asp idProduct ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Comersus'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:idProduct/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Comersus Shop Cart SQL Injection Attempt -- comersus_optReviewReadExec.asp idProduct ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004639) ET WEB_SPECIFIC Comicsense SQL Injection Attempt -- index.php epi
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004639,rev:4,msg:'ET WEB_SPECIFIC Comicsense SQL Injection Attempt -- index.php epi ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_ComicSense_Portal'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:epi/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Comicsense SQL Injection Attempt -- index.php epi ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004709) ET WEB_SPECIFIC Connectix Boards SQL Injection Attempt -- admin.php uploadimage
+SecRule REQUEST_URI_RAW "(?i:\/admin\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004709,rev:4,msg:'ET WEB_SPECIFIC Connectix Boards SQL Injection Attempt -- admin.php uploadimage ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Connectix_Portal'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:uploadimage/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Connectix Boards SQL Injection Attempt -- admin.php uploadimage ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004715) ET WEB_SPECIFIC Connectix Boards SQL Injection Attempt -- index.php p_skin
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004715,rev:4,msg:'ET WEB_SPECIFIC Connectix Boards SQL Injection Attempt -- index.php p_skin ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Connectix_Portal'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:p_skin/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Connectix Boards SQL Injection Attempt -- index.php p_skin ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007340) ET WEB_SPECIFIC ContentNow SQL Injection Attempt -- index.php pageid
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007340,rev:3,msg:'ET WEB_SPECIFIC ContentNow SQL Injection Attempt -- index.php pageid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_ContentNow'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:pageid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC ContentNow SQL Injection Attempt -- index.php pageid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006307) ET WEB_SPECIFIC Contra Haber Sistemi SQL Injection Attempt -- haber.asp id
+SecRule REQUEST_URI_RAW "(?i:\/haber\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006307,rev:4,msg:'ET WEB_SPECIFIC Contra Haber Sistemi SQL Injection Attempt -- haber.asp id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Contra_Haber'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Contra Haber Sistemi SQL Injection Attempt -- haber.asp id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004813) ET WEB_SPECIFIC Coppermine Photo Gallery (CPG) SQL Injection Attempt -- thumbnails.php cpg131_fav
+SecRule REQUEST_URI_RAW "(?i:\/thumbnails\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004813,rev:4,msg:'ET WEB_SPECIFIC Coppermine Photo Gallery (CPG) SQL Injection Attempt -- thumbnails.php cpg131_fav ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Coppermine_Photo_Gallery'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:cpg131_fav/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Coppermine Photo Gallery (CPG) SQL Injection Attempt -- thumbnails.php cpg131_fav ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005845) ET WEB_SPECIFIC Coppermine Photo Gallery SQL Injection Attempt -- albmgr.php cat
+SecRule REQUEST_URI_RAW "(?i:\/albmgr\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005845,rev:4,msg:'ET WEB_SPECIFIC Coppermine Photo Gallery SQL Injection Attempt -- albmgr.php cat ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Coppermine_Photo_Gallery'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:cat/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Coppermine Photo Gallery SQL Injection Attempt -- albmgr.php cat ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005851) ET WEB_SPECIFIC Coppermine Photo Gallery SQL Injection Attempt -- usermgr.php gid
+SecRule REQUEST_URI_RAW "(?i:\/usermgr\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005851,rev:4,msg:'ET WEB_SPECIFIC Coppermine Photo Gallery SQL Injection Attempt -- usermgr.php gid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Coppermine_Photo_Gallery'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:gid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Coppermine Photo Gallery SQL Injection Attempt -- usermgr.php gid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005857) ET WEB_SPECIFIC Coppermine Photo Gallery SQL Injection Attempt -- db_ecard.php start
+SecRule REQUEST_URI_RAW "(?i:\/db_ecard\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005857,rev:4,msg:'ET WEB_SPECIFIC Coppermine Photo Gallery SQL Injection Attempt -- db_ecard.php start ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Coppermine_Photo_Gallery'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:start/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Coppermine Photo Gallery SQL Injection Attempt -- db_ecard.php start ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2003756) ET WEB_SPECIFIC CreaScripts CreaDirectory SQL Injection Attempt -- error.asp id
+SecRule REQUEST_URI_RAW "(?i:\/error\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2003756,rev:4,msg:'ET WEB_SPECIFIC CreaScripts CreaDirectory SQL Injection Attempt -- error.asp id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Creascripts'"
+SecRule REQUEST_URI_RAW "@contains (" "chain"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC CreaScripts CreaDirectory SQL Injection Attempt -- error.asp id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005863) ET WEB_SPECIFIC CreateAuction SQL Injection Attempt -- cats.asp catid
+SecRule REQUEST_URI_RAW "(?i:\/cats\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005863,rev:4,msg:'ET WEB_SPECIFIC CreateAuction SQL Injection Attempt -- cats.asp catid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_CreateAuction'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:catid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC CreateAuction SQL Injection Attempt -- cats.asp catid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004039) ET WEB_SPECIFIC CubeCart SQL Injection Attempt -- cart.inc.php
+SecRule REQUEST_URI_RAW "(?i:\/cart\.inc\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004039,rev:4,msg:'ET WEB_SPECIFIC CubeCart SQL Injection Attempt -- cart.inc.php ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_CubeCart'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:.+\(.+SELECT)"
+
+# (sid 2004087) ET WEB_SPECIFIC DGNews SQL Injection Attempt -- news.php catid
+SecRule REQUEST_URI_RAW "(?i:\/news\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004087,rev:4,msg:'ET WEB_SPECIFIC DGNews SQL Injection Attempt -- news.php catid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_DGNews'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:catid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC DGNews SQL Injection Attempt -- news.php catid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004460) ET WEB_SPECIFIC DGNews SQL Injection Attempt -- news.php newsid
+SecRule REQUEST_URI_RAW "(?i:\/news\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004460,rev:4,msg:'ET WEB_SPECIFIC DGNews SQL Injection Attempt -- news.php newsid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_DGNews'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:newsid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC DGNews SQL Injection Attempt -- news.php newsid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004687) ET WEB_SPECIFIC DMXReady Site Engine Manager SQL Injection Attempt -- index.asp mid
+SecRule REQUEST_URI_RAW "(?i:\/index\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004687,rev:4,msg:'ET WEB_SPECIFIC DMXReady Site Engine Manager SQL Injection Attempt -- index.asp mid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_DMXReady'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:mid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC DMXReady Site Engine Manager SQL Injection Attempt -- index.asp mid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006085) ET WEB_SPECIFIC DMXReady Secure Login Manager SQL Injection Attempt -- set_preferences.asp
+SecRule REQUEST_URI_RAW "(?i:\/set_preferences\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006085,rev:4,msg:'ET WEB_SPECIFIC DMXReady Secure Login Manager SQL Injection Attempt -- set_preferences.asp ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_DMXReady'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:\(.+SELECT)"
+
+# (sid 2006091) ET WEB_SPECIFIC DMXReady Secure Login Manager SQL Injection Attempt -- send_password_preferences.asp
+SecRule REQUEST_URI_RAW "(?i:\/send_password_preferences\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006091,rev:4,msg:'ET WEB_SPECIFIC DMXReady Secure Login Manager SQL Injection Attempt -- send_password_preferences.asp ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_DMXReady'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:\(.+SELECT)"
+
+# (sid 2006097) ET WEB_SPECIFIC DMXReady Secure Login Manager SQL Injection Attempt -- list.asp
+SecRule REQUEST_URI_RAW "(?i:\/SecureLoginManager\/list\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006097,rev:4,msg:'ET WEB_SPECIFIC DMXReady Secure Login Manager SQL Injection Attempt -- list.asp ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_DMXReady'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:\(.+SELECT)"
+
+# (sid 2006103) ET WEB_SPECIFIC DMXReady Secure Login Manager SQL Injection Attempt -- login.asp sent
+SecRule REQUEST_URI_RAW "(?i:\/login\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006103,rev:4,msg:'ET WEB_SPECIFIC DMXReady Secure Login Manager SQL Injection Attempt -- login.asp sent ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_DMXReady'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:sent/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC DMXReady Secure Login Manager SQL Injection Attempt -- login.asp sent ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006109) ET WEB_SPECIFIC DMXReady Secure Login Manager SQL Injection Attempt -- content.asp sent
+SecRule REQUEST_URI_RAW "(?i:\/content\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006109,rev:4,msg:'ET WEB_SPECIFIC DMXReady Secure Login Manager SQL Injection Attempt -- content.asp sent ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_DMXReady'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:sent/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC DMXReady Secure Login Manager SQL Injection Attempt -- content.asp sent ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006115) ET WEB_SPECIFIC DMXReady Secure Login Manager SQL Injection Attempt -- members.asp sent
+SecRule REQUEST_URI_RAW "(?i:\/members\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006115,rev:4,msg:'ET WEB_SPECIFIC DMXReady Secure Login Manager SQL Injection Attempt -- members.asp sent ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_DMXReady'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:sent/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC DMXReady Secure Login Manager SQL Injection Attempt -- members.asp sent ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006121) ET WEB_SPECIFIC DMXReady Secure Login Manager SQL Injection Attempt -- inc_secureloginmanager.asp sent
+SecRule REQUEST_URI_RAW "(?i:\/applications\/SecureLoginManager\/inc_secureloginmanager\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006121,rev:4,msg:'ET WEB_SPECIFIC DMXReady Secure Login Manager SQL Injection Attempt -- inc_secureloginmanager.asp sent ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_DMXReady'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:sent/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC DMXReady Secure Login Manager SQL Injection Attempt -- inc_secureloginmanager.asp sent ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005899) ET WEB_SPECIFIC Digitizing Quote And Ordering System SQL Injection Attempt -- search.asp ordernum
+SecRule REQUEST_URI_RAW "(?i:\/search\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005899,rev:4,msg:'ET WEB_SPECIFIC Digitizing Quote And Ordering System SQL Injection Attempt -- search.asp ordernum ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_DQOS'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:ordernum/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Digitizing Quote And Ordering System SQL Injection Attempt -- search.asp ordernum ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004838) ET WEB_SPECIFIC Design4Online UserPages2 SQL Injection Attempt -- page.asp art_id
+SecRule REQUEST_URI_RAW "(?i:\/page\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004838,rev:4,msg:'ET WEB_SPECIFIC Design4Online UserPages2 SQL Injection Attempt -- page.asp art_id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Design4Online'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:art_id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Design4Online UserPages2 SQL Injection Attempt -- page.asp art_id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005595) ET WEB_SPECIFIC Digiappz DigiAffiliate SQL Injection Attempt -- visu_user.asp id
+SecRule REQUEST_URI_RAW "(?i:\/visu_user\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005595,rev:4,msg:'ET WEB_SPECIFIC Digiappz DigiAffiliate SQL Injection Attempt -- visu_user.asp id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Digiappz'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Digiappz DigiAffiliate SQL Injection Attempt -- visu_user.asp id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005839) ET WEB_SPECIFIC Digirez SQL Injection Attempt -- info_book.asp book_id
+SecRule REQUEST_URI_RAW "(?i:\/info_book\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005839,rev:4,msg:'ET WEB_SPECIFIC Digirez SQL Injection Attempt -- info_book.asp book_id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Digirez'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:book_id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Digirez SQL Injection Attempt -- info_book.asp book_id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004051) ET WEB_SPECIFIC Dokeos SQL Injection Attempt -- courseLog.php scormcontopen
+SecRule REQUEST_URI_RAW "(?i:\/tracking\/courseLog\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004051,rev:4,msg:'ET WEB_SPECIFIC Dokeos SQL Injection Attempt -- courseLog.php scormcontopen ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Dokeos'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:scormcontopen/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Dokeos SQL Injection Attempt -- courseLog.php scormcontopen ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004069) ET WEB_SPECIFIC Dokeos SQL Injection Attempt -- my_progress.php course
+SecRule REQUEST_URI_RAW "(?i:\/main\/auth\/my_progress\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004069,rev:4,msg:'ET WEB_SPECIFIC Dokeos SQL Injection Attempt -- my_progress.php course ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Dokeos'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:course/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Dokeos SQL Injection Attempt -- my_progress.php course ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006145) ET WEB_SPECIFIC Dragon Business Directory SQL Injection Attempt -- bus_details.asp ID
+SecRule REQUEST_URI_RAW "(?i:\/bus_details\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006145,rev:4,msg:'ET WEB_SPECIFIC Dragon Business Directory SQL Injection Attempt -- bus_details.asp ID ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Dragon_Business_Dir'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:ID/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Dragon Business Directory SQL Injection Attempt -- bus_details.asp ID ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004389) ET WEB_SPECIFIC fystyq Duyuru Scripti SQL Injection Attempt -- goster.asp id
+SecRule REQUEST_URI_RAW "(?i:\/goster\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004389,rev:4,msg:'ET WEB_SPECIFIC fystyq Duyuru Scripti SQL Injection Attempt -- goster.asp id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Duruyu'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC fystyq Duyuru Scripti SQL Injection Attempt -- goster.asp id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006691) ET WEB_SPECIFIC DUware DUdownload SQL Injection Attempt -- detail.asp iFile
+SecRule REQUEST_URI_RAW "(?i:\/detail\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006691,rev:4,msg:'ET WEB_SPECIFIC DUware DUdownload SQL Injection Attempt -- detail.asp iFile ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Duware'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:iFile/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC DUware DUdownload SQL Injection Attempt -- detail.asp iFile ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006698) ET WEB_SPECIFIC DUware DUdownload SQL Injection Attempt -- detail.asp action
+SecRule REQUEST_URI_RAW "(?i:\/detail\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006698,rev:4,msg:'ET WEB_SPECIFIC DUware DUdownload SQL Injection Attempt -- detail.asp action ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Duware'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:action/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC DUware DUdownload SQL Injection Attempt -- detail.asp action ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006704) ET WEB_SPECIFIC DUware DUpaypal SQL Injection Attempt -- detail.asp iType
+SecRule REQUEST_URI_RAW "(?i:\/detail\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006704,rev:4,msg:'ET WEB_SPECIFIC DUware DUpaypal SQL Injection Attempt -- detail.asp iType ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Duware'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:iType/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC DUware DUpaypal SQL Injection Attempt -- detail.asp iType ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006710) ET WEB_SPECIFIC DuWare DuClassmate SQL Injection Attempt -- default.asp iCity
+SecRule REQUEST_URI_RAW "(?i:\/default\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006710,rev:4,msg:'ET WEB_SPECIFIC DuWare DuClassmate SQL Injection Attempt -- default.asp iCity ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Duware'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:iCity/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC DuWare DuClassmate SQL Injection Attempt -- default.asp iCity ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006716) ET WEB_SPECIFIC DuWare DuNews SQL Injection Attempt -- detail.asp iNews
+SecRule REQUEST_URI_RAW "(?i:\/detail\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006716,rev:4,msg:'ET WEB_SPECIFIC DuWare DuNews SQL Injection Attempt -- detail.asp iNews ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Duware'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:iNews/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC DuWare DuNews SQL Injection Attempt -- detail.asp iNews ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006722) ET WEB_SPECIFIC DuWare DuNews SQL Injection Attempt -- detail.asp iType
+SecRule REQUEST_URI_RAW "(?i:\/detail\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006722,rev:4,msg:'ET WEB_SPECIFIC DuWare DuNews SQL Injection Attempt -- detail.asp iType ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Duware'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:iType/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC DuWare DuNews SQL Injection Attempt -- detail.asp iType ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006728) ET WEB_SPECIFIC DuWare DuNews SQL Injection Attempt -- detail.asp Action
+SecRule REQUEST_URI_RAW "(?i:\/detail\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006728,rev:4,msg:'ET WEB_SPECIFIC DuWare DuNews SQL Injection Attempt -- detail.asp Action ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Duware'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:Action/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC DuWare DuNews SQL Injection Attempt -- detail.asp Action ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2003774) ET WEB_SPECIFIC E-Annu SQL Injection Attempt -- home.php a
+SecRule REQUEST_URI_RAW "(?i:\/home\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2003774,rev:4,msg:'ET WEB_SPECIFIC E-Annu SQL Injection Attempt -- home.php a ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_E-Annu'"
+SecRule REQUEST_URI_RAW "@contains (" "chain"
+SecRule &TX:'/SQL_INJECTION.*ARGS:a/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC E-Annu SQL Injection Attempt -- home.php a ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004628) ET WEB_SPECIFIC EQdkp SQL Injection Attempt -- listmembers.php rank
+SecRule REQUEST_URI_RAW "(?i:\/listmembers\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004628,rev:4,msg:'ET WEB_SPECIFIC EQdkp SQL Injection Attempt -- listmembers.php rank ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_EQdkp'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:rank/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC EQdkp SQL Injection Attempt -- listmembers.php rank ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005272) ET WEB_SPECIFIC Easebay Resources Paypal Subscription Manager SQL Injection Attempt -- memberlist.php keyword
+SecRule REQUEST_URI_RAW "(?i:\/admin\/memberlist\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005272,rev:4,msg:'ET WEB_SPECIFIC Easebay Resources Paypal Subscription Manager SQL Injection Attempt -- memberlist.php keyword ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Easebay'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:keyword/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Easebay Resources Paypal Subscription Manager SQL Injection Attempt -- memberlist.php keyword ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005278) ET WEB_SPECIFIC Easebay Resources Login Manager SQL Injection Attempt -- memberlist.php init_row
+SecRule REQUEST_URI_RAW "(?i:\/admin\/memberlist\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005278,rev:4,msg:'ET WEB_SPECIFIC Easebay Resources Login Manager SQL Injection Attempt -- memberlist.php init_row ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Easebay'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:init_row/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Easebay Resources Login Manager SQL Injection Attempt -- memberlist.php init_row ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005043) ET WEB_SPECIFIC EasyMoblog SQL Injection Attempt -- add_comment.php i
+SecRule REQUEST_URI_RAW "(?i:\/add_comment\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005043,rev:4,msg:'ET WEB_SPECIFIC EasyMoblog SQL Injection Attempt -- add_comment.php i ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_EasyMoblog'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:i/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC EasyMoblog SQL Injection Attempt -- add_comment.php i ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005049) ET WEB_SPECIFIC EasyMoblog SQL Injection Attempt -- add_comment.php post_id
+SecRule REQUEST_URI_RAW "(?i:\/add_comment\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005049,rev:4,msg:'ET WEB_SPECIFIC EasyMoblog SQL Injection Attempt -- add_comment.php post_id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_EasyMoblog'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:post_id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC EasyMoblog SQL Injection Attempt -- add_comment.php post_id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005055) ET WEB_SPECIFIC EasyMoblog SQL Injection Attempt -- list_comments.php i
+SecRule REQUEST_URI_RAW "(?i:\/list_comments\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005055,rev:4,msg:'ET WEB_SPECIFIC EasyMoblog SQL Injection Attempt -- list_comments.php i ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_EasyMoblog'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:i/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC EasyMoblog SQL Injection Attempt -- list_comments.php i ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006558) ET WEB_SPECIFIC EasyPage SQL Injection Attempt -- default.aspx docId
+SecRule REQUEST_URI_RAW "(?i:\/sptrees\/default\.aspx)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006558,rev:3,msg:'ET WEB_SPECIFIC EasyPage SQL Injection Attempt -- default.aspx docId ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_EasyPage'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:docId/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC EasyPage SQL Injection Attempt -- default.aspx docId ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005091) ET WEB_SPECIFIC Eclectic Designs CascadianFAQ SQL Injection Attempt -- index.php qid
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005091,rev:4,msg:'ET WEB_SPECIFIC Eclectic Designs CascadianFAQ SQL Injection Attempt -- index.php qid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Eclectic_Designs'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:qid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Eclectic Designs CascadianFAQ SQL Injection Attempt -- index.php qid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005115) ET WEB_SPECIFIC Eclectic Designs CascadianFAQ SQL Injection Attempt -- index.php catid
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005115,rev:4,msg:'ET WEB_SPECIFIC Eclectic Designs CascadianFAQ SQL Injection Attempt -- index.php catid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Eclectic_Designs'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:catid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Eclectic Designs CascadianFAQ SQL Injection Attempt -- index.php catid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005989) ET WEB_SPECIFIC Efkan Forum SQL Injection Attempt -- admin.asp grup
+SecRule REQUEST_URI_RAW "(?i:\/admin\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005989,rev:4,msg:'ET WEB_SPECIFIC Efkan Forum SQL Injection Attempt -- admin.asp grup ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Efkan'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:grup/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Efkan Forum SQL Injection Attempt -- admin.asp grup ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005995) ET WEB_SPECIFIC Efkan Forum SQL Injection Attempt -- default.asp id
+SecRule REQUEST_URI_RAW "(?i:\/default\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005995,rev:4,msg:'ET WEB_SPECIFIC Efkan Forum SQL Injection Attempt -- default.asp id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Efkan'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Efkan Forum SQL Injection Attempt -- default.asp id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006001) ET WEB_SPECIFIC Efkan Forum SQL Injection Attempt -- admin.asp id
+SecRule REQUEST_URI_RAW "(?i:\/admin\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006001,rev:4,msg:'ET WEB_SPECIFIC Efkan Forum SQL Injection Attempt -- admin.asp id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Efkan'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Efkan Forum SQL Injection Attempt -- admin.asp id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006163) ET WEB_SPECIFIC Efkan Forum SQL Injection Attempt -- default.asp grup
+SecRule REQUEST_URI_RAW "(?i:\/default\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006163,rev:4,msg:'ET WEB_SPECIFIC Efkan Forum SQL Injection Attempt -- default.asp grup ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Efkan'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:grup/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Efkan Forum SQL Injection Attempt -- default.asp grup ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006453) ET WEB_SPECIFIC Elxis CMS SQL Injection Attempt -- mod_banners.php
+SecRule REQUEST_URI_RAW "(?i:\/mod_banners\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006453,rev:4,msg:'ET WEB_SPECIFIC Elxis CMS SQL Injection Attempt -- mod_banners.php ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Elxis'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:.+\(.+SELECT)"
+
+# (sid 2006139) ET WEB_SPECIFIC Enthrallweb eMates SQL Injection Attempt -- newsdetail.asp ID
+SecRule REQUEST_URI_RAW "(?i:\/newsdetail\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006139,rev:4,msg:'ET WEB_SPECIFIC Enthrallweb eMates SQL Injection Attempt -- newsdetail.asp ID ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Enthrallweb'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:ID/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Enthrallweb eMates SQL Injection Attempt -- newsdetail.asp ID ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006151) ET WEB_SPECIFIC Enthrallweb eCars SQL Injection Attempt -- Types.asp Type_id
+SecRule REQUEST_URI_RAW "(?i:\/Types\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006151,rev:4,msg:'ET WEB_SPECIFIC Enthrallweb eCars SQL Injection Attempt -- Types.asp Type_id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Enthrallweb'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:Type_id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Enthrallweb eCars SQL Injection Attempt -- Types.asp Type_id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006157) ET WEB_SPECIFIC Enthrallweb ePages SQL Injection Attempt -- actualpic.asp Biz_ID
+SecRule REQUEST_URI_RAW "(?i:\/actualpic\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006157,rev:4,msg:'ET WEB_SPECIFIC Enthrallweb ePages SQL Injection Attempt -- actualpic.asp Biz_ID ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Enthrallweb'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:Biz_ID/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Enthrallweb ePages SQL Injection Attempt -- actualpic.asp Biz_ID ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007046) ET WEB_SPECIFIC Enthrallweb eClassifieds SQL Injection Attempt -- ad.asp AD_ID
+SecRule REQUEST_URI_RAW "(?i:\/ad\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007046,rev:4,msg:'ET WEB_SPECIFIC Enthrallweb eClassifieds SQL Injection Attempt -- ad.asp AD_ID ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Enthrallweb'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:AD_ID/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Enthrallweb eClassifieds SQL Injection Attempt -- ad.asp AD_ID ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007052) ET WEB_SPECIFIC Enthrallweb eClassifieds SQL Injection Attempt -- ad.asp cat_id
+SecRule REQUEST_URI_RAW "(?i:\/ad\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007052,rev:4,msg:'ET WEB_SPECIFIC Enthrallweb eClassifieds SQL Injection Attempt -- ad.asp cat_id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Enthrallweb'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:cat_id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Enthrallweb eClassifieds SQL Injection Attempt -- ad.asp cat_id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007058) ET WEB_SPECIFIC Enthrallweb eClassifieds SQL Injection Attempt -- ad.asp sub_id
+SecRule REQUEST_URI_RAW "(?i:\/ad\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007058,rev:4,msg:'ET WEB_SPECIFIC Enthrallweb eClassifieds SQL Injection Attempt -- ad.asp sub_id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Enthrallweb'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:sub_id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Enthrallweb eClassifieds SQL Injection Attempt -- ad.asp sub_id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007028) ET WEB_SPECIFIC Enthrallweb eClassifieds SQL Injection Attempt -- ad.asp ad_id
+SecRule REQUEST_URI_RAW "(?i:\/ad\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007028,rev:4,msg:'ET WEB_SPECIFIC Enthrallweb eClassifieds SQL Injection Attempt -- ad.asp ad_id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Enthrallweb'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:ad_id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Enthrallweb eClassifieds SQL Injection Attempt -- ad.asp ad_id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007034) ET WEB_SPECIFIC Enthrallweb eClassifieds SQL Injection Attempt -- dircat.asp cid
+SecRule REQUEST_URI_RAW "(?i:\/dircat\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007034,rev:4,msg:'ET WEB_SPECIFIC Enthrallweb eClassifieds SQL Injection Attempt -- dircat.asp cid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Enthrallweb'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:cid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Enthrallweb eClassifieds SQL Injection Attempt -- dircat.asp cid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007040) ET WEB_SPECIFIC Enthrallweb eClassifieds SQL Injection Attempt -- dirSub.asp sid
+SecRule REQUEST_URI_RAW "(?i:\/dirSub\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007040,rev:4,msg:'ET WEB_SPECIFIC Enthrallweb eClassifieds SQL Injection Attempt -- dirSub.asp sid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Enthrallweb'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:sid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Enthrallweb eClassifieds SQL Injection Attempt -- dirSub.asp sid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007080) ET WEB_SPECIFIC Enthrallweb eHomes SQL Injection Attempt -- dircat.asp cid
+SecRule REQUEST_URI_RAW "(?i:\/dircat\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007080,rev:3,msg:'ET WEB_SPECIFIC Enthrallweb eHomes SQL Injection Attempt -- dircat.asp cid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Enthrallweb'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:cid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Enthrallweb eHomes SQL Injection Attempt -- dircat.asp cid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007086) ET WEB_SPECIFIC Enthrallweb eHomes SQL Injection Attempt -- dirSub.asp sid
+SecRule REQUEST_URI_RAW "(?i:\/dirSub\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007086,rev:3,msg:'ET WEB_SPECIFIC Enthrallweb eHomes SQL Injection Attempt -- dirSub.asp sid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Enthrallweb'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:sid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Enthrallweb eHomes SQL Injection Attempt -- dirSub.asp sid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007092) ET WEB_SPECIFIC Enthrallweb eHomes SQL Injection Attempt -- types.asp TYPE_ID
+SecRule REQUEST_URI_RAW "(?i:\/types\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007092,rev:3,msg:'ET WEB_SPECIFIC Enthrallweb eHomes SQL Injection Attempt -- types.asp TYPE_ID ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Enthrallweb'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:TYPE_ID/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Enthrallweb eHomes SQL Injection Attempt -- types.asp TYPE_ID ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007098) ET WEB_SPECIFIC Enthrallweb eHomes SQL Injection Attempt -- homeDetail.asp AD_ID
+SecRule REQUEST_URI_RAW "(?i:\/homeDetail\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007098,rev:3,msg:'ET WEB_SPECIFIC Enthrallweb eHomes SQL Injection Attempt -- homeDetail.asp AD_ID ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Enthrallweb'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:AD_ID/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Enthrallweb eHomes SQL Injection Attempt -- homeDetail.asp AD_ID ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007104) ET WEB_SPECIFIC Enthrallweb eHomes SQL Injection Attempt -- result.asp cat
+SecRule REQUEST_URI_RAW "(?i:\/result\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007104,rev:3,msg:'ET WEB_SPECIFIC Enthrallweb eHomes SQL Injection Attempt -- result.asp cat ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Enthrallweb'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:cat/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Enthrallweb eHomes SQL Injection Attempt -- result.asp cat ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007110) ET WEB_SPECIFIC Enthrallweb eHomes SQL Injection Attempt -- compareHomes.asp compare
+SecRule REQUEST_URI_RAW "(?i:\/compareHomes\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007110,rev:3,msg:'ET WEB_SPECIFIC Enthrallweb eHomes SQL Injection Attempt -- compareHomes.asp compare ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Enthrallweb'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:compare/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Enthrallweb eHomes SQL Injection Attempt -- compareHomes.asp compare ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007116) ET WEB_SPECIFIC Enthrallweb eHomes SQL Injection Attempt -- compareHomes.asp clear
+SecRule REQUEST_URI_RAW "(?i:\/compareHomes\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007116,rev:3,msg:'ET WEB_SPECIFIC Enthrallweb eHomes SQL Injection Attempt -- compareHomes.asp clear ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Enthrallweb'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:clear/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Enthrallweb eHomes SQL Injection Attempt -- compareHomes.asp clear ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007122) ET WEB_SPECIFIC Enthrallweb eHomes SQL Injection Attempt -- compareHomes.asp adID
+SecRule REQUEST_URI_RAW "(?i:\/compareHomes\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007122,rev:3,msg:'ET WEB_SPECIFIC Enthrallweb eHomes SQL Injection Attempt -- compareHomes.asp adID ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Enthrallweb'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:adID/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Enthrallweb eHomes SQL Injection Attempt -- compareHomes.asp adID ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007128) ET WEB_SPECIFIC Enthrallweb eHomes SQL Injection Attempt -- result.asp aminprice
+SecRule REQUEST_URI_RAW "(?i:\/result\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007128,rev:3,msg:'ET WEB_SPECIFIC Enthrallweb eHomes SQL Injection Attempt -- result.asp aminprice ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Enthrallweb'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:aminprice/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Enthrallweb eHomes SQL Injection Attempt -- result.asp aminprice ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007134) ET WEB_SPECIFIC Enthrallweb eHomes SQL Injection Attempt -- result.asp amaxprice
+SecRule REQUEST_URI_RAW "(?i:\/result\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007134,rev:3,msg:'ET WEB_SPECIFIC Enthrallweb eHomes SQL Injection Attempt -- result.asp amaxprice ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Enthrallweb'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:amaxprice/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Enthrallweb eHomes SQL Injection Attempt -- result.asp amaxprice ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007140) ET WEB_SPECIFIC Enthrallweb eHomes SQL Injection Attempt -- result.asp abedrooms
+SecRule REQUEST_URI_RAW "(?i:\/result\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007140,rev:3,msg:'ET WEB_SPECIFIC Enthrallweb eHomes SQL Injection Attempt -- result.asp abedrooms ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Enthrallweb'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:abedrooms/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Enthrallweb eHomes SQL Injection Attempt -- result.asp abedrooms ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005260) ET WEB_SPECIFIC Enthusiast SQL Injection Attempt -- show_owned.php cat
+SecRule REQUEST_URI_RAW "(?i:\/show_owned\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005260,rev:4,msg:'ET WEB_SPECIFIC Enthusiast SQL Injection Attempt -- show_owned.php cat ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Enthusiast'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:cat/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Enthusiast SQL Injection Attempt -- show_owned.php cat ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005266) ET WEB_SPECIFIC Enthusiast SQL Injection Attempt -- show_joined.php cat
+SecRule REQUEST_URI_RAW "(?i:\/show_joined\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005266,rev:4,msg:'ET WEB_SPECIFIC Enthusiast SQL Injection Attempt -- show_joined.php cat ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Enthusiast'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:cat/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Enthusiast SQL Injection Attempt -- show_joined.php cat ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006223) ET WEB_SPECIFIC Eric GUILLAUME uploader&downloader SQL Injection Attempt -- administre2.php id_user
+SecRule REQUEST_URI_RAW "(?i:\/administration\/administre2\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006223,rev:4,msg:'ET WEB_SPECIFIC Eric GUILLAUME uploader&downloader SQL Injection Attempt -- administre2.php id_user ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Eric_Guillaume'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id_user/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Eric GUILLAUME uploader&downloader SQL Injection Attempt -- administre2.php id_user ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005881) ET WEB_SPECIFIC E-SMARTCART SQL Injection Attempt -- productdetail.asp product_id
+SecRule REQUEST_URI_RAW "(?i:\/productdetail\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005881,rev:4,msg:'ET WEB_SPECIFIC E-SMARTCART SQL Injection Attempt -- productdetail.asp product_id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Esmartcart'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:product_id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC E-SMARTCART SQL Injection Attempt -- productdetail.asp product_id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005340) ET WEB_SPECIFIC e-Vision CMS SQL Injection Attempt -- style.php template
+SecRule REQUEST_URI_RAW "(?i:\/style\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005340,rev:4,msg:'ET WEB_SPECIFIC e-Vision CMS SQL Injection Attempt -- style.php template ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Evision'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:template/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC e-Vision CMS SQL Injection Attempt -- style.php template ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007064) ET WEB_SPECIFIC Evolve shopping cart SQL Injection Attempt -- products.asp partno
+SecRule REQUEST_URI_RAW "(?i:\/products\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007064,rev:3,msg:'ET WEB_SPECIFIC Evolve shopping cart SQL Injection Attempt -- products.asp partno ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Evolve'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:partno/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Evolve shopping cart SQL Injection Attempt -- products.asp partno ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005085) ET WEB_SPECIFIC ExoPHPDesk SQL Injection Attempt -- faq.php id
+SecRule REQUEST_URI_RAW "(?i:\/faq\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005085,rev:4,msg:'ET WEB_SPECIFIC ExoPHPDesk SQL Injection Attempt -- faq.php id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_ExoPHPDesk'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC ExoPHPDesk SQL Injection Attempt -- faq.php id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006817) ET WEB_SPECIFIC Expinion.net iNews SQL Injection Attempt -- articles.asp ex
+SecRule REQUEST_URI_RAW "(?i:\/articles\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006817,rev:4,msg:'ET WEB_SPECIFIC Expinion.net iNews SQL Injection Attempt -- articles.asp ex ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Expinion.net'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:ex/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Expinion.net iNews SQL Injection Attempt -- articles.asp ex ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006343) ET WEB_SPECIFIC EzHRS HR Assist SQL Injection Attempt -- vdateUsr.asp
+SecRule REQUEST_URI_RAW "(?i:\/vdateUsr\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006343,rev:4,msg:'ET WEB_SPECIFIC EzHRS HR Assist SQL Injection Attempt -- vdateUsr.asp ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_EzHRS'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:\(.+SELECT)"
+
+# (sid 2005619) ET WEB_SPECIFIC Ezboxx Portal System Beta SQL Injection Attempt -- ShowAppendix.asp iid
+SecRule REQUEST_URI_RAW "(?i:\/boxx\/ShowAppendix\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005619,rev:4,msg:'ET WEB_SPECIFIC Ezboxx Portal System Beta SQL Injection Attempt -- ShowAppendix.asp iid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Ezboxx'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:iid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Ezboxx Portal System Beta SQL Injection Attempt -- ShowAppendix.asp iid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2003850) ET WEB_SPECIFIC FAQEngine SQL Injection Attempt -- question.php questionref
+SecRule REQUEST_URI_RAW "(?i:\/question\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2003850,rev:4,msg:'ET WEB_SPECIFIC FAQEngine SQL Injection Attempt -- question.php questionref ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_FAQEngine'"
+SecRule REQUEST_URI_RAW "@contains (" "chain"
+SecRule &TX:'/SQL_INJECTION.*ARGS:questionref/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC FAQEngine SQL Injection Attempt -- question.php questionref ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006127) ET WEB_SPECIFIC Mxmania File Upload Manager (FUM) SQL Injection Attempt -- detail.asp ID
+SecRule REQUEST_URI_RAW "(?i:\/detail\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006127,rev:4,msg:'ET WEB_SPECIFIC Mxmania File Upload Manager (FUM) SQL Injection Attempt -- detail.asp ID ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_FUM'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:ID/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Mxmania File Upload Manager (FUM) SQL Injection Attempt -- detail.asp ID ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006331) ET WEB_SPECIFIC Fantastic News SQL Injection Attempt -- news.php id
+SecRule REQUEST_URI_RAW "(?i:\/news\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006331,rev:4,msg:'ET WEB_SPECIFIC Fantastic News SQL Injection Attempt -- news.php id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Fantastic_News'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Fantastic News SQL Injection Attempt -- news.php id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2003792) ET WEB_SPECIFIC FileRun SQL Injection Attempt -- index.php fid
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2003792,rev:4,msg:'ET WEB_SPECIFIC FileRun SQL Injection Attempt -- index.php fid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_FileRun'"
+SecRule REQUEST_URI_RAW "@contains (" "chain"
+SecRule &TX:'/SQL_INJECTION.*ARGS:fid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC FileRun SQL Injection Attempt -- index.php fid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006902) ET WEB_SPECIFIC FipsSHOP SQL Injection Attempt -- index.asp cat
+SecRule REQUEST_URI_RAW "(?i:\/index\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006902,rev:4,msg:'ET WEB_SPECIFIC FipsSHOP SQL Injection Attempt -- index.asp cat ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_FipsSHOP'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:cat/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC FipsSHOP SQL Injection Attempt -- index.asp cat ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006908) ET WEB_SPECIFIC FipsSHOP SQL Injection Attempt -- index.asp did
+SecRule REQUEST_URI_RAW "(?i:\/index\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006908,rev:4,msg:'ET WEB_SPECIFIC FipsSHOP SQL Injection Attempt -- index.asp did ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_FipsSHOP'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:did/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC FipsSHOP SQL Injection Attempt -- index.asp did ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007186) ET WEB_SPECIFIC Fixit iDMS Pro Image Gallery SQL Injection Attempt -- filelist.asp show_id
+SecRule REQUEST_URI_RAW "(?i:\/filelist\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007186,rev:3,msg:'ET WEB_SPECIFIC Fixit iDMS Pro Image Gallery SQL Injection Attempt -- filelist.asp show_id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Fixit_iDMS'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:show_id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Fixit iDMS Pro Image Gallery SQL Injection Attempt -- filelist.asp show_id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007192) ET WEB_SPECIFIC Fixit iDMS Pro Image Gallery SQL Injection Attempt -- filelist.asp parentid
+SecRule REQUEST_URI_RAW "(?i:\/filelist\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007192,rev:3,msg:'ET WEB_SPECIFIC Fixit iDMS Pro Image Gallery SQL Injection Attempt -- filelist.asp parentid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Fixit_iDMS'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:parentid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Fixit iDMS Pro Image Gallery SQL Injection Attempt -- filelist.asp parentid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007198) ET WEB_SPECIFIC Fixit iDMS Pro Image Gallery SQL Injection Attempt -- showfile.asp fid
+SecRule REQUEST_URI_RAW "(?i:\/showfile\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007198,rev:3,msg:'ET WEB_SPECIFIC Fixit iDMS Pro Image Gallery SQL Injection Attempt -- showfile.asp fid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Fixit_iDMS'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:fid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Fixit iDMS Pro Image Gallery SQL Injection Attempt -- showfile.asp fid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2003827) ET WEB_SPECIFIC Flashgames SQL Injection Attempt -- game.php lid
+SecRule REQUEST_URI_RAW "(?i:\/game\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2003827,rev:4,msg:'ET WEB_SPECIFIC Flashgames SQL Injection Attempt -- game.php lid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Flashgames'"
+SecRule REQUEST_URI_RAW "@contains (" "chain"
+SecRule &TX:'/SQL_INJECTION.*ARGS:lid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Flashgames SQL Injection Attempt -- game.php lid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005150) ET WEB_SPECIFIC Forum Livre SQL Injection Attempt -- info_user.asp user
+SecRule REQUEST_URI_RAW "(?i:\/info_user\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005150,rev:4,msg:'ET WEB_SPECIFIC Forum Livre SQL Injection Attempt -- info_user.asp user ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Forum_Livre'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:user/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Forum Livre SQL Injection Attempt -- info_user.asp user ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004921) ET WEB_SPECIFIC Fullaspsite ASP Hosting Site SQL Injection Attempt -- listmain.asp cat
+SecRule REQUEST_URI_RAW "(?i:\/listmain\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004921,rev:4,msg:'ET WEB_SPECIFIC Fullaspsite ASP Hosting Site SQL Injection Attempt -- listmain.asp cat ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Fullaspsite'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:cat/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Fullaspsite ASP Hosting Site SQL Injection Attempt -- listmain.asp cat ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005079) ET WEB_SPECIFIC Fullaspsite Asp Hosting Sitesi SQL Injection Attempt -- windows.asp kategori_id
+SecRule REQUEST_URI_RAW "(?i:\/windows\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005079,rev:4,msg:'ET WEB_SPECIFIC Fullaspsite Asp Hosting Sitesi SQL Injection Attempt -- windows.asp kategori_id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Fullaspsite'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:kategori_id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Fullaspsite Asp Hosting Sitesi SQL Injection Attempt -- windows.asp kategori_id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005376) ET WEB_SPECIFIC Fullaspsite GeometriX Download Portal SQL Injection Attempt -- down_indir.asp id
+SecRule REQUEST_URI_RAW "(?i:\/down_indir\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005376,rev:4,msg:'ET WEB_SPECIFIC Fullaspsite GeometriX Download Portal SQL Injection Attempt -- down_indir.asp id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Fullaspsite'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Fullaspsite GeometriX Download Portal SQL Injection Attempt -- down_indir.asp id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006465) ET WEB_SPECIFIC FuseTalk SQL Injection Attempt -- index.cfm
+SecRule REQUEST_URI_RAW "(?i:\/index\.cfm)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006465,rev:4,msg:'ET WEB_SPECIFIC FuseTalk SQL Injection Attempt -- index.cfm ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Fusetalk'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:.+\(.+SELECT)"
+
+# (sid 2006471) ET WEB_SPECIFIC FuseTalk SQL Injection Attempt -- autherror.cfm errorcode
+SecRule REQUEST_URI_RAW "(?i:\/forum\/include\/error\/autherror\.cfm)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006471,rev:4,msg:'ET WEB_SPECIFIC FuseTalk SQL Injection Attempt -- autherror.cfm errorcode ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Fusetalk'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:errorcode/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC FuseTalk SQL Injection Attempt -- autherror.cfm errorcode ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006193) ET WEB_SPECIFIC Future Internet SQL Injection Attempt -- index.cfm newsId
+SecRule REQUEST_URI_RAW "(?i:\/index\.cfm)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006193,rev:4,msg:'ET WEB_SPECIFIC Future Internet SQL Injection Attempt -- index.cfm newsId ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Future_Internet'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:newsId/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Future Internet SQL Injection Attempt -- index.cfm newsId ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006199) ET WEB_SPECIFIC Future Internet SQL Injection Attempt -- index.cfm categoryid
+SecRule REQUEST_URI_RAW "(?i:\/index\.cfm)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006199,rev:4,msg:'ET WEB_SPECIFIC Future Internet SQL Injection Attempt -- index.cfm categoryid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Future_Internet'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:categoryid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Future Internet SQL Injection Attempt -- index.cfm categoryid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006205) ET WEB_SPECIFIC Future Internet SQL Injection Attempt -- index.cfm langId
+SecRule REQUEST_URI_RAW "(?i:\/index\.cfm)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006205,rev:4,msg:'ET WEB_SPECIFIC Future Internet SQL Injection Attempt -- index.cfm langId ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Future_Internet'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:langId/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Future Internet SQL Injection Attempt -- index.cfm langId ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005334) ET WEB_SPECIFIC Fuzzylime Forum SQL Injection Attempt -- low.php topic
+SecRule REQUEST_URI_RAW "(?i:\/low\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005334,rev:4,msg:'ET WEB_SPECIFIC Fuzzylime Forum SQL Injection Attempt -- low.php topic ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Fuzzylime'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:topic/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Fuzzylime Forum SQL Injection Attempt -- low.php topic ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004003) ET WEB_SPECIFIC Gazi Download Portal SQL Injection Attempt -- down_indir.asp id
+SecRule REQUEST_URI_RAW "(?i:\/down_indir\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004003,rev:4,msg:'ET WEB_SPECIFIC Gazi Download Portal SQL Injection Attempt -- down_indir.asp id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Gazi'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Gazi Download Portal SQL Injection Attempt -- down_indir.asp id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004401) ET WEB_SPECIFIC GaziYapBoz Game Portal SQL Injection Attempt -- kategori.asp kategori
+SecRule REQUEST_URI_RAW "(?i:\/kategori\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004401,rev:4,msg:'ET WEB_SPECIFIC GaziYapBoz Game Portal SQL Injection Attempt -- kategori.asp kategori ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_GaziYapBoz'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:kategori/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC GaziYapBoz Game Portal SQL Injection Attempt -- kategori.asp kategori ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005013) ET WEB_SPECIFIC GlobalMegaCorp dvddb SQL Injection Attempt -- common.php user
+SecRule REQUEST_URI_RAW "(?i:\/inc\/common\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005013,rev:4,msg:'ET WEB_SPECIFIC GlobalMegaCorp dvddb SQL Injection Attempt -- common.php user ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_GlobalMegaCorp'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:user/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC GlobalMegaCorp dvddb SQL Injection Attempt -- common.php user ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2003844) ET WEB_SPECIFIC Glossaire SQL Injection Attempt -- glossaire-p-f.php sid
+SecRule REQUEST_URI_RAW "(?i:\/glossaire\-p\-f\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2003844,rev:4,msg:'ET WEB_SPECIFIC Glossaire SQL Injection Attempt -- glossaire-p-f.php sid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Glossaire'"
+SecRule REQUEST_URI_RAW "@contains (" "chain"
+SecRule &TX:'/SQL_INJECTION.*ARGS:sid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Glossaire SQL Injection Attempt -- glossaire-p-f.php sid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004353) ET WEB_SPECIFIC Grayscale Blog SQL Injection Attempt -- userdetail.php id
+SecRule REQUEST_URI_RAW "(?i:\/userdetail\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004353,rev:4,msg:'ET WEB_SPECIFIC Grayscale Blog SQL Injection Attempt -- userdetail.php id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Grayscale_Blog'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Grayscale Blog SQL Injection Attempt -- userdetail.php id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004359) ET WEB_SPECIFIC Grayscale Blog SQL Injection Attempt -- jump.php id
+SecRule REQUEST_URI_RAW "(?i:\/jump\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004359,rev:4,msg:'ET WEB_SPECIFIC Grayscale Blog SQL Injection Attempt -- jump.php id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Grayscale_Blog'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Grayscale Blog SQL Injection Attempt -- jump.php id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004365) ET WEB_SPECIFIC Grayscale Blog SQL Injection Attempt -- detail.php id
+SecRule REQUEST_URI_RAW "(?i:\/detail\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004365,rev:4,msg:'ET WEB_SPECIFIC Grayscale Blog SQL Injection Attempt -- detail.php id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Grayscale_Blog'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Grayscale Blog SQL Injection Attempt -- detail.php id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004371) ET WEB_SPECIFIC Grayscale Blog SQL Injection Attempt -- jump.php url
+SecRule REQUEST_URI_RAW "(?i:\/jump\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004371,rev:4,msg:'ET WEB_SPECIFIC Grayscale Blog SQL Injection Attempt -- jump.php url ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Grayscale_Blog'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:url/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Grayscale Blog SQL Injection Attempt -- jump.php url ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005311) ET WEB_SPECIFIC Guo Xu Guos Posting System (GPS) SQL Injection Attempt -- print.asp id
+SecRule REQUEST_URI_RAW "(?i:\/print\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005311,rev:4,msg:'ET WEB_SPECIFIC Guo Xu Guos Posting System (GPS) SQL Injection Attempt -- print.asp id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Guo_Xu_Guos'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Guo Xu Guos Posting System (GPS) SQL Injection Attempt -- print.asp id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004395) ET WEB_SPECIFIC HC NEWSSYSTEM SQL Injection Attempt -- index.php ID
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004395,rev:4,msg:'ET WEB_SPECIFIC HC NEWSSYSTEM SQL Injection Attempt -- index.php ID ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_HC_News'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:ID/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC HC NEWSSYSTEM SQL Injection Attempt -- index.php ID ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007408) ET WEB_SPECIFIC HIOX Star Rating System Script (HSRS) SQL Injection Attempt -- addrating.php ipadd
+SecRule REQUEST_URI_RAW "(?i:\/addrating\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007408,rev:3,msg:'ET WEB_SPECIFIC HIOX Star Rating System Script (HSRS) SQL Injection Attempt -- addrating.php ipadd ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_HIOX'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:ipadd/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC HIOX Star Rating System Script (HSRS) SQL Injection Attempt -- addrating.php ipadd ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007414) ET WEB_SPECIFIC HIOX Star Rating System Script (HSRS) SQL Injection Attempt -- addrating.php url
+SecRule REQUEST_URI_RAW "(?i:\/addrating\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007414,rev:3,msg:'ET WEB_SPECIFIC HIOX Star Rating System Script (HSRS) SQL Injection Attempt -- addrating.php url ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_HIOX'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:url/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC HIOX Star Rating System Script (HSRS) SQL Injection Attempt -- addrating.php url ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004425) ET WEB_SPECIFIC Hazir Site SQL Injection Attempt -- giris_yap.asp sifre
+SecRule REQUEST_URI_RAW "(?i:\/giris_yap\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004425,rev:4,msg:'ET WEB_SPECIFIC Hazir Site SQL Injection Attempt -- giris_yap.asp sifre ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Hazir'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:sifre/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Hazir Site SQL Injection Attempt -- giris_yap.asp sifre ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004633) ET WEB_SPECIFIC Hunkaray Okul Portaly SQL Injection Attempt -- haberoku.asp id
+SecRule REQUEST_URI_RAW "(?i:\/haberoku\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004633,rev:4,msg:'ET WEB_SPECIFIC Hunkaray Okul Portaly SQL Injection Attempt -- haberoku.asp id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Hunkaray'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Hunkaray Okul Portaly SQL Injection Attempt -- haberoku.asp id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005067) ET WEB_SPECIFIC Hunkaray Duyuru Scripti SQL Injection Attempt -- oku.asp id
+SecRule REQUEST_URI_RAW "(?i:\/oku\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005067,rev:4,msg:'ET WEB_SPECIFIC Hunkaray Duyuru Scripti SQL Injection Attempt -- oku.asp id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Hunkaray'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Hunkaray Duyuru Scripti SQL Injection Attempt -- oku.asp id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005643) ET WEB_SPECIFIC Image Gallery with Access Database SQL Injection Attempt -- dispimage.asp id
+SecRule REQUEST_URI_RAW "(?i:\/dispimage\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005643,rev:4,msg:'ET WEB_SPECIFIC Image Gallery with Access Database SQL Injection Attempt -- dispimage.asp id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Image_Gallery'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Image Gallery with Access Database SQL Injection Attempt -- dispimage.asp id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005649) ET WEB_SPECIFIC Image Gallery with Access Database SQL Injection Attempt -- default.asp order
+SecRule REQUEST_URI_RAW "(?i:\/default\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005649,rev:4,msg:'ET WEB_SPECIFIC Image Gallery with Access Database SQL Injection Attempt -- default.asp order ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Image_Gallery'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:order/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Image Gallery with Access Database SQL Injection Attempt -- default.asp order ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005655) ET WEB_SPECIFIC Image Gallery with Access Database SQL Injection Attempt -- default.asp page
+SecRule REQUEST_URI_RAW "(?i:\/default\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005655,rev:4,msg:'ET WEB_SPECIFIC Image Gallery with Access Database SQL Injection Attempt -- default.asp page ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Image_Gallery'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:page/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Image Gallery with Access Database SQL Injection Attempt -- default.asp page ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006866) ET WEB_SPECIFIC Infinitytechs Restaurants CM SQL Injection Attempt -- rating.asp id
+SecRule REQUEST_URI_RAW "(?i:\/rating\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006866,rev:4,msg:'ET WEB_SPECIFIC Infinitytechs Restaurants CM SQL Injection Attempt -- rating.asp id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Infinitytechs'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Infinitytechs Restaurants CM SQL Injection Attempt -- rating.asp id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006872) ET WEB_SPECIFIC Infinitytechs Restaurants CM SQL Injection Attempt -- meal_rest.asp mealid
+SecRule REQUEST_URI_RAW "(?i:\/meal_rest\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006872,rev:4,msg:'ET WEB_SPECIFIC Infinitytechs Restaurants CM SQL Injection Attempt -- meal_rest.asp mealid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Infinitytechs'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:mealid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Infinitytechs Restaurants CM SQL Injection Attempt -- meal_rest.asp mealid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006878) ET WEB_SPECIFIC Infinitytechs Restaurants CM SQL Injection Attempt -- res_details.asp resid
+SecRule REQUEST_URI_RAW "(?i:\/res_details\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006878,rev:4,msg:'ET WEB_SPECIFIC Infinitytechs Restaurants CM SQL Injection Attempt -- res_details.asp resid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Infinitytechs'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:resid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Infinitytechs Restaurants CM SQL Injection Attempt -- res_details.asp resid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004801) ET WEB_SPECIFIC Invision Power Board (IPB) SQL Injection Attempt -- class_session.php CLIENT_IP
+SecRule REQUEST_URI_RAW "(?i:\/classes\/class_session\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004801,rev:4,msg:'ET WEB_SPECIFIC Invision Power Board (IPB) SQL Injection Attempt -- class_session.php CLIENT_IP ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Invision'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:CLIENT_IP/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Invision Power Board (IPB) SQL Injection Attempt -- class_session.php CLIENT_IP ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006673) ET WEB_SPECIFIC Invision Gallery SQL Injection Attempt -- post.php img
+SecRule REQUEST_URI_RAW "(?i:\/forum\/modules\/gallery\/post\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006673,rev:4,msg:'ET WEB_SPECIFIC Invision Gallery SQL Injection Attempt -- post.php img ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Invision'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:img/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Invision Gallery SQL Injection Attempt -- post.php img ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006679) ET WEB_SPECIFIC Invision Gallery SQL Injection Attempt -- index.php img
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006679,rev:4,msg:'ET WEB_SPECIFIC Invision Gallery SQL Injection Attempt -- index.php img ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Invision'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:img/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Invision Gallery SQL Injection Attempt -- index.php img ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006685) ET WEB_SPECIFIC Invision Community Blog Mod SQL Injection Attempt -- entry_reply_entry.php eid
+SecRule REQUEST_URI_RAW "(?i:\/lib\/entry_reply_entry\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006685,rev:4,msg:'ET WEB_SPECIFIC Invision Community Blog Mod SQL Injection Attempt -- entry_reply_entry.php eid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Invision'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:eid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Invision Community Blog Mod SQL Injection Attempt -- entry_reply_entry.php eid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006211) ET WEB_SPECIFIC Ixprim SQL Injection Attempt -- ixm_ixpnews.php story_id
+SecRule REQUEST_URI_RAW "(?i:\/ixm_ixpnews\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006211,rev:4,msg:'ET WEB_SPECIFIC Ixprim SQL Injection Attempt -- ixm_ixpnews.php story_id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Ixprim'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:story_id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Ixprim SQL Injection Attempt -- ixm_ixpnews.php story_id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005346) ET WEB_SPECIFIC Just For Fun Network Management System (JFFNMS) SQL Injection Attempt -- auth.php pass
+SecRule REQUEST_URI_RAW "(?i:\/auth\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005346,rev:4,msg:'ET WEB_SPECIFIC Just For Fun Network Management System (JFFNMS) SQL Injection Attempt -- auth.php pass ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_JFF_NM'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:pass/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Just For Fun Network Management System (JFFNMS) SQL Injection Attempt -- auth.php pass ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005364) ET WEB_SPECIFIC Just For Fun Network Management System (JFFNMS) SQL Injection Attempt -- auth.php user
+SecRule REQUEST_URI_RAW "(?i:\/auth\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005364,rev:4,msg:'ET WEB_SPECIFIC Just For Fun Network Management System (JFFNMS) SQL Injection Attempt -- auth.php user ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_JFF_NM'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:user/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Just For Fun Network Management System (JFFNMS) SQL Injection Attempt -- auth.php user ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005370) ET WEB_SPECIFIC Just For Fun Network Management System (JFFNMS) SQL Injection Attempt -- auth.php pass
+SecRule REQUEST_URI_RAW "(?i:\/auth\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005370,rev:4,msg:'ET WEB_SPECIFIC Just For Fun Network Management System (JFFNMS) SQL Injection Attempt -- auth.php pass ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_JFF_NM'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:pass/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Just For Fun Network Management System (JFFNMS) SQL Injection Attempt -- auth.php pass ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004156) ET WEB_SPECIFIC JGBBS SQL Injection Attempt -- search.asp title
+SecRule REQUEST_URI_RAW "(?i:\/search\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004156,rev:4,msg:'ET WEB_SPECIFIC JGBBS SQL Injection Attempt -- search.asp title ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_JGBBS'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:title/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC JGBBS SQL Injection Attempt -- search.asp title ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004341) ET WEB_SPECIFIC JGBBS SQL Injection Attempt -- search.asp author
+SecRule REQUEST_URI_RAW "(?i:\/search\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004341,rev:4,msg:'ET WEB_SPECIFIC JGBBS SQL Injection Attempt -- search.asp author ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_JGBBS'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:author/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC JGBBS SQL Injection Attempt -- search.asp author ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004484) ET WEB_SPECIFIC PHP JackKnife SQL Injection Attempt -- G_Display.php iCategoryUnq
+SecRule REQUEST_URI_RAW "(?i:\/G_Display\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004484,rev:4,msg:'ET WEB_SPECIFIC PHP JackKnife SQL Injection Attempt -- G_Display.php iCategoryUnq ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_JackKnife'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:iCategoryUnq/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC PHP JackKnife SQL Injection Attempt -- G_Display.php iCategoryUnq ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004490) ET WEB_SPECIFIC PHP JackKnife SQL Injection Attempt -- DisplayResults.php iSearchID
+SecRule REQUEST_URI_RAW "(?i:\/Search\/DisplayResults\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004490,rev:4,msg:'ET WEB_SPECIFIC PHP JackKnife SQL Injection Attempt -- DisplayResults.php iSearchID ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_JackKnife'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:iSearchID/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC PHP JackKnife SQL Injection Attempt -- DisplayResults.php iSearchID ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006496) ET WEB_SPECIFIC Jasmine CMS SQL Injection Attempt -- login.php login_username
+SecRule REQUEST_URI_RAW "(?i:\/login\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006496,rev:4,msg:'ET WEB_SPECIFIC Jasmine CMS SQL Injection Attempt -- login.php login_username ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Jasmine_CMS'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:login_username/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Jasmine CMS SQL Injection Attempt -- login.php login_username ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006502) ET WEB_SPECIFIC Jasmine CMS SQL Injection Attempt -- news.php item
+SecRule REQUEST_URI_RAW "(?i:\/news\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006502,rev:4,msg:'ET WEB_SPECIFIC Jasmine CMS SQL Injection Attempt -- news.php item ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Jasmine_CMS'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:item/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Jasmine CMS SQL Injection Attempt -- news.php item ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004081) ET WEB_SPECIFIC Jelsoft vBulletin SQL Injection Attempt -- attachment.php
+SecRule REQUEST_URI_RAW "(?i:\/admincp\/attachment\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004081,rev:4,msg:'ET WEB_SPECIFIC Jelsoft vBulletin SQL Injection Attempt -- attachment.php ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Jelsoft'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:.+\(.+SELECT)"
+
+# (sid 2004150) ET WEB_SPECIFIC Jelsoft vBulletin SQL Injection Attempt -- attachment.php
+SecRule REQUEST_URI_RAW "(?i:\/admincp\/attachment\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004150,rev:4,msg:'ET WEB_SPECIFIC Jelsoft vBulletin SQL Injection Attempt -- attachment.php ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Jelsoft'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:\(.+SELECT)"
+
+# (sid 2004670) ET WEB_SPECIFIC Jelsoft vBulletin SQL Injection Attempt -- inlinemod.php postids
+SecRule REQUEST_URI_RAW "(?i:\/inlinemod\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004670,rev:4,msg:'ET WEB_SPECIFIC Jelsoft vBulletin SQL Injection Attempt -- inlinemod.php postids ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Jelsoft'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:postids/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Jelsoft vBulletin SQL Injection Attempt -- inlinemod.php postids ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2003943) ET WEB_SPECIFIC Jetbox CMS SQL Injection Attempt -- main_page.php
+SecRule REQUEST_URI_RAW "(?i:\/main_page\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2003943,rev:4,msg:'ET WEB_SPECIFIC Jetbox CMS SQL Injection Attempt -- main_page.php ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Jetbox'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:.+\(.+SELECT)"
+
+# (sid 2003949) ET WEB_SPECIFIC Jetbox CMS SQL Injection Attempt -- open_tree.php
+SecRule REQUEST_URI_RAW "(?i:\/open_tree\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2003949,rev:4,msg:'ET WEB_SPECIFIC Jetbox CMS SQL Injection Attempt -- open_tree.php ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Jetbox'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:.+\(.+SELECT)"
+
+# (sid 2003955) ET WEB_SPECIFIC Jetbox CMS SQL Injection Attempt -- outputs.php
+SecRule REQUEST_URI_RAW "(?i:\/outputs\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2003955,rev:4,msg:'ET WEB_SPECIFIC Jetbox CMS SQL Injection Attempt -- outputs.php ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Jetbox'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:.+\(.+SELECT)"
+
+# (sid 2003961) ET WEB_SPECIFIC Jetbox CMS SQL Injection Attempt -- index.php view
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2003961,rev:4,msg:'ET WEB_SPECIFIC Jetbox CMS SQL Injection Attempt -- index.php view ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Jetbox'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:view/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Jetbox CMS SQL Injection Attempt -- index.php view ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2003967) ET WEB_SPECIFIC Jetbox CMS SQL Injection Attempt -- opentree.php id
+SecRule REQUEST_URI_RAW "(?i:\/admin\/cms\/opentree\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2003967,rev:4,msg:'ET WEB_SPECIFIC Jetbox CMS SQL Injection Attempt -- opentree.php id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Jetbox'"
+SecRule REQUEST_URI_RAW "@contains id[" "chain"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:.+\(.+SELECT)"
+
+# (sid 2003973) ET WEB_SPECIFIC Jetbox CMS SQL Injection Attempt -- index.php login
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2003973,rev:4,msg:'ET WEB_SPECIFIC Jetbox CMS SQL Injection Attempt -- index.php login ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Jetbox'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:login/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Jetbox CMS SQL Injection Attempt -- index.php login ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007348) ET WEB_SPECIFIC JiRos FAQ Manager SQL Injection Attempt -- index.asp tID
+SecRule REQUEST_URI_RAW "(?i:\/index\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007348,rev:3,msg:'ET WEB_SPECIFIC JiRos FAQ Manager SQL Injection Attempt -- index.asp tID ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Jiros'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:tID/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC JiRos FAQ Manager SQL Injection Attempt -- index.asp tID ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007354) ET WEB_SPECIFIC JiRos Links Manager SQL Injection Attempt -- openlink.asp LinkID
+SecRule REQUEST_URI_RAW "(?i:\/openlink\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007354,rev:3,msg:'ET WEB_SPECIFIC JiRos Links Manager SQL Injection Attempt -- openlink.asp LinkID ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Jiros'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:LinkID/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC JiRos Links Manager SQL Injection Attempt -- openlink.asp LinkID ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007360) ET WEB_SPECIFIC JiRos Links Manager SQL Injection Attempt -- viewlinks.asp CategoryID
+SecRule REQUEST_URI_RAW "(?i:\/viewlinks\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007360,rev:3,msg:'ET WEB_SPECIFIC JiRos Links Manager SQL Injection Attempt -- viewlinks.asp CategoryID ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Jiros'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:CategoryID/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC JiRos Links Manager SQL Injection Attempt -- viewlinks.asp CategoryID ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004377) ET WEB_SPECIFIC PHP Labs JobSitePro SQL Injection Attempt -- search.php salary
+SecRule REQUEST_URI_RAW "(?i:\/search\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004377,rev:4,msg:'ET WEB_SPECIFIC PHP Labs JobSitePro SQL Injection Attempt -- search.php salary ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Jobsitepro'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:salary/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC PHP Labs JobSitePro SQL Injection Attempt -- search.php salary ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2003762) ET WEB_SPECIFIC John Mordo Jobs SQL Injection Attempt -- index.php cid
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2003762,rev:4,msg:'ET WEB_SPECIFIC John Mordo Jobs SQL Injection Attempt -- index.php cid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_John_Mordo'"
+SecRule REQUEST_URI_RAW "@contains (" "chain"
+SecRule &TX:'/SQL_INJECTION.*ARGS:cid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC John Mordo Jobs SQL Injection Attempt -- index.php cid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005296) ET WEB_SPECIFIC Joomla! SQL Injection Attempt -- category.php catid
+SecRule REQUEST_URI_RAW "(?i:\/models\/category\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005296,rev:4,msg:'ET WEB_SPECIFIC Joomla! SQL Injection Attempt -- category.php catid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Joomla'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:catid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Joomla! SQL Injection Attempt -- category.php catid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005302) ET WEB_SPECIFIC Joomla! SQL Injection Attempt -- letterman.class.php id
+SecRule REQUEST_URI_RAW "(?i:\/letterman\.class\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005302,rev:4,msg:'ET WEB_SPECIFIC Joomla! SQL Injection Attempt -- letterman.class.php id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Joomla'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Joomla! SQL Injection Attempt -- letterman.class.php id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005394) ET WEB_SPECIFIC Joomla! SQL Injection Attempt -- example.php
+SecRule REQUEST_URI_RAW "(?i:\/plugins\/user\/example\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005394,rev:4,msg:'ET WEB_SPECIFIC Joomla! SQL Injection Attempt -- example.php ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Joomla'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:\(.+SELECT)"
+
+# (sid 2005400) ET WEB_SPECIFIC Joomla! SQL Injection Attempt -- gmail.php
+SecRule REQUEST_URI_RAW "(?i:\/gmail\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005400,rev:4,msg:'ET WEB_SPECIFIC Joomla! SQL Injection Attempt -- gmail.php ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Joomla'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:\(.+SELECT)"
+
+# (sid 2005406) ET WEB_SPECIFIC Joomla! SQL Injection Attempt -- example.php
+SecRule REQUEST_URI_RAW "(?i:\/example\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005406,rev:4,msg:'ET WEB_SPECIFIC Joomla! SQL Injection Attempt -- example.php ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Joomla'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:\(.+SELECT)"
+
+# (sid 2005412) ET WEB_SPECIFIC Joomla! SQL Injection Attempt -- ldap.php
+SecRule REQUEST_URI_RAW "(?i:\/plugins\/authentication\/ldap\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005412,rev:4,msg:'ET WEB_SPECIFIC Joomla! SQL Injection Attempt -- ldap.php ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Joomla'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:\(.+SELECT)"
+
+# (sid 2005418) ET WEB_SPECIFIC Joomla! SQL Injection Attempt -- menu.php
+SecRule REQUEST_URI_RAW "(?i:\/modules\/mod_mainmenu\/menu\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005418,rev:4,msg:'ET WEB_SPECIFIC Joomla! SQL Injection Attempt -- menu.php ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Joomla'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:\(.+SELECT)"
+
+# (sid 2005424) ET WEB_SPECIFIC Joomla! SQL Injection Attempt -- content.php where
+SecRule REQUEST_URI_RAW "(?i:\/plugins\/search\/content\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005424,rev:4,msg:'ET WEB_SPECIFIC Joomla! SQL Injection Attempt -- content.php where ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Joomla'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:where/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Joomla! SQL Injection Attempt -- content.php where ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005430) ET WEB_SPECIFIC Joomla! SQL Injection Attempt -- weblinks.php where
+SecRule REQUEST_URI_RAW "(?i:\/plugins\/search\/weblinks\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005430,rev:4,msg:'ET WEB_SPECIFIC Joomla! SQL Injection Attempt -- weblinks.php where ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Joomla'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:where/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Joomla! SQL Injection Attempt -- weblinks.php where ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005436) ET WEB_SPECIFIC Joomla! SQL Injection Attempt -- contacts.php text
+SecRule REQUEST_URI_RAW "(?i:\/plugins\/search\/contacts\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005436,rev:4,msg:'ET WEB_SPECIFIC Joomla! SQL Injection Attempt -- contacts.php text ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Joomla'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:text/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Joomla! SQL Injection Attempt -- contacts.php text ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005442) ET WEB_SPECIFIC Joomla! SQL Injection Attempt -- categories.php text
+SecRule REQUEST_URI_RAW "(?i:\/plugins\/search\/categories\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005442,rev:4,msg:'ET WEB_SPECIFIC Joomla! SQL Injection Attempt -- categories.php text ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Joomla'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:text/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Joomla! SQL Injection Attempt -- categories.php text ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005448) ET WEB_SPECIFIC Joomla! SQL Injection Attempt -- sections.php text
+SecRule REQUEST_URI_RAW "(?i:\/plugins\/search\/sections\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005448,rev:4,msg:'ET WEB_SPECIFIC Joomla! SQL Injection Attempt -- sections.php text ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Joomla'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:text/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Joomla! SQL Injection Attempt -- sections.php text ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005454) ET WEB_SPECIFIC Joomla! SQL Injection Attempt -- user.php email
+SecRule REQUEST_URI_RAW "(?i:\/database\/table\/user\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005454,rev:4,msg:'ET WEB_SPECIFIC Joomla! SQL Injection Attempt -- user.php email ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Joomla'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:email/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Joomla! SQL Injection Attempt -- user.php email ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006764) ET WEB_SPECIFIC KLF-DESIGN (aka Kim L. Fraser) KLF-REALTY SQL Injection Attempt -- search_listing.asp category
+SecRule REQUEST_URI_RAW "(?i:\/search_listing\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006764,rev:4,msg:'ET WEB_SPECIFIC KLF-DESIGN (aka Kim L. Fraser) KLF-REALTY SQL Injection Attempt -- search_listing.asp category ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_KLF_Design'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:category/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC KLF-DESIGN (aka Kim L. Fraser) KLF-REALTY SQL Injection Attempt -- search_listing.asp category ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006770) ET WEB_SPECIFIC KLF-DESIGN (aka Kim L. Fraser) KLF-REALTY SQL Injection Attempt -- search_listing.asp agent
+SecRule REQUEST_URI_RAW "(?i:\/search_listing\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006770,rev:4,msg:'ET WEB_SPECIFIC KLF-DESIGN (aka Kim L. Fraser) KLF-REALTY SQL Injection Attempt -- search_listing.asp agent ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_KLF_Design'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:agent/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC KLF-DESIGN (aka Kim L. Fraser) KLF-REALTY SQL Injection Attempt -- search_listing.asp agent ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006776) ET WEB_SPECIFIC KLF-DESIGN (aka Kim L. Fraser) KLF-REALTY SQL Injection Attempt -- detail.asp property_id
+SecRule REQUEST_URI_RAW "(?i:\/detail\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006776,rev:4,msg:'ET WEB_SPECIFIC KLF-DESIGN (aka Kim L. Fraser) KLF-REALTY SQL Injection Attempt -- detail.asp property_id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_KLF_Design'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:property_id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC KLF-DESIGN (aka Kim L. Fraser) KLF-REALTY SQL Injection Attempt -- detail.asp property_id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004645) ET WEB_SPECIFIC Kartli Alisveris Sistemi SQL Injection Attempt -- news.asp news_id
+SecRule REQUEST_URI_RAW "(?i:\/news\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004645,rev:4,msg:'ET WEB_SPECIFIC Kartli Alisveris Sistemi SQL Injection Attempt -- news.asp news_id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Kartli'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:news_id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Kartli Alisveris Sistemi SQL Injection Attempt -- news.asp news_id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004126) ET WEB_SPECIFIC Katalog Plyt Audio SQL Injection Attempt -- index.php kolumna
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004126,rev:4,msg:'ET WEB_SPECIFIC Katalog Plyt Audio SQL Injection Attempt -- index.php kolumna ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Katalog_Plyt'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:kolumna/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Katalog Plyt Audio SQL Injection Attempt -- index.php kolumna ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004983) ET WEB_SPECIFIC Kisisel Site 2007 SQL Injection Attempt -- forum.asp forumid
+SecRule REQUEST_URI_RAW "(?i:\/forum\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004983,rev:4,msg:'ET WEB_SPECIFIC Kisisel Site 2007 SQL Injection Attempt -- forum.asp forumid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Kisisel'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:forumid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Kisisel Site 2007 SQL Injection Attempt -- forum.asp forumid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005800) ET WEB_SPECIFIC Kolayindir Download (Yenionline) SQL Injection Attempt -- down.asp id
+SecRule REQUEST_URI_RAW "(?i:\/down\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005800,rev:4,msg:'ET WEB_SPECIFIC Kolayindir Download (Yenionline) SQL Injection Attempt -- down.asp id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Kolayindir'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Kolayindir Download (Yenionline) SQL Injection Attempt -- down.asp id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004693) ET WEB_SPECIFIC Kubix SQL Injection Attempt -- index.php member_id
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004693,rev:4,msg:'ET WEB_SPECIFIC Kubix SQL Injection Attempt -- index.php member_id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Kubix'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:member_id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Kubix SQL Injection Attempt -- index.php member_id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005073) ET WEB_SPECIFIC Michelles L2J Dropcalc SQL Injection Attempt -- i-search.php itemid
+SecRule REQUEST_URI_RAW "(?i:\/i\-search\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005073,rev:4,msg:'ET WEB_SPECIFIC Michelles L2J Dropcalc SQL Injection Attempt -- i-search.php itemid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_L2J_DropCalc'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:itemid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Michelles L2J Dropcalc SQL Injection Attempt -- i-search.php itemid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005977) ET WEB_SPECIFIC Neocrome Land Down Under (LDU) SQL Injection Attempt -- journal.php w
+SecRule REQUEST_URI_RAW "(?i:\/journal\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005977,rev:4,msg:'ET WEB_SPECIFIC Neocrome Land Down Under (LDU) SQL Injection Attempt -- journal.php w ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_LDU'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:w/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Neocrome Land Down Under (LDU) SQL Injection Attempt -- journal.php w ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006319) ET WEB_SPECIFIC Neocrome Land Down Under (LDU) SQL Injection Attempt -- polls.php id
+SecRule REQUEST_URI_RAW "(?i:\/polls\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006319,rev:4,msg:'ET WEB_SPECIFIC Neocrome Land Down Under (LDU) SQL Injection Attempt -- polls.php id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_LDU'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Neocrome Land Down Under (LDU) SQL Injection Attempt -- polls.php id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004527) ET WEB_SPECIFIC LI-Guestbook SQL Injection Attempt -- guestbook.php country
+SecRule REQUEST_URI_RAW "(?i:\/guestbook\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004527,rev:4,msg:'ET WEB_SPECIFIC LI-Guestbook SQL Injection Attempt -- guestbook.php country ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_LI_Guestbook'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:country/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC LI-Guestbook SQL Injection Attempt -- guestbook.php country ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007298) ET WEB_SPECIFIC Doug Luxem Liberum Help Desk SQL Injection Attempt -- status.asp id
+SecRule REQUEST_URI_RAW "(?i:\/inout\/status\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007298,rev:3,msg:'ET WEB_SPECIFIC Doug Luxem Liberum Help Desk SQL Injection Attempt -- status.asp id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Liberum'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Doug Luxem Liberum Help Desk SQL Injection Attempt -- status.asp id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007304) ET WEB_SPECIFIC Doug Luxem Liberum Help Desk SQL Injection Attempt -- update.asp id
+SecRule REQUEST_URI_RAW "(?i:\/inout\/update\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007304,rev:3,msg:'ET WEB_SPECIFIC Doug Luxem Liberum Help Desk SQL Injection Attempt -- update.asp id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Liberum'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Doug Luxem Liberum Help Desk SQL Injection Attempt -- update.asp id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007310) ET WEB_SPECIFIC Doug Luxem Liberum Help Desk SQL Injection Attempt -- forgotpass.asp id
+SecRule REQUEST_URI_RAW "(?i:\/forgotpass\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007310,rev:3,msg:'ET WEB_SPECIFIC Doug Luxem Liberum Help Desk SQL Injection Attempt -- forgotpass.asp id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Liberum'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Doug Luxem Liberum Help Desk SQL Injection Attempt -- forgotpass.asp id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007316) ET WEB_SPECIFIC Doug Luxem Liberum Help Desk SQL Injection Attempt -- forgotpass.asp uid
+SecRule REQUEST_URI_RAW "(?i:\/forgotpass\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007316,rev:3,msg:'ET WEB_SPECIFIC Doug Luxem Liberum Help Desk SQL Injection Attempt -- forgotpass.asp uid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Liberum'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:uid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Doug Luxem Liberum Help Desk SQL Injection Attempt -- forgotpass.asp uid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007322) ET WEB_SPECIFIC Doug Luxem Liberum Help Desk SQL Injection Attempt -- update.asp uid
+SecRule REQUEST_URI_RAW "(?i:\/inout\/update\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007322,rev:3,msg:'ET WEB_SPECIFIC Doug Luxem Liberum Help Desk SQL Injection Attempt -- update.asp uid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Liberum'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:uid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Doug Luxem Liberum Help Desk SQL Injection Attempt -- update.asp uid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007328) ET WEB_SPECIFIC Doug Luxem Liberum Help Desk SQL Injection Attempt -- status.asp uid
+SecRule REQUEST_URI_RAW "(?i:\/inout\/status\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007328,rev:3,msg:'ET WEB_SPECIFIC Doug Luxem Liberum Help Desk SQL Injection Attempt -- status.asp uid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Liberum'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:uid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Doug Luxem Liberum Help Desk SQL Injection Attempt -- status.asp uid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007334) ET WEB_SPECIFIC Doug Luxem Liberum Help Desk SQL Injection Attempt -- details.asp id
+SecRule REQUEST_URI_RAW "(?i:\/details\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007334,rev:3,msg:'ET WEB_SPECIFIC Doug Luxem Liberum Help Desk SQL Injection Attempt -- details.asp id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Liberum'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Doug Luxem Liberum Help Desk SQL Injection Attempt -- details.asp id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006661) ET WEB_SPECIFIC LINK Content Management Server (CMS) SQL Injection Attempt -- navigacija.php IDMeniGlavni
+SecRule REQUEST_URI_RAW "(?i:\/navigacija\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006661,rev:4,msg:'ET WEB_SPECIFIC LINK Content Management Server (CMS) SQL Injection Attempt -- navigacija.php IDMeniGlavni ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Link_CMS'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:IDMeniGlavni/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC LINK Content Management Server (CMS) SQL Injection Attempt -- navigacija.php IDMeniGlavni ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006667) ET WEB_SPECIFIC LINK Content Management Server (CMS) SQL Injection Attempt -- prikazInformacije.php IDStranicaPodaci
+SecRule REQUEST_URI_RAW "(?i:\/prikazInformacije\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006667,rev:4,msg:'ET WEB_SPECIFIC LINK Content Management Server (CMS) SQL Injection Attempt -- prikazInformacije.php IDStranicaPodaci ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Link_CMS'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:IDStranicaPodaci/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC LINK Content Management Server (CMS) SQL Injection Attempt -- prikazInformacije.php IDStranicaPodaci ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007366) ET WEB_SPECIFIC Link Exchange Lite SQL Injection Attempt -- linkslist.asp psearch
+SecRule REQUEST_URI_RAW "(?i:\/linkslist\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007366,rev:3,msg:'ET WEB_SPECIFIC Link Exchange Lite SQL Injection Attempt -- linkslist.asp psearch ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Link_Exchange_Lite'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:psearch/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Link Exchange Lite SQL Injection Attempt -- linkslist.asp psearch ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007372) ET WEB_SPECIFIC Link Exchange Lite SQL Injection Attempt -- search.asp
+SecRule REQUEST_URI_RAW "(?i:\/search\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007372,rev:3,msg:'ET WEB_SPECIFIC Link Exchange Lite SQL Injection Attempt -- search.asp ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Link_Exchange_Lite'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:.+\(.+SELECT)"
+
+# (sid 2004413) ET WEB_SPECIFIC Links Management Application SQL Injection Attempt -- index.php lcnt
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004413,rev:4,msg:'ET WEB_SPECIFIC Links Management Application SQL Injection Attempt -- index.php lcnt ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Links_Management'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:lcnt/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Links Management Application SQL Injection Attempt -- index.php lcnt ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006477) ET WEB_SPECIFIC LiveCMS SQL Injection Attempt -- categoria.php cid
+SecRule REQUEST_URI_RAW "(?i:\/categoria\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006477,rev:4,msg:'ET WEB_SPECIFIC LiveCMS SQL Injection Attempt -- categoria.php cid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_LiveCMS'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:cid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC LiveCMS SQL Injection Attempt -- categoria.php cid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005833) ET WEB_SPECIFIC LocazoList SQL Injection Attempt -- main.asp subcatID
+SecRule REQUEST_URI_RAW "(?i:\/main\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005833,rev:4,msg:'ET WEB_SPECIFIC LocazoList SQL Injection Attempt -- main.asp subcatID ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_LocazoList'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:subcatID/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC LocazoList SQL Injection Attempt -- main.asp subcatID ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006325) ET WEB_SPECIFIC Lotfian Request For Travel SQL Injection Attempt -- ProductDetails.asp PID
+SecRule REQUEST_URI_RAW "(?i:\/ProductDetails\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006325,rev:4,msg:'ET WEB_SPECIFIC Lotfian Request For Travel SQL Injection Attempt -- ProductDetails.asp PID ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Lotfian'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:PID/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Lotfian Request For Travel SQL Injection Attempt -- ProductDetails.asp PID ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004965) ET WEB_SPECIFIC LushiNews SQL Injection Attempt -- comments.php id
+SecRule REQUEST_URI_RAW "(?i:\/comments\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004965,rev:4,msg:'ET WEB_SPECIFIC LushiNews SQL Injection Attempt -- comments.php id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Lushi'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC LushiNews SQL Injection Attempt -- comments.php id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004971) ET WEB_SPECIFIC LushiWarPlaner SQL Injection Attempt -- register.php id
+SecRule REQUEST_URI_RAW "(?i:\/register\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004971,rev:4,msg:'ET WEB_SPECIFIC LushiWarPlaner SQL Injection Attempt -- register.php id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Lushi'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC LushiWarPlaner SQL Injection Attempt -- register.php id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005139) ET WEB_SPECIFIC MAXdev MDPro SQL Injection Attempt -- index.php startrow
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005139,rev:4,msg:'ET WEB_SPECIFIC MAXdev MDPro SQL Injection Attempt -- index.php startrow ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_MDPro'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:startrow/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC MAXdev MDPro SQL Injection Attempt -- index.php startrow ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005516) ET WEB_SPECIFIC MGB OpenSource Guestbook SQL Injection Attempt -- email.php id
+SecRule REQUEST_URI_RAW "(?i:\/email\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005516,rev:4,msg:'ET WEB_SPECIFIC MGB OpenSource Guestbook SQL Injection Attempt -- email.php id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_MGB'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC MGB OpenSource Guestbook SQL Injection Attempt -- email.php id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006229) ET WEB_SPECIFIC MGinternet Property Site Manager SQL Injection Attempt -- detail.asp p
+SecRule REQUEST_URI_RAW "(?i:\/detail\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006229,rev:4,msg:'ET WEB_SPECIFIC MGinternet Property Site Manager SQL Injection Attempt -- detail.asp p ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_MGinternet'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:p/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC MGinternet Property Site Manager SQL Injection Attempt -- detail.asp p ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006235) ET WEB_SPECIFIC MGinternet Property Site Manager SQL Injection Attempt -- listings.asp l
+SecRule REQUEST_URI_RAW "(?i:\/listings\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006235,rev:4,msg:'ET WEB_SPECIFIC MGinternet Property Site Manager SQL Injection Attempt -- listings.asp l ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_MGinternet'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:l/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC MGinternet Property Site Manager SQL Injection Attempt -- listings.asp l ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006241) ET WEB_SPECIFIC MGinternet Property Site Manager SQL Injection Attempt -- listings.asp typ
+SecRule REQUEST_URI_RAW "(?i:\/listings\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006241,rev:4,msg:'ET WEB_SPECIFIC MGinternet Property Site Manager SQL Injection Attempt -- listings.asp typ ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_MGinternet'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:typ/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC MGinternet Property Site Manager SQL Injection Attempt -- listings.asp typ ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006247) ET WEB_SPECIFIC MGinternet Property Site Manager SQL Injection Attempt -- listings.asp loc
+SecRule REQUEST_URI_RAW "(?i:\/listings\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006247,rev:4,msg:'ET WEB_SPECIFIC MGinternet Property Site Manager SQL Injection Attempt -- listings.asp loc ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_MGinternet'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:loc/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC MGinternet Property Site Manager SQL Injection Attempt -- listings.asp loc ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2003991) ET WEB_SPECIFIC Mambo SQL Injection Attempt -- index.php listid
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2003991,rev:4,msg:'ET WEB_SPECIFIC Mambo SQL Injection Attempt -- index.php listid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Mambo'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:listid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Mambo SQL Injection Attempt -- index.php listid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004431) ET WEB_SPECIFIC Mambo SQL Injection Attempt -- moscomment.php mcname
+SecRule REQUEST_URI_RAW "(?i:\/moscomment\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004431,rev:4,msg:'ET WEB_SPECIFIC Mambo SQL Injection Attempt -- moscomment.php mcname ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Mambo'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:mcname/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Mambo SQL Injection Attempt -- moscomment.php mcname ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004437) ET WEB_SPECIFIC Mambo SQL Injection Attempt -- com_comment.php mcname
+SecRule REQUEST_URI_RAW "(?i:\/com_comment\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004437,rev:4,msg:'ET WEB_SPECIFIC Mambo SQL Injection Attempt -- com_comment.php mcname ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Mambo'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:mcname/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Mambo SQL Injection Attempt -- com_comment.php mcname ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004770) ET WEB_SPECIFIC Mambo LaiThai SQL Injection Attempt -- mambo.php
+SecRule REQUEST_URI_RAW "(?i:\/includes\/mambo\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004770,rev:4,msg:'ET WEB_SPECIFIC Mambo LaiThai SQL Injection Attempt -- mambo.php ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Mambo'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:\(.+SELECT)"
+
+# (sid 2005145) ET WEB_SPECIFIC Martyn Kilbryde Newsposter Script SQL Injection Attempt -- news_page.asp uid
+SecRule REQUEST_URI_RAW "(?i:\/news_page\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005145,rev:4,msg:'ET WEB_SPECIFIC Martyn Kilbryde Newsposter Script SQL Injection Attempt -- news_page.asp uid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Martyn_Kilbryde_Newsposter'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:uid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Martyn Kilbryde Newsposter Script SQL Injection Attempt -- news_page.asp uid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004269) ET WEB_SPECIFIC Koan Software Mega Mall SQL Injection Attempt -- product_review.php x
+SecRule REQUEST_URI_RAW "(?i:\/product_review\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004269,rev:4,msg:'ET WEB_SPECIFIC Koan Software Mega Mall SQL Injection Attempt -- product_review.php x ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Mega_Mall'"
+SecRule REQUEST_URI_RAW "@contains x[" "chain"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:\(.+SELECT)"
+
+# (sid 2004275) ET WEB_SPECIFIC Koan Software Mega Mall SQL Injection Attempt -- product_review.php t
+SecRule REQUEST_URI_RAW "(?i:\/product_review\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004275,rev:4,msg:'ET WEB_SPECIFIC Koan Software Mega Mall SQL Injection Attempt -- product_review.php t ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Mega_Mall'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:t/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Koan Software Mega Mall SQL Injection Attempt -- product_review.php t ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004281) ET WEB_SPECIFIC Koan Software Mega Mall SQL Injection Attempt -- product_review.php productId
+SecRule REQUEST_URI_RAW "(?i:\/product_review\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004281,rev:4,msg:'ET WEB_SPECIFIC Koan Software Mega Mall SQL Injection Attempt -- product_review.php productId ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Mega_Mall'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:productId/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Koan Software Mega Mall SQL Injection Attempt -- product_review.php productId ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004287) ET WEB_SPECIFIC Koan Software Mega Mall SQL Injection Attempt -- product_review.php sk
+SecRule REQUEST_URI_RAW "(?i:\/product_review\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004287,rev:4,msg:'ET WEB_SPECIFIC Koan Software Mega Mall SQL Injection Attempt -- product_review.php sk ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Mega_Mall'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:sk/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Koan Software Mega Mall SQL Injection Attempt -- product_review.php sk ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004293) ET WEB_SPECIFIC Koan Software Mega Mall SQL Injection Attempt -- product_review.php x
+SecRule REQUEST_URI_RAW "(?i:\/product_review\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004293,rev:4,msg:'ET WEB_SPECIFIC Koan Software Mega Mall SQL Injection Attempt -- product_review.php x ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Mega_Mall'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:x/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Koan Software Mega Mall SQL Injection Attempt -- product_review.php x ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004299) ET WEB_SPECIFIC Koan Software Mega Mall SQL Injection Attempt -- product_review.php so
+SecRule REQUEST_URI_RAW "(?i:\/product_review\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004299,rev:4,msg:'ET WEB_SPECIFIC Koan Software Mega Mall SQL Injection Attempt -- product_review.php so ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Mega_Mall'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:so/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Koan Software Mega Mall SQL Injection Attempt -- product_review.php so ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004305) ET WEB_SPECIFIC Koan Software Mega Mall SQL Injection Attempt -- order-track.php orderNo
+SecRule REQUEST_URI_RAW "(?i:\/order\-track\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004305,rev:4,msg:'ET WEB_SPECIFIC Koan Software Mega Mall SQL Injection Attempt -- order-track.php orderNo ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Mega_Mall'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:orderNo/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Koan Software Mega Mall SQL Injection Attempt -- order-track.php orderNo ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006349) ET WEB_SPECIFIC Messageriescripthp SQL Injection Attempt -- lire-avis.php aa
+SecRule REQUEST_URI_RAW "(?i:\/lire\-avis\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006349,rev:4,msg:'ET WEB_SPECIFIC Messageriescripthp SQL Injection Attempt -- lire-avis.php aa ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Messageriescripthp'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:aa/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Messageriescripthp SQL Injection Attempt -- lire-avis.php aa ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006799) ET WEB_SPECIFIC Metyus Okul Yonetim Sistemi SQL Injection Attempt -- uye_giris_islem.asp kullanici_ismi
+SecRule REQUEST_URI_RAW "(?i:\/uye_giris_islem\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006799,rev:4,msg:'ET WEB_SPECIFIC Metyus Okul Yonetim Sistemi SQL Injection Attempt -- uye_giris_islem.asp kullanici_ismi ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Metyus'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:kullanici_ismi/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Metyus Okul Yonetim Sistemi SQL Injection Attempt -- uye_giris_islem.asp kullanici_ismi ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006805) ET WEB_SPECIFIC Metyus Okul Yonetim Sistemi SQL Injection Attempt -- uye_giris_islem.asp sifre
+SecRule REQUEST_URI_RAW "(?i:\/uye_giris_islem\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006805,rev:4,msg:'ET WEB_SPECIFIC Metyus Okul Yonetim Sistemi SQL Injection Attempt -- uye_giris_islem.asp sifre ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Metyus'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:sifre/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Metyus Okul Yonetim Sistemi SQL Injection Attempt -- uye_giris_islem.asp sifre ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005607) ET WEB_SPECIFIC MiNT Haber Sistemi SQL Injection Attempt -- duyuru.asp id
+SecRule REQUEST_URI_RAW "(?i:\/duyuru\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005607,rev:4,msg:'ET WEB_SPECIFIC MiNT Haber Sistemi SQL Injection Attempt -- duyuru.asp id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_MiNT'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC MiNT Haber Sistemi SQL Injection Attempt -- duyuru.asp id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007010) ET WEB_SPECIFIC MidiCart ASP Shopping Cart and ASP Plus Shopping Cart SQL Injection Attempt -- item_show.asp id2006quant
+SecRule REQUEST_URI_RAW "(?i:\/item_show\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007010,rev:4,msg:'ET WEB_SPECIFIC MidiCart ASP Shopping Cart and ASP Plus Shopping Cart SQL Injection Attempt -- item_show.asp id2006quant ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Midicart'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id2006quant/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC MidiCart ASP Shopping Cart and ASP Plus Shopping Cart SQL Injection Attempt -- item_show.asp id2006quant ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007016) ET WEB_SPECIFIC MidiCart ASP Shopping Cart and ASP Plus Shopping Cart SQL Injection Attempt -- item_list.asp maingroup
+SecRule REQUEST_URI_RAW "(?i:\/item_list\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007016,rev:4,msg:'ET WEB_SPECIFIC MidiCart ASP Shopping Cart and ASP Plus Shopping Cart SQL Injection Attempt -- item_list.asp maingroup ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Midicart'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:maingroup/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC MidiCart ASP Shopping Cart and ASP Plus Shopping Cart SQL Injection Attempt -- item_list.asp maingroup ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007022) ET WEB_SPECIFIC MidiCart ASP Shopping Cart and ASP Plus Shopping Cart SQL Injection Attempt -- item_list.asp secondgroup
+SecRule REQUEST_URI_RAW "(?i:\/item_list\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007022,rev:4,msg:'ET WEB_SPECIFIC MidiCart ASP Shopping Cart and ASP Plus Shopping Cart SQL Injection Attempt -- item_list.asp secondgroup ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Midicart'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:secondgroup/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC MidiCart ASP Shopping Cart and ASP Plus Shopping Cart SQL Injection Attempt -- item_list.asp secondgroup ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004168) ET WEB_SPECIFIC Minerva mod SQL Injection Attempt -- forum.php c
+SecRule REQUEST_URI_RAW "(?i:\/forum\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004168,rev:4,msg:'ET WEB_SPECIFIC Minerva mod SQL Injection Attempt -- forum.php c ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Minerva'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:c/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Minerva mod SQL Injection Attempt -- forum.php c ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005782) ET WEB_SPECIFIC Motionborg Web Real Estate SQL Injection Attempt -- admin_check_user.asp txtUserName
+SecRule REQUEST_URI_RAW "(?i:\/admin_check_user\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005782,rev:4,msg:'ET WEB_SPECIFIC Motionborg Web Real Estate SQL Injection Attempt -- admin_check_user.asp txtUserName ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Motionborg'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:txtUserName/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Motionborg Web Real Estate SQL Injection Attempt -- admin_check_user.asp txtUserName ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2003839) ET WEB_SPECIFIC MyConference SQL Injection Attempt -- index.php cid
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2003839,rev:4,msg:'ET WEB_SPECIFIC MyConference SQL Injection Attempt -- index.php cid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_MyConference'"
+SecRule REQUEST_URI_RAW "@contains (" "chain"
+SecRule &TX:'/SQL_INJECTION.*ARGS:cid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC MyConference SQL Injection Attempt -- index.php cid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006631) ET WEB_SPECIFIC MyStats SQL Injection Attempt -- mystats.php details
+SecRule REQUEST_URI_RAW "(?i:\/mystats\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006631,rev:4,msg:'ET WEB_SPECIFIC MyStats SQL Injection Attempt -- mystats.php details ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_MyStats'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:details/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC MyStats SQL Injection Attempt -- mystats.php details ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004616) ET WEB_SPECIFIC My Datebook SQL Injection Attempt -- diary.php delete
+SecRule REQUEST_URI_RAW "(?i:\/diary\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004616,rev:4,msg:'ET WEB_SPECIFIC My Datebook SQL Injection Attempt -- diary.php delete ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_My_Datebook'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:delete/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC My Datebook SQL Injection Attempt -- diary.php delete ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004099) ET WEB_SPECIFIC My Little Forum SQL Injection Attempt -- user.php id
+SecRule REQUEST_URI_RAW "(?i:\/user\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004099,rev:4,msg:'ET WEB_SPECIFIC My Little Forum SQL Injection Attempt -- user.php id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_My_Little_Forum'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC My Little Forum SQL Injection Attempt -- user.php id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004746) ET WEB_SPECIFIC Nabopoll SQL Injection Attempt -- result.php surv
+SecRule REQUEST_URI_RAW "(?i:\/result\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004746,rev:4,msg:'ET WEB_SPECIFIC Nabopoll SQL Injection Attempt -- result.php surv ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Nabopoll'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:surv/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Nabopoll SQL Injection Attempt -- result.php surv ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006884) ET WEB_SPECIFIC Neocrome Land Down Under (LDU) SQL Injection Attempt -- users.php id
+SecRule REQUEST_URI_RAW "(?i:\/users\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006884,rev:4,msg:'ET WEB_SPECIFIC Neocrome Land Down Under (LDU) SQL Injection Attempt -- users.php id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Neochrome'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Neocrome Land Down Under (LDU) SQL Injection Attempt -- users.php id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006740) ET WEB_SPECIFIC Neocrome Seditio SQL Injection Attempt -- ipsearch.admin.php
+SecRule REQUEST_URI_RAW "(?i:\/plugins\/ipsearch\/ipsearch\.admin\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006740,rev:4,msg:'ET WEB_SPECIFIC Neocrome Seditio SQL Injection Attempt -- ipsearch.admin.php ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Neocrome'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:.+\(.+SELECT)"
+
+# (sid 2006746) ET WEB_SPECIFIC Neocrome Seditio SQL Injection Attempt -- pfs.edit.inc.php
+SecRule REQUEST_URI_RAW "(?i:\/pfs\/pfs\.edit\.inc\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006746,rev:4,msg:'ET WEB_SPECIFIC Neocrome Seditio SQL Injection Attempt -- pfs.edit.inc.php ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Neocrome'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:.+\(.+SELECT)"
+
+# (sid 2006752) ET WEB_SPECIFIC Neocrome Seditio SQL Injection Attempt -- users.register.inc.php
+SecRule REQUEST_URI_RAW "(?i:\/system\/core\/users\/users\.register\.inc\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006752,rev:4,msg:'ET WEB_SPECIFIC Neocrome Seditio SQL Injection Attempt -- users.register.inc.php ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Neocrome'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:.+\(.+SELECT)"
+
+# (sid 2006758) ET WEB_SPECIFIC Neocrome Seditio SQL Injection Attempt -- polls.php id
+SecRule REQUEST_URI_RAW "(?i:\/polls\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006758,rev:4,msg:'ET WEB_SPECIFIC Neocrome Seditio SQL Injection Attempt -- polls.php id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Neocrome'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Neocrome Seditio SQL Injection Attempt -- polls.php id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007292) ET WEB_SPECIFIC Neocrome Seditio SQL Injection Attempt -- users.php id
+SecRule REQUEST_URI_RAW "(?i:\/users\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007292,rev:3,msg:'ET WEB_SPECIFIC Neocrome Seditio SQL Injection Attempt -- users.php id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Neocrome'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Neocrome Seditio SQL Injection Attempt -- users.php id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006551) ET WEB_SPECIFIC NetClassifieds Premium Edition SQL Injection Attempt -- ViewCat.php s_user_id
+SecRule REQUEST_URI_RAW "(?i:\/ViewCat\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006551,rev:4,msg:'ET WEB_SPECIFIC NetClassifieds Premium Edition SQL Injection Attempt -- ViewCat.php s_user_id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_NetClassifieds'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:s_user_id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC NetClassifieds Premium Edition SQL Injection Attempt -- ViewCat.php s_user_id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004162) ET WEB_SPECIFIC NetVIOS Portal SQL Injection Attempt -- page.asp NewsID
+SecRule REQUEST_URI_RAW "(?i:\/News\/page\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004162,rev:4,msg:'ET WEB_SPECIFIC NetVIOS Portal SQL Injection Attempt -- page.asp NewsID ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_NetVIOS'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:NewsID/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC NetVIOS Portal SQL Injection Attempt -- page.asp NewsID ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004940) ET WEB_SPECIFIC Neuron Blog SQL Injection Attempt -- addcomment2.php commentname
+SecRule REQUEST_URI_RAW "(?i:\/pages\/addcomment2\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004940,rev:4,msg:'ET WEB_SPECIFIC Neuron Blog SQL Injection Attempt -- addcomment2.php commentname ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Neuron_Blog'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:commentname/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Neuron Blog SQL Injection Attempt -- addcomment2.php commentname ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004947) ET WEB_SPECIFIC Neuron Blog SQL Injection Attempt -- addcomment2.php commentmail
+SecRule REQUEST_URI_RAW "(?i:\/pages\/addcomment2\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004947,rev:4,msg:'ET WEB_SPECIFIC Neuron Blog SQL Injection Attempt -- addcomment2.php commentmail ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Neuron_Blog'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:commentmail/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Neuron Blog SQL Injection Attempt -- addcomment2.php commentmail ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004953) ET WEB_SPECIFIC Neuron Blog SQL Injection Attempt -- addcomment2.php commentwebsite
+SecRule REQUEST_URI_RAW "(?i:\/pages\/addcomment2\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004953,rev:4,msg:'ET WEB_SPECIFIC Neuron Blog SQL Injection Attempt -- addcomment2.php commentwebsite ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Neuron_Blog'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:commentwebsite/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Neuron Blog SQL Injection Attempt -- addcomment2.php commentwebsite ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004959) ET WEB_SPECIFIC Neuron Blog SQL Injection Attempt -- addcomment2.php comment
+SecRule REQUEST_URI_RAW "(?i:\/pages\/addcomment2\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004959,rev:4,msg:'ET WEB_SPECIFIC Neuron Blog SQL Injection Attempt -- addcomment2.php comment ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Neuron_Blog'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:comment/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Neuron Blog SQL Injection Attempt -- addcomment2.php comment ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005679) ET WEB_SPECIFIC Nicola Asuni All In One Control Panel (AIOCP) SQL Injection Attempt -- cp_functions_downloads.php download_category
+SecRule REQUEST_URI_RAW "(?i:\/shared\/code\/cp_functions_downloads\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005679,rev:4,msg:'ET WEB_SPECIFIC Nicola Asuni All In One Control Panel (AIOCP) SQL Injection Attempt -- cp_functions_downloads.php download_category ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Nicola_Asuni'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:download_category/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Nicola Asuni All In One Control Panel (AIOCP) SQL Injection Attempt -- cp_functions_downloads.php download_category ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005019) ET WEB_SPECIFIC Noname Media Photo Galerie Standard SQL Injection Attempt -- view.php id
+SecRule REQUEST_URI_RAW "(?i:\/view\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005019,rev:4,msg:'ET WEB_SPECIFIC Noname Media Photo Galerie Standard SQL Injection Attempt -- view.php id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Noname_Media_Gallerie'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Noname Media Photo Galerie Standard SQL Injection Attempt -- view.php id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006595) ET WEB_SPECIFIC Novell ZENworks Patch Management (ZPM) SQL Injection Attempt -- downloadreport.asp agentid
+SecRule REQUEST_URI_RAW "(?i:\/dagent\/downloadreport\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006595,rev:4,msg:'ET WEB_SPECIFIC Novell ZENworks Patch Management (ZPM) SQL Injection Attempt -- downloadreport.asp agentid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Novell_Zenworks'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:agentid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Novell ZENworks Patch Management (ZPM) SQL Injection Attempt -- downloadreport.asp agentid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006601) ET WEB_SPECIFIC Novell ZENworks Patch Management (ZPM) SQL Injection Attempt -- downloadreport.asp pass
+SecRule REQUEST_URI_RAW "(?i:\/dagent\/downloadreport\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006601,rev:4,msg:'ET WEB_SPECIFIC Novell ZENworks Patch Management (ZPM) SQL Injection Attempt -- downloadreport.asp pass ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Novell_Zenworks'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:pass/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Novell ZENworks Patch Management (ZPM) SQL Injection Attempt -- downloadreport.asp pass ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004311) ET WEB_SPECIFIC NukeSentinel SQL Injection Attempt -- nukesentinel.php
+SecRule REQUEST_URI_RAW "(?i:\/nukesentinel\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004311,rev:4,msg:'ET WEB_SPECIFIC NukeSentinel SQL Injection Attempt -- nukesentinel.php ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_NukeSentinel'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:\(.+SELECT)"
+
+# (sid 2004734) ET WEB_SPECIFIC NukeSentinel SQL Injection Attempt -- nukesentinel.php
+SecRule REQUEST_URI_RAW "(?i:\/nukesentinel\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004734,rev:4,msg:'ET WEB_SPECIFIC NukeSentinel SQL Injection Attempt -- nukesentinel.php ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_NukeSentinel'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:\(.+SELECT)"
+
+# (sid 2004740) ET WEB_SPECIFIC NukeSentinel SQL Injection Attempt -- nsbypass.php
+SecRule REQUEST_URI_RAW "(?i:\/includes\/nsbypass\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004740,rev:4,msg:'ET WEB_SPECIFIC NukeSentinel SQL Injection Attempt -- nsbypass.php ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_NukeSentinel'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:\(.+SELECT)"
+
+# (sid 2006811) ET WEB_SPECIFIC Oxygen (O2PHP Bulletin Board) SQL Injection Attempt -- viewthread.php pid
+SecRule REQUEST_URI_RAW "(?i:\/viewthread\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006811,rev:4,msg:'ET WEB_SPECIFIC Oxygen (O2PHP Bulletin Board) SQL Injection Attempt -- viewthread.php pid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_O2PHP'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:pid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Oxygen (O2PHP Bulletin Board) SQL Injection Attempt -- viewthread.php pid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005601) ET WEB_SPECIFIC Okul Web Otomasyon Sistemi SQL Injection Attempt -- etkinlikbak.asp id
+SecRule REQUEST_URI_RAW "(?i:\/etkinlikbak\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005601,rev:4,msg:'ET WEB_SPECIFIC Okul Web Otomasyon Sistemi SQL Injection Attempt -- etkinlikbak.asp id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Okul'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Okul Web Otomasyon Sistemi SQL Injection Attempt -- etkinlikbak.asp id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004454) ET WEB_SPECIFIC Omegasoft SQL Injection Attempt -- OmegaMw7.asp
+SecRule REQUEST_URI_RAW "(?i:\/OmegaMw7\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004454,rev:4,msg:'ET WEB_SPECIFIC Omegasoft SQL Injection Attempt -- OmegaMw7.asp ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Omegasoft'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:\(.+SELECT)"
+
+# (sid 2004849) ET WEB_SPECIFIC Online Web Building SQL Injection Attempt -- page.asp art_id
+SecRule REQUEST_URI_RAW "(?i:\/user_pages\/page\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004849,rev:4,msg:'ET WEB_SPECIFIC Online Web Building SQL Injection Attempt -- page.asp art_id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Online_Web_Building'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:art_id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Online Web Building SQL Injection Attempt -- page.asp art_id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005941) ET WEB_SPECIFIC Outfront Spooky Login SQL Injection Attempt -- register.asp UserUpdate
+SecRule REQUEST_URI_RAW "(?i:\/login\/register\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005941,rev:4,msg:'ET WEB_SPECIFIC Outfront Spooky Login SQL Injection Attempt -- register.asp UserUpdate ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Outfront'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:UserUpdate/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Outfront Spooky Login SQL Injection Attempt -- register.asp UserUpdate ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005947) ET WEB_SPECIFIC Outfront Spooky Login SQL Injection Attempt -- a_register.asp
+SecRule REQUEST_URI_RAW "(?i:\/includes\/a_register\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005947,rev:4,msg:'ET WEB_SPECIFIC Outfront Spooky Login SQL Injection Attempt -- a_register.asp ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Outfront'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:\(.+SELECT)"
+
+# (sid 2004245) ET WEB_SPECIFIC PHP-Stats SQL Injection Attempt -- php-stats.recphp.php ip
+SecRule REQUEST_URI_RAW "(?i:\/php\-stats\.recphp\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004245,rev:4,msg:'ET WEB_SPECIFIC PHP-Stats SQL Injection Attempt -- php-stats.recphp.php ip ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_PHP-Stats'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:ip/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC PHP-Stats SQL Injection Attempt -- php-stats.recphp.php ip ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006514) ET WEB_SPECIFIC PHPAccounts SQL Injection Attempt -- index.php Outgoing_Type_ID
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006514,rev:4,msg:'ET WEB_SPECIFIC PHPAccounts SQL Injection Attempt -- index.php Outgoing_Type_ID ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_PHPAccounts'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:Outgoing_Type_ID/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC PHPAccounts SQL Injection Attempt -- index.php Outgoing_Type_ID ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006520) ET WEB_SPECIFIC PHPAccounts SQL Injection Attempt -- index.php Outgoing_ID
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006520,rev:4,msg:'ET WEB_SPECIFIC PHPAccounts SQL Injection Attempt -- index.php Outgoing_ID ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_PHPAccounts'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:Outgoing_ID/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC PHPAccounts SQL Injection Attempt -- index.php Outgoing_ID ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006526) ET WEB_SPECIFIC PHPAccounts SQL Injection Attempt -- index.php Project_ID
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006526,rev:4,msg:'ET WEB_SPECIFIC PHPAccounts SQL Injection Attempt -- index.php Project_ID ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_PHPAccounts'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:Project_ID/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC PHPAccounts SQL Injection Attempt -- index.php Project_ID ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006532) ET WEB_SPECIFIC PHPAccounts SQL Injection Attempt -- index.php Client_ID
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006532,rev:4,msg:'ET WEB_SPECIFIC PHPAccounts SQL Injection Attempt -- index.php Client_ID ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_PHPAccounts'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:Client_ID/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC PHPAccounts SQL Injection Attempt -- index.php Client_ID ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006538) ET WEB_SPECIFIC PHPAccounts SQL Injection Attempt -- index.php Invoice_ID
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006538,rev:4,msg:'ET WEB_SPECIFIC PHPAccounts SQL Injection Attempt -- index.php Invoice_ID ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_PHPAccounts'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:Invoice_ID/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC PHPAccounts SQL Injection Attempt -- index.php Invoice_ID ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006544) ET WEB_SPECIFIC PHPAccounts SQL Injection Attempt -- index.php Vendor_ID
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006544,rev:4,msg:'ET WEB_SPECIFIC PHPAccounts SQL Injection Attempt -- index.php Vendor_ID ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_PHPAccounts'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:Vendor_ID/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC PHPAccounts SQL Injection Attempt -- index.php Vendor_ID ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005971) ET WEB_SPECIFIC phpBB2 Plus SQL Injection Attempt -- admin_acronyms.php id
+SecRule REQUEST_URI_RAW "(?i:\/admin\/admin_acronyms\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005971,rev:4,msg:'ET WEB_SPECIFIC phpBB2 Plus SQL Injection Attempt -- admin_acronyms.php id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_PHPBB'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC phpBB2 Plus SQL Injection Attempt -- admin_acronyms.php id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006973) ET WEB_SPECIFIC phpBB SQL Injection Attempt -- admin_hacks_list.php hack_id
+SecRule REQUEST_URI_RAW "(?i:\/admin_hacks_list\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006973,rev:4,msg:'ET WEB_SPECIFIC phpBB SQL Injection Attempt -- admin_hacks_list.php hack_id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_PHPBB'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:hack_id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC phpBB SQL Injection Attempt -- admin_hacks_list.php hack_id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004045) ET WEB_SPECIFIC PHPEcho CMS SQL Injection Attempt -- gallery.php id
+SecRule REQUEST_URI_RAW "(?i:\/modules\/admin\/modules\/gallery\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004045,rev:4,msg:'ET WEB_SPECIFIC PHPEcho CMS SQL Injection Attempt -- gallery.php id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_PHPEcho'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC PHPEcho CMS SQL Injection Attempt -- gallery.php id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2003809) ET WEB_SPECIFIC phpHoo3 SQL Injection Attempt -- admin.php ADMIN_USER
+SecRule REQUEST_URI_RAW "(?i:\/admin\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2003809,rev:4,msg:'ET WEB_SPECIFIC phpHoo3 SQL Injection Attempt -- admin.php ADMIN_USER ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_PHPHoo3'"
+SecRule REQUEST_URI_RAW "@contains (" "chain"
+SecRule &TX:'/SQL_INJECTION.*ARGS:ADMIN_USER/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC phpHoo3 SQL Injection Attempt -- admin.php ADMIN_USER ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2003815) ET WEB_SPECIFIC phpHoo3 SQL Injection Attempt -- admin.php ADMIN_PASS
+SecRule REQUEST_URI_RAW "(?i:\/admin\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2003815,rev:4,msg:'ET WEB_SPECIFIC phpHoo3 SQL Injection Attempt -- admin.php ADMIN_PASS ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_PHPHoo3'"
+SecRule REQUEST_URI_RAW "@contains (" "chain"
+SecRule &TX:'/SQL_INJECTION.*ARGS:ADMIN_PASS/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC phpHoo3 SQL Injection Attempt -- admin.php ADMIN_PASS ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004699) ET WEB_SPECIFIC PHPKit SQL Injection Attempt -- include.php catid
+SecRule REQUEST_URI_RAW "(?i:\/include\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004699,rev:4,msg:'ET WEB_SPECIFIC PHPKit SQL Injection Attempt -- include.php catid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_PHPKit'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:catid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC PHPKit SQL Injection Attempt -- include.php catid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005788) ET WEB_SPECIFIC PHPKIT SQL Injection Attempt -- comment.php subid
+SecRule REQUEST_URI_RAW "(?i:\/comment\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005788,rev:4,msg:'ET WEB_SPECIFIC PHPKIT SQL Injection Attempt -- comment.php subid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_PHPKit'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:subid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC PHPKIT SQL Injection Attempt -- comment.php subid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004704) ET WEB_SPECIFIC PHPWind SQL Injection Attempt -- admin.php
+SecRule REQUEST_URI_RAW "(?i:\/admin\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004704,rev:4,msg:'ET WEB_SPECIFIC PHPWind SQL Injection Attempt -- admin.php ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_PHPWind'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:\(.+SELECT)"
+
+# (sid 2004329) ET WEB_SPECIFIC PHP-Nuke SQL Injection Attempt -- mainfile.php lang
+SecRule REQUEST_URI_RAW "(?i:\/mainfile\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004329,rev:4,msg:'ET WEB_SPECIFIC PHP-Nuke SQL Injection Attempt -- mainfile.php lang ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_PHP_Nuke'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:lang/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC PHP-Nuke SQL Injection Attempt -- mainfile.php lang ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004855) ET WEB_SPECIFIC PHP-Nuke SQL Injection Attempt -- modules.php category_id
+SecRule REQUEST_URI_RAW "(?i:\/modules\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004855,rev:4,msg:'ET WEB_SPECIFIC PHP-Nuke SQL Injection Attempt -- modules.php category_id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_PHP_Nuke'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:category_id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC PHP-Nuke SQL Injection Attempt -- modules.php category_id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005460) ET WEB_SPECIFIC Francisco Burzi PHP-Nuke SQL Injection Attempt -- modules.php active
+SecRule REQUEST_URI_RAW "(?i:\/admin\/modules\/modules\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005460,rev:4,msg:'ET WEB_SPECIFIC Francisco Burzi PHP-Nuke SQL Injection Attempt -- modules.php active ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_PHP_Nuke'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:active/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Francisco Burzi PHP-Nuke SQL Injection Attempt -- modules.php active ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005466) ET WEB_SPECIFIC Francisco Burzi PHP-Nuke SQL Injection Attempt -- index.php ad_class
+SecRule REQUEST_URI_RAW "(?i:\/modules\/Advertising\/admin\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005466,rev:4,msg:'ET WEB_SPECIFIC Francisco Burzi PHP-Nuke SQL Injection Attempt -- index.php ad_class ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_PHP_Nuke'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:ad_class/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Francisco Burzi PHP-Nuke SQL Injection Attempt -- index.php ad_class ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005472) ET WEB_SPECIFIC Francisco Burzi PHP-Nuke SQL Injection Attempt -- index.php imageurl
+SecRule REQUEST_URI_RAW "(?i:\/modules\/Advertising\/admin\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005472,rev:4,msg:'ET WEB_SPECIFIC Francisco Burzi PHP-Nuke SQL Injection Attempt -- index.php imageurl ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_PHP_Nuke'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:imageurl/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Francisco Burzi PHP-Nuke SQL Injection Attempt -- index.php imageurl ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005478) ET WEB_SPECIFIC Francisco Burzi PHP-Nuke SQL Injection Attempt -- index.php clickurl
+SecRule REQUEST_URI_RAW "(?i:\/modules\/Advertising\/admin\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005478,rev:4,msg:'ET WEB_SPECIFIC Francisco Burzi PHP-Nuke SQL Injection Attempt -- index.php clickurl ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_PHP_Nuke'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:clickurl/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Francisco Burzi PHP-Nuke SQL Injection Attempt -- index.php clickurl ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005484) ET WEB_SPECIFIC Francisco Burzi PHP-Nuke SQL Injection Attempt -- index.php ad_code
+SecRule REQUEST_URI_RAW "(?i:\/modules\/Advertising\/admin\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005484,rev:4,msg:'ET WEB_SPECIFIC Francisco Burzi PHP-Nuke SQL Injection Attempt -- index.php ad_code ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_PHP_Nuke'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:ad_code/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Francisco Burzi PHP-Nuke SQL Injection Attempt -- index.php ad_code ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005491) ET WEB_SPECIFIC Francisco Burzi PHP-Nuke SQL Injection Attempt -- index.php position
+SecRule REQUEST_URI_RAW "(?i:\/modules\/Advertising\/admin\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005491,rev:4,msg:'ET WEB_SPECIFIC Francisco Burzi PHP-Nuke SQL Injection Attempt -- index.php position ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_PHP_Nuke'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:position/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Francisco Burzi PHP-Nuke SQL Injection Attempt -- index.php position ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005589) ET WEB_SPECIFIC Francisco Burzi PHP-Nuke SQL Injection Attempt -- block-Old_Articles.php cat
+SecRule REQUEST_URI_RAW "(?i:\/blocks\/block\-Old_Articles\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005589,rev:4,msg:'ET WEB_SPECIFIC Francisco Burzi PHP-Nuke SQL Injection Attempt -- block-Old_Articles.php cat ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_PHP_Nuke'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:cat/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Francisco Burzi PHP-Nuke SQL Injection Attempt -- block-Old_Articles.php cat ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006931) ET WEB_SPECIFIC PHP-Nuke SQL Injection Attempt -- modules.php cid
+SecRule REQUEST_URI_RAW "(?i:\/modules\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006931,rev:4,msg:'ET WEB_SPECIFIC PHP-Nuke SQL Injection Attempt -- modules.php cid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_PHP_Nuke'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:cid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC PHP-Nuke SQL Injection Attempt -- modules.php cid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006937) ET WEB_SPECIFIC PHP-Nuke SQL Injection Attempt -- modules.php pid
+SecRule REQUEST_URI_RAW "(?i:\/modules\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006937,rev:4,msg:'ET WEB_SPECIFIC PHP-Nuke SQL Injection Attempt -- modules.php pid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_PHP_Nuke'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:pid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC PHP-Nuke SQL Injection Attempt -- modules.php pid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007180) ET WEB_SPECIFIC Francisco Burzi PHP-Nuke SQL Injection Attempt -- index.php sid
+SecRule REQUEST_URI_RAW "(?i:\/modules\/News\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007180,rev:3,msg:'ET WEB_SPECIFIC Francisco Burzi PHP-Nuke SQL Injection Attempt -- index.php sid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_PHP_Nuke'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:sid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Francisco Burzi PHP-Nuke SQL Injection Attempt -- index.php sid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005905) ET WEB_SPECIFIC PHP-Update SQL Injection Attempt -- guestadd.php newmessage
+SecRule REQUEST_URI_RAW "(?i:\/code\/guestadd\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005905,rev:4,msg:'ET WEB_SPECIFIC PHP-Update SQL Injection Attempt -- guestadd.php newmessage ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_PHP_Update'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:newmessage/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC PHP-Update SQL Injection Attempt -- guestadd.php newmessage ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005911) ET WEB_SPECIFIC PHP-Update SQL Injection Attempt -- guestadd.php newname
+SecRule REQUEST_URI_RAW "(?i:\/code\/guestadd\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005911,rev:4,msg:'ET WEB_SPECIFIC PHP-Update SQL Injection Attempt -- guestadd.php newname ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_PHP_Update'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:newname/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC PHP-Update SQL Injection Attempt -- guestadd.php newname ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005917) ET WEB_SPECIFIC PHP-Update SQL Injection Attempt -- guestadd.php newwebsite
+SecRule REQUEST_URI_RAW "(?i:\/code\/guestadd\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005917,rev:4,msg:'ET WEB_SPECIFIC PHP-Update SQL Injection Attempt -- guestadd.php newwebsite ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_PHP_Update'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:newwebsite/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC PHP-Update SQL Injection Attempt -- guestadd.php newwebsite ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005923) ET WEB_SPECIFIC PHP-Update SQL Injection Attempt -- guestadd.php newemail
+SecRule REQUEST_URI_RAW "(?i:\/code\/guestadd\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005923,rev:4,msg:'ET WEB_SPECIFIC PHP-Update SQL Injection Attempt -- guestadd.php newemail ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_PHP_Update'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:newemail/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC PHP-Update SQL Injection Attempt -- guestadd.php newemail ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004610) ET WEB_SPECIFIC PNphpBB2 SQL Injection Attempt -- index.php c
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004610,rev:4,msg:'ET WEB_SPECIFIC PNphpBB2 SQL Injection Attempt -- index.php c ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_PNphpBB2'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:c/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC PNphpBB2 SQL Injection Attempt -- index.php c ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004934) ET WEB_SPECIFIC PSY Auction SQL Injection Attempt -- item.php id
+SecRule REQUEST_URI_RAW "(?i:\/item\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004934,rev:4,msg:'ET WEB_SPECIFIC PSY Auction SQL Injection Attempt -- item.php id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_PSY_Auction'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC PSY Auction SQL Injection Attempt -- item.php id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006734) ET WEB_SPECIFIC PWP Technologies The Classified Ad System SQL Injection Attempt -- default.asp main
+SecRule REQUEST_URI_RAW "(?i:\/default\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006734,rev:4,msg:'ET WEB_SPECIFIC PWP Technologies The Classified Ad System SQL Injection Attempt -- default.asp main ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_PWP'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:main/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC PWP Technologies The Classified Ad System SQL Injection Attempt -- default.asp main ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004263) ET WEB_SPECIFIC Particle Blogger SQL Injection Attempt -- post.php postid
+SecRule REQUEST_URI_RAW "(?i:\/post\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004263,rev:4,msg:'ET WEB_SPECIFIC Particle Blogger SQL Injection Attempt -- post.php postid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Particle_Blogger'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:postid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Particle Blogger SQL Injection Attempt -- post.php postid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005220) ET WEB_SPECIFIC Particle Blogger SQL Injection Attempt -- archives.php month
+SecRule REQUEST_URI_RAW "(?i:\/archives\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005220,rev:4,msg:'ET WEB_SPECIFIC Particle Blogger SQL Injection Attempt -- archives.php month ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Particle_Blogger'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:month/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Particle Blogger SQL Injection Attempt -- archives.php month ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004622) ET WEB_SPECIFIC Particle Soft Particle Gallery SQL Injection Attempt -- viewimage.php editcomment
+SecRule REQUEST_URI_RAW "(?i:\/viewimage\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004622,rev:4,msg:'ET WEB_SPECIFIC Particle Soft Particle Gallery SQL Injection Attempt -- viewimage.php editcomment ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Particle_Gallery'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:editcomment/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Particle Soft Particle Gallery SQL Injection Attempt -- viewimage.php editcomment ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004093) ET WEB_SPECIFIC Phil-a-Form SQL Injection Attempt -- index.php form_id
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004093,rev:4,msg:'ET WEB_SPECIFIC Phil-a-Form SQL Injection Attempt -- index.php form_id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Phil-A-Form'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:form_id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Phil-a-Form SQL Injection Attempt -- index.php form_id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004928) ET WEB_SPECIFIC Philboard SQL Injection Attempt -- philboard_forum.asp forumid
+SecRule REQUEST_URI_RAW "(?i:\/philboard_forum\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004928,rev:4,msg:'ET WEB_SPECIFIC Philboard SQL Injection Attempt -- philboard_forum.asp forumid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Philboard'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:forumid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Philboard SQL Injection Attempt -- philboard_forum.asp forumid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004909) ET WEB_SPECIFIC PollMentor SQL Injection Attempt -- pollmentorres.asp id
+SecRule REQUEST_URI_RAW "(?i:\/pollmentorres\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004909,rev:4,msg:'ET WEB_SPECIFIC PollMentor SQL Injection Attempt -- pollmentorres.asp id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_PollMentor'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC PollMentor SQL Injection Attempt -- pollmentorres.asp id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005625) ET WEB_SPECIFIC Portix-PHP SQL Injection Attempt -- archive.php blogid
+SecRule REQUEST_URI_RAW "(?i:\/simplog\/archive\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005625,rev:4,msg:'ET WEB_SPECIFIC Portix-PHP SQL Injection Attempt -- archive.php blogid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Portix'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:blogid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Portix-PHP SQL Injection Attempt -- archive.php blogid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005631) ET WEB_SPECIFIC Portix-PHP SQL Injection Attempt -- archive.php pid
+SecRule REQUEST_URI_RAW "(?i:\/simplog\/archive\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005631,rev:4,msg:'ET WEB_SPECIFIC Portix-PHP SQL Injection Attempt -- archive.php pid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Portix'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:pid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Portix-PHP SQL Injection Attempt -- archive.php pid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005637) ET WEB_SPECIFIC Portix-PHP SQL Injection Attempt -- index.php blogid
+SecRule REQUEST_URI_RAW "(?i:\/simplog\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005637,rev:4,msg:'ET WEB_SPECIFIC Portix-PHP SQL Injection Attempt -- index.php blogid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Portix'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:blogid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Portix-PHP SQL Injection Attempt -- index.php blogid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2003803) ET WEB_SPECIFIC v4bJournal module PostNuke SQL Injection Attempt -- index.php id
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2003803,rev:4,msg:'ET WEB_SPECIFIC v4bJournal module PostNuke SQL Injection Attempt -- index.php id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_PostNuke'"
+SecRule REQUEST_URI_RAW "@contains (" "chain"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC v4bJournal module PostNuke SQL Injection Attempt -- index.php id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006355) ET WEB_SPECIFIC ProNews SQL Injection Attempt -- lire-avis.php aa
+SecRule REQUEST_URI_RAW "(?i:\/lire\-avis\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006355,rev:4,msg:'ET WEB_SPECIFIC ProNews SQL Injection Attempt -- lire-avis.php aa ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_ProNews'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:aa/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC ProNews SQL Injection Attempt -- lire-avis.php aa ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005685) ET WEB_SPECIFIC Rapid Classified SQL Injection Attempt -- viewad.asp id
+SecRule REQUEST_URI_RAW "(?i:\/viewad\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005685,rev:4,msg:'ET WEB_SPECIFIC Rapid Classified SQL Injection Attempt -- viewad.asp id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Rapid_Classified'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Rapid Classified SQL Injection Attempt -- viewad.asp id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005025) ET WEB_SPECIFIC Raymond BERTHOU script SQL Injection Attempt -- login.asp user
+SecRule REQUEST_URI_RAW "(?i:\/login\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005025,rev:4,msg:'ET WEB_SPECIFIC Raymond BERTHOU script SQL Injection Attempt -- login.asp user ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Raymond_Berthou'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:user/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Raymond BERTHOU script SQL Injection Attempt -- login.asp user ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005031) ET WEB_SPECIFIC Raymond BERTHOU script SQL Injection Attempt -- login.asp password
+SecRule REQUEST_URI_RAW "(?i:\/login\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005031,rev:4,msg:'ET WEB_SPECIFIC Raymond BERTHOU script SQL Injection Attempt -- login.asp password ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Raymond_Berthou'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:password/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Raymond BERTHOU script SQL Injection Attempt -- login.asp password ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005097) ET WEB_SPECIFIC Raymond BERTHOU script SQL Injection Attempt -- user_confirm.asp id
+SecRule REQUEST_URI_RAW "(?i:\/user_confirm\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005097,rev:4,msg:'ET WEB_SPECIFIC Raymond BERTHOU script SQL Injection Attempt -- user_confirm.asp id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Raymond_Berthou'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Raymond BERTHOU script SQL Injection Attempt -- user_confirm.asp id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005103) ET WEB_SPECIFIC Raymond BERTHOU script SQL Injection Attempt -- user_confirm.asp pass
+SecRule REQUEST_URI_RAW "(?i:\/user_confirm\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005103,rev:4,msg:'ET WEB_SPECIFIC Raymond BERTHOU script SQL Injection Attempt -- user_confirm.asp pass ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Raymond_Berthou'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:pass/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Raymond BERTHOU script SQL Injection Attempt -- user_confirm.asp pass ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006943) ET WEB_SPECIFIC Recipes Complete Website SQL Injection Attempt -- recipe.php recipeid
+SecRule REQUEST_URI_RAW "(?i:\/recipe\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006943,rev:3,msg:'ET WEB_SPECIFIC Recipes Complete Website SQL Injection Attempt -- recipe.php recipeid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Recipes_Complete'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:recipeid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Recipes Complete Website SQL Injection Attempt -- recipe.php recipeid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006949) ET WEB_SPECIFIC Recipes Complete Website SQL Injection Attempt -- list.php categoryid
+SecRule REQUEST_URI_RAW "(?i:\/list\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006949,rev:3,msg:'ET WEB_SPECIFIC Recipes Complete Website SQL Injection Attempt -- list.php categoryid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Recipes_Complete'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:categoryid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Recipes Complete Website SQL Injection Attempt -- list.php categoryid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2003833) ET WEB_SPECIFIC ResManager SQL Injection Attempt -- edit_day.php id_reserv
+SecRule REQUEST_URI_RAW "(?i:\/edit_day\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2003833,rev:4,msg:'ET WEB_SPECIFIC ResManager SQL Injection Attempt -- edit_day.php id_reserv ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_ResManager'"
+SecRule REQUEST_URI_RAW "@contains (" "chain"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id_reserv/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC ResManager SQL Injection Attempt -- edit_day.php id_reserv ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004604) ET WEB_SPECIFIC RevokeSoft RevokeBB SQL Injection Attempt -- class_users.php
+SecRule REQUEST_URI_RAW "(?i:\/inc\/class_users\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004604,rev:4,msg:'ET WEB_SPECIFIC RevokeSoft RevokeBB SQL Injection Attempt -- class_users.php ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_RevokeSoft'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:\(.+SELECT)"
+
+# (sid 2005691) ET WEB_SPECIFIC Rialto SQL Injection Attempt -- listfull.asp ID
+SecRule REQUEST_URI_RAW "(?i:\/listfull\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005691,rev:4,msg:'ET WEB_SPECIFIC Rialto SQL Injection Attempt -- listfull.asp ID ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Rialto'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:ID/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Rialto SQL Injection Attempt -- listfull.asp ID ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005697) ET WEB_SPECIFIC Rialto SQL Injection Attempt -- printmain.asp ID
+SecRule REQUEST_URI_RAW "(?i:\/printmain\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005697,rev:4,msg:'ET WEB_SPECIFIC Rialto SQL Injection Attempt -- printmain.asp ID ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Rialto'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:ID/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Rialto SQL Injection Attempt -- printmain.asp ID ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005703) ET WEB_SPECIFIC Rialto SQL Injection Attempt -- listmain.asp cat
+SecRule REQUEST_URI_RAW "(?i:\/listmain\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005703,rev:4,msg:'ET WEB_SPECIFIC Rialto SQL Injection Attempt -- listmain.asp cat ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Rialto'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:cat/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Rialto SQL Injection Attempt -- listmain.asp cat ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005709) ET WEB_SPECIFIC Rialto SQL Injection Attempt -- searchoption.asp cat
+SecRule REQUEST_URI_RAW "(?i:\/searchoption\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005709,rev:4,msg:'ET WEB_SPECIFIC Rialto SQL Injection Attempt -- searchoption.asp cat ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Rialto'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:cat/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Rialto SQL Injection Attempt -- searchoption.asp cat ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005715) ET WEB_SPECIFIC Rialto SQL Injection Attempt -- searchmain.asp cat
+SecRule REQUEST_URI_RAW "(?i:\/searchmain\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005715,rev:4,msg:'ET WEB_SPECIFIC Rialto SQL Injection Attempt -- searchmain.asp cat ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Rialto'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:cat/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Rialto SQL Injection Attempt -- searchmain.asp cat ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005721) ET WEB_SPECIFIC Rialto SQL Injection Attempt -- searchkey.asp Keyword
+SecRule REQUEST_URI_RAW "(?i:\/searchkey\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005721,rev:4,msg:'ET WEB_SPECIFIC Rialto SQL Injection Attempt -- searchkey.asp Keyword ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Rialto'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:Keyword/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Rialto SQL Injection Attempt -- searchkey.asp Keyword ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005727) ET WEB_SPECIFIC Rialto SQL Injection Attempt -- searchmain.asp area
+SecRule REQUEST_URI_RAW "(?i:\/searchmain\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005727,rev:4,msg:'ET WEB_SPECIFIC Rialto SQL Injection Attempt -- searchmain.asp area ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Rialto'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:area/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Rialto SQL Injection Attempt -- searchmain.asp area ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005733) ET WEB_SPECIFIC Rialto SQL Injection Attempt -- searchoption.asp area
+SecRule REQUEST_URI_RAW "(?i:\/searchoption\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005733,rev:4,msg:'ET WEB_SPECIFIC Rialto SQL Injection Attempt -- searchoption.asp area ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Rialto'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:area/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Rialto SQL Injection Attempt -- searchoption.asp area ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005740) ET WEB_SPECIFIC Rialto SQL Injection Attempt -- searchkey.asp searchin
+SecRule REQUEST_URI_RAW "(?i:\/searchkey\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005740,rev:4,msg:'ET WEB_SPECIFIC Rialto SQL Injection Attempt -- searchkey.asp searchin ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Rialto'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:searchin/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Rialto SQL Injection Attempt -- searchkey.asp searchin ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005746) ET WEB_SPECIFIC Rialto SQL Injection Attempt -- searchoption.asp cost1
+SecRule REQUEST_URI_RAW "(?i:\/searchoption\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005746,rev:4,msg:'ET WEB_SPECIFIC Rialto SQL Injection Attempt -- searchoption.asp cost1 ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Rialto'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:cost1/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Rialto SQL Injection Attempt -- searchoption.asp cost1 ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005752) ET WEB_SPECIFIC Rialto SQL Injection Attempt -- searchoption.asp cost2
+SecRule REQUEST_URI_RAW "(?i:\/searchoption\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005752,rev:4,msg:'ET WEB_SPECIFIC Rialto SQL Injection Attempt -- searchoption.asp cost2 ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Rialto'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:cost2/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Rialto SQL Injection Attempt -- searchoption.asp cost2 ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005758) ET WEB_SPECIFIC Rialto SQL Injection Attempt -- searchoption.asp acreage1
+SecRule REQUEST_URI_RAW "(?i:\/searchoption\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005758,rev:4,msg:'ET WEB_SPECIFIC Rialto SQL Injection Attempt -- searchoption.asp acreage1 ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Rialto'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:acreage1/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Rialto SQL Injection Attempt -- searchoption.asp acreage1 ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005764) ET WEB_SPECIFIC Rialto SQL Injection Attempt -- searchoption.asp squarefeet1
+SecRule REQUEST_URI_RAW "(?i:\/searchoption\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005764,rev:4,msg:'ET WEB_SPECIFIC Rialto SQL Injection Attempt -- searchoption.asp squarefeet1 ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Rialto'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:squarefeet1/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Rialto SQL Injection Attempt -- searchoption.asp squarefeet1 ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004664) ET WEB_SPECIFIC Rigter Portal System (RPS) SQL Injection Attempt -- index.php categoria
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004664,rev:4,msg:'ET WEB_SPECIFIC Rigter Portal System (RPS) SQL Injection Attempt -- index.php categoria ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Rigter_portal'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:categoria/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Rigter Portal System (RPS) SQL Injection Attempt -- index.php categoria ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2003821) ET WEB_SPECIFIC RunCms SQL Injection Attempt -- debug_show.php executed_queries
+SecRule REQUEST_URI_RAW "(?i:\/class\/debug\/debug_show\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2003821,rev:4,msg:'ET WEB_SPECIFIC RunCms SQL Injection Attempt -- debug_show.php executed_queries ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_RunCMS'"
+SecRule REQUEST_URI_RAW "@contains (" "chain"
+SecRule &TX:'/SQL_INJECTION.*ARGS:executed_queries/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC RunCms SQL Injection Attempt -- debug_show.php executed_queries ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2003862) ET WEB_SPECIFIC RunawaySoft Haber portal 1.0 SQL Injection Attempt -- devami.asp id
+SecRule REQUEST_URI_RAW "(?i:\/devami\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2003862,rev:4,msg:'ET WEB_SPECIFIC RunawaySoft Haber portal 1.0 SQL Injection Attempt -- devami.asp id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_RunawaySoft'"
+SecRule REQUEST_URI_RAW "@contains (" "chain"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC RunawaySoft Haber portal 1.0 SQL Injection Attempt -- devami.asp id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004467) ET WEB_SPECIFIC SalesCart Shopping Cart SQL Injection Attempt -- reorder2.asp
+SecRule REQUEST_URI_RAW "(?i:\/cgi\-bin\/reorder2\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004467,rev:4,msg:'ET WEB_SPECIFIC SalesCart Shopping Cart SQL Injection Attempt -- reorder2.asp ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Salescart'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:\(.+SELECT)"
+
+# (sid 2004497) ET WEB_SPECIFIC Savas Guestbook SQL Injection Attempt -- add2.php name
+SecRule REQUEST_URI_RAW "(?i:\/add2\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004497,rev:4,msg:'ET WEB_SPECIFIC Savas Guestbook SQL Injection Attempt -- add2.php name ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Savas'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:name/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Savas Guestbook SQL Injection Attempt -- add2.php name ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004503) ET WEB_SPECIFIC Savas Guestbook SQL Injection Attempt -- add2.php country
+SecRule REQUEST_URI_RAW "(?i:\/add2\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004503,rev:4,msg:'ET WEB_SPECIFIC Savas Guestbook SQL Injection Attempt -- add2.php country ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Savas'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:country/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Savas Guestbook SQL Injection Attempt -- add2.php country ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004509) ET WEB_SPECIFIC Savas Guestbook SQL Injection Attempt -- add2.php email
+SecRule REQUEST_URI_RAW "(?i:\/add2\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004509,rev:4,msg:'ET WEB_SPECIFIC Savas Guestbook SQL Injection Attempt -- add2.php email ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Savas'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:email/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Savas Guestbook SQL Injection Attempt -- add2.php email ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004515) ET WEB_SPECIFIC Savas Guestbook SQL Injection Attempt -- add2.php website
+SecRule REQUEST_URI_RAW "(?i:\/add2\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004515,rev:4,msg:'ET WEB_SPECIFIC Savas Guestbook SQL Injection Attempt -- add2.php website ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Savas'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:website/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Savas Guestbook SQL Injection Attempt -- add2.php website ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004521) ET WEB_SPECIFIC Savas Guestbook SQL Injection Attempt -- add2.php message
+SecRule REQUEST_URI_RAW "(?i:\/add2\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004521,rev:4,msg:'ET WEB_SPECIFIC Savas Guestbook SQL Injection Attempt -- add2.php message ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Savas'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:message/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Savas Guestbook SQL Injection Attempt -- add2.php message ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004120) ET WEB_SPECIFIC ScriptMagix Jokes SQL Injection Attempt -- index.php catid
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004120,rev:4,msg:'ET WEB_SPECIFIC ScriptMagix Jokes SQL Injection Attempt -- index.php catid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_ScriptMagix'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:catid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC ScriptMagix Jokes SQL Injection Attempt -- index.php catid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006313) ET WEB_SPECIFIC ScriptMate User Manager SQL Injection Attempt -- usermessages.asp mesid
+SecRule REQUEST_URI_RAW "(?i:\/utilities\/usermessages\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006313,rev:4,msg:'ET WEB_SPECIFIC ScriptMate User Manager SQL Injection Attempt -- usermessages.asp mesid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_ScriptMate'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:mesid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC ScriptMate User Manager SQL Injection Attempt -- usermessages.asp mesid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004419) ET WEB_SPECIFIC Serendipity SQL Injection Attempt -- index.php serendipity
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004419,rev:4,msg:'ET WEB_SPECIFIC Serendipity SQL Injection Attempt -- index.php serendipity ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Serendipity'"
+SecRule REQUEST_URI_RAW "@contains serendipity[multiCat][" "chain"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:\(.+SELECT)"
+
+# (sid 2005794) ET WEB_SPECIFIC ShopStoreNow E-commerce Shopping Cart SQL Injection Attempt -- orange.asp CatID
+SecRule REQUEST_URI_RAW "(?i:\/orange\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005794,rev:4,msg:'ET WEB_SPECIFIC ShopStoreNow E-commerce Shopping Cart SQL Injection Attempt -- orange.asp CatID ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_ShopStoreNow'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:CatID/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC ShopStoreNow E-commerce Shopping Cart SQL Injection Attempt -- orange.asp CatID ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2003856) ET WEB_SPECIFIC SimpNews SQL Injection Attempt -- print.php newsnr
+SecRule REQUEST_URI_RAW "(?i:\/print\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2003856,rev:4,msg:'ET WEB_SPECIFIC SimpNews SQL Injection Attempt -- print.php newsnr ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_SimpleNews'"
+SecRule REQUEST_URI_RAW "@contains (" "chain"
+SecRule &TX:'/SQL_INJECTION.*ARGS:newsnr/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC SimpNews SQL Injection Attempt -- print.php newsnr ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004783) ET WEB_SPECIFIC Simple PHP Forum SQL Injection Attempt -- logon_user.php username
+SecRule REQUEST_URI_RAW "(?i:\/logon_user\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004783,rev:4,msg:'ET WEB_SPECIFIC Simple PHP Forum SQL Injection Attempt -- logon_user.php username ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Simple_PHP_Portal'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:username/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Simple PHP Forum SQL Injection Attempt -- logon_user.php username ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004789) ET WEB_SPECIFIC Simple PHP Forum SQL Injection Attempt -- update_profile.php username
+SecRule REQUEST_URI_RAW "(?i:\/update_profile\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004789,rev:4,msg:'ET WEB_SPECIFIC Simple PHP Forum SQL Injection Attempt -- update_profile.php username ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Simple_PHP_Portal'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:username/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Simple PHP Forum SQL Injection Attempt -- update_profile.php username ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005875) ET WEB_SPECIFIC Simple Web Content Management System SQL Injection Attempt -- page.php id
+SecRule REQUEST_URI_RAW "(?i:\/page\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005875,rev:4,msg:'ET WEB_SPECIFIC Simple Web Content Management System SQL Injection Attempt -- page.php id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Simple_Web_CMS'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Simple Web Content Management System SQL Injection Attempt -- page.php id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005522) ET WEB_SPECIFIC SmE FileMailer SQL Injection Attempt -- index.php ps
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005522,rev:4,msg:'ET WEB_SPECIFIC SmE FileMailer SQL Injection Attempt -- index.php ps ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_SmE'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:ps/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC SmE FileMailer SQL Injection Attempt -- index.php ps ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005528) ET WEB_SPECIFIC SmE FileMailer SQL Injection Attempt -- index.php us
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005528,rev:4,msg:'ET WEB_SPECIFIC SmE FileMailer SQL Injection Attempt -- index.php us ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_SmE'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:us/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC SmE FileMailer SQL Injection Attempt -- index.php us ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005534) ET WEB_SPECIFIC SmE FileMailer SQL Injection Attempt -- index.php f
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005534,rev:4,msg:'ET WEB_SPECIFIC SmE FileMailer SQL Injection Attempt -- index.php f ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_SmE'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:f/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC SmE FileMailer SQL Injection Attempt -- index.php f ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005540) ET WEB_SPECIFIC SmE FileMailer SQL Injection Attempt -- index.php code
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005540,rev:4,msg:'ET WEB_SPECIFIC SmE FileMailer SQL Injection Attempt -- index.php code ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_SmE'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:code/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC SmE FileMailer SQL Injection Attempt -- index.php code ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005546) ET WEB_SPECIFIC SmE FileMailer SQL Injection Attempt -- dl.php code
+SecRule REQUEST_URI_RAW "(?i:\/dl\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005546,rev:4,msg:'ET WEB_SPECIFIC SmE FileMailer SQL Injection Attempt -- dl.php code ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_SmE'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:code/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC SmE FileMailer SQL Injection Attempt -- dl.php code ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005552) ET WEB_SPECIFIC SmE FileMailer SQL Injection Attempt -- dl.php f
+SecRule REQUEST_URI_RAW "(?i:\/dl\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005552,rev:4,msg:'ET WEB_SPECIFIC SmE FileMailer SQL Injection Attempt -- dl.php f ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_SmE'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:f/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC SmE FileMailer SQL Injection Attempt -- dl.php f ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005558) ET WEB_SPECIFIC SmE FileMailer SQL Injection Attempt -- dl.php us
+SecRule REQUEST_URI_RAW "(?i:\/dl\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005558,rev:4,msg:'ET WEB_SPECIFIC SmE FileMailer SQL Injection Attempt -- dl.php us ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_SmE'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:us/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC SmE FileMailer SQL Injection Attempt -- dl.php us ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005564) ET WEB_SPECIFIC SmE FileMailer SQL Injection Attempt -- dl.php ps
+SecRule REQUEST_URI_RAW "(?i:\/dl\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005564,rev:4,msg:'ET WEB_SPECIFIC SmE FileMailer SQL Injection Attempt -- dl.php ps ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_SmE'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:ps/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC SmE FileMailer SQL Injection Attempt -- dl.php ps ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004867) ET WEB_SPECIFIC Snitz Forums 2000 SQL Injection Attempt -- pop_profile.asp id
+SecRule REQUEST_URI_RAW "(?i:\/pop_profile\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004867,rev:4,msg:'ET WEB_SPECIFIC Snitz Forums 2000 SQL Injection Attempt -- pop_profile.asp id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Snitz'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Snitz Forums 2000 SQL Injection Attempt -- pop_profile.asp id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006133) ET WEB_SPECIFIC Softwebs Nepal Ananda Real Estate SQL Injection Attempt -- list.asp agent
+SecRule REQUEST_URI_RAW "(?i:\/list\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006133,rev:4,msg:'ET WEB_SPECIFIC Softwebs Nepal Ananda Real Estate SQL Injection Attempt -- list.asp agent ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Softwebs'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:agent/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Softwebs Nepal Ananda Real Estate SQL Injection Attempt -- list.asp agent ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006484) ET WEB_SPECIFIC Solar Empire SQL Injection Attempt -- game_listing.php
+SecRule REQUEST_URI_RAW "(?i:\/game_listing\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006484,rev:4,msg:'ET WEB_SPECIFIC Solar Empire SQL Injection Attempt -- game_listing.php ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Solar_Empire'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:.+\(.+SELECT)"
+
+# (sid 2004383) ET WEB_SPECIFIC Triexa SonicMailer Pro SQL Injection Attempt -- index.php list
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004383,rev:4,msg:'ET WEB_SPECIFIC Triexa SonicMailer Pro SQL Injection Attempt -- index.php list ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_SonicMailer'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:list/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Triexa SonicMailer Pro SQL Injection Attempt -- index.php list ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004820) ET WEB_SPECIFIC Sphider SQL Injection Attempt -- search.php category
+SecRule REQUEST_URI_RAW "(?i:\/search\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004820,rev:4,msg:'ET WEB_SPECIFIC Sphider SQL Injection Attempt -- search.php category ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Sphider'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:category/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Sphider SQL Injection Attempt -- search.php category ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005156) ET WEB_SPECIFIC SpoonLabs Vivvo Article Management CMS (phpWordPress) SQL Injection Attempt -- show_webfeed.php wcHeadlines
+SecRule REQUEST_URI_RAW "(?i:\/rss\/show_webfeed\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005156,rev:4,msg:'ET WEB_SPECIFIC SpoonLabs Vivvo Article Management CMS (phpWordPress) SQL Injection Attempt -- show_webfeed.php wcHeadlines ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_SpoonLabs'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:wcHeadlines/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC SpoonLabs Vivvo Article Management CMS (phpWordPress) SQL Injection Attempt -- show_webfeed.php wcHeadlines ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004826) ET WEB_SPECIFIC Super Link Exchange Script SQL Injection Attempt -- directory.php cat
+SecRule REQUEST_URI_RAW "(?i:\/directory\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004826,rev:4,msg:'ET WEB_SPECIFIC Super Link Exchange Script SQL Injection Attempt -- directory.php cat ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Super_Link_Exchange'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:cat/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Super Link Exchange Script SQL Injection Attempt -- directory.php cat ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006637) ET WEB_SPECIFIC Superfreaker Studios UPublisher SQL Injection Attempt -- sendarticle.asp
+SecRule REQUEST_URI_RAW "(?i:\/sendarticle\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006637,rev:4,msg:'ET WEB_SPECIFIC Superfreaker Studios UPublisher SQL Injection Attempt -- sendarticle.asp ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Superfreaker'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:.+\(.+SELECT)"
+
+# (sid 2006643) ET WEB_SPECIFIC Superfreaker Studios UPublisher SQL Injection Attempt -- printarticle.asp
+SecRule REQUEST_URI_RAW "(?i:\/printarticle\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006643,rev:4,msg:'ET WEB_SPECIFIC Superfreaker Studios UPublisher SQL Injection Attempt -- printarticle.asp ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Superfreaker'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:.+\(.+SELECT)"
+
+# (sid 2006649) ET WEB_SPECIFIC Superfreaker Studios UPublisher SQL Injection Attempt -- index.asp ID
+SecRule REQUEST_URI_RAW "(?i:\/index\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006649,rev:4,msg:'ET WEB_SPECIFIC Superfreaker Studios UPublisher SQL Injection Attempt -- index.asp ID ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Superfreaker'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:ID/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Superfreaker Studios UPublisher SQL Injection Attempt -- index.asp ID ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006655) ET WEB_SPECIFIC Superfreaker Studios UPublisher SQL Injection Attempt -- preferences.asp ID
+SecRule REQUEST_URI_RAW "(?i:\/preferences\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006655,rev:4,msg:'ET WEB_SPECIFIC Superfreaker Studios UPublisher SQL Injection Attempt -- preferences.asp ID ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Superfreaker'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:ID/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Superfreaker Studios UPublisher SQL Injection Attempt -- preferences.asp ID ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005571) ET WEB_SPECIFIC ThWboard SQL Injection Attempt -- index.php board
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005571,rev:4,msg:'ET WEB_SPECIFIC ThWboard SQL Injection Attempt -- index.php board ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_ThWboard'"
+SecRule REQUEST_URI_RAW "@contains board[" "chain"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:\(.+SELECT)"
+
+# (sid 2006007) ET WEB_SPECIFIC The Address Book SQL Injection Attempt -- user.php lastname
+SecRule REQUEST_URI_RAW "(?i:\/user\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006007,rev:4,msg:'ET WEB_SPECIFIC The Address Book SQL Injection Attempt -- user.php lastname ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_The_Address_Book'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:lastname/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC The Address Book SQL Injection Attempt -- user.php lastname ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006013) ET WEB_SPECIFIC The Address Book SQL Injection Attempt -- user.php firstname
+SecRule REQUEST_URI_RAW "(?i:\/user\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006013,rev:4,msg:'ET WEB_SPECIFIC The Address Book SQL Injection Attempt -- user.php firstname ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_The_Address_Book'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:firstname/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC The Address Book SQL Injection Attempt -- user.php firstname ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006019) ET WEB_SPECIFIC The Address Book SQL Injection Attempt -- user.php passwordOld
+SecRule REQUEST_URI_RAW "(?i:\/user\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006019,rev:4,msg:'ET WEB_SPECIFIC The Address Book SQL Injection Attempt -- user.php passwordOld ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_The_Address_Book'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:passwordOld/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC The Address Book SQL Injection Attempt -- user.php passwordOld ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006025) ET WEB_SPECIFIC The Address Book SQL Injection Attempt -- user.php passwordNew
+SecRule REQUEST_URI_RAW "(?i:\/user\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006025,rev:4,msg:'ET WEB_SPECIFIC The Address Book SQL Injection Attempt -- user.php passwordNew ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_The_Address_Book'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:passwordNew/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC The Address Book SQL Injection Attempt -- user.php passwordNew ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006031) ET WEB_SPECIFIC The Address Book SQL Injection Attempt -- user.php id
+SecRule REQUEST_URI_RAW "(?i:\/user\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006031,rev:4,msg:'ET WEB_SPECIFIC The Address Book SQL Injection Attempt -- user.php id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_The_Address_Book'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC The Address Book SQL Injection Attempt -- user.php id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006037) ET WEB_SPECIFIC The Address Book SQL Injection Attempt -- user.php language
+SecRule REQUEST_URI_RAW "(?i:\/user\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006037,rev:4,msg:'ET WEB_SPECIFIC The Address Book SQL Injection Attempt -- user.php language ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_The_Address_Book'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:language/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC The Address Book SQL Injection Attempt -- user.php language ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006043) ET WEB_SPECIFIC The Address Book SQL Injection Attempt -- user.php defaultLetter
+SecRule REQUEST_URI_RAW "(?i:\/user\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006043,rev:4,msg:'ET WEB_SPECIFIC The Address Book SQL Injection Attempt -- user.php defaultLetter ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_The_Address_Book'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:defaultLetter/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC The Address Book SQL Injection Attempt -- user.php defaultLetter ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006049) ET WEB_SPECIFIC The Address Book SQL Injection Attempt -- user.php newuserPass
+SecRule REQUEST_URI_RAW "(?i:\/user\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006049,rev:4,msg:'ET WEB_SPECIFIC The Address Book SQL Injection Attempt -- user.php newuserPass ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_The_Address_Book'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:newuserPass/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC The Address Book SQL Injection Attempt -- user.php newuserPass ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006055) ET WEB_SPECIFIC The Address Book SQL Injection Attempt -- user.php newuserType
+SecRule REQUEST_URI_RAW "(?i:\/user\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006055,rev:4,msg:'ET WEB_SPECIFIC The Address Book SQL Injection Attempt -- user.php newuserType ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_The_Address_Book'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:newuserType/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC The Address Book SQL Injection Attempt -- user.php newuserType ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006061) ET WEB_SPECIFIC The Address Book SQL Injection Attempt -- user.php newuserEmail
+SecRule REQUEST_URI_RAW "(?i:\/user\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006061,rev:4,msg:'ET WEB_SPECIFIC The Address Book SQL Injection Attempt -- user.php newuserEmail ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_The_Address_Book'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:newuserEmail/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC The Address Book SQL Injection Attempt -- user.php newuserEmail ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006067) ET WEB_SPECIFIC The Address Book SQL Injection Attempt -- search.php goTo
+SecRule REQUEST_URI_RAW "(?i:\/search\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006067,rev:4,msg:'ET WEB_SPECIFIC The Address Book SQL Injection Attempt -- search.php goTo ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_The_Address_Book'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:goTo/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC The Address Book SQL Injection Attempt -- search.php goTo ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006073) ET WEB_SPECIFIC The Address Book SQL Injection Attempt -- search.php search
+SecRule REQUEST_URI_RAW "(?i:\/search\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006073,rev:4,msg:'ET WEB_SPECIFIC The Address Book SQL Injection Attempt -- search.php search ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_The_Address_Book'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:search/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC The Address Book SQL Injection Attempt -- search.php search ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006079) ET WEB_SPECIFIC The Address Book SQL Injection Attempt -- save.php groupAddName
+SecRule REQUEST_URI_RAW "(?i:\/save\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006079,rev:4,msg:'ET WEB_SPECIFIC The Address Book SQL Injection Attempt -- save.php groupAddName ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_The_Address_Book'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:groupAddName/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC The Address Book SQL Injection Attempt -- save.php groupAddName ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004873) ET WEB_SPECIFIC Turuncu Portal SQL Injection Attempt -- h_goster.asp id
+SecRule REQUEST_URI_RAW "(?i:\/h_goster\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004873,rev:4,msg:'ET WEB_SPECIFIC Turuncu Portal SQL Injection Attempt -- h_goster.asp id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Turuncu'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Turuncu Portal SQL Injection Attempt -- h_goster.asp id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004676) ET WEB_SPECIFIC Tyger Bug Tracking System (TygerBT) SQL Injection Attempt -- ViewReport.php bug
+SecRule REQUEST_URI_RAW "(?i:\/ViewReport\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004676,rev:4,msg:'ET WEB_SPECIFIC Tyger Bug Tracking System (TygerBT) SQL Injection Attempt -- ViewReport.php bug ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Tyger_Bug_Tracker'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:bug/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Tyger Bug Tracking System (TygerBT) SQL Injection Attempt -- ViewReport.php bug ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004681) ET WEB_SPECIFIC Tyger Bug Tracking System (TygerBT) SQL Injection Attempt -- ViewBugs.php s
+SecRule REQUEST_URI_RAW "(?i:\/ViewBugs\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004681,rev:4,msg:'ET WEB_SPECIFIC Tyger Bug Tracking System (TygerBT) SQL Injection Attempt -- ViewBugs.php s ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Tyger_Bug_Tracker'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:s/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Tyger Bug Tracking System (TygerBT) SQL Injection Attempt -- ViewBugs.php s ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005237) ET WEB_SPECIFIC Unique Ads (UDS) SQL Injection Attempt -- banner.php bid
+SecRule REQUEST_URI_RAW "(?i:\/banner\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005237,rev:4,msg:'ET WEB_SPECIFIC Unique Ads (UDS) SQL Injection Attempt -- banner.php bid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_UDS'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:bid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Unique Ads (UDS) SQL Injection Attempt -- banner.php bid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006890) ET WEB_SPECIFIC Uapplication UPhotoGallery SQL Injection Attempt -- slideshow.asp ci
+SecRule REQUEST_URI_RAW "(?i:\/slideshow\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006890,rev:4,msg:'ET WEB_SPECIFIC Uapplication UPhotoGallery SQL Injection Attempt -- slideshow.asp ci ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Uapplication'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:ci/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Uapplication UPhotoGallery SQL Injection Attempt -- slideshow.asp ci ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006896) ET WEB_SPECIFIC Uapplication UPhotoGallery SQL Injection Attempt -- thumbnails.asp ci
+SecRule REQUEST_URI_RAW "(?i:\/thumbnails\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006896,rev:4,msg:'ET WEB_SPECIFIC Uapplication UPhotoGallery SQL Injection Attempt -- thumbnails.asp ci ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Uapplication'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:ci/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Uapplication UPhotoGallery SQL Injection Attempt -- thumbnails.asp ci ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005007) ET WEB_SPECIFIC Ublog Reload SQL Injection Attempt -- badword.asp
+SecRule REQUEST_URI_RAW "(?i:\/badword\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005007,rev:4,msg:'ET WEB_SPECIFIC Ublog Reload SQL Injection Attempt -- badword.asp ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Ublog'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:\(.+SELECT)"
+
+# (sid 2007203) ET WEB_SPECIFIC Ultimate Survey Pro SQL Injection Attempt -- index.asp cat
+SecRule REQUEST_URI_RAW "(?i:\/index\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007203,rev:3,msg:'ET WEB_SPECIFIC Ultimate Survey Pro SQL Injection Attempt -- index.asp cat ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Ultimate_Survey'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:cat/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Ultimate Survey Pro SQL Injection Attempt -- index.asp cat ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007209) ET WEB_SPECIFIC Ultimate Survey Pro SQL Injection Attempt -- index.asp did
+SecRule REQUEST_URI_RAW "(?i:\/index\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007209,rev:3,msg:'ET WEB_SPECIFIC Ultimate Survey Pro SQL Injection Attempt -- index.asp did ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Ultimate_Survey'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:did/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Ultimate Survey Pro SQL Injection Attempt -- index.asp did ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005673) ET WEB_SPECIFIC VP-ASP Shopping Cart SQL Injection Attempt -- shopgiftregsearch.asp LoginLastname
+SecRule REQUEST_URI_RAW "(?i:\/shopgiftregsearch\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005673,rev:4,msg:'ET WEB_SPECIFIC VP-ASP Shopping Cart SQL Injection Attempt -- shopgiftregsearch.asp LoginLastname ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_VP-ASP'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:LoginLastname/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC VP-ASP Shopping Cart SQL Injection Attempt -- shopgiftregsearch.asp LoginLastname ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006607) ET WEB_SPECIFIC Vt-Forum Lite SQL Injection Attempt -- vf_memberdetail.asp user
+SecRule REQUEST_URI_RAW "(?i:\/vf_memberdetail\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006607,rev:4,msg:'ET WEB_SPECIFIC Vt-Forum Lite SQL Injection Attempt -- vf_memberdetail.asp user ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_VT_Forum'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:user/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Vt-Forum Lite SQL Injection Attempt -- vf_memberdetail.asp user ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006283) ET WEB_SPECIFIC VerliAdmin SQL Injection Attempt -- repass.php nick_mod
+SecRule REQUEST_URI_RAW "(?i:\/repass\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006283,rev:4,msg:'ET WEB_SPECIFIC VerliAdmin SQL Injection Attempt -- repass.php nick_mod ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Verliadmin'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:nick_mod/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC VerliAdmin SQL Injection Attempt -- repass.php nick_mod ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006289) ET WEB_SPECIFIC VerliAdmin SQL Injection Attempt -- repass.php nick
+SecRule REQUEST_URI_RAW "(?i:\/repass\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006289,rev:4,msg:'ET WEB_SPECIFIC VerliAdmin SQL Injection Attempt -- repass.php nick ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Verliadmin'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:nick/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC VerliAdmin SQL Injection Attempt -- repass.php nick ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006295) ET WEB_SPECIFIC VerliAdmin SQL Injection Attempt -- verify.php nick
+SecRule REQUEST_URI_RAW "(?i:\/verify\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006295,rev:4,msg:'ET WEB_SPECIFIC VerliAdmin SQL Injection Attempt -- verify.php nick ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Verliadmin'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:nick/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC VerliAdmin SQL Injection Attempt -- verify.php nick ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006301) ET WEB_SPECIFIC VerliAdmin SQL Injection Attempt -- verify.php nick_mod
+SecRule REQUEST_URI_RAW "(?i:\/verify\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006301,rev:4,msg:'ET WEB_SPECIFIC VerliAdmin SQL Injection Attempt -- verify.php nick_mod ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Verliadmin'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:nick_mod/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC VerliAdmin SQL Injection Attempt -- verify.php nick_mod ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005497) ET WEB_SPECIFIC Virtuemart SQL Injection Attempt -- virtuemart_parser.php Itemid
+SecRule REQUEST_URI_RAW "(?i:\/virtuemart_parser\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005497,rev:4,msg:'ET WEB_SPECIFIC Virtuemart SQL Injection Attempt -- virtuemart_parser.php Itemid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Virtuemart'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:Itemid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Virtuemart SQL Injection Attempt -- virtuemart_parser.php Itemid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005503) ET WEB_SPECIFIC Virtuemart SQL Injection Attempt -- virtuemart_parser.php product_id
+SecRule REQUEST_URI_RAW "(?i:\/virtuemart_parser\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005503,rev:4,msg:'ET WEB_SPECIFIC Virtuemart SQL Injection Attempt -- virtuemart_parser.php product_id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Virtuemart'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:product_id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Virtuemart SQL Injection Attempt -- virtuemart_parser.php product_id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005509) ET WEB_SPECIFIC Virtuemart SQL Injection Attempt -- virtuemart_parser.php category_id
+SecRule REQUEST_URI_RAW "(?i:\/virtuemart_parser\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005509,rev:4,msg:'ET WEB_SPECIFIC Virtuemart SQL Injection Attempt -- virtuemart_parser.php category_id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Virtuemart'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:category_id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Virtuemart SQL Injection Attempt -- virtuemart_parser.php category_id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2003997) ET WEB_SPECIFIC Vizayn Urun Tanitim Sitesi SQL Injection Attempt -- default.asp id
+SecRule REQUEST_URI_RAW "(?i:\/default\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2003997,rev:4,msg:'ET WEB_SPECIFIC Vizayn Urun Tanitim Sitesi SQL Injection Attempt -- default.asp id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Vizayn'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Vizayn Urun Tanitim Sitesi SQL Injection Attempt -- default.asp id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005893) ET WEB_SPECIFIC Vizayn Haber SQL Injection Attempt -- haberdetay.asp id
+SecRule REQUEST_URI_RAW "(?i:\/haberdetay\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005893,rev:4,msg:'ET WEB_SPECIFIC Vizayn Haber SQL Injection Attempt -- haberdetay.asp id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Vizayn'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Vizayn Haber SQL Injection Attempt -- haberdetay.asp id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007420) ET WEB_SPECIFIC vSpin.net Classified System SQL Injection Attempt -- cat.asp cat
+SecRule REQUEST_URI_RAW "(?i:\/cat\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007420,rev:3,msg:'ET WEB_SPECIFIC vSpin.net Classified System SQL Injection Attempt -- cat.asp cat ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Vspin'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:cat/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC vSpin.net Classified System SQL Injection Attempt -- cat.asp cat ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007426) ET WEB_SPECIFIC vSpin.net Classified System SQL Injection Attempt -- search.asp keyword
+SecRule REQUEST_URI_RAW "(?i:\/search\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007426,rev:3,msg:'ET WEB_SPECIFIC vSpin.net Classified System SQL Injection Attempt -- search.asp keyword ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Vspin'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:keyword/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC vSpin.net Classified System SQL Injection Attempt -- search.asp keyword ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007432) ET WEB_SPECIFIC vSpin.net Classified System SQL Injection Attempt -- search.asp order
+SecRule REQUEST_URI_RAW "(?i:\/search\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007432,rev:3,msg:'ET WEB_SPECIFIC vSpin.net Classified System SQL Injection Attempt -- search.asp order ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Vspin'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:order/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC vSpin.net Classified System SQL Injection Attempt -- search.asp order ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007438) ET WEB_SPECIFIC vSpin.net Classified System SQL Injection Attempt -- search.asp sort
+SecRule REQUEST_URI_RAW "(?i:\/search\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007438,rev:3,msg:'ET WEB_SPECIFIC vSpin.net Classified System SQL Injection Attempt -- search.asp sort ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Vspin'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:sort/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC vSpin.net Classified System SQL Injection Attempt -- search.asp sort ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007444) ET WEB_SPECIFIC vSpin.net Classified System SQL Injection Attempt -- search.asp menuSelect
+SecRule REQUEST_URI_RAW "(?i:\/search\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007444,rev:3,msg:'ET WEB_SPECIFIC vSpin.net Classified System SQL Injection Attempt -- search.asp menuSelect ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Vspin'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:menuSelect/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC vSpin.net Classified System SQL Injection Attempt -- search.asp menuSelect ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007450) ET WEB_SPECIFIC vSpin.net Classified System SQL Injection Attempt -- search.asp state
+SecRule REQUEST_URI_RAW "(?i:\/search\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007450,rev:3,msg:'ET WEB_SPECIFIC vSpin.net Classified System SQL Injection Attempt -- search.asp state ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Vspin'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:state/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC vSpin.net Classified System SQL Injection Attempt -- search.asp state ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004132) ET WEB_SPECIFIC w-Agora SQL Injection Attempt -- search.php search_forum
+SecRule REQUEST_URI_RAW "(?i:\/search\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004132,rev:4,msg:'ET WEB_SPECIFIC w-Agora SQL Injection Attempt -- search.php search_forum ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_W-Agora'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:search_forum/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC w-Agora SQL Injection Attempt -- search.php search_forum ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004138) ET WEB_SPECIFIC w-Agora SQL Injection Attempt -- search.php search_user
+SecRule REQUEST_URI_RAW "(?i:\/search\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004138,rev:4,msg:'ET WEB_SPECIFIC w-Agora SQL Injection Attempt -- search.php search_user ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_W-Agora'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:search_user/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC w-Agora SQL Injection Attempt -- search.php search_user ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004651) ET WEB_SPECIFIC W1L3D4 WEBmarket SQL Injection Attempt -- urunbak.asp id
+SecRule REQUEST_URI_RAW "(?i:\/urunbak\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004651,rev:4,msg:'ET WEB_SPECIFIC W1L3D4 WEBmarket SQL Injection Attempt -- urunbak.asp id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_W1L3D4_WEBmarlet'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC W1L3D4 WEBmarket SQL Injection Attempt -- urunbak.asp id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005308) ET WEB_SPECIFIC W2B Online Banking SQL Injection Attempt -- mailer.w2b draft
+SecRule REQUEST_URI_RAW "(?i:\/mailer\.w2b)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005308,rev:4,msg:'ET WEB_SPECIFIC W2B Online Banking SQL Injection Attempt -- mailer.w2b draft ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_W2B'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:draft/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC W2B Online Banking SQL Injection Attempt -- mailer.w2b draft ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005190) ET WEB_SPECIFIC W2B Online Banking SQL Injection Attempt -- DocPay.w2b listDocPay
+SecRule REQUEST_URI_RAW "(?i:\/DocPay\.w2b)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005190,rev:4,msg:'ET WEB_SPECIFIC W2B Online Banking SQL Injection Attempt -- DocPay.w2b listDocPay ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_W2B'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:listDocPay/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC W2B Online Banking SQL Injection Attempt -- DocPay.w2b listDocPay ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004318) ET WEB_SPECIFIC WBBlog SQL Injection Attempt -- index.php e_id
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004318,rev:4,msg:'ET WEB_SPECIFIC WBBlog SQL Injection Attempt -- index.php e_id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_WBBlog'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:e_id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC WBBlog SQL Injection Attempt -- index.php e_id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005953) ET WEB_SPECIFIC Website Designs For Less Click N Print Coupons SQL Injection Attempt -- coupon_detail.asp key
+SecRule REQUEST_URI_RAW "(?i:\/coupon_detail\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005953,rev:4,msg:'ET WEB_SPECIFIC Website Designs For Less Click N Print Coupons SQL Injection Attempt -- coupon_detail.asp key ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_WDFL'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:key/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Website Designs For Less Click N Print Coupons SQL Injection Attempt -- coupon_detail.asp key ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2003768) ET WEB_SPECIFIC WF-Links (wflinks) SQL Injection Attempt -- viewcat.php cid
+SecRule REQUEST_URI_RAW "(?i:\/viewcat\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2003768,rev:4,msg:'ET WEB_SPECIFIC WF-Links (wflinks) SQL Injection Attempt -- viewcat.php cid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_WF-Links'"
+SecRule REQUEST_URI_RAW "@contains (" "chain"
+SecRule &TX:'/SQL_INJECTION.*ARGS:cid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC WF-Links (wflinks) SQL Injection Attempt -- viewcat.php cid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004257) ET WEB_SPECIFIC WSN Guest SQL Injection Attempt -- comments.php id
+SecRule REQUEST_URI_RAW "(?i:\/comments\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004257,rev:4,msg:'ET WEB_SPECIFIC WSN Guest SQL Injection Attempt -- comments.php id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_WSN'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC WSN Guest SQL Injection Attempt -- comments.php id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006459) ET WEB_SPECIFIC WSPortal SQL Injection Attempt -- content.php page
+SecRule REQUEST_URI_RAW "(?i:\/content\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006459,rev:4,msg:'ET WEB_SPECIFIC WSPortal SQL Injection Attempt -- content.php page ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_WSPortal'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:page/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC WSPortal SQL Injection Attempt -- content.php page ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005959) ET WEB_SPECIFIC While You Were Out (WYWO) InOut Board SQL Injection Attempt -- phonemessage.asp num
+SecRule REQUEST_URI_RAW "(?i:\/phonemessage\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005959,rev:4,msg:'ET WEB_SPECIFIC While You Were Out (WYWO) InOut Board SQL Injection Attempt -- phonemessage.asp num ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_WYWO'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:num/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC While You Were Out (WYWO) InOut Board SQL Injection Attempt -- phonemessage.asp num ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005965) ET WEB_SPECIFIC While You Were Out (WYWO) InOut Board SQL Injection Attempt -- faqDsp.asp catcode
+SecRule REQUEST_URI_RAW "(?i:\/faqDsp\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005965,rev:4,msg:'ET WEB_SPECIFIC While You Were Out (WYWO) InOut Board SQL Injection Attempt -- faqDsp.asp catcode ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_WYWO'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:catcode/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC While You Were Out (WYWO) InOut Board SQL Injection Attempt -- faqDsp.asp catcode ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006979) ET WEB_SPECIFIC Wallpaper Complete Website SQL Injection Attempt -- process.php login
+SecRule REQUEST_URI_RAW "(?i:\/process\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006979,rev:4,msg:'ET WEB_SPECIFIC Wallpaper Complete Website SQL Injection Attempt -- process.php login ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Wallpaper_Complete'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:login/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Wallpaper Complete Website SQL Injection Attempt -- process.php login ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006985) ET WEB_SPECIFIC Wallpaper Complete Website SQL Injection Attempt -- process.php password
+SecRule REQUEST_URI_RAW "(?i:\/process\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006985,rev:4,msg:'ET WEB_SPECIFIC Wallpaper Complete Website SQL Injection Attempt -- process.php password ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Wallpaper_Complete'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:password/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Wallpaper Complete Website SQL Injection Attempt -- process.php password ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006991) ET WEB_SPECIFIC Wallpaper Complete Website SQL Injection Attempt -- dlwallpaper.php wallpaperid
+SecRule REQUEST_URI_RAW "(?i:\/dlwallpaper\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006991,rev:4,msg:'ET WEB_SPECIFIC Wallpaper Complete Website SQL Injection Attempt -- dlwallpaper.php wallpaperid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Wallpaper_Complete'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:wallpaperid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Wallpaper Complete Website SQL Injection Attempt -- dlwallpaper.php wallpaperid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006997) ET WEB_SPECIFIC Wallpaper Complete Website SQL Injection Attempt -- wallpaper.php wallpaperid
+SecRule REQUEST_URI_RAW "(?i:\/wallpaper\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006997,rev:4,msg:'ET WEB_SPECIFIC Wallpaper Complete Website SQL Injection Attempt -- wallpaper.php wallpaperid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Wallpaper_Complete'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:wallpaperid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Wallpaper Complete Website SQL Injection Attempt -- wallpaper.php wallpaperid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007074) ET WEB_SPECIFIC WarHound General Shopping Cart SQL Injection Attempt -- item.asp ItemID
+SecRule REQUEST_URI_RAW "(?i:\/item\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007074,rev:3,msg:'ET WEB_SPECIFIC WarHound General Shopping Cart SQL Injection Attempt -- item.asp ItemID ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Warhound'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:ItemID/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC WarHound General Shopping Cart SQL Injection Attempt -- item.asp ItemID ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004758) ET WEB_SPECIFIC WebMplayer SQL Injection Attempt -- index.php strid
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004758,rev:4,msg:'ET WEB_SPECIFIC WebMplayer SQL Injection Attempt -- index.php strid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_WebMplayer'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:strid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC WebMplayer SQL Injection Attempt -- index.php strid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004764) ET WEB_SPECIFIC WebMplayer SQL Injection Attempt -- filecheck.php id
+SecRule REQUEST_URI_RAW "(?i:\/filecheck\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004764,rev:4,msg:'ET WEB_SPECIFIC WebMplayer SQL Injection Attempt -- filecheck.php id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_WebMplayer'"
+SecRule REQUEST_URI_RAW "@contains id[" "chain"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:\(.+SELECT)"
+
+# (sid 2004915) ET WEB_SPECIFIC WebTester SQL Injection Attempt -- directions.php testID
+SecRule REQUEST_URI_RAW "(?i:\/directions\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004915,rev:4,msg:'ET WEB_SPECIFIC WebTester SQL Injection Attempt -- directions.php testID ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_WebTester'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:testID/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC WebTester SQL Injection Attempt -- directions.php testID ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004776) ET WEB_SPECIFIC Ban SQL Injection Attempt -- connexion.php id
+SecRule REQUEST_URI_RAW "(?i:\/connexion\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004776,rev:4,msg:'ET WEB_SPECIFIC Ban SQL Injection Attempt -- connexion.php id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Web_Ban'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Ban SQL Injection Attempt -- connexion.php id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004228) ET WEB_SPECIFIC Web Wiz Forums SQL Injection Attempt -- functions_filters.asp
+SecRule REQUEST_URI_RAW "(?i:\/functions\/functions_filters\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004228,rev:4,msg:'ET WEB_SPECIFIC Web Wiz Forums SQL Injection Attempt -- functions_filters.asp ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Web_Wiz'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:\(.+SELECT)"
+
+# (sid 2004439) ET WEB_SPECIFIC Web Wiz Forums SQL Injection Attempt -- pop_up_member_search.asp name
+SecRule REQUEST_URI_RAW "(?i:\/forum\/pop_up_member_search\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004439,rev:4,msg:'ET WEB_SPECIFIC Web Wiz Forums SQL Injection Attempt -- pop_up_member_search.asp name ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Web_Wiz'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:name/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Web Wiz Forums SQL Injection Attempt -- pop_up_member_search.asp name ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004239) ET WEB_SPECIFIC Web Wiz Forums SQL Injection Attempt -- page.asp NewsID
+SecRule REQUEST_URI_RAW "(?i:\/News\/page\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004239,rev:4,msg:'ET WEB_SPECIFIC Web Wiz Forums SQL Injection Attempt -- page.asp NewsID ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Web_Wiz'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:NewsID/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Web Wiz Forums SQL Injection Attempt -- page.asp NewsID ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005231) ET WEB_SPECIFIC Website Baker SQL Injection Attempt -- eWebQuiz.asp QuizID
+SecRule REQUEST_URI_RAW "(?i:\/eWebQuiz\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005231,rev:4,msg:'ET WEB_SPECIFIC Website Baker SQL Injection Attempt -- eWebQuiz.asp QuizID ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Website_Baker'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:QuizID/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Website Baker SQL Injection Attempt -- eWebQuiz.asp QuizID ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004144) ET WEB_SPECIFIC Weekly Drawing Contest SQL Injection Attempt -- check_vote.php order
+SecRule REQUEST_URI_RAW "(?i:\/check_vote\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004144,rev:4,msg:'ET WEB_SPECIFIC Weekly Drawing Contest SQL Injection Attempt -- check_vote.php order ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Weekly_Drawing'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:order/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Weekly Drawing Contest SQL Injection Attempt -- check_vote.php order ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004251) ET WEB_SPECIFIC Woltlab Burning Board SQL Injection Attempt -- usergroups.php
+SecRule REQUEST_URI_RAW "(?i:\/usergroups\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004251,rev:4,msg:'ET WEB_SPECIFIC Woltlab Burning Board SQL Injection Attempt -- usergroups.php ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Woltlab'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:\(.+SELECT)"
+
+# (sid 2005001) ET WEB_SPECIFIC Woltlab Burning Board (wBB) Lite SQL Injection Attempt -- pms.php pmid
+SecRule REQUEST_URI_RAW "(?i:\/pms\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005001,rev:4,msg:'ET WEB_SPECIFIC Woltlab Burning Board (wBB) Lite SQL Injection Attempt -- pms.php pmid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Woltlab'"
+SecRule REQUEST_URI_RAW "@contains pmid[" "chain"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:\(.+SELECT)"
+
+# (sid 2005284) ET WEB_SPECIFIC Woltlab Burning Board (wBB) SQL Injection Attempt -- search.php boardids
+SecRule REQUEST_URI_RAW "(?i:\/search\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005284,rev:4,msg:'ET WEB_SPECIFIC Woltlab Burning Board (wBB) SQL Injection Attempt -- search.php boardids ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Woltlab'"
+SecRule REQUEST_URI_RAW "@contains boardids[" "chain"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:\(.+SELECT)"
+
+# (sid 2005290) ET WEB_SPECIFIC Woltlab Burning Board (wBB) SQL Injection Attempt -- search.php board
+SecRule REQUEST_URI_RAW "(?i:\/search\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005290,rev:4,msg:'ET WEB_SPECIFIC Woltlab Burning Board (wBB) SQL Injection Attempt -- search.php board ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Woltlab'"
+SecRule REQUEST_URI_RAW "@contains board[" "chain"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:\(.+SELECT)"
+
+# (sid 2006925) ET WEB_SPECIFIC Woltlab Burning Board Lite SQL Injection Attempt -- thread.php threadvisit
+SecRule REQUEST_URI_RAW "(?i:\/thread\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006925,rev:4,msg:'ET WEB_SPECIFIC Woltlab Burning Board Lite SQL Injection Attempt -- thread.php threadvisit ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Woltlab'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:threadvisit/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Woltlab Burning Board Lite SQL Injection Attempt -- thread.php threadvisit ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004015) ET WEB_SPECIFIC WordPress SQL Injection Attempt -- admin-ajax.php cookie
+SecRule REQUEST_URI_RAW "(?i:\/wp\-admin\/admin\-ajax\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004015,rev:4,msg:'ET WEB_SPECIFIC WordPress SQL Injection Attempt -- admin-ajax.php cookie ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Wordpress'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:cookie/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC WordPress SQL Injection Attempt -- admin-ajax.php cookie ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004407) ET WEB_SPECIFIC WordPress SQL Injection Attempt -- admin-functions.php
+SecRule REQUEST_URI_RAW "(?i:\/wp\-admin\/admin\-functions\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004407,rev:4,msg:'ET WEB_SPECIFIC WordPress SQL Injection Attempt -- admin-functions.php ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Wordpress'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:\(.+SELECT)"
+
+# (sid 2004658) ET WEB_SPECIFIC Wordpress 2.2 SQL Injection Attempt -- xmlrpc.php
+SecRule REQUEST_URI_RAW "(?i:\/xmlrpc\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004658,rev:4,msg:'ET WEB_SPECIFIC Wordpress 2.2 SQL Injection Attempt -- xmlrpc.php ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Wordpress'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:\(.+SELECT)"
+
+# (sid 2005661) ET WEB_SPECIFIC WordPress SQL Injection Attempt -- wp-trackback.php
+SecRule REQUEST_URI_RAW "(?i:\/wp\-trackback\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005661,rev:4,msg:'ET WEB_SPECIFIC WordPress SQL Injection Attempt -- wp-trackback.php ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Wordpress'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:\(.+SELECT)"
+
+# (sid 2005869) ET WEB_SPECIFIC WordPress SQL Injection Attempt -- wp-trackback.php
+SecRule REQUEST_URI_RAW "(?i:\/wp\-trackback\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005869,rev:4,msg:'ET WEB_SPECIFIC WordPress SQL Injection Attempt -- wp-trackback.php ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Wordpress'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:\(.+SELECT)"
+
+# (sid 2004347) ET WEB_SPECIFIC X-Ice News System SQL Injection Attempt -- devami.asp id
+SecRule REQUEST_URI_RAW "(?i:\/devami\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004347,rev:4,msg:'ET WEB_SPECIFIC X-Ice News System SQL Injection Attempt -- devami.asp id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_X-Ice_News'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC X-Ice News System SQL Injection Attempt -- devami.asp id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005121) ET WEB_SPECIFIC X-dev xNews SQL Injection Attempt -- class.news.php id
+SecRule REQUEST_URI_RAW "(?i:\/classes\/class\.news\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005121,rev:4,msg:'ET WEB_SPECIFIC X-dev xNews SQL Injection Attempt -- class.news.php id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_X-dev'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC X-dev xNews SQL Injection Attempt -- class.news.php id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005127) ET WEB_SPECIFIC X-dev xNews SQL Injection Attempt -- class.news.php from
+SecRule REQUEST_URI_RAW "(?i:\/classes\/class\.news\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005127,rev:4,msg:'ET WEB_SPECIFIC X-dev xNews SQL Injection Attempt -- class.news.php from ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_X-dev'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:from/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC X-dev xNews SQL Injection Attempt -- class.news.php from ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005133) ET WEB_SPECIFIC X-dev xNews SQL Injection Attempt -- class.news.php q
+SecRule REQUEST_URI_RAW "(?i:\/classes\/class\.news\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005133,rev:4,msg:'ET WEB_SPECIFIC X-dev xNews SQL Injection Attempt -- class.news.php q ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_X-dev'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:q/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC X-dev xNews SQL Injection Attempt -- class.news.php q ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004861) ET WEB_SPECIFIC XLAtunes SQL Injection Attempt -- view.php album
+SecRule REQUEST_URI_RAW "(?i:\/view\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004861,rev:4,msg:'ET WEB_SPECIFIC XLAtunes SQL Injection Attempt -- view.php album ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_XLAtunes'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:album/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC XLAtunes SQL Injection Attempt -- view.php album ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005382) ET WEB_SPECIFIC Xoops SQL Injection Attempt -- group.php id
+SecRule REQUEST_URI_RAW "(?i:\/kernel\/group\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005382,rev:4,msg:'ET WEB_SPECIFIC Xoops SQL Injection Attempt -- group.php id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Xoops'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Xoops SQL Injection Attempt -- group.php id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005388) ET WEB_SPECIFIC Xoops SQL Injection Attempt -- table_broken.php lid
+SecRule REQUEST_URI_RAW "(?i:\/class\/table_broken\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005388,rev:4,msg:'ET WEB_SPECIFIC Xoops SQL Injection Attempt -- table_broken.php lid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Xoops'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:lid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Xoops SQL Injection Attempt -- table_broken.php lid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006490) ET WEB_SPECIFIC Xoops SQL Injection Attempt -- print.php id
+SecRule REQUEST_URI_RAW "(?i:\/print\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006490,rev:4,msg:'ET WEB_SPECIFIC Xoops SQL Injection Attempt -- print.php id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Xoops'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Xoops SQL Injection Attempt -- print.php id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006217) ET WEB_SPECIFIC Xt-News SQL Injection Attempt -- show_news.php id_news
+SecRule REQUEST_URI_RAW "(?i:\/show_news\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006217,rev:4,msg:'ET WEB_SPECIFIC Xt-News SQL Injection Attempt -- show_news.php id_news ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Xt-News'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id_news/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Xt-News SQL Injection Attempt -- show_news.php id_news ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005613) ET WEB_SPECIFIC Xtreme ASP Photo Gallery SQL Injection Attempt -- displaypic.asp sortorder
+SecRule REQUEST_URI_RAW "(?i:\/displaypic\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005613,rev:4,msg:'ET WEB_SPECIFIC Xtreme ASP Photo Gallery SQL Injection Attempt -- displaypic.asp sortorder ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Xtreme'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:sortorder/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Xtreme ASP Photo Gallery SQL Injection Attempt -- displaypic.asp sortorder ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004807) ET WEB_SPECIFIC Mathis Dirksen-Thedens ZephyrSoft Toolbox Address Book Continued (ABC) SQL Injection Attempt -- functions.php id
+SecRule REQUEST_URI_RAW "(?i:\/functions\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004807,rev:4,msg:'ET WEB_SPECIFIC Mathis Dirksen-Thedens ZephyrSoft Toolbox Address Book Continued (ABC) SQL Injection Attempt -- functions.php id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_ZephyrSoft'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Mathis Dirksen-Thedens ZephyrSoft Toolbox Address Book Continued (ABC) SQL Injection Attempt -- functions.php id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005196) ET WEB_SPECIFIC Zindizayn Okul Web Sistemi SQL Injection Attempt -- mezungiris.asp id
+SecRule REQUEST_URI_RAW "(?i:\/mezungiris\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005196,rev:4,msg:'ET WEB_SPECIFIC Zindizayn Okul Web Sistemi SQL Injection Attempt -- mezungiris.asp id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Zindizayn'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Zindizayn Okul Web Sistemi SQL Injection Attempt -- mezungiris.asp id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005202) ET WEB_SPECIFIC Zindizayn Okul Web Sistemi SQL Injection Attempt -- mezungiris.asp pass
+SecRule REQUEST_URI_RAW "(?i:\/mezungiris\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005202,rev:4,msg:'ET WEB_SPECIFIC Zindizayn Okul Web Sistemi SQL Injection Attempt -- mezungiris.asp pass ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Zindizayn'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:pass/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Zindizayn Okul Web Sistemi SQL Injection Attempt -- mezungiris.asp pass ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005208) ET WEB_SPECIFIC Zindizayn Okul Web Sistemi SQL Injection Attempt -- ogretmenkontrol.asp pass
+SecRule REQUEST_URI_RAW "(?i:\/ogretmenkontrol\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005208,rev:4,msg:'ET WEB_SPECIFIC Zindizayn Okul Web Sistemi SQL Injection Attempt -- ogretmenkontrol.asp pass ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Zindizayn'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:pass/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Zindizayn Okul Web Sistemi SQL Injection Attempt -- ogretmenkontrol.asp pass ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005214) ET WEB_SPECIFIC Zindizayn Okul Web Sistemi SQL Injection Attempt -- ogretmenkontrol.asp id
+SecRule REQUEST_URI_RAW "(?i:\/ogretmenkontrol\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005214,rev:4,msg:'ET WEB_SPECIFIC Zindizayn Okul Web Sistemi SQL Injection Attempt -- ogretmenkontrol.asp id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Zindizayn'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Zindizayn Okul Web Sistemi SQL Injection Attempt -- ogretmenkontrol.asp id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2003985) ET WEB_SPECIFIC Zomplog SQL Injection Attempt -- mp3playlist.php speler
+SecRule REQUEST_URI_RAW "(?i:\/plugins\/mp3playlist\/mp3playlist\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2003985,rev:4,msg:'ET WEB_SPECIFIC Zomplog SQL Injection Attempt -- mp3playlist.php speler ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_Zomplog'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:speler/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC Zomplog SQL Injection Attempt -- mp3playlist.php speler ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005983) ET WEB_SPECIFIC aFAQ SQL Injection Attempt -- faqDsp.asp catcode
+SecRule REQUEST_URI_RAW "(?i:\/faqDsp\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005983,rev:4,msg:'ET WEB_SPECIFIC aFAQ SQL Injection Attempt -- faqDsp.asp catcode ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_aFAQ'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:catcode/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC aFAQ SQL Injection Attempt -- faqDsp.asp catcode ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005328) ET WEB_SPECIFIC bbPress SQL Injection Attempt -- formatting-functions.php
+SecRule REQUEST_URI_RAW "(?i:\/bb\-includes\/formatting\-functions\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005328,rev:4,msg:'ET WEB_SPECIFIC bbPress SQL Injection Attempt -- formatting-functions.php ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_bbPress'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:\(.+SELECT)"
+
+# (sid 2005770) ET WEB_SPECIFIC bitweaver SQL Injection Attempt -- edition.php tk
+SecRule REQUEST_URI_RAW "(?i:\/newsletters\/edition\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005770,rev:4,msg:'ET WEB_SPECIFIC bitweaver SQL Injection Attempt -- edition.php tk ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_bitweaver'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:tk/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC bitweaver SQL Injection Attempt -- edition.php tk ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006175) ET WEB_SPECIFIC chatwm SQL Injection Attempt -- SelGruFra.asp txtUse
+SecRule REQUEST_URI_RAW "(?i:\/SelGruFra\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006175,rev:4,msg:'ET WEB_SPECIFIC chatwm SQL Injection Attempt -- SelGruFra.asp txtUse ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_chatwm'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:txtUse/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC chatwm SQL Injection Attempt -- SelGruFra.asp txtUse ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006181) ET WEB_SPECIFIC chatwm SQL Injection Attempt -- SelGruFra.asp txtPas
+SecRule REQUEST_URI_RAW "(?i:\/SelGruFra\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006181,rev:4,msg:'ET WEB_SPECIFIC chatwm SQL Injection Attempt -- SelGruFra.asp txtPas ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_chatwm'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:txtPas/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC chatwm SQL Injection Attempt -- SelGruFra.asp txtPas ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004057) ET WEB_SPECIFIC cpCommerce SQL Injection Attempt -- category.php id_category
+SecRule REQUEST_URI_RAW "(?i:\/category\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004057,rev:4,msg:'ET WEB_SPECIFIC cpCommerce SQL Injection Attempt -- category.php id_category ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_cpCommerce'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id_category/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC cpCommerce SQL Injection Attempt -- category.php id_category ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004105) ET WEB_SPECIFIC cpCommerce SQL Injection Attempt -- manufacturer.php id_manufacturer
+SecRule REQUEST_URI_RAW "(?i:\/manufacturer\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004105,rev:4,msg:'ET WEB_SPECIFIC cpCommerce SQL Injection Attempt -- manufacturer.php id_manufacturer ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_cpCommerce'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id_manufacturer/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC cpCommerce SQL Injection Attempt -- manufacturer.php id_manufacturer ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005037) ET WEB_SPECIFIC dB Masters Curium CMS SQL Injection Attempt -- news.php c_id
+SecRule REQUEST_URI_RAW "(?i:\/news\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005037,rev:4,msg:'ET WEB_SPECIFIC dB Masters Curium CMS SQL Injection Attempt -- news.php c_id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_dB_Masters'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:c_id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC dB Masters Curium CMS SQL Injection Attempt -- news.php c_id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006955) ET WEB_SPECIFIC dev4u CMS SQL Injection Attempt -- index.php seite_id
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006955,rev:4,msg:'ET WEB_SPECIFIC dev4u CMS SQL Injection Attempt -- index.php seite_id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_dev4u'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:seite_id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC dev4u CMS SQL Injection Attempt -- index.php seite_id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006961) ET WEB_SPECIFIC dev4u CMS SQL Injection Attempt -- index.php gruppe_id
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006961,rev:4,msg:'ET WEB_SPECIFIC dev4u CMS SQL Injection Attempt -- index.php gruppe_id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_dev4u'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:gruppe_id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC dev4u CMS SQL Injection Attempt -- index.php gruppe_id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006967) ET WEB_SPECIFIC dev4u CMS SQL Injection Attempt -- index.php go_target
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006967,rev:4,msg:'ET WEB_SPECIFIC dev4u CMS SQL Injection Attempt -- index.php go_target ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_dev4u'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:go_target/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC dev4u CMS SQL Injection Attempt -- index.php go_target ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006619) ET WEB_SPECIFIC dol storye SQL Injection Attempt -- dettaglio.asp id_doc
+SecRule REQUEST_URI_RAW "(?i:\/dettaglio\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006619,rev:4,msg:'ET WEB_SPECIFIC dol storye SQL Injection Attempt -- dettaglio.asp id_doc ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_dol_storye'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id_doc/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC dol storye SQL Injection Attempt -- dettaglio.asp id_doc ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006625) ET WEB_SPECIFIC dol storye SQL Injection Attempt -- dettaglio.asp id_aut
+SecRule REQUEST_URI_RAW "(?i:\/dettaglio\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006625,rev:4,msg:'ET WEB_SPECIFIC dol storye SQL Injection Attempt -- dettaglio.asp id_aut ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_dol_storye'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id_aut/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC dol storye SQL Injection Attempt -- dettaglio.asp id_aut ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005929) ET WEB_SPECIFIC eNdonesia SQL Injection Attempt -- mod.php did
+SecRule REQUEST_URI_RAW "(?i:\/mod\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005929,rev:4,msg:'ET WEB_SPECIFIC eNdonesia SQL Injection Attempt -- mod.php did ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_eNdonesia'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:did/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC eNdonesia SQL Injection Attempt -- mod.php did ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005935) ET WEB_SPECIFIC eNdonesia SQL Injection Attempt -- mod.php cid
+SecRule REQUEST_URI_RAW "(?i:\/mod\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005935,rev:4,msg:'ET WEB_SPECIFIC eNdonesia SQL Injection Attempt -- mod.php cid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_eNdonesia'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:cid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC eNdonesia SQL Injection Attempt -- mod.php cid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007378) ET WEB_SPECIFIC fipsGallery SQL Injection Attempt -- index1.asp which
+SecRule REQUEST_URI_RAW "(?i:\/index1\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007378,rev:3,msg:'ET WEB_SPECIFIC fipsGallery SQL Injection Attempt -- index1.asp which ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_fips'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:which/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC fipsGallery SQL Injection Attempt -- index1.asp which ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007384) ET WEB_SPECIFIC fipsForum SQL Injection Attempt -- default2.asp kat
+SecRule REQUEST_URI_RAW "(?i:\/default2\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007384,rev:3,msg:'ET WEB_SPECIFIC fipsForum SQL Injection Attempt -- default2.asp kat ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_fips'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:kat/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC fipsForum SQL Injection Attempt -- default2.asp kat ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2007390) ET WEB_SPECIFIC fipsCMS SQL Injection Attempt -- index.asp fid
+SecRule REQUEST_URI_RAW "(?i:\/index\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2007390,rev:3,msg:'ET WEB_SPECIFIC fipsCMS SQL Injection Attempt -- index.asp fid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_fips'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:fid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC fipsCMS SQL Injection Attempt -- index.asp fid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004112) ET WEB_SPECIFIC gCards SQL Injection Attempt -- getnewsitem.php newsid
+SecRule REQUEST_URI_RAW "(?i:\/getnewsitem\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004112,rev:4,msg:'ET WEB_SPECIFIC gCards SQL Injection Attempt -- getnewsitem.php newsid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_gCards'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:newsid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC gCards SQL Injection Attempt -- getnewsitem.php newsid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005809) ET WEB_SPECIFIC iGeneric iG Shop SQL Injection Attempt -- display_review.php id
+SecRule REQUEST_URI_RAW "(?i:\/display_review\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005809,rev:4,msg:'ET WEB_SPECIFIC iGeneric iG Shop SQL Injection Attempt -- display_review.php id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_iGeneric'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC iGeneric iG Shop SQL Injection Attempt -- display_review.php id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005815) ET WEB_SPECIFIC iGeneric iG Shop SQL Injection Attempt -- display_review.php user_login_cookie
+SecRule REQUEST_URI_RAW "(?i:\/display_review\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005815,rev:4,msg:'ET WEB_SPECIFIC iGeneric iG Shop SQL Injection Attempt -- display_review.php user_login_cookie ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_iGeneric'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:user_login_cookie/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC iGeneric iG Shop SQL Injection Attempt -- display_review.php user_login_cookie ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005821) ET WEB_SPECIFIC iGeneric iG Shop SQL Injection Attempt -- compare_product.php id
+SecRule REQUEST_URI_RAW "(?i:\/compare_product\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005821,rev:4,msg:'ET WEB_SPECIFIC iGeneric iG Shop SQL Injection Attempt -- compare_product.php id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_iGeneric'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC iGeneric iG Shop SQL Injection Attempt -- compare_product.php id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005827) ET WEB_SPECIFIC iGeneric iG Calendar SQL Injection Attempt -- user.php id
+SecRule REQUEST_URI_RAW "(?i:\/user\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005827,rev:4,msg:'ET WEB_SPECIFIC iGeneric iG Calendar SQL Injection Attempt -- user.php id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_iGeneric'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC iGeneric iG Calendar SQL Injection Attempt -- user.php id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2006613) ET WEB_SPECIFIC iWare Professional SQL Injection Attempt -- index.php D
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2006613,rev:4,msg:'ET WEB_SPECIFIC iWare Professional SQL Injection Attempt -- index.php D ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_iWare_Pro'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:D/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC iWare Professional SQL Injection Attempt -- index.php D ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004844) ET WEB_SPECIFIC mcRefer SQL Injection Attempt -- install.php bgcolor
+SecRule REQUEST_URI_RAW "(?i:\/install\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004844,rev:4,msg:'ET WEB_SPECIFIC mcRefer SQL Injection Attempt -- install.php bgcolor ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_mcRefer'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:bgcolor/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC mcRefer SQL Injection Attempt -- install.php bgcolor ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004472) ET WEB_SPECIFIC myBloggie SQL Injection Attempt -- index.php cat_id
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004472,rev:4,msg:'ET WEB_SPECIFIC myBloggie SQL Injection Attempt -- index.php cat_id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_myBloggie'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:cat_id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC myBloggie SQL Injection Attempt -- index.php cat_id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004478) ET WEB_SPECIFIC myBloggie SQL Injection Attempt -- index.php year
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004478,rev:4,msg:'ET WEB_SPECIFIC myBloggie SQL Injection Attempt -- index.php year ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_myBloggie'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:year/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC myBloggie SQL Injection Attempt -- index.php year ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004009) ET WEB_SPECIFIC ol\'bookmarks SQL Injection Attempt -- index.php id
+SecRule REQUEST_URI_RAW "(?i:\/read\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004009,rev:4,msg:'ET WEB_SPECIFIC ol\'bookmarks SQL Injection Attempt -- index.php id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_olboolmarks'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC ol\'bookmarks SQL Injection Attempt -- index.php id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004903) ET WEB_SPECIFIC phpCC SQL Injection Attempt -- nickpage.php npid
+SecRule REQUEST_URI_RAW "(?i:\/nickpage\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004903,rev:4,msg:'ET WEB_SPECIFIC phpCC SQL Injection Attempt -- nickpage.php npid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_phpCC'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:npid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC phpCC SQL Injection Attempt -- nickpage.php npid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004174) ET WEB_SPECIFIC phpx SQL Injection Attempt -- gallery.php image_id
+SecRule REQUEST_URI_RAW "(?i:\/gallery\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004174,rev:4,msg:'ET WEB_SPECIFIC phpx SQL Injection Attempt -- gallery.php image_id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_phpx'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:image_id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC phpx SQL Injection Attempt -- gallery.php image_id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004180) ET WEB_SPECIFIC phpx SQL Injection Attempt -- gallery.php cat_id
+SecRule REQUEST_URI_RAW "(?i:\/gallery\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004180,rev:4,msg:'ET WEB_SPECIFIC phpx SQL Injection Attempt -- gallery.php cat_id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_phpx'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:cat_id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC phpx SQL Injection Attempt -- gallery.php cat_id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004186) ET WEB_SPECIFIC phpx SQL Injection Attempt -- news.php news_id
+SecRule REQUEST_URI_RAW "(?i:\/news\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004186,rev:4,msg:'ET WEB_SPECIFIC phpx SQL Injection Attempt -- news.php news_id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_phpx'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:news_id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC phpx SQL Injection Attempt -- news.php news_id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004192) ET WEB_SPECIFIC phpx SQL Injection Attempt -- print.php news_id
+SecRule REQUEST_URI_RAW "(?i:\/print\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004192,rev:4,msg:'ET WEB_SPECIFIC phpx SQL Injection Attempt -- print.php news_id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_phpx'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:news_id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC phpx SQL Injection Attempt -- print.php news_id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004198) ET WEB_SPECIFIC phpx SQL Injection Attempt -- news.php news_cat_id
+SecRule REQUEST_URI_RAW "(?i:\/news\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004198,rev:4,msg:'ET WEB_SPECIFIC phpx SQL Injection Attempt -- news.php news_cat_id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_phpx'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:news_cat_id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC phpx SQL Injection Attempt -- news.php news_cat_id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004204) ET WEB_SPECIFIC phpx SQL Injection Attempt -- forums.php cat_id
+SecRule REQUEST_URI_RAW "(?i:\/forums\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004204,rev:4,msg:'ET WEB_SPECIFIC phpx SQL Injection Attempt -- forums.php cat_id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_phpx'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:cat_id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC phpx SQL Injection Attempt -- forums.php cat_id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004210) ET WEB_SPECIFIC phpx SQL Injection Attempt -- forums.php topic_id
+SecRule REQUEST_URI_RAW "(?i:\/forums\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004210,rev:4,msg:'ET WEB_SPECIFIC phpx SQL Injection Attempt -- forums.php topic_id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_phpx'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:topic_id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC phpx SQL Injection Attempt -- forums.php topic_id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004216) ET WEB_SPECIFIC phpx SQL Injection Attempt -- forums.php post_id
+SecRule REQUEST_URI_RAW "(?i:\/forums\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004216,rev:4,msg:'ET WEB_SPECIFIC phpx SQL Injection Attempt -- forums.php post_id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_phpx'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:post_id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC phpx SQL Injection Attempt -- forums.php post_id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004222) ET WEB_SPECIFIC phpx SQL Injection Attempt -- users.php user_id
+SecRule REQUEST_URI_RAW "(?i:\/users\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004222,rev:4,msg:'ET WEB_SPECIFIC phpx SQL Injection Attempt -- users.php user_id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_phpx'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:user_id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC phpx SQL Injection Attempt -- users.php user_id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2003786) ET WEB_SPECIFIC pnFlashGames SQL Injection Attempt -- index.php cid
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2003786,rev:4,msg:'ET WEB_SPECIFIC pnFlashGames SQL Injection Attempt -- index.php cid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_pnFlashGames'"
+SecRule REQUEST_URI_RAW "@contains (" "chain"
+SecRule &TX:'/SQL_INJECTION.*ARGS:cid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC pnFlashGames SQL Injection Attempt -- index.php cid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005667) ET WEB_SPECIFIC uniForum SQL Injection Attempt -- wbsearch.aspx
+SecRule REQUEST_URI_RAW "(?i:\/wbsearch\.aspx)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005667,rev:4,msg:'ET WEB_SPECIFIC uniForum SQL Injection Attempt -- wbsearch.aspx ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_uniForm'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:\(.+SELECT)"
+
+# (sid 2005352) ET WEB_SPECIFIC vBSupport SQL Injection Attempt -- vBSupport.php
+SecRule REQUEST_URI_RAW "(?i:\/vBSupport\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005352,rev:4,msg:'ET WEB_SPECIFIC vBSupport SQL Injection Attempt -- vBSupport.php ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_vBSupport'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:\(.+SELECT)"
+
+# (sid 2005358) ET WEB_SPECIFIC vSupport Integrated Ticket System SQL Injection Attempt -- vBSupport.php ticketid
+SecRule REQUEST_URI_RAW "(?i:\/vBSupport\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005358,rev:4,msg:'ET WEB_SPECIFIC vSupport Integrated Ticket System SQL Injection Attempt -- vBSupport.php ticketid ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_vSupport'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:ticketid/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC vSupport Integrated Ticket System SQL Injection Attempt -- vBSupport.php ticketid ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004752) ET WEB_SPECIFIC webSPELL SQL Injection Attempt -- printview.php topic
+SecRule REQUEST_URI_RAW "(?i:\/printview\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004752,rev:4,msg:'ET WEB_SPECIFIC webSPELL SQL Injection Attempt -- printview.php topic ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_webSPELL'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:topic/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC webSPELL SQL Injection Attempt -- printview.php topic ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2004885) ET WEB_SPECIFIC webSPELL SQL Injection Attempt -- index.php showonly
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2004885,rev:4,msg:'ET WEB_SPECIFIC webSPELL SQL Injection Attempt -- index.php showonly ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_webSPELL'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:showonly/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC webSPELL SQL Injection Attempt -- index.php showonly ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005243) ET WEB_SPECIFIC webSPELL SQL Injection Attempt -- gallery.php picID
+SecRule REQUEST_URI_RAW "(?i:\/gallery\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005243,rev:4,msg:'ET WEB_SPECIFIC webSPELL SQL Injection Attempt -- gallery.php picID ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_webSPELL'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:picID/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC webSPELL SQL Injection Attempt -- gallery.php picID ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005249) ET WEB_SPECIFIC webSPELL SQL Injection Attempt -- gallery.php id
+SecRule REQUEST_URI_RAW "(?i:\/gallery\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005249,rev:4,msg:'ET WEB_SPECIFIC webSPELL SQL Injection Attempt -- gallery.php id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_webSPELL'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC webSPELL SQL Injection Attempt -- gallery.php id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005254) ET WEB_SPECIFIC webSPELL SQL Injection Attempt -- gallery.php galleryID
+SecRule REQUEST_URI_RAW "(?i:\/gallery\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005254,rev:4,msg:'ET WEB_SPECIFIC webSPELL SQL Injection Attempt -- gallery.php galleryID ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_webSPELL'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:galleryID/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC webSPELL SQL Injection Attempt -- gallery.php galleryID ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+# (sid 2005162) ET WEB_SPECIFIC xNews SQL Injection Attempt -- xNews.php id
+SecRule REQUEST_URI_RAW "(?i:\/xNews\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,ctl:auditLogParts=+E,nolog,auditlog,logdata:'%{TX.0}',id:sid2005162,rev:4,msg:'ET WEB_SPECIFIC xNews SQL Injection Attempt -- xNews.php id ',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB_SQL_INJECTION/WEB_xNews'"
+SecRule &TX:'/SQL_INJECTION.*ARGS:id/' "@gt 0" "setvar:'tx.msg=ET WEB_SPECIFIC xNews SQL Injection Attempt -- xNews.php id ',setvar:tx.sqli_score=+1,setvar:tx.anomaly_score=+20,setvar:tx.%{rule.id}-SQL_INJECTION/SQL_INJECTION-%{matched_var_name}=%{matched_var}"
+
+SecMarker END_ET_SQLI_RULES
--- /dev/null
+SecRule REQUEST_FILENAME "!@pmFromFile modsecurity_46_et_web_rules.data" "phase:2,nolog,pass,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,skipAfter:END_SNORT_RULES"
+
+# (sid 2003897) ET WEB Adobe RoboHelp XSS Attempt whstart.js
+SecRule REQUEST_URI_RAW "(?i:\/whstart\.js)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2003897,rev:4,msg:'ET WEB Adobe RoboHelp XSS Attempt whstart.js',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Adobe'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:<?(java|vb)?script>?.*<.+\/script>?)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Adobe RoboHelp XSS Attempt whstart.js',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2003898) ET WEB Adobe RoboHelp XSS Attempt whcsh_home.htm
+SecRule REQUEST_URI_RAW "(?i:\/whcsh_home\.htm)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2003898,rev:4,msg:'ET WEB Adobe RoboHelp XSS Attempt whcsh_home.htm',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Adobe'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:<?(java|vb)?script>?.*<.+\/script>?)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Adobe RoboHelp XSS Attempt whcsh_home.htm',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2003899) ET WEB Adobe RoboHelp XSS Attempt wf_startpage.js
+SecRule REQUEST_URI_RAW "(?i:\/wf_startpage\.js)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2003899,rev:4,msg:'ET WEB Adobe RoboHelp XSS Attempt wf_startpage.js',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Adobe'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:<?(java|vb)?script>?.*<.+\/script>?)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Adobe RoboHelp XSS Attempt wf_startpage.js',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2003900) ET WEB Adobe RoboHelp XSS Attempt wf_startqs.htm
+SecRule REQUEST_URI_RAW "(?i:\/wf_startqs\.htm)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2003900,rev:4,msg:'ET WEB Adobe RoboHelp XSS Attempt wf_startqs.htm',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Adobe'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:<?(java|vb)?script>?.*<.+\/script>?)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Adobe RoboHelp XSS Attempt wf_startqs.htm',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2003901) ET WEB Adobe RoboHelp XSS Attempt WindowManager.dll
+SecRule REQUEST_URI_RAW "(?i:\/WindowManager\.dll)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2003901,rev:4,msg:'ET WEB Adobe RoboHelp XSS Attempt WindowManager.dll',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Adobe'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:<?(java|vb)?script>?.*<.+\/script>?)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Adobe RoboHelp XSS Attempt WindowManager.dll',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2001945) ET WEB WebAPP Apage.CGI Remote Command Execution Attempt
+SecRule REQUEST_URI_RAW "(?i:\/apage\.cgi)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2001945,rev:6,msg:'ET WEB WebAPP Apage.CGI Remote Command Execution Attempt',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Apache.cgi'"
+SecRule ARGS:f "(?i:(\.\|.+\|))" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB WebAPP Apage.CGI Remote Command Execution Attempt',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2001669) ET WEB Proxy GET Request
+SecRule REQUEST_URI_RAW "@contains GET http\://" "phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2001669,rev:6,msg:'ET WEB Proxy GET Request',tag:'bad-unknown',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Apache_Open_Proxy',ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Proxy GET Request',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2001670) ET WEB Proxy HEAD Request
+SecRule REQUEST_URI_RAW "@contains HEAD http\://" "phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2001670,rev:7,msg:'ET WEB Proxy HEAD Request',tag:'bad-unknown',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Apache_Open_Proxy',ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Proxy HEAD Request',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2001674) ET WEB Proxy POST Request
+SecRule REQUEST_URI_RAW "@contains POST http\://" "phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2001674,rev:6,msg:'ET WEB Proxy POST Request',tag:'bad-unknown',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Apache_Open_Proxy',ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Proxy POST Request',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2001675) ET WEB Proxy CONNECT Request
+SecRule REQUEST_URI_RAW "@contains CONNECT " "phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2001675,rev:6,msg:'ET WEB Proxy CONNECT Request',tag:'bad-unknown',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Apache_Open_Proxy',ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Proxy CONNECT Request',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2003156) ET WEB Crewbox Proxy Scan
+SecRule REQUEST_URI_RAW "(?i:\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2003156,rev:3,msg:'ET WEB Crewbox Proxy Scan',tag:'attempted-recon',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Apache_Open_Proxy'"
+SecRule REQUEST_URI_RAW "@contains crewbox.by.ru/crew/" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Crewbox Proxy Scan',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2002900) ET WEB CGI AWstats Migrate Command Attempt
+SecRule REQUEST_URI_RAW "(?i:\/awstats\.pl)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2002900,rev:3,msg:'ET WEB CGI AWstats Migrate Command Attempt',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Awstats'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:migrate\s*=\s*\|)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB CGI AWstats Migrate Command Attempt',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2002711) ET WEB includer.cgi Remote Command Execution Attempt
+SecRule REQUEST_URI_RAW "@contains /includer.cgi?|7c|" "phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2002711,rev:5,msg:'ET WEB includer.cgi Remote Command Execution Attempt',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_CGI',ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB includer.cgi Remote Command Execution Attempt',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2002129) ET WEB Cacti Input Validation Attack
+SecRule REQUEST_URI_RAW "@contains GET " "chain,phase:2,pass,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2002129,rev:7,msg:'ET WEB Cacti Input Validation Attack',tag:'web-application-activity',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Cacti'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:(config_settings|top_graph_header)\.php\?.*=(http|https)\:\/)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Cacti Input Validation Attack',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2002313) ET WEB Cacti graph_image.php Remote Command Execution Attempt
+SecRule REQUEST_URI_RAW "(?i:\/graph_image\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2002313,rev:6,msg:'ET WEB Cacti graph_image.php Remote Command Execution Attempt',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Cacti'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:(graph_start=%0a.+%0a))" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Cacti graph_image.php Remote Command Execution Attempt',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2003334) ET WEB Cacti cmd.php Remote Arbitrary SQL Command Execution Attempt
+SecRule REQUEST_URI_RAW "(?i:\/cmd\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2003334,rev:3,msg:'ET WEB Cacti cmd.php Remote Arbitrary SQL Command Execution Attempt',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Cacti'"
+SecRule REQUEST_URI_RAW "@contains UNION" "chain"
+SecRule REQUEST_URI_RAW "@contains SELECT" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Cacti cmd.php Remote Arbitrary SQL Command Execution Attempt',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2007889) ET WEB Cacti SQL Injection Vulnerability graph_view graph_list UNION SELECT
+SecRule REQUEST_URI_RAW "(?i:graph_view\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2007889,rev:3,msg:'ET WEB Cacti SQL Injection Vulnerability graph_view graph_list UNION SELECT',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Cacti'"
+SecRule ARGS:graph_list "(?i:.+UNION\s+SELECT)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Cacti SQL Injection Vulnerability graph_view graph_list UNION SELECT',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2007890) ET WEB Cacti SQL Injection Vulnerability graph_view graph_list INSERT
+SecRule REQUEST_URI_RAW "(?i:graph_view\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2007890,rev:3,msg:'ET WEB Cacti SQL Injection Vulnerability graph_view graph_list INSERT',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Cacti'"
+SecRule ARGS:graph_list "(?i:.+INSERT.+INTO)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Cacti SQL Injection Vulnerability graph_view graph_list INSERT',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2007891) ET WEB Cacti SQL Injection Vulnerability graph_view graph_list DELETE
+SecRule REQUEST_URI_RAW "(?i:graph_view\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2007891,rev:3,msg:'ET WEB Cacti SQL Injection Vulnerability graph_view graph_list DELETE',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Cacti'"
+SecRule ARGS:graph_list "(?i:.+DELETE.+FROM)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Cacti SQL Injection Vulnerability graph_view graph_list DELETE',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2007892) ET WEB Cacti SQL Injection Vulnerability graph_view graph_list UPDATE
+SecRule REQUEST_URI_RAW "(?i:graph_view\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2007892,rev:3,msg:'ET WEB Cacti SQL Injection Vulnerability graph_view graph_list UPDATE',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Cacti'"
+SecRule ARGS:graph_list "(?i:.+UPDATE.+SET)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Cacti SQL Injection Vulnerability graph_view graph_list UPDATE',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2007893) ET WEB Cacti SQL Injection Vulnerability tree.php leaf_id SELECT
+SecRule REQUEST_URI_RAW "(?i:tree\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2007893,rev:3,msg:'ET WEB Cacti SQL Injection Vulnerability tree.php leaf_id SELECT',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Cacti'"
+SecRule ARGS:leaf_id "(?i:.+SELECT.+FROM)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Cacti SQL Injection Vulnerability tree.php leaf_id SELECT',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2007894) ET WEB Cacti SQL Injection Vulnerability tree.php leaf_id UNION SELECT
+SecRule REQUEST_URI_RAW "(?i:tree\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2007894,rev:3,msg:'ET WEB Cacti SQL Injection Vulnerability tree.php leaf_id UNION SELECT',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Cacti'"
+SecRule ARGS:leaf_id "(?i:.+UNION\s+SELECT)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Cacti SQL Injection Vulnerability tree.php leaf_id UNION SELECT',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2007895) ET WEB Cacti SQL Injection Vulnerability tree.php leaf_id INSERT
+SecRule REQUEST_URI_RAW "(?i:tree\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2007895,rev:3,msg:'ET WEB Cacti SQL Injection Vulnerability tree.php leaf_id INSERT',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Cacti'"
+SecRule ARGS:leaf_id "(?i:.+INSERT.+INTO)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Cacti SQL Injection Vulnerability tree.php leaf_id INSERT',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2007896) ET WEB Cacti SQL Injection Vulnerability tree.php leaf_id DELETE
+SecRule REQUEST_URI_RAW "(?i:tree\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2007896,rev:3,msg:'ET WEB Cacti SQL Injection Vulnerability tree.php leaf_id DELETE',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Cacti'"
+SecRule ARGS:leaf_id "(?i:.+DELETE.+FROM)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Cacti SQL Injection Vulnerability tree.php leaf_id DELETE',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2007897) ET WEB Cacti SQL Injection Vulnerability tree.php leaf_id UPDATE
+SecRule REQUEST_URI_RAW "(?i:tree\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2007897,rev:3,msg:'ET WEB Cacti SQL Injection Vulnerability tree.php leaf_id UPDATE',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Cacti'"
+SecRule ARGS:leaf_id "(?i:.+UPDATE.+SET)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Cacti SQL Injection Vulnerability tree.php leaf_id UPDATE',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2004556) ET WEB Cisco CallManager XSS Attempt serverlist.asp pattern
+SecRule REQUEST_URI_RAW "(?i:\/CCMAdmin\/serverlist\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2004556,rev:4,msg:'ET WEB Cisco CallManager XSS Attempt serverlist.asp pattern',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Cisco'"
+SecRule ARGS:pattern "(?i:.*<?(java|vb)?script>?.*<.+\/script>?)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Cisco CallManager XSS Attempt serverlist.asp pattern',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2002376) ET WEB IBM Lotus Domino BaseTarget XSS attempt
+SecRule REQUEST_URI_RAW "@contains OpenForm" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2002376,rev:7,msg:'ET WEB IBM Lotus Domino BaseTarget XSS attempt',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Domino_XSS'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:BaseTarget=.*?\x22)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB IBM Lotus Domino BaseTarget XSS attempt',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2002377) ET WEB IBM Lotus Domino Src XSS attempt
+SecRule REQUEST_URI_RAW "@contains OpenFrameSet" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2002377,rev:6,msg:'ET WEB IBM Lotus Domino Src XSS attempt',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Domino_XSS'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:src=.*\x22><\/FRAMESET>.*<script>.*<\/script>)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB IBM Lotus Domino Src XSS attempt',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2009361) ET WEB cmd.exe In URI - Possible Command Execution Attempt
+SecRule REQUEST_URI_RAW "(?i:\/cmd\.exe)" "phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2009361,rev:2,msg:'ET WEB cmd.exe In URI - Possible Command Execution Attempt',tag:'attempted-recon',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_General',ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB cmd.exe In URI - Possible Command Execution Attempt',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2009362) ET WEB /system32/ in Uri - Possible Protected Directory Access Attempt
+SecRule REQUEST_URI_RAW "@contains /system32/" "phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2009362,rev:2,msg:'ET WEB /system32/ in Uri - Possible Protected Directory Access Attempt',tag:'attempted-recon',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_General',ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB /system32/ in Uri - Possible Protected Directory Access Attempt',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2009363) ET WEB Suspicious Chmod Usage in URI
+SecRule QUERY_STRING|REQUEST_BODY "(?i:chmod.([r|w|x|1-7]))" "phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2009363,rev:2,msg:'ET WEB Suspicious Chmod Usage in URI',tag:'attempted-admin',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_General',ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Suspicious Chmod Usage in URI',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2008171) ET WEB HP OpenView Network Node Manager CGI Directory Traversal
+SecRule REQUEST_URI_RAW "(?i:\/OpenView5\.exe)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2008171,rev:2,msg:'ET WEB HP OpenView Network Node Manager CGI Directory Traversal',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_HP_Openview'"
+SecRule REQUEST_URI_RAW "@contains GET " "chain"
+SecRule REQUEST_URI_RAW "@contains /OvCgi/" "chain"
+SecRule QUERY_STRING|REQUEST_BODY "@contains Action=../../" "chain"
+SecRule QUERY_STRING|REQUEST_BODY "@contains HTTP/1" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB HP OpenView Network Node Manager CGI Directory Traversal',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2002897) ET WEB Horde README access probe
+SecRule REQUEST_URI_RAW "@contains /horde" "chain,phase:2,pass,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2002897,rev:5,msg:'ET WEB Horde README access probe',tag:'web-application-activity',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Horde'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:\/horde((2|3|-3\.(0\.[1-9]|1\.0)))?\/{1,2}README)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Horde README access probe',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2001365) ET WEB-MISC Alternate Data Stream source view attempt
+SecRule REQUEST_URI_RAW "@contains |3A 3A|$DATA" "phase:2,pass,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2001365,rev:8,msg:'ET WEB-MISC Alternate Data Stream source view attempt',tag:'web-application-activity',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_IIS_ADS_Source_Code_Exposure',ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB-MISC Alternate Data Stream source view attempt',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2001342) ET WEB IIS ASP.net Auth Bypass / Canonicalization
+SecRule REQUEST_URI_RAW "(?i:\.aspx)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2001342,rev:21,msg:'ET WEB IIS ASP.net Auth Bypass / Canonicalization',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_IIS_Canonicalization_Bypass'"
+SecRule QUERY_STRING|REQUEST_BODY "@contains GET" "chain"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:\\x5C)" "chain"
+SecRule QUERY_STRING|REQUEST_BODY "@contains aspx" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB IIS ASP.net Auth Bypass / Canonicalization',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2001343) ET WEB IIS ASP.net Auth Bypass / Canonicalization % 5 C
+SecRule REQUEST_URI_RAW "(?i:\.aspx)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2001343,rev:19,msg:'ET WEB IIS ASP.net Auth Bypass / Canonicalization % 5 C',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_IIS_Canonicalization_Bypass'"
+SecRule QUERY_STRING|REQUEST_BODY "@contains GET" "chain"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:\\x5C)" "chain"
+SecRule QUERY_STRING|REQUEST_BODY "@contains aspx" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB IIS ASP.net Auth Bypass / Canonicalization % 5 C',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2009510) ET WEB Sun Java System Web Server .jsp Source Code Disclosure Attempt
+SecRule REQUEST_URI_RAW "@contains .jsp\:\:$DATA" "phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2009510,rev:2,msg:'ET WEB Sun Java System Web Server .jsp Source Code Disclosure Attempt',tag:'attempted-recon',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Java',ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Sun Java System Web Server .jsp Source Code Disclosure Attempt',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2001546) ET WEB-MISC LINK Method
+SecRule QUERY_STRING|REQUEST_BODY "@contains LINK " "phase:2,pass,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2001546,rev:7,msg:'ET WEB-MISC LINK Method',tag:'web-application-activity',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_LINK_Method',ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB-MISC LINK Method',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2002777) ET WEB Light Weight Calendar 'date' Arbitrary Remote Code Execution
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2002777,rev:3,msg:'ET WEB Light Weight Calendar \'date\' Arbitrary Remote Code Execution',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Light_Weight_Calendar'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:date=\d{8}\)\;.+)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Light Weight Calendar \'date\' Arbitrary Remote Code Execution',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2001075) ET WEB-MISC cross site scripting attempt IMG onerror or onload
+SecRule QUERY_STRING|REQUEST_BODY "@contains <IMG" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2001075,rev:5,msg:'ET WEB-MISC cross site scripting attempt IMG onerror or onload',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Misc_CSS'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:\bonerror\b[\s]*=)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB-MISC cross site scripting attempt IMG onerror or onload',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2001077) ET WEB-MISC cross site scripting attempt STYLE + JAVASCRIPT
+SecRule QUERY_STRING|REQUEST_BODY "@contains application/x-javascript" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2001077,rev:7,msg:'ET WEB-MISC cross site scripting attempt STYLE + JAVASCRIPT',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Misc_CSS'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:TYPE\s*=\s*['\x22]application\/x-javascript)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB-MISC cross site scripting attempt STYLE + JAVASCRIPT',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2001078) ET WEB-MISC cross site scripting attempt STYLE + JSCRIPT
+SecRule QUERY_STRING|REQUEST_BODY "@contains text/jscript" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2001078,rev:7,msg:'ET WEB-MISC cross site scripting attempt STYLE + JSCRIPT',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Misc_CSS'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:TYPE\s*=\s*['\x22]text\/jscript)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB-MISC cross site scripting attempt STYLE + JSCRIPT',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2001079) ET WEB-MISC cross site scripting attempt STYLE + VBSCRIPT 1
+SecRule QUERY_STRING|REQUEST_BODY "@contains text/vbscript" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2001079,rev:8,msg:'ET WEB-MISC cross site scripting attempt STYLE + VBSCRIPT 1',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Misc_CSS'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:TYPE\s*=\s*['\x22]text\/vbscript)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB-MISC cross site scripting attempt STYLE + VBSCRIPT 1',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2001080) ET WEB-MISC cross site scripting attempt STYLE + VBSCRIPT 2
+SecRule QUERY_STRING|REQUEST_BODY "@contains application/x-vbscript" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2001080,rev:8,msg:'ET WEB-MISC cross site scripting attempt STYLE + VBSCRIPT 2',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Misc_CSS'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:TYPE\s*=\s*['\x22]application\/x-vbscript)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB-MISC cross site scripting attempt STYLE + VBSCRIPT 2',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2001081) ET WEB-MISC cross site scripting attempt STYLE + ECMACRIPT
+SecRule QUERY_STRING|REQUEST_BODY "@contains text/ecmascript" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2001081,rev:7,msg:'ET WEB-MISC cross site scripting attempt STYLE + ECMACRIPT',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Misc_CSS'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:TYPE\s*=\s*['\x22]text\/ecmascript)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB-MISC cross site scripting attempt STYLE + ECMACRIPT',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2001082) ET WEB-MISC cross site scripting attempt STYLE + EXPRESSION 1
+SecRule QUERY_STRING|REQUEST_BODY "@contains expression" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2001082,rev:7,msg:'ET WEB-MISC cross site scripting attempt STYLE + EXPRESSION 1',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Misc_CSS'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:STYLE[\s]*=[\s]*[^>]expression[\s]*\()" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB-MISC cross site scripting attempt STYLE + EXPRESSION 1',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2001083) ET WEB-MISC cross site scripting attempt STYLE + EXPRESSION 2
+SecRule QUERY_STRING|REQUEST_BODY "@contains expression" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2001083,rev:7,msg:'ET WEB-MISC cross site scripting attempt STYLE + EXPRESSION 2',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Misc_CSS'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:[\s]*expression[\s]*\([^}]}[\s]*<\/STYLE>)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB-MISC cross site scripting attempt STYLE + EXPRESSION 2',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2001084) ET WEB-MISC cross site scripting attempt using XML
+SecRule QUERY_STRING|REQUEST_BODY "@contains <XML" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2001084,rev:5,msg:'ET WEB-MISC cross site scripting attempt using XML',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Misc_CSS'"
+SecRule QUERY_STRING|REQUEST_BODY "@contains <![CDATA[<]]>SCRIPT" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB-MISC cross site scripting attempt using XML',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2001085) ET WEB-MISC cross site scripting attempt executing hidden Javascript 1
+SecRule QUERY_STRING|REQUEST_BODY "@contains innerhtml" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2001085,rev:7,msg:'ET WEB-MISC cross site scripting attempt executing hidden Javascript 1',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Misc_CSS'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:eval[\s]*\([\s]*[^\.]\.innerHTML[\s]*\))" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB-MISC cross site scripting attempt executing hidden Javascript 1',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2001086) ET WEB-MISC cross site scripting attempt executing hidden Javascript 2
+SecRule QUERY_STRING|REQUEST_BODY "@contains window.execscript" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2001086,rev:7,msg:'ET WEB-MISC cross site scripting attempt executing hidden Javascript 2',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Misc_CSS'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:window.execScript[\s]*\()" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB-MISC cross site scripting attempt executing hidden Javascript 2',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2001087) ET WEB-MISC cross site scripting attempt to execute Javascript code
+SecRule QUERY_STRING|REQUEST_BODY "@contains javascript" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2001087,rev:6,msg:'ET WEB-MISC cross site scripting attempt to execute Javascript code',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Misc_CSS'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:(((URL|SRC|HREF|LOWSRC)[\s]*=)|(url[\s]*[\(]))[\s]*['\x22]*javascript[\:])" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB-MISC cross site scripting attempt to execute Javascript code',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2001088) ET WEB-MISC cross site scripting attempt to execute VBScript code
+SecRule QUERY_STRING|REQUEST_BODY "@contains vbscript" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2001088,rev:6,msg:'ET WEB-MISC cross site scripting attempt to execute VBScript code',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Misc_CSS'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:(((URL|SRC|HREF|LOWSRC)[\s]*=)|(url[\s]*[\(]))[\s]*['\x22]*vbscript[\:])" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB-MISC cross site scripting attempt to execute VBScript code',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2001089) ET WEB-MISC cross site scripting attempt to access SHELL\:
+SecRule QUERY_STRING|REQUEST_BODY "@contains shell" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2001089,rev:6,msg:'ET WEB-MISC cross site scripting attempt to access SHELL:',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Misc_CSS'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:(((URL|SRC|HREF|LOWSRC)[\s]*=)|(url[\s]*[\(]))[\s]*['\x22]*shell[\:])" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB-MISC cross site scripting attempt to access SHELL:',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2001090) ET WEB-MISC cross site scripting stealth attempt to execute Javascript code
+SecRule QUERY_STRING|REQUEST_BODY "@contains =" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2001090,rev:7,msg:'ET WEB-MISC cross site scripting stealth attempt to execute Javascript code',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Misc_CSS'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:(((URL|SRC|HREF|LOWSRC)[\s]*=)|(url[\s]*[\(]))[\s]*['\x22]*[\x09\x0a\x0b\x0c\x0d]*j[\x09\x0a\x0b\x0c\x0d]*a[\x09\x0a\x0b\x0c\x0d]*v[\x09\x0a\x0b\x0c\x0d]*a[\x09\x0a\x0b\x0c\x0d]*s[\x09\x0a\x0b\x0c\x0d]*c[\x09\x0a\x0b\x0c\x0d]*r[\x09\x0a\x0b\x0c\x0d]*i[\x09\x0a\x0b\x0c\x0d]*p[\x09\x0a\x0b\x0c\x0d]*t[\x09\x0a\x0b\x0c\x0d]*[\:])" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB-MISC cross site scripting stealth attempt to execute Javascript code',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2001091) ET WEB-MISC cross site scripting stealth attempt to execute VBScript code
+SecRule QUERY_STRING|REQUEST_BODY "@contains =" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2001091,rev:7,msg:'ET WEB-MISC cross site scripting stealth attempt to execute VBScript code',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Misc_CSS'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:(((URL|SRC|HREF|LOWSRC)[\s]*=)|(url[\s]*[\(]))[\s]*['\x22]*[\x09\x0a\x0b\x0c\x0d]*v[\x09\x0a\x0b\x0c\x0d]*b[\x09\x0a\x0b\x0c\x0d]*s[\x09\x0a\x0b\x0c\x0d]*c[\x09\x0a\x0b\x0c\x0d]*r[\x09\x0a\x0b\x0c\x0d]*i[\x09\x0a\x0b\x0c\x0d]*p[\x09\x0a\x0b\x0c\x0d]*t[\x09\x0a\x0b\x0c\x0d]*[\:])" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB-MISC cross site scripting stealth attempt to execute VBScript code',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2001092) ET WEB-MISC cross site scripting stealth attempt to access SHELL\:
+SecRule QUERY_STRING|REQUEST_BODY "(?i:(((URL|SRC|HREF|LOWSRC)[\s]*=)|(url[\s]*[\(]))[\s]*['\x22]*[\x09\x0a\x0b\x0c\x0d]*s[\x09\x0a\x0b\x0c\x0d]*h[\x09\x0a\x0b\x0c\x0d]*e[\x09\x0a\x0b\x0c\x0d]*l[\x09\x0a\x0b\x0c\x0d]*l[\x09\x0a\x0b\x0c\x0d]*[\:])" "phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2001092,rev:8,msg:'ET WEB-MISC cross site scripting stealth attempt to access SHELL:',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Misc_CSS',ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB-MISC cross site scripting stealth attempt to access SHELL:',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2002361) ET WEB Netquery Remote Command Execution Attempt
+SecRule REQUEST_URI_RAW "(?i:\/nquser\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2002361,rev:4,msg:'ET WEB Netquery Remote Command Execution Attempt',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Netquery'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:(host=\|.+))" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Netquery Remote Command Execution Attempt',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2007936) ET WEB Netwin Webmail SurgeMail Mail Server Format String Vulnerability
+SecRule REQUEST_URI_RAW "(?i:webmail\.exe)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2007936,rev:4,msg:'ET WEB Netwin Webmail SurgeMail Mail Server Format String Vulnerability',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Netwin'"
+SecRule QUERY_STRING|REQUEST_BODY "@contains GET" "chain"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:[%n%s]{2,})" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Netwin Webmail SurgeMail Mail Server Format String Vulnerability',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2002997) ET WEB PHP Remote File Inclusion (monster list http)
+SecRule REQUEST_URI_RAW "(?i:\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2002997,rev:4,msg:'ET WEB PHP Remote File Inclusion (monster list http)',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_PHP'"
+SecRule REQUEST_URI_RAW "@contains http" "chain"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:(path|page|lib|dir|file|root|icon|lang(uage)?|folder|type|agenda|gallery|domain|calendar|settings|news|name|auth|prog|config|cfg|incl|ext|fad|mod|sbp|rf|id|df|[a-z](\[.*\])+)\s*=\s*https?)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB PHP Remote File Inclusion (monster list http)',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2003098) ET WEB PHP Remote File Inclusion (monster list ftp)
+SecRule REQUEST_URI_RAW "(?i:\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2003098,rev:4,msg:'ET WEB PHP Remote File Inclusion (monster list ftp)',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_PHP'"
+SecRule REQUEST_URI_RAW "@contains ftp\:" "chain"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:(path|page|lib|dir|file|root|icon|lang(uage)?|folder|type|agenda|gallery|domain|calendar|settings|news|name|auth|prog|config|cfg|incl|ext|fad|mod|sbp|rf|id|df|[a-z](\[.*\])+)\s*=\s*ftp)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB PHP Remote File Inclusion (monster list ftp)',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2003935) ET WEB PHP Remote File Inclusion (monster list php)
+SecRule REQUEST_URI_RAW "(?i:\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2003935,rev:3,msg:'ET WEB PHP Remote File Inclusion (monster list php)',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_PHP'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:(path|page|lib|dir|file|root|icon|lang(uage)?|folder|type|agenda|gallery|domain|calendar|settings|news|name|auth|prog|config|cfg|incl|ext|fad|mod|sbp|rf|id|df|[a-z](\[.*\])+)\s*=\s*php)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB PHP Remote File Inclusion (monster list php)',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2002730) ET WEB PHPGedView Remote Script Code Execution attempt
+SecRule REQUEST_URI_RAW "(?i:\/help_text_vars\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2002730,rev:6,msg:'ET WEB PHPGedView Remote Script Code Execution attempt',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_PHPGedView'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:PGV_BASE_DIRECTORY=(f|ht)tp\:\/)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB PHPGedView Remote Script Code Execution attempt',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2002314) ET WEB PHPOutsourcing Zorum prod.php Remote Command Execution Attempt
+SecRule REQUEST_URI_RAW "(?i:\/prod\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2002314,rev:5,msg:'ET WEB PHPOutsourcing Zorum prod.php Remote Command Execution Attempt',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_PHPOutsourcing'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:(argv[1]=\|.+))" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB PHPOutsourcing Zorum prod.php Remote Command Execution Attempt',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2001344) ET WEB PHP EasyDynamicPages exploit
+SecRule ARGS_NAMES "(?i:edp_relative_path)" "phase:2,pass,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2001344,rev:7,msg:'ET WEB PHP EasyDynamicPages exploit',tag:'web-application-activity',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_PHP_EasyDynamicPages_Exploit',ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB PHP EasyDynamicPages exploit',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2009336) ET WEB Possible Web Backdoor cfexec.cfm access
+SecRule REQUEST_URI_RAW "(?i:\/cfexec\.cfm)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2009336,rev:2,msg:'ET WEB Possible Web Backdoor cfexec.cfm access',tag:'trojan-activity',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_PHP_Shells'"
+SecRule REQUEST_URI_RAW "@contains GET " "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Possible Web Backdoor cfexec.cfm access',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2009337) ET WEB Possible Web Backdoor cmdasp.asp access
+SecRule REQUEST_URI_RAW "(?i:\/cmdasp\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2009337,rev:2,msg:'ET WEB Possible Web Backdoor cmdasp.asp access',tag:'trojan-activity',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_PHP_Shells'"
+SecRule REQUEST_URI_RAW "@contains GET " "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Possible Web Backdoor cmdasp.asp access',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2009338) ET WEB Possible Web Backdoor cmdasp.aspx access
+SecRule REQUEST_URI_RAW "(?i:\/cmdasp\.aspx)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2009338,rev:2,msg:'ET WEB Possible Web Backdoor cmdasp.aspx access',tag:'trojan-activity',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_PHP_Shells'"
+SecRule REQUEST_URI_RAW "@contains GET " "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Possible Web Backdoor cmdasp.aspx access',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2009339) ET WEB Possible Web Backdoor simple-backdoor.php access
+SecRule REQUEST_URI_RAW "(?i:\/simple\-backdoor\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2009339,rev:2,msg:'ET WEB Possible Web Backdoor simple-backdoor.php access',tag:'trojan-activity',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_PHP_Shells'"
+SecRule REQUEST_URI_RAW "@contains GET " "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Possible Web Backdoor simple-backdoor.php access',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2009340) ET WEB Possible Web Backdoor php-backdoor.php access
+SecRule REQUEST_URI_RAW "(?i:\/php\-backdoor\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2009340,rev:2,msg:'ET WEB Possible Web Backdoor php-backdoor.php access',tag:'trojan-activity',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_PHP_Shells'"
+SecRule REQUEST_URI_RAW "@contains GET " "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Possible Web Backdoor php-backdoor.php access',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2009341) ET WEB Possible Web Backdoor jsp-reverse.jsp access
+SecRule REQUEST_URI_RAW "(?i:\/jsp\-reverse\.jsp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2009341,rev:2,msg:'ET WEB Possible Web Backdoor jsp-reverse.jsp access',tag:'trojan-activity',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_PHP_Shells'"
+SecRule REQUEST_URI_RAW "@contains GET " "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Possible Web Backdoor jsp-reverse.jsp access',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2009342) ET WEB Possible Web Backdoor perlcmd.cgi access
+SecRule REQUEST_URI_RAW "(?i:\/perlcmd\.cgi)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2009342,rev:2,msg:'ET WEB Possible Web Backdoor perlcmd.cgi access',tag:'trojan-activity',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_PHP_Shells'"
+SecRule REQUEST_URI_RAW "@contains GET " "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Possible Web Backdoor perlcmd.cgi access',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2009343) ET WEB Possible Web Backdoor cmdjsp.jsp access
+SecRule REQUEST_URI_RAW "(?i:\/cmdjsp\.jsp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2009343,rev:2,msg:'ET WEB Possible Web Backdoor cmdjsp.jsp access',tag:'trojan-activity',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_PHP_Shells'"
+SecRule REQUEST_URI_RAW "@contains GET " "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Possible Web Backdoor cmdjsp.jsp access',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2009344) ET WEB Possible Web Backdoor cmd-asp-5.1.asp access
+SecRule REQUEST_URI_RAW "(?i:\/cmd\-asp\-5\.1\.asp)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2009344,rev:2,msg:'ET WEB Possible Web Backdoor cmd-asp-5.1.asp access',tag:'trojan-activity',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_PHP_Shells'"
+SecRule REQUEST_URI_RAW "@contains GET " "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Possible Web Backdoor cmd-asp-5.1.asp access',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2002972) ET WEB PHP ZeroBoard .htaccess upload
+SecRule QUERY_STRING|REQUEST_BODY "@contains filename=" "chain,phase:2,pass,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2002972,rev:3,msg:'ET WEB PHP ZeroBoard .htaccess upload',tag:'web-application-activity',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_PHP_ZeroBoard'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:^\s*\.htaccess)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB PHP ZeroBoard .htaccess upload',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2001738) ET WEB PHP vBulletin Remote Command Execution Attempt
+SecRule REQUEST_URI_RAW "(?i:forumdisplay\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2001738,rev:9,msg:'ET WEB PHP vBulletin Remote Command Execution Attempt',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_PHP_vBulletin'"
+SecRule ARGS:comma "(?i:(\.system\(.+\)\.))" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB PHP vBulletin Remote Command Execution Attempt',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2002388) ET WEB vBulletin misc.php Template Name Arbitrary Code Execution
+SecRule REQUEST_URI_RAW "(?i:\/misc\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2002388,rev:5,msg:'ET WEB vBulletin misc.php Template Name Arbitrary Code Execution',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_PHP_vBulletin'"
+SecRule REQUEST_URI_RAW "@contains &template=.*{${" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB vBulletin misc.php Template Name Arbitrary Code Execution',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2002837) ET WEB PmWiki Globals Variables Overwrite Attempt
+SecRule REQUEST_URI_RAW "(?i:\/pmwiki\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2002837,rev:3,msg:'ET WEB PmWiki Globals Variables Overwrite Attempt',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_PMWiki'"
+SecRule QUERY_STRING|REQUEST_BODY "@contains GLOBALS[FarmD]=" "chain"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:GLOBALS\x5bFarmD\x5d\x3d)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB PmWiki Globals Variables Overwrite Attempt',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2008687) ET WEB PassWiki site_id Parameter Local File Inclusion
+SecRule REQUEST_URI_RAW "(?i:\/passwiki\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2008687,rev:2,msg:'ET WEB PassWiki site_id Parameter Local File Inclusion',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_PassWiki'"
+SecRule REQUEST_URI_RAW "@contains GET " "chain"
+SecRule ARGS:site_id "(?i:(\.\.\/){1,})" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB PassWiki site_id Parameter Local File Inclusion',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2007871) ET WEB Philips VOIP841 Web Server Directory Traversal
+SecRule REQUEST_URI_RAW "@contains GET " "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2007871,rev:2,msg:'ET WEB Philips VOIP841 Web Server Directory Traversal',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Philips_VOIP'"
+SecRule REQUEST_URI_RAW "@contains /etc/passwd" "chain"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:(\.\.\/){1,})" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Philips VOIP841 Web Server Directory Traversal',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2002331) ET WEB Piranha default passwd attempt
+SecRule REQUEST_URI_RAW "(?i:\/piranha\/secure\/control\.php3)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2002331,rev:3,msg:'ET WEB Piranha default passwd attempt',tag:'attempted-recon',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Piranha'"
+SecRule QUERY_STRING|REQUEST_BODY "@contains Authorization\: Basic cGlyYW5oYTp" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Piranha default passwd attempt',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2008622) ET WEB Pritlog index.php filename File Disclosure
+SecRule REQUEST_URI_RAW "@contains GET " "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2008622,rev:2,msg:'ET WEB Pritlog index.php filename File Disclosure',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Pritlog'"
+SecRule REQUEST_URI_RAW "@contains /index.php?option=viewEntry" "chain"
+SecRule ARGS:&filename "(?i:(\.\.\/){1,})" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Pritlog index.php filename File Disclosure',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2009152) ET WEB PHP Generic Remote File Include Attempt (HTTPS)
+SecRule REQUEST_URI_RAW "(?i:\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2009152,rev:4,msg:'ET WEB PHP Generic Remote File Include Attempt (HTTPS)',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_RFI_Generic'"
+SecRule REQUEST_URI_RAW "@contains =https\:/" "chain"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:\x2Ephp\x3F.{0,300}\x3Dhttps\x3A\x2F[^\x3F\x26]+\x3F)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB PHP Generic Remote File Include Attempt (HTTPS)',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2009153) ET WEB PHP Generic Remote File Include Attempt (FTP)
+SecRule REQUEST_URI_RAW "(?i:\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2009153,rev:4,msg:'ET WEB PHP Generic Remote File Include Attempt (FTP)',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_RFI_Generic'"
+SecRule REQUEST_URI_RAW "@contains =ftp\:/" "chain"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:\x2Ephp\x3F.{0,300}\x3Dftp\x3A\x2F[^\x3F\x26]+\x3F)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB PHP Generic Remote File Include Attempt (FTP)',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2009155) ET WEB PHP Generic Remote File Include Attempt (FTPS)
+SecRule REQUEST_URI_RAW "(?i:\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2009155,rev:5,msg:'ET WEB PHP Generic Remote File Include Attempt (FTPS)',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_RFI_Generic'"
+SecRule REQUEST_URI_RAW "@contains =ftps\:/" "chain"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:\x2Ephp\x3F.{0,300}\x3Dftp\x3A\x2F[^\x3F\x26]+\x3F)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB PHP Generic Remote File Include Attempt (FTPS)',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2002660) ET WEB RSA Web Auth Exploit Attempt - Long URL
+SecRule REQUEST_URI_RAW "(?i:\?Redirect)" "chain,phase:2,pass,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2002660,rev:5,msg:'ET WEB RSA Web Auth Exploit Attempt - Long URL',tag:'web-application-activity',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_RSA'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:url=.{8000})" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB RSA Web Auth Exploit Attempt - Long URL',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2006443) ET WEB Possible SQL Injection Attempt DELETE FROM
+SecRule REQUEST_URI_RAW "@contains DELETE " "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2006443,rev:6,msg:'ET WEB Possible SQL Injection Attempt DELETE FROM',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_SQL_Injection_Monster_List'"
+SecRule REQUEST_URI_RAW "@contains FROM " "chain"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:DELETE.+FROM)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Possible SQL Injection Attempt DELETE FROM',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2006444) ET WEB Possible SQL Injection Attempt INSERT INTO
+SecRule REQUEST_URI_RAW "@contains INSERT " "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2006444,rev:6,msg:'ET WEB Possible SQL Injection Attempt INSERT INTO',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_SQL_Injection_Monster_List'"
+SecRule REQUEST_URI_RAW "@contains INTO " "chain"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:INSERT.+INTO)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Possible SQL Injection Attempt INSERT INTO',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2006445) ET WEB Possible SQL Injection Attempt SELECT FROM
+SecRule REQUEST_URI_RAW "@contains SELECT " "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2006445,rev:6,msg:'ET WEB Possible SQL Injection Attempt SELECT FROM',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_SQL_Injection_Monster_List'"
+SecRule REQUEST_URI_RAW "@contains FROM " "chain"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:SELECT.+FROM)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Possible SQL Injection Attempt SELECT FROM',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2006446) ET WEB Possible SQL Injection Attempt UNION SELECT
+SecRule REQUEST_URI_RAW "@contains UNION " "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2006446,rev:6,msg:'ET WEB Possible SQL Injection Attempt UNION SELECT',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_SQL_Injection_Monster_List'"
+SecRule REQUEST_URI_RAW "@contains SELECT " "chain"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:UNION\s+SELECT)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Possible SQL Injection Attempt UNION SELECT',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2006447) ET WEB Possible SQL Injection Attempt UPDATE SET
+SecRule REQUEST_URI_RAW "@contains UPDATE " "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2006447,rev:7,msg:'ET WEB Possible SQL Injection Attempt UPDATE SET',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_SQL_Injection_Monster_List'"
+SecRule REQUEST_URI_RAW "@contains SET " "chain"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:[&\?].*UPDATE.+SET)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Possible SQL Injection Attempt UPDATE SET',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2003903) ET WEB Microsoft SharePoint XSS Attempt default.aspx
+SecRule REQUEST_URI_RAW "(?i:\/default\.aspx)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2003903,rev:5,msg:'ET WEB Microsoft SharePoint XSS Attempt default.aspx',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Sharepoint'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:<?(java|vb)?script>?.*<.+\/script>?)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Microsoft SharePoint XSS Attempt default.aspx',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2003904) ET WEB Microsoft SharePoint XSS Attempt index.php form[mail]
+SecRule REQUEST_URI_RAW "(?i:\/contact\/contact\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2003904,rev:5,msg:'ET WEB Microsoft SharePoint XSS Attempt index.php form[mail]',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Sharepoint'"
+SecRule ARGS:form[mail] "(?i:<?(java|vb)?script>?.*<.+\/script>?)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Microsoft SharePoint XSS Attempt index.php form[mail]',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2003705) ET WEB TellTarget CMS Remote Inclusion site_conf.php ordnertiefe
+SecRule REQUEST_URI_RAW "(?i:\/site_conf\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2003705,rev:3,msg:'ET WEB TellTarget CMS Remote Inclusion site_conf.php ordnertiefe',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_TellTarget_CMS'"
+SecRule ARGS_NAMES "(?i:ordnertiefe)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB TellTarget CMS Remote Inclusion site_conf.php ordnertiefe',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2003706) ET WEB TellTarget CMS Remote Inclusion class.csv.php tt_docroot
+SecRule REQUEST_URI_RAW "(?i:\/class\.csv\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2003706,rev:3,msg:'ET WEB TellTarget CMS Remote Inclusion class.csv.php tt_docroot',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_TellTarget_CMS'"
+SecRule ARGS_NAMES "(?i:tt_docroot)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB TellTarget CMS Remote Inclusion class.csv.php tt_docroot',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2003707) ET WEB TellTarget CMS Remote Inclusion produkte_nach_serie.php tt_docroot
+SecRule REQUEST_URI_RAW "(?i:\/produkte_nach_serie\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2003707,rev:3,msg:'ET WEB TellTarget CMS Remote Inclusion produkte_nach_serie.php tt_docroot',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_TellTarget_CMS'"
+SecRule ARGS_NAMES "(?i:tt_docroot)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB TellTarget CMS Remote Inclusion produkte_nach_serie.php tt_docroot',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2003708) ET WEB TellTarget CMS Remote Inclusion ref_kd_rubrik.php tt_docroot
+SecRule REQUEST_URI_RAW "(?i:\/functionen\/ref_kd_rubrik\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2003708,rev:3,msg:'ET WEB TellTarget CMS Remote Inclusion ref_kd_rubrik.php tt_docroot',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_TellTarget_CMS'"
+SecRule ARGS_NAMES "(?i:tt_docroot)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB TellTarget CMS Remote Inclusion ref_kd_rubrik.php tt_docroot',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2003709) ET WEB TellTarget CMS Remote Inclusion hg_referenz_jobgalerie.php tt_docroot
+SecRule REQUEST_URI_RAW "(?i:\/hg_referenz_jobgalerie\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2003709,rev:3,msg:'ET WEB TellTarget CMS Remote Inclusion hg_referenz_jobgalerie.php tt_docroot',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_TellTarget_CMS'"
+SecRule ARGS_NAMES "(?i:tt_docroot)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB TellTarget CMS Remote Inclusion hg_referenz_jobgalerie.php tt_docroot',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2003710) ET WEB TellTarget CMS Remote Inclusion surfer_anmeldung_NWL.php tt_docroot
+SecRule REQUEST_URI_RAW "(?i:\/surfer_anmeldung_NWL\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2003710,rev:3,msg:'ET WEB TellTarget CMS Remote Inclusion surfer_anmeldung_NWL.php tt_docroot',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_TellTarget_CMS'"
+SecRule ARGS_NAMES "(?i:tt_docroot)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB TellTarget CMS Remote Inclusion surfer_anmeldung_NWL.php tt_docroot',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2003711) ET WEB TellTarget CMS Remote Inclusion produkte_nach_serie_alle.php tt_docroot
+SecRule REQUEST_URI_RAW "(?i:\/produkte_nach_serie_alle\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2003711,rev:3,msg:'ET WEB TellTarget CMS Remote Inclusion produkte_nach_serie_alle.php tt_docroot',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_TellTarget_CMS'"
+SecRule ARGS_NAMES "(?i:tt_docroot)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB TellTarget CMS Remote Inclusion produkte_nach_serie_alle.php tt_docroot',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2003712) ET WEB TellTarget CMS Remote Inclusion surfer_aendern.php tt_docroot
+SecRule REQUEST_URI_RAW "(?i:\/surfer_aendern\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2003712,rev:3,msg:'ET WEB TellTarget CMS Remote Inclusion surfer_aendern.php tt_docroot',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_TellTarget_CMS'"
+SecRule ARGS_NAMES "(?i:tt_docroot)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB TellTarget CMS Remote Inclusion surfer_aendern.php tt_docroot',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2003715) ET WEB TellTarget CMS Remote Inclusion ref_kd_rubrik.php tt_docroot
+SecRule REQUEST_URI_RAW "(?i:\/ref_kd_rubrik\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2003715,rev:3,msg:'ET WEB TellTarget CMS Remote Inclusion ref_kd_rubrik.php tt_docroot',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_TellTarget_CMS'"
+SecRule ARGS_NAMES "(?i:tt_docroot)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB TellTarget CMS Remote Inclusion ref_kd_rubrik.php tt_docroot',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2003713) ET WEB TellTarget CMS Remote Inclusion referenz.php tt_docroot
+SecRule REQUEST_URI_RAW "(?i:\/module\/referenz\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2003713,rev:3,msg:'ET WEB TellTarget CMS Remote Inclusion referenz.php tt_docroot',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_TellTarget_CMS'"
+SecRule ARGS_NAMES "(?i:tt_docroot)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB TellTarget CMS Remote Inclusion referenz.php tt_docroot',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2003714) ET WEB TellTarget CMS Remote Inclusion lay.php tt_docroot
+SecRule REQUEST_URI_RAW "(?i:\/standard\/1\/lay\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2003714,rev:3,msg:'ET WEB TellTarget CMS Remote Inclusion lay.php tt_docroot',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_TellTarget_CMS'"
+SecRule ARGS_NAMES "(?i:tt_docroot)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB TellTarget CMS Remote Inclusion lay.php tt_docroot',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2003867) ET WEB TellTarget CMS Remote Inclusion 3_lay.php tt_docroot
+SecRule REQUEST_URI_RAW "(?i:\/standard\/3\/lay\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2003867,rev:3,msg:'ET WEB TellTarget CMS Remote Inclusion 3_lay.php tt_docroot',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_TellTarget_CMS'"
+SecRule ARGS_NAMES "(?i:tt_docroot)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB TellTarget CMS Remote Inclusion 3_lay.php tt_docroot',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2002662) ET WEB TWiki INCLUDE remote command execution attempt
+SecRule QUERY_STRING|REQUEST_BODY "(?i:%INCLUDE\s*{.*rev=\x22\d+\|.+\x22.*}\s*%)" "phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2002662,rev:5,msg:'ET WEB TWiki INCLUDE remote command execution attempt',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Twiki',ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB TWiki INCLUDE remote command execution attempt',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2003085) ET WEB TWiki Configure Script TYPEOF Remote Command Execution Attempt
+SecRule QUERY_STRING|REQUEST_BODY "(?i:&TYPEOF\:.+system\s*\()" "phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2003085,rev:4,msg:'ET WEB TWiki Configure Script TYPEOF Remote Command Execution Attempt',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Twiki',ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB TWiki Configure Script TYPEOF Remote Command Execution Attempt',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2003099) ET WEB-MISC Poison Null Byte
+SecRule REQUEST_URI_RAW "@contains |00|" "phase:2,pass,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2003099,rev:4,msg:'ET WEB-MISC Poison Null Byte',tag:'web-application-activity',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_URI',ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB-MISC Poison Null Byte',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2002494) ET WEB Versatile Bulletin Board SQL Injection Attack
+SecRule REQUEST_URI_RAW "(?i:\/index\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2002494,rev:5,msg:'ET WEB Versatile Bulletin Board SQL Injection Attack',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_VersatileBB'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:select=.+UNION\s+SELECT)" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB Versatile Bulletin Board SQL Injection Attack',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2002100) ET WEB WPS wps_shop.cgi Remote Command Execution Attempt
+SecRule REQUEST_URI_RAW "(?i:\/wps_shop\.cgi)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2002100,rev:4,msg:'ET WEB WPS wps_shop.cgi Remote Command Execution Attempt',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_WPS'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:(art=\|.+\|))" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB WPS wps_shop.cgi Remote Command Execution Attempt',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2002844) ET WEB WebDAV search overflow
+SecRule QUERY_STRING|REQUEST_BODY "@contains SEARCH " "phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2002844,rev:4,msg:'ET WEB WebDAV search overflow',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Webdav',ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB WebDAV search overflow',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2004574) ET WEB WikyBlog XSS Attempt sessionRegister.php
+SecRule REQUEST_URI_RAW "(?i:\/include\/sessionRegister\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2004574,rev:4,msg:'ET WEB WikyBlog XSS Attempt sessionRegister.php',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_WikyBlog'"
+SecRule REQUEST_URI_RAW "@contains | 3C |" "chain"
+SecRule REQUEST_URI_RAW "@contains SCRIPT" "chain"
+SecRule REQUEST_URI_RAW "@contains | 3E |" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB WikyBlog XSS Attempt sessionRegister.php',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2007872) ET WEB WinIPDS Directory Traversal Vulnerabilities GET
+SecRule REQUEST_URI_RAW "@contains GET " "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2007872,rev:2,msg:'ET WEB WinIPDS Directory Traversal Vulnerabilities GET',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_WinIPDS'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:(\.\.[\\/]){1,}.+\.(com|exe|bat|dll|cab|ini))" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB WinIPDS Directory Traversal Vulnerabilities GET',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2007873) ET WEB WinIPDS Directory Traversal Vulnerabilities POST
+SecRule REQUEST_URI_RAW "@contains POST " "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2007873,rev:3,msg:'ET WEB WinIPDS Directory Traversal Vulnerabilities POST',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_WinIPDS'"
+SecRule QUERY_STRING|REQUEST_BODY "(?i:(\.\.[\\/]){1,}.+\.(com|exe|bat|dll|cab|ini))" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB WinIPDS Directory Traversal Vulnerabilities POST',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2008553) ET WEB WordPress Random Password Generation Insufficient Entropy Attack
+SecRule REQUEST_URI_RAW "(?i:\/wp\-login\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2008553,rev:2,msg:'ET WEB WordPress Random Password Generation Insufficient Entropy Attack',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_Wordpress'"
+SecRule REQUEST_URI_RAW "@contains POST " "chain"
+SecRule ARGS:action "(?i:\w+(%20){60,})" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB WordPress Random Password Generation Insufficient Entropy Attack',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2002408) ET WEB phpMyAdmin Suspicious Activity
+SecRule REQUEST_URI_RAW "(?i:\/grab_globals\.lib\.php)" "chain,phase:2,pass,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2002408,rev:7,msg:'ET WEB phpMyAdmin Suspicious Activity',tag:'web-application-activity',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_phpMyAdmin'"
+SecRule REQUEST_URI_RAW "@contains POST " "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB phpMyAdmin Suspicious Activity',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2002409) ET WEB phpMyAdmin Local File Inclusion (2.6.4-pl1)
+SecRule QUERY_STRING|REQUEST_BODY "@contains [redirect]" "phase:2,pass,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2002409,rev:5,msg:'ET WEB phpMyAdmin Local File Inclusion (2.6.4-pl1)',tag:'web-application-activity',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_phpMyAdmin',ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB phpMyAdmin Local File Inclusion (2.6.4-pl1)',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2002667) ET WEB sumthin scan
+SecRule REQUEST_URI_RAW "@contains GET /sumthin HTTP/1." "phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2002667,rev:3,msg:'ET WEB sumthin scan',tag:'attempted-recon',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_sumthin',ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB sumthin scan',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+# (sid 2003167) ET WEB tikiwiki featured link XSS attempt
+SecRule REQUEST_URI_RAW "(?i:\/tiki\-featured_link\.php)" "chain,phase:2,block,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:normalisePathWin,capture,nolog,auditlog,logdata:'%{TX.0}',id:sid2003167,rev:4,msg:'ET WEB tikiwiki featured link XSS attempt',tag:'web-application-attack',tag:'url,www.emergingthreats.net/cgi-bin/cvsweb.cgi/sigs/WEB/WEB_tikiwiki'"
+SecRule ARGS_NAMES "(?i:type)" "chain"
+SecRule REQUEST_URI_RAW "@contains /iframe>" "ctl:auditLogParts=+E,setvar:'tx.msg=ET WEB tikiwiki featured link XSS attempt',setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}-WEB_ATTACK-%{matched_var_name}=%{matched_var}'"
+
+
+SecMarker END_SNORT_RULES
--- /dev/null
+# ---------------------------------------------------------------
+# Core ModSecurity Rule Set ver.2.0.3
+# Copyright (C) 2006-2009 Breach Security Inc. All rights reserved.
+#
+# The ModSecuirty Core Rule Set is distributed under GPL version 2
+# Please see the enclosed LICENCE file for full details.
+# ---------------------------------------------------------------
+
+
+# This file is used as an exception mechanism to remove common false positives
+# that may be encountered.
+#
+# Exception for Apache SSL pinger
+#
+SecRule REQUEST_LINE "^GET /$" "chain,phase:2,t:none,pass,nolog"
+ SecRule REMOTE_ADDR "^(127\.0\.0\.|\:\:)1$" "chain,t:none"
+ SecRule TX:'/PROTOCOL_VIOLATION\\\/MISSING_HEADER/' ".*" "chain,setvar:tx.missing_header=+1,setvar:tx.missing_header_%{tx.missing_header}=%{matched_var_name}"
+ SecRule TX:'/MISSING_HEADER_/' "TX\:(.*)" "capture,t:none,setvar:!tx.%{tx.1}"
+
+#
+# Exception for Apache internal dummy connection
+#
+SecRule REQUEST_LINE "^(GET /|OPTIONS \*) HTTP/1.0$" "chain,phase:2,t:none,pass,nolog"
+ SecRule REMOTE_ADDR "^(127\.0\.0\.|\:\:)1$" "chain,t:none"
+ SecRule REQUEST_HEADERS:User-Agent "^Apache.*\(internal dummy connection\)$" "t:none,t:none,chain"
+ SecRule TX:'/PROTOCOL_VIOLATION\\\/MISSING_HEADER/' ".*" "chain,setvar:tx.missing_header=+1,setvar:tx.missing_header_%{tx.missing_header}=%{matched_var_name}"
+ SecRule TX:'/MISSING_HEADER_/' "TX\:(.*)" "capture,t:none,setvar:!tx.%{tx.1}"
+
--- /dev/null
+# ---------------------------------------------------------------
+# Core ModSecurity Rule Set ver.2.0.3
+# Copyright (C) 2006-2009 Breach Security Inc. All rights reserved.
+#
+# The ModSecuirty Core Rule Set is distributed under GPL version 2
+# Please see the enclosed LICENCE file for full details.
+# ---------------------------------------------------------------
+
+
+# This file is used to allow custom checks and exclusions for the transactional
+# variable rules. Place rules in this file so that you may influence what happens
+# in the 49 - Enforcement File.
+
+# In previous ModSecurity rules, the TARGET list would have to be updated in
+# order to exclude a specific paramater like this -
+#
+# SecRule ARGS_NAMES|ARGS|!ARGS:foo
+#
+# With the new transactional variable rules, parameter exceptions can now
+# be handled AFTER the initial inspection as the rules now use setvars to
+# capture meta-data with each rule match. They use this syntax -
+#
+# setvar:tx.%{rule.id}-WEB_ATTACK/SQL_INJECTION-%{matched_var_name}=%{matched_var}
+#
+# When the transactional rules trigger, they will set a TX variable similar to this
+# for an SQL Injection attack -
+#
+# Set variable "tx.950001-WEB_ATTACK/SQL_INJECTION-ARGS:comments" to "1' or select * from users where username = admin ".
+#
+# With this data now available, the user can implement flexible exceptions.
+#
+# Exception example - exclude a parameter
+#
+# In this example, we are inspecting
+# the TX collections to see if there is a current variable that has matched
+# for the 950001 SQL Injection rule ID and for the "comments" parameter. If
+# so, then we are going to remove the collection entirely by using the
+# setvar:!tx. syntax. By doing this, the TX collection is removed before final
+# inspection at the end of phase 2 in the enforcement file.
+#
+#SecRule TX:'/^950001.*ARGS:comments/' ".*" "chain,phase:2,t:none,nolog,pass"
+# SecRule MATCHED_VAR_NAME "TX\:(.*)" "capture,t:none,setvar:!tx.%{tx.1},setvar:tx.anomaly_score=-20"
+
+#
+# This is an example exclusion for the entire SQL Injection category of rules
+#
+#SecRule TX:'/SQL_INJECTION/' ".*" "phase:2,t:none,nolog,pass,chain,setvar:tx.sql_injection=+1,setvar:tx.sql_injection_%{tx.sql_injection}=%{matched_var_name}"
+# SecRule TX:'/^SQL_INJECTION_/' "TX\:(.*)" "capture,t:none,setvar:!tx.%{tx.1},setvar:tx.anomaly_score=-20"
+
+#
+# This is an example exclusion that combines the URL and parameter and removes
+# a specific SQL Injection ID only if the parameter foo payload matches
+#
+#SecRule REQUEST_FILENAME "@streq /path/to/file.php" "chain,phase:2,t:none,nolog,pass"
+# SecRule TX:'/^950001.*ARGS:foo/' "@streq Item 1=1" "chain,t:none"
+# SecRule MATCHED_VAR_NAME "TX\:(.*)" "capture,t:none,setvar:!tx.%{tx.1},setvar:tx.anomaly_score=-20"
+
+
--- /dev/null
+# ---------------------------------------------------------------
+# Core ModSecurity Rule Set ver.2.0.3
+# Copyright (C) 2006-2009 Breach Security Inc. All rights reserved.
+#
+# The ModSecuirty Core Rule Set is distributed under GPL version 2
+# Please see the enclosed LICENCE file for full details.
+# ---------------------------------------------------------------
+
+
+
+# Uncomment the anomaly sections you wish to use.
+# You should set the score to the proper threshold you would prefer. If kept at "@gt 0"
+# it will work similarly to previous Mod CRS rules and will create an event in the error_log
+# file if there are any rules that match. If you would like to lessen the number of events
+# generated in the error_log file, you should increase the anomaly score threshold to
+# something like "@gt 20". This would only generate an event in the error_log file if
+# there are multiple lower severity rule matches or if any 1 higher severity item matches.
+#
+# You should also set the desired disruptive action (deny, redirect, etc...).
+#
+
+# Alert and Deny on High Anomaly Scores
+#
+SecRule TX:ANOMALY_SCORE "@ge 20" \
+ "phase:2,t:none,nolog,auditlog,deny,msg:'Anomaly Score Exceeded (score %{TX.ANOMALY_SCORE}): %{tx.msg}',setvar:tx.inbound_tx_msg=%{tx.msg}"
+
+# Alert on any anomalies
+#
+#SecRule TX:ANOMALY_SCORE "@ge 0" \
+# "phase:2,t:none,nolog,auditlog,pass,msg:'Anomaly Score Exceeded (score %{TX.ANOMALY_SCORE}): %{tx.msg}',setvar:tx.inbound_tx_msg=%{tx.msg}"
+
+# Alert on SQL Injection anomalies
+#
+#SecRule TX:SQLI_SCORE "@gt 0" \
+# "phase:2,t:none,log,deny,msg:'SQL Injection Detected (score %{TX.SQLI_SCORE}): %{tx.msg}'"
+
+# Alert on XSS anomalies
+#
+#SecRule TX:XSS_SCORE "!@eq 0" \
+# "phase:2,t:none,log,deny,msg:'XSS Detected (score %{TX.XSS_SCORE}): %{tx.msg}'"
+
+# Alert on Protocol Policy anomalies
+#
+#SecRule TX:PROTOCOL_VIOLATION_SCORE "!@eq 0" \
+# "phase:2,t:none,log,deny,msg:'Protocol Violations Detected (score %{TX.PROTOCOL_VIOLATION_SCORE}): %{tx.msg}'"
--- /dev/null
+# ---------------------------------------------------------------
+# Core ModSecurity Rule Set ver.2.0.3
+# Copyright (C) 2006-2009 Breach Security Inc. All rights reserved.
+#
+# The ModSecuirty Core Rule Set is distributed under GPL version 2
+# Please see the enclosed LICENCE file for full details.
+# ---------------------------------------------------------------
+
+
+#
+# NOTE By default the status code sent is 501, which implies that the web
+# server does not support the required operation. This is a non standard
+# of this status code which normally refers to unsupported HTTP methods.
+# It is used in order to confuse automated clients and scanners.
+
+
+# Zope Information Leakage
+SecRule RESPONSE_BODY "<h2>Site Error<\/h2>.{0,20}<p>An error was encountered while publishing this resource\." \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'Zope Information Leakage',id:'970007',tag:'LEAKAGE/ERRORS',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+
+# CF Information Leakage
+SecRule RESPONSE_BODY "\bThe error occurred in\b.{0,100}: line\b.{0,1000}\bColdFusion\b.*?\bStack Trace \(click to expand\)\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'Cold Fusion Information Leakage',id:'970008',tag:'LEAKAGE/ERRORS',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+
+# PHP Information Leakage
+SecRule RESPONSE_BODY "<b>Warning<\/b>.{0,100}?:.{0,1000}?\bon line\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'PHP Information Leakage',id:'970009',tag:'LEAKAGE/ERRORS',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+
+# ISA server existence revealed
+SecRule RESPONSE_BODY "\b403 Forbidden\b.*?\bInternet Security and Acceleration Server\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'ISA server existence revealed',id:'970010',tag:'MISCONFIGURATION',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-MISCONFIGURATION-%{matched_var_name}=%{matched_var}"
+
+# Microsoft Office document properties leakage
+SecRule RESPONSE_BODY "<o:documentproperties>" \
+ "phase:4,t:none,nolog,auditlog,msg:'Microsoft Office document properties leakage',id:'970012',tag:'LEAKAGE/INFO',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/INFO-%{matched_var_name}=%{matched_var}"
+
+
+SecRule RESPONSE_BODY "\<\%" "phase:4,chain,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'ASP/JSP source code leakage',id:'970903',tag:'LEAKAGE/SOURCE_CODE',severity:'3'"
+SecRule RESPONSE_BODY "!(?:\b(?:(?:i(?:nterplay|hdr|d3)|m(?:ovi|thd)|r(?:ar!|iff)|(?:ex|jf)if|f(?:lv|ws)|varg|cws)\b|gif)|B(?:%pdf|\.ra)\b)" "t:none,setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+
+
+# CF source code leakage
+SecRule RESPONSE_BODY "<cf" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'Cold Fusion source code leakage',id:'970016',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+
+# IIS default location
+SecRule RESPONSE_BODY "[a-z]:\\\\inetpub\b" \
+ "phase:4,t:none,t:lowercase,ctl:auditLogParts=+E,nolog,auditlog,msg:'IIS installed in default location',id:'970018',severity:'3',chain"
+SecRule &GLOBAL:alerted_970018_iisDefLoc "@eq 0" "setvar:global.alerted_970018_iisDefLoc,setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15"
+
+# The application is not available
+SecRule RESPONSE_STATUS "^5\d{2}$" "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'The application is not available',id:'970901',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-AVAILABILITY/APP_NOT_AVAIL-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "(?:Microsoft OLE DB Provider for SQL Server(?:<\/font>.{1,20}?error '800(?:04005|40e31)'.{1,40}?Timeout expired| \(0x80040e31\)<br>Timeout expired<br>)|<h1>internal server error<\/h1>.*?<h2>part of the server has crashed or it has a configuration error\.<\/h2>|cannot connect to the server: timed out)" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'The application is not available',id:'970118',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-AVAILABILITY/APP_NOT_AVAIL-%{matched_var_name}=%{matched_var}"
+
+# Weblogic information disclosure
+SecRule RESPONSE_STATUS "^500$" "phase:4,chain,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'WebLogic information disclosure',id:'970021',severity:'3'"
+SecRule RESPONSE_BODY "<title>JSP compile error<\/title>" "t:none,setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+
+# File or Directory Names Leakage
+SecRule RESPONSE_BODY "href\s?=[\s\"\']*[A-Za-z]\:\x5c([^\"\']+)" "phase:4,chain,capture,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'File or Directory Names Leakage',id:'970011',tag:'LEAKAGE/INFO',severity:'3'"
+SecRule TX:1 "!program files\x5cmicrosoft office\x5c(?:office|templates)" "t:none,t:lowercase,setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}LEAKAGE/INFO-%{matched_var_name}=%{matched_var}"
+
+#
+# IFrame Injection
+#
+SecRule RESPONSE_BODY "!@pm iframe" \
+ "phase:2,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:lowercase,pass,nolog,skipAfter:END_IFRAME_CHECK"
+SecRule RESPONSE_BODY "<\W*iframe[^>]+?\b(?:width|height)\b\W*?=\W*?[\"']?[^\"'1-9]*?(?:(?:20|1?\d(?:\.\d*)?)(?![\d%.])|[0-3](?:\.\d*)?%)" \
+ "t:replaceComments,phase:4,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'Possibly malicious iframe tag in output',id:'981000',tag:'MALICIOUS_IFRAME',severity:'4',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-MALICIOUS_IFRAME-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "<\W*iframe[^>]+?\bstyle\W*?=\W*?[\"']?\W*?\bdisplay\b\W*?:\W*?\bnone\b" \
+ "t:replaceComments,phase:4,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'Possibly malicious iframe tag in output',id:'981001',tag:'MALICIOUS_IFRAME',severity:'4',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-MALICIOUS_IFRAME-%{matched_var_name}=%{matched_var}"
+SecMarker END_IFRAME_CHECK
+
+#
+# Run PM check against response body data before running any RegEx Checks
+# If nothing matches, then we skip the remainder of phase:4
+#
+SecRule RESPONSE_BODY "!@pmFromFile modsecurity_50_outbound.data" \
+ "phase:4,t:none,t:urlDecodeUni,t:htmlEntityDecode,nolog,allow"
+
+# ASP/JSP source code leakage
+SecRule RESPONSE_BODY "\bwscript\.shell\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'ASP/JSP source code leakage',id:'971379',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "<jsp:" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'ASP/JSP source code leakage',id:'971300',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\.addheader\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'ASP/JSP source code leakage',id:'971360',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bserver\.execute\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'ASP/JSP source code leakage',id:'971373',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bserver\.mappath\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'ASP/JSP source code leakage',id:'971375',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bresponse\.binarywrite\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'ASP/JSP source code leakage',id:'971369',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bserver\.createobject\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'ASP/JSP source code leakage',id:'971372',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\.createtextfile\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'ASP/JSP source code leakage',id:'971361',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bwscript\.network\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'ASP/JSP source code leakage',id:'971378',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bvbscript\.encode\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'ASP/JSP source code leakage',id:'971377',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bserver\.htmlencode\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'ASP/JSP source code leakage',id:'971374',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bjavax\.servlet" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'ASP/JSP source code leakage',id:'971301',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bscripting\.filesystemobject\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'ASP/JSP source code leakage',id:'971371',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bserver\.urlencode\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'ASP/JSP source code leakage',id:'971376',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\.getfile\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'ASP/JSP source code leakage',id:'971362',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\.loadfromfile\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'ASP/JSP source code leakage',id:'971363',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bresponse\.write\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'ASP/JSP source code leakage',id:'971370',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+
+# PHP source code leakage
+SecRule RESPONSE_BODY "\bproc_open\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'PHP source code leakage',id:'958976',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bgzread\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'PHP source code leakage',id:'958972',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bftp_nb_fget\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'PHP source code leakage',id:'958963',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bftp_nb_get\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'PHP source code leakage',id:'958965',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bfscanf\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'PHP source code leakage',id:'958959',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\breadfile\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'PHP source code leakage',id:'958978',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bfgetss\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'PHP source code leakage',id:'958955',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\$_post\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'PHP source code leakage',id:'958941',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bsession_start\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'PHP source code leakage',id:'958982',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\breaddir\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'PHP source code leakage',id:'958977',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bgzwrite\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'PHP source code leakage',id:'958973',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bscandir\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'PHP source code leakage',id:'958981',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bftp_get\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'PHP source code leakage',id:'958962',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bfread\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'PHP source code leakage',id:'958958',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\breadgzfile\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'PHP source code leakage',id:'958979',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bftp_put\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'PHP source code leakage',id:'958967',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bfwrite\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'PHP source code leakage',id:'958968',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bgzencode\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'PHP source code leakage',id:'958970',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bfopen\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'PHP source code leakage',id:'958957',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\$_session\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'PHP source code leakage',id:'958942',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bftp_nb_fput\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'PHP source code leakage',id:'958964',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bftp_fput\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'PHP source code leakage',id:'958961',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bgzcompress\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'PHP source code leakage',id:'958969',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bbzopen\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'PHP source code leakage',id:'958946',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bgzopen\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'PHP source code leakage',id:'958971',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bfgetc\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'PHP source code leakage',id:'958953',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bmove_uploaded_file\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'PHP source code leakage',id:'958975',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bftp_nb_put\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'PHP source code leakage',id:'958966',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\$_get\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'PHP source code leakage',id:'958940',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bfgets\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'PHP source code leakage',id:'958954',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bftp_fget\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'PHP source code leakage',id:'958960',tag:'LEAKAGE/SOURCE_CODE',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+
+SecRule RESPONSE_BODY "<\?(?!xml)" \
+ "phase:4,chain,t:none,ctl:auditLogParts=+E,nolog,auditlog,msg:'PHP source code leakage',id:'970902',tag:'LEAKAGE/SOURCE_CODE',severity:'3'"
+SecRule RESPONSE_BODY "!(?:\b(?:(?:i(?:nterplay|hdr|d3)|m(?:ovi|thd)|r(?:ar!|iff)|(?:ex|jf)if|f(?:lv|ws)|varg|cws)\b|gif)|B(?:%pdf|\.ra)\b)" "t:none,setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/SOURCE_CODE-%{matched_var_name}=%{matched_var}"
+
+# Statistics pages revealed
+SecRule RESPONSE_BODY "\bThis summary was generated by.{0,100}?webcruncher\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:404,msg:'Statistics Information Leakage',id:'971019',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/INFO-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bThese statistics were produced by PeLAB\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:404,msg:'Statistics Information Leakage',id:'971011',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/INFO-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bThis summary was generated by.{0,100}?analog\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:404,msg:'Statistics Information Leakage',id:'971020',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/INFO-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bThis summary was generated by.{0,100}?Jware\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:404,msg:'Statistics Information Leakage',id:'971018',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/INFO-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bThis summary was generated by.{0,100}?wwwstat\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:404,msg:'Statistics Information Leakage',id:'971014',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/INFO-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bThis analysis was produced by.{0,100}?calamaris\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:404,msg:'Statistics Information Leakage',id:'971022',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/INFO-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bThis report was generated by WebLog\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:404,msg:'Statistics Information Leakage',id:'971013',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/INFO-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\b[gG]enerated by.{0,100}?[Ww]ebalizer\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:404,msg:'Statistics Information Leakage',id:'971024',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/INFO-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bThese statistics were produced by getstats\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:404,msg:'Statistics Information Leakage',id:'971010',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/INFO-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bThis analysis was produced by.{0,100}?EasyStat\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:404,msg:'Statistics Information Leakage',id:'971023',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/INFO-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bThis analysis was produced by.{0,100}?analog\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:404,msg:'Statistics Information Leakage',id:'971021',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/INFO-%{matched_var_name}=%{matched_var}"
+
+
+# SQL Errors leakage
+SecRule RESPONSE_BODY "\bCould not find server \'\w+\' in sysservers\. execute sp_addlinkedserver\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'SQL Information Leakage',id:'971154',tag:'LEAKAGE/ERRORS',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bSyntax error converting the \w+ value .*? to a column of data type\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'SQL Information Leakage',id:'971153',tag:'LEAKAGE/ERRORS',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bORA-\d{5}\: " \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'SQL Information Leakage',id:'971198',tag:'LEAKAGE/ERRORS',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bUnclosed quotation mark before the character string\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'SQL Information Leakage',id:'971092',tag:'LEAKAGE/ERRORS',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\[Microsoft\]\[ODBC " \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'SQL Information Leakage',id:'971197',tag:'LEAKAGE/ERRORS',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\berror \'800a01b8\'" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'SQL Information Leakage',id:'971069',tag:'LEAKAGE/ERRORS',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bYou have an error in your SQL syntax near \'" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'SQL Information Leakage',id:'971094',tag:'LEAKAGE/ERRORS',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bmicrosoft jet database engine error \'8" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'SQL Information Leakage',id:'971072',tag:'LEAKAGE/ERRORS',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bselect list because it is not contained in an aggregate function and there is no GROUP BY clause\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'SQL Information Leakage',id:'971086',tag:'LEAKAGE/ERRORS',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bUnable to connect to PostgreSQL server\:" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'SQL Information Leakage',id:'971091',tag:'LEAKAGE/ERRORS',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bPostgreSQL query failed\:" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'SQL Information Leakage',id:'971068',tag:'LEAKAGE/ERRORS',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bsupplied argument is not a valid MS SQL\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'SQL Information Leakage',id:'971158',tag:'LEAKAGE/ERRORS',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bsupplied argument is not a valid Oracle\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'SQL Information Leakage',id:'971157',tag:'LEAKAGE/ERRORS',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bWarning: mysql_connect\(\)\:" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'SQL Information Leakage',id:'971093',tag:'LEAKAGE/ERRORS',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bsupplied argument is not a valid ODBC\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'SQL Information Leakage',id:'971159',tag:'LEAKAGE/ERRORS',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bMicrosoft OLE DB Provider for .{0,30} [eE]rror '" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'SQL Information Leakage',id:'971076',tag:'LEAKAGE/ERRORS',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bSQL Server does not exist or access denied\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'SQL Information Leakage',id:'971096',tag:'LEAKAGE/ERRORS',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bEither BOF or EOF is True, or the current record has been deleted; the operation\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'SQL Information Leakage',id:'971099',tag:'LEAKAGE/ERRORS',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bcannot take a \w+ data type as an argument\." \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'SQL Information Leakage',id:'971060',tag:'LEAKAGE/ERRORS',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bselect list because it is not contained in either an aggregate function or the GROUP BY clause\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'SQL Information Leakage',id:'971087',tag:'LEAKAGE/ERRORS',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bThe column prefix .{0,50}? does not match with a table name or alias name used in the query\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'SQL Information Leakage',id:'971155',tag:'LEAKAGE/ERRORS',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bsupplied argument is not a valid PostgreSQL result\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'SQL Information Leakage',id:'971088',tag:'LEAKAGE/ERRORS',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bYou have an error in your SQL syntax;" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'SQL Information Leakage',id:'971150',tag:'LEAKAGE/ERRORS',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bsupplied argument is not a valid MySQL\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'SQL Information Leakage',id:'971156',tag:'LEAKAGE/ERRORS',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bEither BOF or EOF is True, or the current record has been deleted. Requested\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'SQL Information Leakage',id:'971067',tag:'LEAKAGE/ERRORS',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bincorrect syntax near (?:\'|the\b|\@\@error\b)" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'SQL Information Leakage',id:'971152',tag:'LEAKAGE/ERRORS',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+
+
+# IIS Errors leakage
+SecRule RESPONSE_BODY "\<b\>Version Information\:\<\/b\>(?: |\s)Microsoft \.NET Framework Version\:" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'IIS Information Leakage',id:'971123',tag:'LEAKAGE/ERRORS',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY ">error \'ASP\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'IIS Information Leakage',id:'971111',tag:'LEAKAGE/ERRORS',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\berror \'800" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'IIS Information Leakage',id:'971116',tag:'LEAKAGE/ERRORS',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\<b\>Version Information\:\<\/b\>(?: |\s)ASP\.NET Version\:" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'IIS Information Leakage',id:'971124',tag:'LEAKAGE/ERRORS',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bA trappable error occurred in an external object\. The script cannot continue running\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'IIS Information Leakage',id:'971122',tag:'LEAKAGE/ERRORS',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bMicrosoft VBScript runtime Error\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'IIS Information Leakage',id:'971125',tag:'LEAKAGE/ERRORS',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bMicrosoft VBScript compilation \(0x8\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'IIS Information Leakage',id:'971121',tag:'LEAKAGE/ERRORS',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "/[Ee]rror[Mm]essage\.aspx\?[Ee]rror\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'IIS Information Leakage',id:'971113',tag:'LEAKAGE/ERRORS',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bMicrosoft VBScript runtime \(0x8\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'IIS Information Leakage',id:'971126',tag:'LEAKAGE/ERRORS',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bObject required\: \'" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'IIS Information Leakage',id:'971112',tag:'LEAKAGE/ERRORS',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bADODB\.Command\b.{0,100}?\bApplication uses a value of the wrong type for the current operation\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'IIS Information Leakage',id:'971115',tag:'LEAKAGE/ERRORS',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "/[Ee]rror[Mm]essage\.asp\?[Ee]rror\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'IIS Information Leakage',id:'971127',tag:'LEAKAGE/ERRORS',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bADODB\.Command\b.{0,100}?\berror\'" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'IIS Information Leakage',id:'971114',tag:'LEAKAGE/ERRORS',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bMicrosoft VBScript compilation error\b" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'IIS Information Leakage',id:'971119',tag:'LEAKAGE/ERRORS',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "\bServer Error in.{0,50}?\bApplication\b" \
+ "phase:4,chain,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:500,msg:'IIS Information Leakage',id:'970904',tag:'LEAKAGE/ERRORS',severity:'3'"
+SecRule RESPONSE_STATUS "!^404$" "t:none,setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/ERRORS-%{matched_var_name}=%{matched_var}"
+
+# Directory Listing
+SecRule RESPONSE_BODY ">[To Parent Directory]</[Aa]><br>" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:403,msg:'Directory Listing',id:'971202',tag:'LEAKAGE/INFO',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/INFO-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "<TITLE>Index of.*?<H1>Index of" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:403,msg:'Directory Listing',id:'971201',tag:'LEAKAGE/INFO',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/INFO-%{matched_var_name}=%{matched_var}"
+SecRule RESPONSE_BODY "<title>Index of.*?<h1>Index of" \
+ "phase:4,t:none,ctl:auditLogParts=+E,block,nolog,auditlog,status:403,msg:'Directory Listing',id:'971200',tag:'LEAKAGE/INFO',severity:'3',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:tx.%{rule.id}-LEAKAGE/INFO-%{matched_var_name}=%{matched_var}"
+
--- /dev/null
+# ---------------------------------------------------------------
+# Core ModSecurity Rule Set ver.2.0.3
+# Copyright (C) 2006-2009 Breach Security Inc. All rights reserved.
+#
+# The ModSecuirty Core Rule Set is distributed under GPL version 2
+# Please see the enclosed LICENCE file for full details.
+# ---------------------------------------------------------------
+
+
+
+# You should set the score to the proper threshold you would prefer. If kept at "@gt 0"
+# it will work similarly to previous Mod CRS rules and will create an event in the error_log
+# file if there are any rules that match. If you would like to lessen the number of events
+# generated in the error_log file, you should increase the anomaly score threshold to
+# something like "@gt 20". This would only generate an event in the error_log file if
+# there are multiple lower severity rule matches or if any 1 higher severity item matches.
+#
+# You should also set the desired disruptive action (deny, redirect, etc...).
+#
+
+# Correlated Successful Attack
+#
+SecRule &TX:'/LEAKAGE\\\/ERRORS/' "@ge 1" \
+ "chain,phase:5,t:none,log,pass,severity:'0',msg:'Correlated Successful Attack Identified: Inbound Attack (%{tx.inbound_tx_msg}) + Outbound Data Leakage (%{tx.msg}) - (Transactional Anomaly Score: %{TX.ANOMALY_SCORE})'"
+ SecRule &TX:'/WEB_ATTACK/' "@ge 1" "t:none,skipAfter:END_CORRELATION"
+
+# Correlated Attack Attempt
+#
+SecRule &TX:'/AVAILABILITY\\\/APP_NOT_AVAIL/' "@ge 1" \
+ "chain,phase:5,t:none,log,pass,severity:'1',msg:'Correlated Attack Attempt Identified: Inbound Attack (%{tx.inbound_tx_msg}) + Outbound Application Error (%{tx.msg}) - (Transactional Anomaly Score %{TX.ANOMALY_SCORE})'"
+ SecRule &TX:'/WEB_ATTACK/' "@ge 1" "t:none,skipAfter:END_CORRELATION"
+
+# Alert on High Anomaly Scores
+#
+#SecRule TX:ANOMALY_SCORE "@ge 40" \
+# "phase:5,t:none,log,noauditlog,pass,msg:'Transactional Anomaly Score (score %{TX.ANOMALY_SCORE}): %{tx.msg}'"
+
+# Alert on any anomalies
+#
+SecRule TX:ANOMALY_SCORE "@ge 5" \
+ "phase:5,t:none,log,noauditlog,pass,msg:'Transactional Anomaly Score (score %{TX.ANOMALY_SCORE}): %{tx.msg}'"
+
+SecMarker END_CORRELATION
--- /dev/null
+# ---------------------------------------------------------------
+# Core ModSecurity Rule Set ver.2.0.3
+# Copyright (C) 2006-2009 Breach Security Inc. All rights reserved.
+#
+# The ModSecuirty Core Rule Set is distributed under GPL version 2
+# Please see the enclosed LICENCE file for full details.
+# ---------------------------------------------------------------
+
+
+# The directives within this file can be included within
+# Virtual Host containers.
+#
+# Configuration contained in this file should be customized
+# for your specific requirements before deployment.
+#
+# Next to each rule there is a description of what it does. Each
+# location where customization is needed is marked with "TODO". It
+# is recommended that you:
+#
+# 1) Keep a copy of the original file. This will allow you to use
+# the "diff" command to quickly see the changes. It will also
+# make upgrades to future rule sets easier.
+#
+# 2) Document your changes thoroughly.
+#
+# You are advised to start with ModSecurity in detection mode only.
+# Switch to protection when you are comfortable with your rule set.
+# For maximum protection monitor your logs on daily basis (or
+# better).
+#
+
+# TODO You may want to provide an error friendly message to your
+# users when you start rejecting requests. You can do this using
+# the Apache ErrorDocument directive. You should also add
+# mod_unique_id to your configuration and display the unique
+# request ID on the error page. This would allow your users to
+# report the request ID back to you so that you can investigate
+# the false positive (if that's what it is). A nice error page
+# usually reduces the impact of false positives on the users.
+#
+# The drawback of this user friendly approach is that it is
+# easier for the attackers to figure out there is an web
+# application firewall protecting the application.
+#
+# ErrorDocument 403 /path/to/error_document.php
+#
+# For more information see
+# http://httpd.apache.org/docs-2.0/custom-error.html
+
+
+## -- Configuration ----------------------------------------------------------
+
+# Turn ModSecurity on ("On"), set to monitoring only
+# ("DetectionOnly") or turn off ("Off").
+#
+SecRuleEngine On
+
+# Define which part of the HTTP transaction to inspect.
+#
+# Inspecting request body (SecRequestBodyAccess) should probably be always set
+# to "on". Only very high volume sites that never use POST requests might want
+# to set it to "off" to optimize performance.
+#
+# Inspecting response body is useful for monitoring for information leaks,
+# or for signs of intrusion. However, it does require all responses to be
+# buffered in memory. For most sites this should not be a problem, but special
+# care must be taken to avoid buffering file downloads (through
+# MIME type selection, as shown below).
+#
+# TODO If you decide to enable output filtering make sure to
+# review the list of scanned MIME types. If pages of the types specified
+# for outbound inspection are smaller than 512K in you application
+# (which is usually the case) you may reduce the SecResponseBodyLimit
+# to protect from potential denial of service attacks.
+#
+SecRequestBodyAccess On
+SecResponseBodyAccess On
+SecResponseBodyMimeType (null) text/html text/plain text/xml
+SecResponseBodyLimit 524288
+
+# The following directive will not block large response bodies, but rather will
+# only inspect data up to the size SecResponseBodyLimit setting.
+SecResponseBodyLimitAction ProcessPartial
+
+# Initiate XML Processor in case of xml content-type
+#
+# TODO Uncomment this rule if you wish to parse
+# text/xml requests using the XML parser. Note
+# that this may cause considerable overhead in processing
+# text/xml requests.
+#SecRule REQUEST_HEADERS:Content-Type "text/xml" \
+#"phase:1,pass,nolog,ctl:requestBodyProcessor=XML"
+
+
+# What to do when an error is encountered.
+#
+# The default is to log the error and let the request go through.
+# This is a reasonable setting to start with because you do not
+# want to reject legitimate requests with an untuned rule set.
+#
+# The following line's settings will be inherited by rules that
+# either do not specify an action at all, or if they use the
+# "block" action. This will also allow the rules to use
+# Anomaly Scoring (must use the
+# modsecurity_crs_49_anomaly_scoring.conf file).
+#
+SecDefaultAction "phase:2,pass"
+
+# If, after monitoring the performance of the rule set after a
+# sufficient period, you determine the rules never (or rarely
+# trigger on legitimate requests) you can change to something
+# else, such as "log,deny,status:403". You can also leave the
+# default setting here as is, but use per rule action configuration
+# to only configure some rules to reject requests, leaving most
+# of them to work in detection mode.
+#
+#SecDefaultAction "phase:2,deny"
+
+## -- File uploads configuration -----------------------------------------------
+# Temporary file storage path.
+#
+# TODO Change the temporary folder setting to a path where only
+# the web server has access.
+#
+SecUploadDir /tmp
+
+# Whether or not to keep the stored files.
+#
+# In most cases you don't want to keep the uploaded files (especially
+# when there is a lot of them). It may be useful to change the setting
+# to "RelevantOnly", in which case the files uploaded in suspicious
+# requests will be stored.
+#
+SecUploadKeepFiles Off
+
+# Inspect uploaded files.
+#
+# TODO If there is a danger of attack through uploaded files then it
+# is possible to configure an external script to inspect each file
+# before it is seen by the application. An example script is
+# included with ModSecurity (/util/modsec-clamscan.pl).
+#
+# Inspecting uploaded files is especially important in a hosting,
+# community or blogging environments where uploading files is permitted.
+#
+# NOTE the t:none action is required in order not to process the files names
+# passed to the script based on previously defined actions in a
+# SecDefaultAction directive.
+#
+# SecRule FILES_TMPNAMES "@inspectFile /opt/apache/bin/inspect_script.pl" \
+# "t:none"
+
+## -- Logging ----------------------------------------------------------------
+
+# Whether to log requests to the ModSecurity audit log.
+#
+# By default, only requests that trigger a ModSecurity events (as detected
+# by) or a serer error are logged ("RelevantOnly"). This is a reasonable
+# setting. Full logging can be set by using # "on". If the system is used
+# for protection only and no logging is desired (not reccomended) logging can
+# be turned of using "off"
+#
+# NOTE It is also possible to configure forensic logging on the
+# per request basis using the "auditlog" and "noauditlog" rule
+# actions.
+#
+# TODO The default rule set logs requests that generate a 404 "file not found"
+# response. These events are interesting, but may log a lot of information.
+# you may consider removing it by setting SecAuditLogRelevantStatus
+# to "^(?:5|4\d[^4])".
+#
+SecAuditEngine RelevantOnly
+SecAuditLogRelevantStatus "^(?:5|4(?!04))"
+
+# Log files structure
+#
+# You can select to log all events to a single log file (set SecAuditLogType to
+# "Serial") or to log each request to a separate file (set it to "Concurrent").
+# The former is usually easier to use, but if full logging is required or if
+# the protected system supports a large transaction volume the later may
+# be a better option.
+#
+# TODO Set the SecAuditLog (for "Serial" logging) or SecAuditLogStorageDir (for
+# "Concurrent" logging).
+#
+# TODO If you change from "Serial" to "Concurrent" uncomment the
+# SecAuditLogStorageDir directive and make sure the direcory specified
+# exists and has write permissions for the Apache user.
+
+SecAuditLogType Serial
+SecAuditLog logs/modsec_audit.log
+# SecAuditLogStorageDir logs/modsec_audit
+
+# Select what portions of the request to log
+#
+# Modify the string by adding any of the letter below to it:
+# A - audit log header (mandatory)
+# B - request headers
+# C - request body (present only if the request body exists and ModSecurity is
+# configured to intercept it)
+# E - intermediary response body (present only if ModSecurity is configured to
+# intercept response bodies, and if the audit log engine is configured to
+# record it). Intermediary response body is the same as the actual response
+# body unless ModSecurity intercepts the intermediary response body, in
+# which case the actual response body will contain the error message
+# (either the Apache default error message, or the ErrorDocument page).
+# F - final response headers (excluding the Date and Server headers, which are
+# always added by Apache in the late stage of content delivery).
+# H - audit log trailer
+# I - This part is a replacement for part C. It will log the same data as C in
+# all cases except when multipart/form-data encoding in used. In this case
+# it will log a fake application/x-www-form-urlencoded body that contains
+# the information about parameters but not about the files. This is handy
+# if you don't want to have (often large) files stored in your audit logs.
+# Z - final boundary, signifies the end of the entry (mandatory)
+
+SecAuditLogParts "ABIFHKZ"
+
+# Create a separate log to monitor performance.
+#
+# TODO Performance monitoring only works with Apache 2.x. You need
+# to add mod_unique_id and mod_logio to your configuration. Then
+# uncomment the following two lines.
+#
+# LogFormat "%V %h %t %{UNIQUE_ID}e \"%r\" %>s %X | %I %O | %<{mod_security-time1}n %<{mod_security-time2}n %<{mod_security-time3}n %D" mperformance
+# CustomLog logs/modsec_performance.log mperformance
+
+# Custom application access log.
+#
+# TODO You should consider creating a custom access log. It could contain
+# the performance metrics from above, but should also record the
+# session ID for every request. That would make it possible to
+# list all requests performed as part of a session.
+#
+# One custom log should be used per application but if you want
+# multiple applications to share one log file make sure each
+# line includes a unique application ID (unless the hostname is
+# sufficient for differentiation).
+
+## -- Tuning and debugging
+
+# This section include tuning and debugging directives that usually require no
+# modifications unless
+
+
+# Selects the cookie format that will be used in the current configuration
+# context.
+#
+# Possible values are:
+# 0 - use version 0 (Netscape) cookies. This is what most applications use.
+# It is the default value.
+# 1 - use version 1 cookies.
+
+SecCookieFormat 0
+
+# Maximum size of the request body to keep in memory
+#
+# A higher value requires more server memory while a lower number would slow
+# the server due to additional disk access. By default the limit is 128 KB:
+SecRequestBodyInMemoryLimit 131072
+
+
+# Whether to send ModSecurity messages to a separate debug log.
+#
+# Debug messages are very useful for, well, debugging. The default
+# setting here copies (they always appear in the Apache error log)
+# only the most important messages (errors and warnings).
+#
+# NOTE Debug logging is generally very slow. You should never
+# use values greater than "3" in production.
+#
+SecDebugLog logs/modsec_debug.log
+SecDebugLogLevel 3
+
+# Configures the directory where temporary files will be created.
+SecTmpDir /tmp
--- /dev/null
+# ---------------------------------------------------------------
+# Core ModSecurity Rule Set ver.2.0.3
+# Copyright (C) 2006-2009 Breach Security Inc. All rights reserved.
+#
+# The ModSecuirty Core Rule Set is distributed under GPL version 2
+# Please see the enclosed LICENCE file for full details.
+# ---------------------------------------------------------------
+
+
+# Configuration contained in this file should be included
+# in the MAIN Apache config section as these directives
+# can not be included within Virtual Host containers.
+#
+
+# Set web server identification string
+#
+# If you want to spoof another web server type, you can specify it like this -
+#
+# SecServerSignature "Microsoft-IIS/6.0"
+# or
+# SecServerSignature "Sun-ONE-Web-Server/6.1"
+#
+# Spoofing the Server token data is considered by some to be "Security by Obscurity"
+# and that may be true when it is the *only* security measure taken. There is
+# a security benefit, however, with changing this data and that is to help
+# protect against automated banner-grabbing tools, exploit code and worms that
+# decide to send the attack payload based on the target platform data in the
+# Server token.
+#
+# For this directive to work, you need to set Apache ServerTokens
+# to Full (this is the default option)
+#
+# The default setting is to server a blank Server banner
+SecServerSignature " "
+
+# Add ruleset identity to the logs
+#
+SecComponentSignature "core ruleset/2.0.3"
+
+# Parameters separator
+#
+# Specifies which character to use as separator for
+# application/x-www-form-urlencoded content.
+# Defaults to "&". Applications are sometimes (very rarely) written to use
+# a semicolon (";").
+#
+# NOTE Changing the value for this directive has significant influence on how
+# ModSecurity works. Make the change only if you are absolutely sure it
+# is required.
+SecArgumentSeparator "&"
+
+# Path where persistent data (e.g. IP address data, session data, etc) is to
+# be stored. Must be writable by the web server user.
+#
+# TODO It is advisable to create a directory structure for ModSecurity such as
+# /var/log/msa and create sub directories for SecDataDir, SecTmpDir,
+# SecUploadDir, SecAuditLog and SecAuditLogStorageDir
+# underneath it and set the permission for read and write only by the
+# Apache user.
+
+SecDataDir /tmp
+
+# Create both Global and IP collections for rules to use
+SecAction "phase:1,t:none,pass,nolog,initcol:global=global,initcol:ip=%{remote_addr}"
--- /dev/null
+# ---------------------------------------------------------------
+# Core ModSecurity Rule Set ver.1.6.1
+# Copyright (C) 2006-2007 Breach Security Inc. All rights reserved.
+#
+# The ModSecuirty Core Rule Set is distributed under GPL version 2
+# Please see the enclosed LICENCE file for full details.
+# ---------------------------------------------------------------
+
+
+#
+# TODO in some cases a valid client (usually automated) generates requests that
+# violates the HTTP protocol. Create exceptions for those clients, but try
+# to limit the exception to a source IP or other additional properties of
+# the request such as URL and not allow the violation generally.
+#
+#
+
+# Validate request line
+#
+SecRule REQUEST_LINE "!^(?:(?:[a-z]{3,10}\s+(?:\w{3,7}?://[\w\-\./]*(?::\d+)?)?/[^?#]*(?:\?[^#\s]*)?(?:#[\S]*)?|connect (?:\d{1,3}\.){3}\d{1,3}\.?(?::\d+)?|options \*)\s+[\w\./]+|get /[^?#]*(?:\?[^#\s]*)?(?:#[\S]*)?)$" \
+ "t:none,t:lowercase,phase:2,deny,log,auditlog,status:400,msg:'Invalid HTTP Request Line',id:'960911',severity:'2'"
+
+
+# HTTP Request Smuggling
+#
+SecRule REQUEST_HEADERS:'/(Content-Length|Transfer-Encoding)/' "," "phase:2,t:none,deny,log,auditlog,status:400,msg:'HTTP Request Smuggling Attack.',id:'950012',tag:'WEB_ATTACK/REQUEST_SMUGGLING',severity:'1'"
+
+# Block request with malformed content.
+# ModSecurity will not inspect these, but the server application might do so
+#
+SecRule REQBODY_PROCESSOR_ERROR "!@eq 0" "t:none,phase:2,deny,log,auditlog,status:400,msg:'Request Body Parsing Failed. %{REQBODY_PROCESSOR_ERROR_MSG}',id:'960912',severity:'2'"
+
+
+# Accept only digits in content length
+#
+SecRule REQUEST_HEADERS:Content-Length "!^\d+$" "phase:2,t:none,deny,log,auditlog,status:400,msg:'Content-Length HTTP header is not numeric', severity:'2',id:'960016',tag:'PROTOCOL_VIOLATION/INVALID_HREQ'"
+
+# Do not accept GET or HEAD requests with bodies
+# HTTP standard allows GET requests to have a body but this
+# feature is not used in real life. Attackers could try to force
+# a request body on an unsuspecting web applications.
+#
+SecRule REQUEST_METHOD "^(?:GET|HEAD)$" "chain,phase:2,t:none,deny,log,auditlog,status:400,msg:'GET or HEAD requests with bodies', severity:'2',id:'960011',tag:'PROTOCOL_VIOLATION/EVASION'"
+SecRule REQUEST_HEADERS:Content-Length "!^0?$" t:none
+
+# Require Content-Length to be provided with every POST request.
+#
+SecRule REQUEST_METHOD "^POST$" "chain,phase:2,t:none,deny,log,auditlog,status:400,msg:'POST request must have a Content-Length header',id:'960012',tag:'PROTOCOL_VIOLATION/EVASION',severity:'4'"
+SecRule &REQUEST_HEADERS:Content-Length "@eq 0" t:none
+
+# Don't accept transfer encodings we know we don't know how to handle
+#
+# NOTE ModSecurity does not support chunked transfer encodings at
+# this time. You MUST reject all such requests.
+#
+SecRule REQUEST_HEADERS:Transfer-Encoding "!^$" "phase:2,t:none,deny,log,auditlog,status:501,msg:'ModSecurity does not support transfer encodings',id:'960013',tag:'PROTOCOL_VIOLATION/EVASION',severity:'3'"
+
+# Check encodings
+SecRule REQUEST_BODY|REQUEST_URI|XML:/* "\%(?!$|\W|[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})" \
+ "chain,phase:2,t:none,deny,log,auditlog,status:400,msg:'URL Encoding Abuse Attack Attempt',id:'950107',tag:'PROTOCOL_VIOLATION/EVASION',severity:'4'"
+SecRule REQUEST_BODY|REQUEST_URI|XML:/* "@validateUrlEncoding"
+
+# Check UTF enconding
+# Uncomment this rule if your system uses UTF encoding.
+#SecRule REQUEST_FILENAME|ARGS|ARGS_NAMES|REQUEST_HEADERS|XML:/*|!REQUEST_HEADERS:Referer "@validateUtf8Encoding" "phase:2,t:none,deny,log,auditlog,status:400,msg:'UTF8 Encoding Abuse Attack Attempt',id:'950801',tag:'PROTOCOL_VIOLATION/EVASION',severity:'4'"
+
+# Disallow use of full-width unicode
+SecRule REQUEST_FILENAME|ARGS|ARGS_NAMES|REQUEST_HEADERS|XML:/*|!REQUEST_HEADERS:Referer "\%u[fF]{2}[0-9a-fA-F]{2}" \
+ "t:none,phase:2,deny,log,auditlog,status:400,msg:'Unicode Full/Half Width Abuse Attack Attempt',id:'950116',severity:'4'"
+
+# Proxy access attempt
+# NOTE Apache blocks such access by default if not set as a proxy. The rule is
+# included in case Apache proxy is misconfigured.
+SecRule REQUEST_URI_RAW ^\w+:/ "phase:2,t:none,deny,log,auditlog,status:400,msg:'Proxy access attempt', severity:'2',id:'960014',tag:'PROTOCOL_VIOLATION/PROXY_ACCESS'"
+
+#
+# Restrict type of characters sent
+#
+# NOTE In order to be broad and support localized applications this rule
+# only validates that NULL Is not used.
+#
+# The strict policy version also validates that protocol and application
+# generated fields are limited to printable ASCII.
+#
+# TODO If your application use the range 32-126 for parameters.
+#
+SecRule REQUEST_FILENAME|REQUEST_HEADERS_NAMES|REQUEST_HEADERS|!REQUEST_HEADERS:Referer \
+ "@validateByteRange 32-126" \
+ "phase:2,deny,log,auditlog,status:400,msg:'Invalid character in request',id:'960018',tag:'PROTOCOL_VIOLATION/EVASION',severity:'4',t:none,t:urlDecodeUni"
+
+SecRule ARGS|ARGS_NAMES|REQUEST_HEADERS:Referer "@validateByteRange 1-255" \
+ "phase:2,deny,log,auditlog,status:400,msg:'Invalid character in request',id:'960901',tag:'PROTOCOL_VIOLATION/EVASION',severity:'4',t:none,t:urlDecodeUni"
--- /dev/null
+# ---------------------------------------------------------------
+# Core ModSecurity Rule Set ver.1.6.1
+# Copyright (C) 2006-2007 Breach Security Inc. All rights reserved.
+#
+# The ModSecuirty Core Rule Set is distributed under GPL version 2
+# Please see the enclosed LICENCE file for full details.
+# ---------------------------------------------------------------
+
+
+#
+# TODO in some cases a valid client (usually automated) generates requests that
+# violates the HTTP protocol. Create exceptions for those clients, but try
+# to limit the exception to a source IP or other additional properties of
+# the request such as URL and not allow the violation generally.
+#
+
+# Do not accept requests without common headers.
+# Implies either an attacker or a legitimate automation client.
+#
+# Exception for Apache SSL pinger
+
+SecRule REQUEST_LINE "^GET /$" "chain,phase:2,t:none,pass,nolog,ctl:ruleRemoveById=960019,ctl:ruleRemoveById=960008,ctl:ruleRemoveById=960015,ctl:ruleRemoveById=960009,id:'999210',severity:'5'"
+SecRule REMOTE_ADDR "^127\.0\.0\.1$" t:none
+
+# Exception for Apache internal dummy connection
+SecRule REQUEST_LINE "^GET / HTTP/1.0$" "chain,phase:2,t:none,pass,nolog,ctl:ruleRemoveById=960019,ctl:ruleRemoveById=960008,ctl:ruleRemoveById=960015,ctl:ruleRemoveById=960009,id:'999211',severity:'5'"
+SecRule REMOTE_ADDR "^127\.0\.0\.1$" "chain,t:none"
+SecRule REQUEST_HEADERS:User-Agent "^Apache.*\(internal dummy connection\)$" "t:none"
+
+
+# Detect HTTP/0.9 Requests
+SecRule REQUEST_PROTOCOL ^http/0.9$ "t:none,t:lowercase,phase:2,deny,log,auditlog,status:400,msg:'HTTP/0.9 Request Detected',id:'960019',severity:'4'"
+
+SecRule &REQUEST_HEADERS:Host "@eq 0" \
+ "skip:1,phase:2,t:none,deny,log,auditlog,status:400,msg:'Request Missing a Host Header',id:'960008',tag:'PROTOCOL_VIOLATION/MISSING_HEADER',severity:'4'"
+SecRule REQUEST_HEADERS:Host "^$" \
+ "phase:2,t:none,deny,log,auditlog,status:400,msg:'Request Missing a Host Header',id:'960008',tag:'PROTOCOL_VIOLATION/MISSING_HEADER',severity:'4'"
+
+
+SecRule &REQUEST_HEADERS:Accept "@eq 0" \
+ "chain,phase:2,skip:1,t:none,deny,log,auditlog,status:400,msg:'Request Missing an Accept Header', severity:'2',id:'960015',tag:'PROTOCOL_VIOLATION/MISSING_HEADER'"
+SecRule REQUEST_METHOD "!^OPTIONS$" "t:none"
+SecRule REQUEST_HEADERS:Accept "^$" \
+ "chain,phase:2,t:none,deny,log,auditlog,status:400,msg:'Request Missing an Accept Header', severity:'2',id:'960015',tag:'PROTOCOL_VIOLATION/MISSING_HEADER'"
+SecRule REQUEST_METHOD "!^OPTIONS$" "t:none"
+
+SecRule &REQUEST_HEADERS:User-Agent "@eq 0" \
+ "skip:1,phase:2,t:none,deny,log,auditlog,status:400,msg:'Request Missing a User Agent Header',id:'960009',tag:'PROTOCOL_VIOLATION/MISSING_HEADER',severity:'4'"
+SecRule REQUEST_HEADERS:User-Agent "^$" \
+ "t:none,deny,log,auditlog,status:400,msg:'Request Missing a User Agent Header',id:'960009',tag:'PROTOCOL_VIOLATION/MISSING_HEADER',severity:'4'"
+
+
+SecRule &REQUEST_HEADERS:Content-Type "@eq 0" \
+ "chain,phase:2,t:none,deny,log,auditlog,status:400,msg:'Request Containing Content, but Missing Content-Type header',id:'960904',severity:'4'"
+SecRule REQUEST_HEADERS:Content-Length "!^0$" "t:none"
+
+
+# Check that the host header is not an IP address
+#
+SecRule REQUEST_HEADERS:Host "^[\d\.]+$" "phase:2,t:none,deny,log,auditlog,status:400,msg:'Host header is a numeric IP address', severity:'2',id:'960017',tag:'PROTOCOL_VIOLATION/IP_HOST'"
+
+
+# Log a security event when the request is rejected by apache
+#
+SecRule RESPONSE_STATUS ^400$ "t:none,phase:5,chain,log,auditlog,pass,msg:'Invalid request',id:'960913',severity:'2'"
+SecRule WEBSERVER_ERROR_LOG !ModSecurity "t:none"
+
--- /dev/null
+# ---------------------------------------------------------------
+# Core ModSecurity Rule Set ver.1.6.1
+# Copyright (C) 2006-2007 Breach Security Inc. All rights reserved.
+#
+# The ModSecuirty Core Rule Set is distributed under GPL version 2
+# Please see the enclosed LICENCE file for full details.
+# ---------------------------------------------------------------
+
+
+#
+# TODO While some of the pattern groups such as command injection are usually
+# safe of false positives, other pattern groups such as SQL injection and
+# XSS may require setting exceptions and therefore are set to log only by
+# default.
+#
+# Start ModSecurity in monitoring only mode and check whether your
+# application requires exceptions for a specific URL, Pattern or source IP
+# before moving to blocking mode.
+
+#
+# Session fixation
+#
+SecRule REQUEST_FILENAME|ARGS|ARGS_NAMES|REQUEST_HEADERS|XML:/*|!REQUEST_HEADERS:Referer "@pm set-cookie .cookie" \
+ "phase:2,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:compressWhiteSpace,t:lowercase,pass,nolog,skip:1"
+SecAction phase:2,pass,nolog,skipAfter:959009
+SecRule REQUEST_FILENAME|ARGS|ARGS_NAMES "(?:\.cookie\b.*?;\W*?(?:expires|domain)\W*?=|\bhttp-equiv\W+set-cookie\b)" \
+ "phase:2,t:none,t:htmlEntityDecode,t:compressWhiteSpace,t:lowercase,capture,ctl:auditLogParts=+E,deny,log,auditlog,status:501,msg:'Session Fixation',id:'950009',tag:'WEB_ATTACK/SESSION_FIXATION',logdata:'%{TX.0}',severity:'2'"
+SecRule REQUEST_HEADERS|XML:/*|!REQUEST_HEADERS:Referer "(?:\.cookie\b.*?;\W*?(?:expires|domain)\W*?=|\bhttp-equiv\W+set-cookie\b)" \
+ "phase:2,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:compressWhiteSpace,t:lowercase,capture,ctl:auditLogParts=+E,deny,log,auditlog,status:501,msg:'Session Fixation',id:'959009',tag:'WEB_ATTACK/SESSION_FIXATION',logdata:'%{TX.0}',severity:'2'"
+
+
+#
+# Blind SQL injection
+#
+SecRule REQUEST_FILENAME|ARGS|ARGS_NAMES|REQUEST_HEADERS|XML:/*|!REQUEST_HEADERS:Referer "@pm sys.user_triggers sys.user_objects @@spid msysaces instr sys.user_views sys.tab charindex sys.user_catalog constraint_type locate select msysobjects attnotnull sys.user_tables sys.user_tab_columns sys.user_constraints waitfor mysql.user sys.all_tables msysrelationships msyscolumns msysqueries" \
+ "phase:2,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:lowercase,t:replaceComments,t:compressWhiteSpace,pass,nolog,skip:1"
+SecAction phase:2,pass,nolog,skipAfter:959007
+SecRule REQUEST_FILENAME|ARGS|ARGS_NAMES "(?:\b(?:(?:s(?:ys\.(?:user_(?:(?:t(?:ab(?:_column|le)|rigger)|object|view)s|c(?:onstraints|atalog))|all_tables|tab)|elect\b.{0,40}\b(?:substring|ascii|user))|m(?:sys(?:(?:queri|ac)e|relationship|column|object)s|ysql\.user)|c(?:onstraint_type|harindex)|waitfor\b\W*?\bdelay|attnotnull)\b|(?:locate|instr)\W+\()|\@\@spid\b)" \
+ "phase:2,capture,t:none,t:htmlEntityDecode,t:lowercase,t:replaceComments,t:compressWhiteSpace,ctl:auditLogParts=+E,deny,log,auditlog,status:501,msg:'Blind SQL Injection Attack',id:'950007',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2'"
+SecRule REQUEST_HEADERS|XML:/*|!REQUEST_HEADERS:Referer "(?:\b(?:(?:s(?:ys\.(?:user_(?:(?:t(?:ab(?:_column|le)|rigger)|object|view)s|c(?:onstraints|atalog))|all_tables|tab)|elect\b.{0,40}\b(?:substring|ascii|user))|m(?:sys(?:(?:queri|ac)e|relationship|column|object)s|ysql\.user)|c(?:onstraint_type|harindex)|waitfor\b\W*?\bdelay|attnotnull)\b|(?:locate|instr)\W+\()|\@\@spid\b)" \
+ "phase:2,capture,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:lowercase,t:replaceComments,t:compressWhiteSpace,ctl:auditLogParts=+E,deny,log,auditlog,status:501,msg:'Blind SQL Injection Attack',id:'959007',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2'"
+
+#SecRule REQUEST_FILENAME|ARGS|ARGS_NAMES "\b(?:benchmark|encode)\b" \
+# "phase:2,chain,t:none,t:htmlEntityDecode,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,deny,log,auditlog,status:501,msg:'Blind SQL Injection Attack',id:'950903',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2'"
+#SecRule REQUEST_FILENAME|ARGS|ARGS_NAMES "t:none,t:htmlEntityDecode,t:compressWhiteSpace,t:lowercase,(?:[\\\(\)\%#]|--)"
+#SecRule REQUEST_HEADERS|XML:/*|!REQUEST_HEADERS:Referer "t:none,t:urlDecodeUni,t:htmlEntityDecode,t:compressWhiteSpace,t:lowercase,\b(?:benchmark|encode)\b" \
+# "phase:2,chain,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,deny,log,auditlog,status:501,msg:'Blind SQL Injection Attack',id:'959903',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2'"
+#SecRule REQUEST_HEADERS|XML:/*|!REQUEST_HEADERS:Referer "(?:[\\\(\)\%#]|--)" t:none
+
+SecRule REQUEST_FILENAME|ARGS|REQUEST_HEADERS|XML:/*|!REQUEST_HEADERS:Referer "@pm substr xtype textpos all_objects rownum sysfilegroups sysprocesses user_group sysobjects user_tables systables pg_attribute user_users user_password column_id attrelid user_tab_columns table_name pg_class user_constraints user_objects object_type dba_users sysconstraints mb_users column_name atttypid object_id substring syscat user_ind_columns sysibm syscolumns sysdba object_name" \
+ "phase:2,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,pass,nolog,skip:1"
+SecAction phase:2,pass,nolog,skipAfter:959904
+SecRule REQUEST_FILENAME|ARGS "\b(?:(?:s(?:ys(?:(?:(?:process|tabl)e|filegroup|object)s|c(?:o(?:nstraint|lumn)s|at)|dba|ibm)|ubstr(?:ing)?)|user_(?:(?:(?:constrain|objec)t|tab(?:_column|le)|ind_column|user)s|password|group)|a(?:tt(?:rel|typ)id|ll_objects)|object_(?:(?:nam|typ)e|id)|pg_(?:attribute|class)|column_(?:name|id)|(?:dba|mb)_users|xtype\W+\bchar|rownum)\b|t(?:able_name\b|extpos\W+\())" \
+ "phase:2,capture,t:none,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,deny,log,auditlog,status:501,msg:'Blind SQL Injection Attack',id:'950904',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2'"
+SecRule REQUEST_HEADERS|XML:/*|!REQUEST_HEADERS:Referer "\b(?:(?:s(?:ys(?:(?:(?:process|tabl)e|filegroup|object)s|c(?:o(?:nstraint|lumn)s|at)|dba|ibm)|ubstr(?:ing)?)|user_(?:(?:(?:constrain|objec)t|tab(?:_column|le)|ind_column|user)s|password|group)|a(?:tt(?:rel|typ)id|ll_objects)|object_(?:(?:nam|typ)e|id)|pg_(?:attribute|class)|column_(?:name|id)|(?:dba|mb)_users|xtype\W+\bchar|rownum)\b|t(?:able_name\b|extpos\W+\())" \
+ "phase:2,capture,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,deny,log,auditlog,status:501,msg:'Blind SQL Injection Attack',id:'959904',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2'"
+
+
+#
+# SQL injection
+#
+SecRule REQUEST_FILENAME|ARGS|ARGS_NAMES|REQUEST_HEADERS|XML:/*|!REQUEST_HEADERS:Referer "@pm insert xp_enumdsn infile openrowset nvarchar autonomous_transaction print data_type or outfile inner shutdown tbcreator @@version xp_filelist sp_prepare sql_longvarchar xp_regenumkeys xp_loginconfig xp_dirtree ifnull sp_addextendedproc xp_regaddmultistring delete sp_sqlexec and sp_oacreate sp_execute cast xp_ntsec xp_regdeletekey drop varchar xp_execresultset having utl_file xp_regenumvalues xp_terminate xp_availablemedia xp_regdeletevalue dumpfile isnull sql_variant select 'sa' xp_regremovemultistring xp_makecab 'msdasql' xp_cmdshell openquery sp_executesql 'sqloledb' dbms_java 'dbo' utl_http sp_makewebtask benchmark xp_regread xp_regwrite" \
+ "phase:2,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,pass,nolog,skip:1"
+SecAction phase:2,pass,nolog,id:999501,skipAfter:959001
+SecRule REQUEST_FILENAME|ARGS|ARGS_NAMES "(?:\b(?:(?:s(?:elect\b(?:.{1,100}?\b(?:(?:length|count|top)\b.{1,100}?\bfrom|from\b.{1,100}?\bwhere)|.*?\b(?:d(?:ump\b.*\bfrom|ata_type)|(?:to_(?:numbe|cha)|inst)r))|p_(?:(?:addextendedpro|sqlexe)c|(?:oacreat|prepar)e|execute(?:sql)?|makewebtask)|ql_(?:longvarchar|variant))|xp_(?:reg(?:re(?:movemultistring|ad)|delete(?:value|key)|enum(?:value|key)s|addmultistring|write)|e(?:xecresultset|numdsn)|(?:terminat|dirtre)e|availablemedia|loginconfig|cmdshell|filelist|makecab|ntsec)|u(?:nion\b.{1,100}?\bselect|tl_(?:file|http))|group\b.*\bby\b.{1,100}?\bhaving|d(?:elete\b\W*?\bfrom|bms_java)|load\b\W*?\bdata\b.*\binfile|(?:n?varcha|tbcreato)r)\b|i(?:n(?:to\b\W*?\b(?:dump|out)file|sert\b\W*?\binto|ner\b\W*?\bjoin)\b|(?:f(?:\b\W*?\(\W*?\bbenchmark|null\b)|snull\b)\W*?\()|a(?:nd\b ?(?:\d{1,10}|[\'\"][^=]{1,10}[\'\"]) ?[=<>]+|utonomous_transaction\b)|o(?:r\b ?(?:\d{1,10}|[\'\"][^=]{1,10}[\'\"]) ?[=<>]+|pen(?:rowset|query)\b)|having\b ?(?:\d{1,10}|[\'\"][^=]{1,10}[\'\"]) ?[=<>]+|print\b\W*?\@\@|cast\b\W*?\()|(?:;\W*?\b(?:shutdown|drop)|\@\@version)\b|'(?:s(?:qloledb|a)|msdasql|dbo)')" \
+ "phase:2,capture,t:none,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,deny,log,auditlog,status:501,msg:'SQL Injection Attack',id:'950001',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2'"
+SecRule REQUEST_HEADERS|XML:/*|!REQUEST_HEADERS:Referer "(?:\b(?:(?:s(?:elect\b(?:.{1,100}?\b(?:(?:length|count|top)\b.{1,100}?\bfrom|from\b.{1,100}?\bwhere)|.*?\b(?:d(?:ump\b.*\bfrom|ata_type)|(?:to_(?:numbe|cha)|inst)r))|p_(?:(?:addextendedpro|sqlexe)c|(?:oacreat|prepar)e|execute(?:sql)?|makewebtask)|ql_(?:longvarchar|variant))|xp_(?:reg(?:re(?:movemultistring|ad)|delete(?:value|key)|enum(?:value|key)s|addmultistring|write)|e(?:xecresultset|numdsn)|(?:terminat|dirtre)e|availablemedia|loginconfig|cmdshell|filelist|makecab|ntsec)|u(?:nion\b.{1,100}?\bselect|tl_(?:file|http))|group\b.*\bby\b.{1,100}?\bhaving|d(?:elete\b\W*?\bfrom|bms_java)|load\b\W*?\bdata\b.*\binfile|(?:n?varcha|tbcreato)r)\b|i(?:n(?:to\b\W*?\b(?:dump|out)file|sert\b\W*?\binto|ner\b\W*?\bjoin)\b|(?:f(?:\b\W*?\(\W*?\bbenchmark|null\b)|snull\b)\W*?\()|a(?:nd\b ?(?:\d{1,10}|[\'\"][^=]{1,10}[\'\"]) ?[=<>]+|utonomous_transaction\b)|o(?:r\b ?(?:\d{1,10}|[\'\"][^=]{1,10}[\'\"]) ?[=<>]+|pen(?:rowset|query)\b)|having\b ?(?:\d{1,10}|[\'\"][^=]{1,10}[\'\"]) ?[=<>]+|print\b\W*?\@\@|cast\b\W*?\()|(?:;\W*?\b(?:shutdown|drop)|\@\@version)\b|'(?:s(?:qloledb|a)|msdasql|dbo)')" \
+ "phase:2,capture,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,deny,log,auditlog,status:501,msg:'SQL Injection Attack',id:'959001',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2'"
+SecRule REQUEST_FILENAME|ARGS|ARGS_NAMES "\b(\d+) ?= ?\1\b|[\'\"](\w+)[\'\"] ?= ?[\'\"]\2\b" \
+ "phase:2,capture,t:none,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,deny,log,auditlog,status:501,msg:'SQL Injection Attack',id:'950901',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2'"
+SecRule REQUEST_HEADERS|XML:/*|!REQUEST_HEADERS:Referer "\b(\d+) ?= ?\1\b|[\'\"](\w+)[\'\"] ?= ?[\'\"]\2\b" \
+ "phase:2,capture,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,deny,log,auditlog,status:501,msg:'SQL Injection Attack',id:'959901',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2'"
+
+#SecRule REQUEST_FILENAME|ARGS|ARGS_NAMES "\b(?:rel(?:(?:nam|typ)e|kind)|a(?:ttn(?:ame|um)|scii)|c(?:o(?:nver|un)t|ha?r)|s(?:hutdown|elect)|to_(?:numbe|cha)r|u(?:pdate|nion)|d(?:elete|rop)|group\b\W*\bby|having|insert|length|where)\b" \
+# "phase:2,chain,capture,t:none,t:htmlEntityDecode,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,deny,log,auditlog,status:501,msg:'SQL Injection Attack',id:'950905',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2'"
+#SecRule REQUEST_FILENAME|ARGS|ARGS_NAMES "(?:[\\\(\)\%#]|--)" "t:none,t:htmlEntityDecode,t:compressWhiteSpace,t:lowercase"
+#SecRule REQUEST_HEADERS|XML:/*|!REQUEST_HEADERS:Referer "\b(?:rel(?:(?:nam|typ)e|kind)|a(?:ttn(?:ame|um)|scii)|c(?:o(?:nver|un)t|ha?r)|s(?:hutdown|elect)|to_(?:numbe|cha)r|u(?:pdate|nion)|d(?:elete|rop)|group\b\W*\bby|having|insert|length|where)\b" \
+# "phase:2,chain,capture,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,deny,log,auditlog,status:501,msg:'SQL Injection Attack',id:'959905',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2'"
+#SecRule REQUEST_HEADERS|XML:/*|!REQUEST_HEADERS:Referer "(?:[\\\(\)\%#]|--)" "t:none,t:urlDecodeUni,t:htmlEntityDecode,t:compressWhiteSpace,t:lowercase"
+
+SecRule REQUEST_FILENAME|ARGS|REQUEST_HEADERS|XML:/*|!REQUEST_HEADERS:Referer "@pm user_objects object_type substr all_objects mb_users column_name rownum atttypid substring object_id user_group user_tables pg_attribute user_users column_id user_password attrelid object_name table_name pg_class" \
+ "phase:2,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,pass,nolog,skip:1"
+SecAction phase:2,pass,nolog,skipAfter:959906
+SecRule REQUEST_FILENAME|ARGS "\b(?:user_(?:(?:object|table|user)s|password|group)|a(?:tt(?:rel|typ)id|ll_objects)|object_(?:(?:nam|typ)e|id)|pg_(?:attribute|class)|column_(?:name|id)|substr(?:ing)?|table_name|mb_users|rownum)\b" \
+ "phase:2,capture,t:none,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,deny,log,auditlog,status:501,msg:'SQL Injection Attack',id:'950906',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2'"
+SecRule REQUEST_HEADERS|XML:/*|!REQUEST_HEADERS:Referer "\b(?:user_(?:(?:object|table|user)s|password|group)|a(?:tt(?:rel|typ)id|ll_objects)|object_(?:(?:nam|typ)e|id)|pg_(?:attribute|class)|column_(?:name|id)|substr(?:ing)?|table_name|mb_users|rownum)\b" \
+ "phase:2,capture,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,deny,log,auditlog,status:501,msg:'SQL Injection Attack',id:'959906',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2'"
+
+SecRule REQUEST_FILENAME|ARGS|ARGS_NAMES|!REQUEST_HEADERS:via "\b(?:coalesce\b|root\@)" \
+ "phase:2,capture,t:none,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,deny,log,auditlog,status:501,msg:'SQL Injection Attack',id:'950908',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2'"
+SecRule REQUEST_HEADERS|XML:/*|!REQUEST_HEADERS:Referer|!REQUEST_HEADERS:via "\b(?:coalesce\b|root\@)" \
+ "phase:2,capture,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:replaceComments,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,deny,log,auditlog,status:501,msg:'SQL Injection Attack',id:'959908',tag:'WEB_ATTACK/SQL_INJECTION',logdata:'%{TX.0}',severity:'2'"
+
+
+#
+# XSS
+#
+SecRule REQUEST_FILENAME|ARGS|ARGS_NAMES|REQUEST_HEADERS|XML:/*|!REQUEST_HEADERS:Referer "@pm jscript onsubmit copyparentfolder javascript meta onmove onkeydown onchange onkeyup activexobject expression onmouseup ecmascript onmouseover vbscript: <![cdata[ http: settimeout onabort shell: .innerhtml onmousedown onkeypress asfunction: onclick .fromcharcode background-image: .cookie ondragdrop onblur x-javascript mocha: onfocus javascript: getparentfolder lowsrc onresize @import alert onselect script onmouseout onmousemove background application .execscript livescript: getspecialfolder vbscript iframe .addimport onunload createtextrange onload <input" \
+ "phase:2,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:compressWhiteSpace,t:lowercase,pass,nolog,skip:1"
+SecAction phase:2,pass,nolog,skipAfter:959004
+SecRule REQUEST_FILENAME|ARGS|ARGS_NAMES "(?:\b(?:(?:type\b\W*?\b(?:text\b\W*?\b(?:j(?:ava)?|ecma|vb)|application\b\W*?\bx-(?:java|vb))script|c(?:opyparentfolder|reatetextrange)|get(?:special|parent)folder|iframe\b.{0,100}?\bsrc)\b|on(?:(?:mo(?:use(?:o(?:ver|ut)|down|move|up)|ve)|key(?:press|down|up)|c(?:hange|lick)|s(?:elec|ubmi)t|(?:un)?load|dragdrop|resize|focus|blur)\b\W*?=|abort\b)|(?:l(?:owsrc\b\W*?\b(?:(?:java|vb)script|shell|http)|ivescript)|(?:href|url)\b\W*?\b(?:(?:java|vb)script|shell)|background-image|mocha):|s(?:(?:tyle\b\W*=.*\bexpression\b\W*|ettimeout\b\W*?)\(|rc\b\W*?\b(?:(?:java|vb)script|shell|http):)|a(?:ctivexobject\b|lert\b\W*?\(|sfunction:))|<(?:(?:body\b.*?\b(?:backgroun|onloa)d|input\b.*?\btype\b\W*?\bimage)\b| ?(?:(?:script|meta)\b|iframe)|!\[cdata\[)|(?:\.(?:(?:execscrip|addimpor)t|(?:fromcharcod|cooki)e|innerhtml)|\@import)\b)" \
+ "phase:2,capture,t:none,t:htmlEntityDecode,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,deny,log,auditlog,status:501,msg:'Cross-site Scripting (XSS) Attack',id:'950004',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2'"
+SecRule REQUEST_HEADERS|XML:/*|!REQUEST_HEADERS:Referer "(?:\b(?:(?:type\b\W*?\b(?:text\b\W*?\b(?:j(?:ava)?|ecma|vb)|application\b\W*?\bx-(?:java|vb))script|c(?:opyparentfolder|reatetextrange)|get(?:special|parent)folder|iframe\b.{0,100}?\bsrc)\b|on(?:(?:mo(?:use(?:o(?:ver|ut)|down|move|up)|ve)|key(?:press|down|up)|c(?:hange|lick)|s(?:elec|ubmi)t|(?:un)?load|dragdrop|resize|focus|blur)\b\W*?=|abort\b)|(?:l(?:owsrc\b\W*?\b(?:(?:java|vb)script|shell|http)|ivescript)|(?:href|url)\b\W*?\b(?:(?:java|vb)script|shell)|background-image|mocha):|s(?:(?:tyle\b\W*=.*\bexpression\b\W*|ettimeout\b\W*?)\(|rc\b\W*?\b(?:(?:java|vb)script|shell|http):)|a(?:ctivexobject\b|lert\b\W*?\(|sfunction:))|<(?:(?:body\b.*?\b(?:backgroun|onloa)d|input\b.*?\btype\b\W*?\bimage)\b| ?(?:(?:script|meta)\b|iframe)|!\[cdata\[)|(?:\.(?:(?:execscrip|addimpor)t|(?:fromcharcod|cooki)e|innerhtml)|\@import)\b)" \
+ "phase:2,capture,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,deny,log,auditlog,status:501,msg:'Cross-site Scripting (XSS) Attack',id:'959004',tag:'WEB_ATTACK/XSS',logdata:'%{TX.0}',severity:'2'"
+
+
+#
+# File Injection
+#
+SecRule REQUEST_FILENAME|ARGS|ARGS_NAMES|REQUEST_HEADERS|XML:/* "@pm .www_acl .htpasswd .htaccess boot.ini httpd.conf /etc/ .htgroup global.asa .wwwacl" \
+ "phase:2,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:lowercase,pass,nolog,skip:1"
+SecAction phase:2,pass,nolog,skipAfter:959005
+SecRule REQUEST_FILENAME|ARGS|ARGS_NAMES "(?:\b(?:\.(?:ht(?:access|passwd|group)|www_?acl)|global\.asa|httpd\.conf|boot\.ini)\b|\/etc\/)" \
+ "phase:2,capture,t:none,t:htmlEntityDecode,t:lowercase,ctl:auditLogParts=+E,deny,log,auditlog,status:501,msg:'Remote File Access Attempt',id:'950005',tag:'WEB_ATTACK/FILE_INJECTION',logdata:'%{TX.0}',severity:'2'"
+SecRule REQUEST_HEADERS|XML:/* "(?:\b(?:\.(?:ht(?:access|passwd|group)|www_?acl)|global\.asa|httpd\.conf|boot\.ini)\b|\/etc\/)" \
+ "phase:2,capture,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:lowercase,ctl:auditLogParts=+E,deny,log,auditlog,status:501,msg:'Remote File Access Attempt',id:'959005',tag:'WEB_ATTACK/FILE_INJECTION',logdata:'%{TX.0}',severity:'2'"
+
+
+#
+# Command access
+#
+SecRule REQUEST_FILENAME "\b(?:n(?:map|et|c)|w(?:guest|sh)|cmd(?:32)?|telnet|rcmd|ftp)\.exe\b" \
+ "phase:2,capture,t:none,t:htmlEntityDecode,t:lowercase,ctl:auditLogParts=+E,deny,log,auditlog,status:501,msg:'System Command Access',id:'950002',tag:'WEB_ATTACK/FILE_INJECTION',logdata:'%{TX.0}',severity:'2'"
+
+
+#
+# Command injection
+#
+SecRule ARGS "@pm uname wguest.exe /perl /nasm rcmd.exe nc tclsh /xterm finger tftp chown /echo nmap.exe ping /passwd /chsh ps /uname telnet.exe /ftp ls tclsh8 lsof /ping echo cmd.exe /kill python traceroute /ps perl passwd wsh.exe /rm /cpp chgrp /telnet localgroup kill /chgrp /finger nasm /ls nc.exe id /chmod /nc /g++ /id /chown cmd /nmap chsh /gcc net.exe /python /lsof ftp.exe ftp xterm mail /mail tracert nmap rm cd chmod cpp telnet cmd32.exe gcc g++" \
+ "phase:2,t:none,t:htmlEntityDecode,t:lowercase,pass,nolog,skip:1"
+SecAction phase:2,pass,nolog,skipAfter:950006
+SecRule ARGS "(?:\b(?:(?:n(?:et(?:\b\W+?\blocalgroup|\.exe)|(?:map|c)\.exe)|t(?:racer(?:oute|t)|elnet\.exe|clsh8?|ftp)|(?:w(?:guest|sh)|rcmd|ftp)\.exe|echo\b\W*?\by+)\b|c(?:md(?:(?:32)?\.exe\b|\b\W*?\/c)|d(?:\b\W*?[\\\/]|\W*?\.\.)|hmod.{0,40}?\+.{0,3}x))|[\;\|\`]\W*?\b(?:(?:c(?:h(?:grp|mod|own|sh)|md|pp)|p(?:asswd|ython|erl|ing|s)|n(?:asm|map|c)|f(?:inger|tp)|(?:kil|mai)l|(?:xte)?rm|ls(?:of)?|telnet|uname|echo|id)\b|g(?:\+\+|cc\b))|\/(?:c(?:h(?:grp|mod|own|sh)|pp)|p(?:asswd|ython|erl|ing|s)|n(?:asm|map|c)|f(?:inger|tp)|(?:kil|mai)l|g(?:\+\+|cc)|(?:xte)?rm|ls(?:of)?|telnet|uname|echo|id)(?:[\'\"\|\;\`\-\s]|$))" \
+ "phase:2,capture,t:none,t:htmlEntityDecode,t:lowercase,ctl:auditLogParts=+E,deny,log,auditlog,status:501,msg:'System Command Injection',id:'950006',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2'"
+SecRule REQUEST_HEADERS|XML:/*|!REQUEST_HEADERS:'/^(Cookie|Referer|X-OS-Prefs)$/'|REQUEST_COOKIES|REQUEST_COOKIES_NAMES \
+ "@pm uname wguest.exe /perl /nasm rcmd.exe nc tclsh /xterm finger tftp chown /echo nmap.exe ping /passwd /chsh ps /uname telnet.exe /ftp ls tclsh8 lsof /ping echo cmd.exe /kill python traceroute /ps perl passwd wsh.exe /rm /cpp chgrp /telnet localgroup kill /chgrp /finger nasm /ls nc.exe id /chmod /nc /g++ /id /chown cmd /nmap chsh /gcc net.exe /python /lsof ftp.exe ftp xterm mail /mail tracert nmap rm cd chmod cpp telnet cmd32.exe gcc g++" \
+ "phase:2,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:lowercase,pass,nolog,skip:1"
+SecAction pass,nolog,skipAfter:959006
+SecRule REQUEST_HEADERS|XML:/*|!REQUEST_HEADERS:'/^(Cookie|Referer|X-OS-Prefs)$/'|REQUEST_COOKIES|REQUEST_COOKIES_NAMES \
+ "(?:\b(?:(?:n(?:et(?:\b\W+?\blocalgroup|\.exe)|(?:map|c)\.exe)|t(?:racer(?:oute|t)|elnet\.exe|clsh8?|ftp)|(?:w(?:guest|sh)|rcmd|ftp)\.exe|echo\b\W*?\by+)\b|c(?:md(?:(?:32)?\.exe\b|\b\W*?\/c)|d(?:\b\W*?[\\\/]|\W*?\.\.)|hmod.{0,40}?\+.{0,3}x))|[\;\|\`]\W*?\b(?:(?:c(?:h(?:grp|mod|own|sh)|md|pp)|p(?:asswd|ython|erl|ing|s)|n(?:asm|map|c)|f(?:inger|tp)|(?:kil|mai)l|(?:xte)?rm|ls(?:of)?|telnet|uname|echo|id)\b|g(?:\+\+|cc\b))|\/(?:c(?:h(?:grp|mod|own|sh)|pp)|p(?:asswd|ython|erl|ing|s)|n(?:asm|map|c)|f(?:inger|tp)|(?:kil|mai)l|g(?:\+\+|cc)|(?:xte)?rm|ls(?:of)?|telnet|uname|echo|id)(?:[\'\"\|\;\`\-\s]|$))" \
+ "phase:2,capture,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:lowercase,ctl:auditLogParts=+E,deny,log,auditlog,status:501,msg:'System Command Injection',id:'959006',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2'"
+
+SecRule ARGS \
+ "(?:(?:[\;\|\`]\W*?\bcc|\bwget)\b|\/cc(?:[\'\"\|\;\`\-\s]|$))" \
+ "phase:2,capture,t:none,t:htmlEntityDecode,t:lowercase,ctl:auditLogParts=+E,deny,log,auditlog,status:501,msg:'System Command Injection',id:'950907',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2'"
+SecRule "REQUEST_HEADERS|XML:/*|!REQUEST_HEADERS:'/^(Cookie|Referer|X-OS-Prefs|User-Agent)$/'|REQUEST_COOKIES|REQUEST_COOKIES_NAMES" \
+ "(?:(?:[\;\|\`]\W*?\bcc|\bwget)\b|\/cc(?:[\'\"\|\;\`\-\s]|$))" \
+ "phase:2,capture,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:lowercase,ctl:auditLogParts=+E,deny,log,auditlog,status:501,msg:'System Command Injection',id:'959907',tag:'WEB_ATTACK/COMMAND_INJECTION',logdata:'%{TX.0}',severity:'2'"
+
+
+#
+# Coldfusion injection
+#
+SecRule REQUEST_FILENAME|ARGS|ARGS_NAMES "\bcf(?:usion_(?:d(?:bconnections_flush|ecrypt)|set(?:tings_refresh|odbcini)|getodbc(?:dsn|ini)|verifymail|encrypt)|_(?:(?:iscoldfusiondatasourc|getdatasourceusernam)e|setdatasource(?:password|username))|newinternal(?:adminsecurit|registr)y|admin_registry_(?:delete|set)|internaldebug)\b" \
+ "phase:2,capture,t:none,t:htmlEntityDecode,t:lowercase,ctl:auditLogParts=+E,deny,log,auditlog,status:501,msg:'Injection of Undocumented ColdFusion Tags',id:'950008',tag:'WEB_ATTACK/CF_INJECTION',logdata:'%{TX.0}',severity:'2'"
+SecRule REQUEST_HEADERS|XML:/* "\bcf(?:usion_(?:d(?:bconnections_flush|ecrypt)|set(?:tings_refresh|odbcini)|getodbc(?:dsn|ini)|verifymail|encrypt)|_(?:(?:iscoldfusiondatasourc|getdatasourceusernam)e|setdatasource(?:password|username))|newinternal(?:adminsecurit|registr)y|admin_registry_(?:delete|set)|internaldebug)\b" \
+ "phase:2,capture,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:lowercase,ctl:auditLogParts=+E,deny,log,auditlog,status:501,msg:'Injection of Undocumented ColdFusion Tags',id:'959008',tag:'WEB_ATTACK/CF_INJECTION',logdata:'%{TX.0}',severity:'2'"
+
+
+#
+# LDAP injection
+#
+SecRule REQUEST_FILENAME|ARGS|ARGS_NAMES "(?:\((?:\W*?(?:objectc(?:ategory|lass)|homedirectory|[gu]idnumber|cn)\b\W*?=|[^\w\x80-\xFF]*?[\!\&\|][^\w\x80-\xFF]*?\()|\)[^\w\x80-\xFF]*?\([^\w\x80-\xFF]*?[\!\&\|])" \
+ "phase:2,capture,t:none,t:htmlEntityDecode,t:lowercase,ctl:auditLogParts=+E,deny,log,auditlog,status:501,msg:'LDAP Injection Attack',id:'950010',tag:'WEB_ATTACK/LDAP_INJECTION',logdata:'%{TX.0}',severity:'2'"
+SecRule REQUEST_HEADERS|XML:/*|!REQUEST_HEADERS:Referer "(?:\((?:\W*?(?:objectc(?:ategory|lass)|homedirectory|[gu]idnumber|cn)\b\W*?=|[^\w\x80-\xFF]*?[\!\&\|][^\w\x80-\xFF]*?\()|\)[^\w\x80-\xFF]*?\([^\w\x80-\xFF]*?[\!\&\|])" \
+ "phase:2,capture,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:lowercase,ctl:auditLogParts=+E,deny,log,auditlog,status:501,msg:'LDAP Injection Attack',id:'959010',tag:'WEB_ATTACK/LDAP_INJECTION',logdata:'%{TX.0}',severity:'2'"
+
+
+#
+# SSI injection
+#
+SecRule REQUEST_FILENAME|ARGS|ARGS_NAMES "<!--\W*?#\W*?(?:e(?:cho|xec)|printenv|include|cmd)" \
+ "phase:2,capture,t:none,t:htmlEntityDecode,t:lowercase,ctl:auditLogParts=+E,deny,log,auditlog,status:501,msg:'SSI injection Attack',id:'950011',tag:'WEB_ATTACK/SSI_INJECTION',logdata:'%{TX.0}',severity:'2'"
+SecRule REQUEST_HEADERS|XML:/* "<!--\W*?#\W*?(?:e(?:cho|xec)|printenv|include|cmd)" \
+ "phase:2,capture,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:lowercase,ctl:auditLogParts=+E,deny,log,auditlog,status:501,msg:'SSI injection Attack',id:'959011',tag:'WEB_ATTACK/SSI_INJECTION',logdata:'%{TX.0}',severity:'2'"
+
+
+#
+# PHP injection
+#
+SecRule REQUEST_FILENAME|ARGS|ARGS_NAMES|REQUEST_HEADERS|XML:/* "@pm <?fgets move_uploaded_file $_session readfile ftp_put ftp_fget gzencode ftp_nb_put bzopen readdir $_post fopen gzread ftp_nb_fput ftp_nb_fget ftp_get $_get scandir fscanf readgzfile fread proc_open fgetc fgetss ftp_fput ftp_nb_get session_start fwrite gzwrite gzopen gzcompress" \
+ "phase:2,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:lowercase,pass,nolog,skip:1"
+SecAction pass,nolog,skipAfter:959013
+SecRule REQUEST_FILENAME|ARGS|ARGS_NAMES "(?:(?:\b(?:f(?:tp_(?:nb_)?f?(?:ge|pu)t|get(?:s?s|c)|scanf|write|open|read)|gz(?:(?:encod|writ)e|compress|open|read)|s(?:ession_start|candir)|read(?:(?:gz)?file|dir)|move_uploaded_file|(?:proc_|bz)open)|\$_(?:(?:pos|ge)t|session))\b|<\?(?!xml))" \
+ "phase:2,capture,t:none,t:htmlEntityDecode,t:lowercase,ctl:auditLogParts=+E,deny,log,auditlog,status:501,msg:'PHP Injection Attack',id:'950013',tag:'WEB_ATTACK/PHP_INJECTION',tag:'WEB_ATTACK/HTTP_RESPONSSE_SPLITTING',logdata:'%{TX.0}',severity:'2'"
+SecRule REQUEST_HEADERS|XML:/* "(?:(?:\b(?:f(?:tp_(?:nb_)?f?(?:ge|pu)t|get(?:s?s|c)|scanf|write|open|read)|gz(?:(?:encod|writ)e|compress|open|read)|s(?:ession_start|candir)|read(?:(?:gz)?file|dir)|move_uploaded_file|(?:proc_|bz)open)|\$_(?:(?:pos|ge)t|session))\b|<\?(?!xml))" \
+ "phase:2,capture,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:lowercase,ctl:auditLogParts=+E,deny,log,auditlog,status:501,msg:'PHP Injection Attack',id:'959013',tag:'WEB_ATTACK/PHP_INJECTION',tag:'WEB_ATTACK/HTTP_RESPONSSE_SPLITTING',logdata:'%{TX.0}',severity:'2'"
+
+
+#
+# UPDF XSS
+#
+SecRule REQUEST_FILENAME|ARGS|ARGS_NAMES "http:\/\/[\w\.]+?\/.*?\.pdf\b[^\x0d\x0a]*#" \
+ "phase:2,capture,t:none,t:htmlEntityDecode,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,deny,log,auditlog,status:501,msg:'Persistent Universal PDF XSS attack',id:'950018',tag:'WEB_ATTACK/UPDF_XSS',severity:'2'"
+SecRule REQUEST_HEADERS|XML:/* "http:\/\/[\w\.]+?\/.*?\.pdf\b[^\x0d\x0a]*#" \
+ "phase:2,capture,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,deny,log,auditlog,status:501,msg:'Persistent Universal PDF XSS attack',id:'959018',tag:'WEB_ATTACK/UPDF_XSS',severity:'2'"
+
+
+#
+# Email Injection
+#
+SecRule REQUEST_FILENAME|ARGS|ARGS_NAMES "[\n\r]\s*\b(?:to|b?cc)\b\s*:.*?\@" \
+ "phase:2,t:none,t:htmlEntityDecode,t:lowercase,capture,ctl:auditLogParts=+E,deny,log,auditlog,status:501,msg:'Email Injection Attack',id:'950019',logdata:'%{TX.0}',severity:'2'"
+SecRule REQUEST_HEADERS|XML:/* "[\n\r]\s*\b(?:to|b?cc)\b\s*:.*?\@" \
+ "phase:2,t:none,t:urlDecode,t:htmlEntityDecode,t:lowercase,capture,ctl:auditLogParts=+E,deny,log,auditlog,status:501,msg:'Email Injection Attack',id:'959019',logdata:'%{TX.0}',severity:'2'"
+
+
+#
+# HTTP Response Splitting
+#
+SecRule REQUEST_URI|REQUEST_HEADERS|REQUEST_HEADERS_NAMES "%0[ad]" \
+ "phase:2,t:none,t:lowercase,capture,ctl:auditLogParts=+E,deny,log,auditlog,status:400,msg:'HTTP Response Splitting Attack',id:'950910',logdata:'%{TX.0}',severity:'1'"
+SecRule REQUEST_FILENAME|ARGS|ARGS_NAMES|XML:/* "(?:\bhttp\/(?:0\.9|1\.[01])|<(?:html|meta)\b)" \
+ "phase:2,capture,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:lowercase,ctl:auditLogParts=+E,deny,log,auditlog,status:400,msg:'HTTP Response Splitting Attack',id:'950911',logdata:'%{TX.0}',severity:'1'"
+
--- /dev/null
+# ---------------------------------------------------------------
+# Core ModSecurity Rule Set ver.2.0.3
+# Copyright (C) 2006-2009 Breach Security Inc. All rights reserved.
+#
+# The ModSecuirty Core Rule Set is distributed under GPL version 2
+# Please see the enclosed LICENCE file for full details.
+# ---------------------------------------------------------------
+
+
+#
+# Comment spam is an attack against blogs, guestbooks, wikis and other types of
+# interactive web sites that accept and display hyperlinks submitted by
+# visitors. The spammers automatically post specially crafted random comments
+# which include links that point to the spammer's web site. The links
+# artificially increas the site's search engine ranking and may make the site
+# more noticable in search results.
+#
+
+SecRule &IP:SPAMMER "@eq 0" "chain,phase:1,t:none,block,nolog,auditlog,msg:'RBL Match for SPAM Source',tag:'AUTOMATION/MALICIOUS',severity:'2',skipAfter:END_RBL_CHECK"
+ SecRule REMOTE_ADDR "@rbl sbl-xbl.spamhaus.org" \
+ "t:none,setvar:'tx.msg=%{rule.msg}',setvar:tx.automation_score=+1,setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}=%{matched_var_name}=%{matched_var}',setvar:ip.spammer=1,expirevar:ip.spammer=86400"
+
+SecRule IP:SPAMMER "@eq 1" "phase:1,t:none,block,nolog,auditlog,msg:'RBL Match for SPAM Source',tag:'AUTOMATION/MALICIOUS',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.automation_score=+1,setvar:tx.anomaly_score=+20,setvar:'tx.%{rule.id}=%{matched_var_name}=%{matched_var}'"
+
+SecMarker END_RBL_CHECK
+
+SecRule REQUEST_HEADERS:User-Agent "^(?:m(?:o(?:zilla\/4\.0\+?\(|vable type)|i(?:crosoft url|ssigua)|j12bot\/v1\.0\.8|sie)|e(?:mail(?:collector| ?siphon)|collector)|(?:blogsearchbot-marti|super happy fu)n|i(?:nternet explorer|sc systems irc)|ja(?:karta commons|va(?:\/| )1\.)|c(?:ore-project\/|herrypicker)|p(?:sycheclone|ussycat|ycurl)|(?:grub crawl|omniexplor)er|a(?:utoemailspider|dwords)|w(?:innie poh|ordpress)|nut(?:scrape/|chcvs)|8484 boston project|user(?:[- ]agent:)?|l(?:ibwww-perl|wp)|di(?:amond|gger)|trackback\/|httpproxy|<sc)" \
+ "phase:2,t:none,t:lowercase,block,nolog,auditlog,status:404,msg:'Common SPAM/Email Harvester crawler',id:'958297',tag:'AUTOMATION/MALICIOUS',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.automation_score=+1,setvar:tx.anomaly_score=+10,setvar:'tx.%{rule.id}=%{matched_var_name}=%{matched_var}'"
+
+# Prequalifier. Look for <http> first
+SecRule ARGS|ARGS_NAMES "\bhttp:" "phase:2,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:compressWhiteSpace,t:lowercase,skip:1,pass,nolog,id:'999010',severity:'6'"
+
+SecAction phase:2,pass,nolog,skipAfter:END_COMMENT_SPAM
+
+ # Look for 2 ways of posting a link
+ SecRule ARGS|ARGS_NAMES "\[url\b" "phase:2,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:compressWhiteSpace,t:lowercase,chain,ctl:auditLogParts=+E,block,nolog,auditlog,status:400,msg:'Comment Spam',id:'950923',severity:'2'"
+ SecRule ARGS|ARGS_NAMES "\<a" "t:none,t:urlDecodeUni,t:htmlEntityDecode,t:compressWhiteSpace,t:lowercase,setvar:'tx.msg=%{rule.msg}',setvar:tx.automation_score=+1,setvar:tx.anomaly_score=+10,setvar:'tx.%{rule.id}=%{matched_var_name}=%{matched_var}'"
+
+ # Look for too many links in an argument (Prone to FPs)
+ SecRule ARGS|ARGS_NAMES "(http:\/.*?){4}" "phase:2,t:none,t:urlDecodeUni,t:htmlEntityDecode,t:compressWhiteSpace,t:lowercase,ctl:auditLogParts=+E,block,nolog,auditlog,status:400,msg:'Comment Spam',id:'950020',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.automation_score=+1,setvar:tx.anomaly_score=+10,setvar:'tx.%{rule.id}=%{matched_var_name}=%{matched_var}'"
+
+SecMarker END_COMMENT_SPAM
--- /dev/null
+# ---------------------------------------------------------------
+# Core ModSecurity Rule Set ver.2.0.3
+# Copyright (C) 2006-2009 Breach Security Inc. All rights reserved.
+#
+# The ModSecuirty Core Rule Set is distributed under GPL version 2
+# Please see the enclosed LICENCE file for full details.
+# ---------------------------------------------------------------
+
+
+#
+# This ruleset file contains rules that are highly prone to FPs
+#
+# When installing this ruleset, you are advised to activate ModSecurity
+# in DetectionOnly, and verify that this ruleset doesn't intercept too
+# many legit requests.
+#
+
+#
+# Directory Traversal
+#
+SecRule REQUEST_URI "(?:\x5c|(?:%(?:c(?:0%(?:9v|af)|1%1c)|2(?:5(?:2f|5c)|f)|u221[56]|1u|5c)|\/))(?:%(?:u2024|2e)|\.){2}(?:\x5c|(?:%(?:c(?:0%(?:9v|af)|1%1c)|2(?:5(?:2f|5c)|f)|u221[56]|1u|5c)|\/))" \
+ "phase:1,t:none,t:lowercase,capture,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'Path Traversal Attack',id:'950103',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:'tx.%{rule.id}=%{matched_var_name}=%{matched_var}'"
+
+# Weaker signature
+#SecRule REQUEST_FILENAME "\.\.[/\x5c]" "phase:1,t:none,t:urlDecodeUni,capture,ctl:auditLogParts=+E,block,nolog,auditlog,status:501,msg:'Path Traversal Attack',id:'950103',severity:'2',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+15,setvar:'tx.%{rule.id}=%{matched_var_name}=%{matched_var}'"
+
+
--- /dev/null
+# ---------------------------------------------------------------
+# Core ModSecurity Rule Set ver.2.0.3
+# Copyright (C) 2006-2009 Breach Security Inc. All rights reserved.
+#
+# The ModSecuirty Core Rule Set is distributed under GPL version 2
+# Please see the enclosed LICENCE file for full details.
+# ---------------------------------------------------------------
+
+
+# These rules do not have a security importance, but shows other benefits of
+# monitoring and logging HTTP transactions.
+# --
+
+SecRule REQUEST_HEADERS:User-Agent "msn(?:bot|ptc)" \
+ "phase:2,t:none,t:lowercase,nolog,auditlog,msg:'MSN robot activity',id:'910008',severity:'6'"
+
+SecRule REQUEST_HEADERS:User-Agent "\byahoo(?:-(?:mmcrawler|blogs)|! slurp)\b" \
+ "phase:2,t:none,t:lowercase,nolog,auditlog,msg:'Yahoo robot activity',id:'910007',severity:'6'"
+
+SecRule REQUEST_HEADERS:User-Agent "(?:(?:gsa-crawler \(enterprise; s4-e9lj2b82fjjaa; me\@mycompany\.com|adsbot-google \(\+http:\/\/www\.google\.com\/adsbot\.html)\)|\b(?:google(?:-sitemaps|bot)|mediapartners-google)\b)" \
+ "phase:2,t:none,t:lowercase,nolog,auditlog,msg:'Google robot activity',id:'910006',severity:'6'"
--- /dev/null
+#!/usr/bin/perl -w
+#
+# httpd-guardian - detect DoS attacks by monitoring requests
+# Apache Security, http://www.apachesecurity.net
+# Copyright (C) 2005 Ivan Ristic <ivanr@webkreator.com>
+#
+# $Id: httpd-guardian,v 1.6 2005/12/04 11:30:35 ivanr Exp $
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#
+
+# This script is designed to monitor all web server requests through
+# the piped logging mechanism. It keeps track of the number of requests
+# sent from each IP address. Request speed is calculated at 1 minute and
+# 5 minute intervals. Once a threshold is reached, httpd-guardian can
+# either emit a warning or execute a script to block the IP address.
+#
+# Error message will be sent to stderr, which means they will end up
+# in the Apache error log.
+#
+# Usage (in httpd.conf)
+# ---------------------
+#
+# Without mod_security, Apache 1.x:
+#
+# LogFormat "%V %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\" %{UNIQUE_ID}e \"-\" %T 0 \"%{modsec_message}i\" 0" guardian
+# CustomLog "|/path/to/httpd-guardian" guardian
+#
+# or without mod_security, Apache 2.x:
+#
+# LogFormat "%V %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\" %{UNIQUE_ID}e \"-\" %T %D \"%{modsec_message}i\" 0" guardian
+# CustomLog "|/path/to/httpd-guardian" guardian
+#
+# or with mod_security (better):
+#
+# SecGuardianLog "|/path/to/httpd-guardian"
+#
+# NOTE: In order for this script to be effective it must be able to
+# see all requests coming to the web server. This will not happen
+# if you are using per-virtual host logging. In such cases either
+# use the ModSecurity 1.9 SecGuardianLog directive (which was designed
+# for this very purpose).
+#
+#
+# Usage (with Spread)
+# -------------------
+#
+# 1) First you need to make sure you have Spread running on the machine
+# where you intend to run httpd-guardian on.
+#
+# 2) Then uncomment line "use Spread;" in this script, and change
+# $USE_SPREAD to "1".
+#
+# 3) The default port for Spread is 3333. Change it if you want to
+# and then start httpd-guardian. We will be looking for messages
+# in the Spread group called "httpd-guardian".
+
+# TODO Add support to ignore certain log entries based on a
+# regex applied script_name.
+#
+# TODO Warn about session hijacking.
+#
+# TODO Track ip addresses, sessions, and individual users.
+#
+# TODO Detect status code anomalies.
+#
+# TODO Track accesses to specific pages.
+#
+# TODO Open proxy detection.
+#
+# TODO Check IP addresses with blacklists (e.g.
+# http://www.spamhaus.org/XBL/).
+#
+# TODO Is there a point to keep per-vhost state?
+#
+# TODO Enhance the script to tail a log file - useful for test
+# runs, in preparation for deployment.
+#
+# TODO Can we track connections as Apache creates and destroys them?
+#
+# TODO Command-line option to support multiple log formats. E.g. common,
+# combined, vcombined, guardian.
+#
+# TODO Command-line option not to save state
+#
+
+use strict;
+use Time::Local;
+# SPREAD UNCOMMENT
+# use Spread;
+
+
+# -- Configuration----------------------------------------------------------
+
+my $USE_SPREAD = 0;
+my $SPREAD_CLIENT_NAME = "httpd-guardian";
+my $SPREAD_DAEMON = "3333";
+my $SPREAD_GROUP_NAME = "httpd-guardian";
+my $SPREAD_TIMEOUT = 1;
+
+# If defined, execute this command when a threshold is reached
+# block the IP address for one hour.
+# $PROTECT_EXEC = "/sbin/blacklist block %s 3600";
+# $PROTECT_EXEC = "/sbin/samtool -block -ip %s -dur 3600 snortsam.example.com";
+#my $PROTECT_EXEC;
+
+# For testing only:
+my $PROTECT_EXEC = "/usr/bin/logger Possible DoS Attack from %s";
+
+# Max. speed allowed, in requests per
+# second, measured over an 1-minute period
+#my $THRESHOLD_1MIN = 2; # 120 requests in a minute
+
+# For testing only:
+my $THRESHOLD_1MIN = 0.01;
+
+# Max. speed allowed, in requests per
+# second, measured over a 5-minute period
+my $THRESHOLD_5MIN = 1; # 360 requests in 5 minutes
+
+# If defined, httpd-guardian will make a copy
+# of the data it receives from Apache
+# $COPY_LOG = "";
+my $COPY_LOG;
+
+# Remove IP address data after a 10-minute inactivity
+my $STALE_INTERVAL = 400;
+
+# Where to save state (at this point only useful
+# for monitoring what the script does)
+my $SAVE_STATE_FILE = "/tmp/httpd-guardian.state";
+
+# How often to save state (in seconds).
+my $SAVE_STATE_INTERVAL = 10;
+
+my $DEBUG = 0;
+
+
+# -----------------------------------------------------------------
+
+my %months = (
+ "Jan" => 0,
+ "Feb" => 1,
+ "Mar" => 2,
+ "Apr" => 3,
+ "May" => 4,
+ "Jun" => 5,
+ "Jul" => 6,
+ "Aug" => 7,
+ "Sep" => 8,
+ "Oct" => 9,
+ "Nov" => 10,
+ "Dec" => 11
+);
+
+# -- log parsing regular expression
+
+
+# 127.0.0.1 192.168.2.11 - - [05/Jul/2005:16:56:54 +0100]
+# "GET /favicon.ico HTTP/1.1" 404 285 "-"
+# "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4"
+# - "-" 0 0 "-" 0
+
+my $logline_regex = "";
+
+# hostname
+$logline_regex .= "^(\\S+)";
+# remote host, remote username, local username
+$logline_regex .= "\\ (\\S+)\\ (\\S+)\\ (\\S+)";
+# date, time, and gmt offset
+$logline_regex .= "\\ \\[([^:]+):(\\d+:\\d+:\\d+)\\ ([^\\]]+)\\]";
+# request method + request uri + protocol (as one field)
+$logline_regex .= "\\ \"(.*)\"";
+# status, bytes out
+$logline_regex .= "\\ (\\d+)\\ (\\S+)";
+# referer, user_agent
+$logline_regex .= "\\ \"(.*)\"\\ \"(.*)\"";
+# uniqueid, session, duration, duration_msec
+$logline_regex .= "\\ (\\S+)\\ \"(.*)\"\\ (\\d+)\\ (\\d+)";
+# modsec_message, modsec_rating
+$logline_regex .= "\\ \"(.*)\"\\ (\\d+)";
+
+# the rest (always keep this part of the regex)
+$logline_regex .= "(.*)\$";
+
+my $therequest_regex = "(\\S+)\\ (.*?)\\ (\\S+)";
+
+# use strict
+my %ipaddresses = ();
+my %request;
+my $current_time;
+my $last_state_save;
+
+sub parse_logline {
+ $_ = shift;
+
+ my %request = ();
+ $request{"invalid"} = 0;
+
+ my @parsed_logline = /$logline_regex/x;
+ if (@parsed_logline == 0) {
+ return (0,0);
+ }
+
+ (
+ $request{"hostname"},
+ $request{"remote_ip"},
+ $request{"remote_username"},
+ $request{"username"},
+ $request{"date"},
+ $request{"time"},
+ $request{"gmt_offset"},
+ $request{"the_request"},
+ $request{"status"},
+ $request{"bytes_out"},
+ $request{"referer"},
+ $request{"user_agent"},
+ $request{"unique_id"},
+ $request{"session_id"},
+ $request{"duration"},
+ $request{"duration_msec"},
+ $request{"modsec_message"},
+ $request{"modsec_rating"},
+ $request{"the_rest"}
+ ) = @parsed_logline;
+
+ if ($DEBUG == 2) {
+ print "\n";
+ print "hostname = " . $request{"hostname"} . "\n";
+ print "remote_ip = " . $request{"remote_ip"} . "\n";
+ print "remote_username = " . $request{"remote_username"} . "\n";
+ print "username = " . $request{"username"} . "\n";
+ print "date = " . $request{"date"} . "\n";
+ print "time = " . $request{"time"} . "\n";
+ print "gmt_offset = " . $request{"gmt_offset"} . "\n";
+ print "the_request = " . $request{"the_request"} . "\n";
+ print "status = " . $request{"status"} . "\n";
+ print "bytes_out = " . $request{"bytes_out"} . "\n";
+ print "referer = " . $request{"referer"} . "\n";
+ print "user_agent = " . $request{"user_agent"} . "\n";
+ print "unique_id = " . $request{"unique_id"} . "\n";
+ print "session_id = " . $request{"session_id"} . "\n";
+ print "duration = " . $request{"duration"} . "\n";
+ print "duration_msec = " . $request{"duration_msec"} . "\n";
+ print "modsec_message = " . $request{"modsec_message"} . "\n";
+ print "modsec_rating = " . $request{"modsec_rating"} . "\n";
+ print "\n\n";
+ }
+
+ # parse the request line
+ $_ = $request{"the_request"};
+ my @parsed_therequest = /$therequest_regex/x;
+ if (@parsed_therequest == 0) {
+ $request{"invalid"} = "1";
+ $request{"request_method"} = "";
+ $request{"request_uri"} = "";
+ $request{"protocol"} = "";
+ } else {
+ (
+ $request{"request_method"},
+ $request{"request_uri"},
+ $request{"protocol"}
+ ) = @parsed_therequest;
+ }
+
+ if ($request{"bytes_out"} eq "-") {
+ $request{"bytes_out"} = 0;
+ }
+
+ # print "date=" . $request{"date"} . "\n";
+ (
+ $request{"time_mday"},
+ $request{"time_mon"},
+ $request{"time_year"}
+ ) = ( $request{"date"} =~ m/^(\d+)\/(\S+)\/(\d+)/x );
+
+ # print "time=" . $request{"time"} . "\n";
+ (
+ $request{"time_hour"},
+ $request{"time_min"},
+ $request{"time_sec"}
+ ) = ( $request{"time"} =~ m/(\d+):(\d+):(\d+)/x );
+
+ $request{"time_mon"} = $months{$request{"time_mon"}};
+
+ $request{"time_epoch"} = timelocal(
+ $request{"time_sec"},
+ $request{"time_min"},
+ $request{"time_hour"},
+ $request{"time_mday"},
+ $request{"time_mon"},
+ $request{"time_year"}
+ );
+
+ # print %request;
+
+ my $offset = index($request{"request_uri"}, "?");
+ if ($offset != -1) {
+ $request{"script_name"} = substr($request{"request_uri"}, 0, $offset);
+ $request{"query_string"} = substr($request{"request_uri"}, $offset + 1);
+ } else {
+ $request{"script_name"} = $request{"request_uri"};
+ $request{"query_string"} = "";
+ }
+
+ $request{"request_uri"} =~ s/\%([A-Fa-f0-9]{2})/pack('C', hex($1))/seg;
+ $request{"query_string"} =~ s/\%([A-Fa-f0-9]{2})/pack('C', hex($1))/seg;
+
+ return %request;
+}
+
+sub update_ip_address() {
+ my $ipd = $ipaddresses{$request{"remote_ip"}};
+ if (defined($$ipd{"counter"})) {
+ $$ipd{"counter"} = $$ipd{"counter"} + 1;
+
+ if ($DEBUG) {
+ print STDERR "httpd-guardian: Incrementing counter for " . $request{"remote_ip"} . " (" . $$ipd{"counter"} . ")\n";
+ }
+
+ my($exec) = 0;
+
+ # check the 1 min counter
+ if ($current_time - $$ipd{"time_1min"} > 60) {
+ # check the counters
+ my $speed = ($$ipd{"counter"} - $$ipd{"counter_1min"}) / ($current_time - $$ipd{"time_1min"});
+ if ($speed > $THRESHOLD_1MIN) {
+ print STDERR "httpd-guardian: IP address " . $ipaddresses{$request{"remote_ip"}} . " reached the 1 min threshold (speed = $speed req/sec, threshold = $THRESHOLD_1MIN req/sec)\n";
+ $exec = 1;
+ }
+
+ # reset the 1 min counter
+ $$ipd{"time_1min"} = $current_time;
+ $$ipd{"counter_1min"} = $$ipd{"counter"};
+ }
+
+ # check the 5 min counter
+ if ($current_time - $$ipd{"time_5min"} > 360) {
+ # check the counters
+ my $speed = ($$ipd{"counter"} - $$ipd{"counter_5min"}) / ($current_time - $$ipd{"time_5min"});
+ if ($speed > $THRESHOLD_5MIN) {
+ print STDERR "httpd-guardian: IP address " . $request{"remote_ip"} . " reached the 5 min threshold (speed = $speed req/sec, threshold = $THRESHOLD_5MIN req/sec)\n";
+ $exec = 1;
+ }
+
+ # reset the 5 min counter
+ $$ipd{"time_5min"} = $current_time;
+ $$ipd{"counter_5min"} = $$ipd{"counter"};
+ }
+
+ if (($exec == 1)&&(defined($PROTECT_EXEC))) {
+ my $cmd = sprintf($PROTECT_EXEC, $request{"remote_ip"});
+ print STDERR "httpd-guardian: Executing: $cmd\n";
+ system($cmd);
+ }
+
+ } else {
+ # start tracking this email address
+ my %ipd = ();
+ $ipd{"counter"} = 1;
+ $ipd{"counter_1min"} = 1;
+ $ipd{"time_1min"} = $current_time;
+ $ipd{"counter_5min"} = 1;
+ $ipd{"time_5min"} = $current_time;
+ $ipaddresses{$request{"remote_ip"}} = \%ipd;
+ }
+}
+
+sub process_log_line {
+ update_ip_address();
+}
+
+sub remove_stale_data {
+ while(my($key, $value) = each(%ipaddresses)) {
+ if ($current_time - $$value{"time_1min"} > $STALE_INTERVAL) {
+ if ($DEBUG) {
+ print STDERR "httpd-guardian: Removing key $key\n";
+ }
+ delete($ipaddresses{$key});
+ }
+ }
+}
+
+sub save_state {
+ if (!defined($SAVE_STATE_FILE)) {
+ return;
+ }
+
+ if (!defined($last_state_save)) {
+ $last_state_save = 0;
+ }
+
+ if ($current_time - $last_state_save > $SAVE_STATE_INTERVAL) {
+ open(FILE, ">$SAVE_STATE_FILE") || die("Failed to save state to $SAVE_STATE_FILE");
+ print FILE "# $current_time\n";
+ print FILE "# IP Address\x09Counter\x09\x091min (time)\x095min (time)\n";
+ while(my($key, $value) = each(%ipaddresses)) {
+ print FILE ("$key" . "\x09" . $$value{"counter"} . "\x09\x09" . $$value{"counter_1min"} . " (" . $$value{"time_1min"} . ")\x09" . $$value{"counter_5min"} . " (" . $$value{"time_5min"} . ")\n");
+ }
+ close(FILE);
+ $last_state_save = $current_time;
+ }
+}
+
+# load state from $SAVE_STATE_FILE, store the data into $ipaddresses
+sub load_state {
+ return unless ( defined $SAVE_STATE_FILE );
+ return unless ( -e $SAVE_STATE_FILE && -r $SAVE_STATE_FILE );
+ open my $fd, "<", $SAVE_STATE_FILE
+ or die "cannot open state file for reading : $SAVE_STATE_FILE : $!";
+ while (<$fd>) {
+ s/^\s+//;
+ next if /^#/;
+ #--------------------------------------------------
+ # # 1133599679
+ # # IP Address Counter 1min (time) 5min (time)
+ # 211.19.48.12 396 396 (1133599679) 395 (1133599379)
+ #--------------------------------------------------
+ my ($addr, $counter, $time1, $time5) = split /\t+/, $_; # TAB
+ my ($counter_1min, $time_1min) = split /\s+/, $time1;
+ my ($counter_5min, $time_5min) = split /\s+/, $time5;
+ $ipaddresses{$addr} = {
+ counter => $counter,
+ counter_1min => $counter_1min,
+ time_1min => chop_brace($time_1min),
+ counter_5min => $counter_5min,
+ time_5min => chop_brace($time_5min),
+ }
+ }
+ close $fd;
+}
+
+# return strings between braces
+sub chop_brace {
+ my $str = shift;
+ $str =~ /\((.*)\)/;
+ return $1;
+}
+sub process_line {
+ my $line = shift(@_);
+
+ if (defined($COPY_LOG)) {
+ print COPY_LOG_FD $line;
+ }
+
+ if ($DEBUG) {
+ print STDERR "httpd-guardian: Received: $line";
+ }
+
+ %request = parse_logline($line);
+ if (!defined($request{0})) {
+ # TODO verify IP address is in correct format
+
+ # extract the time from the log line, to allow the
+ # script to be used for batch processing too
+ $current_time = $request{"time_epoch"};
+
+ remove_stale_data();
+ process_log_line();
+ save_state();
+ } else {
+ print STDERR "Failed to parse line: " . $line;
+ }
+}
+
+# -----------------------------------
+
+load_state();
+if (defined($COPY_LOG)) {
+ open(COPY_LOG_FD, ">>$COPY_LOG") || die("Failed to open $COPY_LOG for writing");
+ # enable autoflush on the file descriptor
+ $| = 1, select $_ for select COPY_LOG_FD;
+}
+
+if ($USE_SPREAD) {
+ my($sperrno);
+ my %args;
+
+ $args{"spread_name"} = $SPREAD_DAEMON;
+ $args{"private_name"} = $SPREAD_CLIENT_NAME;
+
+ my($mbox, $privategroup) = Spread::connect(\%args);
+ if (!defined($mbox)) {
+ die "Failed to connect to Spread daemon: $sperrno\n";
+ }
+
+ Spread::join($mbox, $SPREAD_GROUP_NAME);
+
+ for(;;) {
+ my($st, $s, $g, $mt, $e, $msg);
+ while(($st, $s, $g, $mt, $e, $msg) = Spread::receive($mbox, $SPREAD_TIMEOUT)) {
+ if ((defined($st))&&($st == 2)&&(defined($msg))) {
+ process_line($msg . "\n");
+ }
+ }
+ }
+
+} else {
+ while(<STDIN>) {
+ process_line($_);
+ }
+}
+
+if (defined($COPY_LOG)) {
+ close(COPY_LOG_FD);
+}
+
--- /dev/null
+#!/usr/bin/perl
+#
+# modsec-clamscan.pl
+# ModSecurity for Apache (http://www.modsecurity.org)
+# Copyright (c) 2002-2007 Breach Security, Inc. (http://www.breach.com)
+#
+# This script is an interface between mod_security and its
+# ability to intercept files being uploaded through the
+# web server, and ClamAV
+
+# by default use the command-line version of ClamAV,
+# which is slower but more likely to work out of the
+# box
+$CLAMSCAN = "/usr/bin/clamscan";
+
+# using ClamAV in daemon mode is faster since the
+# anti-virus engine is already running, but you also
+# need to configure file permissions to allow ClamAV,
+# usually running as a user other than the one Apache
+# is running as, to access the files
+# $CLAMSCAN = "/usr/bin/clamdscan";
+
+if (@ARGV != 1) {
+ print "Usage: modsec-clamscan.pl <filename>\n";
+ exit;
+}
+
+my ($FILE) = @ARGV;
+
+$cmd = "$CLAMSCAN --stdout --disable-summary $FILE";
+$input = `$cmd`;
+$input =~ m/^(.+)/;
+$error_message = $1;
+
+$output = "0 Unable to parse clamscan output [$1]";
+
+if ($error_message =~ m/: Empty file\.?$/) {
+ $output = "1 empty file";
+}
+elsif ($error_message =~ m/: (.+) ERROR$/) {
+ $output = "0 clamscan: $1";
+}
+elsif ($error_message =~ m/: (.+) FOUND$/) {
+ $output = "0 clamscan: $1";
+}
+elsif ($error_message =~ m/: OK$/) {
+ $output = "1 clamscan: OK";
+}
+
+print "$output\n";
--- /dev/null
+#!/usr/bin/perl
+#
+# runav.pl
+# Copyright (c) 2007 Breach Security
+#
+# This script is an interface between ModSecurity and its
+# ability to intercept files being uploaded through the
+# web server, and ClamAV
+
+
+$CLAMSCAN = "clamscan";
+
+if ($#ARGV != 0) {
+ print "Usage: modsec-clamscan.pl <filename>\n";
+ exit;
+}
+
+my ($FILE) = shift @ARGV;
+
+$cmd = "$CLAMSCAN --stdout --disable-summary $FILE";
+$input = `$cmd`;
+$input =~ m/^(.+)/;
+$error_message = $1;
+
+$output = "0 Unable to parse clamscan output [$1]";
+
+if ($error_message =~ m/: Empty file\.?$/) {
+ $output = "1 empty file";
+}
+elsif ($error_message =~ m/: (.+) ERROR$/) {
+ $output = "0 clamscan: $1";
+}
+elsif ($error_message =~ m/: (.+) FOUND$/) {
+ $output = "0 clamscan: $1";
+}
+elsif ($error_message =~ m/: OK$/) {
+ $output = "1 clamscan: OK";
+}
+
+print "$output\n";
\ No newline at end of file
--- /dev/null
+These tools are built during the ModSecurity configure process run under the
+apache2 directory. To use them you will first need to run configure under
+the apache2 directory:
+
+./configure [any options]
+
--- /dev/null
+# This is an example configuration to be used with ruleset-updator.pl -c
+
+# The repository URI.
+RepositoryURI http://username:password@www.example.tld/repository/
+
+# Where to download the rulesets to
+LocalRepository /path/to/repository
+
+# Where to unpack the rulesets (if Unpack is true)
+LocalRules /path/to/repository
+
+# What version (or version prefix) to use
+#Version 1.5
+
+# Should we unpack the ruleset to LocalRules?
+Unpack True
+
+# Email update notifications
+#NotifyEmail "modsec-admin@example.tld, someone@example.tld"
+#NotifyEmailFrom "ModSec Rules Updater <modsec-updater@example.tld>"
+
+# Output lots of debugging info?
+Debug False
--- /dev/null
+#!@PERL@
+#
+# Fetches the latest ModSecurity Ruleset
+#
+
+use strict;
+use Sys::Hostname;
+use LWP::UserAgent ();
+use LWP::Debug qw(-);
+use URI ();
+use HTTP::Date ();
+use Cwd qw(getcwd);
+use Getopt::Std;
+
+my $VERSION = "0.0.1";
+my($SCRIPT) = ($0 =~ m/([^\/\\]+)$/);
+my $CRLFRE = qr/\015?\012/;
+my $HOST = Sys::Hostname::hostname();
+my $UNZIP = [qw(unzip -a)];
+my $SENDMAIL = [qw(/usr/lib/sendmail -oi -t)];
+my $HAVE_GNUPG = 0;
+my %PREFIX_MAP = (
+ -dev => 0,
+ -rc => 1,
+ "" => 9,
+);
+my %GPG_TRUST = ();
+my $REQUIRED_SIG_TRUST;
+
+eval "use GnuPG qw(:trust)";
+if ($@) {
+ warn "Could not load GnuPG module - cannot verify ruleset signatures\n";
+}
+else {
+ $HAVE_GNUPG = 1;
+ %GPG_TRUST = (
+ &TRUST_UNDEFINED => "not",
+ &TRUST_NEVER => "not",
+ &TRUST_MARGINAL => "marginally",
+ &TRUST_FULLY => "fully",
+ &TRUST_ULTIMATE => "ultimatly",
+ );
+ $REQUIRED_SIG_TRUST = &TRUST_FULLY;
+}
+
+################################################################################
+################################################################################
+
+my @fetched = ();
+my %opt = ();
+getopts('c:r:p:s:v:t:e:f:EuS:D:R:U:F:ldh', \%opt);
+
+usage(1) if(defined $opt{h});
+usage(1) if(@ARGV > 1);
+
+# Make sure we have an action
+if (! grep { defined } @opt{qw(S D R U F l)}) {
+ usage(1, "Action required.");
+}
+
+# Merge config with commandline opts
+if ($opt{c}) {
+ %opt = parse_config($opt{c}, \%opt);
+}
+
+LWP::Debug::level("+") if ($opt{d});
+
+# Make the version into a regex
+if (defined $opt{v}) {
+ my($a,$b,$c,$d) = ($opt{v} =~ m/^(\d+)\.?(\d+)?\.?(\d+)?(?:-(\D+\d+$)|($))/);
+ if (defined $d) {
+ (my $key = $d) =~ s/^(\D+)\d+$/-$1/;
+ unless (exists $PREFIX_MAP{$key}) {
+ usage(1, "Invalid version (bad suffix \"$d\"): $opt{v}");
+ }
+ $opt{v} = qr/^$a\.$b\.$c-$d$/;
+ }
+ elsif (defined $c) {
+ $opt{v} = qr/^$a\.$b\.$c(?:-|$)/;
+ }
+ elsif (defined $b) {
+ $opt{v} = qr/^$a\.$b\./;
+ }
+ elsif (defined $a) {
+ $opt{v} = qr/^$a\./;
+ }
+ else {
+ usage(1, "Invalid version: $opt{v}");
+ }
+ if ($opt{d}) {
+ print STDERR "Using version regex: $opt{v}\n";
+ }
+}
+else {
+ $opt{v} = qr/^/;
+}
+
+# Remove trailing slashes from uri and path
+$opt{r} =~ s/\/+$//;
+$opt{p} =~ s/\/+$//;
+
+# Required opts
+usage(1, "Repository (-r) required.") unless(defined $opt{r});
+usage(1, "Local path (-p) required.") unless(defined $opt{p} or defined $opt{l});
+
+my $ua = LWP::UserAgent->new(
+ agent => "ModSecurity Updator/$VERSION",
+ keep_alive => 1,
+ env_proxy => 1,
+ max_redirect => 5,
+ requests_redirectable => [qw(GET HEAD)],
+ timeout => ($opt{t} || 600),
+);
+
+sub usage {
+ my $rc = defined($$_[0]) ? $_[0] : 0;
+ my $msg = defined($_[1]) ? "\n$_[1]\n\n" : "";
+
+ print STDERR << "EOT";
+${msg}Usage: $SCRIPT [-c config_file] [[options] [action]
+
+ Options (commandline will override config file):
+ -r uri RepositoryURI Repository URI.
+ -p path LocalRepository Local repository path to use as base for downloads.
+ -s path LocalRules Local rules base path to use for unpacking.
+ -v text Version Full/partial version (EX: 1, 1.5, 1.5.2, 1.5.2-dev3)
+ -t secs Timeout Timeout for fetching data in seconds (default 600).
+ -e addr NotifyEmail Notify via email on update (comma separated list).
+ -f addr NotifyEmailFrom From address for notification email.
+ -u Unpack Unpack into LocalRules/version path.
+ -d Debug Print out lots of debugging.
+
+ Actions:
+ -S name Fetch the latest stable ruleset, "name"
+ -D name Fetch the latest development ruleset, "name"
+ -R name Fetch the latest release candidate ruleset, "name"
+ -U name Fetch the latest unstable (non-stable) ruleset, "name"
+ -F name Fetch the latest ruleset, "name"
+ -l Print listing of what is available
+
+ Misc:
+ -c Specify a config file for options.
+ -h This help
+
+Examples:
+
+# Get a list of what the repository contains:
+$SCRIPT -rhttp://host/repo/ -l
+
+# Get a partial list of versions 1.5.x:
+$SCRIPT -rhttp://host/repo/ -v1.5 -l
+
+# Get the latest stable version of "breach_ModSecurityCoreRules":
+$SCRIPT -rhttp://host/repo/ -p/my/repo -Sbreach_ModSecurityCoreRules
+
+# Get the latest stable 1.5 release of "breach_ModSecurityCoreRules":
+$SCRIPT -rhttp://host/repo/ -p/my/repo -v1.5 -Sbreach_ModSecurityCoreRules
+EOT
+ exit $rc;
+}
+
+sub sort_versions {
+ (my $A = $a) =~ s/^(\d+)\.(\d+)\.(\d+)(-[^-\d]+|)(\d*)$/sprintf("%03d%03d%03d%03d%03d", $1, $2, $3, $PREFIX_MAP{$4}, $5)/e;
+ (my $B = $b) =~ s/^(\d+)\.(\d+)\.(\d+)(-[^-\d]+|)(\d*)$/sprintf("%03d%03d%03d%03d%03d", $1, $2, $3, $PREFIX_MAP{$4}, $5)/e;
+ return $A cmp $B;
+}
+
+sub parse_config {
+ my($file,$clo) = @_;
+ my %cfg = ();
+
+ print STDERR "Parsing config: $file\n" if ($opt{d});
+ open(CFG, "<$file") or die "Failed to open config \"$file\": $!\n";
+ while(<CFG>) {
+ # Skip comments and empty lines
+ next if (/^\s*(?:#|$)/);
+
+ # Parse
+ chomp;
+ my($var,$q1,$val,$q2) = (m/^\s*(\S+)\s+(['"]?)(.*)(\2)\s*$/);
+
+ # Fixup values
+ $var = lc($var);
+ if ($val =~ m/^(?:true|on)$/i) { $val = 1 };
+ if ($val =~ m/^(?:false|off)$/i) { $val = 0 };
+
+ # Set opts
+ if ($var eq "repositoryuri") { $cfg{r} = $val }
+ elsif ($var eq "localrepository") { $cfg{p} = $val }
+ elsif ($var eq "localrules") { $cfg{s} = $val }
+ elsif ($var eq "version") { $cfg{v} = $val }
+ elsif ($var eq "timeout") { $cfg{t} = $val }
+ elsif ($var eq "notifyemail") { $cfg{e} = $val }
+ elsif ($var eq "notifyemailfrom") { $cfg{f} = $val }
+ elsif ($var eq "notifyemaildiff") { $cfg{E} = $val }
+ elsif ($var eq "unpack") { $cfg{u} = $val }
+ elsif ($var eq "debug") { $cfg{d} = $val }
+ else { die "Invalid config directive: $var\n" }
+ }
+ close CFG;
+
+ my($k, $v);
+ while (($k, $v) = each %{$clo || {}}) {
+ $cfg{$k} = $v if (defined $v);
+ }
+
+ return %cfg;
+}
+
+sub repository_dump {
+ my @replist = repository_listing();
+
+ print STDERR "\nRepository: $opt{r}\n\n";
+ unless (@replist) {
+ print STDERR "No matching entries.\n";
+ return;
+ }
+
+ for my $repo (@replist) {
+ print "$repo {\n";
+ my @versions = ruleset_available_versions($repo);
+ for my $version (@versions) {
+ if ($version =~ m/$opt{v}/) {
+ printf "%15s: %s_%s.zip\n", $version, $repo, $version;
+ }
+ elsif ($opt{d}) {
+ print STDERR "Skipping version: $version\n";
+ }
+ }
+ print "}\n";
+ }
+}
+
+sub repository_listing {
+ my $res = $ua->get("$opt{r}/.listing");
+ unless ($res->is_success()) {
+ die "Failed to get repository listing \"$opt{r}/.listing\": ".$res->status_line()."\n";
+ }
+ return grep(/\S/, split(/$CRLFRE/, $res->content)) ;
+}
+
+sub ruleset_listing {
+ my $res = $ua->get("$opt{r}/$_[0]/.listing");
+ unless ($res->is_success()) {
+ die "Failed to get ruleset listing \"$opt{r}/$_[0]/.listing\": ".$res->status_line()."\n";
+ }
+ return grep(/\S/, split(/$CRLFRE/, $res->content)) ;
+}
+
+sub ruleset_available_versions {
+ return sort sort_versions map { m/_([^_]+)\.zip.*$/; $1 } ruleset_listing($_[0]);
+}
+
+sub ruleset_fetch {
+ my($repo, $version) = @_;
+
+ # Create paths
+ if (! -e "$opt{p}" ) {
+ mkdir "$opt{p}" or die "Failed to create \"$opt{p}\": $!\n";
+ }
+ if (! -e "$opt{p}/$repo" ) {
+ mkdir "$opt{p}/$repo" or die "Failed to create \"$opt{p}/$repo\": $!\n";
+ }
+
+ my $fn = "${repo}_$version.zip";
+ my $ruleset = "$repo/$fn";
+ my $ruleset_sig = "$repo/$fn.sig";
+
+ if (-e "$opt{p}/$ruleset") {
+ die "Refused to overwrite ruleset \"$opt{p}/$ruleset\".\n";
+ }
+
+ # Fetch the ruleset
+ print STDERR "Fetching: $ruleset ...\n";
+ my $res = $ua->get(
+ "$opt{r}/$ruleset",
+ ":content_file" => "$opt{p}/$ruleset",
+ );
+ die "Failed to retrieve ruleset $ruleset: ".$res->status_line()."\n" unless ($res->is_success());
+
+ # Fetch the ruleset signature
+ if (-e "$opt{p}/$ruleset_sig") {
+ die "Refused to overwrite ruleset signature \"$opt{p}/$ruleset_sig\".\n";
+ }
+ $res = $ua->get(
+ "$opt{r}/$ruleset_sig",
+ ":content_file" => "$opt{p}/$ruleset_sig",
+ );
+
+ # Verify the signature if we can
+ if ($HAVE_GNUPG) {
+ die "Failed to retrieve ruleset signature $ruleset_sig: ".$res->status_line()."\n" unless ($res->is_success());
+
+ ruleset_verifysig("$opt{p}/$ruleset", "$opt{p}/$ruleset_sig");
+ }
+ push @fetched, [$repo, $version, $ruleset, undef];
+}
+
+sub ruleset_unpack {
+ my($repo, $version, $ruleset) = @{ $_[0] || [] };
+ my $fn = "$opt{p}/$ruleset";
+
+ if (! -e "$fn" ) {
+ die "Internal Error: No ruleset to unpack - \"$fn\"\n";
+ }
+
+ # Create paths
+ if (! -e "$opt{s}" ) {
+ mkdir "$opt{s}" or die "Failed to create \"$opt{p}\": $!\n";
+ }
+ if (! -e "$opt{s}/$repo" ) {
+ mkdir "$opt{s}/$repo" or die "Failed to create \"$opt{p}/$repo\": $!\n";
+ }
+ if (! -e "$opt{s}/$repo/$version" ) {
+ mkdir "$opt{s}/$repo/$version" or die "Failed to create \"$opt{p}/$repo/$version\": $!\n";
+ }
+ else {
+ die "Refused to overwrite previously unpacked \"$opt{s}/$repo/$version\".\n";
+ }
+
+ # TODO: Verify sig
+
+ my $pwd = getcwd();
+ my $unpackdir = "$opt{s}/$repo/$version";
+ chdir "$unpackdir";
+ if ($@) {
+ my $err = $!;
+ chdir $pwd;
+ die "Failed to chdir to \"$unpackdir\": $err\n";
+ }
+ undef $!;
+ system(@$UNZIP, $fn);
+ if ($? != 0) {
+ my $err = $!;
+ chdir $pwd;
+ die "Failed to unpack \"$unpackdir\"".($err?": $err":".")."\n";
+ }
+ chdir $pwd;
+
+ # Add where we unpacked it
+ $_->[3] = $unpackdir;
+
+ return 0;
+}
+
+sub ruleset_fetch_latest {
+ my($repo, $type) = @_;
+ my @versions = ruleset_available_versions($repo);
+ my $verre = defined($opt{v}) ? qr/^$opt{v}/ : qr/^/;
+ my $typere = undef;
+
+ # Figure out what to look for
+ if (defined($type) and $type ne "") {
+ if ($type eq "UNSTABLE") {
+ $typere = qr/\d-\D+\d+$/;
+ }
+ else {
+ $typere = qr/\d-$type\d+$/;
+ }
+ }
+ elsif (defined($type)) {
+ qr/\.\d+$/;
+ }
+
+ while (@versions) {
+ my $last = pop(@versions);
+ # Check REs on version
+ if ($last =~ m/$opt{v}/ and (!defined($typere) || $last =~ m/$typere/)) {
+ return ruleset_fetch($repo, $last);
+ }
+ if ($opt{d}) {
+ print STDERR "Skipping version: $last\n";
+ }
+ }
+
+ die "No $type ruleset found.\n";
+}
+
+sub notify_email {
+ my $version_text = join("\n", map { "$_->[0] v$_->[1]".(defined($_->[3])?": $_->[3]":"") } @_);
+ my $from = $opt{f} ? "From: $opt{f}\n" : "";
+ my $body = << "EOT";
+ModSecurity rulesets updated and ready to install on host $HOST:
+
+$version_text
+
+ModSecurity - http://www.modsecurity.org/
+EOT
+
+ # TODO: Diffs
+
+ open(SM, "|-", @$SENDMAIL) or die "Failed to send mail: $!\n";
+ print STDERR "Sending notification email to: $opt{e}\n";
+ print SM << "EOT";
+${from}To: $opt{e}
+Subject: [$HOST] ModSecurity Ruleset Update Notification
+
+$body
+EOT
+ close SM;
+}
+
+sub ruleset_verifysig {
+ my($fn, $sigfn) = @_;
+
+ print STDERR "Verifying \"$fn\" with signature \"$sigfn\"\n";
+ my $gpg = new GnuPG();
+ my $sig = eval { $gpg->verify( signature => $sigfn, file => $fn ) };
+ if (defined $sig) {
+ print STDERR sig2str($sig)."\n";
+ }
+ if (!defined($sig)) {
+ die "Signature validation failed.\n";
+ }
+ if ( $sig->{trust} < $REQUIRED_SIG_TRUST ) {
+ die "Signature is not trusted ".$GPG_TRUST{$REQUIRED_SIG_TRUST}.".\n";
+ }
+
+ return;
+}
+
+sub sig2str {
+ my %sig = %{ $_[0] || {} };
+ "Signature made ".localtime($sig{timestamp})." by $sig{user} (ID: $sig{keyid}) and is $GPG_TRUST{$sig{trust}} trusted.";
+}
+
+################################################################################
+################################################################################
+
+# List what is there
+if ($opt{l}) { repository_dump(); exit 0 }
+# Latest stable
+elsif (defined($opt{S})) { ruleset_fetch_latest($opt{S}, "") }
+# Latest development
+elsif (defined($opt{D})) { ruleset_fetch_latest($opt{D}, "dev") }
+# Latest release candidate
+elsif (defined($opt{R})) { ruleset_fetch_latest($opt{R}, "rc") }
+# Latest unstable
+elsif (defined($opt{U})) { ruleset_fetch_latest($opt{U}, "UNSTABLE") }
+# Latest (any type)
+elsif (defined($opt{F})) { ruleset_fetch_latest($opt{F}, undef) }
+
+# Unpack
+if ($opt{u}) {
+ if (! defined $opt{s} ) { usage(1, "LocalRules is required for unpacking.") }
+ for (@fetched) {
+ ruleset_unpack($_);
+ }
+}
+
+# Unpack
+if ($opt{e}) {
+ notify_email(@fetched);
+}