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.
A simple Ruby On Rails gem to replace standard browser's checkboxes and radio buttons with Font Awesome icons.
This gem has a dependency to the font-awesome-rails gem and makes Font Awesome and font-awesome-rails available in your application implicitly.
Add this to your Gemfile:
gem 'fa-checkbox'
and run bundle install
.
In your application.css, include the css file:
/*
*= require fa-checkbox
*/
to make it picked up by the asset pipline. Restart your webserver if it was running.
If you support some old browsers that make trouble with custom @font-face
fonts, you can disable fa-checkbox
by conditional inclusion of fa-checkbox-revert.css
. You need to make it available to your application by pre-compiling it first. Add this line to confic/initializers/assets.rb
or another your environment initialization file:
Rails.application.config.assets.precompile += %w(fa-checkbox-revert.css)
And included it to your application layout depending on your conditions. For example, for IE8 and below:
<!--[if lt IE 9]>
<%= stylesheet_link_tag 'fa-checkbox-revert', media: :all %>
<!--<![endif]-->
Make sure that all labels in your application are linked to their checkboxes and radio buttons with <label for='...'>
attribute properly. Otherwise they will not react to you clicks.
FAQs
Unknown package
We found that fa-checkbox 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.