CVE-2017-15277 on Profile page
The server's GIF processing produces differing images, suggesting a memory leak; the reporter uploaded crafted GIFs and recovered data from previews but did not yet obtain sensitive data.
- Triaged in 33 hours
- Fixed in 3 days
- Disclosed after 22 days
Hi security team,
Summary: Please refer to #302885 for more details. Uploading a .gif produces significantly different images every time which means the server is leaking information.
Steps To Reproduce:
- Clone https://github.com/neex/gifoeb
- Generate exploitable gif with ./gifoeb gen 5120x5120
- Upload gif as a profile picture at https://www.niche.co/users/{username}/account
- Download the preview from aws at https://niche-s3-production.s3.amazonaws.com/uploads/user/avatar/.... as preview.ext
- run
r=$(identify -format '%wx%h' preview.ext[0]) && for i in `seq 1 10` ; do ./gifoeb gen $r for_upload/$i.gif; done - Upload the gif to the server and download the results
- Recover the servers response with
for p in previews/*; do ./gifoeb recover $p | strings; done
Also while trying that I noticed there is no limit on how large of a gif a person can upload which could lead to some bottlenecks. https://www.niche.co/users/script-1-alert-script/posts
Supporting Material/References:
Even though the first 2 attempts did not reveal sensitive data I think it is enough as a POC. Feel free to check out the uploads. If marked as Needs More Info I can keep trying to get sensitive data.
Impact
By automating the process an attacker can gain valuable information from the server.
Attachments



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
Impact
An attacker could gain valuable information from the server's memory, though the reporter's attempts did not yet reveal sensitive data.
What the attacker needed
Ability to upload a profile picture
How it was found
- Clone the gifoeb tool from GitHub.
- Generate an exploitable GIF with the tool.
- Upload the GIF as a profile picture.
- Download the generated preview from AWS.
- Generate multiple GIFs based on the preview dimensions.
- Upload each GIF and download the results.
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.
When a server processes an image, it may use memory that has not been cleared. An attacker uploading a crafted image might get bits of old memory back in the output, which could reveal information.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.