FasterXML / FasterXML/jackson3-dev

Change "invalid subtype" (security check) from `BeanDeserializerFactory` into `ClassNameIdResolver`

Aberta
#20 0 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Sem dados de linguagem
Estrelas
6
Forks
0
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

Jackson 2.x intercepts attempts at deserializing certain "serialization gadget" classes with `BeanDeserializerFactory`, when locating deserializer. While this works, it happens at a point during which `Class` itself has already been resolved (from class name to `Class` object).
I am not 100% sure if this does trigger static initialization blocks, but if it does, then there is a potential concern still in allowing that to proceed.
And regardless of this aspect it seems better to catch the problem earlier, at least to the degree this is possible (some checks do require checking of inheritance hierarchy).

So: it would make sense to handle at least some of "serialization gadget" checks within `ClassNameIdResolver`, even if more checks were needed at a later point.

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.