pi_video_recording@1.0.0 vulnerabilities

Module for raspberry-pi video recording & live

Direct Vulnerabilities

Known vulnerabilities in the pi_video_recording package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • H
Remote Code Execution (RCE)

pi_video_recording is a Raspbian with raspivid module for NPM.

Affected versions of this package are vulnerable to Remote Code Execution (RCE). Due to insufficient input validation, the server used by raspberry-pi video recording & live executes arbitrary code through the /api/record/start endpoint.

POC

curl -POST -H "Content-Type: application/json" -d '{"filename": " || touch /tmp/worked;"}

Sending the above HTTP request to a http://localhost:5000/api/record/start creates a new file within the /tmp/ directory of the target server.

How to fix Remote Code Execution (RCE)?

There is no fixed version for pi_video_recording.

*