
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).
easy-firebase-db
Advanced tools
A thin wrapper around the firebase npm module. Provides easy firebase authentication via environment variables, and exports basic database operations like GET, PUT, DEL. These are not firebase-specific, enabling applications that use db-api to easily switch databases. Also includes an interactive cli that provides a BASH-like interface for directly calling database operations.
npm install --production
If you wish to develop with a slow or absent Internet connection, you can use firebase-server, a mocked Firebase server that is run on your computer.
Simply do the following:
127.0.0.1 localhost.firebaseio.test
to your hosts file.On OS X and Linux, the hosts file is located at /etc/hosts
. On Windows, it is located at %SystemRoot%\System32\drivers\etc\hosts
.
mockFirebase
environment variable to true.You can do this by adding mockFirebase=true
to your leanonme-engine .env
file or by running the command export mockFirebase=true
.
node repl.js <REL_PATH_TO_DOT_ENV_FILE>
DB> PUT meaning/of/life 42
DB> GET meaning/of/life
DB> PUSH list/of/numbers 42
DB> MOVE meaning/of/life monty/python
DB> DEL monty/python
Note that no spaces are allowed in the path or the data.
BAD:
DB> PUT knights/who {say: "ni"}
Copy data
DB> GET path/in/db | PUT new/path/in/db
Load object from the module.exports line of a js file, into the database.
DB> REQUIRE data.js | UPDATE path/in/db
npm install
npm test
Look at existing tests, and check out MochaJS and ArgueJS
node_modules/mocha/bin/mocha --reporter markdown > API.md
FAQs
Firebase Database Api and CLI
The npm package easy-firebase-db receives a total of 0 weekly downloads. As such, easy-firebase-db popularity was classified as not popular.
We found that easy-firebase-db 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.