
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).
This module provides an easy mechanism to connect to MongoDb along with various monitoring options that help debug issues at database level
Parameters -
mongodb://username:password@host_name:port_number/database_name
logger = Pass a logger handle
log =
|Option |Value |
|-----------------------|-----------------------------|
|commandlogger |True | False (Default: True) |
|serverlogger |True | False (Default: False)|
|heartbeatlogger |True | False (Default: False)|
|topologylogger |True | False (Default: False)|
|connectionpoollogger |True | False (Default: False)|
Get the client handle by calling connect() of the Database class.
import mongodb_util
obj = mongodb_util.Database("test_URI")
database_client = obj.connect()
database = database_client.<database name>
Read from a collection
database.<collection_name>.find()
Write into a collection
database.<collection_name>.insert({‘a’:1})
To install mongodb_util, along with the tools you need to develop and run tests, run the following in your virtualenv:
$ pip install -e .[dev]
FAQs
This module provides an easy mechanism to connect to MongoDb along with various monitoring options that help debug issues at database level
We found that mongodb-util demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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.