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
- The user create a branch as
%"a - The user creates a Merge Request with the Master branch as image merge.png
- 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!
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
- Create a branch with special characters.
- Create a merge request from that branch to the master branch.
- 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.