
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).
uploadcare
Advanced tools
⚠️ This package is DEPRECATED in favour of uploadcare-js-api-clients
⚠️
Node module for uploadcare.com that allows API interaction as well as local file upload.
var uploadcare = require('../lib/main')('public_key', 'private_key'),
fs = require('fs');
// handler is a callback function
// in the form function(err, data) { // code to handle response }
//API interaction
uploadcare.files.info('file_id', handler);
uploadcare.files.store('file_id', handler);
uploadcare.files.remove('file_id', handler);
uploadcare.groups.info('group_id', handler);
//
//Paginated list of files/groups info
uploadcare.files.list({page: 1, limit: 100}, handler);
uploadcare.groups.list({page: 1, limit: 100}, handler);
//
//Upload from file
uploadcare.file.upload(fs.createReadStream(path), function(err,res){
//Res should contain returned file ID
console.log(err,res);
});
//
//Upload from URL
uploadcare.file.fromUrl('http://host/image/path', function(err,res){
//Res should contain returned file ID
console.log(err,res);
})
npm install uploadcare
Install uploadcare globally (npm install -g uploadcare
) and you have a CLI tool for interacting with the REST API.
info
/ i
Get info for an uploadcare file or group.
# Single file
uc info --pub=demopublickey --priv=demoprivatekey 1b53f25b-ac5e-46e7-9a76-8bf77d755c55
# Group of files
uc info --pub=demopublickey --priv=demoprivatekey 80077b0a-3882-4bbc-b4f4-aabf45ff8fb7~3
-u, --pub
Public key to use (REQUIRED)-r, --priv
Private key to use (REQUIRED)-p, --pretty
Pretty print the responseFAQs
Library for uploadcare.com.
The npm package uploadcare receives a total of 1,560 weekly downloads. As such, uploadcare popularity was classified as popular.
We found that uploadcare demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.