Skip to content
DoS Disclosed report Intermediate CVE-2022-39330

Database resource exhaustion for logged-in users via sharee recommendations with circles

A logged-in user could create many circles and folders, share them, and then trigger a sharee recommendation request that caused a long-running loop, generating heavy database and CPU load. A small number of such requests could stress even large servers.

michag86 Follow

Originally disclosed on HackerOne

Bounty$250 Medium 4.8 View original
  • Triaged in 9 hours
  • Fixed in 15 days
  • Paid in 19 days
  • Disclosed after 3 months

Summary by the program

Security advisory at https://github.com/nextcloud/security-advisories/security/advisories/GHSA-wxx7-w5p4-7x4c

The report

Summary:

Registered users can generate massive database load

Steps To Reproduce:

  1. create 9 circles and 6 folders (circles * folder > 50)
  2. share all created folders with all created circles
  3. open an other folder and open the share tab, so the URI /ocs/v2.php/apps/files_sharing/api/v1/sharees_recommended is requested
  4. this requests results in a loop that runs as long as the php value max_execution_time is set; the recommended value for this is 3600 seconds (1h)
  5. a small number of these requests will stress even large servers

Tested with Nextcloud 23.0.8

Impact

Attacker slow down the system by generating a lot of database/cpu load.

The original report as published on HackerOne, by michag86. 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 slow down the system by generating a lot of database and CPU load.

What the attacker needed

A registered user account; ability to create circles and folders; ability to share folders with circles

How it was found

  1. Create 9 circles and 6 folders so that the product exceeds 50.
  2. Share all created folders with all created circles.
  3. Open another folder and open the share tab, which requests the sharees_recommended endpoint.
  4. The request enters a loop that runs until the PHP max_execution_time is reached.
  5. A small number of these requests will stress even large servers.

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.

A logged-in user could make the server do a lot of work by creating circles and folders, sharing them, then opening a share menu, causing a long loop and heavy database and CPU load.

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 by michag86

View all

4 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.