
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Gem generates :filtered and :sorted scopes, can be easily used for building admin namespace or other filterable sortable architecture.
Add this line to your application's Gemfile:
gem 'filterable_sortable'
And then execute:
bundle
Or install it yourself as:
gem install filterable_sortable
First of all include module into ActiveRecord::Base inherited class
include FilterableSortable
In controllers add scopes to index action. I use 'will_paginate' gem, so here is method *.paginate(...)
@posts = Post.filtered(params[:filter]).ordered(params[:order]).paginate(page: params[:page], per_page: params[:per_page])
In views you can use links with params for order and filter. Example in Haml.
= link_to 'Name', posts_path(filter: {custom: :name}, order: {field: :name, direction: :ASC})
Simple search is also acts as filter, works as scope, already defined in gem, so enjoy it.
= form_tag posts_path do
= text_field_tag :'filter[search]'
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that filterable_sortable 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 flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.