Hacker Newsnew | past | comments | ask | show | jobs | submit | ChALkeR's commentslogin

The correct figure is 10%.


I tried hard to cover all the possible question. Please, read the post _carefully_ before asking or proposing anything.


Note: this actually means that everyone should regenerate all their key-pairs after updating.


And no, switching Buffer(number) to be zero-filled will bring more harm now, even from the security point of view. The best course of action imo is to deprecate Buffer(number) whatsoever and replace it with two separate methods. More info here: https://github.com/nodejs/node/issues/4660#issuecomment-1712...

I will make a separate post about that soon enough.



This note does not have anything actually new, but I have seen several people who are not aware of that.


By the way, mplayer is also affected, even after installing a fixed version of ffmpeg.


Looks like it bundles libavformat internally.


It does not, that's covered in the original article.


It does not what? Can you share quotes from the article or the translated article source you read?

Confusion:

Are you saying that ffmpeg doesn't detect file by extension?

or

Are you saying that ffmpeg won't execute the malicious code if it's found appended to a valid video?


But that code that you linked to does not verify that the file is mp4, moreover, mp4Sig call is commented out.


It verifies that the beginning of a file is mp4 format. I'm actually running go 1.6 which does have the mp4 sniffing enabled.


I was under the impression than MP4 could have all of its format specific headers at the end of the file just as well as the beginning according to the spec.


That is correct, however the beginning of the file does have a signature: https://mimesniff.spec.whatwg.org/#signature-for-mp4


Short English description:

ffmpeg vulnerability allows reading local files and sending them over network using a specially crafted video file. This affects not only file conversion (including thumbnail generation), but also any other operations that involve ffmpeg processing your file — for example, ffprobe is affected. This is not remote code execution, the vulnerability is limited to reading local files and sending them over network, but that is already bad enough.

For example, a specially crafted «video» file uploaded to your server by an attacker could read your website config/private keys/etc and send that to the attacker once you try to generate a thumbnail for it or just probe it with ffmpeg.

On a PC, you don't even need to open a file to get affected, just downloading it would be enough in some cases — video files are processed with ffmpeg for filemanager thumbnails (i.e. KDE Dolphin), for search indexers, etc.

That vulnerability is public, has code samples to reproduce and build a malicious file, and is not fixed atm.

The recommended quick fix is to rebuild ffmpeg without network support (--disable-network configure flag).

Original post: http://habrahabr.ru/company/mailru/blog/274855/

The original text is in Russian, use https://translate.yandex.com or https://translate.google.com/ to read it.


Previosly posted as https://news.ycombinator.com/item?id=10893301, but that eneded up in [ask] due to my mistake.


Tell me if I should not have double-posted it here, I will delete one of those posts then.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: