Skip to content
DoS Disclosed report Beginner

Client-side DoS via AsciiDoc math feature

A wiki page written in AsciiDoc with a crafted math expression causes the browser to use 100% CPU and take a long time to load when the page is viewed. An attacker could use this to make a victim's browser unresponsive.

GitLab

Originally disclosed on GitLab

  • Fixed in 5 months
  • Disclosed after 5 months

⚠️ 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 #2117152 by toukakirishima on 2023-08-19, assigned to @greg:

Report | Attachments | How To Reproduce

Report

Summary

I found a DOS vulnerability when create Wiki, as an attacker I can make DoS and it takes a while to load, and uses 100% CPU.
My specification :
RAM : 40 GB
CPU : 12 CPUs 3.6 GHz AMD Ryzen 5 2600X
Browser : Mozilla Firefox & Google Chrome (Latest Version)

Steps to reproduce
  1. Go to Wiki
  2. Create wiki and put payload with format AsciiDoc
image.png
image.png From the original on GitLab
  1. Save
  2. Reload the page. And you will load the page very long. And uses very high CPU
image.png
image.png From the original on GitLab
POC
bandicam_2023-08-19_13-55-48-942.mp4 From the original on GitLab
URL for tested

https://gitlab.com/toukaattacker/aaa/-/wikis/home

Similiar Issues

https://gitlab.com/gitlab-org/gitlab/-/issues/341832

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

Root cause

Likely the AsciiDoc math rendering feature processes a crafted expression inefficiently, causing excessive CPU usage in the browser.

Impact

An attacker can cause a denial of service in the Wiki, making the page take a long time to load and using 100% CPU on the victim's browser.

What the attacker needed

Ability to create or edit a wiki page; victim views the crafted wiki page

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 browser so busy that it cannot respond to normal requests. Here, a specially crafted wiki page written in AsciiDoc (a text format) contains a math expression that is very slow to process. When someone opens that page, their browser freezes or becomes very slow.

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.