Endpoint UnencryptedSocket

Beyond using an SSL socket, you need to make sure your use of SSLSocketFactory does all the appropriate certificate validation checks to make sure you are not subject to man-in-the-middle attacks. Please read the OWASP Transport Layer Protection Cheat Sheet for details on how to do this correctly.

IndexedPublic repositoryMediumHigh confidenceVerifiedMITScala
greprules fetch gitlab-sast-scala-endpoint-rule-unencryptedsocket --engine opengrep

Description

Beyond using an SSL socket, you need to make sure your use of SSLSocketFactory does all the appropriate certificate validation checks to make sure you are not subject to man-in-the-middle attacks. Please read the OWASP Transport Layer Protection Cheat Sheet for details on how to do this correctly.