Find vulnerable uses of Jackson @JsonTypeInfo

Proprietary

Identify where attackers can deserialize gadgets into a target field.

org.openrewrite.java.security.search.FindVulnerableJacksonJsonTypeInfo
mod run . --recipe=org.openrewrite.java.security.search.FindVulnerableJacksonJsonTypeInfo

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 annotations @com.fasterxml.jackson.annotation.JsonTypeInfo(use=com.fasterxml.jackson.annotation.JsonTypeInfo.Id.CLASS)
  2. Find annotations @com.fasterxml.jackson.annotation.JsonTypeInfo(use=com.fasterxml.jackson.annotation.JsonTypeInfo.Id.MINIMAL_CLASS)