We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e786da4 commit fcc0078Copy full SHA for fcc0078
framework/base/src/main/java/org/apache/ofbiz/base/util/SafeObjectInputStream.java
@@ -64,8 +64,9 @@ public SafeObjectInputStream(InputStream in) throws IOException {
64
@Override
65
protected Class<?> resolveClass(ObjectStreamClass classDesc) throws IOException, ClassNotFoundException {
66
String className = classDesc.getName();
67
- // DenyList exploits; eg: don't allow RMI here
68
- if (className.contains("java.rmi")) {
+ // DenyList
+ if (className.contains("java.rmi") // Don't allow RMI
69
+ || className.contains("<")) { // Prevent generics markup in string type names
70
throw new InvalidClassException(className, "Unauthorized deserialisation attempt");
71
}
72
if (!allowlistPattern.matcher(className).find()) {
0 commit comments