Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Conversation

@voloda
Copy link

@voloda voloda commented Apr 16, 2015

  • I found that when you specify __type in the JSON the deserializer at first activates the instance and then runs the type check
  • To me this seems to be a security issue since you can basically activate any object remotely
    • The class is immediately thrown away so no further code can be executed just what is inside the constructor
  • I succesfully tested remote activation as well

@pavelsavara
Copy link
Contributor

+1

mythz added a commit that referenced this pull request Apr 25, 2015
Security fix: Explicitly specified __type should not be even activated when not appropriate
@mythz mythz merged commit 18972bd into ServiceStack:v3 Apr 25, 2015
@voloda voloda deleted the DeserializeActivationFix branch April 25, 2015 18:30
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