Command Injection Affecting extra-ffmpeg package, versions *
Snyk CVSS
Attack Complexity
Low
Confidentiality
High
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 ID SNYK-JS-EXTRAFFMPEG-607911
- published 20 Aug 2020
- disclosed 20 Aug 2020
- credit d3lla
How to fix?
A fix was pushed into the master
branch but not yet published.
Overview
extra-ffmpeg is a Decode, encode, transcode, mux, demux, stream, filter, and play media through machine (via "ffmpeg").
Affected versions of this package are vulnerable to Command Injection. It is possible to inject arbitrary commands due to insecure command formatting. User input inserted as part of the os
parameter is passed to the child_process.exec
function without any check.
PoC
const ffmpeg = require('extra-ffmpeg');
ffmpeg.sync([{y: true}, {i: '`touch HACKED`'}, {acodec: 'copy', o: 'aud.mp3'}]);