logoalt Hacker News

thaumasiotesyesterday at 11:16 PM2 repliesview on HN

> Isn't it safe to assume that no video file can escape the browser decoding sandbox?

Why would that be safe to assume? If that were a reasonable assumption, you could just as well assume that it's safe to run ffmpeg.


Replies

Denvercoder9yesterday at 11:44 PM

I'm not up-to-speed with the current state of sandboxing in browsers, but in principle it's (on modern operating systems) not especially hard for them to sandbox the decoding into a separate process with basically no privileges beyond rendering a video stream. It's a bit trickier if we're only considering demuxing and delegating decoding to the hardware, but that's a much smaller attack surface.

A manually run ffmpeg on the command line does nothing to restrict its privileges, and its security model has very little interest in doing so, while browsers very much have.

show 1 reply
ttoinouyesterday at 11:29 PM

The parent does argues it is safer to sandbox ffmpeg yes