Fixed: Post-auth XSS vulnerability at catalog/control/EditProductPromo (OFBIZ-12096)
Prevents issues with integration tests Conflicts handled by hand: framework/base/src/main/java/org/apache/ofbiz/base/util/UtilCodec.java
This commit is contained in:
@@ -452,8 +452,8 @@ public class UtilCodec {
|
||||
}
|
||||
|
||||
if (value != null) {
|
||||
String filtered = StringEscapeUtils.unescapeEcmaScript(policy.sanitize(value));
|
||||
if (filtered != null && !value.equals(StringEscapeUtils.unescapeHtml4(filtered))) {
|
||||
String filtered = policy.sanitize(value);
|
||||
if (filtered != null && !value.equals(StringEscapeUtils.unescapeEcmaScript(StringEscapeUtils.unescapeHtml4(filtered)))) {
|
||||
String issueMsg = null;
|
||||
if (locale.equals(new Locale("test"))) {
|
||||
issueMsg = "In field [" + valueName + "] by our input policy, your input has not been accepted "
|
||||
|
||||
Reference in New Issue
Block a user