Skip to content
DoS Disclosed report Beginner

a very long name in hey.com can prevent anyone from accessing their contacts and probably can cause denial of service

The application did not limit the length of a user's display name, allowing an attacker to set an extremely long name. This caused the Android app to crash and slowed down account access, and longer names triggered a 500 error, suggesting a server-side denial of service.

tw4v3sx Follow

Originally disclosed on HackerOne

Bounty$1,000incl. $50 bonus High View original
  • Triaged in 40 hours
  • Fixed in 8 days
  • Paid in 40 hours
  • Disclosed after 17 days

Summary :

after trying to change my initial name to something long i found out that their are no limits to how long it can be , so i directly changed it to something very long (Attachment on the original report: name.txt) which caused my account to really slow down when accessing it and in the android app , it just keeps crashing whenever i open it ( no way to access my account at all ) + if i make it longer i get a 500 Internal Server Error response which highly suggests that this can cause a server side denial of service .

Description:

due to not checking the length of the name one can change it to a very long one causing both a server side denial of service and a client side one

server side :

one can send multiple requests to change the name of the account and each of them containing a very long name which will cause a 500 internal server error leading to an extensive Resource Consumption.

client side :

  • if one is able to change the name another account he will also have the ability to crash his android app therefore preventing him from accessing his account.
  • if one with a long name sends a message to any email he will slowwwwww down everything where the message appears including folders (inbox , trash ..) and prevent him from accessing his contacts where the email's name also appears , because the app will hang on a loading screen for about 40min each time , and this can be more if for example he sends multiple messages or use multiple accounts ( each on with a long name ) to send a message to the victim mail.

Proof of Concept:

  1. open https://app.hey.com/contacts/%user_id_number%/user/editand change the name to the one attached (Attachment on the original report: name.txt) and submit.
  2. now u can't open the android app and u can slow down anyone's account just by sending them a message (or multiple ones).

Impact

  • Attacker can perform a DoS Attack against the server
  • slow down anyone's account
  • crash the android app

The original report as published on HackerOne, by tw4v3sx. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 5 min read.

Context

HEY is Basecamp's email service, reachable through the web app at app.hey.com and through an Android app. Every account has a display name, and the web app exposes a page for editing the profile of a contact entry, including that name. The report is about that name field: the application accepted a value of arbitrary length, and the consequences ranged from a slow web account to a crashing Android client and a server-side 500 error.

The weakness class recorded for the report is uncontrolled resource consumption, and the program rated it high severity with a 1,000 USD bounty. It was disclosed on 10 November 2020.

Setup

The researcher needed an ordinary HEY account and access to the web app. The edit page is scoped to a user id in the path, so the researcher needed the id of the account whose name was being changed. The Android app was used to observe the client-side effect. No special tooling is described: the work was done through the browser and the mobile app.

Finding it

While changing an initial name to something long, the researcher noticed that there was no limit on the length of the value. The field accepted whatever was submitted. That observation alone is not a vulnerability, so the researcher pushed it: the name was replaced with a very long value (the report attaches it as name.txt) and the behaviour of the account was observed.

Two effects appeared immediately. Accessing the account became very slow, and in the Android app the client kept crashing whenever it was opened, leaving no way to reach the account at all. Making the name even longer produced a 500 Internal Server Error response, which the researcher read as a strong indication that the input could drive a server-side denial of service.

Exploitation

Step 1: change the name through the profile edit page

The researcher opened the contact edit page for the target user and submitted the long name from the attachment:

Text
https://app.hey.com/contacts/%user_id_number%/user/edit

The %user_id_number% segment identifies the account whose contact entry is being edited. Submitting the very long name succeeded: no length validation rejected it. After that, the account was slow to access in the web app, and the Android app crashed on open every time, so the account could not be used from the phone at all.

Step 2: push the length until the server errors

Increasing the name further caused the server to answer with a 500 Internal Server Error. The researcher read the 500 as a strong indication that a long enough name can cause a server-side denial of service. Repeating the name change with very long values in multiple requests is the server-side variant: each request carries a very long name, each produces the 500, and the cumulative effect is extensive resource consumption.

Step 3: use the name as a payload against other accounts

A long name does not stay inside the account that owns it. When an account with a long name sends a message to any email address, everything where that message appears slows down dramatically, including folders such as inbox and trash. The recipient's contacts view is affected too, because the sender's name appears there as well, and the app hangs on a loading screen for about 40 minutes each time. The researcher notes that this can be extended by sending multiple messages, or by using multiple accounts, each with a long name, to send a message to the victim's mailbox.

The same mechanism gives a client-side denial of service against a specific person: anyone able to change the name on another account can crash that person's Android app and lock them out of it.

Root cause

The name field has no length limit, and the application does work proportional to the length of the name on the server and in the clients that render it. The report frames the cause directly as the missing check on the length of the name. On the server, a long enough value drives the request into a 500, which points to resource exhaustion rather than a handled validation failure. On the client, the Android app crashes on open and views where the name appears hang on a loading screen.

Impact

  • An attacker can perform a DoS attack against the server by sending multiple name-change requests carrying very long names, each producing a 500 and consuming resources.
  • An attacker can slow down anyone's account by sending them a message from an account with a long name, and can amplify this with multiple messages or multiple long-named accounts.
  • An attacker can crash the Android app of an account whose name they can change, preventing that person from accessing the account.

The report hedges the server-side effect as something the 500 "highly suggests", and the client-side timings are the researcher's own observations (about 40 minutes per hang).

Fix

The report does not describe the fix that was applied. The change it calls for is a length limit on the name.

Variants to test

  • Other profile fields with free-text input (display names, signatures, subject lines, labels) on the same product: submit a very long value and watch for slow responses, 500s, or client hangs.
  • The same name field through other clients and API paths, not just the web edit page: a limit enforced in one place is often missing in another.
  • Message delivery paths: send a message from an account with a long name to a second account and time the inbox, trash and contacts views.
  • Multiple long-named senders against one recipient, to see whether the effect compounds as the researcher suggests.

A positive result is a request that is accepted with an oversized value and a measurable slowdown, error or client crash downstream.

Hunting notes

This kind of bug hides in fields that are validated for format but not for size, especially display names and other values that are copied into many views: message lists, folders, contacts, notifications and mobile clients. During recon, look for profile and contact edit endpoints with a user id in the path, and for any field whose value is rendered in more than one place. The signal is a value that is accepted without complaint and then shows up as latency or errors elsewhere.

The researcher made the impact concrete in three ways: a 500 from a long enough value, a client that crashes on open, and a hang of about 40 minutes in a victim's views after a message. That combination, server-side resource consumption plus a cross-account client-side effect, is what turns a missing length check into an accepted high-severity report.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 8 min read.

What happened, in plain words

HEY is an email service made by Basecamp. You can use it in a web browser at app.hey.com, and there is also an Android app for phones. Every HEY account has a display name, which is the name other people see when they receive a message from you. The web app has a page where you can edit the details of a contact entry, and that page includes the name field.

The researcher found that this name field had no limit on how long the name could be. You could type in a name of any size and the app would accept it. That sounds harmless, but it is not: the app has to store that name and show it in many places, and the more text there is, the more work the app and the server have to do. When the name was made extremely long, three things happened. The web account became very slow. The Android app crashed every time it was opened, so the phone could not be used to reach the account at all. And when the name was made even longer, the server answered with a 500 Internal Server Error, which is the generic error a web server sends when something goes wrong on its side.

The weakness class recorded for this report is uncontrolled resource consumption. In plain terms, that means the application lets a user supply input that makes it use far more of some limited resource (memory, processing time, storage) than it should, until it slows down or fails. The program rated the report high severity and paid a 1,000 USD bounty. It was disclosed on 10 November 2020.

Setup

To reproduce this, the researcher needed an ordinary HEY account and a web browser. The edit page is tied to a particular account through a number in the web address, so the researcher needed the id of the account whose name was being changed. The Android app was used to watch what happened on the phone side. No special tools are described: everything was done through the browser and the mobile app.

Finding it

While changing an initial name to something long, the researcher noticed that there was no limit on the length of the value. The field accepted whatever was submitted. A field accepting a long value is not, by itself, a security problem. So the researcher pushed it further: the name was replaced with a very long value (the report attaches it as name.txt) and the behaviour of the account was watched.

Two effects appeared straight away. Accessing the account became very slow, and in the Android app the client kept crashing whenever it was opened, leaving no way to reach the account at all. Making the name even longer produced a 500 Internal Server Error response, which the researcher read as a strong indication that the input could drive a server-side denial of service.

Exploitation

Step 1: change the name through the profile edit page

The researcher opened the contact edit page for the target user and submitted the long name from the attachment:

Text
https://app.hey.com/contacts/%user_id_number%/user/edit

This is a web address, the same kind you type into a browser's address bar. Reading it from left to right: https:// means the page is loaded over an encrypted connection; app.hey.com is the HEY web app; /contacts/ says we are dealing with a contact entry; %user_id_number% is a placeholder for the number that identifies a particular account, which the researcher had to know; /user/edit is the page where that contact's details are edited. The %user_id_number% segment identifies the account whose contact entry is being edited. Submitting the very long name succeeded: no length validation rejected it. After that, the account was slow to access in the web app, and the Android app crashed on open every time, so the account could not be used from the phone at all.

Step 2: push the length until the server errors

Increasing the name further caused the server to answer with a 500 Internal Server Error. The researcher read the 500 as a strong indication that a long enough name can cause a server-side denial of service. Repeating the name change with very long values in multiple requests is the server-side variant: each request carries a very long name, each produces the 500, and the cumulative effect is extensive resource consumption.

Step 3: use the name as a payload against other accounts

A long name does not stay inside the account that owns it. When an account with a long name sends a message to any email address, everything where that message appears slows down dramatically, including folders such as inbox and trash. The recipient's contacts view is affected too, because the sender's name appears there as well, and the app hangs on a loading screen for about 40 minutes each time. The researcher notes that this can be extended by sending multiple messages, or by using multiple accounts, each with a long name, to send a message to the victim's mailbox.

The same mechanism gives a client-side denial of service against a specific person: anyone able to change the name on another account can crash that person's Android app and lock them out of it.

Root cause

The name field has no length limit, and the application does work proportional to the length of the name on the server and in the clients that render it. The report frames the cause directly as the missing check on the length of the name. On the server, a long enough value drives the request into a 500, which points to resource exhaustion rather than a handled validation failure. On the client, the Android app crashes on open and views where the name appears hang on a loading screen.

Impact

  • An attacker can perform a DoS attack against the server by sending multiple name-change requests carrying very long names, each producing a 500 and consuming resources.
  • An attacker can slow down anyone's account by sending them a message from an account with a long name, and can amplify this with multiple messages or multiple long-named accounts.
  • An attacker can crash the Android app of an account whose name they can change, preventing that person from accessing the account.

The report hedges the server-side effect as something the 500 "highly suggests", and the client-side timings are the researcher's own observations (about 40 minutes per hang).

Fix

The report does not describe the fix that was applied. The change it calls for is a length limit on the name.

Variants to test

  • Other profile fields with free-text input (display names, signatures, subject lines, labels) on the same product: submit a very long value and watch for slow responses, 500s, or client hangs.
  • The same name field through other clients and API paths, not just the web edit page: a limit enforced in one place is often missing in another.
  • Message delivery paths: send a message from an account with a long name to a second account and time the inbox, trash and contacts views.
  • Multiple long-named senders against one recipient, to see whether the effect compounds as the researcher suggests.

A positive result is a request that is accepted with an oversized value and a measurable slowdown, error or client crash downstream.

Hunting notes

This kind of bug hides in fields that are validated for format but not for size, especially display names and other values that are copied into many views: message lists, folders, contacts, notifications and mobile clients. During recon, look for profile and contact edit endpoints with a user id in the path, and for any field whose value is rendered in more than one place. The signal is a value that is accepted without complaint and then shows up as latency or errors elsewhere.

The researcher made the impact concrete in three ways: a 500 from a long enough value, a client that crashes on open, and a hang of about 40 minutes in a victim's views after a message. That combination, server-side resource consumption plus a cross-account client-side effect, is what turns a missing length check into an accepted high-severity report.

Glossary

  • API: a way for one piece of software to talk to another, like a waiter taking your order to the kitchen and bringing back the food.
  • Client: the program on your side that talks to a server, such as a browser or a phone app.
  • Server: the computer somewhere else that stores data and answers requests from clients.
  • Endpoint: a specific address on a server that accepts a particular kind of request, like a particular counter in a large office.
  • Cookie: a small piece of data a website stores in your browser so it can recognise you on later visits.
  • Token: a short string that proves who you are or grants access, similar to a ticket you show at the door.
  • Denial of service (DoS): making a service so slow or broken that its real users cannot use it.
  • Resource consumption: how much of a limited thing (memory, processing time, storage) a program uses up.
  • Uncontrolled resource consumption: a weakness where user input makes a program use far more of a resource than it should, until it slows or fails.
  • 500 Internal Server Error: a generic error a web server sends when something goes wrong on its side while handling a request.
  • Validation: checking that input meets the rules before accepting it, such as checking that a name is not too long.
  • Payload: the actual data an attacker sends to try to trigger a problem.
  • Root cause: the underlying reason a vulnerability exists, as opposed to its visible symptoms.
  • Recon: the early stage of security testing where you look around to find interesting pages, fields and behaviours.
  • Severity: a rating of how serious a vulnerability is, often high, medium or low.
  • Bounty: a reward, usually money, paid to a researcher who reports a valid vulnerability.
  • Disclosure: making a vulnerability report public, often after it has been fixed.
  • CVSS: a standard scoring system for rating the severity of vulnerabilities.

More by tw4v3sx

View all

2 more disclosed reports, best first.

More from Basecamp

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.