Skip to content

Commit cf7aa2e

Browse files
committed
Documentation UnsafeDeserializationQuery
1 parent 1a89c3f commit cf7aa2e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

java/ql/lib/semmle/code/java/security/UnsafeDeserializationQuery.qll

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,12 @@ deprecated class SafeObjectMapperConfig extends DataFlow2::Configuration {
534534
}
535535
}
536536

537+
/**
538+
* Tracks flow from calls that set a type validator to a subsequent Jackson deserialization method call,
539+
* including across builder method calls.
540+
*
541+
* Such a Jackson deserialization method call is safe because validation will likely prevent instantiating unexpected types.
542+
*/
537543
module SafeObjectMapperConfig implements DataFlow::ConfigSig {
538544
predicate isSource(DataFlow::Node src) { src instanceof SetPolymorphicTypeValidatorSource }
539545

0 commit comments

Comments
 (0)