Improved: Improve ObjectInputStream class
(OFBIZ-10837) Fixes CVE-2019-0189 The white list was still not complete as reported by Wolfgang Rauchholz on user ML This adds java.math.BigDecimal and "[B" (ie [B == byte[] and I don't understand why in this case "byte[]" does not work) It seems the warning in SafeObjectInputStream::resolveClass is not enough. Anyway I'll not change it. Thanks: Ingo Wolfmayr at OFBIZ-10870 git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1856405 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -144,7 +144,8 @@ public final class UtilObject {
|
||||
Thread.currentThread().getContextClassLoader(),
|
||||
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"));) {
|
||||
"sun.util.calendar.ZoneInfo", "java.sql.Timestamp", "java.util.Date",
|
||||
"java.math.BigDecimal", "\\[B"));) {
|
||||
return wois.readObject();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user