
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).
@rss/common-nodejs
Advanced tools
RSS shared Node.js library for cross cutting concerns.
$ npm install @rss/common-nodejs
openIdClient must be initialized before calling any other rss apps.
const { env, secret, openIdClient } = require('@rss/common-nodejs');
await openIdClient.init(env.OPENID_URL, { client_id: secret.CLIENT_ID, client_secret: secret.CLIENT_SECRET });
const accessToken = await openIdClient.accessToken();
The RSS authentication strategy authenticates users using a token passed in on the Authorization
request header.
The strategy requires a verify
callback, which accepts a valid decoded token and calls done
providing a user.
passport.use(
openIdStrategy(env.OPENID_URL, (red, claim, done) => {
done(null, claim);
}),
);
Use passport.authenticate()
, specifying the 'jwt'
strategy, to authenticate requests.
app.use(passport.authenticate('jwt', { session: false }));
app.use('/api/sample', authz(['SCOPE']), require('./sample.routes'));
This strategy takes an hash value with the following options
session
- Options, save user to session - should be set to falseFAQs
RSS shared Node.js library
The npm package @rss/common-nodejs receives a total of 86 weekly downloads. As such, @rss/common-nodejs popularity was classified as not popular.
We found that @rss/common-nodejs demonstrated a healthy version release cadence and project activity because the last version was released less than 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.