(OFBIZ-5254) This was reopened after discussion at https://markmail.org/message/jnaitmwahjcjmdn5 This is a new solution which follows the work done with OFBIZ-6669 and OFBIZ-10187 Roughly said, it uses org.owasp.html.PolicyFactory and org.owasp.html.Sanitizers Thanks: Christoph Neuroth for report git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1859877 13f79535-47bb-0310-9956-ffa450edef68
37 lines
1.8 KiB
Properties
37 lines
1.8 KiB
Properties
###############################################################################
|
|
# 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.
|
|
###############################################################################
|
|
|
|
####
|
|
# OFBiz OWASP properties File https://www.owasp.org/index.php/Main_Page
|
|
####
|
|
|
|
# By default we use a permissive sanitizer policy
|
|
# This has a slight impact on the code rendered, see last comments in OFBIZ-6669.
|
|
# Given as an example based on rendering cmssite, as it was before using the sanitizer.
|
|
# You might want to adapt the PERMISSIVE_POLICY to your needs.
|
|
# Be sure to check https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet before...
|
|
sanitizer.enable=true
|
|
|
|
# Use sanitizer.permissive.policy=CUSTOM to use your custom permissive PolicyFactory (see OFBIZ-10187)
|
|
sanitizer.permissive.policy=DEFAULT
|
|
sanitizer.custom.permissive.policy.class=org.apache.ofbiz.base.html.CustomPermissivePolicy
|
|
|
|
# Use sanitizer.safe.policy=CUSTOM to use your custom safe PolicyFactory (see OFBIZ-5254)
|
|
sanitizer.safe.policy=DEFAULT
|
|
sanitizer.custom.safe.policy.class=org.apache.ofbiz.base.html.CustomSafePolicy |