diff --git a/framework/security/config/security.properties b/framework/security/config/security.properties index 9eccffb630..4bb27513f3 100644 --- a/framework/security/config/security.properties +++ b/framework/security/config/security.properties @@ -238,9 +238,10 @@ allowAllUploads= #-- eg: https://www.acunetix.com/blog/articles/detection-prevention-introduction-web-shells-part-5/ #-- "freemarker" should be OK, should not be used in Freemarker templates, not part of the syntax. #-- Else "template.utility.Execute" is a good replacement but not as much catching, who knows... -deniedWebShellTokens=<%,,,(); assertFalse(SecuredUpload.isValidText("hack.getFileName", allowed)); + + assertFalse(SecuredUpload.isValidText("<%", allowed)); + assertFalse(SecuredUpload.isValidText("", allowed)); - assertFalse(SecuredUpload.isValidText("", allowed)); + assertFalse(SecuredUpload.isValidText("