tzaeschke / zoodb

ZooDB Object Database
Apache License 2.0
57 stars 9 forks source link

Investigate Java 18 (and 9) security implications #134

Open tzaeschke opened 2 years ago

tzaeschke commented 2 years ago

Java 18 deprecates the SecurityManager. This has several implications. Obvious ones to check:

References: https://openjdk.java.net/jeps/411 https://inside.java/2021/04/23/security-and-sandboxing-post-securitymanager/ https://issues.apache.org/jira/browse/DERBY-7138 https://stackoverflow.com/a/53935674/980270 (2nd comment: "There are few other ways to block reflection operations: 1) setAccessible() 2) RetentionPolicy annotated class gets a RuntimeInvisible\ RuntimeVisible class attribute or won't appear in the decompiled class 3) Use module concept in Java 9 and Reflection Permissions")