
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).
express-back
Advanced tools
Express-back tracks the previous page a user visited in sessions, allowing for reliable back one page redirects.
The http referer header is unreliable, express-back uses sessions to track the two previous paths a client has visited. Also provides a convienence method res.back()
to safely redirect to the previous path or fallback as to prevent a redirect loop.
var back = require('express-back');
app.use(session({
secret: 'super secret'
}));
app.use(back());
app.get('/protected', function(req, res) {
if (!req.isAuthenticated()) {
return res.back();
}
});
var back = require('express-back');
This middleware depends upon a session middleware or req.session
, and will populate req.prevPath
and req.prevPrevPath
.
FAQs
Express-back tracks the previous page a user visited in sessions, allowing for reliable back one page redirects.
We found that express-back 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.