Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
This gem backports Net::HTTP#min_version=
and #max_version=
from Ruby 2.5. These are more flexible than #ssl_version=
which locks the connection to allow only one specific version, and close the door on future versions down the road (TLS 1.3).
The motivation for this gem is guaranteeing client side compliance with the PCI Data Security Standard (PCI DSS) June 30 2018 deadline for phasing out TLS 1.0 connections for safeguarding credit card payment data.
The heavy lifting is done by OpenSSL gem 2.1+, which is only compatible with Ruby 2.3 and 2.4.
Add the following line to your application's Gemfile:
gem 'min_max_ssl'
If you have a gem that uses feature detection of #min_version=
, you might need to add this line before that gem definition.
uri = URI("https://tls-1-1-and-higher-only.example.com/")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
http.min_version = :TLS1_1
http.get("/") # everything works
uri = URI("https://tls-1-1-and-higher-only.example.com/")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
http.max_version = :TLS1_0
http.get("/") # raises OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: unsupported protocol
The gem is available as open source under the terms of the Ruby License, like the original work by @nurse in https://github.com/ruby/ruby/commit/dcea9198a9d80bdf4eeacd9d9e9d883850a4a8d2
FAQs
Unknown package
We found that min_max_ssl demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.