Find unsafe Java deserialization

Proprietary

Java native deserialization is the source of the Apache Commons gadget-chain RCE family. Each ObjectInputStream allocation needs an explicit ObjectInputFilter (Java 9+) or a replacement encoding.

org.openrewrite.kotlin.security.FindUnsafeDeserialization$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.security.FindUnsafeDeserialization$KtRecipe'

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Find ObjectInputStream(...) constructions