Skip to content
DoS Disclosed report Beginner CVE-2023-25816

No password length restriction in reset password endpoint

The password reset endpoint did not enforce a maximum password length, allowing users to set extremely long passwords. An attacker could exploit this to cause a denial of service by submitting a very long password, potentially crashing the server temporarily.

aditya404 Follow

Originally disclosed on HackerOne

  • Triaged in 7 hours
  • Fixed in 28 hours
  • Disclosed after 37 days

Summary by the program

Security advisory at https://github.com/nextcloud/security-advisories/security/advisories/GHSA-53q2-cm29-7j83

The report

Hi,

##Summary: There is no password length restriction in reset password endpoint at https://efss.qloud.my/index.php/login when resetting for new password.

##Steps To Reproduce:

  1. Visit https://nextcloud.com/sign-up/ and Sign up.

  2. Logout and reset your password.

3.Go to your email and click on reset password link. 4.Enter 150 characters or more as a password and confirm the characters. 5.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 Below Image is the impact of entering 2500 characters.

##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

Attachments

Screenshot_2023-01-03_14_09_52.png
Screenshot_2023-01-03_14_09_52.png From the original on HackerOne

The original report as published on HackerOne, by aditya404. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

Impact

An attacker could cause a denial of service by submitting an excessively long password, potentially crashing the server temporarily.

What the attacker needed

A free account; access to email for reset link

The fix

The application should enforce a maximum password length (e.g., less than 40 characters) on both the client and server sides.

How it was found

  1. Sign up for an account.
  2. Log out and initiate a password reset.
  3. Open the reset link from the email.
  4. Enter a password of 150 characters or more and confirm it.
  5. Successfully log in with the long 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 reset a password, the website should limit how long it can be. Here, it accepted passwords of any length, so someone could send a huge password and overwhelm the server, making it slow or unavailable for 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.

More from Nextcloud

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.