Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
This gem provides a simple Rails engine with an IP geolocation API that ducks with Freegeoip.
It reads MaxMindDB's open source GeoLite2 City database, with the help of maxminddb gem, a pure Ruby implementation.
You can find MaxMind's GeoLite2 City database here.
Add this line to your application's Gemfile:
gem "freegeoip-rails", require: "freegeoip"
Mount the engine in your routes file:
mount Freegeoip::Engine, at: "/json"
Add an initializer like config/initializers/freegeoip.rb
and tell the engine where it can find your GeoLite2 City database:
Freegeoip.configure do |config|
# Anything that can be opened by OpenURI
config.db_location = Rails.root.join "vendor/maxminddb/GeoLite2-City.mmdb"
end
Start your web server and point your browser to http://localhost:3000/json/www.ruby-lang.org
or http://localhost:3000/json/151.101.1.178
and you should get a response with JSON data.
Contributions are always welcome.
Crafted with love at Varvet digital agency. Skapad med omsorg av Varvet digital byrå.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that freegeoip-rails 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.