
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).
This package contains asynchronous helper methods to make using SFTP with the SSH2 package easier.
To initialize an sftp connection, simply include the package and then call connect
with
your server settings. Once connected, you can run the other methods (shown below).
const sftpa = require('sftp-async');
await sftpa.connect('2.2.2.2', 22, 'username', 'password');
const dirlist = await sftpa.readdir('/upload');
const [file] = dirlist;
const content = await sftpa.getFileData(`/upload/${file.filename}`);
await sftpa.move(`/upload/${file.filename}`, `/processed/${file.filename}`);
await sftpa.disconnect();
There's a very basic test suite included. Rename test.config.example.js
to test.config.js
and change the settings to match your SFTP server. Drop a file in the source directory and
then run the tests.
FAQs
Asynchronous SFTP tools
The npm package sftp-async receives a total of 13 weekly downloads. As such, sftp-async popularity was classified as not popular.
We found that sftp-async 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.