500s for $560: How I Turned Twitter into My Cash Piñata
The username change endpoint lacked input validation, allowing an overly long string to cause a 500 Internal Server Error. An attacker could repeatedly crash various settings endpoints, resulting in a denial of service.
Published on stevenfloresca.medium.com
It’s early 2020, pre-pandemic paradise, and I’m an Offensive Security Officer at one of the biggest banking companies in the Philippines, rocking 7 years of pentesting glory — NASA, WHO, U.S. agencies, the works. But even with that resume, I never dreamed I’d stumble into the silliest, easiest bug bounty win of my…
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 validate or limit the length of the username input, causing it to fail when processing an excessively long string.
Impact
An attacker could cause 500 errors on multiple endpoints, potentially disrupting service for other users, though the text does not specify the full extent of the denial of service.
What the attacker needed
A Twitter account; access to settings pages
How it was found
- Log in to Twitter and go to the screen name settings page.
- Enter a very long string of characters into the username field.
- Submit the form.
- Observe a 500 Internal Server Error response.
- Repeat on other settings endpoints to cause similar errors.
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.
A web form accepted a very long text input without checking its length. When submitted, the server crashed and returned an error page instead of handling it gracefully. This means someone could repeatedly crash parts of the website, making it unavailable to others.
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.