Repositories imported from Github containing information generated through the markdown text box cause crashes in the GitLab web UI.
GitLab
Originally disclosed on GitLab
- Fixed in 21 months
- Disclosed after 21 months
HackerOne report #1237946 by st4nly0n on 2021-06-19, assigned to GitLab Team:
Report | Attachments | How To Reproduce
Report
Summary
Repositories imported from Github containing information generated through the markdown text box cause crashes in the GitLab web UI.
Information generated through the markdown text box means that a user through github.com has performed some of the following actions:
• A user creating or editing a problem.
• A user who has commented on a problem.
• A user who creates or edits the description of a pull requests.
• A user commented on a pull requests.
• A user who added content to a wiki page.
• A user editing the description of a milestone.
• A user who edits the description for a release.
The payload consists of, if from github.com through markdown and performing any action mentioned above a user places the character ">" consecutively at least 10000 times (they can be less), it should be noted that from github.com the payload will not be displayed in the user interface, and will not generate any conflicts, see the following image:

As a consequence of the above and depending on where the payload was introduced, importing a project from github.com will cause the following crashes in the Gitlab web interface.
The following project was imported from github.com https://gitlab.com/user_V/poc500 the affected routes are a consequence of having introduced the payload through the corresponding action:
• A user who creates or edits a description of a problem.
https://gitlab.com/user_V/poc500/-/issues/1
ERROR 500
• A user who has commented on a problem.
https://gitlab.com/user_V/poc500/-/issues/2
An error occurred while configuring problem notifications.
There was an error getting the comments. Try again.
An error occurred while getting the related merge requests.
An error occurred while getting the data from the sidebar.
Related branches could not be loaded
The problem cannot be assigned.
• A user who creates or edits the description of a pull requests.
https://gitlab.com/user_V/poc500/-/merge_requests/3
ERROR 500
• A user who commented on a pull requests.
https://gitlab.com/user_V/poc500/-/merge_requests/4
An error occurred while getting the data from the sidebar.
An error occurred while configuring merge_request notifications.
There was an error getting the comments. Try again.
You cannot assign the issue to any member.
Reviews cannot be requested.
• A user who added content to a wiki page.
https://gitlab.com/user_V/poc500/-/wikis/home
ERROR 500
• A user who edits the description of a milestone.
https://gitlab.com/user_V/poc500/-/milestones/1
ERROR 500
• A user who edits the description for a release.
https://gitlab.com/user_V/poc500/-/tags/TAG1
ERROR 500
https://gitlab.com/user_V/poc500/-/releases
Releases are not shown.
Steps to reproduce
1) Create a project on github.com
2) Create a new problem and as a description enter the payload
3) Create another problem and as a comment enter the payload
4) From https://gitlab.com/import/github/new Import the repository from github.com to gitlab.com.
As a consequence of this behavior, the first problem generates a 500 error, the second problem cannot load comments among other sidebar related problems.
The steps to reproduce are the same to cause crashes in the other areas of the application mentioned above.
What is the current bug behavior?
Repositories imported from github.com containing information generated from markdown cause crashes in the Gitlab user interface.
What is the expected correct behavior?
The information generated through markdown must be treated and displayed appropriately.
Relevant logs and/or screenshots

Output of checks
This bug happens on GitLab.com
Impact
If any comment or description written via markdown contains the payload described in this report, the projects imported from github.com could cause denials of service in various paths of the GitLab web interface.
Attachments
Warning: Attachments received through HackerOne, please exercise caution!
How To Reproduce
Please add reproducibility information to this section:
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is known
A doS bug in gitlab.com. GitLab made it public on 27 March 2023.
About DoS
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
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.