added whitelist for bean deserialization by jasinner · Pull Request #5 · codehaus/jackson · GitHub
Skip to content
This repository was archived by the owner on Nov 26, 2022. It is now read-only.

added whitelist for bean deserialization - #5

Open
jasinner wants to merge 1 commit into
codehaus:masterfrom
jasinner:deserializationWhitelist
Open

jasinner wants to merge 1 commit into
codehaus:masterfrom
jasinner:deserializationWhitelist

Conversation

@jasinner

Copy link
Copy Markdown

Jackson 1 is prone to deserialization attacks as discussed by Moritz Bechler in his MarshalSec research. This patch disables the dangerous features of Jackson 1 but allows a user to supply a whitelist of packages allowed to be unmarshalled.
If an unexpected class is attempted to be unmarshalled a JsonMappingException is throw similar to what has been implemented in Jackson 2. A user on receiving this exception can re-run their application with a System Property "jackson.deserialization.whitelist.packages" which adds the fully qualified class name or package name of the class they would expect to be deserialized.

@cowtowncoder

Copy link
Copy Markdown

@NicoleG25

Copy link
Copy Markdown

Hi @cowtowncoder ,
I'm conducting some security research and I was wondering if you could please specify where the vulnerability regarding CVE-2019-10202 was addressed?
Thanks in advance !

@cowtowncoder

cowtowncoder commented Mar 25, 2020 •

Copy link
Copy Markdown

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants