Skip to content

Commit 6e75cde

Browse files
committed
Fixed: Extend allowlist in SafeObjectInputStream to include GString* Groovy classes
The classes are also already included in the configurable allow list in SafeObjectInputStream.properties
1 parent 314729b commit 6e75cde

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

framework/base/src/main/java/org/apache/ofbiz/base/util/SafeObjectInputStream.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ public final class SafeObjectInputStream extends ObjectInputStream {
6666
"java\\.util\\.TreeMap",
6767
"java\\.util\\.Arrays\\$ArrayList",
6868
"org\\.apache\\.ofbiz\\.entity\\.GenericValue",
69-
"org\\.apache\\.ofbiz\\.entity\\.GenericPK"};
69+
"org\\.apache\\.ofbiz\\.entity\\.GenericPK",
70+
"org\\.codehaus\\.groovy\\.runtime\\.GStringImpl",
71+
"groovy\\.lang\\.GString"};
7072
private static final String[] DEFAULT_DENYLIST = {"rmi", "<"};
7173

7274
/** The regular expression used to match serialized types. */

0 commit comments

Comments
 (0)