
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).
node-express-reload
Advanced tools
Helps to refresh your application after changes. Reload application server (hosting and cloud), kill process and install NPM packages online
WARNING: Do not use the development server in a production environment.
npm install node-express-reload
const express = require("express");
const app = express();
const PORT = 8080;
// ** Secure change **
// ** change route /ner to /any-another-word **
app.use('/ner', require("node-express-reload")({
username: 'admin', // if not defined, your username will be admin
password: 'NeR777#',
serverfile: __filename,
}));
// Open options
// http://localhost:8080/ner/
// http://localhost:8080/any-another-word/
// Reloaded manually
// http://localhost:8080/ner/reload/
// http://localhost:8080/any-another-word/reload
app.get("/", (req, res) => res.send(`I'm pid ${process.pid} and port ${PORT}`));
app.listen(PORT);
Silent reload module (express router)
const express = require("express");
const app = express();
const requireWatcher = require("node-express-reload")('require-watcher');
const PORT = 8080;
// silent reload
app.use('/home', requireWatcher( __dirname + '/home/index.js')) // or only '/home/'
app.get("/", (req, res) => res.send(`I'm pid ${process.pid} and port ${PORT}`));
app.listen(PORT);
const express = require("express");
const app = express();
const PORT = 8080;
app.use('/ner', require("node-express-reload")({
serverfile: __filename,
watcher: ['.'], // {array} __filename | . | ./ | index.js | /path-name | . (dot is all depth files)
depth: 10,
}));
app.get("/", (req, res) => res.send(`I'm pid ${process.pid} and port ${PORT}`));
app.listen(PORT);
GET http://localhost:8080/ner/reload/
GET http://localhost:8080/ner/kill/
GET http://localhost:8080/ner/kill/PID (pid is a number)
GET http://localhost:8080/ner/npm/i/pdfkit-table,cors
router | action | example |
---|---|---|
/ner/kill | kill owner process | http://localhost:8080/ner/kill |
/ner/kill/:pid? | kill process | http://localhost:8080/ner/kill/123456 |
/ner/reload/:pid? | kill process and restart | http://localhost:8080/ner/reload |
/ner/list | pid list | http://localhost:8080/ner/list |
/ner/list-all | big pid list | http://localhost:8080/ner/listall |
/ner/pid | show process id (PID) | http://localhost:8080/ner/pid |
/ner/npm/:type/:packages | Install and uninstall packages. type: i or u. | http://localhost:8080/ner/npm/i/pdfkit-table,cors |
/ner/npm/fix | npm fix | http://localhost:8080/ner/npm/fix |
/ner/npm/ls | npm ls | http://localhost:8080/ner/npm/ls |
/ner/npm/audit | npm audit | http://localhost:8080/ner/npm/audit |
/ner/npm/install | npm install package.json | http://localhost:8080/ner/npm/install |
Soon.
The MIT License.
![]() |
Natan Cabral natancabral@hotmail.com https://github.com/natancabral/ |
FAQs
Helps to refresh your application after changes. Reload application server (hosting and cloud), kill process and install NPM packages online
The npm package node-express-reload receives a total of 0 weekly downloads. As such, node-express-reload popularity was classified as not popular.
We found that node-express-reload 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.