No Password Length Restriction leads to Denial of Service
The registration password field had no maximum length, so submitting an extremely long password caused the server to return a 500 error. An attacker could repeatedly send such oversized passwords to consume server resources and cause a denial of service.
- Triaged in 2 hours
- Fixed in 27 hours
- Disclosed after 22 days
Hi Weblate,
I am trying to register for an account when I came across a page where the password was required to be set up. The url is https://demo.weblate.org/accounts/password where the password was to be created after one provides his or her initial details.
There is no limit to the length of the password that can be created for this site. Hence, I tried with a big payload and everytime server responded me with a 500 internal server error. But when I registered with Antara007! password, it was accepted gleefully. Password length is something that might sound quite insignificant but is quite important.
You need to decrease password length :There are two reasons for limiting the password size. For one, hashing a large amount of data can cause significant resource consumption on behalf of the server and would be an easy target for Denial Of Service attack.
Normally all sites have a password minimum to maximum length like 72 characters limit or 48 limit to prevent Denial Of Service attack. in my sql but in weblate registration page there are no limitation. Let me know if you need any more details.
I am attaching some screenshots so that it can be understood properly.
Thanks, Dipmalya Pyne.
Attachments


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 application did not enforce a maximum password length before hashing, so very large inputs caused excessive resource use and server errors.
Impact
An attacker could cause a denial of service by repeatedly submitting oversized passwords, consuming server resources.
What the attacker needed
Access to the registration page; ability to submit a password
The fix
The application should enforce a reasonable maximum password length, such as 72 characters, before hashing.
How it was found
- Go to the account registration page and provide initial details.
- Reach the page where a password must be created.
- Enter an extremely long password and submit it.
- Observe that the server responds with a 500 internal server error.
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 create an account, the server has to process your password, usually by running it through a one-way scrambling function called hashing. If the password can be enormous, that processing takes much more work and memory. An attacker can send many huge passwords to tie up the server so real users cannot use it, which is called a denial of service.
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.