You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fory.apache.org by "pjfanning (via GitHub)" <gi...@apache.org> on 2025/07/08 13:39:41 UTC
[PR] [NOT FOR MERGE] experiment with making deserialize check the type [fory]
pjfanning opened a new pull request, #2398:
URL: https://github.com/apache/fory/pull/2398
* Experiment related to #2391
* very unlikely to ever get merged but I would like to support users who carefully write their classes to make them strongly typed minimising the risks with deserialization attacks - with strongly typed classes and us checking that the input bytes match the expected type means that in theory those careful users wouldn't need to go through the tedium of writing class checkers or registering all the classes they need
* this version is still naive and is possibly at risk at having an attacker hide a dangerous class instance nested inside the main class - I will add structured test classes to test this out
* so far, the implementation changes are small and do not add much overhead because the ClassInfo is already looked up when I do the checks
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@fory.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fory.apache.org
For additional commands, e-mail: commits-help@fory.apache.org
Re: [PR] [NOT FOR MERGE] experiment with making deserialize check the type [fory]
Posted by "chaokunyang (via GitHub)" <gi...@apache.org>.
chaokunyang closed pull request #2398: [NOT FOR MERGE] experiment with making deserialize check the type
URL: https://github.com/apache/fory/pull/2398
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@fory.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fory.apache.org
For additional commands, e-mail: commits-help@fory.apache.org