Zero-Day Vulnerability Discovered In FFmpeg Lets Attackers Steal Files Remotely 72
prisoninmate writes: A zero-day vulnerability in the FFmpeg open-source multimedia framework, which is currently used in numerous Linux kernel-based operating systems and software applications, also for the Mac OS X and Windows platforms, has been discovered recently by Russian programmer Maxim Andreev in the current stable builds of the software. It appears to let anyone with the necessary skills hack a computer to read local files on a remote machine and send them over the network using a specially crafted video file. Arch Linux devs already rebuilt their FFmpeg packages without the AppleHTTP and HLS demuxers.
Re: why so hung up about arch? (Score:3, Insightful)
Don't gentoo users choose their own build settings / features by default? What do you want the article to say? "Most gentoo users probably have the problem fixed by themselves already too but we don't really know?"
Re: (Score:2)
Arch users can choose to build packages themselves using AUR that has multiple GUI/CLI frontends like yaourt or pacmanxg. but it's not a mess like debain apt-build and actually integrates well with the standard pacman system.
Re: (Score:1)
Right? With all these cores, world compiles quickly.
Re: (Score:2)
Neither does Ubuntu, since everyone uses libav instead.
Re: (Score:2)
Libav seems to be reacting to this as well with a quick fix to blacklist HTTP in HLS. Whether the same vulnerability or a different one I don't know.
https://lists.libav.org/piperm... [libav.org]
Re: (Score:2)
While Michael did resign as official leader, he is still very involved and seems to be defacto leader.
Watching the split was like watching a couple where you're friends with both going through a messy breakup. You can see both sides but don't want to take sides as they both have a point. In FFmpeg vs libav, it was mostly a conflict about the workflow. It was kind of disgusting how the (future) libav developers handled things, namely trying to hijack FFmpeg during the move to git.
Re: (Score:2)
Very wide impact. (Score:5, Informative)
Ffmpeg is used in some capacity in just about every video application I can think of. VLC, Kodi/XBMC, MythTV, Handbrake, Plex...
Re: (Score:2)
Re: (Score:1)
Even worse, Firefox can use FFMPEG for playing HTML5 Video.
I think I'm going to remove the package until a new, fixed version comes out, or at least detailed information on how to migrate the vulnerability until a fix comes along.
Re:Very wide impact. (Score:5, Informative)
I think I'm going to remove the package until a new, fixed version comes out, or at least detailed information on how to migrate the vulnerability until a fix comes along.
The article suggests a mitigation, however it sounds like it may just be easier to remove the package until your upstream provides updates...
James Darnley of FFmpeg suggests that disabling HLS (HTTP Live Streaming) while building the package should do the trick until a fix is committed.
It is also possible to fix the issue by rebuilding the FFmpeg packages without network support, using the --disable-network configure flag, but that seems a bit too much.
A commenter in the arch bug report listing also says:
Btw, one could also do --disable-demuxer='hls,applehttp', but rebuilding without network support looks like a more robust solution for now (until the issue is inspected and fixed upstream).
https://bugs.archlinux.org/tas... [archlinux.org]
My understanding is the specific bug reported in russian is exploited via HLS, however it is unconfirmed if the same method could be used and exploited in other network stream demuxers yet.
Re:Very wide impact. (Score:5, Interesting)
Re:Very wide impact. (Score:5, Informative)
Hosting conversion software (Score:3)
We use ffmpeg to process video files uploaded by customers. We'll be patching our app first thing in the morning. This is a big deal for us.
Re: Hosting conversion software (Score:1)
Why are you building with network support for that use-case?
Re: (Score:3)
Re: (Score:2)
https://lists.libav.org/piperm... [libav.org] points to some worries.
Re: (Score:1)
Does libav have it too? (Score:1)
Does ffmpegs fork have the bug as well?
Re: (Score:1)
I have ffmpeg installed on Windows. I don't believe Windows uses it in any way, except when I launch it manually to convert a file. Am I still at risk (even when I don't choose to open a malicious file)?
Re: (Score:2)
Media player classic on windows uses ffdshow which makes use of ffmpeg. Iirc mplayer also uses ffmpeg. But they are not the only ones a lot of video players rely on ffmpeg on the back end.
That's the sound (Score:2)
of millions of devleopers and users screaming in terror all at once...
I feel something terrible has happened...
Re: (Score:2)
FFmpegd (Score:2, Funny)
Don't worry, Lennart is busy trying to absorb FFmpeg into systemd. Once there's some Poettering shitcode in FFmpeg, it'll cease to work at all and the vulnerability will have been neutralized.
Re: (Score:2)
no, upon fault the Poettering systemd FFmpeg code will go backwards, playing the movie to the start, reset all audio settings to default, and then double-clicking the movie file in your gui to replay it again
Re: (Score:1)
Heh.
That gives me an idea, though. What about a setting that plays back movies in Momento [imdb.com] style? Maybe some kind of heuristic to determine where scenes start and end?
Re: (Score:2)
I think you meant http://www.imdb.com/title/tt02... [imdb.com]
That imdb link is to a 5 minute short.
Re: (Score:1)
Note to self: prepare to add media-video/ffmpeg to the Anti-Lennartware section of /etc/paludis/package_mask.conf!
(Disclaimer: I haven't used systemd yet, kind of been meaning to so I can also play around with KVM at the same time, but I completely believe the horror stories based on my experience with pulseaudio.)
Re: (Score:2)
It works pretty well for me at least. I don't use Exherbo's repos, but I've found paludis' correctness, while aggravating at time, to at least be correct in that it doesn't break my system in the weird ways Gentoo portage does.
If you have a Gentoo box for 3 or 4 years, eventually it'll get weirdly broken with emerge. That's why I even sought out paludis.
Re: (Score:2)
I have gentoo boxes which are more than 10 years old, so long as you regularly update emerge you don't have any major problems... If you leave it for a long time, then do an emerge sync things do get broken because the installed version of portage won't support the newly synced ebuilds.
Re: (Score:2)
I've had systemd running on my linux machines for years now. Just seems to work and I am much happier to create a simple ini file to start a custom daemon than to mess with horrid, buggy, complex, and fragile init scripts.
Now this. This is news! (Score:2)
This is news! A new critical zero-day vulnerability affecting millions of computers.
And here we thought drm free video files were safe.
Whelp another good reason to have a decent firewall.
Re:Now this. This is news! (Score:4, Informative)
Whelp another good reason to have a decent firewall.
Once you put a malformed video file on a system with a vulnerable ffmpeg, and ffmpeg is used to access the file, it makes an outbound connection. Most firewalls are configured to happily pass along anything originated from the inside network.
Re: (Score:2)
a well-and-paranoidly-configured firewall, then :)
Re: (Score:2)
Personally I don't like tinywall because it doesn't ask me about everything like zonealarm did but its a fraction of the size. I have vlc installed but I have never used it for streaming as such its has never been given permission through the local firewall. But yes if you use it to stream video you would most likely have it set to always allow. I don't know widely used it is for streaming but I personally haven't used it to stream video in the last what 5 years or so.
And yes this requires the user to at mi
Re: (Score:2)
Yet another reason to block this crap at the hosts file. And to update it frequently.
Re: (Score:2)
Works fine if you also disable DNS and then only add hosts you actually want to access to the hosts file.
Re: (Score:2)
There are just some small scalability issues involved in that process.
Re: (Score:2)
None at all using what does the job for you http://it.slashdot.org/comment... [slashdot.org]
I couldn't see where the app you referenced sources its block list, but I believe what I use (pfBlockerNG [pfsense.org]) is probably better.
I maintain that scalability is a big issue you aren't addressing. It's probably fine and certainly better than nothing for one or two Windows desktops, but what about even a small SOHO network that could contain any combination of desktop, mobile, and server operating systems, not to mention embedded devices that may include ffmpeg, like smart TVs and NAS boxes?
WTF (Score:5, Funny)
Submitted by prisoninmate. Presumably he's in for crimes against the English language.
He's certainly familiar with really long sentences.
Thank you (Score:2)
Any news to who could be using the ability to create and track media files in the wild?
Time to alter the out going software firewall
-83 day !!! (Score:1)
instead of contacting developers he:
only then he contacted developers on 2016-01-13...
But I thought open source software was perfect! (Score:1)