Skip to content
DoS Disclosed report Beginner

Possible DoS when requesting profile events, limit parameter is NOT checked for an upper bound

The profile activity endpoint lacked an upper bound on the 'limit' parameter, allowing attackers to request extremely large numbers of events. This caused very slow responses and large payloads, potentially leading to denial of service.

GitLab

Originally disclosed on GitLab

  • Fixed in 21 months
  • Disclosed after 21 months

HackerOne report #463010 by brandonnnn on 2018-12-14:

Summary:

Sending a GET request to a profile activity page (https://gitlab.com/PROFILENAME?limit=X) seems to have no upper bound, and appears to be an expensive operation.

Description:

The standard 10 limit which you call when visiting a profile took 700ms and was 19.52KB. When testing with 100 limit, it took 2,287ms and was 190.62KB. I only tested up to 1000 limit, which took 11,599ms, and returned an incomplete JSON payload of 1.76MB.

Some simple extrapolation would mean a request with a 50,000 activity limit would take roughly 9 minutes and return a ~93MB payload (if it managed to finish at all, which it seems like it wouldn't).

Steps To Reproduce:

  1. Use curl to request the profile activity (I chose a user with >10k commits): [REDACTED]
  2. Wait for the operation to return an incomplete JSON payload

Supporting Material/References:

  • [Screenshot of developer console sending requests][REDACTED]

Impact

Denial of Service

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

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 application did not enforce a maximum value for the 'limit' parameter, allowing arbitrarily large requests that consumed excessive server resources.

Impact

An attacker could cause denial of service by sending requests with very high limit values, leading to slow responses and potential resource exhaustion.

What the attacker needed

A user with many activity events; ability to send HTTP requests

How it was found

  1. Use curl to request the profile activity of a user with many commits.
  2. Observe that the operation returns an incomplete JSON payload after a long delay.

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 website's activity feed lets you ask for a certain number of events using a 'limit' setting. The site did not cap how high that number could be, so someone could ask for a huge amount, making the server work very hard and respond slowly. This could stop the site from working properly 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 GitLab

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.