Skip to content

Add Jackson PolymorphicTypeValidator #1297

Description

@pjfanning

This Jackson usage is very dangerous. It means that Jackson will load any class that appears in the JSON. There is a disallow list for well-known gadgets but it is highly recommended to a PolymorphicTypeValidator to your ObjectMapper to lock down which classes can be loaded.
https://github.com/search?q=repo%3Aapache%2Fcurator%20Id.CLASS&type=code

Example
https://github.com/apache/drill/pull/3057/changes#diff-e55fd14c5d3a9a463736a342682c0f7d3644d1e47ba6700c1fce001a493deda1R69

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions