
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).
strapi-upload-minio-v4
Advanced tools
minio provider for strapi ce 3.6.x and 4.x, private bucket supported(4.x only)
This upload provider uses the JavaScript Minio.Client to upload files to a (self hosted) instance of Minio.
It's compatible with the strapi 4.x.
npm i --save strapi-upload-minio-v4
// file: ./config/plugins.js
module.exports = ({ env }) => ({
upload: {
config: {
provider: 'strapi-upload-minio-v4',
providerOptions: {
accessKey: env('MINIO_ACCESS_KEY', 'Q3AM3UQ867SPQQA43P2F'),
secretKey: env(
'MINIO_SECRET_KEY',
'zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG',
),
bucket: env('MINIO_BUCKET', 'test-2021-09-22'),
endPoint: env('MINIO_ENDPOINT', 'play.min.io'),
port: env('MINIO_PORT', 9000),
useSSL: env('MINIO_USE_SSL', true),
folder: env('MINIO_FOLDER', 'cms'),
host: env('MINIO_HOST', 'https://s3.yourdomain.com'),
},
},
},
})
Mostly because of CSP, you can refer to https://github.com/strapi/strapi/issues/12886
If the image you uploaded is not displayed properly, you need to modify ./config/middlewares.js
as follows.
// ./config/middlewares.js
module.exports = [
'strapi::errors',
'strapi::cors',
'strapi::poweredBy',
'strapi::logger',
'strapi::query',
'strapi::body',
'strapi::favicon',
'strapi::public',
{
name: 'strapi::security',
config: {
contentSecurityPolicy: {
useDefaults: true,
directives: {
'connect-src': ["'self'", 'https:'],
'img-src': [
"'self'",
'data:',
'blob:',
'REPLACE_YOUR_MINIO_HOST_HERE',
],
'media-src': [
"'self'",
'data:',
'blob:',
'REPLACE_YOUR_MINIO_HOST_HERE',
],
upgradeInsecureRequests: null,
},
},
},
},
]
FAQs
minio provider for strapi ce 3.6.x and 4.x, private bucket supported(4.x only)
The npm package strapi-upload-minio-v4 receives a total of 11 weekly downloads. As such, strapi-upload-minio-v4 popularity was classified as not popular.
We found that strapi-upload-minio-v4 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.