No password length restriction in reset password endpoint at http://suppliers.mtn.cm
The password reset endpoint accepted passwords of arbitrary length, with no maximum enforced. The reporter claims an attacker could submit very long passwords to cause a denial of service, though only a 150-character password was actually tested.
Originally disclosed on HackerOne
- Triaged in 31 days
- Fixed in 12 months
- Disclosed after 13 months
Hello
Summary:
I found no password length restriction in reset password endpoint at http://suppliers.mtn.cm when resetting new password
Steps To Reproduce:
- Visit https://suppliers.mtn.cm/ and register.
- logout and reset your password
- go to your email and click on reset password link
- enter 150 characters as a password and confirm the characters
- you will successfully logged in.
Impact
Attacker can do denial of service to your server since there is no restriction in the length of password. Example when he enter like 2500 character, your server will crash for some time,
I did not attempt to ddos your server, because you exclude any activity related to denial of service to your assets, I only test for 150 character and its working.
##Mitigation : Restrict user to use less than 40 character as a password, while the restriction should be both on back-end and front-end (with javascript ).
##Thank you
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 reset password form and its back-end lacked any maximum length validation on the new password field.
Impact
The reporter claims an attacker could cause a denial of service by submitting very long passwords, but no crash was demonstrated and only a 150-character password was tested.
What the attacker needed
A free account; access to the reset email
The fix
The password field should enforce a maximum length, ideally under 40 characters, on both the back-end and the front-end.
How it was found
- Register an account on the site.
- Log out and start a password reset.
- Open the reset link from the email.
- Enter a 150-character password and confirm it.
- The account logs in successfully with that password.
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 set a password, a website should limit how long it can be. This site did not, so someone could send extremely long passwords. The reporter thinks that could overload the server, but they only tried a modest length and never showed a crash.
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.