Re:Tell HN: Ffmpeg vulnerability allows attacker to get file...
by anonfunction on Wednesday January 13, 2016 @03:02PM
(#10897039)
Can the malicious video file be an actual mp4 file? We're accepting video and running it through ffmpeg, however we first verify the file is an mp4 using https://golang.org/src/net/http/sniff.go
[ Parent
| on HN ]
Re:Tell HN: Ffmpeg vulnerability allows attacker to get file...
by ryanlol on Wednesday January 13, 2016 @04:22PM
(#10897612)
Possibly? Who knows? Parsers are complex and I doubt ffmpeg relies on file extensions to figure out the format.
Re:Tell HN: Ffmpeg vulnerability allows attacker to get file...
by ChALkeR on Wednesday January 13, 2016 @04:42PM
(#10897769)
It does not, that's covered in the original article.
Re:Tell HN: Ffmpeg vulnerability allows attacker to get file...
by anonfunction on Wednesday January 13, 2016 @05:26PM
(#10898104)
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?
Re:Tell HN: Ffmpeg vulnerability allows attacker to get file...
by ChALkeR on Wednesday January 13, 2016 @03:46PM
(#10897353)
But that code that you linked to does not verify that the file is mp4, moreover, mp4Sig call is commented out.
Re:Tell HN: Ffmpeg vulnerability allows attacker to get file...
by anonfunction on Wednesday January 13, 2016 @05:22PM
(#10898079)
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.
Re:Tell HN: Ffmpeg vulnerability allows attacker to get file...
by IceyEC on Thursday January 14, 2016 @07:57AM
(#10901051)
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.
Re:Tell HN: Ffmpeg vulnerability allows attacker to get file...
by anonfunction on Saturday January 16, 2016 @01:07AM
(#10914462)
That is correct, however the beginning of the file does have a signature: https://mimesniff.spec.whatwg.org/#signature-for-mp4