Skip to content
DoS Disclosed report Beginner

Dos by Exploiting math feature on issue page.

A user could post a comment containing a very large inline math expression, which caused the issue page to hang and become unusable for all viewers. An attacker could thus deny access to the issue page for other users, including administrators.

GitLab

Originally disclosed on GitLab

  • Fixed in 5 months
  • Disclosed after 5 months

HackerOne report #1350793 by cancerz on 2021-09-24, assigned to GitLab Team:

Report | Attachments | How To Reproduce

Report

Exploiting markdown with math feature supplyng large value result with dos on issue page.

Summary :
the markdown documentation available on docs.gitlab.com

Math  
View this topic in GitLab.

Math written in LaTeX syntax is rendered with KaTeX.

Math written between dollar signs $ is rendered inline with the text. Math written in a code block with the language declared as math is rendered on a separate line:

This math is inline $`a^2+b^2=c^2`$.

This is on a separate line:

```math  
a^2+b^2=c^2



I was trying the dos attack with basic math with this payload:

MATH
a^2+b^2=c^2+a^2+b^2=c^2+a^2+b^2=c^2 and more than 1000character.  

but nothing impactfull, just error rendering alert.

than i see the math feature is support with inline text by suppling us dollar $ on fron and end $ not just code block,

Steps To Reproduce:
in my testing i use two accounts,
first accounts : administrator page
second accont : attacker.

  1. The administrator create project with visibility public.
    than create issue page,

  2. on attacker tab, open the link issue that was created by first accounts. than comment with normal character to test that the page is fine.

than send comments with large math payloads. (the payload is available on this attachment).
after succesfully send comments, reload the page as an attacker.. (if attack succesfully the attacker can't click any button, just stuck on loading)

  1. The administrator open the issue page, reload the browser tab, as an administrator same as attacker can't access everything on issue page, just see the page loading continously.

Impact :
issue page can not opened by any other users.
The dministrator issues can't access option to delete, or edit issue, all option are not accesible, just delete the project to make the issue deleted.

supporting materials:
[DOS.ISSUE.PAGE.mp4] videos for proof-of-concept
[dos.txt] payloads for attack. just copying the payload than paste it on comments and send comments.

This bug happens on GitLab.com

thanks
best regards.

Impact

issue page can not opened by any other users.
The dministrator issues can't access option to delete, or edit issue, all option are not accesible, just delete the project to make the issue clear.

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 math rendering library (KaTeX) or the page's rendering logic did not limit the size or complexity of inline math expressions, allowing a resource-intensive input to freeze the page.

Impact

The issue page becomes unresponsive for all users, including administrators, who cannot edit or delete the issue and must delete the entire project to remove it.

What the attacker needed

A GitLab account; ability to comment on a public issue; victim opens the issue page

How it was found

  1. The administrator creates a public project and an issue page.
  2. The attacker opens the issue link and posts a comment with a large inline math payload.
  3. The attacker reloads the page and finds it stuck loading.
  4. The administrator opens the issue page and also finds it stuck loading, unable to access any options.

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 website feature that renders mathematical formulas was given a very long input. The page then got stuck loading and nobody could use it. This is a denial of service: making a service unavailable to its users.

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.