Live data from Hacker News

FFmpeg and a thousand fixes

googleonlinesecurity.blogspot.com

1–10 of 150 posts

Re: FFmpeg and a thousand fixes

#2
It is interesting that YouTube isn't mentioned in this blogpost, despite there being good evidence that ffmpeg has been used there[1].

The fuzz testing they mention is based around constructing malformed (or at least "exotic") input files and then monitoring for failures... ie simulating exactly the kind of attack someone might use against YouTube's transcoding infrastructure.

[1] http://multimedia.cx/eggs/googles-youtube-uses-ffmpeg/

Re: FFmpeg and a thousand fixes

#5
This is cool. I wonder how many of the bugs led to code execution?

If you managed to execute code, what privileges do you have in Chrome? I hope that Chrome was using OS sandboxing for video playing. After all, if they found 1000 bugs, there are probably a few more zero day's available.

Does playing Flash video in Chrome/Firefox end up using ffmpeg? I'm not that knowledgeable about how video works, but there are probably at least two execution contexts: playing .mp4 natively in Chrome, or playing it via a Flash container.

Re: FFmpeg and a thousand fixes

#6
Once again I am happy that ‘Segmentation fault. Core dumped.’ is a perfectly reasonable reaction to malformed user input in my field of work, which only increases my respect for those who write real-world software. Thanks! :)

Re: FFmpeg and a thousand fixes

#7
post #4

I get a kick out of the fact that they recommend not using FFMPEG but they say that Chrome uses it.

> I get a kick out of the fact that they recommend not using FFMPEG

More specifically Google is recommending you don't use it to "process untrusted media files"

Re: FFmpeg and a thousand fixes

#9
post #5

This is cool. I wonder how many of the bugs led to code execution? If you managed to execute code, what privileges do you have in Chrome? I hope that Chrome was using OS sandboxing for video playing. After all, if they found 1000 bugs, there are probably a few more zero day's available. Does playing Flash video in Chrome/Firefox end up using ffmpeg? I'm not that knowledgeable about how video works, but there are prob…

Playing .mp4's natively uses FFmpeg, but Flash video does not. Both plugins are sandboxed in a "privilege separation" environment that they mention in the post.

Re: FFmpeg and a thousand fixes

#10
post #5

This is cool. I wonder how many of the bugs led to code execution? If you managed to execute code, what privileges do you have in Chrome? I hope that Chrome was using OS sandboxing for video playing. After all, if they found 1000 bugs, there are probably a few more zero day's available. Does playing Flash video in Chrome/Firefox end up using ffmpeg? I'm not that knowledgeable about how video works, but there are prob…

> I wonder how many of the bugs led to code execution?

Quite a few. We're often affected with VLC, and code execution is easy to get to. But with VLC, you're "only" in userland.

Post reply on HN