Skip to content

Commit f82bca8

Browse files
committed
Improved: Update allowed local file paths to enhance security
1 parent d99bbc3 commit f82bca8

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

framework/security/config/security.properties

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,7 @@ content.data.ofbiz.file.allowed.paths=applications/,themes/,plugins/,runtime/
184184
# -- Allowed directories for the LOCAL_FILE / LOCAL_FILE_BIN data resource types (absolute paths).
185185
# -- Comma-separated, no spaces after commas. Use ${ofbiz.home} as a portable placeholder.
186186
# -- Only files whose resolved canonical path starts with one of these entries will be served.
187-
# -- Set to empty to disable this check (NOT recommended).
188-
content.data.local.file.allowed.paths=${ofbiz.home}
187+
content.data.local.file.allowed.paths=${ofbiz.home}/runtime/tmp/
189188

190189
# -- Allowed hosts for the URL_RESOURCE data resource type (comma-separated host names or host:port values).
191190
# -- Both exact matches and subdomain matches are supported: "example.com" also permits "cdn.example.com".

0 commit comments

Comments
 (0)