Phonebook The Way To Dos A Company
The phonebook application allowed users to bypass a client-side limit of five contact records by manually adding more entries to the JSON array in the PUT request, leading to a denial of service when searching for the user's name. The attacker could also add random values to contact info so that any search would include their profile, causing the server to become unresponsive.
A task was assigned to me: hack the phonebook.company.net so, I started the hacking engine of my mind…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the server did not enforce a limit on the number of contact records per user, relying only on client-side validation.
Impact
An attacker could cause a denial of service, making the phonebook server unresponsive for searches that include their profile, and potentially for any search if they add random values to their contact info.
What the attacker needed
A user account; ability to intercept HTTP requests
How it was found
- Log in with a user account and go to the profile page to add contact info.
- Intercept the PUT request that modifies user data.
- Manually add extra records to the contactInfo array in the request body.
- Send the request; the server accepts the additional records.
- Repeat to add thousands of records, causing the server to slow down or become unresponsive when searching for the user's name.
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 write-up has not been written yet. The Original tab links to the source.
The phonebook app let users store contact details, but it only checked in the browser that you couldn't add more than five entries. By intercepting the request and adding many more entries, the attacker could make the server slow down or crash when someone searched for their name. This is a denial-of-service attack, where the goal is to make a service unavailable.
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.