Skip to content
Info disclosure Disclosed report Advanced CVE-2017-15277

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.

emitrani Follow

Originally disclosed on HackerOne

  • 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:

  1. Clone https://github.com/neex/gifoeb
  2. Generate exploitable gif with ./gifoeb gen 5120x5120
  3. Upload gif as a profile picture at https://www.niche.co/users/{username}/account
  4. Download the preview from aws at https://niche-s3-production.s3.amazonaws.com/uploads/user/avatar/.... as preview.ext
  5. run r=$(identify -format '%wx%h' preview.ext[0]) && for i in `seq 1 10` ; do ./gifoeb gen $r for_upload/$i.gif; done
  6. Upload the gif to the server and download the results
  7. 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

attempt1.png
attempt1.png From the original on HackerOne
attemp2.png
attemp2.png
medium_2be811a79f6de0d0_cropped_0_0_400_400.gif
medium_2be811a79f6de0d0_cropped_0_0_400_400.gif

The original report as published on HackerOne, by emitrani. 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

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

  1. Clone the gifoeb tool from GitHub.
  2. Generate an exploitable GIF with the tool.
  3. Upload the GIF as a profile picture.
  4. Download the generated preview from AWS.
  5. Generate multiple GIFs based on the preview dimensions.
  6. 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.

More by emitrani

View all

6 more disclosed reports, best first.

More from X / xAI

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.