eclipse / paho.mqtt.java

Eclipse Paho Java MQTT client library. Paho is an Eclipse IoT project.
https://eclipse.org/paho
Other
2.12k stars 883 forks source link

Not properly generated randomised for SSLContext #929

Open akwick opened 2 years ago

akwick commented 2 years ago

Please fill out the form below before submitting, thank you!

During an empirical study to understand the nature of cryptographic misuses in enterprise-driven projects on GitHub, we randomly inspected a few of the misuses. One of the misuses for which we could confirm as a true positive of the analysis, CogniCryptSAST, is in this project. In the class SSLSocketFactoryFactory the initialization of the SSLContext passes a not properly generated randomized (null).

Expected behavior: A properly generated randomized is passed Observed behavior: Null is passed

How to Reproduce: