Skip to content
DoS Disclosed report Beginner

profile-picture name parameter with large value lead to DoS for other users and programs on the platform

The profile picture upload feature placed no length limit on the image filename, and that filename was returned inside GraphQL responses on many pages. An attacker could upload a filename of several megabytes so that pages listing the user, such as a report's participants view, became very slow or crashed the victim's browser.

d3f4u17 Follow

Originally disclosed on HackerOne

Medium 4.2 View original
  • Triaged in 23 days
  • Fixed in 27 days
  • Paid in 27 days
  • Disclosed after 3 months

Summary:

The issue persists as there are no text limitations for profile-picture name while uploading the profile-picture, these heavy text names can cause denial of service on different pages of hackerone.

Description:

I was checking the profile picture upload feature of hackerone and found out that there is no text limitation for image name, You can provide as much long image name as you want.

filenameh1.png
filenameh1.png From the original on HackerOne

At first it didn’t look like a serious issue so I played with it a little and tried to add some special characters to make it throw a 500 response but didn’t work out.

The next thing I noticed that there are many places where a graphql query is getting executed to fetch the info of the user and the json response is also containing the Image url along with the filename which was provided at the time of upload.

So the first thought that came into my mind is to provide a humongous long string at the place of the image name so I created the payload(attached with the report payload.txt) and paste the entire payload in front of the filename, the size of the payload is approx 3MB and it took a little bit of time to execute the request. Account used - @d3f4ul7_m4n

payloadinrequest.png
payloadinrequest.png From the original on HackerOne
payloadinresponse.png
payloadinresponse.png

Then I created a dummy report #654270 using my main account(@red_assassin) and invited @d3f4ul7_m4n into that report and found out that a request has been made to the endpoint /reports/<report-id>/participants/ and as the response contains a humongous text payload it took a long amount of time to load, enough for a timeout and to crash the browser, to create more impact I did the same trick with my another account @fossnow27 and invited it to the same report so that when the endpoint /reports/<report-id>/participants/ starts loading huge amount of junk gets returned inside the response to crash the report.

I can also invite you to the dummy report for POC.

h1failurereport.png
h1failurereport.png From the original on HackerOne

As you can see the amount of data loaded is so huge that even burp can't handle it.

Next thing I did was to load all the pages which were displaying my profile pictures in it e.g. profile page, reports page, invited reports page and I noticed that all the pages are taking significantly much more amount of time to load as they were taking before and some were even failing to load and crashing my browser.

h1reportfailure.PNG
h1reportfailure.PNG From the original on HackerOne

Steps To Reproduce

filenameh1.png
filenameh1.png From the original on HackerOne
  • Add the payload text (attached with report payload.txt) at the starting of the filename in the above request e.g <payload>abcd.png

Security Impact/How an attacker can exploit such behavior

Scenario - #1

Few months back I reported an issue on hackerone as it was a duplicate issue I got invited as a participant in the original report by the program. Report link - https://hackerone.com/reports/442522 Now suppose if I act as an attacker I can restrict the access to that report for all the participants by doing the above mentioned trick.

An attacker can restrict access of the report if the attacker is an external participant to the report.

Scenario - #2

I didn't tried this scenario as I didn't want to affect anything in Production/Live environment.

Program Pages As you can see program pages have top hacker images and the thank you page has hundreds of hacker images. GraphQL queries are used to load the image URLs of the hacker profiles.

thankspage.PNG
thankspage.PNG From the original on HackerOne
h1thankspage.png
h1thankspage.png

In this scenario, a DDoS attack is possible if more than one hacker tries to do the same trick as discussed previously, the amount of data needed to load will be huge which can easily crash the web page and the browser of the victim because of this lot of hackerone pages including Program pages can get affected.

Impact

  • Blocking or Slowing Down of Hackerone pages containing the Payload Image
  • Crashing of Web browser.

The original report as published on HackerOne, by d3f4u17. 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 upload handler stored the user-supplied filename without any length limit, and that value was later embedded in GraphQL responses rendered by many pages.

Impact

Pages that display the oversized filename, including report participant lists and program pages, could load very slowly or crash the victim's browser; the reporter did not test the wider program-page scenario in production.

What the attacker needed

A free account; ability to upload a profile picture; victim views a page showing the name

How it was found

  1. Open the profile edit settings page.
  2. Upload a new profile picture and intercept the request.
  3. Prepend a very large text payload to the filename in the request.
  4. Invite the affected account to a report and open the participants endpoint, which returns the huge filename.

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 you upload a profile picture, the site keeps the file's name and shows it again on pages that list you. This report found the site never checked how long that name could be, so someone could give a file a name of several megabytes. Pages that then loaded that name became extremely slow or crashed the visitor's browser, which is a denial of service: making a service unusable rather than stealing data.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

More by d3f4u17

View all

8 more disclosed reports, 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.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.