CVE-2020-11050
Improper Validation of Certificate with Host Mismatch in Java-WebSocket
Description
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 - https://cwe.mitre.org/data/definitions/297.html
Important note
The OWASP Dependency-Check (https://jeremylong.github.io/DependencyCheck/index.html) 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 (https://github.com/TooTallNate/Java-WebSocket/issues/1019#issuecomment-628507934) for more information and a way to suppress the warning.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.java-websocket » Java-WebSocket | < 1.5.0 | 1.5.0 |
Blast radius
59% of the dependent artifacts (666) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 3,632 |
| 2 hops | 5,537 |
| 3 hops | 3,601 |
| 4 hops | 3,133 |
| 5 hops | 740 |
| 6 hops | 487 |
Most used dependents
- org.apache.camel.springboot » camel-core-starter558 usages
- org.apache.camel.springboot » camel-spring-boot-starter478 usages
- org.apache.camel.quarkus » camel-quarkus-maven-plugin302 usages
- org.web3j » core301 usages
- net.dv8tion » JDA213 usages
- org.knowm.xchange » xchange-core160 usages
- org.apache.camel.quarkus » camel-quarkus-package-maven-plugin152 usages
- org.apache.camel » camel-catalog87 usages
- com.xeiam.xchange » xchange-core71 usages
- com.pusher » pusher-java-client56 usages
- tech.pegasys.teku.internal » spec44 usages
- tech.pegasys.teku.internal » datastructures27 usages
- com.github.nkzawa » socket.io-client26 usages
- org.l2x6.cq » cq-maven-plugin22 usages
- tech.pegasys.teku.internal » api22 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
