Skip to content
DoS Disclosed report Beginner

DoS in the Issue and Commit comments pages

An attacker could cause a denial of service (HTTP 500) on Issue and Commit comment pages by inserting a character above 0x65533 inside a Markdown link. This made all comments unreadable and the page unusable for any user.

GitLab

Originally disclosed on GitLab

  • Fixed in 4 months
  • Disclosed after 4 months

HackerOne report #690235 by dfens on 2019-09-07, assigned to akelly:

Summary

An attacker can cause a DoS(500 HTTP code) in the Issue and Commit comments pages, via inserting a character higher than 0x65533 inside a Markdown link.

Steps to reproduce

In this example we are going to describe the steps to reproduce the DoS in the Issue page, but it should be trivial to attack other pages with the same technique.

Environment

From the Victim account:

  1. Create a Project where an attacker account have permissions to post a comment in the Issue pages.
  2. Open an Issue.
  3. Comment something in the opened Issue.

Attack

From the attacker account:

  1. Write a comment in the opened issue containing the provided exploit.txt
  2. Reload page.

Impact

Any comment in that page cannot be loaded from any account, causing the impression of all being deleted.
This is because the GET request to discussions.json fails with the HTTP 500 code.
After the exploit, the issue page is in a state where nobody can read, write or erase any comment.

Other observations

It has been observed that this issue also affects the Activity page and the RSS feed of the attacker.
If the exploit is used in a Commit comment page, the comments and the diff of that commit cannot be seen

Impact

An attacker can compromise any public project making unreadable all the discussions in the Issue pages.

Attachments

Warning: Attachments received through HackerOne, please exercise caution!

Related issues:

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 failed to properly handle or sanitise Unicode characters above 0x65533 in Markdown links, leading to a server error when rendering the comments.

Impact

Any comment on the affected page cannot be loaded by any account, giving the impression that all comments were deleted, and the issue page becomes unusable (no one can read, write, or erase comments).

What the attacker needed

Attacker has permission to post comments; victim views the issue page

How it was found

  1. Create a project where an attacker account has permission to post comments on issue pages.
  2. Open an issue and post a comment.
  3. From the attacker account, write a comment containing the exploit (a Markdown link with a character above 0x65533).
  4. Reload the page to trigger the 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 denial-of-service (DoS) attack makes a website or service unavailable to its intended users. Here, by posting a comment with a special character in a Markdown link, the attacker caused the server to return an error (HTTP 500) whenever anyone tried to load the page, so no one could read or write comments.

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.