Advisory

GHSA-9wjh-jr2j-6r4x

Also known as: None

Summary

Remote Code Execution in pi_video_recording

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2020-09-02 15:55 UTC
Modified
2020-08-31 18:35 UTC

Affected packages and fixes

pi_video_recording

npm · All systems

Affected

  • introduced 0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences