Password of talk conversations can be bruteforced
The password check for public talk conversations could be performed through a GET parameter on the frontpage instead of the normal POST authentication endpoint. Because failed attempts made this way were not counted by the brute force protection, an attacker could guess conversation passwords without being blocked.
Originally disclosed on HackerOne
- Triaged in under an hour
- Fixed in 2 months
- Disclosed after 3 months
Summary by the program
Security advisory at https://github.com/nextcloud/security-advisories/security/advisories/GHSA-7rf8-pqmj-rpqv
The report
Steps To Reproduce:
- Instead of sending a POST to the authentication endpoint, the password can be added as a parameter on the GET request of the frontpage.
- A failure will not log a bruteforce attempt, but a successful password will no longer bring up the login page
Supporting Material/References:
Found while looking into https://support.nextcloud.com/#ticket/zoom/47814
Impact
Brute force protection of public talk conversation passwords can be bypassed.
What the report shows
The target is Nextcloud Talk, the conversation feature shipped in the nextcloud/spreed repository. The weakness class is improper restriction of authentication attempts: the brute force protection that should guard public talk conversation passwords could be bypassed. The report is rated medium with a CVSS score of 5.0, and the program points to a published security advisory.
The researcher's steps are short and precise:
- Instead of sending a POST to the authentication endpoint, the password can be added as a parameter on the GET request of the frontpage.
- A failure will not log a bruteforce attempt, but a successful password will no longer bring up the login page
The report gives no endpoint path, no parameter name and no sample request, so the exact URL and parameter cannot be reproduced from the text alone. What matters is the shape of the finding: the same password check is reachable through two different HTTP methods, and a failure on the GET path is not logged as a bruteforce attempt.
The researcher notes the finding came about while looking into a support ticket.
The stated impact is narrow and clear: brute force protection of public talk conversation passwords can be bypassed. The report does not describe a fix commit, a bounty amount or a timeline beyond the advisory link.
Root cause
When the password is submitted as a parameter on the GET request for the frontpage, a different code path performs the check.
The second observation in the report is that a correct password submitted this way stops the login page from being shown.
Impact
An attacker who can reach a public talk conversation can submit password guesses through the GET path without triggering the brute force counter. Because failures are not logged as attempts, the brute force protection does not see them. The report does not quantify the rate, the password policy or the size of the search space, so the practical time to compromise depends on those factors.
The report does not go further into what a participant can then read or do.
How this kind of bug works
Brute force protection works by making each failed authentication attempt cost something: a counter per account, per IP address or per session, a delay, a CAPTCHA, or a lockout after a threshold. The defence only holds if every code path that verifies a secret passes through the same accounting.
Bugs of this class appear when an application exposes more than one way to submit the same credential. Common variants include a form handler and a JSON API, a GET fallback and a POST endpoint, a legacy route kept for compatibility, or a parameter accepted by a page controller as well as by the dedicated authentication controller. Each entry point may have its own middleware stack, and the throttling component is often attached to only one of them.
A second variant is inconsistent keying. If the counter is keyed on the username in one path and on the session or IP in another, an attacker can rotate the unkeyed dimension and reset the count. A third is that failures are counted but successes are not, or that the counter is only incremented on a specific error code, so a differently shaped failure response escapes it.
The defences that stop this are centralised credential verification with a single throttling layer in front of it, counting every failure regardless of entry point, keying the counter on something the attacker cannot freely vary, and applying the same policy to every route that can reach the check.
How to test for it
- Identify the feature that is protected by a password or secret, and find the documented or observed way to submit it. Record the request method, path and parameter names.
- Look for alternative entry points: the page that renders the password prompt, API routes under a different prefix, older route names, and any handler that accepts the secret as a query or body parameter.
- Send a deliberately wrong secret through the primary path several times and confirm the protection engages: a counter, a delay, a lockout message or a CAPTCHA.
- Send the same wrong secret through each alternative path, the same number of times, and observe whether the protection engages there too. A positive result is a path where repeated failures produce no throttling, no delay and no lockout, while the primary path does.
- Confirm the alternative path actually verifies the secret rather than ignoring it: submit the correct value and check that the protected content becomes available or the prompt disappears.
- Where the application exposes logs or an admin view of failed attempts, check whether the alternative path's failures appear there.
Common false positives: the alternative path returns a generic error for every input, including the correct one, so nothing is being verified; the protection is keyed on IP and the test traffic comes from a single address that is already trusted; the delay is applied client-side only; or the counter exists but resets on a schedule short enough that a small test never reaches the threshold. Also check that you are not simply hitting a cached response.
How it is fixed
- Move the attempt accounting into the shared credential verification routine so every caller inherits it.
- Ensure every route that can reach the check passes through the same throttling middleware, including page controllers that accept the secret as a parameter.
- Count failures on all entry points and key the counter on a value the attacker cannot rotate cheaply.
- Return uniform failure responses so the shape of the error does not reveal which path was used.
- Add regression tests that submit wrong credentials through each entry point and assert that the counter increments.
Hunting notes
This bug class hides where features grew a second front door: page controllers that accept a secret to render a view, API versions kept for older clients, and fallbacks added for clients that cannot send certain methods. Recon signals include multiple routes mapping to the same controller action, parameters accepted in both query strings and bodies, and authentication logic duplicated across files.
To make a report land, show the contrast: the primary path throttles, the alternative path does not, and the alternative path genuinely verifies the secret. Include the exact requests, the number of attempts, and the observed responses on both paths. If the program keeps attempt logs, show that the alternative path leaves no entry. Keep the impact statement tied to what you demonstrated rather than to a theoretical worst case.
What happened, in plain words
Nextcloud is a self-hosted platform for files, calendars and collaboration. One of its features is Talk, a chat and video conversation tool, which lives in the nextcloud/spreed repository. A conversation can be made public and protected with a password, so that only people who know the password can join it.
Because a password is the only thing standing between a stranger and the conversation, the application is supposed to slow down anyone who keeps guessing. This is called brute force protection: after a number of wrong attempts, the server adds a delay, shows a CAPTCHA or temporarily blocks the source. The weakness class here is improper restriction of authentication attempts, which simply means that this protection is not applied everywhere it should be.
The report is rated medium with a CVSS score of 5.0, and the program points to a published security advisory.
The researcher found that the same password check can be reached in two different ways, and only one of them is counted by the protection. The steps are short:
- Instead of sending a POST to the authentication endpoint, the password can be added as a parameter on the GET request of the frontpage.
- A failure will not log a bruteforce attempt, but a successful password will no longer bring up the login page
To unpack that, a few basics. When your browser asks a web server for a page, it sends an HTTP request. The method of the request says what kind of action it is: GET is normally used to fetch something, and POST is normally used to submit data, such as a form with a password. A parameter is a named value attached to a request, for example in the address bar after a question mark. An endpoint is the specific address on the server that handles a request.
Normally, the password for a public conversation is submitted with a POST to the authentication endpoint. The researcher instead put the password as a parameter on the GET request for the frontpage.
The second step is the proof that the alternative route really checks the password rather than ignoring it. If the password is wrong, nothing is logged as a brute force attempt, so the counter never moves. If the password is right, the login page is no longer shown.
The report gives no endpoint path, no parameter name and no sample request, so the exact URL and parameter cannot be reproduced from the text alone. What matters is the shape of the finding: the same password check is reachable through two different HTTP methods, and a failure on the GET path is not logged as a bruteforce attempt.
The researcher notes the finding came about while looking into a support ticket.
The stated impact is narrow and clear: brute force protection of public talk conversation passwords can be bypassed. The report does not describe a fix commit, a bounty amount or a timeline beyond the advisory link.
In general, how this kind of bug works
Brute force protection works by making each failed authentication attempt cost something: a counter per account, per IP address or per session, a delay, a CAPTCHA, or a lockout after a threshold. Think of a shop that asks you to wait a minute after three wrong PIN entries at the card machine. The defence only holds if every code path that verifies a secret passes through the same accounting. If there is a second machine in the back that checks the same PIN but never counts the failures, the wait is meaningless.
Bugs of this class appear when an application exposes more than one way to submit the same credential. Common variants include a form handler and a JSON API, a GET fallback and a POST endpoint, a legacy route kept for compatibility, or a parameter accepted by a page controller as well as by the dedicated authentication controller. Each entry point may have its own middleware stack, and the throttling component is often attached to only one of them. Middleware is code that runs around a request handler, for example to log it or to rate-limit it.
A second variant is inconsistent keying. If the counter is keyed on the username in one path and on the session or IP in another, an attacker can rotate the unkeyed dimension and reset the count. A third is that failures are counted but successes are not, or that the counter is only incremented on a specific error code, so a differently shaped failure response escapes it.
The defences that stop this are centralised credential verification with a single throttling layer in front of it, counting every failure regardless of entry point, keying the counter on something the attacker cannot freely vary, and applying the same policy to every route that can reach the check.
In general, how to test for it
- Identify the feature that is protected by a password or secret, and find the documented or observed way to submit it. Record the request method, path and parameter names.
- Look for alternative entry points: the page that renders the password prompt, API routes under a different prefix, older route names, and any handler that accepts the secret as a query or body parameter.
- Send a deliberately wrong secret through the primary path several times and confirm the protection engages: a counter, a delay, a lockout message or a CAPTCHA.
- Send the same wrong secret through each alternative path, the same number of times, and observe whether the protection engages there too. A positive result is a path where repeated failures produce no throttling, no delay and no lockout, while the primary path does.
- Confirm the alternative path actually verifies the secret rather than ignoring it: submit the correct value and check that the protected content becomes available or the prompt disappears.
- Where the application exposes logs or an admin view of failed attempts, check whether the alternative path's failures appear there.
Common false positives: the alternative path returns a generic error for every input, including the correct one, so nothing is being verified; the protection is keyed on IP and the test traffic comes from a single address that is already trusted; the delay is applied client-side only; or the counter exists but resets on a schedule short enough that a small test never reaches the threshold. Also check that you are not simply hitting a cached response.
In general, how it is fixed
- Move the attempt accounting into the shared credential verification routine so every caller inherits it.
- Ensure every route that can reach the check passes through the same throttling middleware, including page controllers that accept the secret as a parameter.
- Count failures on all entry points and key the counter on a value the attacker cannot rotate cheaply.
- Return uniform failure responses so the shape of the error does not reveal which path was used.
- Add regression tests that submit wrong credentials through each entry point and assert that the counter increments.
In general, where to look while hunting
This bug class hides where features grew a second front door: page controllers that accept a secret to render a view, API versions kept for older clients, and fallbacks added for clients that cannot send certain methods. Recon signals include multiple routes mapping to the same controller action, parameters accepted in both query strings and bodies, and authentication logic duplicated across files.
To make a report land, show the contrast: the primary path throttles, the alternative path does not, and the alternative path genuinely verifies the secret. Include the exact requests, the number of attempts, and the observed responses on both paths. If the program keeps attempt logs, show that the alternative path leaves no entry. Keep the impact statement tied to what you demonstrated rather than to a theoretical worst case.
Glossary
- Nextcloud: a self-hosted platform for files, calendars and collaboration.
- Nextcloud Talk: the chat and video conversation feature of Nextcloud, shipped in the
nextcloud/spreedrepository. - Public talk conversation: a conversation that anyone who knows its password can join.
- HTTP request: the message a browser sends to a web server to ask for a page or submit data.
- GET: an HTTP method normally used to fetch something.
- POST: an HTTP method normally used to submit data, such as a form with a password.
- Parameter: a named value attached to a request, for example in the address bar after a question mark.
- Endpoint: the specific address on the server that handles a request.
- Brute force: guessing a secret by trying many values in turn.
- Brute force protection: measures such as counters, delays, CAPTCHAs or lockouts that make repeated guessing expensive.
- Improper restriction of authentication attempts: a weakness where the limits on how often someone can try to authenticate are missing or incomplete.
- Authentication: the process of proving you know a secret, such as a password.
- Throttling: deliberately slowing down or limiting repeated requests.
- Middleware: code that runs around a request handler, for example to log or rate-limit the request.
- Code path: one particular route through the program's code that a request can take.
- CVSS: a standard scoring system for the severity of a security issue.
- Security advisory: a public notice describing a vulnerability and its fix.
- False positive: a test result that looks like a bug but is not one.