Skip to content
DoS Disclosed report Beginner CVE-2020-8202

Possible denial of service when entering a loooong password

The signup form accepts extremely long passwords, and the password hashing process then consumes excessive CPU and memory. An attacker could submit a very long password to cause a denial of service, making the website unavailable or unresponsive.

xcheater Follow

Originally disclosed on HackerOne

Bounty$100 Medium 5.3 View original
  • Triaged in 40 days
  • Fixed in 3 months
  • Paid in 3 months
  • Disclosed after 4 months

You can create a very long password until you get the last user to put and aries or [DoS]. *Normally passwords have 8-10-24 digits. By sending a very long password (1.000.000 characters) Usually this problem is caused by a vulnerable password hashing implementation. When a long password is sent, the password hashing process will result in CPU and memory exhaustion.

**Remediation The password hashing implementation must be fixed to limit the maximum length of accepted passwords.

**step to reproduce:- 1.go to the link https://nextcloud.com/signup/ 2.try to signup there whatever email id you want then 3. on password field try to input many digits, hence you have generated it.

**I have tried 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 1234567I have tried 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789123456789 123456789 123456789 123456789 123456789 123456789 123456789 is Dos @#89 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789123456789 123456789 123456789 123456789 123456789 123456789 123456789 is Dos @#

Impact

it's possible to cause a denial a service attack on the server. This may lead to the website becoming unavailable or unresponsive.

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

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 4 min read.

Context

The target is the Nextcloud signup page at https://nextcloud.com/signup/, and the affected asset is the nextcloud/password_policy component. The feature under test is the password field of the signup form: a new user picks an email address and a password, and the server processes that password before the account is created. The report is about what happens when the password field is given an extremely long value.

The researcher's claim is that the signup form accepts a very long password, and that submitting one can exhaust CPU and memory on the server through the password hashing step, producing a denial of service. The report was rated medium severity with a CVSS score of 5.3, classified as improper restriction of authentication attempts, and paid a 100.00 USD bounty. It was disclosed on 2020-07-29.

Setup

No special setup is described. The researcher used the public signup page, an arbitrary email address of their choosing, and the password field. No account, role, tool or version is mentioned in the report.

Finding it

The researcher's starting observation is that you can create a very long password, and that this can lead to a denial of service. The report notes that passwords normally have 8, 10 or 24 characters, and that sending a very long password, on the order of 1,000,000 characters, is the trigger.

The reasoning given is that this kind of problem is usually caused by a vulnerable password hashing implementation: when a long password is sent, the hashing process results in CPU and memory exhaustion. In other words, the cost of hashing scales with the input, and the report attributes the problem to the hashing implementation not limiting password length.

Exploitation

Step 1: Open the signup page

HTTP
https://nextcloud.com/signup/

The researcher starts at the public signup form.

Step 2: Start a signup with any email address

Enter any email address you want in the signup form. The report does not describe any validation behaviour on the email field.

Step 3: Enter a very long password

In the password field, input as many digits as you can generate. The researcher's example payload is a long repetition of the string 123456789, pasted into the password field:

The payload is the long password value the researcher pasted into the password field. The report does not show the HTTP request that carries it, the server response, or any timing or resource measurement. The claim is that submitting a password of this size drives the hashing step into CPU and memory exhaustion.

Root cause

The report attributes the behaviour to the password hashing implementation: it does not limit the maximum length of accepted passwords, so a long input is hashed in full and the cost of hashing grows with the input size. The remediation the researcher proposes is exactly that: the password hashing implementation must be fixed to limit the maximum length of accepted passwords.

Why the existing defences did not stop it is not described in the report.

Impact

According to the report, it is possible to cause a denial of service attack on the server, which may lead to the website becoming unavailable or unresponsive. The report does not quantify how many requests are needed, how long the effect lasts, or which server components are affected beyond the CPU and memory exhaustion of the hashing process.

Fix

The remediation it recommends is to limit the maximum length of accepted passwords in the password hashing implementation, so that an oversized input is rejected before it is hashed.

Variants to test

  1. Other password fields on the same product: registration, password reset, password change and login. A positive result is that an oversized password is accepted and the response time or server resource use grows with the input length.
  2. Other hashing-backed inputs, such as API tokens or recovery codes, where the value is hashed on submission. A positive result is the same scaling behaviour with input size.
  3. Boundary probing around any documented maximum length. A positive result is that values just above the limit are still hashed rather than rejected.

Hunting notes

This kind of bug tends to sit in authentication and account-management endpoints where user-supplied secrets are hashed: signup, login, password reset and password change. During recon, the signal is a form or API that accepts a password without an obvious client-side length cap, especially where the product ships a password policy component that may enforce complexity but not a maximum length. The report itself shows impact through reasoning about the hashing cost rather than through measurements.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 7 min read.

What happened, in plain words

Nextcloud is a product for running your own file storage and collaboration server. The page at https://nextcloud.com/signup/ is a public form where a new person enters an email address and a password, and the server processes that password.

Storing a password safely means the server does not keep the password itself. It runs the password through a mathematical recipe called a hash function, which turns any input into a fixed-looking string of characters. The recipe is deliberately slow and heavy on purpose: that is what makes it hard for an attacker who steals the stored values to guess the original passwords. In this case the report says the hashing process exhausts CPU and memory when a very long password is sent.

The researcher found that the signup form does not put a ceiling on how long a password can be. You can paste in a password of around 1,000,000 characters. When the server then runs that enormous value through the hashing step, it spends a lot of processor time (CPU) and memory on it. The report says this can cause a denial of service attack on the server, which may lead to the website becoming unavailable or unresponsive. That is a denial of service: you are not stealing data, you are stopping the service from working.

A simple comparison: a bouncer checking IDs at a door is fast for a normal card, but if someone hands over a card the size of a bedsheet, the bouncer has to read all of it before letting anyone in. A queue builds up behind. The fix is to say "cards over a certain size are not accepted" before the reading starts.

The report was rated medium severity with a CVSS score of 5.3, classified as improper restriction of authentication attempts, and paid a 100.00 USD bounty. It was disclosed on 2020-07-29. The affected component is named nextcloud/password_policy.

Context

The target is the Nextcloud signup page at https://nextcloud.com/signup/, and the affected asset is the nextcloud/password_policy component. The feature under test is the password field of the signup form: a new user picks an email address and a password, and the server processes that password before the account is created. The report is about what happens when the password field is given an extremely long value.

The researcher's claim is that the signup form accepts a very long password, and that submitting one can exhaust CPU and memory on the server through the password hashing step, producing a denial of service.

Setup

No special setup is described. The researcher used the public signup page, an arbitrary email address of their choosing, and the password field. No account, role, tool or version is mentioned in the report.

Finding it

The researcher's starting observation is that the signup form lets you create a very long password, up to the point where the last user has to enter it, and that this can lead to a denial of service. The report notes that passwords normally have 8, 10 or 24 characters, and that sending a very long password, on the order of 1,000,000 characters, is the trigger.

The reasoning given is that this kind of problem is usually caused by a vulnerable password hashing implementation: when a long password is sent, the hashing process results in CPU and memory exhaustion. In other words, the cost of hashing scales with the input, and nothing in the form or the server side caps the input length before hashing begins.

Exploitation

Step 1: Open the signup page

HTTP
https://nextcloud.com/signup/

This is the address of the public signup form. This is the address of the public signup form where the researcher starts.

Step 2: Start a signup with any email address

Enter any email address you want in the signup form. The report does not describe any validation behaviour on the email field.

Step 3: Enter a very long password

In the password field, input as many digits as you can generate. The researcher's example payload is a long repetition of the string 123456789, pasted into the password field:

  • The whole block is one single password value. It is not a program and it is not a request; it is just text that goes into the password box.
  • The report does not show the HTTP request that carries this value, the server response, or any timing or resource measurement. The claim is that submitting a password of this size drives the hashing step into CPU and memory exhaustion.

Root cause

The report attributes the behaviour to the password hashing implementation: it does not limit the maximum length of accepted passwords, so a long input is hashed in full and the cost of hashing grows with the input size. The remediation the researcher proposes is exactly that: the password hashing implementation must be fixed to limit the maximum length of accepted passwords.

Why the existing defences did not stop it is not described in the report.

Impact

According to the report, it is possible to cause a denial of service attack on the server, which may lead to the website becoming unavailable or unresponsive. The report does not quantify how many requests are needed, how long the effect lasts, or which server components are affected beyond the CPU and memory exhaustion of the hashing process.

Fix

The remediation it recommends is to limit the maximum length of accepted passwords in the password hashing implementation, so that an oversized input is rejected before it is hashed.

Variants to test

  1. Other password fields on the same product: registration, password reset, password change and login. A positive result is that an oversized password is accepted and the response time or server resource use grows with the input length.
  2. Other hashing-backed inputs, such as API tokens or recovery codes, where the value is hashed on submission. A positive result is the same scaling behaviour with input size.
  3. Boundary probing around any documented maximum length. A positive result is that values just above the limit are still hashed rather than rejected.

Hunting notes

This kind of bug tends to sit in authentication and account-management endpoints where user-supplied secrets are hashed: signup, login, password reset and password change. During recon, the signal is a form or API that accepts a password without an obvious client-side length cap, especially where the product ships a password policy component that may enforce complexity but not a maximum length. The report itself shows impact through reasoning about the hashing cost rather than through measurements.

Glossary

  • Nextcloud: a product for running your own file storage and collaboration server.
  • Signup page: the public web form where a new person creates an account by giving an email address and a password.
  • Password field: the input box on a form where the password is typed.
  • Password hashing: turning a password into a stored value with a deliberately slow, heavy mathematical recipe, so the original password cannot easily be recovered from what is stored.
  • Hash function: the recipe that turns any input into a fixed-looking string of characters.
  • CPU: the processor of a computer; the part that does the calculation work.
  • Memory: the working space a computer uses while it is doing a task.
  • CPU and memory exhaustion: using up so much processor time and working space that other work cannot get done.
  • Denial of service (DoS): an attack that stops a service from working for its normal users, rather than stealing data from it.
  • Payload: the actual input an attacker sends to trigger the problem.
  • HTTP request: the message a browser sends to a server to ask for a page or submit a form.
  • Server-side validation: checks the server performs on submitted data, as opposed to checks the browser performs.
  • Client-side length cap: a limit on how many characters a form lets you type, enforced in the browser.
  • Password policy component: the part of the product that decides what makes a password acceptable, such as complexity rules.
  • Authentication: proving who you are, usually with a username and password.
  • API: a way for one program to talk to another over the network, usually exchanging structured data instead of web pages.
  • API token: a secret string a program uses instead of a password to prove its identity.
  • Recovery code: a one-time backup code used to get back into an account.
  • Recon: the early phase of testing where you look around a product to find features worth examining.
  • Boundary probing: testing values right at and just past a stated limit to see whether the limit is really enforced.
  • CVSS score: a standard number from 0 to 10 that rates how serious a security issue is.
  • Severity: a label such as low, medium or high that summarises how serious an issue is.
  • Bounty: a payment made to a researcher for reporting a valid security issue.
  • Disclosure: the date a report is made public.

More by xcheater

View all

2 more disclosed reports, best first.

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.