Documentation UnsafeDeserializationQuery

This commit is contained in:
Ed Minnix 2023-03-29 22:27:45 -04:00
Родитель 1a89c3fa7c
Коммит cf7aa2e420
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -534,6 +534,12 @@ deprecated class SafeObjectMapperConfig extends DataFlow2::Configuration {
}
}
/**
* Tracks flow from calls that set a type validator to a subsequent Jackson deserialization method call,
* including across builder method calls.
*
* Such a Jackson deserialization method call is safe because validation will likely prevent instantiating unexpected types.
*/
module SafeObjectMapperConfig implements DataFlow::ConfigSig {
predicate isSource(DataFlow::Node src) { src instanceof SetPolymorphicTypeValidatorSource }