mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 03:34:29 +03:00
Add in verifyCC operator from mod_security2_op_verifyCC.c. See #69.
This still needs to be fixed.
This commit is contained in:
@@ -4981,6 +4981,23 @@ SecRule XML "<emphasis>@validateSchema /path/to/apache2/conf/xml.xsd</emphasis>,
|
||||
</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>
|
||||
|
||||
<section>
|
||||
<title><literal>within</literal></title>
|
||||
|
||||
|
Reference in New Issue
Block a user