Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
vuetify-file-browser-server
Advanced tools
Backend for Vuetify File Browser Component
git clone https://github.com/semeniuk/vuetify-file-browser-server
cd vuetify-file-browser-server
cp .env.defaults .env
Then set configuration properties in .env
file. After this run the server:
npm start
npm i vuetify-file-browser-server
const express = require("express"),
app = express(),
cors = require("cors"),
bodyParser = require("body-parser"),
path = require("path"),
sdk = require("vuetify-file-browser-server/sdk");
// enable CORS
app.use(cors());
// parse incoming request body
app.use(bodyParser.urlencoded({ extended: true }));
app.use(bodyParser.json());
// get AWS configuration from process.env
const { AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION, AWS_S3_BUCKET, FILEBROWSER_AWS_ROOT_PATH } = process.env;
// setup routes
app.use("/storage", sdk.Router([
new sdk.LocalStorage(path.resolve(__dirname, "./files")),
new sdk.S3Storage(AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION, AWS_S3_BUCKET, FILEBROWSER_AWS_ROOT_PATH)
], {
uploadPath: path.resolve(__dirname, "./upload")
}));
app.listen(process.env.PORT || 8081);
See vuetify-file-browser-server/sdk/Router
for example how to use LocalStorage
and S3Storage
1.0.2 - 2019-09-26
FILEBROWSER_ROOT_PATH
environment variable renamed to FILEBROWSER_LOCAL_ROOT_PATH
;FILEBROWSER_AWS_ROOT_PATH
environment variable added;FAQs
Server for Vuetify File Browser
The npm package vuetify-file-browser-server receives a total of 16 weekly downloads. As such, vuetify-file-browser-server popularity was classified as not popular.
We found that vuetify-file-browser-server 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.