
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).
pm
是一个轻量级的Node.js多进程管理器,基于之前的node-cluster
重构而来,在淘宝内部的生产系统中得到了广泛的应用.
pm
.$ npm install pm
$ siege -b -c100 -t 60S http://172.0.0.2:33749/
CASE | Closed | KeepAlive |
---|---|---|
pm2.0 | 5600 | 10553 |
pm1.0 | 5231 | 10388 |
node | 5481 | 10126 |
master.js
, run as master:var app = require('pm').createMaster({
'pidfile' : '/tmp/demo.pid',
});
app.register('group1', __dirname + '/http.js', {
'listen' : [8080, 8081],
'addr': '127.0.0.1' // it uses '0.0.0.0' by default
});
app.on('giveup', function (name, num, pause) {
// YOU SHOULD ALERT HERE!
});
app.dispatch();
http.js
, run as worker:var http = require('http').createServer(function (req, res) {
res.end('hello world');
});
require('pm').createWorker().ready(function (socket, port) {
http.emit('connection', socket);
});
Thanks goes to the people who have contributed code to this module, see the GitHub Contributors page.
Below is the output from git-summary
project: pm
commits: 91
files : 27
authors:
86 aleafs 94.5%
4 wanglang 4.4%
1 fengmk2 1.1%
pm
is published under MIT license.
See license text in LICENSE file.
FAQs
Process Manager for Node.js, branched from node-cluster.
The npm package pm receives a total of 1,002 weekly downloads. As such, pm popularity was classified as popular.
We found that pm demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.