RFR: 8264859: Implement Context-Specific Deserialization Filters [v9]

Roger Riggs rriggs at openjdk.java.net
Tue May 25 21:45:33 UTC 2021


> JEP 415: Context-specific Deserialization Filters extends the deserialization filtering mechanisms with more flexible and customizable protections against malicious deserialization.  See JEP 415: https://openjdk.java.net/jeps/415.
> The `java.io.ObjectInputFilter` and `java.io.ObjectInputStream` classes are extended with additional
> configuration mechanisms and filter utilities.
> 
> javadoc for `ObjectInputFilter`, `ObjectInputFilter.Config`, and `ObjectInputStream`:
>     http://cr.openjdk.java.net/~rriggs/filter-factory/java.base/java/io/ObjectInputFilter.html

Roger Riggs has updated the pull request incrementally with one additional commit since the last revision:

  Editorial updates
  Updated java.security properties to include jdk.serialFilterFactory
  Added test cases to SerialFilterFactoryTest for java.security properties and
  enabling of the SecurityManager with existing policy permission files
  Corrected a test that OIS.setObjectInputFilter could not be called twice.
  Removed a Factory test that was not intended to be committed

-------------

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/3996/files
  - new: https://git.openjdk.java.net/jdk/pull/3996/files/9573ae11..b83da61a

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=3996&range=08
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=3996&range=07-08

  Stats: 245 lines in 8 files changed: 77 ins; 112 del; 56 mod
  Patch: https://git.openjdk.java.net/jdk/pull/3996.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/3996/head:pull/3996

PR: https://git.openjdk.java.net/jdk/pull/3996


More information about the core-libs-dev mailing list