Skip to content
DoS Disclosed report Beginner

Denial of service via AsciiDoc include:: overuse

Two AsciiDoc files that include each other via the include:: directive cause a denial of service when rendered. An attacker could increase CPU load to 100%, making the service unavailable for all users.

GitLab

Originally disclosed on GitLab

  • Fixed in 3 months
  • Disclosed after 3 months

HackerOne report #712622 by kgadyrka on 2019-10-12, assigned to @ankelly:

Summary

User can cause DoS affecting whole site by using two .adoc files which include each other via include:: directive.

Steps to reproduce

  1. Create a.adoc and b.adoc files in repository (attached to report).
  2. Open a.adoc file (/<username>/<project>/blob/master/a.adoc). It may be required to duplicate browser tab several times to cause DoS on more performant hardware.

Impact

CPU load increase up to 100% making service unavailable for all users.

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.

How it worked

Impact

CPU load could increase up to 100%, making the service unavailable for all users.

What the attacker needed

Ability to create files in a repository; victim opens the crafted AsciiDoc file

How it was found

  1. Create two AsciiDoc files, a.adoc and b.adoc, in a repository.
  2. Open the a.adoc file in the browser.
  3. Optionally, duplicate the browser tab several times to increase the effect.

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.

AsciiDoc is a text format like Markdown, and the include:: directive lets one file pull in another. If two files include each other, the renderer can get stuck in a loop, using up all the computer's processing power and making the website slow or unavailable for everyone.

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.