
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).
github.com/sirius2001/layout
.
├── config.json # 服务配置文件
├── docker-compose.yml # Docker Compose 配置文件
├── service # 二进制可执行文件
└── start.sh # 启动脚本
config.json
: 配置文件,确保其内容正确。docker-compose.yml
: Docker Compose 配置文件。service
: 你的二进制文件,确保它是可执行的。start.sh
: 启动脚本。构建镜像:
docker-compose build
启动服务:
docker-compose up -d
这将会在后台启动服务。可以使用以下命令查看服务状态:
docker-compose ps
查看日志: 可以使用以下命令查看服务日志:
docker-compose logs -f
赋予启动脚本可执行权限:
chmod +x start.sh
运行启动脚本:
./start.sh start.sh
启动脚本将会使用 Docker Compose 启动服务,并在后台运行。
使用 Docker Compose 停止服务:
docker-compose down
这将停止并删除所有与服务相关的容器。
config.json
level
: 日志级别(如 info、error)。dir
: 日志文件目录。max_age
: 最大保留天数。duration
: 轮转频率。max_size
: 最大文件大小(MB)。enable
: 是否启用 Web 服务器。addr
: 监听地址(如 0.0.0.0:8081
)。enable
: 是否启用 gRPC 服务器。addr
: 监听地址(如 0.0.0.0:8181
)。addr
: Kafka 地址(如 127.0.0.1:9091
)。topic
: 使用的主题名称。FAQs
Unknown package
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.