Vulnerability
The Java-WebSocket Client does not perform hostname verification.
- This means that SSL certificates of other hosts are accepted as long as they are trusted.
To exploit this vulnerability an attacker has to perform a man-in-the-middle (MITM) attack between a Java application using the Java-WebSocket Client and an WebSocket server it's connecting to.
- TLS normally protects users and systems against MITM attacks, it cannot if certificates from other trusted hosts are accepted by the client.
For more information see: CWE-297: Improper Validation of Certificate with Host Mismatch.
Discovered by: Peter Stöckli (using a custom CodeQL query)
Important note
The OWASP Dependency-Check may report that a dependency of your project is affected by this security vulnerability, but you don't use this lib.
This is caused by the fuzzy search in the OWASP implementation.
Check out this issue for more information and a way to suppress the warning.
Vulnerability
(https://github.com/TooTallNate/Java-WebSocket)
The Java-WebSocket Client does not perform hostname verification.
To exploit this vulnerability an attacker has to perform a man-in-the-middle (MITM) attack between a Java application using the Java-WebSocket Client and an WebSocket server it's connecting to.
For more information see: CWE-297: Improper Validation of Certificate with Host Mismatch.
Discovered by: Peter Stöckli (using a custom CodeQL query)
Important note
The OWASP Dependency-Check may report that a dependency of your project is affected by this security vulnerability, but you don't use this lib.
This is caused by the fuzzy search in the OWASP implementation.
Check out this issue for more information and a way to suppress the warning.