Skip to content
File upload Disclosed report Beginner

Unrestricted File Upload on https://auth.ratelimited.me

The profile photo change feature accepted an arbitrary URL via the 'gravatar' option, allowing any file type to be set as the avatar rather than only images. An attacker could upload or reference non-image files, though the reporter could not execute code through this.

daniel_v Follow

Originally disclosed on HackerOne

  • Triaged in 4 days
  • Fixed in 30 days
  • Disclosed after 5 months

Hello security team,

Have found a way to upload files that aren't images on https://auth.ratelimited.me/

Steps to reproduce:

  1. Login at https://auth.ratelimited.me/
  2. Click "change photo" and intercept with a tool (used burpsuite)
  3. Choose "gravatar" option and change the 'url' parameter to anything you would like
  4. Done

Ps: The same occurs when you intercept "no photo" option

Ps2: I could not execute code through this, but i thought it was a valid report because i tried to upload .txt files in "upload photo" options and it was not allowed.

If you need further information, please contact me Best Regards, Daniel

Impact

possibility of uploading anything rather than images

Attachments

uploading_url.PNG
uploading_url.PNG From the original on HackerOne

The original report as published on HackerOne, by daniel_v. 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 did not validate the file type or URL content when the 'gravatar' or 'no photo' option was used, unlike the 'upload photo' option which did check.

Impact

An attacker could set any file type as the profile photo, but the reporter could not execute code through this.

What the attacker needed

A user account; ability to intercept HTTP requests

How it was found

  1. Log in to the site.
  2. Click 'change photo' and intercept the request with a proxy tool.
  3. Select the 'gravatar' option and modify the 'url' parameter to any value.

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 website lets you set a profile picture. Normally it should only accept image files. Here, by intercepting the request and changing a web address field, the reporter could make the site accept any kind of file, not just pictures. This is a problem because servers should not trust what users send.

What is File upload?

An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.

More from RATELIMITED

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Unrestricted file upload

The lesson behind this report.

An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.