12.07.2015 Views

Bug Hunter Diary

Bug Hunter Diary

Bug Hunter Diary

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4.1 Vulnerability DiscoveryTo find the vulnerability I did the following:• Step 1: List the demuxers of FFmpeg.• Step 2: Identify the input data.• Step 3: Trace the input data.Step 1: List the Demuxers of FFmpegAfter getting the latest source code revision from the FFmpeg SVNrepository, I generated a list of the demuxers that are available in thelibavformat library, which is included with FFmpeg (see Figure 4-1).I noticed that FFmpeg separates most demuxers in different C filesunder the directory libavformat/.Figure 4-1: FFmpeg libavformat demuxersNoteFFmpeg development has moved to a Git repository, 2 and the SVNrepository is no longer updated. The vulnerable source code revision(SVN-r16556) of FFmpeg can now be downloaded from this book’swebsite. 3Step 2: Identify the Input DataNext, I tried to identify the input data processed by the demuxers.While reading the source code, I discovered that most demuxersdeclare a function called demuxername_read_header(), which usually52 Chapter 4

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!