GHSA-9wjh-jr2j-6r4x

Suggest an improvement
Source
https://github.com/advisories/GHSA-9wjh-jr2j-6r4x
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-9wjh-jr2j-6r4x/GHSA-9wjh-jr2j-6r4x.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-9wjh-jr2j-6r4x
Published
2020-09-02T15:55:58Z
Modified
2020-08-31T18:35:14Z
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.

Database specific
{
    "cwe_ids":  [
        "CWE-20"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2020-08-31T18:35:14Z",
    "nvd_published_at":  null,
    "severity":  "HIGH"
}
References

Affected packages

npm / pi_video_recording

Package

Name
pi_video_recording
View open source insights on deps.dev
Purl
pkg:npm/pi_video_recording

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-9wjh-jr2j-6r4x/GHSA-9wjh-jr2j-6r4x.json"