Adds new operator to check for data leakage of Austrian social security number

This commit is contained in:
Rufus125
2019-03-27 15:14:57 +01:00
committed by Felipe Zimmerle
parent 6d266fae85
commit 86ce479b59
11 changed files with 7376 additions and 7105 deletions

View File

@@ -143,6 +143,7 @@ class Driver;
#include "src/operators/verify_cc.h"
#include "src/operators/verify_cpf.h"
#include "src/operators/verify_ssn.h"
#include "src/operators/verify_svnr.h"
#include "src/operators/within.h"
@@ -466,6 +467,7 @@ using namespace modsecurity::operators;
OPERATOR_VERIFY_CC "OPERATOR_VERIFY_CC"
OPERATOR_VERIFY_CPF "OPERATOR_VERIFY_CPF"
OPERATOR_VERIFY_SSN "OPERATOR_VERIFY_SSN"
OPERATOR_VERIFY_SVNR "OPERATOR_VERIFY_SVNR"
OPERATOR_WITHIN "OPERATOR_WITHIN"
CONFIG_DIR_AUDIT_LOG_FMT
@@ -960,6 +962,10 @@ op_before_init:
{
OPERATOR_CONTAINER($$, new operators::VerifySSN(std::move($2)));
}
| OPERATOR_VERIFY_SVNR run_time_string
{
OPERATOR_CONTAINER($$, new operators::VerifySVNR(std::move($2)));
}
| OPERATOR_GSB_LOOKUP run_time_string
{
/* $$ = new operators::GsbLookup($1); */