GPS metadata preserved when converting HEIF to PNG
When HEIC/HEIF images are uploaded to Reddit, they are converted to PNG but GPS metadata is not stripped. An attacker could download these PNGs and extract the GPS coordinates, revealing the location where the photo was taken.
- Triaged in under an hour
- Fixed in 54 days
- Paid in 6 days
- Disclosed after 10 months
Summary:
Users who upload HEIC/HEIF files (sometimes called "Live Photos") to reddit.com or old.reddit.com expect their GPS metadata to be stripped before being displayed publicly. Uploaded HEIC files are converted to PNG, but GPS metadata is incorrectly preserved, in violation of user privacy. The problem is likely device- and browser-agnostic, and mostly affects Safari users on Mac since other devices and browsers either automatically convert to a different format or do not permit HEIC files to be uploaded through the usual user flow.
Impact:
All users who have submitted HEIC files have their GPS locations exposed publicly, which can be scraped with little detection and no authorization.
Steps To Reproduce:
- Take a Live photo on an iPhone 11 Pro with GPS location tagging enabled
- Sync the photo to iCloud Photos
- Upload HEIF/HEIC file to Reddit.com via Safari on macOS Big Sur (Example F1138749)
- Submit post to any community
- Visit the post and click the link to get to the https://i.redd.it/FILENAME.png file
- Download the file
Supporting Material/References:
Expected behavior is no GPS metadata, but you can see that the metadata is present in these examples:
- https://i.redd.it/s7vjzg05w6861.png (Safari)
- https://i.redd.it/6wnf9cf637861.png (Safari)
- https://i.redd.it/d1zqv32297861.png (Safari)
- https://i.redd.it/8ytwrr5re7861.png (IE)

I was also able to reproduce this flow through Internet Explorer on Windows 10 (but not Edge), which means the issue is likely device- and browser-agnostic.
However, when I tested the following flows, I found that GPS metadata was correctly removed for:
- Reddit iOS app on iPhone
- Safari on iPad (local testing shows iOS converts it to a JPEG before uploading)
For some tests, I wasn't able to upload HEIC photos at all:
- Chrome and Firefox on Mac (HEIC not supported by image/* MIME filter on accept attribute)
- Chrome, Firefox, and Edge on Windows (Windows does not recognize HEIC as an image file)
- Safari on iPhone (no option to upload photos on mobile view)
- Safari on Mac after having changed the file extension from .HEIC to .PNG (not actually changing the file otherwise)
It seems likely that only Safari for Mac and Internet Explorer allow HEIC files to be uploaded directly to Reddit. All other methods I've tried seem to result in normal metadata scrubbing.
I was able to find location data for at least one other user in the wild: https://i.redd.it/1hn2uafmwu661.png (post). Downloading this image, I can see their GPS location:

I originally discovered this when spot-checking an image that I uploaded yesterday. The post can be found here, and the image was here. I have since deleted the image.
Impact
All users who have submitted HEIC files have their GPS locations exposed publicly, which can be scraped with little detection and no authorization.
Attachments

Context
Reddit lets users attach images to posts, and those images are served publicly from i.redd.it. When a user uploads a photo, the platform is expected to strip sensitive metadata such as GPS coordinates before the image is displayed publicly. The report concerns HEIC/HEIF files, the format Apple uses for photos taken on iPhones (sometimes called "Live Photos"). Reddit converts uploaded HEIC files to PNG, but according to the researcher the GPS metadata survives that conversion and ends up in the publicly served PNG.
The affected assets are www.reddit.com and old.reddit.com, with the resulting files hosted at https://i.redd.it/FILENAME.png. The weakness is classified as a privacy violation and rated high severity.
Setup
The researcher's reproduction environment:
- An iPhone 11 Pro taking a Live photo with GPS location tagging enabled.
- iCloud Photos to sync the photo.
- Safari on macOS Big Sur to upload the HEIF/HEIC file to Reddit.
- A Reddit account able to submit a post to any community.
No special privileges are needed: the uploader is an ordinary user, and the exposed data is readable by anyone who can fetch the public image URL.
Finding it
The researcher originally discovered the issue while spot-checking an image they had uploaded the day before. The post was in r/flying, and the image was served at https://i.redd.it/5oe2cj40q6861.png. The researcher has since deleted that image.
What made it look wrong is the expectation that metadata is scrubbed on upload. Instead, downloading the converted PNG and inspecting it showed the GPS metadata still present. The researcher lists several example images containing the metadata and found location data for at least one other user in the wild.
Exploitation
Step 1: Create a photo with GPS metadata
Take a Live photo on an iPhone 11 Pro with GPS location tagging enabled, then sync the photo to iCloud Photos. The resulting HEIC file carries the location metadata that the test is designed to detect.
Step 2: Upload the HEIC file through Safari
Upload the HEIF/HEIC file to Reddit.com via Safari on macOS Big Sur. The researcher's example upload is referenced as F1138749. The upload goes through the normal post creation flow.
Step 3: Submit the post
Submit the post to any community. No special configuration is required.
Step 4: Reach the converted file
Visit the post and click the link to get to the converted image:
https://i.redd.it/FILENAME.png
The server has converted the HEIC upload to PNG and serves it publicly under this URL.
Step 5: Download and inspect
Download the file. The expected behaviour is no GPS metadata, but the metadata is present. The researcher lists these examples as containing it:
https://i.redd.it/s7vjzg05w6861.png (Safari)
https://i.redd.it/6wnf9cf637861.png (Safari)
https://i.redd.it/d1zqv32297861.png (Safari)
https://i.redd.it/8ytwrr5re7861.png (IE)

The screenshot shows the metadata present in one of these converted PNG files.
Step 6: Reproduce outside Safari
The researcher also reproduced the flow through Internet Explorer on Windows 10 (but not Edge), which indicates the issue is likely device- and browser-agnostic.
Step 7: Find an affected user in the wild
The researcher located an image from another user that still carried location data:
https://i.redd.it/1hn2uafmwu661.png
The corresponding post was in r/BotanicalPorn:
https://www.reddit.com/r/BotanicalPorn/comments/kil6om/prunus_mume_buds_encased_in_ice_oc/
Downloading that image revealed the uploader's GPS location.

The screenshot shows the location data recovered from that publicly served image.
Flows that behaved correctly
When the researcher tested the following flows, GPS metadata was correctly removed:
- Reddit iOS app on iPhone.
- Safari on iPad. Local testing showed iOS converts the photo to a JPEG before uploading.
Flows where HEIC could not be uploaded at all
For some tests the researcher could not upload HEIC photos at all:
- Chrome and Firefox on Mac: HEIC is not supported by the
image/*MIME filter on theacceptattribute. - Chrome, Firefox and Edge on Windows: Windows does not recognise HEIC as an image file.
- Safari on iPhone: there is no option to upload photos on the mobile view.
- Safari on Mac after changing the file extension from
.HEICto.PNGwithout otherwise changing the file.
The researcher's conclusion is that only Safari for Mac and Internet Explorer appear to allow HEIC files to be uploaded directly to Reddit, and that all other methods tried result in normal metadata scrubbing.
Root cause
The report does not identify the code responsible. What it establishes is the behaviour: HEIC/HEIF uploads are converted to PNG, and the conversion preserves GPS metadata instead of stripping it. The report does not explain why the conversion preserves the metadata. The report does not say which component performs the conversion or where the scrubbing is skipped.
Impact
All users who have submitted HEIC files have their GPS locations exposed publicly. The data can be scraped with little detection and no authorisation, because the converted PNGs are served from public URLs. The exposure is passive: an attacker does not need to interact with the uploader, only to fetch and parse the images.
The researcher hedges the scope: the issue is likely device- and browser-agnostic, and mostly affects Safari users on Mac, since other devices and browsers either convert to a different format or do not permit HEIC uploads through the usual user flow. The in-the-wild example shows that at least one other user's location was exposed.
Fix
What it implies is that the HEIC-to-PNG conversion should strip GPS metadata, the same way the other upload paths do, so that every image served from i.redd.it is scrubbed regardless of the source format or the browser used to upload it.
Variants to test
- Other formats that carry EXIF. Upload images in formats other than HEIC (for example TIFF or other camera raw formats) through every browser that accepts them, then download the served file and check for GPS and other EXIF fields. A positive result is location data present in the public file.
- Other conversion paths. Trigger any server-side format conversion the platform offers (for example HEIC to JPEG, or PNG to WebP) and inspect the output. A positive result is metadata that survives the conversion.
- Other browsers and platforms. Repeat the HEIC upload from browsers and operating systems the report did not cover, including older or less common ones. A positive result is a successful HEIC upload whose converted output retains GPS metadata.
- Extension and MIME mismatches. Upload a file whose extension or declared MIME type does not match its contents, as the researcher tried with
.HEICrenamed to.PNG, and check whether the server still processes it and preserves metadata. A positive result is a served file with the original metadata intact. - Mobile and app upload paths. Test the mobile web view and native apps on other platforms, since the report found the iOS app and iPad Safari scrubbed correctly. A positive result is any path that serves an image with GPS data.
- Scraping at scale. Enumerate public image URLs and parse them for GPS tags to estimate how many users are affected. A positive result is a non-trivial number of images with location data, which confirms the exposure is systematic rather than isolated.
What happened, in plain words
Reddit lets people attach photos to their posts. Once a post is published, the attached image is served from a public web address on i.redd.it, so anyone with the link can open or download it. Before an image is shown publicly, Reddit is expected to remove private details that cameras and phones quietly store inside photo files, such as the GPS coordinates of where the picture was taken.
This report is about a type of photo file called HEIC/HEIF, which is the format Apple uses for photos taken on iPhones (sometimes called "Live Photos"). When someone uploads a HEIC file, Reddit converts it into a PNG file, a different image format. According to the researcher, that conversion keeps the GPS metadata instead of removing it, so the location ends up inside the PNG that anyone can download.
The affected sites are www.reddit.com and old.reddit.com, and the resulting files are hosted at https://i.redd.it/FILENAME.png. The weakness is classed as a privacy violation and rated high severity.
A quick word on the key idea, metadata. Think of a photo file as an envelope: the picture is the letter inside, and metadata is everything written on the outside of the envelope, such as when it was taken, with what device, and where. GPS metadata is the "where" part. Removing it before publishing is like tearing off the part of the envelope that shows your home address before handing the letter to a stranger.
Setting up the test
The researcher's reproduction environment was:
- An iPhone 11 Pro taking a Live photo with GPS location tagging enabled.
- iCloud Photos to sync the photo.
- Safari on macOS Big Sur to upload the HEIF/HEIC file to Reddit.
- A Reddit account able to submit a post to any community.
No special privileges are needed. The uploader is an ordinary user, and the exposed data is readable by anyone who can fetch the public image address. In security terms, this is a case where the attacker needs nothing more than a browser and the public link.
Finding it
The researcher originally found the issue while spot-checking an image they had uploaded the day before. The post was in r/flying, and the image was served at https://i.redd.it/5oe2cj40q6861.png. The researcher has since deleted that image.
What made it look wrong was the expectation that metadata is scrubbed on upload. Instead, downloading the converted PNG and inspecting it showed the GPS metadata still present. The researcher lists several example images containing the metadata and found location data for at least one other user in the wild.
"Scrubbing" here simply means cleaning the file: removing the private parts of the metadata before the file is published. "In the wild" means on real, live posts made by other people, not just in the researcher's own test.
Exploitation
Step 1: Create a photo with GPS metadata
Take a Live photo on an iPhone 11 Pro with GPS location tagging enabled, then sync the photo to iCloud Photos. The resulting HEIC file carries the location metadata that the test is designed to detect.
Why this step: you need a file that definitely contains GPS data, otherwise a clean result would prove nothing. Enabling location tagging guarantees the data is there to begin with.
Step 2: Upload the HEIC file through Safari
Upload the HEIF/HEIC file to Reddit.com via Safari on macOS Big Sur. The researcher's example upload is referenced as F1138749. The upload goes through the normal post creation flow.
Why this step: the upload is done the way any ordinary user would do it, through the normal post creation flow, so the test reflects real behaviour rather than a special setup.
Step 3: Submit the post
Submit the post to any community. No special configuration is required.
Why this step: the image only becomes publicly served once the post is published, which is the moment the privacy question matters.
Step 4: Reach the converted file
Visit the post and click the link to get to the converted image:
https://i.redd.it/FILENAME.png
Line by line: this is a web address (a URL). https:// means the page is fetched over an encrypted connection. i.redd.it is the server that hosts Reddit's images. FILENAME.png is the name of the converted file, ending in .png, which tells you the server has turned the HEIC upload into a PNG. The server has converted the HEIC upload to PNG and serves it publicly under this address.
Why this step: the original HEIC file is not what the public sees. The public sees the converted PNG, so that is the file that has to be checked.
Step 5: Download and inspect
Download the file. The expected behaviour is no GPS metadata, but the metadata is present. The researcher lists these examples as containing it:
https://i.redd.it/s7vjzg05w6861.png (Safari)
https://i.redd.it/6wnf9cf637861.png (Safari)
https://i.redd.it/d1zqv32297861.png (Safari)
https://i.redd.it/8ytwrr5re7861.png (IE)
Line by line: each line is one public image address, followed in brackets by the browser used to upload it. The first three were uploaded through Safari, the last through Internet Explorer (IE). All four are PNG files served from i.redd.it, and all four still contained the GPS metadata.

The screenshot shows the metadata present in one of these converted PNG files.
Why this step: downloading the public file and looking inside it is the only way to know whether the private data survived. The expected behaviour is no GPS metadata, so finding it is the proof.
Step 6: Reproduce outside Safari
The researcher also reproduced the flow through Internet Explorer on Windows 10 (but not Edge), which indicates the issue is likely device- and browser-agnostic.
"Device- and browser-agnostic" means the problem is not tied to one particular phone or one particular browser. If it happens in more than one place, it is more likely to be a flaw in how the server handles the file than a quirk of one browser.
Step 7: Find an affected user in the wild
The researcher located an image from another user that still carried location data:
https://i.redd.it/1hn2uafmwu661.png
The corresponding post was in r/BotanicalPorn:
https://www.reddit.com/r/BotanicalPorn/comments/kil6om/prunus_mume_buds_encased_in_ice_oc/
Line by line: the first address is the public image file itself, hosted on i.redd.it. The second is the Reddit post page where that image was shared, in the community r/BotanicalPorn. Downloading that image revealed the uploader's GPS location.

The screenshot shows the location data recovered from that publicly served image.
Why this step: finding a real post by someone else shows the problem is not limited to the researcher's own account. It means real users were already exposed.
Flows that behaved correctly
When the researcher tested the following flows, GPS metadata was correctly removed:
- Reddit iOS app on iPhone.
- Safari on iPad. Local testing showed iOS converts the photo to a JPEG before uploading.
A "flow" here just means the route a photo takes from the phone to Reddit. For Safari on iPad, local testing showed iOS converts the photo to a JPEG before uploading.
Flows where HEIC could not be uploaded at all
For some tests the researcher could not upload HEIC photos at all:
- Chrome and Firefox on Mac: HEIC is not supported by the
image/*MIME filter on theacceptattribute. - Chrome, Firefox and Edge on Windows: Windows does not recognise HEIC as an image file.
- Safari on iPhone: there is no option to upload photos on the mobile view.
- Safari on Mac after changing the file extension from
.HEICto.PNGwithout otherwise changing the file.
The accept attribute is a setting on a file-picker in a web page that tells the browser which kinds of files to offer. image/* means "any image type". A MIME type is the label a file carries saying what kind of file it is. If the browser does not treat HEIC as an image, the picker will not offer it. Changing the extension from .HEIC to .PNG only renames the file; the contents stay the same, and that attempt did not get the file uploaded.
The researcher's conclusion is that only Safari for Mac and Internet Explorer appear to allow HEIC files to be uploaded directly to Reddit, and that all other methods tried result in normal metadata scrubbing.
Root cause
The report does not identify the code responsible. What it establishes is the behaviour: HEIC/HEIF uploads are converted to PNG, and the conversion preserves GPS metadata instead of stripping it. The report does not explain why the conversion preserves the metadata. The report does not say which component performs the conversion or where the scrubbing is skipped.
EXIF is the standard block of extra information stored inside photo files, and it is where the GPS coordinates live. "Conversion path" means the specific route the server takes to turn one file format into another. If one route cleans the file and another does not, the result depends on which route the upload happens to take.
Impact
All users who have submitted HEIC files have their GPS locations exposed publicly. The data can be scraped with little detection and no authorisation, because the converted PNGs are served from public addresses. The exposure is passive: an attacker does not need to interact with the uploader, only to fetch and parse the images.
"Scraping" means collecting files automatically, in bulk, with a script. "Parse" means reading the file's contents to pull out the useful parts, here the GPS coordinates. "Passive" means the attacker does nothing to the victim; they just read what is already public.
The researcher hedges the scope: the issue is likely device- and browser-agnostic, and mostly affects Safari users on Mac, since other devices and browsers either convert to a different format or do not permit HEIC uploads through the usual user flow. The in-the-wild example shows that at least one other user's location was exposed.
Fix
What it implies is that the HEIC-to-PNG conversion should strip GPS metadata, the same way the other upload paths do, so that every image served from i.redd.it is scrubbed regardless of the source format or the browser used to upload it.
Variants to test
These are follow-up tests someone could run to see whether the same kind of problem exists elsewhere. Each one states what a positive result would look like.
- Other formats that carry EXIF. Upload images in formats other than HEIC (for example TIFF or other camera raw formats) through every browser that accepts them, then download the served file and check for GPS and other EXIF fields. A positive result is location data present in the public file.
- Other conversion paths. Trigger any server-side format conversion the platform offers (for example HEIC to JPEG, or PNG to WebP) and inspect the output. A positive result is metadata that survives the conversion.
- Other browsers and platforms. Repeat the HEIC upload from browsers and operating systems the report did not cover, including older or less common ones. A positive result is a successful HEIC upload whose converted output retains GPS metadata.
- Extension and MIME mismatches. Upload a file whose extension or declared MIME type does not match its contents, as the researcher tried with
.HEICrenamed to.PNG, and check whether the server still processes it and preserves metadata. A positive result is a served file with the original metadata intact. - Mobile and app upload paths. Test the mobile web view and native apps on other platforms, since the report found the iOS app and iPad Safari scrubbed correctly. A positive result is any path that serves an image with GPS data.
- Scraping at scale. Enumerate public image addresses and parse them for GPS tags to estimate how many users are affected. A positive result is a non-trivial number of images with location data, which confirms the exposure is systematic rather than isolated.
Glossary
- Metadata: extra information stored inside a file alongside its main content, such as when a photo was taken and where.
- GPS metadata: the part of a photo's metadata that records the location where the photo was taken.
- EXIF: the standard block of extra information stored inside photo files, including camera settings and GPS coordinates.
- HEIC/HEIF: the image file format Apple uses for photos taken on iPhones, sometimes called Live Photos.
- PNG: a common image file format; here it is the format Reddit converts HEIC uploads into.
- JPEG: another common image file format; on some routes the phone converts the photo to JPEG before upload.
- Scrubbing: removing private parts of a file's metadata before the file is published.
- Conversion path: the specific route a server takes to turn one file format into another.
- URL: a web address, such as
https://i.redd.it/FILENAME.png. i.redd.it: the server that hosts Reddit's images publicly.- MIME type: the label a file carries saying what kind of file it is, such as image or text.
acceptattribute: a setting on a web page's file picker that tells the browser which kinds of files to offer.image/*: a filter meaning "any image type".- File extension: the part of a file name after the dot, such as
.pngor.heic, which suggests the file's format. - Scraping: collecting files or data automatically, in bulk, with a script.
- Parsing: reading a file's contents to pull out the useful parts, such as GPS coordinates.
- Passive exposure: a situation where an attacker does nothing to the victim and simply reads data that is already public.
- In the wild: on real, live posts made by other people, not just in a test.
- Device- and browser-agnostic: not tied to one particular device or browser.
- Privacy violation: a weakness where private information is exposed to people who should not see it.
- Severity: a rating of how serious a weakness is; here it is rated high.