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
- Go to Wiki
- Create wiki and put payload with format AsciiDoc

- Save
- Reload the page. And you will load the page very long. And uses very high CPU

POC
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:
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.