Skip to content
Path traversal Disclosed report Intermediate

Arbitrary file read via ffmpeg HLS parser at https://www.flickr.com/photos/upload

The Flickr video upload feature used an FFmpeg installation that processed HLS playlists referencing external files, allowing an attacker to read local files such as /etc/passwd. The reporter also suggested it might be possible to escalate to SSRF, but did not test this.

asad0x01_ Follow

Originally disclosed on HackerOne

Critical 9.9 View original
  • Triaged in under an hour
  • Fixed in 29 days
  • Paid in 20 hours
  • Disclosed after 12 months

Summary: FFmpeg is a video and audio software that is used for generating previews and for converting videos. Your current installation allows HLS playlists that contain references to external files, which leads to local file disclosure.

Steps to Reproduce: 1.Download the attached file.

2.Go to https://www.flickr.com/photos/upload/ and upload the attached file.

3.Now go to https://www.flickr.com/cameraroll and you should be able to see contents of /etc/passwd.

Screenshot_2019-01-28_at_3.24.17_AM.png
Screenshot_2019-01-28_at_3.24.17_AM.png From the original on HackerOne

For clear view open the video from Photostream section.

Please let me know if you need any help :)

Impact

An attacker can read files of etc/passwd or other contents.Also what I've seen it is possible to escalate this vulnerability to SSRF(https://www.blackhat.com/docs/us-16/materials/us-16-Ermishkin-Viral-Video-Exploiting-Ssrf-In-Video-Converters.pdf).Since I don't have any server I couldn't test :(

The original report as published on HackerOne, by asad0x01_. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the FFmpeg build allowed HLS playlists to reference local files without restricting the protocol or path, so user-supplied playlists could read arbitrary files.

Impact

An attacker could read local files such as /etc/passwd, and the reporter suggested it might be possible to escalate to SSRF, though this was not tested.

What the attacker needed

Ability to upload a video file

How it was found

  1. Download the attached file.
  2. Go to the upload page and upload the attached file.
  3. Go to the camera roll and view the video to see the contents of /etc/passwd.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

FFmpeg is a tool that converts and previews videos. It can read a playlist file that tells it where to get video segments, and if those locations point to files on the server itself, FFmpeg will read them. By uploading a crafted playlist, an attacker could make the server show the contents of a local file like /etc/passwd in the video preview.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

More by asad0x01_

View all

2 more disclosed reports, best first.

More from Flickr

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.