Skip to content
DoS Disclosed report Beginner

Web IDE can not load Merge Request

A branch name containing special characters caused the Web IDE to fail to load a merge request. An attacker could create such a branch, preventing reviewers from opening the merge request in the Web IDE.

GitLab

Originally disclosed on GitLab

  • Fixed in 2.1 years
  • Disclosed after 2.1 years

HackerOne report #680208 by hd7exploit on 2019-08-23, assigned to estrike:

Summary

Web IDE can not load Merge Request if someone creates a branch with special chars.

Steps to reproduce

  1. The user create a branch as %"a
  2. The user creates a Merge Request with the Master branch as image merge.png
  3. Now Reviewer or someone has permission to view merge request, click "Open in web IDE" can not load the page as image issue.png

Suggestion

The app should ignore special chars or have encoded strategy correctly.

Impact

Web IDE can not load Merge Request

Attachments

Warning: Attachments received through HackerOne, please exercise caution!

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 Web IDE does not properly encode or handle special characters in branch names when constructing the URL or loading the merge request.

What the attacker needed

Ability to create a branch; ability to create a merge request

How it was found

  1. Create a branch with special characters.
  2. Create a merge request from that branch to the master branch.
  3. As a reviewer, click 'Open in web IDE' and observe that the page does not load.

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 branch is a separate line of development in a code repository. The Web IDE is a browser-based code editor. If a branch name contains unusual characters, the Web IDE page fails to load, so reviewers cannot use it to inspect the merge request.

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.