FFmpeg Local File Disclosure
Steps to reproduce
- Please download the script from @neex to your "attacker" instance
- Execute the script with your desired parameters:
python3 gen_xbin_avi.py file:///etc/hostname bugbounty.avi
- Upload the generated AVI file to your target site (e.g. within a 'video upload page')
- The target may process the malicious HLS inclusion with FFmpeg on the server-side.
- Play the uploaded AVI via the target site. If successful, your desired file will be disclosed within the video.
Alternative scripts exist which may generate different HLS formats or lead to the desired file being disclosed in a different manner.