Skip to content
DoS Disclosed report Beginner

Crafted Markdown payload leads to DoS condition

GitLab

Originally disclosed on GitLab

  • Fixed in 22 months
  • Disclosed after 22 months

HackerOne report #549523 by near_ on 2019-04-27, assigned to estrike:

Background

GitLab issue #55653 demonstrates an attack in which the Markdown parser can be exploited to achieve a denial-of-service condition. It was possible to achieve a similar outcome with a crafted Markdown payload: [a](javascript:alert(1))

Issue

Proof of concept

  1. As an authenticated GitLab.com user, create a new project and Markdown wiki page

  2. Update the wiki homepage to contain [a](javascript:alert(1)) and observe that it becomes completely inaccessible, throwing a 500 error (e.g. https://gitlab.com/authnearbbp/example2/wikis/home)

wiki_dos.png
wiki_dos.png From the original on GitLab

When the same payload is used elsewhere, such as Issue Comments and Web IDE, note that Markdown preview fails to load (similarly throwing a 500 error). I plan to take a quick glance at the logs on a local GitLab EE instance to see what might be going on here but wanted to flag this now as it seems to have been a P2/S2 concern in the past.

Impact

An attacker could render project wikis (and potentially other surfaces where Markdown is parsed) inaccessible, preventing content on these surfaces from being actioned.

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.

What is known

A low-severity doS bug in gitlab.com. GitLab made it public on 22 March 2021.

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.

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.