Skip to content

Commit 0466a5a

Browse files
martinhsvzimmerle
authored andcommitted
Produce not-supported error for ctl:forceRequestBodyVariable, ctl:auditEngine
1 parent 01e45e8 commit 0466a5a

File tree

3 files changed

+23
-20
lines changed

3 files changed

+23
-20
lines changed

CHANGES

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
v3.x.y - YYYY-MMM-DD (to be released)
22
-------------------------------------
33

4+
- Produce not-supported error for ctl:forceRequestBodyVariable
5+
and ctl:auditEngine
6+
[#2376 - @WGH-, @martinhsv]
47
- Implement id ranges for ctl:ruleRemoveTargetById
58
[#2110 - @j0k2r, @martinhsv]
69
- Removed unnecessary while processing the transformations.

src/parser/seclang-parser.cc

+10-10
Original file line numberDiff line numberDiff line change
@@ -4827,26 +4827,26 @@ namespace yy {
48274827
case 340: // act: "ACTION_CTL_AUDIT_ENGINE" "CONFIG_VALUE_ON"
48284828
#line 2628 "seclang-parser.yy"
48294829
{
4830-
//ACTION_NOT_SUPPORTED("CtlAuditEngine", @0);
4831-
ACTION_CONTAINER(yylhs.value.as < std::unique_ptr<actions::Action> > (), new actions::Action(yystack_[1].value.as < std::string > ()));
4830+
ACTION_NOT_SUPPORTED("CtlAuditEngine", yystack_[2].location);
4831+
//ACTION_CONTAINER($$, new actions::Action($1));
48324832
}
48334833
#line 4834 "seclang-parser.cc"
48344834
break;
48354835

48364836
case 341: // act: "ACTION_CTL_AUDIT_ENGINE" "CONFIG_VALUE_OFF"
48374837
#line 2633 "seclang-parser.yy"
48384838
{
4839-
//ACTION_NOT_SUPPORTED("CtlAuditEngine", @0);
4840-
ACTION_CONTAINER(yylhs.value.as < std::unique_ptr<actions::Action> > (), new actions::Action(yystack_[1].value.as < std::string > ()));
4839+
ACTION_NOT_SUPPORTED("CtlAuditEngine", yystack_[2].location);
4840+
//ACTION_CONTAINER($$, new actions::Action($1));
48414841
}
48424842
#line 4843 "seclang-parser.cc"
48434843
break;
48444844

48454845
case 342: // act: "ACTION_CTL_AUDIT_ENGINE" "CONFIG_VALUE_RELEVANT_ONLY"
48464846
#line 2638 "seclang-parser.yy"
48474847
{
4848-
//ACTION_NOT_SUPPORTED("CtlAuditEngine", @0);
4849-
ACTION_CONTAINER(yylhs.value.as < std::unique_ptr<actions::Action> > (), new actions::Action(yystack_[1].value.as < std::string > ()));
4848+
ACTION_NOT_SUPPORTED("CtlAuditEngine", yystack_[2].location);
4849+
//ACTION_CONTAINER($$, new actions::Action($1));
48504850
}
48514851
#line 4852 "seclang-parser.cc"
48524852
break;
@@ -4886,17 +4886,17 @@ namespace yy {
48864886
case 347: // act: "ACTION_CTL_FORCE_REQ_BODY_VAR" "CONFIG_VALUE_ON"
48874887
#line 2659 "seclang-parser.yy"
48884888
{
4889-
//ACTION_NOT_SUPPORTED("CtlForceReequestBody", @0);
4890-
ACTION_CONTAINER(yylhs.value.as < std::unique_ptr<actions::Action> > (), new actions::Action(yystack_[1].value.as < std::string > ()));
4889+
ACTION_NOT_SUPPORTED("CtlForceRequestBodyVariable", yystack_[2].location);
4890+
//ACTION_CONTAINER($$, new actions::Action($1));
48914891
}
48924892
#line 4893 "seclang-parser.cc"
48934893
break;
48944894

48954895
case 348: // act: "ACTION_CTL_FORCE_REQ_BODY_VAR" "CONFIG_VALUE_OFF"
48964896
#line 2664 "seclang-parser.yy"
48974897
{
4898-
//ACTION_NOT_SUPPORTED("CtlForceReequestBody", @0);
4899-
ACTION_CONTAINER(yylhs.value.as < std::unique_ptr<actions::Action> > (), new actions::Action(yystack_[1].value.as < std::string > ()));
4898+
ACTION_NOT_SUPPORTED("CtlForceRequestBodyVariable", yystack_[2].location);
4899+
//ACTION_CONTAINER($$, new actions::Action($1));
49004900
}
49014901
#line 4902 "seclang-parser.cc"
49024902
break;

src/parser/seclang-parser.yy

+10-10
Original file line numberDiff line numberDiff line change
@@ -2626,18 +2626,18 @@ act:
26262626
}
26272627
| ACTION_CTL_AUDIT_ENGINE CONFIG_VALUE_ON
26282628
{
2629-
//ACTION_NOT_SUPPORTED("CtlAuditEngine", @0);
2630-
ACTION_CONTAINER($$, new actions::Action($1));
2629+
ACTION_NOT_SUPPORTED("CtlAuditEngine", @0);
2630+
//ACTION_CONTAINER($$, new actions::Action($1));
26312631
}
26322632
| ACTION_CTL_AUDIT_ENGINE CONFIG_VALUE_OFF
26332633
{
2634-
//ACTION_NOT_SUPPORTED("CtlAuditEngine", @0);
2635-
ACTION_CONTAINER($$, new actions::Action($1));
2634+
ACTION_NOT_SUPPORTED("CtlAuditEngine", @0);
2635+
//ACTION_CONTAINER($$, new actions::Action($1));
26362636
}
26372637
| ACTION_CTL_AUDIT_ENGINE CONFIG_VALUE_RELEVANT_ONLY
26382638
{
2639-
//ACTION_NOT_SUPPORTED("CtlAuditEngine", @0);
2640-
ACTION_CONTAINER($$, new actions::Action($1));
2639+
ACTION_NOT_SUPPORTED("CtlAuditEngine", @0);
2640+
//ACTION_CONTAINER($$, new actions::Action($1));
26412641
}
26422642
| ACTION_CTL_AUDIT_LOG_PARTS
26432643
{
@@ -2657,13 +2657,13 @@ act:
26572657
}
26582658
| ACTION_CTL_FORCE_REQ_BODY_VAR CONFIG_VALUE_ON
26592659
{
2660-
//ACTION_NOT_SUPPORTED("CtlForceReequestBody", @0);
2661-
ACTION_CONTAINER($$, new actions::Action($1));
2660+
ACTION_NOT_SUPPORTED("CtlForceRequestBodyVariable", @0);
2661+
//ACTION_CONTAINER($$, new actions::Action($1));
26622662
}
26632663
| ACTION_CTL_FORCE_REQ_BODY_VAR CONFIG_VALUE_OFF
26642664
{
2665-
//ACTION_NOT_SUPPORTED("CtlForceReequestBody", @0);
2666-
ACTION_CONTAINER($$, new actions::Action($1));
2665+
ACTION_NOT_SUPPORTED("CtlForceRequestBodyVariable", @0);
2666+
//ACTION_CONTAINER($$, new actions::Action($1));
26672667
}
26682668
| ACTION_CTL_REQUEST_BODY_ACCESS CONFIG_VALUE_ON
26692669
{

0 commit comments

Comments
 (0)