[ https://issues.apache.org/jira/browse/WW-5340?focusedWorklogId=882065&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-882065 ]
ASF GitHub Bot logged work on WW-5340: -------------------------------------- Author: ASF GitHub Bot Created on: 27/Sep/23 05:53 Start Date: 27/Sep/23 05:53 Worklog Time Spent: 10m Work Description: kusalk commented on code in PR #747: URL: https://github.com/apache/struts/pull/747#discussion_r1338075370 ########## core/src/main/java/com/opensymphony/xwork2/ognl/OgnlGuard.java: ########## @@ -0,0 +1,79 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package com.opensymphony.xwork2.ognl; + +import ognl.Ognl; +import ognl.OgnlException; + +/** + * Guards all expressions parsed by Struts Core. It is evaluated by {@link OgnlUtil} immediately after parsing any + * expression. + * + * @since 6.4.0 + */ +public interface OgnlGuard { + + String GUARD_BLOCKED = "_ognl_guard_blocked"; Review Comment: Yeah agreed Issue Time Tracking ------------------- Worklog Id: (was: 882065) Time Spent: 3h (was: 2h 50m) > Introduce optional AST node exclusion list > ------------------------------------------ > > Key: WW-5340 > URL: https://issues.apache.org/jira/browse/WW-5340 > Project: Struts 2 > Issue Type: Improvement > Components: Core > Reporter: Kusal Kithul-Godage > Priority: Minor > Fix For: 6.4.0 > > Time Spent: 3h > Remaining Estimate: 0h > > Enhance security by implementing an optional exclusion list (in struts.xml) > where applications can specify AST nodes that are not required in their > applications or are known to carry higher security risk. -- This message was sent by Atlassian Jira (v8.20.10#820010)