WS2P: prevent JSON injection
WS2P parses received JSON. We need to take a big care on the received JSON because it could carry invalid content.
WS2P parses received JSON. We need to take a big care on the received JSON because it could carry invalid content.
The current message handler which is in WS2PServerMessageHandler.ts seems safe enough because it transforms JSON to string Protocol representation and back to JSON, which makes the variables safe as a resulting JS object parsed from a string.
However it should be checked with deeper tests that these transformations are safe as well.