[
https://issues.apache.org/jira/browse/OFBIZ-11709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17109173#comment-17109173 ]
ASF subversion and git services commented on OFBIZ-11709:
---------------------------------------------------------
Commit d2274170b418dc7dbb44f5096b2b22c81e3943f4 in ofbiz-framework's branch refs/heads/release18.12 from Jacques Le Roux
[
https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=d227417 ]
Fixed: Prevent FreeMarker Template Injection (SSTI)
(OFBIZ-11709)
Since Freemarker 2.3.17 a known solution to these issues is to register a
TemplateClassResolver in Freemarker configuration in order to limit which
TemplateModels can be instantiated in the templates. The predefined resolver
SAFER_RESOLVER doesn't allow to instantiate the Execute class[4].
So the solution is to add the line
newConfig.setNewBuiltinClassResolver(TemplateClassResolver.SAFER_RESOLVER);
in FreeMarkerWorker.java
Conflicts handled by hand
--
This message was sent by Atlassian Jira
(v8.3.4#803005)