
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
A Node.js module to easily resize, crop and upload images to Rackspace cloudfiles. Possible to add different versions of the same file in cropped or resized variant.
$ npm install imager
You need to create imager configuration file with image variants and your storages
Example config with scopes:
{
"variants": {
"projects": {
"resize": {
"mini" : "300x200",
"preview": "800x600"
},
"crop": {
"thumb": "200x200"
}
},
"gallery": {
"crop": {
"thumb": "100x100"
}
}
},
"storage": {
"rs": {
"auth": {
"username": "USERNAME",
"apiKey": "API_KEY",
"host": "lon.auth.api.rackspacecloud.com"
},
"container": "CONTAINER_NAME"
}
}
}
Now you can use Imager
var Imager = require('imager');
var imager = new Imager({storage : "rs", config_file: "path_to_imager_config.json"})
Note: More storage systems yet to come
Upload example:
app.get('/upload_form', function(req, res) {
res.writeHead(200, {'content-type': 'text/html'});
res.end(
'<form action="/upload_form" enctype="multipart/form-data" method="post">'+
'<input type="text" name="title"><br>'+
'<input type="file" name="image"><br>'+
'<input type="submit" value="Upload">'+
'</form>'
);
});
app.post('/upload', function(req, res) {
//With Scope `items` (look at example of configuration file)
imager.upload(req, res, function(err, files, cdnUri, res){
console.log({ uri : cdnUri, files : files });
res.end()
}, 'items')
});
imager.remove('1330838831049.png', function (err) {
if (err) throw err
console.log('removed')
}, 'projects')
eval
FAQs
Easy way to resize, crop and upload images to Rackspace cloudfiles and Amazon S3
The npm package imager receives a total of 2 weekly downloads. As such, imager popularity was classified as not popular.
We found that imager 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
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.