Missing SSL certificate verification detected.


Applications processing sensitive data should use valid SSL certificates. This rule checks if SSL verification is enabled.


❌ By default Ruby check for SSL certificate verification but this can be bypassed when setting Open SSL verification mode to VERIFY_NONE:

require "net/https"
require "uri"

uri = URI.parse("https://ssl-site.com/")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

✅ To ensure that SSL verification always happens, make sure to use the following mode:

http.verify_mode = OpenSSL::SSL::VERIFY_PEER


Associated CWE

OWASP Top 10