From 0cc1913a34ff9fa20cf4f93d18222a9b186ca72b Mon Sep 17 00:00:00 2001 From: Jacques Le Roux Date: Thu, 28 Mar 2019 08:18:19 +0000 Subject: [PATCH] Improved: Improve ObjectInputStream class (OFBIZ-10837) Fixes CVE-2019-0189 There was a recurring typo in previous commit. For arrays of primitives it should be "[Z","[B","[S","[I","[J","[F","[D","[C" and not "[Z ","[B ","[S ","[I ","[J ","[F ","[D ","[C " Just spotted that while reviewing again (did not have the time to test) git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1856459 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/ofbiz/base/util/UtilObject.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilObject.java b/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilObject.java index 67ccc24a56..2dae0f5901 100644 --- a/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilObject.java +++ b/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilObject.java @@ -145,7 +145,7 @@ public final class UtilObject { java.util.Arrays.asList("byte\\[\\]", "Number", "Long", "foo", "SerializationInjector", "java.util.HashMap", "Boolean", "Number", "Integer", "FlexibleStringExpander", "sun.util.calendar.ZoneInfo", "java.sql.Timestamp", "java.util.Date", - "java.math.BigDecimal", "[Z ","[B ","[S ","[I ","[J ","[F ","[D ","[C ", + "java.math.BigDecimal", "[Z","[B","[S","[I","[J","[F","[D","[C", "org.apache.ofbiz.widget.renderer.VisualTheme"));) { return wois.readObject(); }