
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).
Library for pushing details(commits, tag, username, env) about the current app
Add this line to your application's Gemfile:
gem 'deployments'
And then execute:
$ bundle
Or install it yourself as:
$ gem install deployments
If you are using Rails 2 or non Rails gem you should add the next following code into Rakefile:
require 'deployments/gem_tasks'
At first you need to create in the config folder deployments.yml file with receiver server url and domains of different envs of your application:
options:
server: "your deployments server that will save build version"
development:
domain: "development.example.com"
api_key: "development api key"
staging:
domain: "staging.example.com"
api_key: "staging api key"
Add to your capistrano recipes the next following line, changing your_app_env to the deployment environment like 'staging' or 'development':
require 'deployments'
after 'deploy' do
run <<-CMD
rake deployments:push app_env=your_app_env
CMD
end
Request params:
{
{
:author => "author",
:commit_attributes => {
"commit id" => {
"message" => "Add readme file",
"created_at" => "2012-05-23 10:38:46 +0300"
},
"commit id" => {
"message" => "Change readme file",
"created_at" => "2012-05-23 10:39:18 +0300"
}
},
:env => "staging",
:version => "1.0.1",
:host_name => "staging.example.com"
},
:api_key => "account api key"
}
Also you can use capistrano recipes of the gem, you need to add:
require 'deployments/recipes'
It will add capistrano hook "after 'deploy'" for pushing deployment details to the server after deploy.
Now you can get request version.txt file from public folder, it will show the latest tag name of the project.
http://your-site/version.txt
git checkout -b my-new-feature
)git commit -am 'Added some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that deployments 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.