Skip to content
Business logic Disclosed report Beginner CVE-2017-0889

Upload profile photo from URL

The profile photo upload feature accepted a URL instead of a file, so a user could set their profile picture to any image hosted elsewhere. The report does not claim any security impact beyond this unexpected behaviour.

zurke Follow

Originally disclosed on HackerOne

  • Triaged in 20 hours
  • Fixed in 34 hours
  • Paid in 34 hours
  • Disclosed after 31 days

Using this vulnerability users can upload images from any image URL. Just change upload type using inspect element (from "type=file" to "type=url") , paste URL in text field and hit enter or click on "Update Profile". Your profile photo will be changed to photo from URL.

P.S Im sorry for my bad english.

Attachments

change_to_url.png
change_to_url.png From the original on HackerOne
upload_from_url.png
upload_from_url.png
profile_photo_changed.png
profile_photo_changed.png

The original report as published on HackerOne, by zurke. 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 server trusted the client-supplied upload type and processed a URL as if it were a file upload without validating the input.

Impact

A user could set their profile photo to an image from an arbitrary URL; the report does not show how this could harm other users or the service.

What the attacker needed

A user account; ability to edit the page in browser tools

How it was found

  1. Open the profile photo upload form.
  2. Use the browser's inspect element tool to change the upload field type from file to url.
  3. Paste an image URL into the text field.
  4. Submit the form to update the profile photo.

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.

A profile photo upload normally expects you to choose a file from your computer. Here, by editing the web page in the browser's developer tools, the upload field could be changed to accept a web address instead. The site then fetched the image from that address and used it as the profile photo.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by zurke

View all

1 more disclosed report, best first.

More from HackerOne

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.