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 gem to display cookies consent !
Simple Cookies is distributed as a gem, which is how it should be used in your app.
Include the gem in your Gemfile:
gem 'simple_cookies'
Install assets file in application.js:
//= require simple_cookies
And in application.css:
*= require simple-cookies
Or, if you have application.scss:
@import "simple-cookies";
In your view add
<%= render 'simple_cookies/consent', appname: "App name", path: nil, klass: 'top' %>
Simple Cookies comes with some customization. Here are css class :
full : make simple-cookies box full width of browser. Default is 375px.
top || bottom : position the box at the top or bottom of the window.
content-centered : center content inside the box. Default content is left align.
You can customize the box by overriding css.
"Simple cookies" contains 4 elements :
div#simple-cookies
h1
p
a.simple-cookies-accept
FAQs
Unknown package
We found that simple_cookies 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.