
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).
A hapi plugin to display information about the hapi server and the plugins it's running.
hapi-info
is a plugin to display information about the hapi server and the
plugins it's running.
var HapiInfo = require('hapi-info');
var Hapi = require('hapi');
var server = new Hapi.Server();
server.connection();
server.register({ register: HapiInfo, options: {} }, function (err) {
server.start(function () {
// ..
});
});
The following options are available:
path
: The route path where the information is available. Default: /hapi-info
. Setting path to null
means a route is not created but the server function is still exposed.pluginFilter
: A RegExp used to filter out plugins from the returned information.options
: boolean. default: false. when turned on, the options passed to the plugin will also be displayed{
server: {
node: 'v6.14.3',
hapi: '16.7.0',
info: {
created: 1545253617087,
started: 0,
host: 'sanji.local',
port: 0,
protocol: 'http',
id: 'sanji.local:17557:jpvo3ttr',
uri: 'http://sanji.local'
},
uptime: 2.501,
memoryUsage: {
rss: 68087808,
heapTotal: 59801600,
heapUsed: 29752280,
external: 41684
},
cpuUsage: {
user: 1489450,
system: 186843
}
},
plugins: [
{
name: 'hapi-info',
version: '2.0.6'
},
{
name: 'blah',
version: '1.2.3'
},
{
name: 'main',
version: '0.1.1'
}
]
}
server.plugins['hapi-info'].info()
The function server.plugins['hapi-info'].info()
is also exposed and
contains the same information as the endpoint as an object as opposed to json
output.
FAQs
A hapi plugin to display information about the hapi server and the plugins it's running.
The npm package hapi-info receives a total of 2 weekly downloads. As such, hapi-info popularity was classified as not popular.
We found that hapi-info 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.