Login DoS — That requires simply sending a lot of specially crafted requests
The server calculates a hash of the password on the backend, and sending very long passwords causes increased response times. An attacker could send many such requests to cause a denial of service.
infosecwriteups.com
Published on infosecwriteups.com
In this article, I’ll discuss how I found a bug in a private program on HackerOne.
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 hashes the password without first limiting its length, so very long inputs consume excessive CPU time.
Impact
An attacker could cause a denial of service by sending many requests with long passwords, though the author notes that demonstrating the timing difference is sufficient and causing an actual DoS is out of scope.
What the attacker needed
Access to the login page; ability to send HTTP requests
The fix
The server should check the password length before hashing and reject overly long passwords.
How it was found
- Generate a list of increasingly long strings using a Python script.
- Capture the login request and mark the password parameter as the payload position.
- Load the generated list as payloads and start the attack.
- Observe that response times increase as the payload length grows.
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.
When you log in, the server scrambles your password with a mathematical function called a hash. If the password is extremely long, that scrambling takes much more work. By sending many login attempts with huge passwords, an attacker can keep the server busy and slow it down for everyone.
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.