Skip to content
DoS Disclosed report Beginner

DOS via Flowchart TB Mermaid on Wiki pages

A wiki page containing a Mermaid flowchart with a top-to-bottom direction can cause a client-side denial of service, making the page take a long time to load and use 100% CPU. An attacker could create such a page to degrade the experience for anyone viewing it.

GitLab

Originally disclosed on GitLab

  • Fixed in 40 days
  • Disclosed after 40 days

⚠️ Please read the process on how to fix security issues before starting to work on the issue. Vulnerabilities must be fixed in a security mirror.

HackerOne report #2279739 by toukakirishima on 2023-12-10, assigned to @cmaxim:

Report | Attachments | How To Reproduce

Report

Summary

I found a DOS vulnerability when add wiki pages with Flowchart TB Mermaid, as an attacker I can make DoS and it takes a while to load, and uses 100% CPU.
Gitlab has been release patch for this vulnerability https://about.gitlab.com/releases/2023/11/30/security-release-gitlab-16-6-1-released/#client-side-dos-via-mermaid-flowchart. But Gitlab doesn't fix it on wiki pages.

Steps to reproduce
  • Go to Wiki
  • Create wiki and put payload
image.png
image.png From the original on GitLab
  • Create page
  • Reload the page. And you will load the page very long. And uses very high CPU
POC
bandicam_2023-12-10_19-58-03-946.mp4 From the original on GitLab
Output of checks

This bug happens on GitLab.com

Impact

Attacker can make DoS in Wiki and it takes a while to load, and uses 100% CPU.

Attachments

Warning: Attachments received through HackerOne, please exercise caution!

How To Reproduce

Please add reproducibility information to this section:

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

Impact

An attacker can cause a denial of service on wiki pages, making them load slowly and consume 100% CPU for viewers.

What the attacker needed

Ability to create or edit a wiki page

How it was found

  1. Go to Wiki
  2. Create a wiki page and insert the payload
  3. Create the page
  4. Reload the page, which then loads very slowly and uses high CPU

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 service or page unusable, often by overwhelming it. Here, a specially crafted diagram on a wiki page causes the viewer's browser to work very hard, so the page loads slowly and the computer's processor is maxed out. The attacker only needs to create a wiki page with that diagram.

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.