OPCFoundation / UA-Java-Legacy

This repository is provided by OPC Foundation as legacy support for an Java version for OPC UA.
https://github.com/OPCFoundation/UA-.NETStandard
Other
354 stars 226 forks source link

Client should validate that server nonces are long enough and unique. #199

Closed jouniaro closed 4 years ago

jouniaro commented 4 years ago

It is possible that server returns less than 32 bytes for nonce in CreateSessionResponse (or ActivateSessionResponse). The specification requires them to always return 32 bytes or more, although in practice we may allow this to be ignored for non-secure & anonymous sessions.

The client should validate the nonce length and throw an exception at ActivateSession if the nonce provided by the server was not valid.