Skip to content
DoS Disclosed report Beginner

DoS in Merge requests by introducing certaing characters on merge request titles

A merge request title containing a character outside the Unicode domain causes a server error when the merge request is opened. An attacker with permission to create or edit merge requests can make them permanently inaccessible, including their comments, and prevent deletion.

GitLab

Originally disclosed on GitLab

  • Fixed in 18 months
  • Disclosed after 18 months

HackerOne report #1398152 by dfens on 2021-11-11, assigned to GitLab Team:

Report | Attachments | How To Reproduce

Report

Summary

I think this bug is strongly linked with #690235 and appeared because of a retest of the vulnerability I did recently,
[@]akelly is in the loop.
The bug is caused by some characters that are outside the unicode domain, like 

Steps to reproduce
  1. Edit a merge request title to contain  anywhere in the title
  2. Save
  3. Go to merge requests and try to open the attacked MR

Note: It can also be achieved by creating the MR with this character in the title, no need to edit.

Impact

After the attack the user is no longer able to open the merge request, to read the comments inside, or even to delete it.

What is the current bug behavior?

Error 500 while opening the modified MR

500_gitlab.png
500_gitlab.png From the original on GitLab
What is the expected correct behavior?

The edit should fail gracefully since it contain a invalid character,
the same behavior that happens with the comments.

Impact

An attacker with enough permissions can block access to certain MRs, MRs comments and make them impossible to remove or edit any further.

Many disrupting possibilities:

  1. Offensive title that cannot be removed.
  2. Inaccessible MR that blocks the creation of a new one that is equivalent.

Attachments

Warning: Attachments received through HackerOne, please exercise caution!

How To Reproduce

Please add reproducibility information to this section:

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 does not validate or sanitise characters outside the Unicode domain in merge request titles, leading to a server error when rendering the merge request.

Impact

An attacker with sufficient permissions can block access to certain merge requests and their comments, making them impossible to remove or edit, and potentially preventing the creation of equivalent merge requests.

What the attacker needed

Permission to create or edit merge requests

The fix

The application should reject invalid characters gracefully, as it already does for comments.

How it was found

  1. Edit a merge request title to include a specific invalid character.
  2. Save the change.
  3. Open the affected merge request, which results in an error.

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 merge request is a way to propose changes in a code project. The bug happens because the system does not properly handle certain unusual characters in the title, causing an error page instead of showing the merge request. This means someone with editing rights can break a merge request so nobody can view or remove it.

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.