Produce not-supported error for ctl:forceRequestBodyVariable, ctl:auditEngine

This commit is contained in:
martinhsv 2020-11-05 13:56:38 -08:00 committed by Felipe Zimmerle
parent 0396e89619
commit 9d398d8144
No known key found for this signature in database
GPG Key ID: E6DFB08CE8B11277
3 changed files with 23 additions and 20 deletions

View File

@ -1,6 +1,9 @@
v3.x.y - YYYY-MMM-DD (to be released)
-------------------------------------
- Produce not-supported error for ctl:forceRequestBodyVariable
and ctl:auditEngine
[#2376 - @WGH-, @martinhsv]
- Implement id ranges for ctl:ruleRemoveTargetById
[#2110 - @j0k2r, @martinhsv]
- Removed unnecessary while processing the transformations.

View File

@ -4827,8 +4827,8 @@ namespace yy {
case 340: // act: "ACTION_CTL_AUDIT_ENGINE" "CONFIG_VALUE_ON"
#line 2628 "seclang-parser.yy"
{
//ACTION_NOT_SUPPORTED("CtlAuditEngine", @0);
ACTION_CONTAINER(yylhs.value.as < std::unique_ptr<actions::Action> > (), new actions::Action(yystack_[1].value.as < std::string > ()));
ACTION_NOT_SUPPORTED("CtlAuditEngine", yystack_[2].location);
//ACTION_CONTAINER($$, new actions::Action($1));
}
#line 4834 "seclang-parser.cc"
break;
@ -4836,8 +4836,8 @@ namespace yy {
case 341: // act: "ACTION_CTL_AUDIT_ENGINE" "CONFIG_VALUE_OFF"
#line 2633 "seclang-parser.yy"
{
//ACTION_NOT_SUPPORTED("CtlAuditEngine", @0);
ACTION_CONTAINER(yylhs.value.as < std::unique_ptr<actions::Action> > (), new actions::Action(yystack_[1].value.as < std::string > ()));
ACTION_NOT_SUPPORTED("CtlAuditEngine", yystack_[2].location);
//ACTION_CONTAINER($$, new actions::Action($1));
}
#line 4843 "seclang-parser.cc"
break;
@ -4845,8 +4845,8 @@ namespace yy {
case 342: // act: "ACTION_CTL_AUDIT_ENGINE" "CONFIG_VALUE_RELEVANT_ONLY"
#line 2638 "seclang-parser.yy"
{
//ACTION_NOT_SUPPORTED("CtlAuditEngine", @0);
ACTION_CONTAINER(yylhs.value.as < std::unique_ptr<actions::Action> > (), new actions::Action(yystack_[1].value.as < std::string > ()));
ACTION_NOT_SUPPORTED("CtlAuditEngine", yystack_[2].location);
//ACTION_CONTAINER($$, new actions::Action($1));
}
#line 4852 "seclang-parser.cc"
break;
@ -4886,8 +4886,8 @@ namespace yy {
case 347: // act: "ACTION_CTL_FORCE_REQ_BODY_VAR" "CONFIG_VALUE_ON"
#line 2659 "seclang-parser.yy"
{
//ACTION_NOT_SUPPORTED("CtlForceReequestBody", @0);
ACTION_CONTAINER(yylhs.value.as < std::unique_ptr<actions::Action> > (), new actions::Action(yystack_[1].value.as < std::string > ()));
ACTION_NOT_SUPPORTED("CtlForceRequestBodyVariable", yystack_[2].location);
//ACTION_CONTAINER($$, new actions::Action($1));
}
#line 4893 "seclang-parser.cc"
break;
@ -4895,8 +4895,8 @@ namespace yy {
case 348: // act: "ACTION_CTL_FORCE_REQ_BODY_VAR" "CONFIG_VALUE_OFF"
#line 2664 "seclang-parser.yy"
{
//ACTION_NOT_SUPPORTED("CtlForceReequestBody", @0);
ACTION_CONTAINER(yylhs.value.as < std::unique_ptr<actions::Action> > (), new actions::Action(yystack_[1].value.as < std::string > ()));
ACTION_NOT_SUPPORTED("CtlForceRequestBodyVariable", yystack_[2].location);
//ACTION_CONTAINER($$, new actions::Action($1));
}
#line 4902 "seclang-parser.cc"
break;

View File

@ -2626,18 +2626,18 @@ act:
}
| ACTION_CTL_AUDIT_ENGINE CONFIG_VALUE_ON
{
//ACTION_NOT_SUPPORTED("CtlAuditEngine", @0);
ACTION_CONTAINER($$, new actions::Action($1));
ACTION_NOT_SUPPORTED("CtlAuditEngine", @0);
//ACTION_CONTAINER($$, new actions::Action($1));
}
| ACTION_CTL_AUDIT_ENGINE CONFIG_VALUE_OFF
{
//ACTION_NOT_SUPPORTED("CtlAuditEngine", @0);
ACTION_CONTAINER($$, new actions::Action($1));
ACTION_NOT_SUPPORTED("CtlAuditEngine", @0);
//ACTION_CONTAINER($$, new actions::Action($1));
}
| ACTION_CTL_AUDIT_ENGINE CONFIG_VALUE_RELEVANT_ONLY
{
//ACTION_NOT_SUPPORTED("CtlAuditEngine", @0);
ACTION_CONTAINER($$, new actions::Action($1));
ACTION_NOT_SUPPORTED("CtlAuditEngine", @0);
//ACTION_CONTAINER($$, new actions::Action($1));
}
| ACTION_CTL_AUDIT_LOG_PARTS
{
@ -2657,13 +2657,13 @@ act:
}
| ACTION_CTL_FORCE_REQ_BODY_VAR CONFIG_VALUE_ON
{
//ACTION_NOT_SUPPORTED("CtlForceReequestBody", @0);
ACTION_CONTAINER($$, new actions::Action($1));
ACTION_NOT_SUPPORTED("CtlForceRequestBodyVariable", @0);
//ACTION_CONTAINER($$, new actions::Action($1));
}
| ACTION_CTL_FORCE_REQ_BODY_VAR CONFIG_VALUE_OFF
{
//ACTION_NOT_SUPPORTED("CtlForceReequestBody", @0);
ACTION_CONTAINER($$, new actions::Action($1));
ACTION_NOT_SUPPORTED("CtlForceRequestBodyVariable", @0);
//ACTION_CONTAINER($$, new actions::Action($1));
}
| ACTION_CTL_REQUEST_BODY_ACCESS CONFIG_VALUE_ON
{